Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:08
    lofwyr14 opened #685
  • 14:00
    moderndeveloperllc commented #1656
  • 10:20
    tomivirkki opened #1677
  • 10:05

    tomivirkki on optimize-initial-row-count

    Cut down the initial row pool b… (compare)

  • 08:55
    tomivirkki commented #1656
  • 08:49
    petrixh opened #1676
  • Nov 12 13:10
    web-padawan edited #80
  • Nov 12 12:07

    web-padawan on master

    5.0.9 (compare)

  • Nov 12 12:07

    web-padawan on v5.0.9

    (compare)

  • Nov 12 11:03

    web-padawan on refactor-selector

    (compare)

  • Nov 12 11:03

    web-padawan on master

    refactor: do not use array in q… (compare)

  • Nov 12 11:03
    web-padawan closed #850
  • Nov 12 11:03
    web-padawan closed #831
  • Nov 12 09:57
    web-padawan opened #850
  • Nov 12 09:56

    web-padawan on refactor-selector

    refactor: do not use array in q… (compare)

  • Nov 12 09:32

    web-padawan on master

    refactor: update event listener… (compare)

  • Nov 12 09:32
    web-padawan closed #849
  • Nov 12 09:32
    web-padawan closed #847
  • Nov 11 14:18

    tomivirkki on v5.4.12

    (compare)

  • Nov 11 14:18

    tomivirkki on 5.4

    5.4.12 (compare)

sdyalor
@sdyalor
Ahm, my issue is how to get component render quick
i have performance issues ;c
Giovanni Lovato
@heruan
Guys I’m losing my mind: where this _setInputs is being defined?!
Giovanni Lovato
@heruan
Okay, seems like it’s a dynamic call handled by Polymer’s PropertyEffects :relieved:
Rajul Vishwakarma
@rajul3199
Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.4.15.v20190215:run (default-cli) on project exercises-intro: Failure
i am having this problem when i was installing vaadin
please help me
Tulio Garcia
@tulioag
Hi @rajul3199 . That just means that mvn jetty:runfailed. Can you post the full error message?
Rajul Vishwakarma
@rajul3199
@tulioag
Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.4.15.v20190215:run (default-cli) on project exercises-intro: Failure
This is the full error
Tulio Garcia
@tulioag
@rajul3199 , can you post the project or at least the pom.xml?
Rajul Vishwakarma
@rajul3199

@tulioag <?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.vaadin.trainings.intro</groupId>
<artifactId>exercises-intro</artifactId>
<name>Exercise for Intro</name>
<version>1.0.0</version>
<packaging>war</packaging>

<properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <failOnMissingWebXml>false</failOnMissingWebXml>

    <vaadin.version>14.0.0</vaadin.version>

    <drivers.downloader.phase>pre-integration-test</drivers.downloader.phase>
</properties>

<repositories>
    <repository>
        <id>central</id>
        <url>https://repo1.maven.org/maven2/</url>
        <snapshots><enabled>false</enabled></snapshots>
    </repository>
    <!-- Repository used by many Vaadin add-ons -->
    <repository>
         <id>Vaadin Directory</id>
         <url>https://maven.vaadin.com/vaadin-addons</url>
    </repository>
    <!-- Repository needed for prerelease versions of Vaadin -->
    <repository>
        <id>vaadin-prereleases</id>
        <url>https://maven.vaadin.com/vaadin-prereleases</url>
        <snapshots><enabled>false</enabled></snapshots>
    </repository>
    <!-- Repository needed for the snapshot versions of Vaadin -->
    <repository>
        <id>vaadin-snapshots</id>
        <url>https://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
        <releases><enabled>false</enabled></releases>
    </repository>
</repositories>

<pluginRepositories>
    <pluginRepository>
        <id>central</id>
        <url>https://repo1.maven.org/maven2/</url>
        <snapshots><enabled>false</enabled></snapshots>
    </pluginRepository>
    <!-- Repository needed for prerelease versions of Vaadin -->
    <pluginRepository>
        <id>vaadin-prereleases</id>
        <url>https://maven.vaadin.com/vaadin-prereleases</url>
        <snapshots><enabled>false</enabled></snapshots>
    </pluginRepository>
    <pluginRepository>
        <id>vaadin-snapshots</id>
        <url>https://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
        <releases><enabled>false</enabled></releases>
    </pluginRepository>
</pluginRepositories>

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-bom</artifactId>
            <type>pom</type>
            <scope>import</scope>
            <version>${vaadin.version}</version>
        </dependency>
    </dependencies>
