That won't work: You're manually sending the ajax request, which
overrides anything in the param. It might work in some situations,
but I wouldn't ever do it that way. (You can look at the rendered
JavaScript on the page to try to figure it out if you simply must use
jsf.ajax.request.)
If you instead use an ajax tag, it *should* work. I've got a test for
that with a commandButton, and the link should work the same. If it
fails, let me know by filing a bug.
<h:commandLink id="id" action="#{bean.do}">
<f:ajax execute="@form" render="form:panel"/>
<f:param name="param1" value="#{1}" />
</h:commandLink>
Jim
On 8/14/09 12:49 AM, webtier_at_javadesktop.org wrote:
> Hi,
>
> Is there a way to pass a parameter with ajax enabled commandLink?<f:param does not work.
>
> <h:commandLink id="id" action="#{bean.do}" onclick="jsf.ajax.request(this, event, {execute: 'form', render: 'form:panel'}); return false;">
> <f:param name="param1" value="#{1}" />
> </h:commandLink>
> [Message sent by forum member 'gabox01' (gabox01)]
>
> http://forums.java.net/jive/thread.jspa?messageID=360452
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>