Author |
Message |
22/11/2017 03:28:37
|
kasala
Power User
Joined: 10/08/2017 13:21:42
Messages: 35
Offline
|
Hi Captain, I just want ask if I can get the specific property of a component node, like if I build a button node and set the text property. I can get the text property of the button.
thanks Captain.
|
|
|
22/11/2017 04:25:30
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5521
Offline
|
Hi,
because we are based on JSF there is of course some way... but we do not want to encourage you at all to use this! ;-) The view logic (== your managed bean implementation) should be decoupled from the visual components as much as possible.
But there is something, e.g. with a button: each component has three attributes: COMMENT, REFERENCE, CONFIGINFO. The value of these fields is available with all events: BaseActionEvent.getSourceComment(), getSourceReference(), getSourceConfigInfo().
So if you want to identify a button during event processing, please do so using one of the three attributes.
And of course: if you want to dynamically change the text of the button: assign an expression for the text...
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
22/11/2017 05:00:10
|
kasala
Power User
Joined: 10/08/2017 13:21:42
Messages: 35
Offline
|
thank captain it works fine for me.
|
|
|
|