You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by Bob Schellink <sa...@gmail.com> on 2011/02/01 08:31:35 UTC
Re: Uniform Interface for Container, Control and Page
Hi,
I dunno the reason but I guess lack of real world use cases? I've personally never had a need to
visit pages+controls.
Kind regards
Bob
On 31/01/2011 23:28, derthomsn wrote:
>
> Hi Guys,
>
> i used click to develop some web applications recently and i liked i a lot.
> Though i stumbled on the fact, that there is no uniform interface above
> AbstractContainer, AbstractControl and Page. Such an Interface would enable
> the writing of concise Visitors e.g.
>
> Are there any important reasons to not offer such an interface?
>
> Looking forward to hearing from you guys... best regards
>
> derthomsn
Re: Uniform Interface for Container, Control and Page
Posted by Thomas Ernst <th...@googlemail.com>.
Hi Bob,
thanks for your reply.
I recently needed to visit both, pages and containing controls / containers,
to collect a number of fields and automatically bind them to the url /
hidden input fields. Due to the lack of an uniform interface i had to write
a lot of instanceof calls, which
i personally dislike.
Maybe you could consider creating such an interface in one of your next
releases :>
Best regards
derthomsn
2011/2/1 Bob Schellink <sa...@gmail.com>
> Hi,
>
> I dunno the reason but I guess lack of real world use cases? I've
> personally never had a need to
> visit pages+controls.
>
> Kind regards
>
> Bob
>
> On 31/01/2011 23:28, derthomsn wrote:
> >
> > Hi Guys,
> >
> > i used click to develop some web applications recently and i liked i a
> lot.
> > Though i stumbled on the fact, that there is no uniform interface above
> > AbstractContainer, AbstractControl and Page. Such an Interface would
> enable
> > the writing of concise Visitors e.g.
> >
> > Are there any important reasons to not offer such an interface?
> >
> > Looking forward to hearing from you guys... best regards
> >
> > derthomsn
>
>