Werner and Michael,

I will employ the workaround suggested to see if it helps.
I do have a mix of f:ajax and h:form on my facelet. showShoppingCart.xhtml

<h:commandButton type="submit" value="Update"
styleClass="commandExButton" id="updateButton"
action="#{garageSaleJSFActions.updateCart}">

<f:ajax execute="@form"
render="cartForm:cartTable cartForm:subTotal cartForm:taxAmount
cartForm:total" />
</h:commandButton>

Once this ViewExpiredException occurs does it affect other pages that do
NOT have multiple forms ?

--Thanks,
Rohit

On Wed, Dec 28, 2011 at 4:55 PM, Werner Punz <[email protected]> wrote:

> Do you use multiple forms in conjunction with JSF ajax?
>
> Werner
>
>
> Am 28.12.11 18:30, schrieb Rohit Kelapure:
>
>> Dear all,
>>
>> We have run into an issue with our application in production wherein once
>> a
>> database rollback occurs, our application state somehow gets messed and we
>> repeatedly keep seeing ViewExpiredExceptions like so ...
>>
>> [12/24/11 3:51:52:301 EST] 000003b3 SystemErr     R
>> javax.faces.application.**ViewExpiredException: /showItem.xhtml No saved
>> view
>> state could be found for the view identifier: /showItem.xhtmlnull
>> [12/24/11 3:51:52:302 EST] 000003b3 SystemErr     R   at
>> org.apache.myfaces.lifecycle.**RestoreViewExecutor.execute(**
>> RestoreViewExecutor.java:128)**null
>> [12/24/11 3:51:52:302 EST] 000003b3 SystemErr     R   at
>> org.apache.myfaces.lifecycle.**LifecycleImpl.executePhase(**
>> LifecycleImpl.java:171)null
>> [12/24/11 3:51:52:302 EST] 000003b3 SystemErr     R   at
>> org.apache.myfaces.lifecycle.**LifecycleImpl.execute(**
>> LifecycleImpl.java:118)null
>>
>> Caused by: javax.faces.application.**ViewExpiredException:
>> /showShoppingCart.xhtml No saved view state could be found for the view
>> identifier: /showShoppingCart.xhtml
>> at
>> org.apache.myfaces.lifecycle.**RestoreViewExecutor.execute(**
>> RestoreViewExecutor.java:128)
>> at
>> org.apache.myfaces.lifecycle.**LifecycleImpl.executePhase(**
>> LifecycleImpl.java:171)
>> at
>> org.apache.myfaces.lifecycle.**LifecycleImpl.execute(**
>> LifecycleImpl.java:118)
>> at com.ibm.faces20.portlet.**FacesPortlet.processAction(**
>> FacesPortlet.java:238)
>>
>> This happens for ALL the JSF  facelets *.xhtml files in our application.
>> This is a JSF 2 application.
>>
>> What is the next step in debugging these ViewExpiredExceptions ?
>> For starters I have enabled the trace *
>>  *=info:org.apache.myfaces.**lifecycle*=all*
>> *
>>
>> *
>> All your tips are appreciated.
>>
>> --Thanks,
>> Rohit Kelapure
>>
>>
>
>

Reply via email to