I tested dataList using the latest build.
 
<commandLink> works.
but <inputText> did not work. the setter method (setTitle) was never called during model update.
A comment has been added to http://issues.apache.org/jira/browse/MYFACES-853
 
Thanks.

Dennis Byrne <[EMAIL PROTECTED]> wrote:
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) action/action listener/model upate/ were not called
>
>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.aut hor = 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 --%>
>
> > var="book"
> value="#{testBean.books}"
> layout="simple"
> rowCountVar="rowCount"< BR>> rowIndexVar="rowIndex">
>
>
> > action=""/>
>
>  
>
>

>

>

>
>
>
>
>
>"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 furt her 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!




Yahoo! Photos – Showcase holiday pictures in hardcover
Photo Books. You design it and we’ll bind it!

Reply via email to