aspose file tools*
The moose likes GWT and the fly likes how to do the following simple work in GWT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "how to do the following simple work in GWT " Watch "how to do the following simple work in GWT " New topic
Author

how to do the following simple work in GWT

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
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

Joined: Jul 26, 2007
Posts: 10360
    
    8

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
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

Joined: Jul 26, 2007
Posts: 10360
    
    8

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

Joined: Mar 15, 2008
Posts: 240
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

Joined: Mar 15, 2008
Posts: 240
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to do the following simple work in GWT