Setters get not fired on a dataTable (using paging)

Problem: I use a dataTable in request scope and almost everyhting is working fine (I use an inputHidden to persist table property 'first'). I can page forward and backword.
The strange thing is, that if I navigate from page 1 to page 2 everything is working fine. All getters of the associated bean get called. But if I navigate from page 2 to 3 and so forth - no getters get called. But the actionListener is successfully called. The same problem If I navigate from page 2 to page 1. No getters are called, but the corresponding action is called.
Any known bugs? Ideas? Workarounds (without using session scope)?
Thanks.
Walter

I have simplified my table test project to allow further inspection.
Here is my code:
JSF-Page:
<f:view>
     <h:form>
          <h:inputHidden value="#{tt.first}"></h:inputHidden>
          <h:dataTable var="row" value="#{tt.model}" rows="5"
               first="#{tt.first}">
               <h:column>
                    <h:selectBooleanCheckbox value="#{row.selected}"></h:selectBooleanCheckbox>
               </h:column>
               <h:column>
                    <h:outputText value="#{row.name}"></h:outputText>
               </h:column>
               <f:facet name="footer">
                    <h:panelGroup>
                         <h:commandLink value="Previous"
                              actionListener="#{tt.onPreviousPage}"></h:commandLink>
                         <f:verbatim> </f:verbatim>
                         <h:commandLink value="Next" actionListener="#{tt.onNextPage}"></h:commandLink>
                    </h:panelGroup>
               </f:facet>
          </h:dataTable>
          <h:commandButton value="Submit"
               actionListener="#{tt.btnSubmit_OnClick}"></h:commandButton>
          <h:messages></h:messages>
     </h:form>
