It seems that gwt's and smartgwt components cannot be mixed.
ComboBoxItem works fine inste smawrgwt's Window object.

On Sep 19, 12:40 pm, Serge <[email protected]> wrote:
> I'm using smartgwt and I'm trying to add ComboBoxItem to a Dialog box
> (I'm adding it to a DynamicForm and then adding the form to the dialog
> box)
> But, when I do that, the it doesn't let me select an item from the
> drop down using the mouse.  I can do it only using the arrow keys.  It
> works fine when it's not in the dialog box.  Here is the code:
> import com.smartgwt.client.widgets.form.DynamicForm;
> import com.smartgwt.client.widgets.form.fields.ComboBoxItem;
> import com.smartgwt.client.widgets.layout.HLayout;
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.user.client.ui.DialogBox;
>
> /**
>  * Entry point classes define <code>onModuleLoad()</code>.
>  */
> public class ComboBoxTest implements EntryPoint {
>
>         /**
>          * This is the entry point method.
>          */
>
>     public void onModuleLoad() {
>
>         final DynamicForm form = new DynamicForm();
>         form.setWidth(250);
>
>         ComboBoxItem cbItem = new ComboBoxItem();
>         cbItem.setTitle("Select");
>         cbItem.setHint("<nobr>A simple ComboBoxItem</nobr>");
>         cbItem.setType("comboBox");
>         cbItem.setValueMap("Cat", "Dog", "Giraffe", "Goat",
> "Marmoset", "Mouse");
>
>         form.setFields(cbItem);
>         //form.draw();
>
>                 final DialogBox dialogBox = new DialogBox();
>                 dialogBox.add(form);
>                 dialogBox.show();
>
>     }
>
> }
>
> Calling draw() in the DynamicForm object doesn't seem to change
> anything.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to