Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Checkbox with datascroller

Posted on 2009-07-13
9
Medium Priority
?
1,164 Views
Last Modified: 2012-05-07
HI Experts

I have a datatable that display 10 records and use the datascroller to view the other data. Now when i select a records from the first page and a records from the second page and want to perform a update to does not allow me. Can someone help me to ensure that when I select records from the first page and second page that it keep all select records and do my update
Here is my code for the datasroller
<rich:datascroller fastControls="hide" boundaryControls="hide" style="width=100%; nowrap=true; cellpadding=2;" for="tableData" renderIfSinglePage="false" maxPages="10">
                   <f:facet name="first">
                         <h:outputText value="First"/>
                   </f:facet>
                   <f:facet name="last">
                         <h:outputText value="Last"/>
                   </f:facet>
                   <f:facet name="next">
                         <h:graphicImage url="images/form_button_next.gif"></h:graphicImage>
                   </f:facet>
                   <f:facet name="previous">
                         <h:graphicImage url="images/form_button_previous.gif"></h:graphicImage>
                   </f:facet>
             </rich:datascroller>
______________________________________________________________________
 
Here is my code for the checkbox
 
              <h:column>
                        
                              <f:facet name="header">
                                    <h:outputText value="Select Assets" />
                              </f:facet>
 
                              <h:selectBooleanCheckbox id="mycheckbox"
                                    value="#{viewsearch.selected}"></h:selectBooleanCheckbox>
                                    
                        </h:column>
 
 
__________________________________________________________________________
 
Here is my code for the command button that I use to render the section to update
 
<h:commandButton id="webPageUpdate" value="Update table values"
                        action="#{transferAssetBean.tableUpdate}">
                  </h:commandButton>
 
 
-----------------------------------------------------------------------------------------------------------
 
I then use this command button that calls a method to perform my update
 
                  <h:commandButton id="saveChanges" value="Save latest changes"
                        action="#{transferAssetBean.updateButton}">
                  </h:commandButton>

Open in new window

0
Comment
Question by:ablsysadmin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
9 Comments
 

Author Comment

by:ablsysadmin
ID: 24869239
Hi  Experts

I have tries so many things but I am still loosing the selected item. If I want to update a selected item from page1 and page2 it looses the selected item from page1 and only takes page2. I want to be able to select items from different pages in my datatable and perform an update

0
 

Author Comment

by:ablsysadmin
ID: 24912297
Hi

object that this call be deleted. Please there is someone that will assist me
0
 
LVL 19

Accepted Solution

by:
Kuldeepchaturvedi earned 1000 total points
ID: 24923650
try following
<rich:datascroller fastControls="hide" boundaryControls="hide" style="width=100%; nowrap=true; cellpadding=2;" for="tableData" renderIfSinglePage="false" maxPages="10">
                   <f:facet name="first">
                         <h:outputText value="First"/>
                   </f:facet>
                   <f:facet name="last">
                         <h:outputText value="Last"/>
                   </f:facet>
                   <f:facet name="next">
                         <h:graphicImage url="images/form_button_next.gif"></h:graphicImage>
                   </f:facet>
                   <f:facet name="previous">
                         <h:graphicImage url="images/form_button_previous.gif"></h:graphicImage>
                   </f:facet>
<a:support event="onpagechange"/>
             </rich:datascroller>

0
 

Author Closing Comment

by:ablsysadmin
ID: 31602949
excelent
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question