Re: [Wicket-user] Fwd: FW: UI Framework selection

2007-01-20 Thread Eelco Hillenius
An example:

MapString, CharSequence variables = new HashMapString, 
CharSequence(7);
variables.put(javaScriptId, javaScriptId);
variables.put(backGroundElementId, backgroundElementId);
variables.put(imageElementId, imageElementId);
variables.put(leftUp, settings.getLeftUp());
variables.put(rightDown, settings.getRightDown());
variables.put(tick, settings.getTick());
variables.put(formElementId, element.getId());

add(TextTemplateHeaderContributor.forJavaScript(Slider.class,
init.js, Model.valueOf(variables)));

Where init.js is:

var ${javaScriptId};
function init${javaScriptId}() {
   ${javaScriptId} =
YAHOO.widget.Slider.getHorizSlider(${backGroundElementId},
${imageElementId}, ${leftUp}, ${rightDown}, ${tick});
   ${javaScriptId}.onChange = function(offsetFromStart) {
document.getElementById(${formElementId}).value = 
offsetFromStart;
}
}


Eelco

On 1/19/07, Scott Swank [EMAIL PROTECTED] wrote:
 Very kind, thank you.  So JavaScriptTemplate defines foo as a
 document-level object?  Nice.  Much appreciated.

 Scott

 On 1/19/07, Nathan Hamblen [EMAIL PROTECTED] wrote:
  What, you're deciding between Wicket and JSF and no one has answered
  your question? Unacceptable!
 
  JavaScriptTemplate is good for passing variables into Javascript. You
  can use a cache buster to make sure it gets loaded each time. So, with
  that approach you would have a plain onclick=oldJavaScript(foo); in
  your page template because foo has already been set in the external js
  template.
 
  A quicker and dirtier approach is to use an AttributeModifier for
  onclick to patch together the full script call during page generation.
   Using an anonymous subclass model: new AbstractReadOnlyModel() { ...
  getObject(...) { return oldJavaScript( + foo + );; }} And so on.
 
  Nathan
 
 
   What sort of options are there for embedding simple scalar values into
   an html page, particularly into the parameters of an existing
   javascript method?  I'm looking for something along the lines of:
  
   onclick=oldJavaScript(wicket:scalar wicket:id=foo/);
  
   Which is then rendered as
  
   onclick=oldJavaScript(1234);
 
 
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 --
 Scott Swank
 reformed mathematician

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Fwd: FW: UI Framework selection

2007-01-20 Thread Scott Swank
Mighty slick, and much appreciated.

On 1/20/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 An example:

 MapString, CharSequence variables = new HashMapString, 
 CharSequence(7);
 variables.put(javaScriptId, javaScriptId);
 variables.put(backGroundElementId, backgroundElementId);
 variables.put(imageElementId, imageElementId);
 variables.put(leftUp, settings.getLeftUp());
 variables.put(rightDown, settings.getRightDown());
 variables.put(tick, settings.getTick());
 variables.put(formElementId, element.getId());

 add(TextTemplateHeaderContributor.forJavaScript(Slider.class,
 init.js, Model.valueOf(variables)));

 Where init.js is:

 var ${javaScriptId};
 function init${javaScriptId}() {
${javaScriptId} =
 YAHOO.widget.Slider.getHorizSlider(${backGroundElementId},
 ${imageElementId}, ${leftUp}, ${rightDown}, ${tick});
${javaScriptId}.onChange = function(offsetFromStart) {
 document.getElementById(${formElementId}).value = 
 offsetFromStart;
 }
 }


 Eelco

 On 1/19/07, Scott Swank [EMAIL PROTECTED] wrote:
  Very kind, thank you.  So JavaScriptTemplate defines foo as a
  document-level object?  Nice.  Much appreciated.
 
  Scott
 
  On 1/19/07, Nathan Hamblen [EMAIL PROTECTED] wrote:
   What, you're deciding between Wicket and JSF and no one has answered
   your question? Unacceptable!
  
   JavaScriptTemplate is good for passing variables into Javascript. You
   can use a cache buster to make sure it gets loaded each time. So, with
   that approach you would have a plain onclick=oldJavaScript(foo); in
   your page template because foo has already been set in the external js
   template.
  
   A quicker and dirtier approach is to use an AttributeModifier for
   onclick to patch together the full script call during page generation.
Using an anonymous subclass model: new AbstractReadOnlyModel() { ...
   getObject(...) { return oldJavaScript( + foo + );; }} And so on.
  
   Nathan
  
  
What sort of options are there for embedding simple scalar values into
an html page, particularly into the parameters of an existing
javascript method?  I'm looking for something along the lines of:
   
onclick=oldJavaScript(wicket:scalar wicket:id=foo/);
   
Which is then rendered as
   
onclick=oldJavaScript(1234);
  
  
  
   -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to share 
   your
   opinions on IT  business topics through brief surveys - and earn cash
   http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  --
  Scott Swank
  reformed mathematician
 
  -
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to share your
  opinions on IT  business topics through brief surveys - and earn cash
  http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Fwd: FW: UI Framework selection

2007-01-19 Thread Nino Wael
Scott, you still interested in hiring some wicket expertise?
 
 
regards Nino
 
winmail.dat-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Fwd: FW: UI Framework selection

2007-01-19 Thread Scott Swank
I'll know in two weeks.  Starting Monday we spend two weeks building
proof-of-concept apps in Wicket  JSF/Facelets.  If Wicket comes out
on top then I'm pretty confident that the answer is a yes.

