Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parameters not passed into the s:link

 
Patricia Teoh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try to use commandLink or outputlink with the same. It should work
 
Patricia Teoh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic