Page 1 of 1

Problem updating elements

Posted: 25 Oct 2017, 22:12
by arturo bravo
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.

Re: Problem updating elements

Posted: 01 Nov 2017, 11:13
by mert.sincan
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>