use collections with selectManyCheckboxes and JSF 2.1?

2012-04-02 Thread Michael Heinen
Hi all, I have another weird problem during the migration from JSF 1.2 to 2.1. In my model I use ArrayLists for the value of selectManyCheckboxes. If a form is now posted StringArrays are received instead of ArrayLists! After a lot of debugging I stumbled over two new attributes:

Re: PPS ?

2012-04-02 Thread Werner Punz
Am 30.03.12 15:52, schrieb Michael Heinen: Hi again, I read an article about PPS at http://werpublogs.blogspot.de/2011/07/apache-myfaces-jsfjs-queue-control.html If I understand this correctly then the data passed to the server should be reduced in ajax calls. Correct, only the controls with

Re: PPS ?

2012-04-02 Thread Werner Punz
Ok I did a quick check, pps should be enabled, however if you for instance have an execute=form then all the form values will be encoded I have to do a deep investigation whether the param is broken or not. Werner Am 02.04.12 14:52, schrieb Werner Punz: Am 30.03.12 15:52, schrieb Michael

Re: PPS ?

2012-04-02 Thread Werner Punz
Ok I also did a function check, for me the pps param works. What is your ajax request, (jsf.ajax.request) call do you have the execute on a parent element which needs its childs executed or on single childs. Werner Am 02.04.12 14:59, schrieb Werner Punz: Ok I did a quick check, pps should

Re: use collections with selectManyCheckboxes and JSF 2.1?

2012-04-02 Thread Werner Punz
Am 02.04.12 11:56, schrieb Michael Heinen: What's going wrong here? How can I use Collections with selectManyCheckboxes and JSF 2.1? Hi I usually pass a list of SelectItem Objects that has been working since JSF 1.0. Werner

Re: use collections with selectManyCheckboxes and JSF 2.1?

2012-04-02 Thread Michael Heinen
I use a List of SelectItems for the inner f:selectItems tag. The value attribute of selectManyCheckbox points to an ArrayList with Strings, representing the selected values. The checkboxes are initially correctly checked, but after ajax submission my model (MapSting,Object) contains

Re: PPS ?

2012-04-02 Thread Michael Heinen
Hi Werner, I tested various combinations with execute set to either @this or to @region. The usage of myfaces.config.pps=true does not result is less submitted fields (checked with Fiddler2). I use a4j:commandButtons (without children) for the submits. myfaces.config.pps is set in the

CODI

2012-04-02 Thread José Luis Cetina
Hello, someone who can guide me? I want to use the same managed bean with 2 different pages, since a page is for mobile and other normal but both use the same managed bean. I used the TYPE-SAFE navigation but managed bean per page

OWB Decorators

2012-04-02 Thread Christian Beikov
Hello there! I have just found out something that really scared me! I am using for this example 2 Decorators for one Interface and a simple implementation, like this: interface Service extends Serializable{ public Object getSomething(int value); public boolean test(String text); }

Re: OWB Decorators

2012-04-02 Thread Mark Struberg
Hi Christian! It is better we move this one over to the openwebbeans-dev list. LieGrue, strub - Original Message - From: Christian Beikov c.bei...@curecomp.com To: MyFaces Discussion users@myfaces.apache.org Cc: Sent: Monday, April 2, 2012 6:46 PM Subject: OWB Decorators

Re: CODI

2012-04-02 Thread Gerhard Petracek
hi jose, just use @PageBean [1] and ref. the same page-bean at both view-configs. regards, gerhard [1] https://cwiki.apache.org/confluence/display/EXTCDI/JSF+Usage#JSFUsage-PageBeans http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and

Re: CODI

2012-04-02 Thread José Luis Cetina
Thanks Gerhard, but is there a way to do this but with: @View ?? I like more use @View 2012/4/2 Gerhard Petracek gerhard.petra...@gmail.com hi jose, just use @PageBean [1] and ref. the same page-bean at both view-configs. regards, gerhard [1]

Re: CODI

2012-04-02 Thread Gerhard Petracek
hi jose, right now you just can create a base class and in the 2 concrete page-beans you just provide different names. regards, gerhard http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English and German Professional Support for Apache MyFaces

Re: CODI

2012-04-02 Thread José Luis Cetina
OK, Gerhard thanks, if its possible to add this as a new feature, something like: @View(DesktopPage.class,MobilePage.class) Thanks. 2012/4/2 Gerhard Petracek gerhard.petra...@gmail.com hi jose, right now you just can create a base class and in the 2 concrete page-beans you just provide

Re: CODI

2012-04-02 Thread Gerhard Petracek
hi jose, if you would like to use the same name, you can use: //... @Named @View( {Page1.class, Page2.class} ) public class CustomPageBean { //... } that works as well. regards, gerhard http://www.irian.at Your JSF/JavaEE powerhouse - JavaEE Consulting, Development and Courses in English

Re: CODI

2012-04-02 Thread José Luis Cetina
Ok, thanks a lot!!! 2012/4/2 Gerhard Petracek gerhard.petra...@gmail.com hi jose, if you would like to use the same name, you can use: //... @Named @View( {Page1.class, Page2.class} ) public class CustomPageBean { //... } that works as well. regards, gerhard

Re: CODI

2012-04-02 Thread José Luis Cetina
Hi Gerhard i use your suggestion, extends from a base clase but im getting this error: Severe: Exception while loading the app : WELD-47 Specializing bean must extend another bean: Managed Bean [class org.apache.myfaces.extensions.cdi.jsf2.impl.request.DefaultRequestTypeResolver] with

Re: CODI

2012-04-02 Thread José Luis Cetina
So strange i remove the @ViewAccesScoped and @View and then added again and works... extrange!! El 2 de abril de 2012 14:41, José Luis Cetina maxtorz...@gmail.comescribió: Hi Gerhard i use your suggestion, extends from a base clase but im getting this error: Severe: Exception while loading