the workaround i have put in place (which for all intents and purposes does work) is to remove the required parameter from the viewParam and then check for null in setting the bean field.
in terms of the framework though, should an ajax request re-render the view? isn't the idea of using ajax to avoid re-rendering?
It shouldn't be doing a full submit for sure. You've not posted enough code for me to be able to see what is going wrong
really but you don't need a view parameter. You're not navigating to a different view or invoking an action, simply updating
an area on the same page? keep the setPropertyActionListener and lose the f:viewParam, that should do it.
Freelance Java Enterprise Developer
Spring Oracle SQL JPQL Sybase EJB CDI Glassfish Apache JAX-RS Primefaces UNIX Paypal and more..
The view param is for when the page is loaded, to get the querystring from the request. I would have thought that once the page is loaded though, this is not used again, so each ajax request should only submit the form/a4j:region and re-render the elements specified by the render attribute of the button.
I have just noticed that the buttons are inside an a4j:region but not in a h:form, could this be causing the problem?
>not in a h:form, could this be causing the problem?
definitely, they'll need to be inside an h:form for sure