Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-403

Bean binding with contrib:tablerows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 4.0
    • 4.1.2
    • Framework
    • None

    Description

      I have a contrib:tableRows component that binds the EvenOdd class like this:

      <component id="tableRows" type="contrib:TableRows">
      <binding name="class" expression="beans.evenOdd.next"/>
      <binding name="row" expression="currentRow"/>
      </component>

      However the evenOdd class was never getting instantiated/processing on each row in the table.

      I looked into my .html page and noticed that I had something like this:

      <tr jwcid="tableRows" class="odd">

      but when I took the class attribute out of my html the evenOdd bean got instantiated and processing. So it looks like there is an issue of binding a bean to an attribute if it already exists in a .html page. This page is part of an app I am migrating from 3.0, in which the evenOdd bean processed properly with the class attribute in the .html page.

      Is this an issue with contrib:tableRows or bindings in general if you attempt to bind to an html attribute that is already set?

      scott

      Attachments

        Activity

          People

            jkuhnert Jesse Kuhnert
            sfwalter Scott Walter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: