<pe:dynamicForm> inside iterator (ui:repeat, p:tabView...)

Community Driven Extensions Project
Post Reply
ds_dev
Posts: 19
Joined: 27 Oct 2011, 10:03

29 Oct 2012, 19:38

Hi,

I was trying to use multiple <pe:dynaForm> inside a page. I don't know how many there will be so I was using a <p:tabView> to display them.
I noticed that my bean was not update with the values I provided in the UI. I tried <p:dataList> and <ui:repeat> and had the same behavior.

So I tried to identify where the issue was and I noticed that when not using iterator elements, it worked well, even with multiple <pe:dynamicForm> in the page.

I could not find an issue created on this nor a topic opened.
Can someone tell me if you can reproduce it ?

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

30 Oct 2012, 10:18

Can you post your code please? Are you trying pe:dynaForm in ui:repeat? Does p:dataList not work in ui:repeat as well?
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

ds_dev
Posts: 19
Joined: 27 Oct 2011, 10:03

30 Oct 2012, 15:32

Hi Oleg,

I guess I wasn't clear enough. What i meant is that <pe:dynaForm> does not seem to work for me when it is nested inside an iterator component such as <p:tabView>, <ui:repeat> or <p:dataList>.
I never tried <pe:dataList> inside a <ui:repeat>, I guess it should work but that's not what I need to use :).

Here is a simplified snippet of what I'm trying to use:

Code: Select all

<p:tabView value="#{bean.formModels}" var="formModel">
     <p:tab title="Title">
          <pe:dynaForm value="#{formModel}" var="formEntry">
                   ...
          </pe:dynaForm>
     </p:tab>
</p:tabView>
This snippet doesn't work (formEntry datas are not updated) but if I remove the <p:tabView> then it works fine. The same behavior applies if I replace <p:tabView> with <ui;repeat> or <p:dataList> .
The <pe:dynaForm> does not work when inside these iterator components.

Thanks for your help.

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

30 Oct 2012, 16:23

Never tested DynaForm in UIData components like <p:tabView>, <ui:repeat> or <p:dataList>. Please create an issue in our issue tracker please http://code.google.com/p/primefaces-ext ... ssues/list with a link to this post. Thanks.
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

ds_dev
Posts: 19
Joined: 27 Oct 2011, 10:03

05 Nov 2012, 10:17

Forgot to post the link for the bug.

http://code.google.com/p/primefaces-ext ... ail?id=303

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests