This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes Hyperlinked datatable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Hyperlinked datatable" Watch "Hyperlinked datatable" New topic

Hyperlinked datatable

Mani Bas

Joined: Jul 28, 2009
Posts: 1

i'm building a page which has a table with 5 columns.
for example, imagine i have 1 to 5 items and i click the item number 2.
i want to see the page with the details of the item 2.
I used the following code to create a hyperlinked column and called the bean's load() method to save the param values.
<h:column binding="#{LoadRejectedTransactions.column2}" id="column2">
<f:facet name="header">
<hutputText id="outputText5" value="RT_Error_Code"/>
<h:commandLink action="#{rejectedTransactionHandler.load}" id="linkAction1" immediate="true">
<f:param name="RTErrorCode" value="#{currentRow['RT_Error_Code']}" />
<hutputText binding="#{LoadRejectedTransactions.outputText1}" id="outputText1" value="#{currentRow['RT_Error_Code']}"/>

Next I enter the faces-config.xml file as follows:

The problem is my details page called CorrectRejectionsTransaction.jsp does not get called and I get the following error:

Exception Details: java.lang.ClassCastException
java.lang.Long cannot be cast to java.lang.String

Possible Source of Error:
Class Name: com.sun.rave.web.ui.appbase.renderer.CommandLinkRenderer
File Name:
Method Name: encodeBegin
Line Number: 236

Please advise How to redirect the passed parameter from the hyperlinked column to a details page with all the values passed from the previous page.

I agree. Here's the link:
subject: Hyperlinked datatable