Please try checking out/building current SVN.  Otherwise, you will have to wait 
a week or two until nightly builds are available again. 

Drop a comment at http://issues.apache.org/jira/browse/MYFACES-853 regarding 
any more problems once you get a more current build.

Dennis Byrne


>-----Original Message-----
>From: Dave [mailto:[EMAIL PROTECTED]
>Sent: Sunday, January 15, 2006 02:28 AM
>To: [email protected]
>Subject: Re: [jira] Closed: (MYFACES-981) <t:dataList> action/action 
>listener/model upate/ were not called
>
>I tested <dataList> using the following simple example.
>  testBean is session scope. The commandLink action method inside <dataList> 
> was never called.  I tried <inputText> with dataList before, model update 
> method was never called. 
>   
>  I am using nightly build 2005.11.20.  Any one has the same issue with 
> dataList? Please let me know if you use dataList successfully with inputText 
> and commandLink.
>   
>  Thanks for help,
>Dave
>   
>  -------------TestBean.java --------------
>   
>  import java.util.ArrayList;
>import java.util.List;
>  
>public class TestBean {
>    private String name;
>  private List<Book> books;
>  
>  public TestBean() {
>    books = new ArrayList<Book>();
>    for (int i=0; i<10; i++) {
>      books.add(new Book("Title" + i, "Author" + i));
>    }
>  }
>    public List<Book> getBooks() {
>    return books;
>  }
>    public void setBooks(List<Book> books) {
>    this.books = books;
>  }
>    public String getName() {
>    return name;
>  }
>    public void setName(String name) {
>    this.name = name;
>  }
>    public String clickLink() {
>    System.out.println("Clicked" );
>    return null;
>  }
>  
>}
>
>  -----------------Book.java -----------------
>  
>public class Book {
>  private String title;
>  private String author;
>  
>  public Book() {
> 
>  }
>    public Book(String title, String author) {
>    this.title = title;
>    this.author = author;
>    
>  }
>  public String getAuthor() {
>    return author;
>  }
>    public void setAuthor(String author) {
>    this.author = author;
>  }
>    public String getTitle() {
>    return title;
>  }
>    public void setTitle(String title) {
>    this.title = title;
>  }
>    public String clickLink() {
>    System.out.println("Click: " + getTitle());
>    return null;
>  }
>  
>}
>   
>  ---------------------test.jsp --------------------------
>   
>    <%@ page contentType="text/html; charset=UTF-8"%>
>  <%@ 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"%>
>  <HTML>
>  <head>
>  <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8">
>  </head>
>  <body>
>  <f:view>
>  <%-- test dataList --%>
>  <h:form>
>  <t:dataList id="books"
>  var="book"
>  value="#{testBean.books}"
>  layout="simple"
>  rowCountVar="rowCount"
>  rowIndexVar="rowIndex">
>  
>  
>  <h:commandLink value="#{book.title}"
>  action="#{book.clickLink}"/>
>  
>  <f:verbatim>&nbsp;</f:verbatim>
>  
>  </t:dataList>
>  </h:form>
>  </f:view>
>  </body>
>  </HTML>
>
>
>
>"Mike Kienenberger (JIRA)" <[email protected]> wrote:
>  [ http://issues.apache.org/jira/browse/MYFACES-981?page=all ]
>
>Mike Kienenberger closed MYFACES-981:
>-------------------------------------
>
>Resolution: Invalid
>
>Dave,
>
>This situation is almost never a bug, but instead a usage error.
>The information you've posted strongly points to you failing to preserve your 
>UIData model between requests.
>
>Make #{treeNode.children} session scoped, or use t:saveState to preserve it, 
>and the problem will probably be solved.
>
>I recommend that you discuss this on the user list if you have further 
>questions.
>If it turns out to be a bug, we can reopen the issue with an example showing 
>the bug.
>
>
>
>> action/action listener/model upate/ were not called
>> ----------------------------------------------------------------
>>
>> Key: MYFACES-981
>> URL: http://issues.apache.org/jira/browse/MYFACES-981
>> Project: MyFaces
>> Type: Bug
>> Components: Tomahawk
>> Versions: Nightly
>> Environment: Windows XP, JBoss 4.0.3 SP1
>> Reporter: Dave
>> Priority: Critical
>
>>
>> 
>> > var="child"
>> value="#{treeNode.children}"
>> layout="simple"
>> rowCountVar="rowCount"
>> rowIndexVar="rowIndex">
>> 
>> 
>> 
>> 
>> 
>> 
>> Rendering is OK. 
>> But clicking commandLink, actionListener was not called, action method was 
>> not called.
>> the same problem for commandButton.
>> For inputText, child.setName() was not called. That is, model update for 
>> inputText was not called.
>> 
>
>-- 
>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
>
>  
>
>
>               
>---------------------------------
>Yahoo! Photos – Showcase holiday pictures in hardcover
> Photo Books. You design it and we’ll bind it!


Reply via email to