You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org> on 2006/02/24 22:45:39 UTC
[jira] Commented: (TOMAHAWK-156) DataList doesn't validate or
update model in 1.1.2 nightlies
[ http://issues.apache.org/jira/browse/TOMAHAWK-156?page=comments#action_12367716 ]
Mike Kienenberger commented on TOMAHAWK-156:
--------------------------------------------
Do you mind trying this with an h:dataTable and t:dataTable as well (You'll need to add in h:column elements)? That will help determine if the bug is in UIData or specific to dataList (which is probably the case).
Maybe it's finally time to dump t:dataList as a separate component and implement it as a special renderer for dataTable.
Also, I see similar bugs fixed in MYFACES-716 and MYFACES-561 (is this one really fixed?)
-Mike
> DataList doesn't validate or update model in 1.1.2 nightlies
> ------------------------------------------------------------
>
> Key: TOMAHAWK-156
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-156
> Project: MyFaces Tomahawk
> Type: Bug
> Components: Data List
> Versions: 1.1.2-SNAPSHOT
> Reporter: Mike Youngstrom
> Priority: Critical
>
> 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;
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira