We are preparing to move this Jira installation to codehaus. Please wait and don't use this version for some days.

The AndroMDA project

Multiple row submission on table does not work

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 3.1-RC1
  • Fix Version/s: None
  • Component/s: Bpm4Struts Cartridge
  • Labels:
    None
  • Environment:
    Windows XP, JBoss4.01sp1, Maven 1.02

Description

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.

Issue Links

Activity

Hide
Sai Alluru added a comment - 13/Sep/05 6:01 PM
The problem is with Manage Departments activity
Show
Sai Alluru added a comment - 13/Sep/05 6:01 PM The problem is with Manage Departments activity
Hide
Sai Alluru added a comment - 19/Sep/05 10:13 AM
Wouter,

I found that the problem occurs when I model the parameter that needs to be submitted for multiple submit as Long. I changed this to string and I dont get the exception I reported earlier, but in the case of long the code that is generating the validation is treating this as a single attribute rather than a collection, may be you missed the check if the relevant tags in that part of the templates. I have not contributed to AndroMDA yet, but I would like to fix the issue if you can point me in the right direction.

Sai.
Show
Sai Alluru added a comment - 19/Sep/05 10:13 AM Wouter, I found that the problem occurs when I model the parameter that needs to be submitted for multiple submit as Long. I changed this to string and I dont get the exception I reported earlier, but in the case of long the code that is generating the validation is treating this as a single attribute rather than a collection, may be you missed the check if the relevant tags in that part of the templates. I have not contributed to AndroMDA yet, but I would like to fix the issue if you can point me in the right direction. Sai.
Hide
Wouter Zoons added a comment - 19/Sep/05 12:24 PM
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
Show
Wouter Zoons added a comment - 19/Sep/05 12:24 PM 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

People

Vote (0)
Watch (1)

Dates

  • Created:
    13/Sep/05 5:59 PM
    Updated:
    13/Aug/11 11:58 AM