This content has been marked as final.
Show 2 replies
-
1. Re: Problem setting ActionExpression
sdelvalle Jan 28, 2008 2:49 PM (in response to sdelvalle)Sorry, forgot to specify environment
RichFaces 3.1.3
Facelets 1.1.13
JSF 1.2
GlassFish V2U1
Sergio -
2. Re: Problem setting ActionExpression
ilya_shaikovsky Jan 29, 2008 4:55 AM (in response to sdelvalle)you should add support as facet instead of children.
this :inputText.setValue("test"); HtmlAjaxSupport ajaxSupport = new HtmlAjaxSupport(); ajaxSupport.setId("support"); ajaxSupport.setActionExpression( FacesContext.getCurrentInstance().getApplication().getExpressionFactory().createMethodExpression( FacesContext.getCurrentInstance().getELContext(), "#{bean.action}", String.class, new Class[] {})); ajaxSupport.setEvent("onkeyup"); ajaxSupport.setReRender("output"); inputText.getFacets().put("a4jsupport", ajaxSupport);
should works fine