You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by marcin <to...@gmail.com> on 2012/06/02 16:11:41 UTC

MyFaces and ViewScope, Mojarra + TomEE ?

I have an issue with @ViewScope.

My @ViewScope bean has a viewParam named id.

The page example.xhtml is opened with GET parameter id, i.e
example.xhtml?id=343

When I open this in browser, and fire actions on the page (both AJAX and
normal HTTP) everything works fine, as it is excepted with ViewScoped bean.

But when I open concurrently the same page with different id in the second
tab the first one throws ViewExpiredException when I fire some action.

I googled a lot a deduced that this shouldn't happen, so I'd like to run my
application with Mojarra implementation instead of MyFaces.

Is it possible to replace MyFaces with Mojarra on TomEE, and if yes, then
how to do this? 

Thanks for all help.

--
View this message in context: http://openejb.979440.n4.nabble.com/MyFaces-and-ViewScope-Mojarra-TomEE-tp4655312.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: MyFaces and ViewScope, Mojarra + TomEE ?

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

I never tried but providing it in the webapp should be fine
Le 2 juin 2012 19:12, "marcin" <to...@gmail.com> a écrit :

> Well, I think that I've managed to solve the problem with expiring view.
>
> The problem was that I had 3 h:forms in the page. When I put all content of
> the page into one form, I didn't expirienced expired view exception
> anymore.
>
> But nevertheless I'd like to ask how I can install Mojarra on TomEE as it
> is
> possible that I would like to do that in the future.
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/MyFaces-and-ViewScope-Mojarra-TomEE-tp4655312p4655313.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: MyFaces and ViewScope, Mojarra + TomEE ?

Posted by marcin <to...@gmail.com>.
Well, I think that I've managed to solve the problem with expiring view.

The problem was that I had 3 h:forms in the page. When I put all content of
the page into one form, I didn't expirienced expired view exception anymore.

But nevertheless I'd like to ask how I can install Mojarra on TomEE as it is
possible that I would like to do that in the future.

--
View this message in context: http://openejb.979440.n4.nabble.com/MyFaces-and-ViewScope-Mojarra-TomEE-tp4655312p4655313.html
Sent from the OpenEJB User mailing list archive at Nabble.com.