Friday, October 8, 2010

Re: Set up of GWT site

Great.
And supposing that i have already created my composite widget into a
new .java class. How do i call this new page??
Window.open(..) ??

And if i don't want to open a new page, how can i hide the old page
components?


Thanks in advance


On 6 Ott, 22:10, Brian <hibr...@gmail.com> wrote:
> Generally in a gwt app, all links stay within your application (all
> within the same html page).  The links are just tokens that are
> handled by your single app (which is hosted in one page).
>
> In 100% pseudo code, you'd have something like:
>
> whenHistoryChanged(token){
>  if (token.equals("about")){
>     show(about screen);
>   } else if (token.equals("feeback")){
>     show(feedback screen);
>  }
>
> }
>
> Take a look at:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...
>
> In the "onValueChange" method, you compare the "event.getValue()" with
> your tokens ("about", "feedback" etc) and replace the content with the
> content for that page.
>
> You would probably create a new 'widget' or composite widget, for each
> of your pages.  And yeah, each page would probably be in its own .java
> file.
>
> On Oct 6, 3:46 pm, nick kov <nickko...@gmail.com> wrote:
>
>
>
> > This question is for the developers that are more experienced with
> > GWT. I am wondering exactly how you set a site up in terms of
> > navigation? For example with HTML I would naturally use links to
> > travel between pages, etc. But with GWT, if somebody clicks on a link
> > on your site, do you guys just hide() the widgets and load new ones.
> > Or do you take them to a different page entirely?
>
> > Also I am wondering how the structure of a neat site looks using GWT.
> > For example, do I create a new .java file for each page that exists on
> > the site? I'm just relatively new to this and need some pointers.
> > Thanks!- Nascondi testo citato
>
> - Mostra testo citato -

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment