Tapestry
  1. Tapestry
  2. TAPESTRY-2013

BeanEditor does not support informal parameters

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.7
    • Fix Version/s: 5.0.8
    • Component/s: Core Components
    • Labels:
      None

      Description

      BeanEditor does not support informal parameters like BeanEditForm does.

      For example the following text area inside the BeanEditor is ignored and the default TextField is used instead. In a BeanEditForm this same <t:paramater..> element would work correctly.

      <form t:type="form" t:id="form">
      <t:errors />
      <span t:type="beaneditor" t:object="component" reorder="id,name,description" >
      <t:parameter name="description">
      <t:label for="description"/>
      <t:textarea t:id="description" cols="80" rows="5" value="mybean.description"/>
      </t:parameter>
      </span>
      </form>

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12566996 ] jira [ 12589751 ]
        Mark Thomas made changes -
        Workflow jira [ 12420189 ] Default workflow, editable Closed status [ 12566996 ]
        Howard M. Lewis Ship made changes -
        Fix Version/s 5.0.8 [ 12312898 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Hide
        Howard M. Lewis Ship added a comment -

        Fixed, added test cases to ensure it works as expected.

        Show
        Howard M. Lewis Ship added a comment - Fixed, added test cases to ensure it works as expected.
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Assignee Howard M. Lewis Ship [ hlship ]
        Hide
        Mark Horn added a comment -

        email snip-it from mailing list
        -------------------------------------------------

        On 1/3/08, Howard Lewis Ship <hlship@gmail.com> wrote:
        > That is strange, it should work as you have shown it. I know this
        > behavior works ... there are unit tests to verify it.
        >
        > Ooops, please file a bug. I see the problem; BeanEditForm supports
        > informal parameters, but BeanEditor does not!

        Show
        Mark Horn added a comment - email snip-it from mailing list ------------------------------------------------- On 1/3/08, Howard Lewis Ship <hlship@gmail.com> wrote: > That is strange, it should work as you have shown it. I know this > behavior works ... there are unit tests to verify it. > > Ooops, please file a bug. I see the problem; BeanEditForm supports > informal parameters, but BeanEditor does not!
        Mark Horn made changes -
        Field Original Value New Value
        Description BeanEditor does not support informal parameters like BeanEditForm does.

        For example the following text area inside the BeanEditor is ignored and the default TextField is used instead. In a BeanEditForm this same <t:paramater..> element would work correctly.

        {code}
        <form t:type="form" t:id="form">
                 <t:errors />
                       <span t:type="beaneditor" t:object="component" reorder="id,name,description" >
                               <t:parameter name="description">
                                       <t:label for="description"/>
                                       <t:textarea t:id="description" cols="80" rows="5"
        value="mybean.description"/>
                               </t:parameter>
                       </span>
        </form>
        {code}
        BeanEditor does not support informal parameters like BeanEditForm does.

        For example the following text area inside the BeanEditor is ignored and the default TextField is used instead. In a BeanEditForm this same <t:paramater..> element would work correctly.

        <form t:type="form" t:id="form">
                 <t:errors />
                       <span t:type="beaneditor" t:object="component" reorder="id,name,description" >
                               <t:parameter name="description">
                                       <t:label for="description"/>
                                       <t:textarea t:id="description" cols="80" rows="5" value="mybean.description"/>
                               </t:parameter>
                       </span>
        </form>
        Mark Horn created issue -

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Mark Horn
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development