On 13 Mar 2011, at 10:18, tech7 wrote: > > I have a dropdownchoice component on my page and according to some selections > on my page, this component is updated by a ajax call. > At the beginning it displays the choices without showing "Choose One" but > after ajax call it displays "Choose One". I know this issue is coming from > any of the choices are not selected right there but I don't know how to say > the component choose first one as selected for not displaying "Choose One".
The component will select the item that your model provides. If your model's object is not set, the component will not select anything. It would be crazy to think that the component should have an element selected that wasn't actually the model's object. So, if you want to select the first element, set your model's object to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
