Re: [Mdarad-toolbox-devs] Validation bug?
Brought to you by:
erifr
|
From: Vincent-Olivier A. <vi...@ha...> - 2006-01-10 17:11:25
|
Yes, it is blocking : every time you save an entity with a float=20 attribute, it crashes. I won't have time to look at it until tomorrow=20 (and would appreciate some help). I don't think it is a primitive thing because it is struts-specific=20 (relies on the java type of the attribute). Anyways, let me know if you have time to look at it and find something. Thanks Vio Fran=E7ois Eric wrote: > Hi VO, > > Is this bug blocking? Have you corrected it? > > Also I'm not sure th conversions should be done in mdarad-framework. =20 > Since Dataisland manages its primitives, I think it should also manage=20 > the conversions in different types (xml, string, etc.), their=20 > validation and most of the specific business logic associated with=20 > it. Mdarad should not know the different primitives. > What do you think? > > Fran=E7ois > > > Vincent-Olivier Arsenault wrote: > >> Hi guys, >> >> When browsing the GIR project forms newly generated with a recent CVS=20 >> update including the new struts validation, I encountered the=20 >> following (on clicking "edit" for an entity composition) : >> >> org.apache.commons.beanutils.ConversionException: Cannot assign value=20 >> of type 'java.lang.Float' to property=20 >> 'com_investissementresponsable_catalog_document_enterprise_Board_indep= endencePercent'=20 >> of type 'java.lang.String' >> org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:42= 2) >> =20 >> com.investissementresponsable.catalog.document.enterprise.struts.board= .BoardAbstractAction.populateBoardForm(BoardAbstractAction.java:97)=20 >> >> =20 >> com.investissementresponsable.catalog.document.enterprise.struts.board= .BoardFormAction.execute(BoardFormAction.java:36)=20 >> >> =20 >> org.apache.struts.action.RequestProcessor.processActionPerform(Request= Processor.java:419)=20 >> >> =20 >> org.mdarad.framework.util.struts.AbstractRequestProcessor.processActio= nPerform(AbstractRequestProcessor.java:61)=20 >> >> =20 >> org.apache.struts.action.RequestProcessor.process(RequestProcessor.jav= a:224)=20 >> >> =20 >> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194= ) >> =20 >> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:709) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802) >> =20 >> org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.j= ava:1063)=20 >> >> =20 >> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestPr= ocessor.java:263)=20 >> >> =20 >> org.apache.struts.action.RequestProcessor.processForwardConfig(Request= Processor.java:386)=20 >> >> =20 >> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Til= esRequestProcessor.java:318)=20 >> >> =20 >> org.apache.struts.action.RequestProcessor.process(RequestProcessor.jav= a:229)=20 >> >> =20 >> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194= ) >> =20 >> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:709) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802) >> >> I may be wrong here (I didn't have time to look into the code), but=20 >> isn't the MDARAD library supposed to handle String <--> Float=20 >> conversion in forms? >> >> Vincent >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through=20 >> log files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK= ! >> http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick >> _______________________________________________ >> Mdarad-toolbox-devs mailing list >> Mda...@li... >> https://lists.sourceforge.net/lists/listinfo/mdarad-toolbox-devs >> >> > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log=20 > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dclick > _______________________________________________ > Mdarad-toolbox-devs mailing list > Mda...@li... > https://lists.sourceforge.net/lists/listinfo/mdarad-toolbox-devs > |