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
?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
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
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.
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
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
/
-
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
://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
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
...@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
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
/
-
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
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]
/
-
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
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
--
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
- 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
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
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
19 matches
Mail list logo