Hi guys,
I am trying to use one of the PrimeFaces Extensions components (MasterDetail) and having problems getting the navigation to work after adding a 4th level (masterDetailLevel); Everything seems to work fine until I click on the 3rd level's pe:selectDetailLevel commandLink to go down to the 4th level.
Then the top navigation seem to break.
Just want to confirm; I should be able to use any number of levels right?
Thanks in advance.
s6y
MasterDetail more than 3 levels?
-
- Posts: 80
- Joined: 23 Nov 2011, 08:46
Primefaces 5.3, Extensions 4.0.0
Glassfish 3.1.2.2, Wildfly-10.0.0.Final
JSF 2.2
Glassfish 3.1.2.2, Wildfly-10.0.0.Final
JSF 2.2
Hi,
There are no limitations. We use MasterDetail with more than 10 levels. Please post you code here.
There are no limitations. We use MasterDetail with more than 10 levels. Please post you code here.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin
-
- Posts: 80
- Joined: 23 Nov 2011, 08:46
Hi Oleg,
Thank you for the quick reply. I was about to give up when I realized that all of the objects weren't Serializable ! Duh! This fixed the problem!
Hopefully this will help somebody in the future?
Btw. awesome component! So useful in our environment.
Best Regards
s6y
Thank you for the quick reply. I was about to give up when I realized that all of the objects weren't Serializable ! Duh! This fixed the problem!
Hopefully this will help somebody in the future?
Btw. awesome component! So useful in our environment.
Best Regards
s6y
Primefaces 5.3, Extensions 4.0.0
Glassfish 3.1.2.2, Wildfly-10.0.0.Final
JSF 2.2
Glassfish 3.1.2.2, Wildfly-10.0.0.Final
JSF 2.2
Glad to hear. I can not imagine my web apps without this component too. Especially for CRUD apps it is must to have and saves much development time.
I normally start design with defining views (= pages) and sections in views (= page pieces) by pe:masterDetail. Something like (example from one app).
I normally start design with defining views (= pages) and sections in views (= page pieces) by pe:masterDetail. Something like (example from one app).
Code: Select all
<pe:masterDetail id="masterDetail" level="#{currentLevelData.currentLevel}">
<f:facet name="header">
<p:messages id="messages"/>
</f:facet>
<pe:masterDetailLevel level="1" levelLabel="Users">
<ui:include src="/sections/users/search.xhtml"/>
</pe:masterDetailLevel>
<pe:masterDetailLevel level="2" levelLabel="Create User" rendered="#{currentLevelData.currentLevel == 2}">
<ui:include src="/sections/users/create.xhtml"/>
</pe:masterDetailLevel>
<pe:masterDetailLevel level="3" rendered="#{currentLevelData.currentLevel == 3}">
<ui:include src="/sections/users/edit.xhtml"/>
</pe:masterDetailLevel>
<pe:masterDetailLevel level="4" levelLabel="Membership" rendered="#{currentLevelData.currentLevel == 4}">
<ui:include src="/sections/common/membership.xhtml">
<ui:param name="membershipBean" value="#{membershipUser}"/>
</ui:include>
</pe:masterDetailLevel>
</pe:masterDetail>
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin
-
- Posts: 80
- Joined: 23 Nov 2011, 08:46
Extraordinary! I will definitely use this idea of yours thank you Oleg and thank you for sharing it with us.
I am using the component for a specific drill down in objects, but like you demonstrate it can be very useful for simple CRUD requirements. Going to try this out and let you know.
Best Regards
s6y
I am using the component for a specific drill down in objects, but like you demonstrate it can be very useful for simple CRUD requirements. Going to try this out and let you know.
Best Regards
s6y
Primefaces 5.3, Extensions 4.0.0
Glassfish 3.1.2.2, Wildfly-10.0.0.Final
JSF 2.2
Glassfish 3.1.2.2, Wildfly-10.0.0.Final
JSF 2.2
-
- Information
-
Who is online
Users browsing this forum: No registered users and 9 guests