You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by Kevin Meyer - KMZ <ke...@kmz.co.za> on 2011/11/21 13:48:22 UTC
@Named not working as expected anymore..
Dan,
It seems that as of rev 1172721,
ObjectActionParameterAbstract.java#getName() returns camel case
instead of getSingularName.
So now, if I have a method annotated as:
setFeePayer(@Named("Fee Payer") String feePayer){
...
}
On the HTML viewer, it shows up as:
"feePayer" instead of "Fee Payer" as expected.
I assume you are returning camel case for a reason, probably to do
with RO, but could you use another annotation? The new behaviour is
inconsistent with the applib documentation[1].
Regards,
Kevin
[1]
http://incubator.apache.org/isis/applib/docbkx/html/guide/ch07s06.html
Re: @Named not working as expected anymore..
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Kevin,
I've fixed this regression and committed; apols.
Dan
On 21/11/2011 12:48, Kevin Meyer - KMZ wrote:
> Dan,
>
> It seems that as of rev 1172721,
> ObjectActionParameterAbstract.java#getName() returns camel case
> instead of getSingularName.
>
> So now, if I have a method annotated as:
> setFeePayer(@Named("Fee Payer") String feePayer){
> ...
> }
>
> On the HTML viewer, it shows up as:
> "feePayer" instead of "Fee Payer" as expected.
>
> I assume you are returning camel case for a reason, probably to do
> with RO, but could you use another annotation? The new behaviour is
> inconsistent with the applib documentation[1].
>
> Regards,
> Kevin
>
> [1]
> http://incubator.apache.org/isis/applib/docbkx/html/guide/ch07s06.html
>