You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sven Homburg <Sv...@hsofttec.com> on 2007/03/31 11:44:11 UTC
T5: SetupRender
Hi folks,
this sample would renderes two times in one cycle.
it would be nice, if tapestry notice my error and show me a warning.
public class Start
{
@BeginRender
private void setupRender()
{
System.err.println("Hello from SetupRender");
}
}
--
Mit freundlichem Gruss
homburg Softwaretechnik
S.Homburg
21220 Seevetal / GERMANY
Fon: +49-4105-669746
Fax: +49-4105-668947
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: SetupRender
Posted by Howard Lewis Ship <hl...@gmail.com>.
Yep, that's exactly what's going on. I need a mechanism so that one
or the other wins. Really, the annotation should win, and the naming
convention should be ignored in this case (that's going to make some
code ugly, but there you have it).
On 4/1/07, Peter Beshai <pe...@gmail.com> wrote:
> Is the reason is because a method named 'setupRender' takes on the same
> actions as one annotated with @SetupRender and thus that method is called as
> both a BeginRender and SetupRender method?
>
> On 3/31/07, Howard Lewis Ship <hl...@gmail.com> wrote:
> >
> > That is a tricky one; it should just be @BeginRender since you've gone
> > to the trouble of labelling it that way.
> >
> > This is certainly a bug, but a low priority one, with an easy (but
> > very ugly) fix.
> >
> > On 3/31/07, Sven Homburg <Sv...@hsofttec.com> wrote:
> > > Hi folks,
> > >
> > > this sample would renderes two times in one cycle.
> > > it would be nice, if tapestry notice my error and show me a warning.
> > >
> > > public class Start
> > > {
> > > @BeginRender
> > > private void setupRender()
> > > {
> > > System.err.println("Hello from SetupRender");
> > > }
> > > }
> > >
> > > --
> > > Mit freundlichem Gruss
> > >
> > > homburg Softwaretechnik
> > > S.Homburg
> > > 21220 Seevetal / GERMANY
> > > Fon: +49-4105-669746
> > > Fax: +49-4105-668947
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > --
> > Howard M. Lewis Ship
> > TWD Consulting, Inc.
> > Independent J2EE / Open-Source Java Consultant
> > Creator and PMC Chair, Apache Tapestry
> > Creator, Apache HiveMind
> >
> > Professional Tapestry training, mentoring, support
> > and project work. http://howardlewisship.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Peter Beshai
>
> Computer Science Student
> University of Waterloo
>
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: SetupRender
Posted by Peter Beshai <pe...@gmail.com>.
Is the reason is because a method named 'setupRender' takes on the same
actions as one annotated with @SetupRender and thus that method is called as
both a BeginRender and SetupRender method?
On 3/31/07, Howard Lewis Ship <hl...@gmail.com> wrote:
>
> That is a tricky one; it should just be @BeginRender since you've gone
> to the trouble of labelling it that way.
>
> This is certainly a bug, but a low priority one, with an easy (but
> very ugly) fix.
>
> On 3/31/07, Sven Homburg <Sv...@hsofttec.com> wrote:
> > Hi folks,
> >
> > this sample would renderes two times in one cycle.
> > it would be nice, if tapestry notice my error and show me a warning.
> >
> > public class Start
> > {
> > @BeginRender
> > private void setupRender()
> > {
> > System.err.println("Hello from SetupRender");
> > }
> > }
> >
> > --
> > Mit freundlichem Gruss
> >
> > homburg Softwaretechnik
> > S.Homburg
> > 21220 Seevetal / GERMANY
> > Fon: +49-4105-669746
> > Fax: +49-4105-668947
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Howard M. Lewis Ship
> TWD Consulting, Inc.
> Independent J2EE / Open-Source Java Consultant
> Creator and PMC Chair, Apache Tapestry
> Creator, Apache HiveMind
>
> Professional Tapestry training, mentoring, support
> and project work. http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Peter Beshai
Computer Science Student
University of Waterloo
Re: T5: SetupRender
Posted by Howard Lewis Ship <hl...@gmail.com>.
That is a tricky one; it should just be @BeginRender since you've gone
to the trouble of labelling it that way.
This is certainly a bug, but a low priority one, with an easy (but
very ugly) fix.
On 3/31/07, Sven Homburg <Sv...@hsofttec.com> wrote:
> Hi folks,
>
> this sample would renderes two times in one cycle.
> it would be nice, if tapestry notice my error and show me a warning.
>
> public class Start
> {
> @BeginRender
> private void setupRender()
> {
> System.err.println("Hello from SetupRender");
> }
> }
>
> --
> Mit freundlichem Gruss
>
> homburg Softwaretechnik
> S.Homburg
> 21220 Seevetal / GERMANY
> Fon: +49-4105-669746
> Fax: +49-4105-668947
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org