wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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}); ??
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Listener not invoked with a built HtmlSelectOneMenu component