</dependencyManagement>

<dependencies>
    <dependency>
        <groupId>com.vaadin</groupId>
        <!-- Replace artifactId with vaadin-core to use only free components -->
        <artifactId>vaadin</artifactId>
        <exclusions>
            <!-- Webjars are only needed when running in Vaadin 13 compatibility mode -->
            <exclusion>
                <groupId>com.vaadin.webjar</groupId>
                <artifactId>*</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.webjars.bowergithub.insites</groupId>
                <artifactId>*</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.webjars.bowergithub.polymer</groupId>
                <artifactId>*</artifactId>
            </exclusion>
            <exclusion>
                <groupId>org.webjars.bowergithub.polymerelements</groupId>
                <ar
Tulio Garcia
@tulioag
@rajul3199 So, you are doing the training and having issues? Unfortunately there is not enough information here to find out what is going on, since there are lots of reasons for jetty failing to start, and it is a bit off topic for this channel. I encourage you to post a question in the forum at https://vaadin.com/forum/category/11562/02-miscellaneous with the complete source code of your project and everything that is printed on the screen from the moment you type mvn jetty:run to when the command exits.
Snir Ben Yossef
@snirben
Hi all, i am new to vaddin.
i am trying to add my sql data into the grid but for some reason the data only show the LastName the ID and FirstName wont apper.
my code :
public class MainView extends VerticalLayout {
    private CustomerService service ;
    public Customer customer = new Customer();
    private Binder<Customer> binder = new Binder<>(Customer.class);

    private Grid<Customer> grid = new Grid(Customer.class);
    private  Button save = new Button("Save", e -> {
        try {
            binder.writeBean(customer);
            saveCustomer();
            updateGrid();
            binder.readBean(new Customer());
        } catch (ValidationException ex) {
            ex.printStackTrace();
        }
    });

    public MainView(CustomerService service) {
        this.service = service;

        add(
                new H1("הוסף לקוח"),
               buildForm(),
               grid
       );
       updateGrid(); // update the grid with the sql data

        setSizeFull();


    }
    private void saveCustomer() throws ValidationException {

        service.update(customer);

    }
    private Component buildForm() {
        TextField firstName = new TextField("First Name");
         TextField lastName = new TextField("Last Name");

       TextField id = new TextField("ID");
         TextField  company= new TextField("Company");
         TextField address = new TextField("Address");
         TextField phone = new TextField("phone");
        TextField created = new TextField("created");
         TextField email = new TextField("Email");
        Div errorsLayout = new Div();

binder.forField(firstName)
        .bind(
                Customer::getFirstName,Customer::setFirstName
        );
        binder.forField(lastName)
                .bind(
                        Customer::getLastName,Customer::setLastName
                );



        Button reload = new Button("reload", e ->{
            try{
                binder.readBean(customer);

            } catch (Exception ex) {
                ex.printStackTrace();
            }
        });
        // Configure UI components
        save.setThemeName("primary");
        // Wrap components in layouts
        HorizontalLayout formLayout = new HorizontalLayout(grid,firstName,lastName,save,reload);
        Div wrapperLayout = new Div(formLayout, errorsLayout);
        formLayout.setDefaultVerticalComponentAlignment(Alignment.BASELINE);
        wrapperLayout.setWidth("100%");

        grid.setColumnReorderingAllowed(true);


        return wrapperLayout;

    }


    private void updateGrid() {

        List<Customer> customers = service.findAll();
        grid.setItems(customers);



    }

