[jboss-user] [JBoss Seam] - Re: Submitting using SelectOneRadio

monkeyden do-not-reply at jboss.com
Mon Oct 30 13:49:29 EST 2006


Sorry, hosed the action method (needs to return String), but the main problem is still the same.  Can't force the radio button's value into the Seam component.

public String locationsByState(){
  |         currentLocations = new ArrayList<SelectItem>();
  |         loadLocations();
  |         Context event = Contexts.getEventContext();
  |         Context session = Contexts.getSessionContext();
  |         Context page = Contexts.getPageContext();
  |         for(int i=0;i<staticLocations.size();i++){
  |             SelectItem current = staticLocations.get(i);
  |             if(current.getDescription().trim().equals(selectedState)){
  |                 currentLocations.add(current);
  |         }
  |     }
  |     setSelectedTab(1);
  |     return display();        
  | }

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

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



More information about the jboss-user mailing list