Re: [TOBAGO] problem selecting current item in tx:selectOneChoice

2010-04-29 Thread Udo Schnurpfeil
I've fixed it in the current trunk and the current 1.0.x branch, so it will be available in version 1.0.26. (See my mail form 23. April, 23:19 CEST) Regards Udo I'm not really understanding why the mapping does not works with tc:selectItem but for know I have a working solution.

Re: [TOBAGO] problem selecting current item in tx:selectOneChoice

2010-04-27 Thread Michael Kakuschky
Hello Udo, thanks for the comprehensive answer. I decide to use solution no. 5 and it works fine for me. But I dont't use enums because the underlying objects are also used for hibernates and it'makes some trouble to mapped them to the hibernate datatypes. I'm not really understanding why

Re: [TOBAGO] problem selecting current item in tx:selectOneChoice

2010-04-23 Thread Udo Schnurpfeil
Hi Michael, there are more than one solution for that, but as far as I know there is not cast operator... 1. use a managed bean faces-config.xml: managed-bean managed-bean-nameintValues/managed-bean-name managed-bean-classjava.util.ArrayList/managed-bean-class

Re: [TOBAGO] problem selecting current item in tx:selectOneChoice

2010-04-23 Thread Udo Schnurpfeil
Hi Michael, I've thought about that problem and implemented a solution that works for the most cases. See: https://issues.apache.org/jira/browse/TOBAGO-877 With the current sources your example should work now, without any of the modifications I told you. Which version of JSF you are

Re: [TOBAGO] problem selecting current item in tx:selectOneChoice

2010-04-22 Thread Volker Weber
Hi Michael, (btw yes i work together with Dirk Fangohr. sorry for the delay, was a bit busy last Friday) the problem is you has int as value in getActive() but String in select items. Try tc:selectItem itemValue=#{2} itemLabel=active/ tc:selectItem itemValue=#{1}

Re: [TOBAGO] problem selecting current item in tx:selectOneChoice

2010-04-22 Thread Udo Schnurpfeil
Hi, there is still a little problem with that. #{0} is a Long value, so the getter/setter needs be a also a Long and not an Integer. I don't know, if in EL there is something like a cast operator... Regards, Udo Am 22.04.10 18:20, schrieb Volker Weber: Hi Michael, (btw yes i work together

Re: [TOBAGO] problem selecting current item in tx:selectOneChoice

2010-04-22 Thread Michael Kakuschky
Hello Volker, thanks for reply. Now my tx:selectOneChoice box looks like the following. Converter is away and values in braces tx:selectOneChoice value=#{myController.active} label=active f:selectItem itemValue=#{0}

Re: [TOBAGO] problem selecting current item in tx:selectOneChoice

2010-04-22 Thread Michael Kakuschky
Hello Udo, hello Volker, both together (using braces for EL expression and long data type for getter and setter) helped to get the tx:selectOneChoice working like expected :-) Since I use many int getters and setters where I want to use the tx:selectOneChoice component it would be nice if