I'm trying to understand why PageReference.getPage() would return null. I assume that when some criteria is met, a page can be expired from the cache. Are there any docs on this behavior?
I have a case where the onSubmit() method is setting the response page using a PageReference to the previous page. Most of the time it works fine. But when I perform a very specific function on that page, then the PageReference returns null. I have checked the obvious - the PageReference is not fiddled with after it is passed into the page. The behavior is 100% repeatable and does not seem to be affected by how many other pages I have visited before performing the offending operation. The operation in question seems to be adding a specific component to the AjaxRequestTarget in AjaxFormComponentUpdatingBehavior.onUpdate(). I add two components to it. One of those adds appears to cause the failure. If I comment that out, that section of the page does not get updated and the failure does not happen. But I'm having a hard time seeing how the symptom (PageReference.getPage() returning null) is at all related to the apparent cause (AjaxRequestTarget. addComponent(specific_component)). I must be missing something. Can anyone point me in the right direction? TIA! Chris -- ------------------------------------------------------------------------ - Chris Merrill | Web Performance, Inc. [email protected] | http://webperformance.com 919-433-1762 | 919-845-7601 Web Performance: Website Load Testing Software & Services ------------------------------------------------------------------------ - --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
