Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 1231 invoked from network); 15 Jan 2006 07:28:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jan 2006 07:28:48 -0000 Received: (qmail 32399 invoked by uid 500); 15 Jan 2006 07:28:41 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 32345 invoked by uid 500); 15 Jan 2006 07:28:40 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 32334 invoked by uid 99); 15 Jan 2006 07:28:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Jan 2006 23:28:40 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.163.179.131] (HELO web35507.mail.mud.yahoo.com) (66.163.179.131) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 14 Jan 2006 23:28:39 -0800 Received: (qmail 73859 invoked by uid 60001); 15 Jan 2006 07:28:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=kREcCTujif9JPw1/ZrUtFkhU/SkneCOyFG4qD6i5mEeLA5wM1BJrjgy2P0seY+NKUqhmcNYqXV2MJtUsRJOR4H8ZshfW9garzc9rmTD9Lwowj36b0prGLYKpgD5jLZpwP3Q2r2pPkEyf7N1rExVYbyhiTulun02yDsQi6kdVWfQ= ; Message-ID: <20060115072818.73857.qmail@web35507.mail.mud.yahoo.com> Received: from [67.164.93.99] by web35507.mail.mud.yahoo.com via HTTP; Sat, 14 Jan 2006 23:28:18 PST Date: Sat, 14 Jan 2006 23:28:18 -0800 (PST) From: Dave Subject: Re: [jira] Closed: (MYFACES-981) action/action listener/model upate/ were not called To: users@myfaces.apache.org In-Reply-To: <1410304040.1135872965447.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-637954312-1137310098=:70620" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-637954312-1137310098=:70620 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I tested using the following simple example. testBean is session scope. The commandLink action method inside was never called. I tried 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 books; public TestBean() { books = new ArrayList(); for (int i=0; i<10; i++) { books.add(new Book("Title" + i, "Author" + i)); } } public List getBooks() { return books; } public void setBooks(List 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"%> <%-- test dataList --%>   "Mike Kienenberger (JIRA)" 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! --0-637954312-1137310098=:70620 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
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"%>
& lt;%@ 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)" <dev@myfaces.apache.org> 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< BR>> ----------------------------------------------------------------
>
> 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! --0-637954312-1137310098=:70620--