Author |
Message |
15/07/2011 20:34:49
|
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
|
|
|
15/07/2011 21:16:41
|
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
|
|
|
15/07/2011 21:38:49
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5526
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 |
|
|
15/07/2011 21:53:45
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5526
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 |
|
|
15/07/2011 21:56:08
|
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!!
|
|
|
|