MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-156

DataList doesn't validate or update model in 1.1.2 nightlies

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1.2-SNAPSHOT
    • Fix Version/s: 1.1.2
    • Component/s: Data List
    • Labels:
      None

      Description

      DataList appears to be broken in 1.1.2-nightlies. My form elements are not being validated or updated. If I downgrade to 1.1.1 everything works fine. Here is the test case:

      ----------test.jsp------------
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
      <f:view>
      <h:form>
      <t:dataList value="#

      {test.values}

      " var="value">
      <h:message for="item"/>
      <h:inputText id="item" required="true" value="#

      {value.value}

      "/><br/>
      </t:dataList>
      <br/>
      <h:commandButton/>
      </h:form>
      </f:view>

      -------------Test.java-----------(A SESSION managed bean named "test")
      import java.util.ArrayList;
      import java.util.HashMap;
      import java.util.List;
      import java.util.Map;

      public class Test {
      List values;
      public List getValues() {
      if(values == null) {
      values = new ArrayList();

      { Map valuesMap = new HashMap(); valuesMap.put("value", "Groovy"); values.add(valuesMap); } { Map valuesMap = new HashMap(); valuesMap.put("value", "Dude"); values.add(valuesMap); } { Map valuesMap = new HashMap(); valuesMap.put("value", "Bob"); values.add(valuesMap); }

      }
      return values;
      }
      }

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Mike Youngstrom
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development