You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Luis <an...@gmail.com> on 2006/03/31 01:41:01 UTC
RUNTIME EXCEPTION HANDLERS IN TAPESTRY...
How do I make a runtime exception handler in tapestry for presenting the
message??
The default everybody kwons, nice for developers, but no good to the user,
so, how i can do my one...
My idea is some like that, the same page is rendered but with a error
message of the exception, just like validator errors, but with he exception
cause...
I need that for errors like Access Denied (Acegi security) and so on, i
found this tutorial http://downside.ch/blog/?p=19, but it's not so clear and
i'dont kwon if this is the rigth thing to do, if someone just give-me e link
with one tutorial i'll be happy :)
PS: sorry if my english is bad
Re: RUNTIME EXCEPTION HANDLERS IN TAPESTRY...
Posted by Mike Snare <mi...@gmail.com>.
There's a property attribute for components, so when you add it in the
page file, you can assign it a property then add an abstract getter in
your page class.
.page file:
<component id="border" property="border" type="Border">
... bindings ...
</component>
.java file:
public abstract Border getBorder();
-Mike
On 3/31/06, Angelo Luis <an...@gmail.com> wrote:
> I'm progressing with this, how do i take the component by type with a IPage
> object???
>
> I don't want to do this, IComponent component = page.getComponent("border");
> , but this IComponent component = page.getComponent("Border"); // Border
> it's type of component...
>
>
> thank's
>
>
>
>
> On 3/31/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> >
> > There are some tutorials/documentation here
> >
> > http://jakarta.apache.org/hivemind/
> >
> >
> >
> > On 3/30/06, Angelo Luis <an...@gmail.com> wrote:
> > >
> > > HUmmm... There's a tutorial, example, or something like that...
> > >
> > > how i'overrides exceptionPageName to take my actual page???
> > >
> > > On 3/30/06, Angelo Luis <an...@gmail.com> wrote:
> > > >
> > > > WHEN YOU TYPE IN ALL CAPS PEOPLE THINK YOU ARE YELLING AT THEM.
> > > >
> > > > sorry!!!
> > > >
> > > >
> > > > I will see that, thanks
> > > >
> > > >
> > > > On 3/30/06, Jesse Kuhnert < jkuhnert@gmail.com> wrote:
> > > > >
> > > > >
> > > > >
> > >
> > http://jakarta.apache.org/tapestry/tapestry/hivedocs/module/tapestry.error.html
> > > > >
> > > > > Override exceptionPageName.
> > > > >
> > > > > P.S. WHEN YOU TYPE IN ALL CAPS PEOPLE THINK YOU ARE YELLING AT THEM.
> > > > >
> > > > > On 3/30/06, Angelo Luis < angelomysql@gmail.com> wrote:
> > > > > >
> > > > > > How do I make a runtime exception handler in tapestry for
> > presenting
> > > > > the
> > > > > > message??
> > > > > >
> > > > > > The default everybody kwons, nice for developers, but no good to
> > the
> > > > > user,
> > > > > > so, how i can do my one...
> > > > > >
> > > > > > My idea is some like that, the same page is rendered but with a
> > > error
> > > > > > message of the exception, just like validator errors, but with he
> > > > > > exception
> > > > > > cause...
> > > > > >
> > > > > >
> > > > > > I need that for errors like Access Denied (Acegi security) and so
> > > on,
> > > > > i
> > > > > > found this tutorial http://downside.ch/blog/?p=19, but it's not so
> > > > > clear
> > > > > > and
> > > > > > i'dont kwon if this is the rigth thing to do, if someone just
> > > give-me
> > > > > e
> > > > > > link
> > > > > > with one tutorial i'll be happy :)
> > > > > >
> > > > > >
> > > > > > PS: sorry if my english is bad
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Jesse Kuhnert
> > > > > Tacos/Tapestry, team member/developer
> > > > >
> > > > > Open source based consulting work centered around
> > > > > dojo/tapestry/tacos/hivemind. http://opennotion.com
> > > > >
> > > > >
> > > >
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tacos/Tapestry, team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind. http://opennotion.com
> >
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: RUNTIME EXCEPTION HANDLERS IN TAPESTRY...
Posted by Angelo Luis <an...@gmail.com>.
I'm progressing with this, how do i take the component by type with a IPage
object???
I don't want to do this, IComponent component = page.getComponent("border");
, but this IComponent component = page.getComponent("Border"); // Border
it's type of component...
thank's
On 3/31/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> There are some tutorials/documentation here
>
> http://jakarta.apache.org/hivemind/
>
>
>
> On 3/30/06, Angelo Luis <an...@gmail.com> wrote:
> >
> > HUmmm... There's a tutorial, example, or something like that...
> >
> > how i'overrides exceptionPageName to take my actual page???
> >
> > On 3/30/06, Angelo Luis <an...@gmail.com> wrote:
> > >
> > > WHEN YOU TYPE IN ALL CAPS PEOPLE THINK YOU ARE YELLING AT THEM.
> > >
> > > sorry!!!
> > >
> > >
> > > I will see that, thanks
> > >
> > >
> > > On 3/30/06, Jesse Kuhnert < jkuhnert@gmail.com> wrote:
> > > >
> > > >
> > > >
> >
> http://jakarta.apache.org/tapestry/tapestry/hivedocs/module/tapestry.error.html
> > > >
> > > > Override exceptionPageName.
> > > >
> > > > P.S. WHEN YOU TYPE IN ALL CAPS PEOPLE THINK YOU ARE YELLING AT THEM.
> > > >
> > > > On 3/30/06, Angelo Luis < angelomysql@gmail.com> wrote:
> > > > >
> > > > > How do I make a runtime exception handler in tapestry for
> presenting
> > > > the
> > > > > message??
> > > > >
> > > > > The default everybody kwons, nice for developers, but no good to
> the
> > > > user,
> > > > > so, how i can do my one...
> > > > >
> > > > > My idea is some like that, the same page is rendered but with a
> > error
> > > > > message of the exception, just like validator errors, but with he
> > > > > exception
> > > > > cause...
> > > > >
> > > > >
> > > > > I need that for errors like Access Denied (Acegi security) and so
> > on,
> > > > i
> > > > > found this tutorial http://downside.ch/blog/?p=19, but it's not so
> > > > clear
> > > > > and
> > > > > i'dont kwon if this is the rigth thing to do, if someone just
> > give-me
> > > > e
> > > > > link
> > > > > with one tutorial i'll be happy :)
> > > > >
> > > > >
> > > > > PS: sorry if my english is bad
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Jesse Kuhnert
> > > > Tacos/Tapestry, team member/developer
> > > >
> > > > Open source based consulting work centered around
> > > > dojo/tapestry/tacos/hivemind. http://opennotion.com
> > > >
> > > >
> > >
> >
> >
>
>
> --
> Jesse Kuhnert
> Tacos/Tapestry, team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://opennotion.com
>
>
Re: RUNTIME EXCEPTION HANDLERS IN TAPESTRY...
Posted by Jesse Kuhnert <jk...@gmail.com>.
There are some tutorials/documentation here
http://jakarta.apache.org/hivemind/
On 3/30/06, Angelo Luis <an...@gmail.com> wrote:
>
> HUmmm... There's a tutorial, example, or something like that...
>
> how i'overrides exceptionPageName to take my actual page???
>
> On 3/30/06, Angelo Luis <an...@gmail.com> wrote:
> >
> > WHEN YOU TYPE IN ALL CAPS PEOPLE THINK YOU ARE YELLING AT THEM.
> >
> > sorry!!!
> >
> >
> > I will see that, thanks
> >
> >
> > On 3/30/06, Jesse Kuhnert < jkuhnert@gmail.com> wrote:
> > >
> > >
> > >
> http://jakarta.apache.org/tapestry/tapestry/hivedocs/module/tapestry.error.html
> > >
> > > Override exceptionPageName.
> > >
> > > P.S. WHEN YOU TYPE IN ALL CAPS PEOPLE THINK YOU ARE YELLING AT THEM.
> > >
> > > On 3/30/06, Angelo Luis < angelomysql@gmail.com> wrote:
> > > >
> > > > How do I make a runtime exception handler in tapestry for presenting
> > > the
> > > > message??
> > > >
> > > > The default everybody kwons, nice for developers, but no good to the
> > > user,
> > > > so, how i can do my one...
> > > >
> > > > My idea is some like that, the same page is rendered but with a
> error
> > > > message of the exception, just like validator errors, but with he
> > > > exception
> > > > cause...
> > > >
> > > >
> > > > I need that for errors like Access Denied (Acegi security) and so
> on,
> > > i
> > > > found this tutorial http://downside.ch/blog/?p=19, but it's not so
> > > clear
> > > > and
> > > > i'dont kwon if this is the rigth thing to do, if someone just
> give-me
> > > e
> > > > link
> > > > with one tutorial i'll be happy :)
> > > >
> > > >
> > > > PS: sorry if my english is bad
> > > >
> > > >
> > >
> > >
> > > --
> > > Jesse Kuhnert
> > > Tacos/Tapestry, team member/developer
> > >
> > > Open source based consulting work centered around
> > > dojo/tapestry/tacos/hivemind. http://opennotion.com
> > >
> > >
> >
>
>
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://opennotion.com
Re: RUNTIME EXCEPTION HANDLERS IN TAPESTRY...
Posted by Angelo Luis <an...@gmail.com>.
HUmmm... There's a tutorial, example, or something like that...
how i'overrides exceptionPageName to take my actual page???
On 3/30/06, Angelo Luis <an...@gmail.com> wrote:
>
> WHEN YOU TYPE IN ALL CAPS PEOPLE THINK YOU ARE YELLING AT THEM.
>
> sorry!!!
>
>
> I will see that, thanks
>
>
> On 3/30/06, Jesse Kuhnert < jkuhnert@gmail.com> wrote:
> >
> >
> > http://jakarta.apache.org/tapestry/tapestry/hivedocs/module/tapestry.error.html
> >
> > Override exceptionPageName.
> >
> > P.S. WHEN YOU TYPE IN ALL CAPS PEOPLE THINK YOU ARE YELLING AT THEM.
> >
> > On 3/30/06, Angelo Luis < angelomysql@gmail.com> wrote:
> > >
> > > How do I make a runtime exception handler in tapestry for presenting
> > the
> > > message??
> > >
> > > The default everybody kwons, nice for developers, but no good to the
> > user,
> > > so, how i can do my one...
> > >
> > > My idea is some like that, the same page is rendered but with a error
> > > message of the exception, just like validator errors, but with he
> > > exception
> > > cause...
> > >
> > >
> > > I need that for errors like Access Denied (Acegi security) and so on,
> > i
> > > found this tutorial http://downside.ch/blog/?p=19, but it's not so
> > clear
> > > and
> > > i'dont kwon if this is the rigth thing to do, if someone just give-me
> > e
> > > link
> > > with one tutorial i'll be happy :)
> > >
> > >
> > > PS: sorry if my english is bad
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tacos/Tapestry, team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind. http://opennotion.com
> >
> >
>
Re: RUNTIME EXCEPTION HANDLERS IN TAPESTRY...
Posted by Angelo Luis <an...@gmail.com>.
WHEN YOU TYPE IN ALL CAPS PEOPLE THINK YOU ARE YELLING AT THEM.
sorry!!!
I will see that, thanks
On 3/30/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>
>
> http://jakarta.apache.org/tapestry/tapestry/hivedocs/module/tapestry.error.html
>
> Override exceptionPageName.
>
> P.S. WHEN YOU TYPE IN ALL CAPS PEOPLE THINK YOU ARE YELLING AT THEM.
>
> On 3/30/06, Angelo Luis <an...@gmail.com> wrote:
> >
> > How do I make a runtime exception handler in tapestry for presenting the
> > message??
> >
> > The default everybody kwons, nice for developers, but no good to the
> user,
> > so, how i can do my one...
> >
> > My idea is some like that, the same page is rendered but with a error
> > message of the exception, just like validator errors, but with he
> > exception
> > cause...
> >
> >
> > I need that for errors like Access Denied (Acegi security) and so on, i
> > found this tutorial http://downside.ch/blog/?p=19, but it's not so clear
> > and
> > i'dont kwon if this is the rigth thing to do, if someone just give-me e
> > link
> > with one tutorial i'll be happy :)
> >
> >
> > PS: sorry if my english is bad
> >
> >
>
>
> --
> Jesse Kuhnert
> Tacos/Tapestry, team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://opennotion.com
>
>
Re: RUNTIME EXCEPTION HANDLERS IN TAPESTRY...
Posted by Jesse Kuhnert <jk...@gmail.com>.
http://jakarta.apache.org/tapestry/tapestry/hivedocs/module/tapestry.error.html
Override exceptionPageName.
P.S. WHEN YOU TYPE IN ALL CAPS PEOPLE THINK YOU ARE YELLING AT THEM.
On 3/30/06, Angelo Luis <an...@gmail.com> wrote:
>
> How do I make a runtime exception handler in tapestry for presenting the
> message??
>
> The default everybody kwons, nice for developers, but no good to the user,
> so, how i can do my one...
>
> My idea is some like that, the same page is rendered but with a error
> message of the exception, just like validator errors, but with he
> exception
> cause...
>
>
> I need that for errors like Access Denied (Acegi security) and so on, i
> found this tutorial http://downside.ch/blog/?p=19, but it's not so clear
> and
> i'dont kwon if this is the rigth thing to do, if someone just give-me e
> link
> with one tutorial i'll be happy :)
>
>
> PS: sorry if my english is bad
>
>
--
Jesse Kuhnert
Tacos/Tapestry, team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://opennotion.com