Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 27 15:32
    vegegoku closed #666
  • Jun 26 12:10
    happyhua synchronize #668
  • Jun 26 11:50
    happyhua synchronize #668
  • Jun 26 11:29
    happyhua opened #668
  • Jun 25 17:49
    vegegoku commented #634
  • Jun 25 17:43
    vegegoku closed #655
  • Jun 25 17:43

    vegegoku on development

    fix #655 Chips of TagsInput sho… (compare)

  • Jun 25 17:35
    vegegoku closed #667
  • Jun 25 17:35

    vegegoku on development

    fix #667 It is impossible to se… (compare)

  • Jun 25 16:03
    vegegoku commented #666
  • Jun 25 16:02

    vegegoku on development

    fix #666 Odd or Unexpected Resp… (compare)

  • Jun 25 15:41
    vegegoku commented #634
  • Jun 25 15:41
    vegegoku commented #634
  • Jun 25 14:03
    vegegoku commented #666
  • Jun 25 09:45
    vegegoku closed #665
  • Jun 25 09:42

    vegegoku on development

    fix #665 Select dropdown menu b… (compare)

  • Jun 25 09:24
    vegegoku closed #664
  • Jun 25 09:00

    vegegoku on development

    fix #664 Memory leak in DataTab… (compare)

  • Jun 25 08:45
    vegegoku closed #657
  • Jun 25 08:45
    vegegoku commented #657
Ahmad K. Bawaneh
@vegegoku
It is possible but the api is a meh..and hard ..I am not on my desk to show you how.. but the idea is to creat seperate dropdowns and make the acrion in the parent opens the child one
I never did it though
Frank Wynants
@FrankW76

Okay.....
I will look a little into the domino code to see if I can find out how this can be achieved.

This has something to do with it : DominoKit/domino-ui#228

I also mentions something about 'nesting' dropdownmenu's into each other...

Frank Wynants
@FrankW76

The best I can achieve (and also the only thing).

Is to create a seperate DropDownMenu
And open this menu on click of an Action.

But than I also have to re-open the main DropDownMenu of the DropDownButton, cause this auto closes...

DropdownAction<String> dropdownAction = DropdownAction.create("This actions opens another action");
DropDownMenu subDropDownMenu = DropDownMenu.create(dropdownAction);
subDropDownMenu.setPosition(DropDownPosition.TOP_LEFT);
subDropDownMenu.appendChild(DropdownAction.create("this is an action in the submenu"));

secondaryActionsButton.appendChild(dropdownAction);

dropdownAction.addSelectionHandler(value ->
{
   secondaryActionsButton.getDropDownMenu().open(); //the main menu closes automically so I need to re-open it...
   subDropDownMenu.open();
   Scheduler.get().scheduleDeferred(() -> //I actaully want DropDownPosition.LEFT but this does not exist... So push a little into correct position
  {
     double top = subDropDownMenu.getBoundingClientRect().top;
     subDropDownMenu.style().setTop(px.of(top + 42));
   });
});
image.png
Daniel Korbel
@masterdany88
Hi. Is it ok that Select input doesnt handle change handler?
Daniel Korbel
@masterdany88
from my perspective all inputs can get value change, and this should be supported by one generic method.
Daniel Korbel
@masterdany88

I found another strange issue with select input.
I can not change value of select programatically.
I mean I can change value, but it is not reflected in widget UI.
Consider my code:


    public static <T> Select<T> create(String label, String name) {
        Select<T> input = Select.create(label);
        input.getInputElement().setAttribute("name", name);
        return input;
    }


    Select<TimeZoneDto> timeZone;

        timeZone = ApSelectBox.create(TRANSLATIONS.timeZone(), "timeZone");

        ntpEnabled.setValue(card.getInitialValue().isNtpEnabled());
        time.setValue(card.getInitialValue().getTime());
        date.setValue(card.getInitialValue().getDate());
        DomGlobal.console.log("selected before " + timeZone.getSelectedOption().getDisplayValue());
        DomGlobal.console.log("selected before " + timeZone.getSelectedIndex());
        DomGlobal.console.log("selected before " + timeZone.getValue());
        timeZone.setValue(card.getInitialValue().getTimeZone());
        dateTimeDto.setTimeZone(card.getInitialValue().getTimeZone());
        DomGlobal.console.log("selected after " + timeZone.getSelectedOption().getDisplayValue());
        DomGlobal.console.log("selected after " + timeZone.getSelectedIndex());
        DomGlobal.console.log("selected after " + timeZone.getValue());

and logs:

selected before (UTC+00:00) Sao Tome
TimeComponent.java:156 selected before 48
TimeComponent.java:157 selected before TimeZoneDto(displayName=(UTC+00:00) Sao Tome, systemName=Africa/Sao_Tome)
FormCard.java:221 ready true
FormCard.java:226 IV DateTimeDto(time=15:47:08, date=2021-10-15, timeZone=TimeZoneDto(displayName=(UTC) Coordinated Universal Time, systemName=UTC), ntpEnabled=false, ntpServerUrl=0.pool.ntp.org)
FormCard.java:227 CV DateTimeDto(time=15:47:08, date=2021-10-15, timeZone=TimeZoneDto(displayName=(UTC) Coordinated Universal Time, systemName=UTC), ntpEnabled=false, ntpServerUrl=0.pool.ntp.org)
FormCard.java:228 Changed false
TimeComponent.java:160 selected after (UTC) Coordinated Universal Time
TimeComponent.java:161 selected after 45
TimeComponent.java:162 selected after TimeZoneDto(displayName=(UTC) Coordinated Universal Time, systemName=UTC)

