Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rowStatePreserved property to UIRepeat, exactly the same as UIData #1263

Closed
eclipse-faces-bot opened this issue Oct 14, 2013 · 19 comments
Closed
Labels
mojarra-implemented API issue implemented by Mojarra myfaces-implemented API issue implemented by MyFaces Priority: Major Type: New Feature
Milestone

Comments

@eclipse-faces-bot
Copy link

This is the implementation work for #1230, but it can be done outside of the spec because properties can be added to Facelet backed components without having to change the TLD.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
Reported by @edburns

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
Issue-Links:
blocks
JAVASERVERFACES-2633
is related to
JAVASERVERFACES_SPEC_PUBLIC-1230

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@edburns said:
Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
@manfredriem said:
Setting priority to Major

@eclipse-faces-bot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-1263

@eclipse-faces-bot
Copy link
Author

@tandraschko
Copy link

@arjantijms @BalusC WDYT about this? im currently working on a PF bug: primefaces/primefaces#10047

the problem is that ui:repeat doesnt have rowStatePreserved like UIData
its import to have this for such bugs

@tandraschko tandraschko changed the title Add rowStatePreserved property to com.sun.faces.facelets.component.UIRepeat, exactly the same as javax.faces.component.UIData Add rowStatePreserved property to UIRepeat, exactly the same as UIData May 11, 2023
@tandraschko
Copy link

@BalusC are you ok with this? would like to start adding it to MF then

@BalusC
Copy link
Member

BalusC commented Jul 25, 2023

Sure.

I however still want to extract a base class based on common logic of UIData and UIRepeat (UIIterable?) so we don't need to copy paste logic and it's also useful for e.g. PrimeFaces DataTable/Repeat, but I imagine this is a bit more of work.

@tandraschko
Copy link

tandraschko commented Jul 25, 2023

yep, a base class would be the best
should we target that for 5.0? then we can create a new issue for this

i will start right now to add rowStatePreserved to ui:repeat in MF

@BalusC
Copy link
Member

BalusC commented Jul 25, 2023

+1

This has been requested before as UIIterate: #963

Similar request but then for a tree component: #965

@tandraschko
Copy link

@BalusC
can we add rowStatePreserved in 4.1 and create something like UIIterate in 5.0?

@tandraschko tandraschko added the myfaces-implemented API issue implemented by MyFaces label Oct 17, 2023
@tandraschko
Copy link

added rowStatePreserved to ui:repeat for now

@BalusC
Copy link
Member

BalusC commented Nov 1, 2023

Do you have a link to MF commit for reference?

@tandraschko
Copy link

apache/myfaces@16a2cf1

@volosied
Copy link
Contributor

volosied commented Nov 1, 2023

I had reused a lot of methods from our UIData class, so it would be good to create a superclass to avoid duplication in 5.0.

@BalusC
Copy link
Member

BalusC commented Nov 4, 2023

We should indeed really look at some common superclass and preferably also move UIRepeat into the jakarta.faces.component API as earlier suggested by @mnriem .

As to the concrete issue, this can also be solved/workarounded by simply using c:forEach instead of ui:repeat. This is less trivial for h:dataTable (you'd need to write all the HTML table markup yourself), hence the rowStatePreserved makes more sense over there in h:dataTable.

@BalusC
Copy link
Member

BalusC commented Nov 4, 2023

eclipse-ee4j/mojarra#2247 contains a useful use case / reproducer that could be used as tck.

BalusC added a commit to eclipse-ee4j/mojarra that referenced this issue Nov 4, 2023
BalusC added a commit to eclipse-ee4j/mojarra that referenced this issue Nov 4, 2023
BalusC added a commit to eclipse-ee4j/mojarra that referenced this issue Nov 4, 2023
@tandraschko
Copy link

yeah sure
i think the new attr is ok for 4.1 but in 5.0 we should make a superclass for it!

BalusC added a commit to eclipse-ee4j/mojarra that referenced this issue Nov 4, 2023
getter/setter as UIRepeat is going to be moved into API of Faces.next
jakartaee/faces#1263
@BalusC BalusC added the mojarra-implemented API issue implemented by Mojarra label Nov 11, 2023
@BalusC BalusC closed this as completed Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mojarra-implemented API issue implemented by Mojarra myfaces-implemented API issue implemented by MyFaces Priority: Major Type: New Feature
Projects
None yet
Development

No branches or pull requests

4 participants