Hi friends
In the com.sun.webui.jsf.model.Option constructor we can set an Object for value but for retrieving this object in the next level I encounter some problem.
I write this code for create an Option for a ListBox :
Option option = new Option(new MyEntity(1,"Saeed"),"Saeed") ;
Then I add this Option in the my ListBox .
In the valueChangeListenerExpression method I want to get MyEntity but I cannot retrieve that object I only access to the toString() value of my Object !!!!!!
Conclusion: we can only set primitive object and their wrapper in the values of ListBox component .
Please insert your comment
Bye friends
In the com.sun.webui.jsf.model.Option constructor we can set an Object for value but for retrieving this object in the next level I encounter some problem.
I write this code for create an Option for a ListBox :
Option option = new Option(new MyEntity(1,"Saeed"),"Saeed") ;
Then I add this Option in the my ListBox .
In the valueChangeListenerExpression method I want to get MyEntity but I cannot retrieve that object I only access to the toString() value of my Object !!!!!!
Conclusion: we can only set primitive object and their wrapper in the values of ListBox component .
Please insert your comment
Bye friends