You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Tomoki Tsuchida (JIRA)" <ta...@jakarta.apache.org> on 2006/12/21 01:56:21 UTC
[jira] Commented: (TAPESTRY-1204) boolean meta values in the
component descriptor does not work
[ http://issues.apache.org/jira/browse/TAPESTRY-1204?page=comments#action_12460096 ]
Tomoki Tsuchida commented on TAPESTRY-1204:
-------------------------------------------
I believe this is because of the change to org.apache.tapestry.enhance.InjectMetaWorker that took place on 12/08/2006 (http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/enhance/InjectMetaWorker.java?r1=419064&r2=483838&diff_format=h)
I imagine this is done because "Boolean.parseBoolean" was only introduced on JDK1.5. However, Boolean.getBoolean (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Boolean.html#getBoolean(java.lang.String) ) isn't the replacement for this. Unfortunately, there's no simple replacement for this method prior to JDK 1.5 - valueOf(String).booleanValue() probably need to be invoked.
> boolean meta values in the component descriptor does not work
> -------------------------------------------------------------
>
> Key: TAPESTRY-1204
> URL: http://issues.apache.org/jira/browse/TAPESTRY-1204
> Project: Tapestry
> Issue Type: Bug
> Components: Framework
> Affects Versions: 4.1.1
> Environment: tapestry 4.1.1 (12/17/2006)
> Reporter: Tomoki Tsuchida
>
> boolean "meta" value injections in the component descriptor does not work. For example, with:
> <meta key="foo" value="true"/>
> <inject property="multiple" type="meta" object="foo"/>
> and
> public abstract isFoo();
> .., "isFoo()" no longer returns "true".
--
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org