</f:view>
Backing-bean:
package tabletests;
import java.util.ArrayList;
import java.util.List;
import javax.faces.event.ActionEvent;
public class TableTestsBean {
     private List<TableTestsListItem> model;
     public TableTestsBean()
          model = new ArrayList<TableTestsListItem>();
          model.add(new TableTestsListItem("Worf"));
          model.add(new TableTestsListItem("Data"));
          model.add(new TableTestsListItem("Riker"));
          model.add(new TableTestsListItem("Picard"));
          model.add(new TableTestsListItem("Kirk"));
          model.add(new TableTestsListItem("Janeway"));
          model.add(new TableTestsListItem("Torres"));
          model.add(new TableTestsListItem("Neelix"));
          model.add(new TableTestsListItem("7of9"));
     public void setModel(List<TableTestsListItem> model)
          this.model = model;
     public List<TableTestsListItem> getModel()
          return model;
     private int first;
     public void setFirst(int first) { this.first = first; }
     public int getFirst() {     return first; }
     public void onNextPage(ActionEvent event){ first+=5; }
     public void onPreviousPage(ActionEvent event){ first-=5; }
     public void btnSubmit_OnClick(ActionEvent event)
          // Action listener gets successfully called, but
          // setters are not called!
"DataRow"-Bean:
package tabletests;
public class TableTestsListItem {
     private String name;
     private boolean selected;
     public String getName() {
          return name;
     public void setName(String name) {
          this.name = name;
     public TableTestsListItem() {}
     public TableTestsListItem(String name)
          this.name = name;
     public boolean getSelected() {
          return selected;
     public void setSelected(boolean selected) {
          this.selected = selected;
faces-config - Relevant part:
    <managed-bean>
          <managed-bean-name>tt</managed-bean-name>
          <managed-bean-class>tabletests.TableTestsBean</managed-bean-class>
          <managed-bean-scope>request</managed-bean-scope>
     </managed-bean>I would be very grateful if someone could test this code or give me a hint what is wrong.
Thanks.
Walter

Similar Messages

  • I have problem in mac store when i try to download app i get note (( app failed to download use the purchases page to try again ))

    i have problem in mac store when i try to download app i get note (( app failed to download use the purchases page to try again ))
    i try to downlod twitter and ccleaner but i can't open the app  ?!?!!!

    It can also be an iTunes issue. Many of us, including myself, are not used to the new interface of iTunes 11 and would find ways to downgrade the available iTunes 11 back to iTunes 10.7 in Mac OS Mavericks. The only issue with downgrading (using AppZapper and Pacifist) is that you will not be able to update/install apps from the App Store after rebooting the Mac.
    If you happen to have downgraded your iTunes in this method, then uninstall the iTunes 10.7 and reinstall iTunes 11 again - the App Store should resume its download/update function without any issue.
    Hope this helps.

  • Crystal Report Alerts not firing when no records are fetched from the DB

    Hello,
    The crystal report alert i have created in the report in the event of no records being fetched from the query is not firing.  The condition used is isnull ( count(DB Field ) ).
    Is there a limitation with alerts that they would be fired only when some records are fetched in the report.
    Appreciate any pointers
    -Jayakrishnan

    hi Jayakrishnan,
    as alerts require records to be returned here's what you will need to do:
    1) delete your current alert
    2) create a new formula with syntax like
                  isnull(DistinctCount ()) or DistinctCount () = 0
    3) create a new Subreport (which you will put in a report header)
    4) the subreport can be based off of any table
    5) have the subreport record selection always return only 1 record...for performance reasons
    6) change the subreport link to be based on the new formula
    7) the link will be a one way link in that you will not use the "Select data in subreport based on field" option
    8) now in the subreport, create the Alert based on the parameter created by the subreport link
    i have tested this and it works great.
    jamie

  • Keep getting not responding everytime i change to another site

    i change sites and i get not responding but if i use internet explorer this does not happen.
    what is wrong with firefox? i download new version and have even uninstalled it and reinstalled.

    Try to disable hardware acceleration in Firefox (you need to close and restart Firefox).
    * Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    * https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can check for problems with current Flash plugin versions and try these:
    * disable a possible RealPlayer Browser Record Plugin extension for Firefox and update the RealPlayer if installed
    * disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    * disable hardware acceleration in the Flash plugin
    * http://kb.mozillazine.org/Flash#Troubleshooting
    Also see these help articles:
    [[Firefox hangs or is not responding - How to fix]]
    [["Firefox is already running but is not responding" error message - How to fix it]]

  • ActionListener not firing within panelGrid (which is within a dataTable)

    I have a page with several forms on it:
    <h:form>
    ... commandLinks here are working
    </h:form>
    <h:form>
    <h:panelGrid>
    ...the actionListener here is firing
    </h:panelGrid>
    </h:form>
    <h:form>
    ... commandLinks here are working
    </h:form>
    <h:dataTable value="#{collection}" var="item">
    <h:column>
    <h:form>
    <h:panelGrid>
    ...actionListeners here ARE NOT FIRING!
    </h:panelGrid>
    </h:form>
    </h:column>
    </h:dataTable>
    I've tried many things to get this to work. I've checked spelling at least 10 times. I've put the whole page in a single form. Nothing seems to work. The bean associated with the actionListener is not even being instantiated unless I include a value binding expression in the form somewhere, but even then the listener is still not fired.
    So, please tell me if this is a known bug, or if it should work. I'm using JSF 1.1_1.
    All the data and form fields get displayed correctly, just the actionListeners are not firing. I've tried both methods of triggering an actionListener. Neither work.
    Why doesn't anyone from Sun post here anymore?????

    Could you please copy/paste the whole jsp page?I had to abandon the previous page structure due to time constraints. But, now I am having the same problem on another page, pasted below. In this case, the contactInfoForm.populate actionListeners are not firing:
    <?xml version="1.0" ?>
    <jsp:root version="2.0"
      xmlns:jsp="http://java.sun.com/JSP/Page"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:x="http://java.sun.com/jstl/xml"
      xmlns:fmt="http://java.sun.com/jstl/fmt"
      xmlns:t="http://jakarta.apache.org/struts/tags-tiles"
      xmlns:htm="http://jsftutorials.net/htmLib">
      <f:subview id="content">
        <htm:div styleClass="heading">
          <htm:h2>
             <h:outputFormat value="#{msgs[heading]}">
                <f:param value="#{param.firstName}" />
                <f:param value="#{param.lastName}" />
             </h:outputFormat>
          </htm:h2>
        </htm:div>
        <htm:div styleClass="contentContainer">
        <h:messages/>
        <h:form>
          <h:commandLink id="backToPersons" styleClass="commandLink1" action="section.persons">
             <h:outputText value="#{msgs['persons.common.command.backToPersons']}"/>
          </h:commandLink>
        </h:form>
        <h:form style="padding-top: 10px">
          <h:commandLink id="newContactInfo" styleClass="commandLink1" action="/persons/contactInfo/newContactInfo">
             <h:outputText value="#{msgs['persons.person.contactInfo.list.command.new']}"/>
             <f:param name="personId" value="#{param.personId}"/>
             <f:param name="firstName" value="#{param.firstName}"/>
             <f:param name="lastName" value="#{param.lastName}"/>
          </h:commandLink>
        </h:form>
        <h:form>
           <h:dataTable value="#{contactInfoForm.contactInfoList}" var="contactInfo" cellpadding="5" cellspacing="0" styleClass="dataTable" headerClass="dataTableHeader" rendered="#{contactInfoForm.hasContactInfo}">
              <h:column>
                <f:facet name="header">
                   <h:outputText value="#{msgs['persons.person.contactInfo.list.header.contactInfoId']}"/>
                </f:facet>
                <htm:center><h:outputText value="#{contactInfo.contactInfoId}" styleClass="dataTableContent"/></htm:center>
              </h:column>
              <h:column>
                <f:facet name="header">
                   <h:outputText value="#{msgs['persons.person.contactInfo.list.header.description']}"/>
                </f:facet>
                <h:outputText value="#{contactInfo.description}" styleClass="dataTableContent"/>
              </h:column>
              <h:column>
                <f:facet name="header"></f:facet>
                <htm:center>
                   <h:commandLink styleClass="commandLink1" action="/persons/contactInfo/viewContactInfo" actionListener="#{contactInfoForm.populate}">
                      <f:param name="firstName" value="#{param.firstName}"/>
                      <f:param name="lastName" value="#{param.lastName}"/>
                      <f:param name="contactInfoId" value="#{contactInfo.contactInfoId}"/>
                      <h:outputText value="#{msgs['command.view']}"/>
                   </h:commandLink>
                </htm:center>
              </h:column>
              <h:column>
                <f:facet name="header"></f:facet>
                <htm:center>
                   <h:commandLink styleClass="commandLink1" action="/persons/contactInfo/editContactInfo" actionListener="#{contactInfoForm.populate}">
                      <f:param name="firstName" value="#{param.firstName}"/>
                      <f:param name="lastName" value="#{param.lastName}"/>
                      <f:param name="contactInfoId" value="#{contactInfo.contactInfoId}"/>
                      <h:outputText value="#{msgs['command.edit']}"/>
                   </h:commandLink>
                </htm:center>
              </h:column>
           </h:dataTable>
           <h:outputText value="#{msgs['persons.person.contactInfo.list.noRecords']}" styleClass="copy2" rendered="#{not contactInfoForm.hasContactInfo}"/>
        </h:form>
        </htm:div>
      </f:subview>
    </jsp:root>

  • I have purchased Wedding Style By Miracle Design - it is showing in the downloads but I can not get it into lightroom - I am using a mac and the instructions are for windows.

    I have purchased Wedding Style By Miracle Design - it is showing in the downloads but I can not get it into lightroom - I am using a mac and the instructions are for windows.

    Return, cancel, or exchange an Adobe order

  • I have a 60 inch Sony XBR TV that has DVI input but not HDMI. I am using an adapter to get the video from my Apple TV, but the screen flashes a lot. Do I have any other choices other than buying a new TV?

    I have a 60 inch Sony XBR TV that has DVI input but not HDMI. I am using an adapter to get the video from my Apple TV to the Sony, but the screen flashes a lot. Do I have any other choices other than buying a new TV?

    Is this an iphone question?
    You have posted in the iphone forum.

  • I have an iMac OS 10.9.5 - Every time I turn on my system I get the message that it can not access icloud and to fix it using iCloud preferences. I do not want to access or use iCloud, how do I get the message to discontinue?

    I have an iMac OS 10.9.5 - Every time I turn on my system I get the message that it can not access icloud and to fix it using iCloud preferences. I do not want to access or use iCloud, how do I get the message to discontinue?

    Hello mrmacjohn,
    Verifying that any iCloud account that may be signed in is signed out should resolve this error.
    On your Mac, open iCloud preferences, then click Sign Out.
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Cheers,
    Allen

  • Hi I  newly started using Iphone 6, I am not getting all the applications list under Use Cellular date for to restrict my unwanted apps on cellular data

    Hi I  newly started using Iphone 6, I am not getting all the applications list under Use Cellular date for to restrict my unwanted apps on cellular data
    Please help me out

    Hi Rajesh778484,
    Welcome to the Apple Support Communities!
    I understand that some of your applications are not appearing under Settings > Cellular on your iPhone so that you can restrict or allow use of cellular data. If you have some installed applications on your iPhone that are not showing here, the first troubleshooting step I would suggest would be to reset your iPhone. Please refer to the attached article for information on how to perform a reset. 
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Best regards,
    Joe

  • I am unable to get Lightroom Mobile to work on my home network. The Ipad says "There are no collections to sync, enable lightroom mobile on your computer", but it is enabled.  I got it to work one time on another network but not at home where I use Lightr

    I am unable to get Lightroom Mobile to work on my home network. The Ipad says "There are no collections to sync, enable lightroom mobile on your computer", but it is enabled.  I got it to work one time on another network but not at home where I use Lightroom.

    Hi,
    could you please give us some info on what kind of network you have?
    Can other application communicate with the web?
    Thanks,
    Ignacio

  • I'm getting this message: "Firefox prevented this page from automatically redirecting to another page." but unchecking the box for "warn me when websites try to redirect or reload the page" has not helped. I'm using Firefox 3.6.3 on Mac OS 10.6.3. M'aidez

    Can't load Google Calendar. I'm getting this message: "Firefox prevented this page from automatically redirecting to another page" but unchecking the box for "Warn me when websites try to redirect or reload the page" has not helped. I'm using Firefox 3.6.3 on Mac OS 10.6.3. It's not reported as a generalised problem in Dashboard. Google Calendar opens and works fine on my 12" PowerBook G4, but this is a recent problem on my G5 13" MacBook Pro. Mayday!
    == URL of affected sites ==
    https://www.google.com/accounts/ServiceLogin?service=cl&passive=1209600&continue=http%3A%2F%2Fwww.google.com%2Fcalendar%2Frender%3Ftab%3Dmc%26pli%3D1&followup=http%3A%2F%2Fwww.google.com%2Fcalendar

    No I'm not using NoScript, but I'm pleased to report that the problem got resolved by deleting the original bookmark, logging in again, opening Google calendar, then bookmarking it again.

  • Sharepoint 2013 document library incoming email without attachment not firing event and not getting email

    sharepoint document library incoming email without attachment not firing event and not getting email
    If email contains attachment it works. Is there any setting in document library that will allow emails and eventhandler to fire with out attachment?
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    What is the purpose of email sent to document library if no attachment. What document library will do what that email if it cant find attachment to save and create a spdoc object. If you want to store email/communication body then opt for site mailbox
    app.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • HT4623 After i updated my iPhone i realized i do not have my camera anymore how to get it back? I also using a new notebook so I do not have a back up to transfer it from.  Please help

    After i updated my iPhone i realized i do not have my camera anymore how to get it back? I also using a new notebook so I do not have a back up to transfer it from.  Please help

    I'm assuming you mean you don't have your camera application (which is not saved on any backup anyway).
    One way to find it is to get to your home screen, swipe the screen from right to left, and type "Camera" in the search field.  Camera is a core Apple app and cannot be deleted, so it must be there somewhere.
    An alternate approach is to do Settings > General > Reset > Reset Home Screen Layout

  • Acrobat Pro X will not open today. I used it a few weeks ago, and the rest of my CS6 Suite of programs are working. How do I get Acrobat Pro X to work again?

    Acrobat Pro X will not open today. I used it a few weeks ago, and the rest of my CS6 Suite of programs are working. How do I get Acrobat Pro X to work again?

    Please refer
    Doesn't launch after 30 days | Installed as part of a CS6 suite

  • Not able to get all the results if i use "get-spdeletedsite" command

    Hi everyone,
    I am not able to get all the results when I use the below powershell command.
    get-spdeletedsite -limit all
    It is giving me only one site, but infact we have more than 100 deleted sites.
    If I use the normal command like below it is giving the below output
    get-spdeletedsite
    Can any one tell me, how can I get all the deleted sites ?
    Best Regards
    Anil Alladi

    Hi  Anil,
    For the Limit parameter of Get-SPDeletedSite cmdlet, when we specify its value to ALL, it  will return all site collections for the given scope.
    For your scenario, the script “Get-SPDeletedSite –Limit ALL” will return all deleted site collections in your SharePoint environment.
    If you want to get all deleted site, you can export the result to csv as below:
    Get-SPDeletedSite | export-csv out.csv -notypeinformation
    Reference:
    http://technet.microsoft.com/en-us/library/hh286316(v=office.15).aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

Maybe you are looking for

  • Creating a Fixed Length File

    Greetings, I'm creating an application that need to create a fixed length file on a UNIX system and need help. I have an internal table(s) which contain structures with fields of different lengths (type c) and so I have a routine that concatenates th

  • .MTS Audio Files help needed

    I'm having a little trouble with editing. The footage I am editing are .MTS files. Both the audio and video. The video is playing fine (well, as best it can for my rubbish uni computers) but I am having trouble hearing the audio - and I'm getting lot

  • Can't get GarageBand to record with line in

    I just got my MacBook Pro last week and I bought a Monster 1/4" to 1/8" inch adapter so that I could record my acoustic/electric guitar with Garageband. I know that if you want to use the line in to record, you have to select it in the Sound area of

  • Reducing size of iPhotos

    I have an individual photo in my iphoto library - I want to upload this to send to a magazine - the original image is over the 1 MB limit. How do I reduce the size of the photo?

  • Missing in /dev/

    Why i haven't /dev/ttyUSB0 and 1 ?