Problem with Dialog/PanelGrid/Form

UI Components for JSF
Post Reply
mgs76
Posts: 8
Joined: 25 Nov 2010, 10:16

10 Dec 2010, 17:21

Hello,

I open an dialog from a datagrid. I want to show some data.
This works:

Code: Select all

<p:dialog header="#{msg.general_delete}" widgetVar="appuserDeleteDialog"
                              resizable="false" modal="true"
                              width="400" showEffect="explode" hideEffect="explode">
                        <h:panelGrid id="displayDelete" columns="2" cellpadding="4">
                            <h:form id="deleteForm">
but it's not what I want - I want the grid inside the form:

Code: Select all

<p:dialog header="#{msg.general_delete}" widgetVar="appuserDeleteDialog"
                              resizable="false" modal="true"
                              width="400" showEffect="explode" hideEffect="explode">
                            <h:form id="deleteForm">
                        <h:panelGrid id="displayDelete" columns="2" cellpadding="4">
But then data is not displayed...

Is this an error? Or is there s.th. wrong with my code?

Thanks

Michael

mgs76
Posts: 8
Joined: 25 Nov 2010, 10:16

14 Dec 2010, 12:05

Hello,

I still have the problem -and I think it's a bug. The problem is, that the dialog doesn't call setters and getters - but the bean is know:

Code: Select all

<p:dialog id="dialog" header="Test" widgetVar="editDialog" modal="true">
                        #{testBean}
                        #{testBean.something}
                        <h:form id="newFormId">
                            #{testBean}
                        #{testBean.something}
                        <h:panelGrid columns="2" cellpadding="5">
                            #{testBean}
                        #{testBean.something}
                                                    </h:panelGrid>
                        </h:form>
                    </p:dialog>
The output is only the bean - but not the value for something!

And it has nothing to do with the datatable...

mgs76
Posts: 8
Joined: 25 Nov 2010, 10:16

14 Dec 2010, 12:16

Hello,

I found the problem - it's all about the update: If I call update on the form it works - but if I call the update on the dataTable it's the problem.

Regards

Michael

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 45 guests