You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2012/09/12 21:45:07 UTC

[jira] [Resolved] (WW-3268) problem with property named "parameters" in my bean

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

Lukasz Lenart resolved WW-3268.
-------------------------------

    Resolution: Fixed
      Assignee: Lukasz Lenart

Added additional section to Tag Syntax [1], thanks for reporting!

[1] https://cwiki.apache.org/confluence/display/WW/Tag+Syntax#TagSyntax-Disallowedpropertynames
                
> problem with property named "parameters" in my bean
> ---------------------------------------------------
>
>                 Key: WW-3268
>                 URL: https://issues.apache.org/jira/browse/WW-3268
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Rodrigo Canabrava
>            Assignee: Lukasz Lenart
>             Fix For: 2.3.5
>
>
> I had a problem with the tag <s:select/> that did not render correctly. It ignored the properties that I wanted to use as key and value from my beans, and instead it used the toString() method of my bean. After renaming the bean class and removing all properties, and inserting one by one, I found out that the problem was due to a property named 'parameters' in my bean.
> So I guess this word is 'reserved', and there should be a warning in the tags documentation that this word cannot be used as a property in my beans, even if I don't use the property in any tag.
> There is a conflict issue with this word. And I guess there might be other words that could result in the same conflict.

--
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