pe:masterDetail dynamic with ui:repeat e.g.

Community Driven Extensions Project
Post Reply
vished
Posts: 479
Joined: 02 Feb 2014, 17:38

11 Mar 2020, 00:58

Hi all,

I would like to have a dynamic pe:masterDetail...
I want to load the questions from my database and generate then a dynamic <pe:masterDetailLevel...
I could have one questions, but I could have 5 questions.
1 question = 1x <pe:masterDetailLevel
5 questions = 5x <pe:masterDetailLevel

It seems this is not working, just prototype:

Code: Select all

<pe:masterDetail id="masterDetail" level="#{wizardMasterDetailController.currentLevel}" showBreadcrumb="false">  
<ui:repeat>
<pe:masterDetailLevel level="#{levelFromBean}"> 
<pe:masterDetail expects directly after that a <pe:masterDetailLevel (a <ui:repeat> is not allowed).

Do you have any idea, how can this be managed?
Just to have a feeling, what I try to do:
https://www.check24.de/profis/

Just add postal code and a service, and you will different kind of questions...

Many thanks
PF 8.0

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

11 Mar 2020, 01:51

This PFE component I know the least about and it doesn't seem to get used very much. It is definitely not designed to be dynamic.

I would require major changes to make it work and I don't use this component so I would not be the one putting any time in to fix it.

I highly recommend to not use this component and "roll your own" version of Master Detail or use PrimeFaces Wizard etc.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

vished
Posts: 479
Joined: 02 Feb 2014, 17:38

11 Mar 2020, 16:55

Ok, thank you for the hint. I´ve tried this already with "Wizard":
viewtopic.php?t=53508

But nobody was able to help me here..
PF 8.0

Blanchardg
Posts: 1
Joined: 04 Apr 2020, 12:23

04 Apr 2020, 12:25

I too started with a ui:include inside a ui:repeat like yours, but I accepted that I had to use a c:forEach, and the c:forEach worked great for dynamically getting a different set of xhtml/components to include even with user interaction changing krogerfeedback survey

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests