Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Page Navigation: How to?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
luxspes  
View profile  
 More options Feb 25, 11:35 pm
From: luxspes <luxs...@hotmail.com>
Date: Wed, 25 Feb 2009 20:35:15 -0800 (PST)
Local: Wed, Feb 25 2009 11:35 pm
Subject: Page Navigation: How to?
Hi!

How do I do a redirect from one page to another? How do I pass an
object from one page to another? Do I have to use the query string? or
do you support something like Rails flash or Seam conversations to do
that kind of work?

I navigation (and object exchange between page) programmatic, object
oriented and type safe as in Wicket or WebObjects? or is it XML based
(declarative, procedural oriented and type unsafe) as in JSF?

What do you think about <a href="http://luxspes.blogspot.com/2008/08/
navigation-no-hard-dependencies-no-type.html">this</a>.

Regards,

LuxSpes


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Craig Federighi  
View profile  
 More options Feb 25, 11:53 pm
From: Craig Federighi <craig.federi...@gmail.com>
Date: Wed, 25 Feb 2009 20:53:22 -0800
Local: Wed, Feb 25 2009 11:53 pm
Subject: Re: Page Navigation: How to?
Hi Luxspes,

> How do I do a redirect from one page to another? How do I pass an
> object from one page to another? Do I have to use the query string?

Oh lord, no!  :-)

> I navigation (and object exchange between page) programmatic, object
> oriented and type safe as in Wicket or WebObjects

Yes.

e.g.:
class ComponentA ... {
        public AWComponent doSomethingAction () {
                ComponentB dest = pageWithName(ComponentB.class.getName());
                dest.setSomething(something);
                return dest;
        }
  ...

And if, instead, you'd like B so show up in a nested panel (assuming  
that B wrapped its content in a ModalPageWrapper):
        public AWComponent doSomethingAction () {
                ComponentB dest = pageWithName(ComponentB.class.getName());
                dest.setSomething(something);
                dest.setClientPanel(true);
                return dest;
        }

You can also, of course, initialize B with yourself (i.e. an instance  
of A) or some other form of callback, so that B can call you back.
Or (for instance if B uses ModalPageWrapper) they may just  
automatically return to the previous page.

> What do you think about <a href="http://luxspes.blogspot.com/2008/08/
> navigation-no-hard-dependencies-no-type.html">this</a>.

I think that whoever thought of this was really onto something!  ;-)

- craig

On Feb 25, 2009, at 8:35 PM, luxspes wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
luxspes  
View profile  
 More options Feb 25, 11:56 pm
From: luxspes <luxs...@hotmail.com>
Date: Wed, 25 Feb 2009 20:56:28 -0800 (PST)
Local: Wed, Feb 25 2009 11:56 pm
Subject: Re: Page Navigation: How to?
Oh, and just to complement the previous questions....

What if I do need to read some information from the query string?

Regards,

On Feb 25, 10:53 pm, Craig Federighi <craig.federi...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
luxspes  
View profile  
 More options Feb 25, 11:55 pm
From: luxspes <luxs...@hotmail.com>
Date: Wed, 25 Feb 2009 20:55:07 -0800 (PST)
Local: Wed, Feb 25 2009 11:55 pm
Subject: Re: Page Navigation: How to?
Oh God, where where you all this years!!!!!!!!

On Feb 25, 10:53 pm, Craig Federighi <craig.federi...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Craig Federighi  
View profile  
 More options Feb 26, 12:23 am
From: Craig Federighi <craig.federi...@gmail.com>
Date: Wed, 25 Feb 2009 21:23:43 -0800
Local: Thurs, Feb 26 2009 12:23 am
Subject: Re: Page Navigation: How to?

> What if I do need to read some information from the query string?

           someParam =  
requestContext().request().formValueForKey("someKey")

You can see both methods in action in the Documentation Search app  
page (see examples/Demo/search/SearchSource.groovy init() and show()):
   1) If the page is executed via a direct action (see example/Demo/
app/DirectAction.java:docAction) it will look for an initial query  
string on a form param
                e.g.: http://localhost:9080/Demo/AribaWeb/ad/doc?q=AWComponent

   2) Or the page can be explicitly initialized.  See how the link  
from Demo/app/HomeContent.awl explicitly initializes the page via its  
custom show() method):
         ... Check out
         <a:Hyperlink action='${def p = pageWithName("SearchSource");  
p.show("Creating_New_App.htm"); p}'>Creating_New_App</a:Hyperlink>

Note, that expression may obscure things a bit.  The hyperlink could  
be rewritten as:
         <a:Hyperlink action='$gotoDoc'>Creating_New_App</a:Hyperlink>

With the java/groovy file saying:
        public AWComponent gotoDoc () {
                SearchSource dest =  
(SearchSource)pageWithName(SearchSource.class.getName());
                dest.show("Creating_New_App.html");
                return dest;
        }

(I ought to mention that this example is more confusing because this  
"show()" method is taking the name of a document to search for --  
show("Creating_New_App.html") is telling this documentation search app  
to search for a particular piece of Documentation and display it  --  
it's not some AW directive).

The nice thing about this kind of true OO model for page transitions  
is that you can always code a meta-layer on top if you want to  
structure specific kinds of flows.  AW does this in various ways: e.g.  
1) the Wizard framework moves between a predefined set of "Step" pages  
(that don't need to know specifically about one another), 2) metaui's  
module navigation switches between pages as app-level tabs, etc.

Anyway, search the examples for uses of "pageWithName()" (you can use  
the Documentation tab of the demo app to do it!) -- you'll find a  
number of patterns at work.

- craig

On Feb 25, 2009, at 8:56 PM, luxspes wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google