You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jesse Vitrone <je...@agentscape.com> on 2005/01/19 16:04:38 UTC

url problem

First - great job with MyFaces - keep up the great work.

Second - is there an archive for this mailing list?  I wanted to search 
that before I asked my question, but I couldn't find one.

Third - my real question - When I use a command link to call a method, 
then move on to another page, the URL doesn't get updated in the address 
bar.  Am I doing something wrong?  Is there a way to make it work right?

Not sure if this is a common issue or not, if it's not, then I'll try to 
come up with a good example of what's going on.

Thanks in advance.

Re: url problem

Posted by Sean Schofield <se...@gmail.com>.
> Second - is there an archive for this mailing list?  I wanted to search
> that before I asked my question, but I couldn't find one.

I like this site (http://www.mail-archive.com/) for all my mailing
list archive needs.  Of course now that gmail has 1GB of storage,
gmail search is increasingly doing the trick ;-)

sean

Re: url problem

Posted by Stefan Langer <la...@bettsockentraeger.de>.
Jesse Vitrone wrote:

> First - great job with MyFaces - keep up the great work.
>
> Second - is there an archive for this mailing list?  I wanted to 
> search that before I asked my question, but I couldn't find one.
>
> Third - my real question - When I use a command link to call a method, 
> then move on to another page, the URL doesn't get updated in the 
> address bar.  Am I doing something wrong?  Is there a way to make it 
> work right?
>
> Not sure if this is a common issue or not, if it's not, then I'll try 
> to come up with a good example of what's going on.
>
> Thanks in advance.
>
the Commandlink does a POST to the server so the URL doesn't get 
updated. If you need the url to be updated you could use an 
actionlistener or an action and redirect the request yourself.

Regards
Stefan



Re: url problem

Posted by Jesse Vitrone <je...@agentscape.com>.
Thanks for the tip, I'll read up on the archive and look at switching to 
client side saving.

Jesse


Heath Borders wrote:

>Switch to client state-saving.  Unfortunately, this is the only solution.
>
>If you search the archives, I believe I outlined the technical reason
>for this problem.
>
>
>On Wed, 19 Jan 2005 10:47:43 -0500, Jesse Vitrone <je...@agentscape.com> wrote:
>  
>
>>sure, reason is <commandLink/> uses POST of HTTP.
>>    
>>
>
><redirect/> in
>  
>
>>faces-config.xml's navigation rulez 
>>    
>>
>will do the trick.
>
>If I understood you
>  
>
>>right... :-)
>>    
>>
>
> 
>  
>
>>Yes, that's exactly what I was looking for, thanks.  Now that the URL looks
>>right, that exposes another problem I'm having that I thought this would've
>>fixed.
>>
>>I have a page with 2 command links, I click linkA, it takes me to another
>>page, then I hit the back button and click linkB.  LinkB doesn't work any
>>more, it just reloads the page when I click it.  I'm guessing because it's
>>not finding the from-view-id properly when it's looking for the navigation
>>rule?  Is there a nice little trick around this problem too?
>>
>>Thanks again.
>>
>>    
>>
>
>
>  
>


Re: url problem

Posted by Heath Borders <he...@gmail.com>.
Switch to client state-saving.  Unfortunately, this is the only solution.

If you search the archives, I believe I outlined the technical reason
for this problem.


On Wed, 19 Jan 2005 10:47:43 -0500, Jesse Vitrone <je...@agentscape.com> wrote:
> 
> sure, reason is <commandLink/> uses POST of HTTP.

<redirect/> in
> faces-config.xml's navigation rulez 
will do the trick.

If I understood you
> right... :-)

 
> Yes, that's exactly what I was looking for, thanks.  Now that the URL looks
> right, that exposes another problem I'm having that I thought this would've
> fixed.
> 
> I have a page with 2 command links, I click linkA, it takes me to another
> page, then I hit the back button and click linkB.  LinkB doesn't work any
> more, it just reloads the page when I click it.  I'm guessing because it's
> not finding the from-view-id properly when it's looking for the navigation
> rule?  Is there a nice little trick around this problem too?
> 
> Thanks again.
> 


