lightbulb,

JSF does not use URL-rewriting to pass data. Do you really need the URL to contain these parameters, or are you just trying to pass the information within JSF?

If you are making an URL for accessing some non-JSF page then you might try h:outputLink instead of h:commandLink.

Otherwise, I recommend using t:updateActionListener in this scenario. You can update some arbitrary managed bean property to set the row you want selected/operated on. f:param should work fine too, but don't expect to see the h:commandLink URL change.

Regards,

Jeff Bischoff
Kenneth L Kurz & Associates, Inc.

lightbulb432 wrote:
Within a h:dataTable's h:column I have a h:commandLink that I want to show a
specific URL parameter. Within the commandLink I therefore add an f:param,
but it doesn't seem to do anything in the generated URL.
Even if I have a static value like below, nothing happens (shouldn't every
generated URL have an ?paramName=1 appended to it?): Code: <h:commandLink action="${bean.method}" value="Do Method">
     <f:param name="paramName" value="1" />
</h:commandLink>

Why might this be happening? Also, when the param value is set to an EL expression, nothing appears.
But if I place the expression as just text within the h:column but outside
the commandLink it appears as it should (based on each row's value...)


Reply via email to