Tapestry
  1. Tapestry
  2. TAPESTRY-1204

boolean meta values in the component descriptor does not work

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.2
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      tapestry 4.1.1 (12/17/2006)

      Description

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

        Issue Links

          Activity

          Hide
          Norbert Sándor added a comment -

          Maybe a simple comparation or commons-lang's BooleanUtils.toBoolean(String) could be used to parse booleans.

          Show
          Norbert Sándor added a comment - Maybe a simple comparation or commons-lang's BooleanUtils.toBoolean(String) could be used to parse booleans.
          Hide
          Tomoki Tsuchida added a comment -

          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.

          Show
          Tomoki Tsuchida added a comment - 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.

            People

            • Assignee:
              Jesse Kuhnert
              Reporter:
              Tomoki Tsuchida
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development