but my dto has null value:
CV DateTimeDto(time=15:53:09, date=2021-10-15, timeZone=null, ntpEnabled=false, ntpServerUrl=0.pool.ntp.org)

and the UI:

Screenshot_20211015_175030.png
Ahmad K. Bawaneh
@vegegoku
For first point ..can you explain..I cant understand the issue you are describing
For the 2nd one .. I use set value on select all the time and it works.. but you need to make sure the select is manipulated with options before you call select ..otherwise it will not change the value.
howudodat
@howudodat
curious if anyone has tried to use vs code for ide and debugging? I have used eclipse for ages, but cant really get integrated debugging working with it and gwt. We are starting to use vs code for the php backend and some flutter/dart testing. I'm a bit hesitant to add a 3rd ide in, but will if needed because simple debugging is ok in chrome console, but it's just too slow and cumbersome for serious debugging
Ahmad K. Bawaneh
@vegegoku:matrix.org
[m]
The problem with debugging gwt apps as java is not with the ide but with the browsers ..the plugins that allowed this are not supported by the browsers any more.. you still can setup the ide to do a js debug for gwt apps ..but you will get the same code style and naming as in the browser
I know there was some work made in the gwt eclipse plugin to support the debugging ..but not sure if it still works
I love how VSC is light and works as an ide ..but I still cant replace intellij with it
Colin Alworth
@niloc132
sdbg is a plugin that should work in eclipse to let sourcemaps debug client JS to your own java
it isn't real java debugging, just js debugging with mapping back to the original java
Ahmad K. Bawaneh
@vegegoku:matrix.org
[m]
Yah same as what you get in the browser
Colin Alworth
@niloc132
though you can edit the code at least :)
howudodat
@howudodat
yeah, I am liking VSC as well, but I'm still super dependent on eclipse. I guess I'm just an old programmer and habbits are hard to change.
I'd much rather program in c/c++ than flutter/dart
but it's really hard to make web apps in c++
played a bit with QT web asm, but that's it's own headache
Ahmad K. Bawaneh
@vegegoku:matrix.org
[m]
Everything has pros and cons... but for an ide i am very sold into intellij after so many years on eclipse ..I dont think I will use eclipse anymore unless forced to
howudodat
@howudodat
just curious why you like intellij better than eclipse? (I probably wont switch, but I'd love to know)
Colin Alworth
@niloc132
at least ~8 years ago when I switched, it handled big projects better, and refactoring tools were unbelievably better
better integration with either maven or gradle too
howudodat
@howudodat
interesting thx for the comments
Ahmad K. Bawaneh
@vegegoku:matrix.org
[m]
Intellij also with different flavors and setup provide a single experience for many languages.
Colin Alworth
@niloc132
SQL debugging is amazing in paid intellij, though I havent done SQL in some time
connect it to your DB and it will autocomplete table names, suggest joins, etc
howudodat
@howudodat

my primary programming is all internal to our company and is in c/c++/java/php with codenameone as a framework and now domino. I have lost count of total code lines.
but i have several hobby projects that I'm slowly moving to domino

I use eclipse so far for everything. does nice with c/c++/java even php. codenameone was integrated. there is even a sql browser, but I use dBeaver for db stuff, it is absolutely amazing. funny thing is that it uses eclipse underneath.

Always trying to learn, but sometimes I find i take the path of least resistance too much

Ahmad K. Bawaneh
@vegegoku:matrix.org
[m]
I understand .. and I love the part that says you are moving to domino. 😄
howudodat
@howudodat
I haven't picked up the whole MVP framework of domino, but for my apps, I'm not sure I need it. I'm liking it so far, but my head hurts and my wall has dents in it from trying to get layouts right :)
Ahmad K. Bawaneh
@vegegoku:matrix.org
[m]
Getting layouts right is a pain in what ever tool we use .. but I think a good html/css knowledge is still needed to get them right
howudodat
@howudodat
good html/css knowledge <<<<<<<<< and voila my problem. programming since 1983 and it's all I can do to write <html></html> and get it right....lol...no..C(rying)OL
I cane barely spell C S S
Ahmad K. Bawaneh
@vegegoku:matrix.org
[m]
I didnt learn css or html until i did domino
Ahmad K. Bawaneh
@vegegoku
@howudodat I think it might be a good idea to file some issues for those layouts or at least some github discussions WDYT?
Colin Alworth
@niloc132
css is far easier to learn than it used to be, esp if you're just worrying about positioning and sizing
there are a lot of flexbox tutorials out there that let you interactively poke different features and see what it does to the containers and their relative positions and sizes
Ahmad K. Bawaneh
@vegegoku
Colin Alworth
@niloc132
like that, but ideally also assigning pixel or percentage sizes to children (and container, but container should be drag and drop to resize imho, or possibly a toggle to animate as it grows and shrinks)
Ahmad K. Bawaneh
@vegegoku
Also I think we split it into 2 section while there should be only one
Colin Alworth
@niloc132
maybe some presets
Ahmad K. Bawaneh
@vegegoku
yah good idea
Colin Alworth
@niloc132
i know @jhickman has fallen in love with grid too, which i understand to be harder to use (and i havent learned it myself)
Ahmad K. Bawaneh
@vegegoku
grids are more flexible ..i found it hard to put them into a generic component because there is a limitless options and variations
so the best thing is just to learn how to do them with css, but they are very powerful