Author |
Message |
25/10/2019 14:20:30
|
levy
Power User
Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline
|
Hi Björn
For a combofield, we want to hide the selector arrow if the value help is empty. We did this in Swing by setting the attribute image to an own empty image "combofield_no_valuehelp.png". As soon as the list was not empty, we set the image to null so that the default image (comboselector.jpg) reappeared.
Now with RISC, if we set the image to null, no image is shown, what we do not expect. If we want to have the default image again, we must reference it explicitely at "/eclntjsfserver/images/combobox/comboselector.png".
Is this new behaviour intentional or is it a little bug?
A test code snippet is attached.
By the way, I am proud to realize that this is my message number 300 in this forum.
Kind regards, Daniel
Filename |
testcombofield.jsp |
Download
|
Description |
|
Filesize |
1 Kbytes
|
Downloaded: |
1237 time(s) |
Filename |
combofield_image.PNG |
Download
|
Description |
|
Filesize |
8 Kbytes
|
Downloaded: |
561 time(s) |
Filename |
TestCombofield.java |
Download
|
Description |
|
Filesize |
1 Kbytes
|
Downloaded: |
1263 time(s) |
|
|
|
26/10/2019 05:13:08
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5521
Offline
|
Hi David,
then congratulations + thanks a lot for using the forum for discussions and problems (and not the mail system!) and thanks a lot for your always really gentle way of addressing issues!
If others are reading this: yes, using the forum is a much nicer way for communicating on issues! Things are kept in one discussion thread - and: everyone can take benefit...
Now to your issue: both ways of dealing with "null" are somehow correct, but in this case I would follow proposal, not only because it is compatible to the old client, but also because the name of the image is kept in the style of the element (and thus is not really reachable for your Java-code).
Will do the changes for next update!
Thanks + regards! Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|