Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6154389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:15:18+00:00 2026-05-23T20:15:18+00:00

I am using an extendedDataTable from Richfaces 4. I want to show a detail-page

  • 0

I am using an extendedDataTable from Richfaces 4. I want to show a detail-page for the element in a row when the user clicks it. Therefore I have added something like

onrowclick="showDetails(#{item.id})"

to the table. This triggers a corresponding <a4j:jsFunction/> tag. This is working so far.

However, one of the columns has a commandLink in it (for switching to an edit-view of the details). The link works in webkit-based browsers (Chrome/Safari). But IE and firefox only execute the onclick on the row. The commandlink doesn’t work there.

Is it somehow possible to only set an oncolumnclick or the columns, that do not contain the commandlink? I havn’t found a way to add an onclick-handler to specific columns (I am using rich:column for the columns.)

Or is there a better/cleaner/nicer way to achive the “click somewhere in the row to show details, click the link in the last column to show the edit view”-behaviour I am after?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:15:19+00:00Added an answer on May 23, 2026 at 8:15 pm

    My current workaround HACK is to not use the onrowclick but add a styleClass="clickable" to all my columns except the one with the link. In the first column, I added the following:

    <h:outputText value="#{item.id}" style="display: none;" styleClass="id"/>
    

    Then after the table I use the following jQuery:

    <rich:jQuery selector=".myTable td.clickable" query="live('click', function(event) {
                    showDetails($(this).parent().children().children('.id').text());
                  });"/>
    

    I really don’t like this solution, but it is working fine so far.

    I am still open for better solutions though 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using Richfaces 4.1.0, and I am trying to use an extendedDataTable. I
Using php/html, I want to retrieve email addresses (plus other information) from MySQL and
Using Java,I have to fetch multiple sets of values from an XML file to
Using Yii, I want to delete all the rows that are not from today.
Using CMake I want to check if a particular function (cv::getGaborKernel) from OpenCV library
Using C#, I want to show the image in the Access column but failed
I am using richfaces extendedDataTable as an editable grid. The build-in sorting always sorts
Using the http://www.ifans.com/forums/showthread.php?t=132024 post from another question i am allowing the user to enter
Using a populated Table Type as the source for a TSQL-Merge. I want to
Using android 2.3.3, I have a background Service which has a socket connection. There's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.