This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Listener not invoked with a built HtmlSelectOneMenu component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Listener not invoked with a built HtmlSelectOneMenu component " Watch "Listener not invoked with a built HtmlSelectOneMenu component " New topic
Author

Listener not invoked with a built HtmlSelectOneMenu component

Achala pra
Greenhorn

Joined: Feb 16, 2011
Posts: 2
I am using JSF 2.0 , primefaces 2.2...

HtmlSelectOneMenu htmlSelectOneMenu = new HtmlSelectOneMenu();
htmlSelectOneMenu.setId("testId");
List<SelectItem> test = getItems(filterData);
UISelectItems items = new UISelectItems();
items.setValue(test);
htmlSelectOneMenu.getChildren().add(items);
MethodExpression valueChange = context.getApplication().getExpressionFactory()
.createMethodExpression(context.getELContext(),
"#{TestHelper.hanldeChangeMethodExpression}", null,
new Class[] {ValueChangeEvent.class});
.....................................................................
...............//other code//...................................

private List<SelectItem> getItems(FilterData filterData)
{
List<SelectItem> items = new ArrayList<SelectItem>();
.............other code........
....................................
return items;
}


should i use the valueChange.invoke(context.getELContext(), new Class[] {ValueChangeEvent.class}); ??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Listener not invoked with a built HtmlSelectOneMenu component
 
Similar Threads
populate selectOneMenu with list containing various type of object
Using disabled attribute in SelectOneMenu
Dynamic HtmlSelectOneMenu : How to set the selected value in dropdown?
Setting select items programatically
Populated UISelect components via Database