[ http://jira.andromda.org/browse/BPM-254?page=comments#action_12128 ] Wouter Zoons commented on BPM-254: ----------------------------------
interesting, in that case it means this issue might be linked to BPM-218, that's also an issue regarding the usage of Long .. hmm puzzling > Multiple row submission on table does not work > ---------------------------------------------- > > Key: BPM-254 > URL: http://jira.andromda.org/browse/BPM-254 > Project: Bpm4Struts Cartridge > Type: Bug > Versions: 3.1-RC1 > Environment: Windows XP, JBoss4.01sp1, Maven 1.02 > Reporter: Sai Alluru > Assignee: Wouter Zoons > Attachments: EducationInstituteInformationSystemModel.xmi > > Wouter, > I have a problem with getting multiple row submission to work. I have > modelled a transition as follows. > I have a collection named unAssignedTeachers on the incoming transition with > the table columns as "aid,name,designation,qualification". Then I have an out > going transition (signal) from the frontendview with a paramter aid as Long. > I also have the tag value tableLink=unAssignedTeachers and a tag > action.type=table. > The application generates properly, compiles and I can deploy. When I go the > page the page is displayed correctly. But when I select the items in tlist > and click submit button it throws the following exception. > Code: > 14:43:24,812 ERROR [ValidatorUtils] Unknown property 'aid' > java.lang.NoSuchMethodException: Unknown property 'aid' > at > org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(Prop > ertyUtilsBean.java:1122) > at > org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(Prop > ertyUtilsBean.java:686) > at > org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUt > ilsBean.java:715) > at > org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils. > java:290) > at > org.apache.commons.validator.util.ValidatorUtils.getValueAsString(Val > idatorUtils.java:105) > at > org.apache.struts.validator.FieldChecks.validateLong(FieldChecks.java > :404) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.commons.validator.ValidatorAction.executeValidationMethod( > ValidatorAction.java:567) > at org.apache.commons.validator.Field.validateForRule(Field.java:827) > at org.apache.commons.validator.Field.validate(Field.java:906) > at org.apache.commons.validator.Form.validate(Form.java:174) > at > org.apache.commons.validator.Validator.validate(Validator.java:367) > at > org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java > :110) > at > com.jhansi.eiis.web.Institute.department.CreteOrEditDepartmentAssignF > ormImpl.validate(CreteOrEditDepartmentAssignFormImpl.java:734) > at > org.apache.struts.action.RequestProcessor.processValidate(RequestProc > essor.java:928) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja > va:204) > > When I looked at the source of the form there is not attribute called aid but > instead there is an attribute called aidRowSelection. > The following are the list of all attributes on the form. > Code: > private java.util.Collection unAssignedTeachers = null; > private java.lang.Object[] unAssignedTeachersValueList; > private java.lang.Object[] unAssignedTeachersLabelList; > private java.util.Collection assignedTeachers = null; > private java.lang.Object[] assignedTeachersValueList; > private java.lang.Object[] assignedTeachersLabelList; > private java.util.List aidRowSelection = null; > private java.lang.Object[] aidValueList; > private java.lang.Object[] aidLabelList; > private java.lang.Long rid; > private java.lang.Object[] ridValueList; > private java.lang.Object[] ridLabelList; > private java.lang.String name; > private java.lang.Object[] nameValueList; > private java.lang.Object[] nameLabelList; > private java.lang.Long id; > private java.lang.Object[] idValueList; > private java.lang.Object[] idLabelList; > > Looks like the validate code is looking for aid as it is modelled as Long. > Let me know if you need any more information or if you need the model I can > send that as well. > Thanks and appreciate your support. > Sai. ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php