on 01-03-2006 11:27 AM
Hi all
I have a dropdownbykey UI element .it's getting value from EJB's.I want to perform a check to find if user has selected any element from it or not when I press a Submit button.Note that it is showing blank innthe dropdown initially.
Thanks
Ananda
Check the value of the context attribute to which the "selectedKey" property of the drop-down list is bound.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anandha,
Define a new context attribute of type say boolean and set its value to true in the onAction event of the dropdown.When the Save button is clicked check if the attribute is true/false to get the actual state, i.e, if the user has selected a value or not.
Hope this helps.
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ananda,
In the event handler of the button check the value of attribute bound to the selectedkey property UI element.Since it is null initially you can check its value
Regards
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.