• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to do the following simple work in GWT

 
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
This tiny ad is suggesting that maybe she should go play in traffic.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic