Problem updating elements

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
arturo bravo
Posts: 1
Joined: 12 Jul 2017, 16:35

25 Oct 2017, 22:12

Hi!
I install Barcelona on my project but since I did it command buttons from primeFaces doesn't update any components on the view in my application.
Is there a special way to do this?

<p:commandButton value="Search" actionListener="#{bean.search()}" update="@form" />

Thanks.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

01 Nov 2017, 11:13

I think this issue isn't related to Barcelona Layout or Theme. Could you please attach a sample page? Also, maybe you can use the following example;

Code: Select all

//bean
private boolean rendered = true;

public void search() {
   rendered = false;
}

//getters; setters;

Code: Select all

<h:form>
...
<p:inputText rendered="#{bean.rendered}" />
<p:commandButton value="Search" actionListener="#{bean.search()}" update="@form" />
...
</h:form>

Post Reply

Return to “Barcelona - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests