So, when the user changes the amount in the select box, the search executes and displays the chosen rows per page. The problem is, the "itemsPerPage" value always ends up being null. I've tried what seems like a million different things but can't seem to get it to work. I'm guessing it has something to do with the JSF phases which I am not too familiar with. I am about to switch to old school HTML forms. Can anyone offer an explanation as to why this isn't working (and perhaps a solution) ?
You haven't supplied an Action processor for this View. So, yes, you're missing one of the lifecycle components. The <h:form> element doesn't support an "action" attribute, so the attribute you coded is being ignored.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Mar 10, 2011
Thanks for the advice Tim.
I actually did a lot more research on the JSF lifecycle. Also, I'm using Seam which provides some conveniences for dealing with this.
Ultimately, using Seam, I changed the scope of my search component to PAGE which preserves the parameter through a post back. Then I used a page action (another Seam convenience) which executes code on any page load. These two together allowed me to accomplish my goal.