You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Craig McClanahan (JIRA)" <ji...@apache.org> on 2006/04/26 08:14:54 UTC

[jira] Moved: (SHALE-126) [Shale] Clay was not setting properties correctly

     [ http://issues.apache.org/struts/browse/SHALE-126?page=all ]

Craig McClanahan moved STR-2448 to SHALE-126:
---------------------------------------------

      Project: Shale  (was: Struts Action 1)
          Key: SHALE-126  (was: STR-2448)
    Component:     (was: Shale)
      Version:     (was: Nightly Build)
    Assign To:     (was: Struts Developer Mailing List)

> [Shale] Clay was not setting properties correctly
> -------------------------------------------------
>
>          Key: SHALE-126
>          URL: http://issues.apache.org/struts/browse/SHALE-126
>      Project: Shale
>         Type: Improvement

>  Environment: Operating System: other
> Platform: Other
>     Reporter: Gary VanMatre
>     Priority: Minor
>  Attachments: PropUtilTest.java, propPatch.zip
>
> The PropertyUtil class was not working for all properties.  This utility class 
> is used by the clay component to set property values on faces components, 
> converters, validators and listeners.  The utility has to take the string 
> value and figure out what the target type should be.  I had pulled this from 
> another project and it was just not working right with the clay component so 
> I've refactored, removing unnecessary logic.  
> The logic now makes some guesses on setter methods and the formal parameter 
> type of the setter method.
>   
> For example the following properties will all result in setting the boolean:
>   globalOnly
>   isGlobalOnly
>   escape
>   isEscape
>  
> Two class are modified both blocking 34496 for each source file.
> PropUtils.java
> PropertyValueCommand.java
> I had forgot this class was such a mess.  It is a very important part in 
> making clay work.  Any ideas on a better approach.....

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org