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

DataTable: introduce UIColumns #1837

Open
Rapster opened this issue Aug 30, 2023 · 0 comments
Open

DataTable: introduce UIColumns #1837

Rapster opened this issue Aug 30, 2023 · 0 comments

Comments

@Rapster
Copy link

Rapster commented Aug 30, 2023

Based on this primefaces/primefaces#10331

DataTable from PF is based on javax.faces.component.UIData, and gives the possibility to set dynamic columns with <p:columns />. The latter is not a UIColumn, and because of that, we have to copy the whole saving/restoring state algorithm from UIData (and also the visit part...)

One solution could be to use <c:foreach /> with <p:column /> but there might be few differences compare to the <p:columns />

Would it be possible just like <h:selectOneListbox /> and <f:selectItems /> do, to give the possibility to set dynamically columns (e.g <h:columns />?

That way, we could keep PF agnostic as much as we can from existing impls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant