vegegoku on development
fix #655 Chips of TagsInput sho… (compare)
vegegoku on development
fix #667 It is impossible to se… (compare)
vegegoku on development
fix #666 Odd or Unexpected Resp… (compare)
vegegoku on development
fix #665 Select dropdown menu b… (compare)
vegegoku on development
fix #664 Memory leak in DataTab… (compare)
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:
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