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

  • SEARCH
  • Home
  • 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 7905797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:38:29+00:00 2026-06-03T10:38:29+00:00

Since any JSF page gets transformed at the server side into its equivalent HTML

  • 0

Since any JSF page gets transformed at the server side into its equivalent HTML and sent to the client for rendering, and JQuery at the client side takes the HTML and re renders it.

In theory it should be possible to take the HTML that is a generated by JSF and wrap it into JQuery, if so I would like to know how it’s done. Specifically using RichFaces as the JSF implementation if possible.

<rich:dataTable id="table">          
  <rich:column>

  </rich:column>
</rich:dataTable>

The above snippet of JSF is transformed into it’s equivalent HTML which is this

<table id="table">
  <tr>
    <td></td>
  </tr>
</table>

Shouldn’t it be possible to do something like this

<script type="text/javascript">
   $(document).ready(function () {
     $('#table').dataTable();
}
</script>

I’ve already tried that but it doesn’t seem to work.

So please if anyone has any hints, I’d be more than grateful.

  • 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-06-03T10:38:33+00:00Added an answer on June 3, 2026 at 10:38 am

    Mixing JSF and jquery is doable but there are some gotchas.

    JSF is taking over your ids, so if table is in a form with id “form”, the actual element id in html would be by default “form:table”. I think jquery could have a problem with colon in a selector, so you may mark your table with a class and select by that:

    <rich:dataTable styleClass="my-table">          
      <rich:column>
    
      </rich:column>
    </rich:dataTable>
    

    and set selector as:

    <script type="text/javascript">
       $(document).ready(function () {
         $('.my-table').dataTable();
    }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Its been a while since I've done any hard core web design, so I
Since I migrated to Snow Leopard I can't run any Rake command from the
Since Google App Engine is a PaaS does it use any hypervisor? it is
It's been yonks since I've done any VB6... I need to take control of
Is there any way to get the # of months and years since a
Do you know of any practical use of If-Unmodified-Since in the wild? From the
I'm unable to run any selenium tests since I updated Firefox to 3.6. Is
It's been years (and years) since I've done any regex, so turning to experts
In a panic since I'm trying to meet a deadline so appreciate any feedback
I was trying to create an extension that could slice any array-like class (since

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.