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

Using "add" with BeanEditor results in "Bean editor model for XXX already contains a property model for property 'xxx'."

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 5.2.0
    • None
    • tapestry-core
    • None

    Description

      Using the BeanEditor parameter "add" always results in an exception. (T5.2.0-SNAPSHOT)

      steps to reproduce:

      • create a new project with mave archetype
      • change pom.xml to T5.2.0-SNAPSHOT
      • add the files below.
      • start the server
      • goto TestEx page
      • just click submit
      • results: "Bean editor model for com.test.pages.TestEx$UserLogin already contains a property model for property 'addTest'"

      Condensed example to reproduce:
      public class TestEx {
      @Property private UserLogin userLogin;
      @Property private String addTest;

      public static class UserLogin {
      private String userName;
      public UserLogin() {}
      public String getUserName()

      {return userName;}

      public void setUserName(String userName)

      {this.userName = userName;}

      }
      }

      TestEx.tml:
      <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
      <body>
      <t:form>
      <t:BeanEditor object="userLogin" include="userName" add="addTest" >
      <t:parameter name="addTest">
      <t:label for="addTest" />
      <t:passwordField t:id="addTest" value="addTest"/>
      </t:parameter>
      </t:BeanEditor>
      <t:submit />
      </t:form>
      </body>
      </html>

      Attachments

        Activity

          People

            Unassigned Unassigned
            buckofive Joe Klecko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: