Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 10:28
    ujoni labeled #6962
  • 09:41
    ujoni labeled #6958
  • 09:41
    vaadin-bot commented #6958
  • 09:25
    mehdi-vaadin edited #6962
  • 09:25
    denis-anisimov opened #6962
  • 09:25

    denis-anisimov on 5630-embedded-head

    Filters out meta and style tags… (compare)

  • 08:25
    manolo synchronize #6958
  • 08:25

    manolo on ccdm

    CCDM: adjust performance tests … (compare)

  • 00:04
    vaadin-bot commented #6950
  • 00:04
    vaadin-bot commented #6950
  • Nov 16 22:49
    manolo synchronize #6950
  • Nov 16 22:49

    manolo on ccdm

    CDDM: remove usage of `commons.… (compare)

  • Nov 16 19:39
    vaadin-bot commented #6950
  • Nov 16 19:39
    vaadin-bot commented #6950
  • Nov 16 19:37
    vaadin-bot commented #6950
  • Nov 16 19:37
    vaadin-bot commented #6950
  • Nov 16 18:24
    manolo synchronize #6950
  • Nov 16 18:24

    manolo on ccdm

    CDDM: remove usage of `commons.… (compare)

  • Nov 16 18:19
    manolo synchronize #6950
  • Nov 16 18:19

    manolo on ccdm

    CDDM: remove usage of `commons.… (compare)

nicoulaj
@nicoulaj
ok, thanks
Tony Dark
@tonydarkOFF_twitter
Hi everyone
Just started learning Vaadin and I'm confronting with a basic problem
I've spent 4 hours to find a basic login model for java and I'm not able to do one properly
Does anyone have any basic example?
Christoph Frick
@christoph-frick
what do you mean by "basic login model"? basic auth would be a basic login e.g.
Tony Dark
@tonydarkOFF_twitter
Meaning a basic login like
A mini project in pure Java
Have 3 pages Home, Products, Contact
And aparte the login page
Which will give access to everything
I don't want to complicate
I need only user and password and a captcha
Christoph Frick
@christoph-frick
vaadin itself does not have some turnkey solution - it's out of the scope of the framework. you would have to add something else, that does what you want and then integrate that with vaadin
the link above shows different ways how to do that with spring security
other popular choices in the java world are pac4j and shiro
iirc one of the business starters has security via spring added if you need something to start from
Tony Dark
@tonydarkOFF_twitter
Okay thanks Cristoph
I thought that maybe Vaadin had some turnkey solution
Not starting from scratch I mean...
Christoph Frick
@christoph-frick
have a look at the starters then
Tony Dark
@tonydarkOFF_twitter
Been there. Done that. Doesn't work
Christoph Frick
@christoph-frick
care to elaborate?
(it's the full stack app with spring, that has the login)
Knaven Rey Sarroza
@Knaven
hi how to make the pwa-ip dialog in vaadin 14 hide/invisible?
masba
@masba77454784_twitter
Hey, how can i disable the nagging "Project Base for Vaadin Flow with Spring" install popup?
Christoph Frick
@christoph-frick
guess: remove the @PWA annotation
Pekka Hyvönen
@pleku

hi how to make the pwa-ip dialog in vaadin 14 hide/invisible?

Hey, how can i disable the nagging "Project Base for Vaadin Flow with Spring" install popup?

Hi. For improvements for the PWA features, please check and +1
vaadin/flow#5530
vaadin/flow#6899
My current bet is that we will have to tackle these in the upcoming months. Contributions are welcome too.

There is a custom element available for allowing the user to trigger the install https://vaadin.com/directory/component/vaadin-component-factoryvcf-pwa-install-button

For now the install popup can be disabled by removing the annotation or by using some css to hide/show it
Jet Beray
@jetdario
Hi guys
how do you build your jar file in Vaadin 14 Spring Boot
?
I cant seem to run mine.. it's missing all of vaadin flow components
I just have a default application.properties and POM
mvn clean package -Pproduction
mvn clean install -Pproduction

Im not sure if this is the cause of the error

Failed to find the following imports in the node_modules tree:

  - @vaadin/flow-frontend/contextMenuConnector-es6.js
  - @vaadin/flow-frontend/comboBoxConnector.js
  - @vaadin/flow-frontend/gridConnector.js
  - @vaadin/flow-frontend/contextMenuConnector.js
  - @vaadin/flow-frontend/flow-component-renderer.js
  - @vaadin/flow-frontend/gridConnector-es6.js
  - @vaadin/flow-frontend/comboBoxConnector-es6.js
  - @vaadin/flow-frontend/vaadin-grid-flow-selection-column.js

If the build fails, check that npm packages are installed.

To fix the build remove node_modules directory to reset modules.
In addition you may run npm install to fix node_modules tree structure.

Giovanni Lovato
@heruan
Hello! How can I set a property which is of type Element?
E.g. a LitElement @property({ type: Element }) foo.
getElement().setProperty(name, value) accepts only primitive and JsonValue types.
Marco Collovati
@mcollovati

Hi, I'm on Vaadin 14.0.12 and I'm trying to use WebComponentExporter with a custom component;
I've implemented some logic on configureInstance method but I noticed that it is never invoked.
It seems to me that the problem is in the generated javascript class in the _registerElement method

   _registerElement() {                                                                                                                                                                      
     this.$.id = "SpinkitPlane-" + SpinkitPlane.id++;                                                                                                                                        
     const flowRoot = document.body;                                                                                                                                                         
     // Needed to make Flow do lookup correctly                                                                                                                                              
     const poller = () => {                                                                                                                                                                  
       if (flowRoot && flowRoot.$server) {                                                                                                                                                   
         flowRoot.$ = flowRoot.$ || {};                                                                                                                                                      
         flowRoot.$[this.$.id] = this;                                                                                                                                                       
         flowRoot.$server.connectWebComponent('spinkit-plane', this.$.id, {'color': this['color']                                                                                            
 ,'centered': this['centered']                                                                                                                                                               
 ,'size': this['size']                                                                                                                                                                       
 ,'base-size': this['base-size']                                                                                                                                                             
 });                                                                                                                                                                                         
       } else {                                                                                                                                                                              
         setTimeout(poller, 10);                                                                                                                                                             
       }                                                                                                                                                                                     
     };                                                                                                                                                                                      

     poller();                                                                                                                                                                               
   }

In the poller function the condition (flowRoot && flowRoot.$server) is never satisied so connectWebComponent is not invoked.
I also noticed that in flow 2.1 the method

I also noticed that in flow 2.1 the method has been changed and the condition is something like

var flowClient = this._getClient(); if (flowClient && flowClient.connectWebComponent) {

Is this a known bug on flow 2.0 or am I doing something wrong?

Pekka Hyvönen
@pleku
Hi Marco. Looks like a bug
nicoulaj
@nicoulaj
Is it possible to use components from the directory marked "vaadin 8+" in vaadin flow, do they need to be migrated first ?
Pekka Hyvönen
@pleku
It is not possible. For Token field, I would recommend the multiselect combobox for Vaadin 14
nicoulaj
@nicoulaj
Yes I ended up using this one for now, thanks. This one is closer to my needs: https://vaadin.com/directory/component/chipfield-addon, but unfortunately the component is not yet migrated to polymer 3 (ThomasCybulski/paper-chip#73)
Pekka Hyvönen
@pleku
Ok. Maybe you can nod the author of the add-on with a directory message to please migrate it to P3 (they should know how to do it), the Java integration can be built on top of a fork&branch too
nicoulaj
@nicoulaj
The issue author already did the migration work, see in the linked issue. I'll just wait a bit to see if the author merges it first. When you say using a fork, doesn't it still require that the js lib is published into the webcomponent repository somehow ? (sorry, pretty new to this whole JS world, last time I did webdev was around 2010 :))