Hi,
I there a way to force a view reload after a process action was called?
In the view there is a commandButton with an action method. In that
method a redirect with following context.responseComplete() is called.
The redirect to a servlet works fine, a content type of application/pdf
as the content type of the response brings up a "save as" dialog.
The problem I have is a previous custom generated FacesMessage which
still stays displayed if the validation fails in that method. When the
next time the validation is successful, the redirect will be done.
The reason is that the action is completed after the response and no
page reload/refresh is triggered.
How can I do that?
My context is a portal with MyFacesGenericPortlet implementation. Maybe
is this the place to refresh that page in some way?
I can't change the validation in that backing bean action method, since
the view has 2 t:inputCalendar components and the validation covers
the correctness of the dates in relation and if the fields are not null.
Maybe a special validator could help as another solution?
Thank for help in advance.
Kind regards,
Andreas