help me to fix that

UI Components for JSF
Post Reply
minhthu215
Posts: 1
Joined: 20 Sep 2018, 04:54

20 Sep 2018, 05:47

Hi, I'm playing with the examples...

In the first example of PPR:

<h:form>
[...]
<p:button value="Ajax Submit" update="display" async="true" />
[...]
<h:panelGrid id="display" columns="2">
<h:outputText value="Firstname:" />
<h:outputText value="#{PPRBean.firstname}" />

<h:outputText value="Surname:" />
<h:outputText value="#{PPRBean.surname}" />
</h:panelGrid>
</h:form>

it doesn't update the fields,

but putting one id in the form tag:

<h:form id="mainform">

and calling

<p:button value="Ajax Submit" update="mainform:display" async="true" />

works fine.

I don't if this is a issue or not, but anyway...

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

21 Sep 2018, 11:03

Hi, couple of things...
- Please create a good title. This tile could be used for each and every question and is sort of useless
- Use [ c o d e ] ... [ / c o d e ] tags around code without the spaces. Makes it more readable
- Run your application in development mode https://stackoverflow.com/questions/191 ... ject-stage
- Find out the real reference to use in the update https://stackoverflow.com/questions/863 ... find-compo

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests