You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Mohammad Shoaib Ashrafi (JIRA)" <ji...@apache.org> on 2007/05/28 12:14:38 UTC

[jira] Created: (WW-1952) Multi Level Type Conversion

Multi Level Type Conversion
---------------------------

                 Key: WW-1952
                 URL: https://issues.apache.org/struts/browse/WW-1952
             Project: Struts 2
          Issue Type: Improvement
    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?

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.


[jira] Assigned: (WW-1952) Multi Level Type Conversion

Posted by "Mohammad Shoaib Ashrafi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mohammad Shoaib Ashrafi reassigned WW-1952:
-------------------------------------------

    Assignee: Ted Husted  (was: Adi Baron)

> 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
>            Assignee: Ted Husted
>
> 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}).screenName"/> 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.


[jira] Commented: (WW-1952) Multi Level Type Conversion

Posted by "Tomasz Filak (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43427#action_43427 ] 

Tomasz Filak commented on WW-1952:
----------------------------------

I'm facing the same problem. Multi-level type conversion is not working even if nested properties are not collections, but simple POJOs.

The quick-fix would be to create RoleModule-conversion.properties file in com.role.model package and declare converter for moduleScreens property there. It's far from an elegant solution since it's mixing view logic (conversion rules) with domain logic. It would be very nice to have a possibility to define conversion rules for a whole object graph in the action's conversion.properties file.

Regards,
Tomasz Filak

> 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
>             Fix For: Future
>
>
> 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}).screenName"/> 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.


[jira] Updated: (WW-1952) Multi Level Type Conversion

Posted by "Mohammad Shoaib Ashrafi (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (WW-1952) Multi Level Type Conversion

Posted by "Mohammad Shoaib Ashrafi (JIRA)" <ji...@apache.org>.
     [ 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}).screenName"/> 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?

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



> 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}).screenName"/> 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.


[jira] Updated: (WW-1952) Multi Level Type Conversion

Posted by "Krzysztof Dębski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Krzysztof Dębski updated WW-1952:
---------------------------------

    Affects Version/s: 2.1.3

> 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, 2.0.11.2, 2.1.3
>         Environment: Struts 2.0.6
> Tomcat 6.0
> JDK 1.5x
>            Reporter: Mohammad Shoaib Ashrafi
>            Priority: Critical
>             Fix For: Future
>
>
> 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}).screenName"/> 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.


[jira] Updated: (WW-1952) Multi Level Type Conversion

Posted by "Krzysztof Dębski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Krzysztof Dębski updated WW-1952:
---------------------------------

                Flags: [Important]
             Priority: Critical  (was: Major)
    Affects Version/s: 2.0.11.2

After reading struts 2 documentation about conversion I was sure that multi level conversion is supported.

In my opinion, fact that we can not do "foo.bar = Converter" is critical. 

> 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, 2.0.11.2
>         Environment: Struts 2.0.6
> Tomcat 6.0
> JDK 1.5x
>            Reporter: Mohammad Shoaib Ashrafi
>            Priority: Critical
>             Fix For: Future
>
>
> 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}).screenName"/> 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.


[jira] Updated: (WW-1952) Multi Level Type Conversion

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted updated WW-1952:
---------------------------

    Assignee:     (was: Ted Husted)

> 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}).screenName"/> 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.


[jira] Assigned: (WW-1952) Multi Level Type Conversion

Posted by "Mohammad Shoaib Ashrafi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mohammad Shoaib Ashrafi reassigned WW-1952:
-------------------------------------------

    Assignee: Adi Baron

> 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
>            Assignee: Adi Baron
>
> 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}).screenName"/> 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.


[jira] Updated: (WW-1952) Multi Level Type Conversion

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted updated WW-1952:
---------------------------

    Fix Version/s: Future

Setting Fix Version to "future" for issues without a set fix version. 


> 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
>             Fix For: Future
>
>
> 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}).screenName"/> 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.