You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Renat Zubairov <re...@gmail.com> on 2006/11/28 22:15:21 UTC
Page redirect with exception
Hello,
How can I create a Page Redirect (not forward) with exception.
I know that listener method may return ILink, then page redirect will
happen, but what is analogue of the PageRedirectException that will do
redirect and not forward?
Thank you,
--
Best regards,
Renat Zubairov
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Using ApplicationStateObject on Spring
Posted by Sam Gendler <sg...@ideasculptor.com>.
This works fine for me:
<contribution configuration-id="tapestry.state.ApplicationObjects">
<state-object name="userIdState" scope="session">
<create-instance class="com...UserIdState"/>
</state-object>
<state-object name="advState" scope="session">
<create-instance
class="com....SelectedAdvertiserState"/>
</state-object>
<state-object name="publisherState" scope="session">
<create-instance
class="com...SelectedPublisherState"/>
</state-object>
</contribution>
On 12/1/06, NISHIMURA Toshio <ni...@qb.com> wrote:
> Hi, all.
>
> I'm developping an application using Spring-2.0 + tapesty-4.0.2 +
> tapestry-spring-1.0.0-SNAPSHOT.
>
> I tried to use Application Status Object in this application, so I add
> the XML block before the line of '</module>' in the hivemind.xml;
>
> <contribution configuration-id="tapestry.state.ApplicationObjects">
> <state-object name="app.status" scope="session">
> <create-instance class="com.qb.test.AppStatus"/>
> </state-object>
> </contribution>
>
> But the application wrote logs;
>
> 2006/12/01 18:47:44:750 JST [DEBUG] AbstractEngine - Uncaught exception
> <org.apache.hivemind.ApplicationRuntimeException: 'app.status' is not a
> declared application state
> object.>org.apache.hivemind.ApplicationRuntimeException: 'app.status' is
> not a declared application state object.
> at
> org.apache.tapestry.engine.state.SOMRegistryImpl.get(SOMRegistryImpl.java:79)
> at
> $StateObjectManagerRegistry_10f3d696101.get($StateObjectManagerRegistry_10f3d696101.java)
> at
> $StateObjectManagerRegistry_10f3d696100.get($StateObjectManagerRegistry_10f3d696100.java)
> at
> org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(ApplicationStateManagerImpl.java:60)
> at
> $ApplicationStateManager_10f3d696071.get($ApplicationStateManager_10f3d696071.java)
> at
> $ApplicationStateManager_10f3d696072.get($ApplicationStateManager_10f3d696072.java)
>
> If you have developped the same construction, please let me know whether
> you could do or not.
>
> Or please let me know the another way to use application status.
>
> Thanks in advance,
>
> Nishimura
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Using ApplicationStateObject on Spring
Posted by NISHIMURA Toshio <ni...@qb.com>.
Hi, all.
I'm developping an application using Spring-2.0 + tapesty-4.0.2 +
tapestry-spring-1.0.0-SNAPSHOT.
I tried to use Application Status Object in this application, so I add
the XML block before the line of '</module>' in the hivemind.xml;
<contribution configuration-id="tapestry.state.ApplicationObjects">
<state-object name="app.status" scope="session">
<create-instance class="com.qb.test.AppStatus"/>
</state-object>
</contribution>
But the application wrote logs;
2006/12/01 18:47:44:750 JST [DEBUG] AbstractEngine - Uncaught exception
<org.apache.hivemind.ApplicationRuntimeException: 'app.status' is not a
declared application state
object.>org.apache.hivemind.ApplicationRuntimeException: 'app.status' is
not a declared application state object.
at
org.apache.tapestry.engine.state.SOMRegistryImpl.get(SOMRegistryImpl.java:79)
at
$StateObjectManagerRegistry_10f3d696101.get($StateObjectManagerRegistry_10f3d696101.java)
at
$StateObjectManagerRegistry_10f3d696100.get($StateObjectManagerRegistry_10f3d696100.java)
at
org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(ApplicationStateManagerImpl.java:60)
at
$ApplicationStateManager_10f3d696071.get($ApplicationStateManager_10f3d696071.java)
at
$ApplicationStateManager_10f3d696072.get($ApplicationStateManager_10f3d696072.java)
If you have developped the same construction, please let me know whether
you could do or not.
Or please let me know the another way to use application status.
Thanks in advance,
Nishimura
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Page redirect with exception
Posted by Renat Zubairov <re...@gmail.com>.
Thank you very much. It works perfectly.
Renat
On 29/11/06, Sam Gendler <sg...@ideasculptor.com> wrote:
> throw new RedirectException(link.getURL());
>
> --sam
>
>
> On 11/28/06, Renat Zubairov <re...@gmail.com> wrote:
> > Hello,
> >
> > How can I create a Page Redirect (not forward) with exception.
> > I know that listener method may return ILink, then page redirect will
> > happen, but what is analogue of the PageRedirectException that will do
> > redirect and not forward?
> >
> > Thank you,
> >
> > --
> > Best regards,
> > Renat Zubairov
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Best regards,
Renat Zubairov
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Page redirect with exception
Posted by Sam Gendler <sg...@ideasculptor.com>.
throw new RedirectException(link.getURL());
--sam
On 11/28/06, Renat Zubairov <re...@gmail.com> wrote:
> Hello,
>
> How can I create a Page Redirect (not forward) with exception.
> I know that listener method may return ILink, then page redirect will
> happen, but what is analogue of the PageRedirectException that will do
> redirect and not forward?
>
> Thank you,
>
> --
> Best regards,
> Renat Zubairov
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org