Re: Decide what to rerender on server side?

2014-09-04 Thread Karl Kildén
Hi Howard, Well they use custom ajax so not sure it would be very easy to understand but eventually I will look at it yes :-) Still interested in hearing some pro input from myfaces guys first Can you link me the feature in omnifaces? I cannot find it. Regarding primefaces I don't want to be to d

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-09-04 Thread Romain Manni-Bucau
In an ear you have lib part and war libs. Mf only needs war part. If you put mf in lib part, mf needs to ensure it doesn't add again beans. For it you can generate a name for your beans in the extension. This name would be contextual and finally lib part will never be used normally but it will not

Re: Decide what to rerender on server side?

2014-09-04 Thread Howard W. Smith, Jr.
Karl, you could look at PrimeFaces requestContext implementation (source code). also, you can maybe ask for something like this to be added as a feature request in MYFACES JIRA. Is there any reason why you prefer not to use PrimeFaces requestContext or the similar feature that is available in Omn

Re: SERIALIZE_STATE_IN_SESSION - What does it do?

2014-09-04 Thread Leonardo Uribe
Hi 2014-09-04 16:23 GMT-05:00 : > Leonardo, > > Thanks for the response. We don't have any view scoped managed beans. The > bean is session scoped. > It does implement Serializable. We recently migrated from MyFaces 1,1,4 to > MyFaces 2.1.13. This worked fine before, but isn't working > now, if

Re: SERIALIZE_STATE_IN_SESSION - What does it do?

2014-09-04 Thread Kim . Calvin
Leonardo, Thanks for the response. We don't have any view scoped managed beans. The bean is session scoped. It does implement Serializable. We recently migrated from MyFaces 1,1,4 to MyFaces 2.1.13. This worked fine before, but isn't working now, if SERIALIZE_STATE_IN_SESSION is set to true.

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-09-04 Thread Leonardo Uribe
2014-09-04 16:04 GMT-05:00 Romain Manni-Bucau : > but you can share in both something (common thing is the classloader) > to match the bean (or name) you need. > > I don't understand. MyFaces just provide the extension points. When and how the extensions are called are up to CDI and maybe Tomee. I

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-09-04 Thread Romain Manni-Bucau
but you can share in both something (common thing is the classloader) to match the bean (or name) you need. Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-09-04 22:38 GM

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-09-04 Thread Leonardo Uribe
As you already know, MyFaces provide some extensions and those extensions register some CDI beans. But the way how the dependencies are loaded are controlled by Tomee and by the CDI implementation, in this case OWB. I have tried in the past to avoid the CDI beans in the integration point, but it is

Decide what to rerender on server side?

2014-09-04 Thread Karl Kildén
Primefaces offers several ways to do client side stuff from the server. For examples see here: http://www.primefaces.org/showcase/ui/misc/requestContext.xhtml While I use primefaces I prefer to keep my hands out of the cookie jar with stuff like this. I mean a datepicker can be replaced with a js

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-09-04 Thread Romain Manni-Bucau
the issue is wars of an ear inherit from "lib" beans so mf shouldn't use it (can be done adding a bean with a generated name by webapp - and get the name from the servlet context for instance) on tomee side we can skip mf cdi beans in ear lib part if it can help Romain Manni-Bucau Twitter: @rman

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-09-04 Thread Romain Manni-Bucau
@Leonardo: with ears? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-09-04 22:12 GMT+02:00 Leonardo Uribe : > Hi > > I have tested the latest snapshot from trunk and it

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-09-04 Thread José Luis Cetina
i will try to reproduce it, the issue apparently is with ears 2014-09-04 15:12 GMT-05:00 Leonardo Uribe : > Hi > > I have tested the latest snapshot from trunk and it is working with tomee > 1.7.0. I don't see any exception from this side. > > regards, > > Leonardo Uribe > > > 2014-09-03 17:23 G

Re: SERIALIZE_STATE_IN_SESSION - What does it do?

2014-09-04 Thread Leonardo Uribe
Hi Check if your view scope managed beans implements Serializable interface. When SERIALIZE_STATE_IN_SESSION, it forces serialization of all view scope beans, and if you have not marked them as Serializable, the values will get lost. In a cluster, it is possible to find configurations where a sess

Re: MyFaces 2.2.0 ViewScoped AmbiguousResolutionException

2014-09-04 Thread Leonardo Uribe
Hi I have tested the latest snapshot from trunk and it is working with tomee 1.7.0. I don't see any exception from this side. regards, Leonardo Uribe 2014-09-03 17:23 GMT-05:00 José Luis Cetina : > Hi, i was trying to use MyFaces 2.2.4 with TomEE 1.7.0 JAX-RS, i want to > use myfaces 2.2.4 be

SERIALIZE_STATE_IN_SESSION - What does it do?

2014-09-04 Thread Kim . Calvin
We have a custom address tag that seems to behave differently based on whether SERIIALIZE_STATE_IN_SESSION is set to true or false. When it is set to true, the values entered by the user on the page never make it to the managed bean. When it is set to false, the values entered do make it to th