aspose file tools*
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
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}); ??
 
Consider Paul's rocket mass heater.
 
subject: Listener not invoked with a built HtmlSelectOneMenu component
 
Similar Threads
Dynamic HtmlSelectOneMenu : How to set the selected value in dropdown?
populate selectOneMenu with list containing various type of object
Using disabled attribute in SelectOneMenu
Populated UISelect components via Database
Setting select items programatically