ConfirmDialog
Posted: 02 Dec 2016, 22:59
I have two virtually identical confirmDialog items that are triggered from slightly different places. Both are triggered from Java with
private void promptAlternateUser() {
RequestContext context = RequestContext.getCurrentInstance();
context.execute( "PF('confirmApprove').show();" );
}
and
private void promptWitnessUser() {
RequestContext context = RequestContext.getCurrentInstance();
context.execute( "PF('confirmWitness').show();" );
}
From promptWitnessUser, all the fields of the dialog are available in Java when the p:commandButton action occures. On the other, the fields are not available and are always blank in Java.
Both dialogs use exactly the same bean and the bean is in the session map.
So, obviously confirmDialog works. But I can't find the difference in my code between the ways the one one that works is processed and the one that doesn't work is processed.
Any ideas?
private void promptAlternateUser() {
RequestContext context = RequestContext.getCurrentInstance();
context.execute( "PF('confirmApprove').show();" );
}
and
private void promptWitnessUser() {
RequestContext context = RequestContext.getCurrentInstance();
context.execute( "PF('confirmWitness').show();" );
}
From promptWitnessUser, all the fields of the dialog are available in Java when the p:commandButton action occures. On the other, the fields are not available and are always blank in Java.
Both dialogs use exactly the same bean and the bean is in the session map.
So, obviously confirmDialog works. But I can't find the difference in my code between the ways the one one that works is processed and the one that doesn't work is processed.
Any ideas?