[ http://issues.apache.org/jira/browse/MYFACES-539?page=all ]
Joseph Yi updated MYFACES-539:
------------------------------
Attachment: myfaces-test.war
I created an example application to demonstrate this issue. Basically, the
index.jsp redirects to testList.jsf which contains the h:datatable that gets a
List of String objects from my TestController managed bean. I set a logger on
INFO which prints out that getTestList was executed.
Use Case:
1) access the myfaces-test application
2) notice that 'getTestList called' is logged in the log
3) hit refresh
Outcome: notice that 'getTestList called' is logged twice from refreshing
Expected Result: only one execution to getTestList should have been made
Once the session clears, the first request will only execute getTestList once,
but subsequent requests in the same session causes double execution. If I am
mistaken, please direct me to a resource which explains why this is the case.
Thanks!
> h:datatable correctly calls my backing bean's method once on first request,
> but calls the method twice on subsequent requests (i.e. refresh)
> --------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: MYFACES-539
> URL: http://issues.apache.org/jira/browse/MYFACES-539
> Project: MyFaces
> Type: Bug
> Components: General
> Versions: 1.0.9m9
> Reporter: Joseph Yi
> Attachments: myfaces-test.war
>
> I'm new to JSF so I apologize in advance if this is not a bug and just a
> misunderstanding on my part on how JSF is supposed to work.
> I have an issue where I have a JSP with h:datatable which gets a List of
> objects from a backing bean. On a user's first request, the backing bean's
> method to retrieve the list is only called once. However, subsequent requests
> causes double execution of the method.
--
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