[JBoss JIRA] Moved: (RF-4798) SequenceDataModel.walk(...) Fires DataModelEvent for Each row instead of a only 1!
by Jay Balunas (JIRA)
[ https://jira.jboss.org/jira/browse/RF-4798?page=com.atlassian.jira.plugin... ]
Jay Balunas moved AJSF-147 to RF-4798:
--------------------------------------
Project: RichFaces (was: Ajax4jsf)
Key: RF-4798 (was: AJSF-147)
Affects Version/s: 3.2.2
(was: 1.1.1)
> SequenceDataModel.walk(...) Fires DataModelEvent for Each row instead of a only 1!
> ----------------------------------------------------------------------------------
>
> Key: RF-4798
> URL: https://jira.jboss.org/jira/browse/RF-4798
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.2
> Environment: Ajax4jsf in RichFaces 3.2.1 & 3.2.2 bundles.
> Reporter: Paul Kossler
>
> org.ajax4jsf.model.SequenceDataModel.walk(...)
> ...
> while (rows < 0 || currentRow < rows) {
> wrappedModel.setRowIndex(currentRow);
> if(wrappedModel.isRowAvailable()){
> visitor.process(context, new Integer(currentRow), argument);
> } else {
> break;
> }
> currentRow++;
> }
> ...
> Issue: wrappedModel.setRowIndex(currentRow) fires a DataModelEvent for each row in the wrapped model.
> This creates broken behavior for the Event model.
> If you have a listener on a DataModel it gets called for each and every row during PhaseId.APPLY_REQUEST_VALUES
> This makes the model think every row gets selected for each cycle!
> NOTE: The org.richfaces.model.SequenceDataModel.walk is implemented with out this.
> Its seems to me that the latter model handles this the general wrappedData access issue cleanly by copying the Collection ObjectReferences into an iterable list.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 1 month
[JBoss JIRA] Resolved: (RF-4206) add rowIndex to aj4:repeat stateVar
by Nick Belaevski (JIRA)
[ https://jira.jboss.org/jira/browse/RF-4206?page=com.atlassian.jira.plugin... ]
Nick Belaevski resolved RF-4206.
--------------------------------
Resolution: Rejected
Assignee: Tsikhon Kuprevich (was: Nick Belaevski)
Unfortunately this patch won't work correct:
1. int rowIndex is a not necessary option for components using DataComponentState, there can be another type of keys
2. current index for a4j:repeat can be bound to model and used by means of rowKeyVar attribute
3. DataComponentState should not contain information about current iteration state, component is responsible for that by design
> add rowIndex to aj4:repeat stateVar
> -----------------------------------
>
> Key: RF-4206
> URL: https://jira.jboss.org/jira/browse/RF-4206
> Project: RichFaces
> Issue Type: Patch
> Affects Versions: 3.2.1
> Reporter: Gergely Nagy
> Assignee: Tsikhon Kuprevich
> Fix For: 3.3.0
>
> Attachments: richfaces-a4j-repeat-stateVar.patch
>
>
> currently there is no way to access the index of the currently iterated "row" in the a4j:repeat tag. a patch is included to add this. perhaps other info could be exposed as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 1 month
[JBoss JIRA] Created: (RF-3354) rich:datascroller doesn't change displayed data only page numbers are changed.
by Andrey Chorniy (JIRA)
rich:datascroller doesn't change displayed data only page numbers are changed.
------------------------------------------------------------------------------
Key: RF-3354
URL: http://jira.jboss.com/jira/browse/RF-3354
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: JBoss 4.2.2 GA (or Tomcat deployment)
Seam 2.0.1GA or Seam 1.2.1GA
Reporter: Andrey Chorniy
This issue is tied with special "pages.xml" configuration which is used to build RESTFul links. In that case request is executed for dummy-view (which has no rel xhtml file behind)
the action is executed at every request (usually parse link parameters, build required object model, etc.) as well if any ajax request executed for such page - it workd without invoking "handler-action"
and operates directly with Action-Bean.
This approach work's ok on richfaces 3.1.4 but now it doesn't work, since dataGrid data is not refreshed if use datascroller.
<!-- This is dummy-view used to execute action at the time of URL opening (used to introduce RESTFul requests) -->
<!-- If use real view instead, then at each ajax request the action method will be executed -->
<!-- This approach work ok with RichFaces 3.1.4 and less, but stop working with RichFaces 3.2.0
rich:dataScroller doesn't change the data on pages (only page-numbers changed) -->
<page view-id="/myHome.xhtml">
<action execute="#{itemsDataProvider.show()}"/>
<navigation from-action="#{itemsDataProvider.show()}">
<!-- bind action with view -->
<render view-id="/home.xhtml"/>
</navigation>
</page>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 1 month