[ http://issues.apache.org/jira/browse/TAPESTRY-723?page=all ]
     
Howard M. Lewis Ship closed TAPESTRY-723:
-----------------------------------------

    Fix Version: 4.0
     Resolution: Fixed

> The "empty" property of StringTranslator is broken
> --------------------------------------------------
>
>          Key: TAPESTRY-723
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-723
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Pal Denes
>     Assignee: Howard M. Lewis Ship
>      Fix For: 4.0

>
> When trying to set the empty property for a StringTranslator in an 
> initializer, like this:
>   <binding name="translator" value="translator:string,empty=''"/>,
> an exception is thrown:
> org.apache.hivemind.ApplicationRuntimeException: Unable to instantiate 
> instance of class org.apache.tapestry.form.translator.StringTranslator: 
> java.lang.reflect.InvocationTargetException [context:/WEB-INF/EditDoc.page, 
> line 36, column 68]
> ...
> Caused by: org.apache.hivemind.ApplicationRuntimeException: Property empty of 
> object [EMAIL PROTECTED] is read-only.
>         at 
> org.apache.hivemind.util.PropertyAdaptor.write(PropertyAdaptor.java:86)
>         at 
> org.apache.hivemind.util.PropertyAdaptor.smartWrite(PropertyAdaptor.java:109)
>         at 
> org.apache.hivemind.util.ClassAdaptor.smartWrite(ClassAdaptor.java:76)
>         at 
> org.apache.hivemind.util.ClassAdaptor.configurePropertyFromToken(ClassAdaptor.java:219)
>         at 
> org.apache.hivemind.util.ClassAdaptor.configureProperties(ClassAdaptor.java:195)
>         at 
> org.apache.hivemind.util.PropertyUtils.configureProperties(PropertyUtils.java:90)
>         at 
> org.apache.tapestry.form.translator.StringTranslator.<init>(StringTranslator.java:43)
> In StringTranslator the type of the "empty" property seems to be mismatched 
> in the getter and setter:
>     public Object getEmpty()
>     {
>         return _empty;
>     }
>     public void setEmpty(String empty)
>     {
>         _empty = empty;
>     }
> This is the same problem found here:
> http://www.mail-archive.com/[email protected]/msg08166.html

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to