• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Parameters not passed into the s:link

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 <h:outputText> 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried using the h:commandLink and h:outputLink 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.
 
Everybody's invited. Except this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic