Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:59

    vaadin-bot on v14.2.0-alpha1

    (compare)

  • 12:59

    vaadin-bot on 14.2

    14.2.0-alpha1 (compare)

  • 12:16

    web-padawan on improveVaadinDatePickerSecond

    (compare)

  • 12:15

    web-padawan on master

    docs: improve localization demo… (compare)

  • 12:15
    web-padawan closed #692
  • 12:15
    web-padawan synchronize #692
  • 12:15

    web-padawan on improveVaadinDatePickerSecond

    docs: improve localization demo… (compare)

  • 12:14
    web-padawan synchronize #692
  • 12:14

    web-padawan on improveVaadinDatePickerSecond

    Improve Vaadin Date Picker Fix issues Fix issues and 3 more (compare)

  • 11:45
    shadikhani synchronize #692
  • 11:45

    shadikhani on improveVaadinDatePickerSecond

    Improve vaadin date picker demos (compare)

  • 11:43
    shadikhani opened #692
  • 11:41

    shadikhani on improveVaadinDatePickerSecond

    Improve date picker demos secon… Improve styling examples Fix issues and 1 more (compare)

  • 09:23

    ZheSun88 on 14.2

    (compare)

  • 08:36

    vaadin-bot on v14.1.2

    (compare)

  • 08:36

    vaadin-bot on 14.1

    14.1.2 (compare)

  • Dec 05 11:50

    vaadin-bot on v15.0.0-alpha7

    (compare)

  • Dec 05 11:50

    vaadin-bot on master

    15.0.0-alpha7 (compare)

  • Dec 05 07:40

    vaadin-bot on v15.0.0-alpha6

    (compare)

  • Dec 05 07:40

    vaadin-bot on master

    15.0.0-alpha6 (compare)

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)
Tomi Virkki
@tomivirkki
Thanks :)
Anders Forsell
@andersforsell
Can dark mode be used with Vaadin web components material theme ?
Diego Cardoso
@DiegoCardoso
There's a typo on the docs. The style to include is material-color-light instead of material-light-color.
MatthiasJakob
@MatthiasJakob
Hi there! I've a small question concerning vaadin charts - scatter 3d ...
If my dataset is larger, the chart says no data ... see https://demo.vaadin.com/charts/#Basic3DScatter, do:
private void fillSeries(DataSeries higherX, DataSeries higherY,
DataSeries higherZ) {
Random random = new Random(7);
for (int i = 0; i < 5000; i++) {
double lng = random.nextDouble() 2 Math.PI;
double lat = random.nextDouble() Math.PI - Math.PI / 2;
double x = Math.cos(lat)
Math.sin(lng);
double y = Math.sin(lat);
double z = Math.cos(lng) * Math.cos(lat);
        DataSeriesItem3d point = new DataSeriesItem3d(x, y, z);
        if (x > y && x > z) {
            higherX.add(point);
        } else if (y > x && y > z) {
            higherY.add(point);
        } else {
            higherZ.add(point);
        }
    }

}
5000 points boom, does not work ... any ideas? Tank you!
Guille
@alvarezguille
Hi @MatthiasJakob , I'm not sure what version of Charts you're using, but you should be able to fix that by setting turboThreshold to 0. You can do it for all the series by changing it in PlotOptionsSeries
https://vaadin.com/api/platform/14.0.10/com/vaadin/flow/component/charts/model/PlotOptionsSeries.html#setTurboThreshold-java.lang.Number-
MatthiasJakob
@MatthiasJakob
That was the problem! Thank you Guille so much !!!! Great!
Giovanni Lovato
@heruan
Hi! I’m trying to add a custom theme to Vaadin-rich-text-editor so I’ve created a theme-for module, but it does not get applied. Looking in the Chrome inspector, seems like some styles gets truncated from the <style> tag, but I’m not sure if it’s just as Chrome displays it:
Screenshot 2019-11-12 at 15.41.52.png
Giovanni Lovato
@heruan
How can I debug to see if my theme gets applied?
Leho Kraav
@lkraav
Add a clear id attribute to your theme style tag, so you can clearly search and identify it in the browser Inspector tool
Giovanni Lovato
@heruan
Thank you @lkraav for the suggestion: what’s adding the id to the stlye tag for?
AFAIK the content of the theme module is teleported to the web component style tag, thus losing the id.
Leho Kraav
@lkraav
No, the ID stays
Giovanni Lovato
@heruan
Cool, then! I tried, but I still see the content truncated in the inspector.
Nevermind, I found it.
Leho Kraav
@lkraav
Are you using the new registerStyles() API? You should: https://github.com/vaadin/vaadin-themable-mixin#styling-in-javascript
Giovanni Lovato
@heruan
Found it, and it’s empty :frowning:
I’m not using registerStyles(), I wasn’t aware of that! Let’s look at it right now :smile:
Giovanni Lovato
@heruan
Using registerStyles it works! Thank you @lkraav for pointing me to that as I didn’t know about it. Finally it’s time to ditch all the boilerplate for custom themes in ES6 :smiley:
Tony Dark
@tonydarkOFF_twitter
Hey guys
Can anyone explain me what's wrong with the v14?
java.io.UncheckedIOException: java.nio.file.DirectoryNotEmptyException: C:\Users\SIS017\eclipse-workspace\SQLapp\sqlapp\node_modules\@polymer
Every single time I modify a starter project and run spring-boot:run I get this error
even if I put a space in a view or sth
Denis
@denis-anisimov
@tonydarkOFF_twitter on Windows processes locks files that they uses so that they may not be removed until they are unlocked.
So this exception means you have another process which os locking the file. I may assume that there is another webpack dev server process which for some reason is not stopped. Check that there is no process accessing those files on your machine.
Then running the app should work fine.
If you are not able to find a process which locks the files you may just reboot your system.
sahilshah50
@sahilshah50
with https://github.com/vaadin/vaadin-router if I want to force a link href url to be fetched from server rather than being handled by router, how can this be achieved?
Giovanni Lovato
@heruan
I’m trying vcf-avatar-item in this Glitch: https://glitch.com/edit/#!/low-buckthorn but I can’t get the name initials to show up. What am I doing wrong?
Laurent de Laprade
@ldelaprade
web-components project starter contains package.json and package-lock.json. maven build seems to work without those 2. Since I am reluctant to add generated files in github, I was wondering if those 2 could be omitted. Thanks !
Mark Garrett
@moderndeveloperllc
@sahilshah50 That should like something for the web server. Remember that the browser will go through that first. Make sure that the URL you want to handle separately does not point to or include the entry point where your router is included.
Laurent de Laprade
@ldelaprade
@snirben
Kari Söderholm
@Haprog
@sahilshah50 I haven't use vaadin-router but I took a quick look at the documentation for it. To me it seems like there is no simple built-in way to do it, but I think you can do it in two ways. Either define it as a route and give that route an action method that does a navigation by setting window.location to the target URL. Or alternatively use the Router.setTriggers API and use a customized version of the click trigger (where I think you could do the navigation via window.location based on some attribute being present on the clicked <a> element, or based on href path or some other condition) instead of the default one.
You can check the code of the default link click trigger from here https://github.com/vaadin/vaadin-router/blob/master/src/triggers/click.js actually you'd probably only need to add one more of those simple "ignore" conditions.