Working with ActionListener

i am working with a complex structured application where i have to invoke the ActionListener.processAction() before the PROCESS_VALIDATIONS phase.

i have a set of code which is

publicclass MyActionListenerimplements ActionListener{

public PhaseId getPhaseId(){

return PhaseId.PROCESS_VALIDATIONS;

}

publicvoid processAction(ActionEvent arg0)throws AbortProcessingException{

// TODO Auto-generated method stub

log.info("-- processAction --");

}

}

<h:commandButton id="btnSubmit"

action="#{bean.action}">

<f:actionListener type="mypack.listener.MyActionListener" />

</h:commandButton>

but the processAction is called in INVOKE_APPLICATION phase.

kindly help me to know how to invoke the listener before the Validation phase

thanks in advance

Subbhu

[1428 byte] By [Subbhua] at [2007-11-27 10:33:19]
# 1

Try using the immediate attribute on your commandLink or commandButton.

RaymondDeCampoa at 2007-7-28 18:22:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

> Try using the immediate attribute on your commandLink

> or commandButton.

immediate attribute will bypass the validation phase all the times, but i am in need to conditionally bypass the validation.

is there any other means...

thanks

Subbhu

Subbhua at 2007-7-28 18:22:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

It might be best if you tell us what you are trying to accomplish at a higher level.

RaymondDeCampoa at 2007-7-28 18:22:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...