[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Grids: Flush when leaving area  XML
Forum Index -> Development
Author Message
slist

Power User
[Avatar]

Joined: 20/03/2013 14:13:15
Messages: 37
Location: Berlin
Offline

Hi,

what I wanted to do today was a mechanism that saves data (=row) after deselection. That works (overriding onDeselect()).
But the border case in which my grid only holds one row makes some trouble (and probably when I 'leave the grid area', too)..

I set attributes flusharea and rowflusharea to true, avoidroundtrips to 1 and assigned an actionListener. Setters are called correctly (i.e. when my focus leaves the grid).
My expectation is that the actionListener is called afterwards, but obviously it is not. Did I miss something?

Thanks for your help and

BR


PS: Still using v.5_0_20140217, hope it's got nothing to do with that...
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

...just for the hack: could you put the FIXGRID in a surrounding PANE and define the FLUSHAREA on PANE level (together with corresponding ACTIONLISTENER)?

This should work in any case.

Thanks + Regards, Björn

Björn Müller, CaptainCasa GmbH
slist

Power User
[Avatar]

Joined: 20/03/2013 14:13:15
Messages: 37
Location: Berlin
Offline

Hi,

this does indeed work. But it somehow seems a bit dirty. ;-)

Was the avoidroundtrips a bad decision?

BR
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

Thanks for your update!

@Was the avoidroundtrips a bad decision?
...no, I believe, that there were too many action events in the grid processing at one time and one did override the other. ("I believe" == I looked into the code, but did not check by debugging the scenario)

Now things are decoupled, so the action of the PANE has nothing to do with the action on the FIXGRID.

Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team