This content has been marked as final.
Show 6 replies
-
1. Re: Exception using HtmlPanelMenuItem: wrong number of argum
ilya_shaikovsky Dec 10, 2008 5:05 AM (in response to kus)You defines action not actionListener in this way. So remove action event parameter.
Just JSF sources listing/** * <p>Set the {@link MethodExpression} pointing at the appication * action to be invoked, if this {@link UIComponent} is activated by * the user, during the <em>Apply Request Values</em> or <em>Invoke * Application</em> phase of the request processing lifecycle, * depending on the value of the <code>immediate</code> * property.</p> * * <p>Any method referenced by such an expression must be public, with * a return type of <code>String</code>, and accept no parameters.</p> * * @param action The new method expression */ public void setActionExpression(MethodExpression action);
-
2. Re: Exception using HtmlPanelMenuItem: wrong number of argum
kus Dec 11, 2008 2:45 AM (in response to kus)So it's not possible to pass any argument? I want to show a list of items, each with a different argument (id of the item).
-
3. Re: Exception using HtmlPanelMenuItem: wrong number of argum
ilya_shaikovsky Dec 11, 2008 5:01 AM (in response to kus)use f:param
-
4. Re: Exception using HtmlPanelMenuItem: wrong number of argum
kus Dec 11, 2008 5:09 AM (in response to kus)Thanks for your reply - good idea, but I have to build the menue on the java side. So I cannot use the f:param tag...
-
5. Re: Exception using HtmlPanelMenuItem: wrong number of argum
ilya_shaikovsky Dec 11, 2008 5:48 AM (in response to kus)how about something like
HtmlCommandButton button = new HtmlCommandButton(); UIParameter parameter = new UIParameter(); button.getChildren().add(parameter);
-
6. Re: Exception using HtmlPanelMenuItem: wrong number of argum
kus Dec 11, 2008 6:00 AM (in response to kus)Yes! It works - you saved my day! Thanks a lot!