[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
t:colorfield in grid  XML
Forum Index -> Development
Author Message
mreich

Power User
[Avatar]

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
[WWW]
CaptainCasa

Power User
[Avatar]

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
mreich

Power User
[Avatar]

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?
[WWW]
CaptainCasa

Power User
[Avatar]

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
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

ok, here are the sources
 Filename ZonesDetailUI.java [Disk] Download
 Description
 Filesize 3 Kbytes
 Downloaded:  395 time(s)

 Filename zonesdetail.jsp [Disk] Download
 Description
 Filesize 2 Kbytes
 Downloaded:  373 time(s)

[WWW]
CaptainCasa

Power User
[Avatar]

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
mreich

Power User
[Avatar]

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
[WWW]
CaptainCasa

Power User
[Avatar]

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
CaptainCasa

Power User
[Avatar]

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
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team