File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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}); ??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Listener not invoked with a built HtmlSelectOneMenu component