• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to do the following simple work in GWT

 
peter tong
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a page divide into two side, the left hand side is a menu, click on a
menu will cause the right hand side show the page correspondingly.
example:
menu1
--submenu 1.1
menu2
menu3

if click on menu 1, the right hand side will show panel 1
if click on menu 2, the right hand side will show panel 2
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you got so far and where are you stuck?

From your description, using a HorizontalSplitPanel for the main container and a Tree for the menu would be the way to go.
 
peter tong
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:What have you got so far and where are you stuck?

From your description, using a HorizontalSplitPanel for the main container and a Tree for the menu would be the way to go.


in fact, I do not know how to start it.
I think the right is a frame, and the left menu item is something like link, set target to that frame...
but do not know how to start it.

and cannot find any simple project with these layout yet.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
peter tong wrote:
I think the right is a frame, and the left menu item is something like link, set target to that frame...

Its not. Read my earlier post
Recommended readings
http://examples.roughian.com/index.htm#Panels~HorizontalPanel
http://examples.roughian.com/index.htm#Widgets~Tree
 
peter tong
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maneesh Godbole wrote:
peter tong wrote:
I think the right is a frame, and the left menu item is something like link, set target to that frame...

Its not. Read my earlier post
Recommended readings
http://examples.roughian.com/index.htm#Panels~HorizontalPanel
http://examples.roughian.com/index.htm#Widgets~Tree


thanks for the link
I see the link and see a type of panel called FormPanel, I also see something about GWT-RPC.
I think if one of the right panel is let user fill in some searching criteria, and when the user click on the submit button,
the searching criteria will pass to server, and in the server will run a sql to retrieve the result, and then return to another panel to show the record retrieved.
in this case, need use FormPanel?
then when submit, the parameter is passed to server, but how the server get that parameter? just use request.getParameter("XXX")?
then how to return result to other panel to show the reult?
and how this related to GWT-RPC?

I am very new in GWT and always found the references is only for one page (no jump page like the above scenario).
 
peter tong
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think, if GWT-RPC for ajax partial refresh, for whole page refresh like my example (jump page from search criteria to result), then use formpanel and traditional request.getParameter, request.sendDispatcher?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic