the viewport can be only one....why you're creating a viewport for the
southPanel????
the viewport must contain everything....all the browser window...
simply remove this...--->> Viewport viewport =new Viewport(southPanel);
and read below what is viewport:

/**
 * A specialized container representing the viewable application area (the
browser viewport).
 * <br>
 * The Viewport renders itself to the document body, and automatically sizes
itself to the size of the browser viewport and
 * manages window resizing. There may only be one Viewport created in a
page.
 * <p>
 * This class takes the "main" / top level panel passed in its constructor
and "expands" it to fit the browsers viewable area.
 *
 * You must not add the "main" panel to GWT's RootPanel via
RootPanel.get().add(..) when using the ViewPort class - this is done
 * automatically for you.
 *
 * @author Sanjiv Jivan
 */
public class Viewport

2009/9/18 Sumeet Chakraborty <[email protected]>

> Thanks for your reply Michele . But It didnt work :( .
>
>  Let me add one more info to this ... I have an HTML page names
> Masters.html which has the grid in it . Now in the southpanel of my admin
> screen I have a Frame named MasterFrame. Then on a menu click I initialize
> the Frame with the html page and add it to the south panel :
>
> Here goes the code :
>
>     BaseItemListenerAdapter listener =new BaseItemListenerAdapter(){
>                     public void onClick(BaseItem item,EventObject e ){
>
>                                           masterFrame=new
> Frame("Masters.html");
>                                           masterFrame.setWidth("1020");
>                                           masterFrame.setHeight("550");
>
>                                          southPanel.add(masterFrame);
>                                          Viewport viewport =new
> Viewport(southPanel);
>                                  }
>                        };
>
>
> Now is this the right way to go ? I am very new to GWTEXT programming so It
> may be a silly one. But the problem is actually troubling me a lot. I am not
> able to see the required grid in south panel. The south panel is turning
> blue as soon as I click on the menu.
>
> Please note , this problem occurs only when I say Compile/Browse or I
> invoke my application in Mozilla, IE or Chrome. In the default Eclipse Web
> Host browser .. its running fine and I can see the grid and everything.
>
> Please help.
>
>
>
>
>
> On Fri, Sep 18, 2009 at 12:50 PM, Patrizio De Michele <[email protected]
> > wrote:
>
>> try a doLayout on the southPanel.........
>>
>> 2009/9/17 Sumeet Chakraborty <[email protected]>
>>
>> Hi all .. any solution on this problem ?
>>>
>>> On Thu, Sep 17, 2009 at 7:37 PM, Sumeet Chakraborty <
>>> [email protected]> wrote:
>>>
>>>> To be precise .. I am using GWTEXT
>>>>
>>>>
>>>> On Thu, Sep 17, 2009 at 5:33 PM, Sumeet <[email protected]> wrote:
>>>>
>>>>> Hi All
>>>>>
>>>>> I am developing an Admin module for my organization using GWT. I have
>>>>> screen which has 3 panels .. North , Center and South. North Panel has
>>>>> my organization logo, center has few Menus and south panel is kept
>>>>> blank initially.  On click of a menu option I want to load a Grid with
>>>>> Local Pagination in the South Panel. So on the menu click I call a
>>>>> method from onModuleLoad() to populate the south panel with the Grid
>>>>> and Data in it from MySql Database.
>>>>>
>>>>> Now it works fine in the Default Host Browser in Eclipse development
>>>>> environment.
>>>>>
>>>>> But when I chick on Compile/Browse option, the initial screen appears
>>>>> with the logo and menus. But on clicking the menu the south Panel
>>>>> turns Blue (the same color the Toolbar used to add menus) and nothing
>>>>> else is displayed.
>>>>>
>>>>> I tried using different browsers like mozilla , chrome . But the
>>>>> problem exists. I tried deploying on Tomcat ... but still no solution.
>>>>>
>>>>> So my question is ... Am I missing some essential steps before
>>>>> invoking my application on browser ?
>>>>>
>>>>> Please help me asap as this has halted my progress on developing the
>>>>> site .
>>>>>
>>>>> Thanks and Regards
>>>>> Sumeet
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> With best regards...
>>>>
>>>> Sumeet Chakraborty
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> With best regards...
>>>
>>> Sumeet Chakraborty
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> With best regards...
>
> Sumeet Chakraborty
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to