Probably not the reply you want, but you would inject the param into your
backing bean like this:

   <managed-bean>
       <managed-bean-name>bean</managed-bean-name>
       <managed-bean-class> com.SomeBean</managed-bean-class>
       <managed-bean-scope>request</managed-bean-scope>
       <managed-property>
           <property-name>paramToSet</property-name>
           <value>#{ param.paramName}</value>
       </managed-property>
   </managed-bean>

Or simply grab it from the Request parameters in your code.

If you really need to generate a proper url, you can use the outputLink
component.

Cheers,
Mike


On 09/02/07, lightbulb432 <[EMAIL PROTECTED]> 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...)
--
View this message in context:
http://www.nabble.com/param-not-appearing-in-commandLink-tf3201274.html#a8888661
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Reply via email to