This content has been marked as final.
Show 4 replies
-
1. Re: setPropertyActionListener
elf Mar 23, 2009 11:39 AM (in response to elf)please help me
How I can dynamically create <f:setPropertyActionListener> and use it ?
Or <f:attribute> ?
Please point me to the some manual or code example. -
2. Re: setPropertyActionListener
ilya_shaikovsky Mar 23, 2009 11:42 AM (in response to elf)"In some cases it works in some not. "
Can't confirm this. show the problematic code. -
3. Re: setPropertyActionListener
elf Mar 23, 2009 11:53 AM (in response to elf)I have a lot of dynamically generated code :( it would be hard to meet ends there.
When I use HtmlAjaxCommandLink inside form - everything works fine.
But THE SAME CODE I use inside form, inside HtmlExtendedDataTable (I have one column with HtmlAjaxCommandLink elements) and prameter do not pass to the bean.
Please point me how I can use <f:setPropertyActionListener> or <f:attribute> dynamically instead of HtmlActionParameter. May be it solve my problem. -
4. Re: setPropertyActionListener
nbelaevski Mar 23, 2009 1:20 PM (in response to elf)ValueExpression target = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), "#{ctrl.id}", Long.class); ValueExpression propertyValue = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(),"#{row.id}", Long.class); SetPropertyActionListenerImpl listener = new SetPropertyActionListenerImpl(target,propertyValue); a4jSupportComponent.addActionListener(listener);