Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setting attribute using t:commandLink  RSS feed

 
allen gilbert
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am displaying data in a <h:dataTable>.

I have to include the column headers in a <h:commandLink> so that when user clicks on a column name, that value gets captured and is set in a property in the bean.

How do I do that ??
 
Henry Lowell
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Have you tried that?
 
allen gilbert
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried action and actionListener options...

But when I run the jsp and click on the link, I get a stupi javascript error saying "Object required"
 
allen gilbert
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My jsp code is very simple

<f:view>
<BODY><hx:scriptCollector id="scriptCollector1">
<P></P>
<h:form styleClass="form" id="form1">
<h:commandLink styleClass="commandLink" id="link1" value="test"
actionListener="#{pc_Test.listen}">
</h:commandLink>
</h:form>
</hx:scriptCollector></BODY>
</f:view>
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!