You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Ryan Sonnek <ry...@gmail.com> on 2006/10/06 15:10:25 UTC

javascript helper

I'm not sure how much of the core wicket framework programatically creates
javascript, but I've been doing it a lot lately for the wicket-stuff
scriptaculous project.  I've written a helper class that has *drastically*
cleaned up the Java code and made building javascript within Java pretty
painless.  If anyone is interested in using this in a seperate project, or
the core, let me know.

http://jroller.com/page/wireframe/?anchor=javascriptbuilder
http://jroller.com/page/wireframe?entry=more_javascript_helpers

Re: javascript helper

Posted by James McLaughlin <jo...@gmail.com>.
I had no good reason for using EasyMock other than easiness. Please drop it
in favor of WicketTester. If you could commit against trunk that would be
great, because that is what I am developing against now.

thanks,
jim

On 10/13/06, Jean-Baptiste Quenot <jb...@apache.org> wrote:
>
> * James McLaughlin:
>
> > Great. I just  put in a patch. Let  me know if it  works out for
> > you.
>
> Thank you.  I committed your work with some adaptations for Wicket
> 1.2 and  JDK < 1.5  in wicket-stuff's WICKET_1_2 branch.   I still
> have to commit your patch in trunk.
>
> BTW I had  to use WicketTester instead of  EasyMock because Wicket
> 1.2  has  no  interface  for  Response.   Do  you  think  EasyMock
> still  makes sense  for trunk,  or  can we  drop it  in favour  of
> WicketTester?  I don't  immediately see the benefit  of adding yet
> another library, but I can be wrong?
> --
>      Jean-Baptiste Quenot
> aka  John Banana Qwerty
> http://caraldi.com/jbq/
>

Re: javascript helper

Posted by Jean-Baptiste Quenot <jb...@apache.org>.
* James McLaughlin:

> Great. I just  put in a patch. Let  me know if it  works out for
> you.

Thank you.  I committed your work with some adaptations for Wicket
1.2 and  JDK < 1.5  in wicket-stuff's WICKET_1_2 branch.   I still
have to commit your patch in trunk.

BTW I had  to use WicketTester instead of  EasyMock because Wicket
1.2  has  no  interface  for  Response.   Do  you  think  EasyMock
still  makes sense  for trunk,  or  can we  drop it  in favour  of
WicketTester?  I don't  immediately see the benefit  of adding yet
another library, but I can be wrong?
-- 
     Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

Re: javascript helper

Posted by James McLaughlin <ji...@stonewatercontrols.com>.
Great. I just put in a patch. Let me know if it works out for you.

jim

On 10/11/06, Jean-Baptiste Quenot <jb...@apache.org> wrote:
>
> * James McLaughlin:
>
> > I  created a  VelocityHeaderContributor for  this. It's a  small
> > thing, essentially just a merging of StringHeaderContributor and
> > VelocityPanel,  but if  there is  any  interest I  can supply  a
> > patch. It also  provides an  IInitializer for Velocity,  in case
> > you want  to take advantage  of Velocity's resource  loaders and
> > caching.
>
> Hello James,
>
> Yes please!  I'm maintaining  VelocityPanel and definitely looking
> for a VelocityHeaderContributor for my Dojo stuff.
>
> Thanks in advance,
> --
>      Jean-Baptiste Quenot
> aka  John Banana Qwerty
> http://caraldi.com/jbq/
>



-- 

// Jim McLaughlin
// Director, Software Engineering
// Stonewater Control Systems
// http://www.stonewatercontrols.com
// (o) 847.864.1060 x107
// (c) 773.416.0994

Re: javascript helper

Posted by Jean-Baptiste Quenot <jb...@apache.org>.
* James McLaughlin:

> I  created a  VelocityHeaderContributor for  this. It's a  small
> thing, essentially just a merging of StringHeaderContributor and
> VelocityPanel,  but if  there is  any  interest I  can supply  a
> patch. It also  provides an  IInitializer for Velocity,  in case
> you want  to take advantage  of Velocity's resource  loaders and
> caching.

Hello James,

Yes please!  I'm maintaining  VelocityPanel and definitely looking
for a VelocityHeaderContributor for my Dojo stuff.

Thanks in advance,
-- 
     Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

Re: javascript helper

Posted by James McLaughlin <jo...@gmail.com>.
I created a VelocityHeaderContributor for this. It's a small thing,
essentially just a merging of StringHeaderContributor and VelocityPanel, but
if there is any interest I can supply a patch. It also provides an
IInitializer for Velocity, in case you want to take advantage of Velocity's
resource loaders and caching.

thanks,
jim

On 10/6/06, Eelco Hillenius <ee...@gmail.com> wrote:
>
> There is also HeaderContributor.forJavaScript and JavaScriptTemplate
> (TextTemplateHeaderContributor).
>
> Eelco
>
>
> On 10/6/06, Matej Knopp <ma...@knopp.sk> wrote:
> > have a look at wicket.util.string.JavascriptUtils
> >
> > -Matej
> >
> > Ryan Sonnek wrote:
> > > I'm not sure how much of the core wicket framework programatically
> creates
> > > javascript, but I've been doing it a lot lately for the wicket-stuff
> > > scriptaculous project.  I've written a helper class that has
> *drastically*
> > > cleaned up the Java code and made building javascript within Java
> pretty
> > > painless.  If anyone is interested in using this in a seperate
> project, or
> > > the core, let me know.
> > >
> > > http://jroller.com/page/wireframe/?anchor=javascriptbuilder
> > > http://jroller.com/page/wireframe?entry=more_javascript_helpers
> > >
> >
> >
>



-- 

// Jim McLaughlin
// Director, Software Engineering
// Stonewater Control Systems
// http://www.stonewatercontrols.com
// (o) 847.864.1060 x107
// (c) 773.416.0994

Re: javascript helper

Posted by Eelco Hillenius <ee...@gmail.com>.
There is also HeaderContributor.forJavaScript and JavaScriptTemplate
(TextTemplateHeaderContributor).

Eelco


On 10/6/06, Matej Knopp <ma...@knopp.sk> wrote:
> have a look at wicket.util.string.JavascriptUtils
>
> -Matej
>
> Ryan Sonnek wrote:
> > I'm not sure how much of the core wicket framework programatically creates
> > javascript, but I've been doing it a lot lately for the wicket-stuff
> > scriptaculous project.  I've written a helper class that has *drastically*
> > cleaned up the Java code and made building javascript within Java pretty
> > painless.  If anyone is interested in using this in a seperate project, or
> > the core, let me know.
> >
> > http://jroller.com/page/wireframe/?anchor=javascriptbuilder
> > http://jroller.com/page/wireframe?entry=more_javascript_helpers
> >
>
>

Re: javascript helper

Posted by Matej Knopp <ma...@knopp.sk>.
have a look at wicket.util.string.JavascriptUtils

-Matej

Ryan Sonnek wrote:
> I'm not sure how much of the core wicket framework programatically creates
> javascript, but I've been doing it a lot lately for the wicket-stuff
> scriptaculous project.  I've written a helper class that has *drastically*
> cleaned up the Java code and made building javascript within Java pretty
> painless.  If anyone is interested in using this in a seperate project, or
> the core, let me know.
> 
> http://jroller.com/page/wireframe/?anchor=javascriptbuilder
> http://jroller.com/page/wireframe?entry=more_javascript_helpers
>