[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Flush on cell level to MBean action handler  XML
Forum Index -> Development
Author Message
unger

Power User

Joined: 22/07/2008 05:19:28
Messages: 261
Offline

Hello Community,

in a (dynamic) grid I want to be informed about every change in special cells. I want to implement only one Listener inside the Bean for all the many cells. So I think, setReference(someKey) would be useful to get the cell making the call:

fieldNode4WeightPercent.setReference(dataHolderKey);
fieldNode4WeightPercent.setFlush("true");
fieldNode4WeightPercent.setActionListener("#{" + disp + ".MaterialEditorMBean.onCompositionGridAction}");


Coming to the handler:

public void onCompositionGridAction(ActionEvent ae) {
BaseActionEvent bae = (BaseActionEvent) ae;
String dataHolderkey = bae.getSourceReference();
...

Flush works. But dataHolderkey is null.
Under what circumstances - I use it in several methods where it works fine - is reference not submitted to the action listener?

Regards
Joachim Unger
unger

Power User

Joined: 22/07/2008 05:19:28
Messages: 261
Offline

Debug Info:

Object m_internalReference= null


Where can I grab my reference id out?


Regards,

J.Unger
CaptainCasa

Power User
[Avatar]

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

Hi,

yes, we can reproduce.
The COMMENT is coming through, but the REFERENCE is null, as you describe.

We just check + will fix (or explain...)

Thanks + Regards,
Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

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

...yes, there is a special treatment of REFERENCE... From next update on the reference will be correctly passed. Thanks!

Regards, Björn

PS: the special treatment is: if the the reference is built in the way "expression:.{...}" then the ".{...}" is transferred into the absolute expression "#{d.XxxxUI.gird.rows[i]....}"

Björn Müller, CaptainCasa GmbH
unger

Power User

Joined: 22/07/2008 05:19:28
Messages: 261
Offline

So I will (uncommented) use comment ;-)

Thank You!

See You in .. next come together! Nice place!!
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team