Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-426

one letter property name breaks page or component classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 5.1.0.0
    • None
    • tapestry-core
    • None

    Description

      if you have a 1 letter getter in your code and you attempt to use that getter in your tml file, things will break.

      Example:
      public boolean getK() {
      return true;
      }

      and then in your tml
      <t:if test="K">
      hello world!!!
      </t:if>

      outcome:
      Could not convert 'K' into a component parameter binding: Node <unexpected: [@-1,0:0='<no text>',<-1>,0:-1], resync=null> (within expression 'K') was type <invalid>, but was expected to be (one of) IDENTIFIER, INVOKE, LIST, RANGEOP.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dlee David Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: