Posted By:
Ryan_Torborg
Posted On:
Wednesday, July 22, 2009 11:32 AM
I have a set of two radio buttons where I have an "onclick" event to check the value that is selected. When it gets to the method that is to check the value, it is displaying the previous value instead of the current value. Here are the radio buttons: Here is the method: FacesContext ctx = FacesContext.getCurrentInstance(); Map Params = (Map ) ctx.getExternalContext().getSessionMap(); ChangeType aChangeType = (ChangeType)Params.get(IManagedBeanNames.CHANGE_TYPE); System.out.println(aChangeType.getChangeTypeCode()); The first time I click, it prints NULL. Then, each time I click on a radio button, it p
More>>
I have a set of two radio buttons where I have an "onclick" event to check the value that is selected. When it gets to the method that is to check the value, it is displaying the previous value instead of the current value.
Here are the radio buttons:
Here is the method:
FacesContext ctx = FacesContext.getCurrentInstance();
Map
Params = (Map
) ctx.getExternalContext().getSessionMap();
ChangeType aChangeType = (ChangeType)Params.get(IManagedBeanNames.CHANGE_TYPE);
System.out.println(aChangeType.getChangeTypeCode());
The first time I click, it prints NULL. Then, each time I click on a radio button, it prints the previous value??
Any thoughts?