You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Igor Vaynberg <ig...@gmail.com> on 2007/03/20 18:33:50 UTC
auto header contributions
was just thinking
if you have MyPanel.java and MyPanel.html, and then next to it you have
MyPanel.css and MyPanel.js should we automatically include the css and js?
kinda like an autoheadercontribution.
wdyt?
-igor
Re: auto header contributions
Posted by Matej Knopp <ma...@gmail.com>.
In addition probably. Don't wory about duplicate contributions, we
filter them out :)
But.. TBH, adding css and js to components is rather trivial with
HeaderContributor, do we really need this?
It's not that I object, I'm just asking. Maybe for new users it can help.
On 3/20/07, Eelco Hillenius <ee...@gmail.com> wrote:
> And what would this result in?
>
> MyPanelA with MyPanelA.css
> MyPanelB extends MyPanelA and has MyPanelB.css
>
> Would MyPanelB.css be added instead or in addition to MyPanelA.css?
>
> Eelco
>
>
> On 3/20/07, Eelco Hillenius <ee...@gmail.com> wrote:
> > It's actually a neat idea. My only concerns would be how to implement
> > this super efficiently and how we would enable users to turn this
> > automatic behavior off (per-case and globally).
> >
> > Eelco
> >
> >
> > On 3/20/07, Igor Vaynberg <ig...@gmail.com> wrote:
> > > was just thinking
> > >
> > > if you have MyPanel.java and MyPanel.html, and then next to it you have
> > > MyPanel.css and MyPanel.js should we automatically include the css and js?
> > > kinda like an autoheadercontribution.
> > >
> > > wdyt?
> > >
> > > -igor
> > >
> >
>
Re: auto header contributions
Posted by Eelco Hillenius <ee...@gmail.com>.
And what would this result in?
MyPanelA with MyPanelA.css
MyPanelB extends MyPanelA and has MyPanelB.css
Would MyPanelB.css be added instead or in addition to MyPanelA.css?
Eelco
On 3/20/07, Eelco Hillenius <ee...@gmail.com> wrote:
> It's actually a neat idea. My only concerns would be how to implement
> this super efficiently and how we would enable users to turn this
> automatic behavior off (per-case and globally).
>
> Eelco
>
>
> On 3/20/07, Igor Vaynberg <ig...@gmail.com> wrote:
> > was just thinking
> >
> > if you have MyPanel.java and MyPanel.html, and then next to it you have
> > MyPanel.css and MyPanel.js should we automatically include the css and js?
> > kinda like an autoheadercontribution.
> >
> > wdyt?
> >
> > -igor
> >
>
Re: auto header contributions
Posted by Eelco Hillenius <ee...@gmail.com>.
It's actually a neat idea. My only concerns would be how to implement
this super efficiently and how we would enable users to turn this
automatic behavior off (per-case and globally).
Eelco
On 3/20/07, Igor Vaynberg <ig...@gmail.com> wrote:
> was just thinking
>
> if you have MyPanel.java and MyPanel.html, and then next to it you have
> MyPanel.css and MyPanel.js should we automatically include the css and js?
> kinda like an autoheadercontribution.
>
> wdyt?
>
> -igor
>
Re: auto header contributions
Posted by "Philip A. Chapman" <pc...@pcsw.us>.
I like the idea
On Tue, 2007-03-20 at 10:33 -0700, Igor Vaynberg wrote:
> was just thinking
>
> if you have MyPanel.java and MyPanel.html, and then next to it you have
> MyPanel.css and MyPanel.js should we automatically include the css and js?
> kinda like an autoheadercontribution.
>
> wdyt?
>
> -igor
--
Philip A. Chapman
Desktop and Web Application Development:
Java, .NET, PostgreSQL, MySQL, MSSQL
Linux, Windows 2000, Windows XP
AW: auto header contributions
Posted by Korbinian Bachl <ko...@whiskyworld.de>.
sounds nice for JS, however the identifiers would need to be created by
wicket and replace the original ones else collisions may happen
e.g.: component1 has JS function foo
and
component2 has JS function foo
for CSS i dont like it as it would violate the HTML/CSS design pattern as
well as create the problem that css files are not rereloaded by all browsers
(unless name changes) and then may mean more traffic, too
at least, the behaviour would also have to be able to turn off for either JS
or CSS or both...
Regards
> -----Ursprüngliche Nachricht-----
> Von: Igor Vaynberg [mailto:igor.vaynberg@gmail.com]
> Gesendet: Dienstag, 20. März 2007 18:34
> An: wicket-dev@incubator.apache.org
> Betreff: auto header contributions
>
> was just thinking
>
> if you have MyPanel.java and MyPanel.html, and then next to
> it you have MyPanel.css and MyPanel.js should we
> automatically include the css and js?
> kinda like an autoheadercontribution.
>
> wdyt?
>
> -igor
>