Webwork's Conversion not working
Daniel Rodriguez <[email protected]> Wed, 20 Dec 2006 07:14:09 CST
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <4033147.1166620566430.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
Hello everybody, I have the following data structure: Cliente (POJO), Producto (POJO) and Licencia (POJO). Licencia has a composite_id : (FK_CLIENT_ID, FK_PROD_ID). Which I had to implement as suggested in the forums (a separate class called (LicenciaPK): So far, everything works ok, plus the ant test commands all work perfectly. The problem is located in the UI, inside the clientForm.jsp. Whenever I try to save a new Client, I get the following error: [i]Data Access Failure IllegalArgumentException occurred calling getter of com.quyne.licencias.model.Licencia.id; nested exception is org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.quyne.licencias.model.Licencia.id[/i] What I've been able to gather from my debugs is that Hibernate is complaining about not getting the LicenciaPK object, but the String representation of that Object (com.quyne.licencias.model.LicenciaPK@1a84b38[]), which is what the WW select tag is printing. I went thru the entire WW docs and found about the Conversion system. I created the Licencia-conversion.properties in com.quyne.licencias.model and implemented my own LicenciaConverter. However my deployed app doesn't seem to run LicenciaConverter. (Setted some breakpoints, but my app never stops inside LicenciaConverter) I tried changing the converter declaration in /WEB-INF/classes/xwork-conversion.properties and nothing works. I'm uploading a .zip with all the files involved (*.java, *.properties). Hope someone can point me in the right direction. Thanks !! --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=54486&messageID=109117#109117 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
attachment.zip
(application/octet-stream, 4.2 KB) - not displayed