Diego Macario
Diego Macario

Reputation: 1230

<f:setPropertyActionListener> works in one form, but not in another form

I found one problem to use <f:setPropertyActionListener target="#{filialBean.tipoFilial}" value="0"/>, I put this code in different forms, and put a debug point in the getters atribute in the bean class.

One form calls the debug mode in Eclipse, but the other form didn´t call, they share the same bean class.

So whats the problem?

Or anyone suggest other ways to pass value form a form? This value is hidden.

Upvotes: 0

Views: 353

Answers (1)

BalusC
BalusC

Reputation: 1108782

i changed actionListener to action and worked

All action listeners are invoked in the sequence in the order they're declared on the component. The actionListener attribute is invoked before any <f:setPropertyActionListener>. If you have paid more careful attention to debugging (or actually debugged it instead of apparently lying) then you should have noticed that the setter is invoked, only at a later moment than the action listener method.

See also:

Upvotes: 1

Related Questions