Hi everybody,

Is there a way to have dependend choices?

Something like this:

addPhone(@Named("Company") Company company,
           @Named("Model") PhoneModel model){
    Phone p = container.newInstance......
    ...
    return p;
}

choices0AddPhone(){
  return all Phone Companies
}

choices1AddPhone(Company company){
   return models(company)
}

Using the 'Process Object Pattern' as described in Dan's book wouldn't help if 
I understood it right.
An input, like selecting the company will not be 'available' until the user 
clicked 'OK'. 
Or am I missing something?

         Christian


           Christian

Reply via email to