2 Replies Latest reply on Nov 20, 2007 7:50 AM by Yevgen Kravchenko

    scrollabledatatable qns

    Victoria S Newbie

      Hello Everyone,

      I have a few questions about scrollableDataTables.

      1. How do you stop the column headers being re-sizable? I have set them to a fixed size using a style sheet but they have a re-size bar...

      2. My table at present is just a mock table with a few users in it, but I have a seperate panel to create more users. The table gets updated with the newly created users fine but only if I haven't scrolled down. If I've scrolled down and then add a new user I lose users and the table gets very messy!

      <rich:scrollableDataTable rowKeyVar="rkv" height="250px" width="700px" id="usersList"
      columnClasses="columnWidth120, columnWidth120, columnWidth120"
      value="#{UserManagement.users}" var="Users">

      (incase it helps)

      3. I struggled for a long time to get row clicks to pass to the backing bean. In the end I used a4j:support tags which I found on this post - http://jboss.com/index.html?module=bb&op=viewtopic&t=120431.

      <a4j:support event="onRowClick" reRender="UserDetails, UserPerformance, CreateUser">
      <a4j:actionparam name="userInstance" value="#{Users.smaAccountName}" assignTo="#{UserManagement.selectedUserSMAAccountName}"/>

      Is this the best way to get row clicks or is there a better way? The main disadvantage I find is that the screen flicks as it changes the data.

      I realise some of these questions are probably basic, but I'm new to faces and rich faces and really appreciate your help.

      Thank you