struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammad Shoaib Ashrafi (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WW-1952) Multi Level Type Conversion
Date Mon, 28 May 2007 11:19:38 GMT

     [ https://issues.apache.org/struts/browse/WW-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mohammad Shoaib Ashrafi updated WW-1952:
----------------------------------------

    Description: 
I am not sure in struts that it supports multi level type conversion or not.
I have multi level collection like
a roleModules is a List
and each role module contain a collection of moduleScreens.

is this supports by struts 2.0.6 or not. if yes then how to define in conversion.properties
file?

i defined in properties file but not working

Element_roleModules=com.role.model.RoleModule
KeyProperty_roleModules=moduleId
CreateIfNull_roleModules=true

Element_roleModules.moduleScreens=com.role.model.RoleModuleScreen
KeyProperty_roleModules.moduleScreens=screenId
CreateIfNull_roleModules.moduleScreens=true


and in jsp i defined

<s:textfield name="roleModules(%{moduleId}).moduleName"/> its working fine

<s:textfield name="roleModules(%{moduleId}).moduleScreens(%{screenId})"/> its throwing
 Exception

pls help me ASAP


Thanks in advance

Mohammad Shoaib Ashrafi


  was:
I am not sure in struts that it supports multi level type conversion or not.
I have multi level collection like
a roleModules is a List
and each role module contain a collection of moduleScreens.

is this supports by struts 2.0.6 or not. if yes then how to define in conversion.properties
file?

Thanks in advance

Mohammad Shoaib Ashrafi


     Issue Type: Bug  (was: Improvement)

> Multi Level Type Conversion
> ---------------------------
>
>                 Key: WW-1952
>                 URL: https://issues.apache.org/struts/browse/WW-1952
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>         Environment: Struts 2.0.6
> Tomcat 6.0
> JDK 1.5x
>            Reporter: Mohammad Shoaib Ashrafi
>
> I am not sure in struts that it supports multi level type conversion or not.
> I have multi level collection like
> a roleModules is a List
> and each role module contain a collection of moduleScreens.
> is this supports by struts 2.0.6 or not. if yes then how to define in conversion.properties
file?
> i defined in properties file but not working
> Element_roleModules=com.role.model.RoleModule
> KeyProperty_roleModules=moduleId
> CreateIfNull_roleModules=true
> Element_roleModules.moduleScreens=com.role.model.RoleModuleScreen
> KeyProperty_roleModules.moduleScreens=screenId
> CreateIfNull_roleModules.moduleScreens=true
> and in jsp i defined
> <s:textfield name="roleModules(%{moduleId}).moduleName"/> its working fine
> <s:textfield name="roleModules(%{moduleId}).moduleScreens(%{screenId})"/> its throwing
 Exception
> pls help me ASAP
> Thanks in advance
> Mohammad Shoaib Ashrafi

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message