    public List<Customer> findAll() {
        return jdbcTemplate.query(
                "SELECT ID, FirstName, LastName FROM customer",
            (rs, rowNum) -> new Customer(rs.getLong("ID"),
                        rs.getString("FirstName"), rs.getString("LastName")));
}
Snir Ben Yossef
@snirben
Found the ansewr. thank you all
Giovanni Lovato
@heruan
Gurus help me! :smiley:
I’m trying to extend TextFieldElement, but it happens a very weird thing: if I just extend the class, then an original vaadin-text-field inside e vaadin-custom-element doesn’t render :confounded:

For example, just having this:

import { TextFieldElement } from '@vaadin/vaadin-text-field/src/vaadin-text-field';

export class AxiansTextField extends TextFieldElement {}

makes

<vaadin-custom-element label="Custom">
  <vaadin-text-field></vaadin-text-field>
</vaadin-custom-element>

like this:

Screenshot 2019-09-29 at 11.29.20.png
If I just remove extends TextFieldElement, then the field appears again :open_mouth:
Giovanni Lovato
@heruan
Well, it doesn’t render regardless of the vaadin-custom-field I’ve just noticed.
Why it breaks if I extend it?
Giovanni Lovato
@heruan
Aaaaand it breaks in Chrome and Firefox, but in Safari it doesn’t!
Giovanni Lovato
@heruan
Well seems like it’s only happening inside demo-snippets :sweat_smile:
Kari Söderholm
@Haprog
@heruan I'm not really sure what's going on there. If you want to make e.g. a Glitch that reproduces the issue, we could take a closer look. :)
Giovanni Lovato
@heruan
Thank you @Haprog! In fact, I was making a Glitch and I’ve found out it only happens inside Polymer’s <demo-snippet>.
Giovanni Lovato
@heruan
@Haprog I was wrong, it’s not beacuase of demo-snippet :confounded:
I have a Glitch replicating if you want to take a look.
Kari Söderholm
@Haprog
Please share. Not sure if I will take a look (at least maybe not today) but someone else also might.
Giovanni Lovato
@heruan
Thanks! This is the Glitch: https://glitch.com/~difficult-wanderer
Basically, what I’m trying to do here is to create a custom text-field with an additional slot (label-suffix). I’m using the technique of template-injection I’ve seen in the Vaadin’s text-field elements, but I guess I’m missing something: when importing the custom element, original elements break.
Giovanni Lovato
@heruan
It’s just a custom element extending TextFieldElement: the styles get lost in the original field.
Oooooh I get it now: if you load the src/vaadin-text-field.js before the styles, styles don’t get applied!
Rubber ducking on Gitter always works :slight_smile:
Leho Kraav
@lkraav

@heruan I'm fairly certain we discovered something about the specific order requirements of style loading as well with cc @chanar

Not sure where the archive of those findings and discussion are. If I find them, I'll post them later

Adexe Rivera Martín
@adexerivera
Hello, how can I access the spring security context within a Vaadin listener. In more detail, I'm using an upload component and the uploaded content should be send to a REST-service. I use a SucceededListener to get informed about a file upload. Within the method of that listener, I want to get the SecurityContext in order to get authentication information. With the listener method I have no access to the SecurityContext of the spring application. How can I get access to that context?
MemoryBuffer buffer = new MemoryBuffer();
Upload upload = new Upload(buffer);
upload.addSucceededListener(e -> {
    SecurityContext context = SecurityContextHolder.getContext();
    context.getAuthentication(); // null
});
Pekka Maanpää
@pekam
Hi @adexerivera! You might have better chance of finding an answer in the Flow channel: https://gitter.im/vaadin/flow
This channel focuses on frontend development with our HTML/JavaScript components.
sdyalor
@sdyalor
spreadsheet?
I need support
Diego Cardoso
@DiegoCardoso
Hi, @sdyalor. How may we help you?
Danuta97
@Danuta97
hi, how can i apply a decimal format on a text field to make this accept just numbers and display with given format e.g # ###.## ? Thanks! p.s I`m using vaadin 14 :D
Diego Cardoso
@DiegoCardoso
Hi, @Danuta97. There's no support for it currently. There are two open tickets regarding what you are asking: vaadin/vaadin-text-field#407 and vaadin/vaadin-text-field#408
Tomi Virkki
@tomivirkki
Note that there is also the following add-on https://vaadin.com/directory/component/textfield-formatter
sdyalor
@sdyalor
How can i use vaadin spreadsheet with my student membership
Diego Cardoso
@DiegoCardoso
For Spreadsheet and other V8- pro components, you should go to https://vaadin.com/pro/licenses and download the desired license to you home folder.
Walter Laurito
@lauritowal
Hi guys! Is there actually a npm / js version of the material design theme? https://cdn.vaadin.com/vaadin-material-styles/1.2.3/demo/#1-install Or is using bower and the html files the only way to include and use the material design theme for the vaadin web components? :)
Tomi Virkki
@tomivirkki
Hi @lauritowal Looks like that documentation is quite lacking and has outdated information. The correct way to import for example the MD <vaadin-text-field> would be import '@vaadin/vaadin-text-field/theme/material/vaadin-text-field.js';. Note that you shouldn't mix Lumo and Material themed Vaadin components on the same page.
Walter Laurito
@lauritowal
ah alright. Thanks for the information! I'll try that out
(By the way you guys are great. Always really helpful. Keep up the great work :D)