struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "D Qiu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4059) @Conversion @TypeConversion on nested property
Date Fri, 26 Apr 2013 17:46:16 GMT

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

D Qiu updated WW-4059:
----------------------

    Description: 
The j.converter is not called on "a.b.id" 
But it called on "a.id".   Is this a bug?

@Conversion(conversions = {
    @TypeConversion(type = ConversionType.CLASS, key = "a.b.id", converter = "j.converter"),
@TypeConversion(type = ConversionType.CLASS, key = "a.id", converter = "j.converter")
})
public class TestAction extends ActionSupport {
	A a
	...
}

Class A{
	X id
	B b
	...
}

Class B{
	X id 
	...
}
...

  was:
The j.converter is not called on "a.b.id" 
But it called on "a.id".   Is this a bug?

@Conversion(conversions = {
    @TypeConversion(type = ConversionType.CLASS, key = "a.b.id", converter = "j.converter"),
    @TypeConversion(type = ConversionType.CLASS, key = "a.id", converter = "j.converter")
})
public class TestAction extends ActionSupport {
	A a
	...
}

Class A{
	X id
	B b
	...
}

Class B{
	X id 
	...
}
...

    
> @Conversion @TypeConversion on nested property
> ----------------------------------------------
>
>                 Key: WW-4059
>                 URL: https://issues.apache.org/jira/browse/WW-4059
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Value Stack
>    Affects Versions: 2.3.14
>         Environment: Windows
>            Reporter: D Qiu
>              Labels: patch
>
> The j.converter is not called on "a.b.id" 
> But it called on "a.id".   Is this a bug?
> @Conversion(conversions = {
>     @TypeConversion(type = ConversionType.CLASS, key = "a.b.id", converter = "j.converter"),
> @TypeConversion(type = ConversionType.CLASS, key = "a.id", converter = "j.converter")
> })
> public class TestAction extends ActionSupport {
> 	A a
> 	...
> }
> Class A{
> 	X id
> 	B b
> 	...
> }
> Class B{
> 	X id 
> 	...
> }
> ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message