DockLayoutPanel can not show center element using uibinder

2010-11-10 Thread Shelley
hello all:
below is a super simple app, which demonstrate the use of uibinder, so
strange that after lanching the app, i can only see the top part of
docklayoutpanel, nothing shows in the below part!
is there anything wrong? please help me out, thanks very much.

public class KeyProviderExample implements EntryPoint
{
public void onModuleLoad()
{
RootPanel.get().add( new ExpensesShell() );
}
}

public class ExpensesShell extends Composite
{
interface ShellUiBinder extends UiBinderWidget, ExpensesShell
{
}

private static ShellUiBinder uiBinder =
GWT.create( ShellUiBinder.class );

public ExpensesShell()
{
initWidget( uiBinder.createAndBindUi( this ) );
}
}



!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:e='urn:import:com.history.client'


g:DockLayoutPanel unit='PX'
g:north size='50'
g:HTMLPanelabc/g:HTMLPanel
/g:north
g:center
g:HTMLPaneldef/g:HTMLPanel
/g:center
/g:DockLayoutPanel
/ui:UiBinder

-- 
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-tool...@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.



Re: DockLayoutPanel can not show center element using uibinder

2010-11-10 Thread Shelley
Yes! it works! i considered everything but the RootLayoutPanel. thanks
very much.

On Nov 10, 10:57 pm, zixzigma zixzi...@gmail.com wrote:
 i think, in your onModuleLoad method,

         RootPanel.get().add( new ExpensesShell() );

 change RootPanel to RootLayoutPanel.

 please report back if it works.
 thank you

-- 
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-tool...@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.



Re: the button and its infoLabel problem...

2010-07-13 Thread Shelley
thanks very much Danny.

On Jul 13, 8:28 pm, Danny Goovaerts danny.goovae...@gmail.com wrote:
 I think that you need a deferred command to handle this. Limit your
 clickhandler to set the infoLabel to Beginning and then launch a
 deferred command who's execute method performs the search and then
 updates the label.
 In this way, the execution thread will finnish, causing the screen to
 be updated with the beginning label and then only the defrred command
 will be executed.

 On 8 jul, 05:26,Shelleygsun...@gmail.com wrote:



  thank Andreas and Aditya for your explanation.

  however the problem has nothing to do with RPC, the search operation
  i mentioned above is simply a local operation such as sort a large
  chunk of data which will take seconds to completed. meanwhile the
  client is unresponsive until the click OnClick() is completed, you can
  simply simulate this situation by doing a  while loop.

  is there other way i can see the beginning... ? or GWT has the
  ability to make UI responsive when it doing a time-consuming operation
  in client?

  thanks.

  -Shelley

  On Jul 7, 8:44 pm, andreas horst.andrea...@googlemail.com wrote:

   HeyShelley,

   a bit of further information is missing but may it be that you issue
   an RPC between infoLabel.setText(Beginning); and
   infoLabel.setText(Completed);?

   If so you simply forgot the async nature of GWT RPC. Your code in
   onClick(...) will not sort of stop or wait until the RPC finishes and
   continue afterwards. That's why infoLabel.setText(Completed);
   will be immediately executed after infoLabel.setText(Beginning);
   and you're simply way to slow to see it.

   What you could do instead is call infoLabel.setText(Completed);
   in your onSuccess(...) in case I'm right with RPC or in the callback
   of whatever request you do for your search operation.

   Andreas

   On 7 Jul., 10:22,Shelleygsun...@gmail.com wrote:

hello all:
   i came across a strange problem which seems quite simple:

   i have a button and a label on a panel, the button has been
registered a listener:

  Button searchButton = new Button( Search );
        searchButton.addClickHandler( new ClickHandler()
        {
            @Override
            public void onClick( ClickEvent event )
            {
                infoLabel.setText(Beginning);
                //do a search operation here which will take more than
5 seconds...
                infoLabel.setText(Completed...);
            }
        } );

that's all, but i never see the Beginning“ on the label, but only
see the completed..., seem the label will not refresh it's text
until onClick is  finished? how can i achieved the function that
display beginning... first and Completed... when the operation
completed?

thanks in advance.

-Shelley

-- 
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-tool...@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.



the button and its infoLabel problem...

2010-07-07 Thread Shelley
hello all:
   i came across a strange problem which seems quite simple:

   i have a button and a label on a panel, the button has been
registered a listener:

  Button searchButton = new Button( Search );
searchButton.addClickHandler( new ClickHandler()
{
@Override
public void onClick( ClickEvent event )
{
infoLabel.setText(Beginning);
//do a search operation here which will take more than
5 seconds...
infoLabel.setText(Completed...);
}
} );

