[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Get Component node properties  XML
Forum Index -> Development
Author Message
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.
CaptainCasa

Power User
[Avatar]

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
kasala

Power User

Joined: 10/08/2017 13:21:42
Messages: 35
Offline

thank captain it works fine for me.
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team