-- 
-Heath Borders-Wing
hborders@mail.win.org

Re: url problem

Posted by Jesse Vitrone <je...@agentscape.com>.
Yeah, even with the *, no luck.

Matthias Wessendorf wrote:

>mmm, reload could be a candiate for not finding
>"from-view-id"
>
>tried with * (just for fun...) ?
>
>HTH,
>Matthias
>-----Original Message-----
>From: Jesse Vitrone [mailto:jesse@agentscape.com] 
>Sent: Wednesday, January 19, 2005 4:48 PM
>To: MyFaces Discussion
>Subject: Re: url problem
>
>
>
>
>sure, reason is <commandLink/> uses POST of HTTP.
>
><redirect/> in faces-config.xml's navigation rulez 
>will do the trick.
>
>If I understood you right... :-)
>
>  
>
>Yes, that's exactly what I was looking for, thanks.  Now that the URL
>looks right, that exposes another problem I'm having that I thought this
>would've fixed.
>
>I have a page with 2 command links, I click linkA, it takes me to
>another page, then I hit the back button and click linkB.  LinkB doesn't
>work any more, it just reloads the page when I click it.  I'm guessing
>because it's not finding the from-view-id properly when it's looking for
>the navigation rule?  Is there a nice little trick around this problem
>too?
>
>Thanks again.
>
>
>
>.
>
>  
>


RE: url problem

Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
mmm, reload could be a candiate for not finding
"from-view-id"

tried with * (just for fun...) ?

HTH,
Matthias
-----Original Message-----
From: Jesse Vitrone [mailto:jesse@agentscape.com] 
Sent: Wednesday, January 19, 2005 4:48 PM
To: MyFaces Discussion
Subject: Re: url problem




sure, reason is <commandLink/> uses POST of HTTP.

<redirect/> in faces-config.xml's navigation rulez 
will do the trick.

If I understood you right... :-)

  

Yes, that's exactly what I was looking for, thanks.  Now that the URL
looks right, that exposes another problem I'm having that I thought this
would've fixed.

I have a page with 2 command links, I click linkA, it takes me to
another page, then I hit the back button and click linkB.  LinkB doesn't
work any more, it just reloads the page when I click it.  I'm guessing
because it's not finding the from-view-id properly when it's looking for
the navigation rule?  Is there a nice little trick around this problem
too?

Thanks again.


Re: url problem

Posted by Jesse Vitrone <je...@agentscape.com>.
>sure, reason is <commandLink/> uses POST of HTTP.
>
><redirect/> in faces-config.xml's navigation rulez 
>will do the trick.
>
>If I understood you right... :-)
>
>  
>

Yes, that's exactly what I was looking for, thanks.  Now that the URL 
looks right, that exposes another problem I'm having that I thought this 
would've fixed.

I have a page with 2 command links, I click linkA, it takes me to 
another page, then I hit the back button and click linkB.  LinkB doesn't 
work any more, it just reloads the page when I click it.  I'm guessing 
because it's not finding the from-view-id properly when it's looking for 
the navigation rule?  Is there a nice little trick around this problem too?

Thanks again.

RE: url problem

Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
Hi,

> Second - is there an archive for this mailing list?  I wanted 
> to search 
> that before I asked my question, but I couldn't find one.

archives could be found here:
http://incubator.apache.org/myfaces/community/mailinglists.html

> Third - my real question - When I use a command link to call 
> a method, 
> then move on to another page, the URL doesn't get updated in 
> the address 
> bar.  Am I doing something wrong?  Is there a way to make it 
> work right?


sure, reason is <commandLink/> uses POST of HTTP.

<redirect/> in faces-config.xml's navigation rulez 
will do the trick.

If I understood you right... :-)

> Not sure if this is a common issue or not, if it's not, then 
> I'll try to 
> come up with a good example of what's going on.
> 
> Thanks in advance.
>