I've got the following problem, I have these two buttons that do:
X: Retrieves the value of a graph +: Adds the value of a graph
Ineedittolooklikethis:WhenIclicktheXbutton
Itswitchestothe+button,astheyhavedifferentfunctionsasyoumightnotice.
Myviewiscurrentlyso:
<p:columnwidth="30">
<p:commandButton id="valorSelect" value="x"
actionListener="#{statusView.selecionarView}" update=":novoform:grafico" >
<f:attribute name="projetoSelecionadoNaView" value="#{projeto}" />
</p:commandButton>
<p:commandButton value="+"
actionListener="#{statusView.addView}" update=":novoform:grafico" >
<f:attribute name="projetoSelecionadoNaView" value="#{projeto}" />
</p:commandButton>
</p:column>