Re: [Mdarad-toolbox-devs] Validation bug?
Brought to you by:
erifr
|
From: <fra...@po...> - 2006-01-10 18:30:16
|
I have just tried it with TotalTest and it seems to work fine. In th= is=20 model Item has a listPrice which is a float.=20 I'm not sure why you are encountering this problem but is it possible= =20 that you customized some of the code in BoardAbstractAction or=20 BoardFormAction? Maybe compare your custom code with the newly=20 generated code because it seems to work fine for me. Hope this helps. Unfortunately I won't have much more time today to= =20 help you out. Good luck, Frank Vincent-Olivier Arsenault wrote: > 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 tomorr= ow=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 someth= ing. > > 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-framewor= k. =20 >> Since Dataisland manages its primitives, I think it should also= =20 >> manage the conversions in different types (xml, string, etc.), the= ir=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= =20 >>> CVS 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= =20 >>> value of type 'java.lang.Float' to property=20 >>> 'com_investissementresponsable_catalog_document_enterprise_Board_= independencePercent'=20 >>> of type 'java.lang.String' >>> =20 >>> org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:4= 22) >>> =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(Re= questProcessor.java:419)=20 >>> >>> =20 >>> org.mdarad.framework.util.struts.AbstractRequestProcessor.process= ActionPerform(AbstractRequestProcessor.java:61)=20 >>> >>> =20 >>> org.apache.struts.action.RequestProcessor.process(RequestProcesso= r.java: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(RequestProces= sor.java:1063)=20 >>> >>> =20 >>> org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequ= estProcessor.java:263)=20 >>> >>> =20 >>> org.apache.struts.action.RequestProcessor.processForwardConfig(Re= questProcessor.java:386)=20 >>> >>> =20 >>> org.apache.struts.tiles.TilesRequestProcessor.processForwardConfi= g(TilesRequestProcessor.java:318)=20 >>> >>> =20 >>> org.apache.struts.action.RequestProcessor.process(RequestProcesso= r.java: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), b= ut=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 throug= h=20 >>> log files >>> for problems? Stop! Download the new AJAX search engine that ma= kes >>> searching your log files as easy as surfing the web. DOWNLOAD S= PLUNK! >>> 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= =20 >> log files >> for problems? Stop! Download the new AJAX search engine that mak= es >> searching your log files as easy as surfing the web. DOWNLOAD SP= LUNK! >> 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 >> > > > ------------------------------------------------------- > 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 make= s > searching your log files as easy as surfing the web. DOWNLOAD SPL= UNK! > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=CCk > _______________________________________________ > Mdarad-toolbox-devs mailing list > Mda...@li... > https://lists.sourceforge.net/lists/listinfo/mdarad-toolbox-devs > > > |