I am using v 2.0.
Where is pe:paginator?
Where is pe:paginator?
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
Hmm bad news, I will check if i can get the source.
Defining paginator within datatable itself is not a elegant solution and creates very much boiler-plate markup. Especially if you have a generic DAO.
PF should provide <p:paginator> itself.
You know what was the latest version it was available?
Defining paginator within datatable itself is not a elegant solution and creates very much boiler-plate markup. Especially if you have a generic DAO.
PF should provide <p:paginator> itself.
You know what was the latest version it was available?
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0
I think it was available in PFExt 0.6.x version.By the way why it will create boiler-plate markup for generic DAO etc.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
Thanks will search it and build my own from it source if possible.
Which could easily be reduced to:
Because i have like 20+ datatables with identical markup using a generic DAO class that inherits from LazyDataModel:sudheer wrote:By the way why it will create boiler-plate markup for generic DAO etc.
Code: Select all
<p:dataTable var="entity" value="#{bean.dao}"
rows="10" rowKey="#{entity.id}" selection="#{entity.selEntity}" selectionMode="single"
paginator="true" paginatorPosition="bottom" pageLinks="1" paginatorAlwaysVisible="false"
paginatorTemplate="#{msg.tablePaginatorTemplate}" emptyMessage="#{msg.noRecordsFound_u}">
<!-- content -->
</p:dataTable>
Code: Select all
<p:dataTable var="entity" value="#{bean.dao}"
rows="10" rowKey="#{entity.id}" selection="#{bean.dao.selEntity}" selectionMode="single">
<!-- content -->
<comp:paginator dao="#{bean.dao}"/>
</p:dataTable>
Last edited by djmj on 05 Oct 2015, 00:51, edited 2 times in total.
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0
This is bit a rare use case.But you can confirm with Oleg/Thomas whether any chances to port it back.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
Exactly, it's really not that rare.
I have this problem with multiple components - like a pe:inputNumber specially configured for EURO.
I would always need to add ~5 attributes on the tag - thats annoying.
Currently i just derive the component class and overwrite the getter/statehelper#get call with my default value.
I have this problem with multiple components - like a pe:inputNumber specially configured for EURO.
I would always need to add ~5 attributes on the tag - thats annoying.
Currently i just derive the component class and overwrite the getter/statehelper#get call with my default value.
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
IMO its easier as replicate every component attr in the cc:interface section.
But i just done it for our company internal framework and only for such a global component - otherwise i use composites too.
But i just done it for our company internal framework and only for such a global component - otherwise i use composites too.
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
-
- Information
-
Who is online
Users browsing this forum: No registered users and 24 guests