This discussion is archived
0 Replies Latest reply: Mar 10, 2012 6:04 AM by 923021 RSS

JSF 2.0 commandLink link, outputLink, etc

923021 Newbie
Currently Being Moderated
I have a paragraph like below

Nowis the time for all good men to come to the aid of their country. If
they don'e it could be the end of us

I want to put a command link in this paragraph for say "good men" so it looks like this

Nowis the time for all good men to come to the aid of their country. If
they don'e it could be the end of us

When I use the <h:commandLink action="#{mybean.clickLink}" value="good men"/>, the link works just fine, but renders like this on the page

Nowis the time for all
good men
to come to the aid of their country. If they don'e it could be the end of us

Is there anyway to keep the <tr></tr> from rendering around the link when it's turned into HTML? Is there another tag that will still let me use action="#{mybean.clickLink}"???? This link MUST go back through the server.

Thanks,

Doug

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points