that's all, but i never see the Beginning“ on the label, but only
see the completed..., seem the label will not refresh it's text
until onClick is  finished? how can i achieved the function that
display beginning... first and Completed... when the operation
completed?

thanks in advance.

-Shelley

-- 
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-tool...@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.



Re: the button and its infoLabel problem...

2010-07-07 Thread Shelley
thank Andreas and Aditya for your explanation.

however the problem has nothing to do with RPC, the search operation
i mentioned above is simply a local operation such as sort a large
chunk of data which will take seconds to completed. meanwhile the
client is unresponsive until the click OnClick() is completed, you can
simply simulate this situation by doing a  while loop.

is there other way i can see the beginning... ? or GWT has the
ability to make UI responsive when it doing a time-consuming operation
in client?

thanks.

-Shelley


On Jul 7, 8:44 pm, andreas horst.andrea...@googlemail.com wrote:
 HeyShelley,

 a bit of further information is missing but may it be that you issue
 an RPC between infoLabel.setText(Beginning); and
 infoLabel.setText(Completed);?

 If so you simply forgot the async nature of GWT RPC. Your code in
 onClick(...) will not sort of stop or wait until the RPC finishes and
 continue afterwards. That's why infoLabel.setText(Completed);
 will be immediately executed after infoLabel.setText(Beginning);
 and you're simply way to slow to see it.

 What you could do instead is call infoLabel.setText(Completed);
 in your onSuccess(...) in case I'm right with RPC or in the callback
 of whatever request you do for your search operation.

 Andreas

 On 7 Jul., 10:22,Shelleygsun...@gmail.com wrote:



  hello all:
     i came across a strange problem which seems quite simple:

     i have a button and a label on a panel, the button has been
  registered a listener:

    Button searchButton = new Button( Search );
          searchButton.addClickHandler( new ClickHandler()
          {
              @Override
              public void onClick( ClickEvent event )
              {
                  infoLabel.setText(Beginning);
                  //do a search operation here which will take more than
  5 seconds...
                  infoLabel.setText(Completed...);
              }
          } );

  that's all, but i never see the Beginning“ on the label, but only
  see the completed..., seem the label will not refresh it's text
  until onClick is  finished? how can i achieved the function that
  display beginning... first and Completed... when the operation
  completed?

  thanks in advance.

  -Shelley

-- 
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-tool...@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.



Re: GWT IE Bug affecting RichTextArea, TextBox, etc.

2010-05-18 Thread Brett Shelley
Problem:  The problem is a result of a RichTextArea being embedded in a
TabPanel.

To Reproduce:  In IE8, add a RichTextArea to a TabPanel.  Navigate to the
Tab containing  a RichTextArea.  Leave the Tab without Focusing on the
RichTextArea. The entire app enters a state where TextBoxes, TextAreas, and
RichTextAreas cannot get focus.

Solution:  Set Focus on the RichTextArea when the TabPanel is opened.  If
the RichTextArea is in the first tab, then a Timer that sets Focus after
some short delay will generate the focus event.  Focusing on the
RichTextArea enables the application to remain in a working state.

Thanks,

Brett




On Mon, May 17, 2010 at 10:14 PM, Brett S. brett.h.shel...@gmail.comwrote:

 Hello,

 I am at a loss that I can only reproduce with IE8 (both XP and Win7).
 I would greatly appreciate any assistance.

 I have a GWT 2.0 application that has several DialogBoxes containing
 text boxes, buttons, etc.  Everything works fine in Firefox, Chrome,
 etc.

 In one DialogBox, I have a TabPanel with three Tabpanels.  One of the
 tabs has a RichTextArea.  The first time I edit text in the TextAreas,
 everything is fine.  The second or third time, the text area locks
 up.  The TextArea takes no focus and does not allow editing.  Buttons
 still work.  I can close my DialogBox and open a completely unrelated
 DialogBox with a simple TextBox. This TextBox suddenly does not work
 either.  Once the application goes into the no focus, no edit state
 for Text Entry Widgets, there is no return. No Text Controls work.
 Buttons, Menus, popup windows work fine though.

 In Dev and Production mode, no errors or exceptions are being
 thrown.

 I read in some older postings (2008) that TabPanels have trouble
 containing TextAreas.  So, I removed the TextAreas from the TabPanel.
 The problem was not fixed by not having TextAreas in Tab Panels.

 My hope is that someone out there has experienced this problem. Please
 let me know if any workarounds exist.

 Thank you!

 Brett












 --
 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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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-tool...@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.