This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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
Similar Threads
commandLink param problem
Birth Date nightmare - passing variable between beans and java objects
jsf newbie, navigation not working
Providing anchor to columns in a datatable
problem JSF - datatable from DB