Re: beginner question: automatically going to next page
Re: beginner question: automatically going to next page
- Subject: Re: beginner question: automatically going to next page
- From: Pascal Robert <email@hidden>
- Date: Fri, 24 Aug 2012 14:05:37 -0400
Le 2012-08-24 à 13:54, Bart Rijpers <email@hidden> a écrit :
> Hi Chuck,
>
> The first page is a direct action login page. The user logs in with a key, the direct action class verifies the key and if the key is ok redirects automatically to the Main page. The key has to be passed from the URL using appendToResponse.
The user have to type the key in a login form? If yes, just use a submit button to call a method to check if the key is valid and redirect the user to Main by using pageWithName(Main.class) in the validation method. You don't need to use appendToResponse or invokeAction at all.
> 1. Login DA
> 2. Authenticate
> 3. Is ok show Main page
>
> With the direct action in page 1 you can go to the next page 2 but not from 2 to 3.
>
> Does it make more sense now?
>
> I tried working with invokeAction method but no luck.
>
> Regards Bart
>
> On 23 Aug 2012, at 23:10, Chuck Hill <email@hidden> wrote:
>
>> Hi Bart,
>>
>>
>> On 2012-08-23, at 10:34 AM, jazz wrote:
>>
>>> Hi Chuck,
>>>
>>> Page2 gets a feed with information and has an appendToResponse method.
>>
>> So you want the feed data to appear in the browser and the browser to also show a different page? That does not seem to make sense, I must not be understanding what you want. What do you want to happen to the feed? What do you want the user to experience?
>>
>>
>> Chuck
>>
>>
>>
>>> But how do I implement WORedirect in an appendToResponse method (which does not return any methods, void)? Or do I need to add another method? If so which on?
>>>
>>> public WOComponent signOut()
>>> {
>>> session().terminate();
>>> WORedirect redirect = new WORedirect(context());
>>> redirect.setUrl(context().directActionURLForActionNamed("default",null));
>>> return redirect;
>>> }
>>>
>>> This would work, but it needs an action method (press button signOut). How can this work without user interaction?
>>>
>>> Regards, Bart
>>>
>>> On 23 Aug 2012, at 19:13, Chuck Hill wrote:
>>>
>>>> Hi Bart,
>>>>
>>>> I think we will need some more details on what you have and what you want to achieve. Is a WORedirect what you are looking for?
>>>>
>>>>
>>>> Chuck
>>>>
>>>> On 2012-08-23, at 8:04 AM, wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have a question. How do you go automatically to the next page without action methods such as button clicks?
>>>>> The first page is reached using a WOActionResults DA method. This connects to the next page using pageWithName("page2"). Page2 has an appendToResponse method so this can not have a return page?
>>>>>
>>>>> Thanks for your help!
>>>>>
>>>>> Regards, Bart
>>>>>
>>>>> _______________________________________________
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-dev mailing list (email@hidden)
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>
>>>>> This email sent to email@hidden
>>>>
>>>> --
>>>> Chuck Hill Senior Consultant / VP Development
>>>>
>>>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
>>>> http://www.global-village.net/gvc/practical_webobjects
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>> --
>> Chuck Hill Senior Consultant / VP Development
>>
>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
>> http://www.global-village.net/gvc/practical_webobjects
>>
>>
>>
>>
>>
>>
>>
>>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden