Hi,

This is a known JSF-problem which originates in the way how JSF
handles a request.

When you click a button/link to generate a postback to the server, you
will always trigger a request back to the URL of the site you're
currently seeing. Then, on the server in the JSF phase "invoke
application" the navigation is determined from the outcome of your
action and afterwards the related site is rendered. However, since
your postback was to URL #1, you still see URL #1 in your browser
window although a different site is rendered.

The only way to always get the right URL in your browser is to put a
<redirect /> element to every navigation case. This causes the server
to perform a redirect if the URL changes and thus you'll always get
the right URL. However, this redirect leads to a second request per
navigation.

I hope this helps!

Regards,
Jakob

2010/11/24 larry3k <[email protected]>:
>
> Hi everybody,
>
> I have the following problem: I have a web application and it works fine.
> The only problem is when I navigate through it - the link displayed in the
> URL always show the previous visitated page not the current page. Does
> anybody know what might cause this behavior? I have this problem only in an
> application using Orchestra. Here are my settings:
>
> web.xml :
>
>  <filter>
>    <filter-name>orchestraFilter</filter-name>
>
> <filter-class>org.apache.myfaces.orchestra.conversation.jsf.filter.OrchestraServletFilter</filter-class>
>    <init-param>
>      <param-name>serializeRequests</param-name>
>      <param-value>true</param-value>
>    </init-param>
>  </filter>
>
>  <filter-mapping>
>    <filter-name>orchestraFilter</filter-name>
>    <url-pattern>*.html</url-pattern>
>    <dispatcher>FORWARD</dispatcher>
>    <dispatcher>REQUEST</dispatcher>
>  </filter-mapping>
>
>  <listener>
>
> <listener-class>org.apache.myfaces.orchestra.conversation.servlet.ConversationManagerSessionListener</listener-class>
>  </listener>
>
> applicationContext.xml
>
> <!--
>                1. initialization of all orchestra modules (required for core15
>                module)
>        -->
>        <import resource="classpath*:/META-INF/spring-orchestra-init.xml" />
>
>        <!-- 2. the conversation scopes -->
>        <bean
> class="org.springframework.beans.factory.config.CustomScopeConfigurer">
>                <property name="scopes">
>                        <map>
>                                <entry key="conversation.manual">
>                                        <bean
>
> class="org.apache.myfaces.orchestra.conversation.spring.SpringConversationScope">
>                                                <property name="timeout" 
> value="30" />
>
>                                        </bean>
>                                </entry>
>
>                                <entry key="conversation.access">
>                                        <bean
>
> class="org.apache.myfaces.orchestra.conversation.spring.SpringConversationScope">
>                                                <!--  property name="timeout" 
> value="35" / -->
>                                                <property name="lifetime" 
> value="access" />
>                                        </bean>
>                                </entry>
>                        </map>
>                </property>
>        </bean>
>
> thanks
>
> --
> View this message in context: 
> http://old.nabble.com/Displayed-URL-is-a-Link-behind-tp30298164p30298164.html
> Sent from the My Faces - Dev mailing list archive at Nabble.com.
>
>



-- 
Jakob Korherr

blog: http://www.jakobk.com
twitter: http://twitter.com/jakobkorherr
work: http://www.irian.at

Reply via email to