File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Parameters not passed into the s:link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Parameters not passed into the s:link " Watch "Parameters not passed into the s:link " New topic
Author

Parameters not passed into the s:link

Patricia Teoh
Greenhorn

Joined: Feb 25, 2005
Posts: 5
Hi All,

I am currently using the jsf facelets and core tags to perform a loop to populate a menu list. Within each menu entry, there will be a list of parameter inside it. So in order for me to print out the link, I would need to do a nested loop to pass in all the parameter list into the s:link. However, i am unable to. I did a <hutputText> to print out the parameter values and I managed to but when I tried to pass the values into the <f:param> tag, seems like it doesn't display the parameters at all.



Is this a problem with nested loops? Please advise.

Thanks
Patricia Teoh
Greenhorn

Joined: Feb 25, 2005
Posts: 5
Anyone can help out with this? It has been bothering me for quite some time. Not sure if there are other alternatives.
Hiren Dutta
Greenhorn

Joined: Dec 30, 2005
Posts: 10
try to use commandLink or outputlink with the same. It should work
Patricia Teoh
Greenhorn

Joined: Feb 25, 2005
Posts: 5
I tried using the h:commandLink and hutputLink and it didn't work. Got it solved by using c:forEach tag in jstl. This is due to the c:forEach being compile time loop and ui:repeat render time loop. The values of c:forEach loop will be preloaded thus the parameters will be populated when it encounters the s:link tag.

I guess this is the reason why it works with the c:forEach tag.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parameters not passed into the s:link