[jboss-user] [JBoss Seam] - Delaying ValueChangeEvent problem...

waheed.murad do-not-reply at jboss.com
Mon Mar 19 02:21:15 EDT 2007


I am queuing event when it is fired after Apply_Request_values phase for Update_model_value phase but it is fired first time during(Apply_Request_values) but not after Update_model_Values phase....
   
public void changeMethod(ValueChangeEvent event)
{

PhaseId phaseId = event.getPhaseId();
String oldValue = (String) event.getOldValue();
String newValue = (String) event.getNewValue();

if (phaseId.equals(PhaseId.ANY_PHASE)){

System.out.println("Called ANY_PHASE");
event.setPhaseId(PhaseId.UPDATE_MODEL_VALUES);
event.queue();

}else if (phaseId.equals(PhaseId.UPDATE_MODEL_VALUES)){

  System.out.println("Called after UPDATE MODEL VALUES phase..");

}

}


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029209#4029209

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029209



More information about the jboss-user mailing list