Hi Ian,
Sorry for the late reply, I was out of office for last few days

here is part of the code
        for ( j = 0; j < URLs.getLength()-1; j++)
                                        {
                                                v1[j] = new VerticalPanel();
                                                String str = 
URLs.item(j).getAttributes().toString();
                                        //      System.out.println(str);
                                                
tabpanel.add(v1[j],str.substring(13,16));
                                            
fucn(v1[j],str.substring(13,16),drag);
                                            
v1[j].setTitle(str.substring(13,16));
                                            b1 = new Button ("Submit");
                                            b1.addClickHandler(handler2);
                                            v1[j].add(b1);


                                        //end of for loop
                                        }


the button b1 is an public button

Sincerely,
Rahul

On Aug 20, 1:08 pm, Ian Bambury <[email protected]> wrote:
> Hi Rahul,
> That seems very odd to me. If you want to post of send me some code, I'll
> have a look. I wouldn't know how to make my code do that if I wanted it to
> :-)
>
> Ian
>
> http://examples.roughian.com
>
> 2009/8/19 Rahul <[email protected]>
>
>
>
> > Hi Ian,
>
> > Yes sure i can give an example from my code.
> > I have a tab panel that has 7 tabs. Each tab has 10 composite widgets.
> > Each composite widget is composed of a label and textbox. I creating
> > these widgets and first adding them to all a vertical panel. Then at
> > last i am adding an Submit button to each vertical panel. and then to
> > the tabpanel.
>
> > the first time i run my application, i see the submit button on the
> > top of each tab above all the composite widgets, when i refresh it, it
> > comes to the bottom, below all the composite widgets.
>
> > Now the cascading tabs: Some of the composite widgets when click open
> > into more composite widgets. I created those widgets as separate
> > tabpanel. and did the same thing as earlier. Now the first time the
> > program runs, the composite widgets for example label 3 (thinking i
> > have ten composite widgets from Label 1 to label 10 and they should be
> > placed in order from 1 to 10) is placed after label 10. when refreshed
> > once, it comes to its right place which is after label2 and before
> > label4.
>
> > I hope I was more clearer this time, if not, please ask, ill elborate
> > more
>
> > On Aug 19, 2:36 pm, Ian Bambury <[email protected]> wrote:
> > > Hi Rahul,
> > > For some reason I didn't get the email Chad has replied to.
>
> > > I'm sure there must be a way to create the layout you want in the right
> > > order first time. Do you have an example?
>
> > > Refreshing should create exactly the same effect as running it the first
> > > time (all other factors being equal - i.e. you are not setting a bookmark
> > or
> > > anything like that)
>
> > > Also, I'm not sure I understand what you mean by 'cascading tabs'.
>
> > > Ian
>
> > >http://examples.roughian.com
>
> > > 2009/8/19 Chad <[email protected]>
>
> > > > Rahul,
>
> > > > Instead of trying to refresh the page, you should probably defer the
> > > > loading of your buttons, labels, and tabs. Use a DeferredCommand for
> > > > making the call to the method(s) for creating those widgets. It sounds
> > > > like they are loading before something that they rely on loads.
> > > > Although, this may have no effect whatsoever. :-/
>
> > > > HTH,
> > > > Chad
>
> > > > On Aug 18, 9:32 am, Rahul <[email protected]> wrote:
> > > > > Hi,
> > > > > I am loading buttons in individual tabs of a tab panel. In the tab
> > > > > panel i have some labels in order and also some cascading tabs in
> > > > > order.
> > > > > The first time the page is loaded, the buttons (which i want at the
> > > > > bottom) are at the top of each tab and the cascading tabs which i
> > want
> > > > > in order are at the bottom of each tab. But whenever i refresh the
> > > > > page once, everything comes to the place i want. So i figured that if
> > > > > i refresh the page once it has been loaded, i can get the widgets
> > > > > where i want them
>
> > > > > is this the right approach or theres a better way to do this ?
>
> > > > > On Aug 17, 11:06 pm, Ian Bambury <[email protected]> wrote:
>
> > > > > > Why do you want to reload the page as soon as it has just loaded?
> > > > > > Can't you just get it right the first time?
>
> > > > > > What do you want to happen the second time that didn't happen the
> > first
> > > > > > time?
>
> > > > > > Ian
>
> > > > > >http://examples.roughian.com
>
> > > > > > 2009/8/18 Rahul <[email protected]>
>
> > > > > > > HI Ian,
> > > > > > > thanks for replying
> > > > > > > i have started looking at some tutorials for javascript
> > > > > > > but i have some more confusion.
>
> > > > > > > all coding i did in gwt was in java in the client class, so for
> > this
> > > > > > > functionality also i need to code in the client class? or not? i
> > need
> > > > > > > to do javascript for tht. and if i can do in java, what is the
> > > > function
> > > > > > > ( because when searched it always shows me how to do with
> > javascript
> > > > > > > and not in java)
>
> > > > > > > On Aug 17, 6:00 pm, Ian Bambury <[email protected]> wrote:
> > > > > > > > 2009/8/17 Rahul <[email protected]>
>
> > > > > > > > > Hi
> > > > > > > > > I want to refresh my webpage once after loading completely. I
> > am
> > > > using
> > > > > > > > > this code for this
>
> > > > > > > > >    <script language=" JavaScript" >
> > > > > > > > >        function MyReload()
> > > > > > > > >        {
> > > > > > > > >                window.location.reload();
> > > > > > > > >        }
> > > > > > > > >        </SCRIPT>
>
> > > > > > > > > and calling
> > > > > > > > > <Body onLoad=" MyReload()" >  on body part of my html file
>
> > > > > > > > > but this is not working
> > > > > > > > > can anyone tell me where am i going wrong?
>
> > > > > > > > First problem is that you are asking a JavaScript question in a
> > GWT
> > > > group
> > > > > > > > :-)
>
> > > > > > > > Second problem is that your webpage will loop, endlessly
> > loading
> > > > and
> > > > > > > > reloading. This a pretty basic a mistake, so maybe it would be
> > a
> > > > good
> > > > > > > idea
> > > > > > > > to search for some JavaScript tutorials or sign up to a
> > JavaScript
> > > > > > > > beginners' group.
--~--~---------~--~----~------------~-------~--~----~
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