Cheers,
Scott


On 1/19/07, Nino Wael [EMAIL PROTECTED] wrote:
 Scott, you still interested in hiring some wicket expertise?


 regards Nino


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





-- 
Scott Swank
reformed mathematician

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Fwd: FW: UI Framework selection

2007-01-19 Thread Nathan Hamblen
What, you're deciding between Wicket and JSF and no one has answered
your question? Unacceptable!

JavaScriptTemplate is good for passing variables into Javascript. You
can use a cache buster to make sure it gets loaded each time. So, with
that approach you would have a plain onclick=oldJavaScript(foo); in
your page template because foo has already been set in the external js
template.

A quicker and dirtier approach is to use an AttributeModifier for
onclick to patch together the full script call during page generation.
 Using an anonymous subclass model: new AbstractReadOnlyModel() { ...
getObject(...) { return oldJavaScript( + foo + );; }} And so on.

Nathan


 What sort of options are there for embedding simple scalar values into
 an html page, particularly into the parameters of an existing
 javascript method?  I'm looking for something along the lines of:
 
 onclick=oldJavaScript(wicket:scalar wicket:id=foo/);
 
 Which is then rendered as
 
 onclick=oldJavaScript(1234);



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Fwd: FW: UI Framework selection

2007-01-19 Thread Scott Swank
Very kind, thank you.  So JavaScriptTemplate defines foo as a
document-level object?  Nice.  Much appreciated.

Scott

On 1/19/07, Nathan Hamblen [EMAIL PROTECTED] wrote:
 What, you're deciding between Wicket and JSF and no one has answered
 your question? Unacceptable!

 JavaScriptTemplate is good for passing variables into Javascript. You
 can use a cache buster to make sure it gets loaded each time. So, with
 that approach you would have a plain onclick=oldJavaScript(foo); in
 your page template because foo has already been set in the external js
 template.

 A quicker and dirtier approach is to use an AttributeModifier for
 onclick to patch together the full script call during page generation.
  Using an anonymous subclass model: new AbstractReadOnlyModel() { ...
 getObject(...) { return oldJavaScript( + foo + );; }} And so on.

 Nathan


  What sort of options are there for embedding simple scalar values into
  an html page, particularly into the parameters of an existing
  javascript method?  I'm looking for something along the lines of:
 
  onclick=oldJavaScript(wicket:scalar wicket:id=foo/);
 
  Which is then rendered as
 
  onclick=oldJavaScript(1234);



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Fwd: FW: UI Framework selection

2007-01-18 Thread Scott Swank
Thank you both.

On 1/17/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Good luck! Keep us informed, and of course I hope Wicket will be good for you 
 :)

 Eelco

 On 1/17/07, Scott Swank [EMAIL PROTECTED] wrote:
  Wish me luck.  Vegas.com will be selecting our web UI framework in the
  next few weeks and the candidates are JSF Facelets  Wicket.  This
  will be for a complete UI re-write of our public website.  My
  apologies in advance for the onslaught of borderline-inane questions
  to which I will undoubtedly subject you all.
 
  As a first question in that direction, are there any known gotchas in
  using Wicket with JBoss?
 
  Cheers,
  Scott
 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Fwd: FW: UI Framework selection

2007-01-17 Thread Igor Vaynberg

not that we know of. its just a servlet/filter.

-igor

On 1/17/07, Scott Swank [EMAIL PROTECTED] wrote:


Wish me luck.  Vegas.com will be selecting our web UI framework in the
next few weeks and the candidates are JSF Facelets  Wicket.  This
will be for a complete UI re-write of our public website.  My
apologies in advance for the onslaught of borderline-inane questions
to which I will undoubtedly subject you all.

As a first question in that direction, are there any known gotchas in
using Wicket with JBoss?

Cheers,
Scott

__
From:
Sent:   Wednesday, January 17, 2007 12:46 PM
To:
Cc:
Subject:UI Framework selection

C, I would like you to lead up the UI Framework prototyping project,
which is a prerequisite for BSC.  I would like you to work with Scott
Swank and J, who have also put in a lot of effort in research and
prototyping.

We have a couple weeks to dedicate to this, and a number of developers
to work on prototypes.  Our goal is to select the framework for BSC
and establish initial guidelines and directions for use.  Our
candidates are JSF Facelets and Wicket.  Wicket is the underdog, but I
want us to give it due consideration, as I like the approach.  I would
like to divide the group into two teams.  Primary criteria will be
ease (speed/complexity) of use, reuse and maintenance.  Consider
mainly the sorts of UI tasks necessary for BSC, but also consider
concierge style AJAX.   It would be best to come up with a single
obstacle course to run each framework through.

Primarily the team will be those that worked on hotels, with the
addition of K, and others optional, depending on need.

Please schedule a meeting tomorrow with me, Swank, R, J, B for us to
finalize our plan.

Thanks,
SM

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Fwd: FW: UI Framework selection

2007-01-17 Thread Eelco Hillenius
Good luck! Keep us informed, and of course I hope Wicket will be good for you :)

Eelco

On 1/17/07, Scott Swank [EMAIL PROTECTED] wrote:
 Wish me luck.  Vegas.com will be selecting our web UI framework in the
 next few weeks and the candidates are JSF Facelets  Wicket.  This
 will be for a complete UI re-write of our public website.  My
 apologies in advance for the onslaught of borderline-inane questions
 to which I will undoubtedly subject you all.

 As a first question in that direction, are there any known gotchas in
 using Wicket with JBoss?

 Cheers,
 Scott


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user