I forgot to add, but the following is a workaround, and makes both
the TextBox and RichTextArea editable.

                categoryTextBox.addClickHandler(new ClickHandler() {
                        @Override
                        public void onClick(ClickEvent event) {
                                categoryTextBox.setFocus(true);
                                categoryTextBox.setCursorPos(0);
                        }
                });

On Sep 29, 2:37 pm, mwaschkowski <mwaschkow...@gmail.com> wrote:
> Not sure why, but the below code stops working in IE (works fine for
> me in chrome).
>
> In IE, do the following:
>
> 1) click Show Dialog
> 2) enter '1' into the TextBox AND into the RichTextArea
> 3) press cancel
> 4) click Show Dialog
>
> On my box, both the TextBox and RichTextArea become un-editable (like
> setEnabled(false) was called).
>
> Other people notice the same? If so, I'll fill out a bug report. If
> I'm doing something incorrectly, just let me know...
>
> Thanks,
>
> Mark
>
> package com.test.client;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.event.dom.client.ClickEvent;
> import com.google.gwt.event.dom.client.ClickHandler;
> import com.google.gwt.user.client.ui.Button;
> import com.google.gwt.user.client.ui.DialogBox;
> import com.google.gwt.user.client.ui.FlexTable;
> import com.google.gwt.user.client.ui.HorizontalPanel;
> import com.google.gwt.user.client.ui.Label;
> import com.google.gwt.user.client.ui.PopupPanel;
> import com.google.gwt.user.client.ui.RichTextArea;
> import com.google.gwt.user.client.ui.RootPanel;
> import com.google.gwt.user.client.ui.TextBox;
> import com.google.gwt.user.client.ui.VerticalPanel;
>
> /**
>  * Entry point classes define <code>onModuleLoad()</code>.
>  */
> public class RichTextAreaTest implements EntryPoint {
>
>         /**
>          * This is the entry point method.
>          */
>         public void onModuleLoad() {
>
>                 Button showButton = new Button("Show", new ClickHandler() {
>                         @Override
>                         public void onClick(ClickEvent event) {
>                                 PopupPanel popup = getPopup();
>                                 popup.show();
>                         }
>                 });
>
>                 Button showDialogButton = new Button("Show Dialog", new 
> ClickHandler
> () {
>                         public void onClick(ClickEvent event) {
>                                 DialogBox dialogBox = getDialogBox();
>                                 dialogBox.setAutoHideEnabled(true);
>                                 dialogBox.show();
>                         }
>                 });
>
>                 RootPanel.get().add(showButton);
>                 RootPanel.get().add(showDialogButton);
>         }
>
>         private DialogBox getDialogBox(){
>                 final DialogBox db = new DialogBox();
>
>                 Label categoryLabel = new Label("Category");
>                 TextBox categoryTextBox = new TextBox();
>
>                 Label contentLabel = new Label("Content");
>                 RichTextArea contentTextArea = new RichTextArea();
>
>                 //setup inputs
>                 FlexTable table = new FlexTable();
>                 table.setWidget(0, 0, categoryLabel);
>                 table.setWidget(0, 1, categoryTextBox);
>                 table.setWidget(1, 0, contentLabel);
>                 table.setWidget(1, 1, contentTextArea);
>                 //if above gets commented out, then everything works as 
> expected
>
>                 //setup buttons
>                 Button cancelButton = new Button("Cancel", new ClickHandler() 
> {
>                         @Override
>                         public void onClick(ClickEvent event) {
>                                 db.hide();
>                         }
>                 });
>
>                 HorizontalPanel hp = new HorizontalPanel();
>                 hp.add(cancelButton);
>
>                 VerticalPanel mainPanel = new VerticalPanel();
>                 mainPanel.add(table);
>                 mainPanel.add(hp);
>
>                 db.add(mainPanel);
>                 return db;
>         }
>
>         private PopupPanel getPopup() {
>                 final PopupPanel popup = new PopupPanel(true);
>                 VerticalPanel panel = new VerticalPanel();
>                 panel.add(new TextBox());
>                 panel.add(new RichTextArea());
>                 popup.setWidget(panel);
>                 return popup;
>         }
>
>
>
> }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to