myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Commented: (MYFACES-539) h:datatable correctly calls my backing bean's method once on first request, but calls the method twice on subsequent requests (i.e. refresh)
Date Thu, 08 Sep 2005 19:59:32 GMT
    [ http://issues.apache.org/jira/browse/MYFACES-539?page=comments#action_12322959 ] 

Mike Kienenberger commented on MYFACES-539:
-------------------------------------------

JSF imposes no limit on the number of times your backing bean's method might be called.

If it's an expensive or non-repeatable operation, it's up to your backing bean to cache the
value for the duration of the time it's needed.

That said, there is an optimization that could be made for t:dataTable under certain conditions.
 You can read about it here, and since I'm not sure that an issue was opened on this optimization,
perhaps this issue could be used for that purpose.

http://wiki.apache.org/myfaces/Working_With_DataTable_And_PreserveDataModel

However, I don't think this optimization would change the behavior you're seeing.

> 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


Mime
View raw message