Re: Type conversion exceptions

2009-03-20 Thread musomesa
No problem -- I have learnt plenty from others too. Cheers Chris M. -Original Message- From: ryangr grigg...@gmail.com To: user@struts.apache.org Sent: Fri, 20 Mar 2009 5:12 am Subject: Re: Type conversion exceptions Well I'll be damned...it's working! It looks like the solution

Re: Type conversion exceptions

2009-03-19 Thread ryangr
?s:submit / /s:form Cheers Chris M -Original Message- From: ryangr grigg...@gmail.com To: user@struts.apache.org Sent: Wed, 18 Mar 2009 10:55 pm Subject: Re: Type conversion exceptions Here is the converter code: http://pastie.org/419709 Obviously it isn't

Re: Type conversion exceptions

2009-03-18 Thread Lukasz Lenart
2009/3/17 ryangr grigg...@gmail.com: [xwork-conversion.properties] Element_settings=com.rjssoft.webdocs.setting.Setting That's ok but your SettingList is not full List implementation and you have to specified how to convert array to SettingList that's why you have to specified also converter

Re: Type conversion exceptions

2009-03-18 Thread Lukasz Lenart
2009/3/18 musom...@aol.com: But then how do you plan to write a converter to convert a String[] to a SettingList? It's already done, just to the configuration has to be adjusted Also why is aggregation a bad design? It isn't but exposing directly internal field (ArrayListSetting) it is.

Re: Type conversion exceptions

2009-03-18 Thread ryangr
have downloaded your code and will study it so that I don't misunderstand. Can you also post the converter? If I see it I might?suggestions that fit what you are doing better. Chris -- View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp22497261p22579161.html Sent

Re: Type conversion exceptions

2009-03-17 Thread Lukasz Lenart
2009/3/16 ryangr grigg...@gmail.com: com.opensymphony.xwork2.util.XWorkConverter  - processing conversion file [com/rjssoft/webdocs/admin/SettingAction-conversion.properties] [class=class com.rjssoft.webdocs.admin.SettingAction] As I see you have only SettingAction-conversion.properties, could

Re: Type conversion exceptions

2009-03-17 Thread ryangr
/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp22497261p22568375.html Sent

Re: Type conversion exceptions

2009-03-16 Thread ryangr
://www.nabble.com/Type-conversion-exceptions-tp22497261p22538757.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h

Re: Type conversion exceptions

2009-03-16 Thread Lukasz Lenart
2009/3/16 ryangr grigg...@gmail.com: ERROR com.opensymphony.xwork2.util.InstantiatingNullHandler  - Could not create and/or set value back on to object ognl.OgnlException: settings [java.lang.IllegalArgumentException: argument type mismatch] ERROR

Re: Type conversion exceptions

2009-03-16 Thread ryangr
...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp22497261p22540046.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Type conversion exceptions

2009-03-16 Thread Lukasz Lenart
2009/3/16 ryangr grigg...@gmail.com: settings is a SettingList which is just an extended ArrayListSetting. That can be a problem, generics are erased during compilation and Ognl doesn't know how to convert array to SettingList, did you try to prepare converter for it? Regards -- Lukasz

Re: Type conversion exceptions

2009-03-16 Thread ryangr
/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp22497261p22541495.html Sent from

Re: Type conversion exceptions

2009-03-16 Thread Lukasz Lenart
2009/3/16 ryangr grigg...@gmail.com: It appears both values objects (value and o, respectively) are completely empty... It's strange but anyway you should be able to use Struts2 / XWork2 convertion mechanism, did you setup xwork-conversion.properties file as mentioned in documentation [1]? [1]

Re: Type conversion exceptions

2009-03-16 Thread ryangr
/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp22497261p22546980.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Type conversion exceptions

2009-03-16 Thread Lukasz Lenart
2009/3/16 ryangr grigg...@gmail.com: Yes, I have it listed in the xwork-conversion.properties file as such: com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.converter.SettingListConverter And the file is in the root of your classpath (WEB-INF/classes)? Regards -- Lukasz

Re: Type conversion exceptions

2009-03-16 Thread ryangr
-- View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp22497261p22547311.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Re: Type conversion exceptions

2009-03-16 Thread ryangr
- toClass: class com.rjssoft.webdocs.setting.SettingList -- View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp22497261p22548129.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Type conversion exceptions

2009-03-14 Thread dusty
object with all id, title, and value along with all getters/setters): KeyProperty_settings=id Element_settings=Setting I followed the examples so I'm not sure where it is going wrong...any help? Thanks! Ryan -- View this message in context: http://www.nabble.com/Type-conversion

Type conversion exceptions

2009-03-13 Thread ryangr
Element_settings=Setting I followed the examples so I'm not sure where it is going wrong...any help? Thanks! Ryan -- View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp22497261p22497261.html Sent from the Struts - User mailing list archive at Nabble.com