how to add masterDetailLevel to masterDetail dinamically

Community Driven Extensions Project
Post Reply
Posts: 3
Joined: 18 Sep 2012, 02:35

19 Sep 2012, 21:42

Hi team,

I'd like to know if I'm able to add in my manage bean new objects of masterDetailLevel to a masterDetail. I'm assuming that in my xhtml the masterDetail is binding my java variable and I'm using view scope.

Thanks in advance.


User avatar
Expert Member
Posts: 3803
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

20 Sep 2012, 15:50

I don't know I never tried binding, but theoretically this should work as in all other JSF / PrimeFaces components. There is nothing specific in MasterDetail / MasterDetailLevel what would prevent dynamic creation via binding.

One question. Why do you need this at all? Do you intend to create the entire component with all sub-content dynamically? This is a not trivial task if you have many sub-components. Better to use dynamic includes with <ui:include src="#{myBean.currentPath}"/>.
PrimeFaces Cookbook (2. edition): Learning Angular UI Development with PrimeNG: ... th-primeng Blog:

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests