Author |
Message |
20/10/2009 09:53:35
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
Hi,
i have a problem with t:colorfield in a grid. My idea is to set the background and the foreground of t:colorfield to the color set by the colorfield. I set the flush attribute to true and additionally also do not avoid roundtrips in grid, but when I change the color, the background doesn't change?
I didn't use TRUE in the constructor for the grid.
regards
Markus
|
|
|
20/10/2009 11:58:19
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5538
Offline
|
Hi,
ahh, this is a tricky situation...
Could you use a second property for the backgroundColor, so that it does not share the same as with the value that is maintained.
At flush point of time please copy the value into tho the second property's value.
This should work...
Björn
PS: I'll tell later why you need to do this... (lack of time at the moment...)
|
Björn Müller, CaptainCasa GmbH |
|
|
20/10/2009 12:19:43
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
ok, I tried it, but it still doesn't work, should I upload my sources?
|
|
|
20/10/2009 12:42:32
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5538
Offline
|
...yes, this would be great: .jsp and .java...
Thanks!
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
20/10/2009 13:01:07
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
ok, here are the sources
Filename |
ZonesDetailUI.java |
Download
|
Description |
|
Filesize |
3 Kbytes
|
Downloaded: |
395 time(s) |
Filename |
zonesdetail.jsp |
Download
|
Description |
|
Filesize |
2 Kbytes
|
Downloaded: |
373 time(s) |
|
|
|
21/10/2009 10:54:41
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5538
Offline
|
...uuuh, we found the bug. It is corrected + available with next update (or on request).
You can bypass today by setting the extra color for the background to...
colorBackground = colorInput + "FF"
(adding a full transparency, which is nonsense of course, but...)
From next update on you can use the same server side porperty for all attributes.
THANKS for this bug-report!!!
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
21/10/2009 15:02:42
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 750
Offline
|
great, maybe there's another bug (but I'm not sure), when you remove the initialization of m_color with #FFFFFF and let the property with null, it seems that there's no value transfer when you change the field in UI?
Markus
|
|
|
24/10/2009 08:35:52
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5538
Offline
|
Hi,
I again must say that you are right. IF initial value is null then there is exactly the problem you describe. Fix is part of next update (Mo).
Thanks again! Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
26/10/2009 11:25:16
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5538
Offline
|
...should now work with today's update...
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|