Re: [Wicket-user] Wicket 1.3, use of getElementById and Wicket.$() and the preservation of ids

2007-07-26 Thread Scott Swank
How hard would it be to add a method like useHtmlElementId()?  It
would default to false, but when a component returns true then the
element id from the template would be used.

Scott

On 7/26/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 the general problem here is that hardcoding ids into wicket markup is mostly
 dangerous because things are so reusable.

 if you put an id into a repeater then it will be repeated all the time -
 causing multiple elements with the same id - which will lead to invalid
 html.

 hardcoding an id inside a panel or a fragment will lead to the same problem.
 it isnt something obvious until you start reusing code and then it gets
 nasty all of a sudden. so my two cents are to discourage this.

 however, as a workaround for cases where you _must_ do this we have
 component.setmarkupid(string) in trunk - you can use that to force any id
 you want.

 -igor


 On 7/26/07, Kirk Israel [EMAIL PROTECTED] wrote:
 
  On 7/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
http://issues.apache.org/jira/browse/WICKET-694
i guess there were problems when implementing this, maybe eelco can
ellaborate more on the unforeseen side effects
  
   Yeah, they were listed in the thread that is mentioned in the issue:
  
  http://www.nabble.com/Re%3A-getMarkupId-doesn%27t-return-the-id-from-the-markup-p11294903.html
  
   I don't really know what to do with it tbh. I hope someone else has
   some suggestions.
 
  I'm a little surprised this isn't more of a high priority item... I
  know Repeaters et al might need some special casing, but could the
  usual cases do what the coder probably expects, i.e. if you specify
  in html markup, that id is preserved (and therefore usable in
  javascript's getElementById ??)
 
  Or... I'm not sure what else might depend on that Id as it gets spit
  out into what's finally sent to the browser, but maybe there could be
  a some kind of mapping function in javascript,
  .getElementByWicketId(id)? and
  getRepeaterElementByIdAndIterationNumber(id,num)
  (I tend to make my function names a bit long :-)
 
  As a thinking point, my group has come up with 3 possible workarounds
  until the real solution appears:
  * temporary, awful hack bandaid currently in use: our javascript
  getElementById added a 6 to the id... the fragile nature of this
  fix is not lost on us
  * go through some function along the lines of getElementByPrefixOfId()
  , so we can get what was specified
  * every form has a hidden field like input type=hidden
  name=OUR_ID value=XYZ, and then we have a specific
  getFormByOurId()
 
  Again, I'm not sure what getMarkupId(Component) is called by, if it's
  mostly wicket internal use or what... most of what I've talked about
  here is javascript workarounds, though i guess the underlying Java
  equivalents should be obvious.
 
  -
  This SF.net email is sponsored by: Splunk Inc.
  Still grepping through log files to find problems?  Stop.
  Now Search log events and configuration files using AJAX and a browser.
  Download your FREE copy of Splunk now   http://get.splunk.com/
  ___
  IMPORTANT NOTICE:
 
  This mailing list is shutting down. Please subscribe to the Apache Wicket
  user list. Send a message to: users-subscribe at wicket.apache.org and
  follow the instructions.
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 IMPORTANT NOTICE:

 This mailing list is shutting down. Please subscribe to the Apache Wicket 
 user list. Send a message to: users-subscribe at wicket.apache.org and 
 follow the instructions.
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user 
list. Send a message to: users-subscribe at wicket.apache.org and follow the 
instructions.
___
Wicket-user mailing list
Wicket-user

Re: [Wicket-user] Wicket 1.3, use of getElementById and Wicket.$() and the preservation of ids

2007-07-26 Thread Scott Swank
Would it make sense to override the method on border (et al), make it
final, and just have it always return false?  Or does the 1:1 problem
lie with components within such a border?

On 7/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
 Problem is when you call getMarkupId(). If you call this method before
 the first page render, Wicket is not able to get the markup attribute
 for some components (because of borders and transparent resolvers
 which break the 1:1 mapping of component tree - markup.

 -Matej

 On 7/26/07, Scott Swank [EMAIL PROTECTED] wrote:
  How hard would it be to add a method like useHtmlElementId()?  It
  would default to false, but when a component returns true then the
  element id from the template would be used.
 
  Scott
 
  On 7/26/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   the general problem here is that hardcoding ids into wicket markup is 
   mostly
   dangerous because things are so reusable.
  
   if you put an id into a repeater then it will be repeated all the time -
   causing multiple elements with the same id - which will lead to invalid
   html.
  
   hardcoding an id inside a panel or a fragment will lead to the same 
   problem.
   it isnt something obvious until you start reusing code and then it gets
   nasty all of a sudden. so my two cents are to discourage this.
  
   however, as a workaround for cases where you _must_ do this we have
   component.setmarkupid(string) in trunk - you can use that to force any id
   you want.
  
   -igor
  
  
   On 7/26/07, Kirk Israel [EMAIL PROTECTED] wrote:
   
On 7/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  http://issues.apache.org/jira/browse/WICKET-694
  i guess there were problems when implementing this, maybe eelco can
  ellaborate more on the unforeseen side effects

 Yeah, they were listed in the thread that is mentioned in the issue:

http://www.nabble.com/Re%3A-getMarkupId-doesn%27t-return-the-id-from-the-markup-p11294903.html

 I don't really know what to do with it tbh. I hope someone else has
 some suggestions.
   
I'm a little surprised this isn't more of a high priority item... I
know Repeaters et al might need some special casing, but could the
usual cases do what the coder probably expects, i.e. if you specify
in html markup, that id is preserved (and therefore usable in
javascript's getElementById ??)
   
Or... I'm not sure what else might depend on that Id as it gets spit
out into what's finally sent to the browser, but maybe there could be
a some kind of mapping function in javascript,
.getElementByWicketId(id)? and
getRepeaterElementByIdAndIterationNumber(id,num)
(I tend to make my function names a bit long :-)
   
As a thinking point, my group has come up with 3 possible workarounds
until the real solution appears:
* temporary, awful hack bandaid currently in use: our javascript
getElementById added a 6 to the id... the fragile nature of this
fix is not lost on us
* go through some function along the lines of getElementByPrefixOfId()
, so we can get what was specified
* every form has a hidden field like input type=hidden
name=OUR_ID value=XYZ, and then we have a specific
getFormByOurId()
   
Again, I'm not sure what getMarkupId(Component) is called by, if it's
mostly wicket internal use or what... most of what I've talked about
here is javascript workarounds, though i guess the underlying Java
equivalents should be obvious.
   
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
IMPORTANT NOTICE:
   
This mailing list is shutting down. Please subscribe to the Apache 
Wicket
user list. Send a message to: users-subscribe at wicket.apache.org and
follow the instructions.
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   -
   This SF.net email is sponsored by: Splunk Inc.
   Still grepping through log files to find problems?  Stop.
   Now Search log events and configuration files using AJAX and a browser.
   Download your FREE copy of Splunk now   http://get.splunk.com/
   ___
   IMPORTANT NOTICE:
  
   This mailing list is shutting down. Please subscribe to the Apache Wicket 
   user list. Send a message to: users-subscribe at wicket.apache.org and 
   follow the instructions.
   ___
   Wicket-user mailing list
   Wicket

Re: [Wicket-user] About to use Wicket. ORM?

2007-07-23 Thread Scott Swank
For an enterprise app I don't think that you want Wicket and your ORM
to even know that one another exist.  I.e.

Wicket
  ^
  |
  v
Domain Application
  ^
  |
  v
ORM

That said, I've been happy with Hibernate.

Good luck,
Scott

On 7/23/07, Matthias Karlsson [EMAIL PROTECTED] wrote:
 Hi,

 after much evaluation I have finally decided to go with Wicket as the
 main framework for a new enterprise site and I think I'll be pleased. I
 have a long road ahead of me though, because while I have much
 experience with developing desktop applications I'm afraid my
 understanding of the http request cycle will initially make it hard to
 just let go and stop micromanaging...

 But anyway, what I still haven't decided is which ORM (if any) framework
   that I should go with. I have previously developed an in-house ORM
 system which has all the basic features I need (lazy-loading, easy
 population of beans, an object-oriented query language etc.), but I'm
 well aware of that I did it to begin with because I was afraid of
 letting go of my precious sql statements. Not having perfect control of
 the generated sql statements would be hard, but I guess I just have to
 wake up and realize that perhaps in these days it doesn't really matter
 if an sql statement or two could be optimized if you were to perform the
 joins in this way instead or whatnot.

 I was hoping I could get some feedback on how people have worked with
 different ORMs with Wicket. I have some experience with Hibernate,
 though it was a little to much of a blackbox to me when I used it. For
 example, I see that DataBinder has popped up as a bridge between
 specifically Wicket and Hibernate. Any comments on how well it works?

 Thanks in advance,

 Matthias

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.3.0-beta2 OutOfMemoryError

2007-07-13 Thread Scott Swank
That sounds like a lovely inner class for WicketTester.

tester = new WicketTester(new WicketTester.NonCachingWebApplication());


On 7/13/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  I noted that each individual test package (say 200 test cases) was running
  twice as slow as before.  I improved this dramatically by calling
  getDebugSettings().setComponentUseCheck(false);

 The slow down is because of recording partial stacktraces when in
 development mode. But for the next version, that's not the default
 anymore (see a vote last week on this).

  in development mode (not ideal),

 Like others said: preferably don't run unit tests in development mode.
 Not much wrong with it per se, but you don't need the extra checks and
 output for unit tests in the first place (and in deployment mode
 you'll be closer to what your actual deployment should be).

  and this improved the running time of each individual test package
  back to something like its previous value.  But, when running the full suite
  (several packages, in either Maven or Eclipse), the tests still get
  progressively slower until the OutOfMemory error is raised.

 This might be because recently the default session store for unit
 tests was set to HttpSessionStore (instead of
 SecondLevelCacheSessionStore). Uses less threads and no diskaccess,
 which should speed up the test execution, but also uses more memory.

 I think that, as long as you are not testing back button behavior, you
 could best do this:

 WebApplication myApplication = new DummyWebApplication()
 {
 protected ISessionStore newSessionStore()
 {
 return new SecondLevelCacheSessionStore(this, 
 new IPageStore()
 {

 public void destroy()
 {
 }

 public Page getPage(String sessionId, 
 String pagemap, int id, int
 versionNumber,
 int ajaxVersionNumber)
 {
 return null;
 }

 public void pageAccessed(String 
 sessionId, Page page)
 {
 }

 public void removePage(String 
 sessionId, String pagemap, int id)
 {
 }

 public void storePage(String 
 sessionId, Page page)
 {
 }

 public void unbind(String sessionId)
 {
 }
 });
 }
 };

 tester = new WicketTester(myApplication);

 Which only holds the current page in memory and immediately discards
 the older ones.

 Could give that a try and let us know whether that helped?

 Thanks,

 Eelco

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.3.0-beta2 OutOfMemoryError

2007-07-13 Thread Scott Swank
Thank ya.

On 7/13/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 On 7/13/07, Scott Swank [EMAIL PROTECTED] wrote:
  That sounds like a lovely inner class for WicketTester.
 
  tester = new WicketTester(new WicketTester.NonCachingWebApplication());

 Done. I called it NonCachingDummyWebApplication.

 Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] New tutorial for Wicket 1.3 release : could you please check it ?

2007-07-13 Thread Scott Swank
I'd use different wicket ids for your form  textfield than form and
textfield to highlight the fact that they're just strings.

form wicket:id=yourForm
textarea rows=4 cols=20 wicket:id=someTextarea

On 7/13/07, ZedroS Schwart [EMAIL PROTECTED] wrote:
 Hi

 I've been written this little tutorial :
 http://zedros.developpez.com/tutoriels/java/wicket/

 If I don't say too much stupidity, I plan to translate it to french
 and then publish it on Wicket 1.3 release (having updated the links to
 the various resources).

 I would much appreciate a quick feedback on it. I may have done some
 newbie errors, so don't hesitate to tell me !

 Thanks in advance
 Joseph

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] New tutorial for Wicket 1.3 release : could you please check it ?

2007-07-13 Thread Scott Swank
If I remember correctly, there are a couple of issues that can come up
if you use a span instead of a div as the html tag for a panel -- but
I can't remember what they are.

span wicket:id=panel
/span

And finally in the last line you have a typo: remplace instead of replace.

All in all it looks like a good intro.  Nice work.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] page variations (in 1.2)

2007-07-12 Thread Scott Swank
May I suggest the state pattern  :).

public class Yours
{
  private YourState state;

  public Foo someMethod()
  {
return state.getFoo();
  }

  etc.

}

http://en.wikipedia.org/wiki/State_pattern

On 7/12/07, Ittay Dror [EMAIL PROTECTED] wrote:



 Hi,




 Say I have some entity E, and it can have states A,B,C. now, for each state,
 I render the entity a bit differently (showing more or less information,
 changing colors). The page is comprised of many, sometimes nested (in
 panels) components. What is the best way to achieve those variations, other
 than sprinkling 'if (state == S)' statements when creating the components?




 One way could be to allow variations ala xslt on the template html based on
 the state (remove a div, change color of a label etc.). But this changes the
 structure of the page, and may make wicket issue errors (no matching markup
 for component).




 I would like to hear what others have to say about this issue




 Thank you,

 Ittay



 --
  Ittay Dror
  Chief Architect,
  RD, Qlusters Inc.
  Web: qlusters.com
  Email: [EMAIL PROTECTED]
  Phone: +972-3-6081994

  openQRM - Data Center Provisioning
  --
  I own this number: D0E008A921FF04A9DB8C12668E4315F4. Get
 your own at http://www.freedom-to-tinker.com
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] page variations (in 1.2)

2007-07-12 Thread Scott Swank
add(state.buildYourComponent(someWicketId));

On 7/12/07, Ittay Dror [EMAIL PROTECTED] wrote:



 can you elaborate how it relates to wicket?

  Scott Swank wrote on 07/12/07 19:22:


  May I suggest the state pattern :).

 public class Yours
 {
  private YourState state;

  public Foo someMethod()
  {
  return state.getFoo();
  }

  etc.

 }

 http://en.wikipedia.org/wiki/State_pattern

 On 7/12/07, Ittay Dror [EMAIL PROTECTED] wrote:



 Hi,




 Say I have some entity E, and it can have states A,B,C. now, for each state,
 I render the entity a bit differently (showing more or less information,
 changing colors). The page is comprised of many, sometimes nested (in
 panels) components. What is the best way to achieve those variations, other
 than sprinkling 'if (state == S)' statements when creating the components?




 One way could be to allow variations ala xslt on the template html based on
 the state (remove a div, change color of a label etc.). But this changes the
 structure of the page, and may make wicket issue errors (no matching markup
 for component).




 I would like to hear what others have to say about this issue




 Thank you,

 Ittay



 --
  Ittay Dror
  Chief Architect,
  RD, Qlusters Inc.
  Web: qlusters.com
  Email: [EMAIL PROTECTED]
  Phone: +972-3-6081994

  openQRM - Data Center Provisioning
  --
  I own this number: D0E008A921FF04A9DB8C12668E4315F4. Get
 your own at http://www.freedom-to-tinker.com
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user







 --
  Ittay Dror
  Chief Architect,
  RD, Qlusters Inc.
  Web: qlusters.com
  Email: [EMAIL PROTECTED]
  Phone: +972-3-6081994

  openQRM - Data Center Provisioning
  --
  I own this number: D0E008A921FF04A9DB8C12668E4315F4. Get
 your own at http://www.freedom-to-tinker.com
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to control where HTML files are loaded from in 1.3?

2007-07-12 Thread Scott Swank
I believe that it's something like this (we're still on 1.2.6 here at work).

getResourceSettings().addResourceFolder(/WEB-INF/html);



On 7/12/07, David Rosenstrauch [EMAIL PROTECTED] wrote:
 Hi.  Wicket newbie here - and loving the framework.  Great work!

 I started tinkering with it a few weeks ago, and wrote some code, but
 then realized that I probably ought to switch to use v1.3.  Running into
 some conversion problems, though.  Specifically, I used the approach
 described here:

 http://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html

 I needed a way to load up HTML files that are all inside the same
 directory. That directory happened to be /WEB-INF/html. Essentially, I
 needed to chop off the fully qualified class name and turn
 com/example/wicket/app/HomePage.html into simply
 /WEB-INF/html/HomePage.html

 There's perfect instructions on how to do this in 1.2 (see the bottom of
 that page).  But that code broker upon upgrading to 1.3.  Specifically,
 the CompoundResourceStreamLocator class appears to no longer exist.  In
 addition, the IResourceFinder.find method now appears to take 2 parms
 (Class and String) whereas it previously only took a String.

 Anyone have any idea how this code should be updated for 1.3?

 TIA,

 DR

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket mailing list rules with regards to jobs

2007-07-05 Thread Scott Swank
Here at www.vegas.com (you guessed it, in Las Vegas) we are actively
hiring Java developers, with all of our UI development in Wicket.

Cheers,
Scott


-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Paging data without using DataProvider.size() ?

2007-06-29 Thread Scott Swank
Any modern database uses a cost-based optimizer to determine its
query execution plans.  This means that at a minimum the database
knows how many rows each table contains.  This means that you just
have to find this metadata -- then you can use that in lieu an actual
count(*).

On oracle you would:

select num_rows
from all_tables
where owner = 'FOO'
and table_name = 'BAR';

instead of

select count(*)
from foo.bar


On 6/29/07, C. Bergström [EMAIL PROTECTED] wrote:
 Gwyn Evans wrote:
  Hi,
 
Anyone got any suggestions as to the best way to provide a paging
  data view without requiring using size() to actually count the records
  in DB?
 
  I've got a site that has a production DB such that
  select COUNT(*) from mytable
  takes a non-trivial amount of time/cpu to return, whereas to get
  the actual data for the page is effectively immediate!
 
  I'm curently using a DefaultDataTable and the quick hack is to just
  hard-code DataProvider.size() to just return a fixed number, but while
  that's probably OK, it's sub-optimal (it is just a util for my own
  use though, really).  Having said that, I'd be interested in
  alternative suggestions.
 
  It's the Production DB only that shows this behaviour (which is
  probably related to them not purging the the old data for 4 years or
  so, so I'm limited as to what might be possible with the DB itself).
 
 I smell Postgres and just going to go out on a limb here.. :) triggers
 that update a counts table, db maintenance, or search the postgres
 perform archive for other ways to achieve this.. I'm pretty sure I see
 this question nearly every two weeks and from what I've read and
 remember it pretty much falls on the responsibility of the backend.
 There's also certainly more commentary in the wicket-users archives as well.

 Good luck,

 ./C

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Paging data without using DataProvider.size() ?

2007-06-29 Thread Scott Swank
Of course this metadata-level cardinality may be generated daily and
hence may not be current, but for the purposes of paging it's probably
entirely sufficient unless you expect a user to walk through many,
many pages of data.

On 6/29/07, Scott Swank [EMAIL PROTECTED] wrote:
 Any modern database uses a cost-based optimizer to determine its
 query execution plans.  This means that at a minimum the database
 knows how many rows each table contains.  This means that you just
 have to find this metadata -- then you can use that in lieu an actual
 count(*).

 On oracle you would:

 select num_rows
 from all_tables
 where owner = 'FOO'
 and table_name = 'BAR';

 instead of

 select count(*)
 from foo.bar


 On 6/29/07, C. Bergström [EMAIL PROTECTED] wrote:
  Gwyn Evans wrote:
   Hi,
  
 Anyone got any suggestions as to the best way to provide a paging
   data view without requiring using size() to actually count the records
   in DB?
  
   I've got a site that has a production DB such that
   select COUNT(*) from mytable
   takes a non-trivial amount of time/cpu to return, whereas to get
   the actual data for the page is effectively immediate!
  
   I'm curently using a DefaultDataTable and the quick hack is to just
   hard-code DataProvider.size() to just return a fixed number, but while
   that's probably OK, it's sub-optimal (it is just a util for my own
   use though, really).  Having said that, I'd be interested in
   alternative suggestions.
  
   It's the Production DB only that shows this behaviour (which is
   probably related to them not purging the the old data for 4 years or
   so, so I'm limited as to what might be possible with the DB itself).
  
  I smell Postgres and just going to go out on a limb here.. :) triggers
  that update a counts table, db maintenance, or search the postgres
  perform archive for other ways to achieve this.. I'm pretty sure I see
  this question nearly every two weeks and from what I've read and
  remember it pretty much falls on the responsibility of the backend.
  There's also certainly more commentary in the wicket-users archives as well.
 
  Good luck,
 
  ./C

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Paging data without using DataProvider.size() ?

2007-06-29 Thread Scott Swank
There is no performance difference between count(*) and
count(not_nullable_column).  Stick with count(*), since it's clearer
what you really want.

On 6/29/07, Gwyn Evans [EMAIL PROTECTED] wrote:
 On Friday, June 29, 2007, 12:36:34 PM, Martijn [EMAIL PROTECTED] wrote:

  The most interesting questions is of course: what database? Perhaps
  someone here knows how to get the count(*) faster? you might want to
  do a select count(primary_key) instead of *.

  As an answer to your question: you could use Integer.MAX_VALUE.

 The DB's Oracle (8i, I think), but the metadata approach doesn't help,
 as if I'm using size, it should be the size for the filtered results,
 which may be in effect, otherwise I might as well use a fixed result.

 What I was wondering was if anyone had any suggestions about a table
 object that just did 'next'/'prev' paging, rather than working out
 Page N of M, although I'll try  work out if select count(id) is
 faster/less cost than select count(*)

 /Gwyn


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Customizing ModalWindow CSS

2007-06-27 Thread Scott Swank
Here's everything I know.  (Not much)

http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10768589

On 6/27/07, Andrew Klochkov [EMAIL PROTECTED] wrote:
 search through the mail-list, this topic was discussed in details

 Tauren Mills wrote:
  What is the best way to customize the CSS styles of a ModalWindow in
  1.2.6?
 
 --
 Andrew Klochkov


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] A trivial problem with tables that i can't manage

2007-06-25 Thread Scott Swank
http://www.oracle.com/technology/oramag/oracle/07-jan/o17asktom.html

;)

On 6/25/07, Gwyn Evans [EMAIL PROTECTED] wrote:
 On Monday, June 25, 2007, 9:54:58 PM, Landry [EMAIL PROTECTED] wrote:

  A problem remains, however : i don't know how to implement
  IDataProvider.iterator(int first, int count).
  Must be something like this in oracle : select * from mytable where
 rownum=first and rownum count 

 Actually, in Oracle, it's significantly more complex than the above,
 but let's not go there (unless you're actually doing that in Oracle?).

  But how to do this in mysql ? (row_id could do the thing, but it is only
  available when your primary key is integer).

 I've not used MySQL for years, but I think it's
   select * from mytable order by whatever limit first, count
 where 'first' is from 0.

 /Gwyn


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] A trivial problem with tables that i can't manage

2007-06-25 Thread Scott Swank
On 6/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  On Monday, June 25, 2007, 9:54:58 PM, Landry [EMAIL PROTECTED] wrote:
 
   A problem remains, however : i don't know how to implement
   IDataProvider.iterator(int first, int count).
   Must be something like this in oracle : select * from mytable where
  rownum=first and rownum count 
 
  Actually, in Oracle, it's significantly more complex than the above,
  but let's not go there (unless you're actually doing that in Oracle?).
 
   But how to do this in mysql ? (row_id could do the thing, but it is only
   available when your primary key is integer).
 
  I've not used MySQL for years, but I think it's
select * from mytable order by whatever limit first, count
  where 'first' is from 0.

 If you are using an ORM tool (JPA, Hibernate, JDO) the tool might do
 specific optimizations for you. But I think what most people (/
 implementations) do is just scroll the result set cursor to the first
 record needed.

 Eelco

In Hibernate, and more widely in JPA, you use

   setFirstResult()
   setMaxResults()

on your query.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Multiple wicket:child tags in the same page

2007-06-22 Thread Scott Swank
I've often seen folk want what I see as abstract tags that can then
be implemented by subclasses.  The way I've handled that for our
application is by creating an abstract component (say it's a page)
with div tags with appropriate wicket:ids.

public class BasePage extends WebPage
{
  public BasePage()
  {
add(buildFoo(foo));
add(buildBar(bar));
  }

  public abstract Panel buildFoo(String id);
  public abstract Component buildBar(String id);
}

Then subclass appropriately.


On 6/21/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Yes. Markup inheritance is meant to go one-on-one with Java
 inheritance which is limited to single parents. If people feel a
 markup inheritance-like pattern would be useful, we could discuss it,
 but it has to be a different kind of concept.

 Eelco


 On 6/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  natural is an extremely subjective term. the core team does not entirely
  think so. but there is nothing stopping you from writing tag handlers to do
  exactly what you want.
 
  -igor
 
 
 
   On 6/21/07, rc.china [EMAIL PROTECTED] wrote:
  
   Panels and fragments are useful. As of page layout, however,
  wicket:extend
   / wicket:child is more natual than Panels and fragments.
  
   Some possible solutions is:
   1) use different tag values to differentiate:
   ...
   wicket:child childid=1/
   ...
   wicket:child childid=2/
   ...
   ==
   ...
   wicket:extend extendid=1
   ...
   /wicket:extend
   ...
   wicket:extend extendid=2
   ...
   /wicket:extend
   ...
  
   2)use wicket:extendN wicket:childN (N=1,2,3,...) instead of
   wicket:extend wicket:child
   ...
   wicket:child1/
   ...
   wicket:child2/
   ...
   ==
   ...
   wicket:extend1
   ...
   /wicket:extend1
   ...
   wicket:extend2
   ...
   /wicket:extend2
   ...
   --
   View this message in context:
  http://www.nabble.com/Multiple-wicket%3Achild-tags-in-the-same-page-tf3775143.html#a11245019
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
  -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how busy a site is wicket known to support?

2007-06-20 Thread Scott Swank
That's all very helpful.  I just wanted to be sure that we aren't
going to be pushing the envelope for Wicket's known performance
signature.

At this point my primary focus is on using models efficiently and
determining whether we are otherwise structuring things in an
inefficient manner.

Thank you again,
Scott

On 6/19/07, Peter Thomas [EMAIL PROTECTED] wrote:
 On 6/20/07, Jonathan Locke [EMAIL PROTECTED] wrote:
 
 
  oh yeah, be sure you DO NOT test your wicket app's scalability with
  wicket in development mode!
 
 

 Ah yes, I figured that out the hard way.  Big difference.

 Just thought I'd mention that if you need a realistic application built on
 Wicket + Spring + Hibernate to do some load testing, you can consider JTrac
 [ http://jtrac.info ].  There is a JMeter test in SVN and you can contact me
 if you need help setting up the application / JMeter test.  This should be
 really easy because by default, the app uses an embedded HSQLDB instance.

 In my profiling tests, the main bottleneck was Lucene writing to the file
 system for indexing stuff.  Hibernate comes second.

 Thanks,

 Peter.

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how busy a site is wicket known to support?

2007-06-20 Thread Scott Swank
 If you can, start testing early and use a profiler to find any
 bottlenecks. And if you find something, please report! :) For instance
 on http://issues.apache.org/jira/browse/WICKET-626

 Eelco

I definitely will.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] how busy a site is wicket known to support?

2007-06-19 Thread Scott Swank
I have a quick question about server load, in particular I want to
determine what sort of volume existing applications support.

We spread our load across 5 JBoss servers and need to support 200
requests/second (40/second per server).  Are other Wicket applications
handling this volume?

Thank you,
Scott

-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] page map size

2007-06-08 Thread Scott Swank
It's a JSP one of our developers put together.  Here's the relevant bit.

for (Enumeration e = session.getAttributeNames(); e.hasMoreElements();)
{
String key = (String)e.nextElement();
Object obj = session.getAttribute(key);

String outputStr = null;

try
{
ByteArrayOutputStream byteOutput = new 
ByteArrayOutputStream();
ObjectOutputStream output = new 
ObjectOutputStream(byteOutput);
output.writeObject(obj);

int size = byteOutput.size();
totalSize += size;

outputStr = format.format(size) +  bytes;
}
catch (NotSerializableException ex)
{
StringWriter sb = new StringWriter();
sb.write(PRE);
ex.printStackTrace(new PrintWriter(sb));
sb.write(/PRE);

outputStr = sb.toString();
}
}

On 6/8/07, Peter Thomas [EMAIL PROTECTED] wrote:
 Scott - what is the trick for getting a report of sizes of page maps like
 this?  I was so far only aware that setting log level DEBUG on say
 org.apache.wicket.protocol.http.FilePageStore can give you
 some of this info...

 Thanks,

 Peter.


 On 6/8/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
  Depends on your page, number of components, deployment mode, wicket
  version, how you bind the models to your components.
 
  Do you use the second level cache for storing your pages for back
  button support?
 
  Martijn
 
  On 6/8/07, Scott Swank [EMAIL PROTECTED] wrote:
   Are these typical sizes for page maps?
  
   wicket:/app:p:null:267,668 bytes
   wicket:/app:p:null:155,861 bytes
   wicket:/app:p:null:052,817 bytes
  
   --
   Scott Swank
   reformed mathematician
  
 
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] page map size

2007-06-08 Thread Scott Swank
Martjin,

We're using 1.2.6.  Is the 2nd level cache available prior to 1.3?

As for page complexity, we commonly have a reasonably robust repeater
or list view on each page (though without too many rows) along with a
form or two.

I'm concerned about models because as I do work on a given page I see
the older page maps change in size.  I.e. I have p0=30K, p1=33K --
then I do something substantial on p2 and see the size of p0  p1 each
increase by 11K.

Thank you,
Scott

On 6/8/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 Depends on your page, number of components, deployment mode, wicket
 version, how you bind the models to your components.

 Do you use the second level cache for storing your pages for back
 button support?

 Martijn

 On 6/8/07, Scott Swank [EMAIL PROTECTED] wrote:
  Are these typical sizes for page maps?
 
  wicket:/app:p:null:267,668 bytes
  wicket:/app:p:null:155,861 bytes
  wicket:/app:p:null:052,817 bytes
 
  --
  Scott Swank
  reformed mathematician
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 --
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.6 contains a very important fix. Download Wicket now!
 http://wicketframework.org

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] page map size

2007-06-08 Thread Scott Swank
Our pages are in fact rather Ajax-heavy.  We have following settings
in our app.init() method.

  getSessionSettings().setPageMapEvictionStrategy(new
LeastRecentlyAccessedEvictionStrategy(1));

  getPageSettings().setMaxPageVersions(1);
  getPageSettings().setVersionPagesByDefault(false);

Though I increased the LRU eviction value to a 4 to obtain the numbers
I initially posted.

-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] page map size

2007-06-08 Thread Scott Swank
I suspect that we have model problems somewhere.  And yes, we're
scheduled to walk through it with JProfiler this afternoon.

Thanks again,
Scott

On 6/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 If you still have a growing pagemap with these settings, it looks like
 there's a memory leak somewhere. Did you guys try to profile?

 Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] page map size

2007-06-07 Thread Scott Swank
Are these typical sizes for page maps?

wicket:/app:p:null:267,668 bytes
wicket:/app:p:null:155,861 bytes
wicket:/app:p:null:052,817 bytes

-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket did not make the grade.

2007-06-06 Thread Scott Swank
 that. The banner is
 added by the base page that each app page extends.)
  
   - The fact that the same principles of a component tree and markup
 inheritance work from the smallest components right up to the entire
 page. This is very different from most Model2 frameworks, where you
 need something like SiteMesh or Tiles to add common banners and
 navbars to pages, and from JSF, where the internal structure of
 components is very different that the way they are composed into
 pages.
  
 
  I agree with you that these are some of the strongest benefits of
  Wicket. In my experience these facts were seen as a disadvantage... and
  I am still trying to figure out why? My group is a very strong OOP group
  yet the fully contained component advantage of Wicket was not appealing.
  The only reason I can find for these irrational conclusion is that the
  Model 2 frameworks out there have defined themselves as THE proper web
  implementation of MVC.
 
  Furthermore, our need for web-apps are peripheral to our main business.
  We typically need to put together many small support web-applications.
  so, Having a re-usabble set of components which require zero-config
  would have been a great advantage.
 
  florian
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Including wicket page from JSP?

2007-05-25 Thread Scott Swank
Consider also the solution we implemented in house to allow arbitrary
Wicket components in an external web page -- including of course a
JSP.

http://www.nabble.com/Wicket-and-embeddable-Ajax-components-tf3604793.html#a10084198

On 5/25/07, Bruno Borges [EMAIL PROTECTED] wrote:
 You can do it with a runtime include

 jsp:include page=/site/MyBookmarkablePage /

 But watch out for conflicts between HTMLs and you will need to do some hacks
 like substring code inside body tag only. Something like that. Possible it
 is, but isn't out of the box. :D

 Everything is possible.

 []'s
 --
 Bruno Borges
 Summa Technologies Inc.
 www.summa-tech.com
 (11) 8565-7739
 (11) 3055-2060
  (48) 8404-1300


 On 5/25/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]
 wrote:
  Hi
 
  I wont expect the above to be possible, but sometimes you just dont
  know? Is it possible, currently we are including it via an iframe tag,
  some say thats a bad way todo it...
 
  Whats your 2 cents?
 
  regards Nino
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Decorate any external link with small graphic

2007-05-24 Thread Scott Swank
You want a Border.  Relevant wiki pages include

http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html
http://cwiki.apache.org/WICKET/custom-components.html
http://cwiki.apache.org/WICKET/panels-and-borders.html

On 5/24/07, Thomas Singer [EMAIL PROTECTED] wrote:
 I want to decorate any a href=... link to an external website with a
 small graphic and ensure it will open in a separate window. Where should I
 start? I'm currently trying to add an IMarkupFilter implementation to insert
 another openClose-ComponentTag before the /a-ComponentTag, but Wicket
 seems not to render it.

 Thanks in advance,
 Tom

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to customize Modal Window`s appearance

2007-05-23 Thread Scott Swank
1. subclass ModalWindow, with following in the constructor.

public YourModalWindow(String id)
{
super(id);
add(HeaderContributor.forCss(/style/cart_global.css));
super.setCssClassName(w_vegas);
}

2. have someone who understands css (i.e. not me) put lots of thingies
in the above css file to override details of the css that ships with
ModalWindow.  E.g.

div.wicket-modal div.w_vegas div.w_left,
div.wicket-modal div.w_vegas div.w_right {
background-image: url();
_background-image: url();
}

div.wicket-modal div.w_vegas div.w_top,
div.wicket-modal div.w_vegas div.w_bottom,
/*div.wicket-modal div.w_vegas div.w_topLeft,*/
div.wicket-modal div.w_vegas div.w_topRight,
div.wicket-modal div.w_vegas div.w_bottomRight,
div.wicket-modal div.w_vegas div.w_bottomLeft
{
background-image: url();
_background-image: url();
}

div.wicket-modal div.w_vegas div.w_close{
background: url(/mytrip/images/close_x.gif) no-repeat;
}

Scott


On 5/23/07, Jonathan Locke [EMAIL PROTECTED] wrote:


 yeah, i'd be interested in this result too.


 Scott Swank wrote:
 
  Agreed.  We've gone the complicated CSS magic route and it is a bit
  involved, but I can vouch for the fact that it's an option.  :)
 
  On 5/18/07, Matej Knopp [EMAIL PROTECTED] wrote:
  It is customizable, but you need a rather complicated CSS magic to do
  it. Or, you can just override the images. Look at the images in the
  modal window package to see how it works.
 
  -Matej
 
  On 5/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
   you can try applying your own css, but i doubt it. the window is not
  made to
   be too customizable atm.probably next major ver of wicket will include
  a
   rework of it. for now, you can integrate any of the zillion of
  javascript
   libs out there that produce a simple modal pane.
  
   -igor
  
  
  
   On 5/17/07, Nikhil Gahlot [EMAIL PROTECTED] wrote:
   
Hi,
   
I am using ModalWindow for my login screen. In that I have used panel
  as
   its
content. Now I want to hide everything (including title bar, close
  link,
etc) on Modal Window except the rich panel I am using. In other
  words, is
there a way I can remove modal window`s title bar with close link and
borders(left, right and bottom) keeping only body active that houses
  my
login panel?
   
Thanks
Nikhil
--
View this message in context:
  
  http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10676785
Sent from the Wicket - User mailing list archive at Nabble.com.
   
   
   
  
  -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
  
  -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  --
  Scott Swank
  reformed mathematician
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 --
 View this message in context: 
 http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10768003
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version

Re: [Wicket-user] how to customize Modal Window`s appearance

2007-05-18 Thread Scott Swank
Agreed.  We've gone the complicated CSS magic route and it is a bit
involved, but I can vouch for the fact that it's an option.  :)

On 5/18/07, Matej Knopp [EMAIL PROTECTED] wrote:
 It is customizable, but you need a rather complicated CSS magic to do
 it. Or, you can just override the images. Look at the images in the
 modal window package to see how it works.

 -Matej

 On 5/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  you can try applying your own css, but i doubt it. the window is not made to
  be too customizable atm.probably next major ver of wicket will include a
  rework of it. for now, you can integrate any of the zillion of javascript
  libs out there that produce a simple modal pane.
 
  -igor
 
 
 
  On 5/17/07, Nikhil Gahlot [EMAIL PROTECTED] wrote:
  
   Hi,
  
   I am using ModalWindow for my login screen. In that I have used panel as
  its
   content. Now I want to hide everything (including title bar, close link,
   etc) on Modal Window except the rich panel I am using. In other words, is
   there a way I can remove modal window`s title bar with close link and
   borders(left, right and bottom) keeping only body active that houses my
   login panel?
  
   Thanks
   Nikhil
   --
   View this message in context:
  http://www.nabble.com/how-to-customize-Modal-Window%60s-appearance-tf3775853.html#a10676785
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
  -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ModalWindow AjaxLink

2007-05-14 Thread Scott Swank
Is there any reason not to have a factory method like the following on
ModalWindow?

public AjaxLink createAjaxLink(String linkId)
{
return new AjaxLink(linkId)
{
private static final long serialVersionUID = 0L;

@Override
public void onClick(AjaxRequestTarget target)
{
ModalWindow.this.show(target);
}
};
}

Thank you,
Scott

-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ModalWindow AjaxLink

2007-05-14 Thread Scott Swank
It just saves a few lines of code.

yourPanel.add(new AjaxLink(foo){
   private static final long serialVersionUID = 0L;
   @Override
   public void onClick(AjaxRequestTarget target)
   {
  yourModalWindow.show(target);
   });

vs.

yourPanel.add(yourModalWindow.createAjaxLink(foo));

It's purely a convenience method, but to my eyes it reads a bit more cleanly.

Scott


On 5/14/07, Matej Knopp [EMAIL PROTECTED] wrote:
 Hi.

 Not that I know of :) But what is it supposed to solve?

 -Matej

 On 5/14/07, Scott Swank [EMAIL PROTECTED] wrote:
  Is there any reason not to have a factory method like the following on
  ModalWindow?
 
  public AjaxLink createAjaxLink(String linkId)
  {
  return new AjaxLink(linkId)
  {
  private static final long serialVersionUID = 0L;
 
  @Override
  public void onClick(AjaxRequestTarget target)
  {
  ModalWindow.this.show(target);
  }
  };
  }
 
  Thank you,
  Scott
 
  --
  Scott Swank
  reformed mathematician
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ModalWindow AjaxLink

2007-05-14 Thread Scott Swank
Do I create a RFE via the JIRA?

On 5/14/07, Matej Knopp [EMAIL PROTECTED] wrote:
 Well, you can create a RFE and assign it to me, i can add this to 1.3.

 -Matej

 On 5/14/07, Scott Swank [EMAIL PROTECTED] wrote:
  It just saves a few lines of code.
 
  yourPanel.add(new AjaxLink(foo){
 private static final long serialVersionUID = 0L;
 @Override
 public void onClick(AjaxRequestTarget target)
 {
yourModalWindow.show(target);
 });
 
  vs.
 
  yourPanel.add(yourModalWindow.createAjaxLink(foo));
 
  It's purely a convenience method, but to my eyes it reads a bit more 
  cleanly.
 
  Scott
 
 
  On 5/14/07, Matej Knopp [EMAIL PROTECTED] wrote:
   Hi.
  
   Not that I know of :) But what is it supposed to solve?
  
   -Matej
  
   On 5/14/07, Scott Swank [EMAIL PROTECTED] wrote:
Is there any reason not to have a factory method like the following on
ModalWindow?
   
public AjaxLink createAjaxLink(String linkId)
{
return new AjaxLink(linkId)
{
private static final long serialVersionUID = 0L;
   
@Override
public void onClick(AjaxRequestTarget target)
{
ModalWindow.this.show(target);
}
};
}
   
Thank you,
Scott
   
--
Scott Swank
reformed mathematician
   
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
   -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  --
  Scott Swank
  reformed mathematician
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ModalWindow AjaxLink

2007-05-14 Thread Scott Swank
It's WICKET-569.  I couldn't see how to assign it, and so didn't.

Scott

On 5/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Yes. Create new issue - issue type new feature or improvement.

 Eelco


 On 5/14/07, Scott Swank [EMAIL PROTECTED] wrote:
  Do I create a RFE via the JIRA?
 
  On 5/14/07, Matej Knopp [EMAIL PROTECTED] wrote:
   Well, you can create a RFE and assign it to me, i can add this to 1.3.
  
   -Matej
  
   On 5/14/07, Scott Swank [EMAIL PROTECTED] wrote:
It just saves a few lines of code.
   
yourPanel.add(new AjaxLink(foo){
   private static final long serialVersionUID = 0L;
   @Override
   public void onClick(AjaxRequestTarget target)
   {
  yourModalWindow.show(target);
   });
   
vs.
   
yourPanel.add(yourModalWindow.createAjaxLink(foo));
   
It's purely a convenience method, but to my eyes it reads a bit more 
cleanly.
   
Scott
   
   
On 5/14/07, Matej Knopp [EMAIL PROTECTED] wrote:
 Hi.

 Not that I know of :) But what is it supposed to solve?

 -Matej

 On 5/14/07, Scott Swank [EMAIL PROTECTED] wrote:
  Is there any reason not to have a factory method like the following 
  on
  ModalWindow?
 
  public AjaxLink createAjaxLink(String linkId)
  {
  return new AjaxLink(linkId)
  {
  private static final long serialVersionUID 
  = 0L;
 
  @Override
  public void onClick(AjaxRequestTarget 
  target)
  {
  ModalWindow.this.show(target);
  }
  };
  }
 
  Thank you,
  Scott
 
  --
  Scott Swank
  reformed mathematician
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
--
Scott Swank
reformed mathematician
   
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
   -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  --
  Scott Swank
  reformed mathematician
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

Re: [Wicket-user] Query String passing

2007-05-10 Thread Scott Swank
Check out the examples

http://wicketstuff.org/wicket13/index.html

in particular echo.  N.b. there is a view source link in the top
right corner that shows you the underlying html  java.

Scott

On 5/10/07, edward durai [EMAIL PROTECTED] wrote:

 Hi,

 I am newbie of wicket,
 in jsp, consider one.jsp contains username field. When I click submit button
 goto another page that is two.jsp.
 I can get  username field using request.getParameter(username);

 But In Wicket, How can I do it the same process?

 Please explain. Thanking You.

 --
 View this message in context: 
 http://www.nabble.com/Query-String-passing-tf3721482.html#a10412858
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ModalWindow relative positioning

2007-05-08 Thread Scott Swank
Thank you Eelco, we have not.  It's for our next release and we're
deep in the trenches of getting out the current release.

Any thoughts are welcome, we're more than glad to dig into the details.

Cheers,
Scott

On 5/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Did you find a solution for this yet Scott?

 Eelco

 On 5/4/07, Scott Swank [EMAIL PROTECTED] wrote:
  Sorry to just blatently bump this, but it there any way to pop up a
  modal window in a relative position?  Alternately, is there any good
  way to get the absolute position of the link that opens a given modal
  window?
 
  Thank you,
  Scott
 
 
  On 4/26/07, Reuben Burda [EMAIL PROTECTED] wrote:
  
  
   Hello,
  
   We've run into a small issue tare trying to position a ModalWindow on the
   screen relative to the link that spawned it. Does anyone know of a 
   solution
   for this?
  
   Thanks in advance
  
   Reuben
  
   -
   This SF.net email is sponsored by DB2 Express
   Download DB2 Express C - the FREE version of DB2 express and take
   control of your XML. No limits. Just data. Click to get it now.
   http://sourceforge.net/powerbar/db2/
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
  --
  Scott Swank
  reformed mathematician
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Good Tutorial on core wicket

2007-05-03 Thread Scott Swank
Have you seen this in the wiki?  It's a reasonable start on the sort
of thing that I _think_ you're asking for.

http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html

Scott

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] alternatives to set locale without using session?

2007-05-03 Thread Scott Swank
Can I ask why you don't want to store the locale in the session?  It
seems that the locale is unarguably session-specific.

Cheers,
Scott

On 5/3/07, ywtsang [EMAIL PROTECTED] wrote:

 Dear all,

 I have read the wicket examples, wiki, mail lists, etc and it seems that if
 I need to expliclity change the locale, i need to write codes like:

 getSession().setLocale(my locale);



 Now, I can determine the explicity language/locale need to use from the
 incoming URL.

 I want to use wicket built in i18n support. My problem is, I cannot/will not
 use session for nearl all the pages.

 So, any means to set the locale without using session? Any help/guideline
 will be welcomed. Thanks.


 Regards,
 Wing
 --
 View this message in context: 
 http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [ANN] Apache Wicket 1.3.0-incubating-beta1 has been released

2007-05-02 Thread Scott Swank
Congratulations to everyone.  Very exciting.

Cheers,
Scott


On 5/2/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 The Apache Wicket team is proud to announce Wicket's first Apache
 Incubator release. This release is officially approved by the
 Incubator PMC [1].

 In this announcement:
  - Apache Wicket
  - This release
  - Migrating from 1.2
  - Downloading the release
  - Reporting bugs
  - Fixing bugs
  - Incubating Apache Wicket

 We thank you for your patience and support. Next stop: graduation!

 The Wicket Team

 [1] http://www.mail-archive.com/[EMAIL PROTECTED]/msg13714.html

 -= Apache Wicket =-

 Apache Wicket is a component oriented Java web application framework
 currently undergoing incubation at the Apache Software foundation.
 With proper mark-up/logic separation, a POJO data model, and a
 refreshing lack of XML, Apache Wicket makes developing web-apps simple
 and enjoyable again. Swap the boilerplate, complex debugging and
 brittle code for powerful, reusable components written with plain Java
 and HTML.

 You can find more information on Apache Wicket here:

 http://incubator.apache.org/wicket

 -= This release =-

 This release is a first in a series of beta releases until we feel
 confident to finalize Wicket 1.3. This is called a beta because we
 don't have fixed all bugs, and probably haven't found them all either
 (can you ever be sure?). However, we are confident that most major API
 changes are in and therefore want to give you access to a more stable
 platform than depending on trunk.

 - Migrating from 1.2 -

 If you are coming from Wicket 1.2, you really want to read our
 migration guide, found on the wiki:

 http://cwiki.apache.org/WICKET/migrate-13.html

 - Downloading the release -

 You can download the release here:

 
 http://people.apache.org/dist/incubator/wicket/apache-wicket-1.3.0-incubating-beta1/dist/

 If you want to use maven to download the release, add the following
 repository to your pom:

 
 http://people.apache.org/dist/incubator/wicket/apache-wicket-1.3.0-incubating-beta1/m2-repo/

 - Reporting bugs -

 In case you do encounter a bug, we would appreciate a report in our JIRA:

 http://issues.apache.org/jira/browse/WICKET

 - Fixing bugs -

 If you want to generate a patch against this release, you can do so
 based on the tag:

 
 http://svn.apache.org/repos/asf/incubator/wicket/tags/wicket-1.3.0-incubating-beta-1/


 -= Incubating Apache Wicket =-

 Apache Wicket is an effort undergoing incubation at the Apache
 Software Foundation (ASF). Incubation is required of all newly
 accepted projects until a further review indicates that the
 infrastructure, communications, and decision making process have
 stabilized in a manner consistent with other successful ASF projects.
 While incubation status is not necessarily a reflection of the
 completeness or stability of the code, it does indicate that the
 project has yet to be fully endorsed by the ASF.

 You can find more information on the status of Apache Wicket's incubation 
 here:

 http://incubator.apache.org/projects/wicket

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Beg£º example about tree as navi gation

2007-04-27 Thread Scott Swank
You can download the wicket examples

http://wicket.sourceforge.net/Download.html

Or you can click on source code in the top left corner of the online example.

http://wicketstuff.org/wicket13/nested/

On 4/26/07, Crag [EMAIL PROTECTED] wrote:
 Can someone share the code for me? I couldn't get the example from internet.

 thanks~





 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries wicket

2007-04-23 Thread Scott Swank
Yes, it just checked that the 1st date (check-in) was in the future
and prior to the 2nd date (check-out).

Scott

On 4/22/07, Flavius [EMAIL PROTECTED] wrote:

 Is the DatesComparatorValidator object something you wrote or is that
 something coming
 in wicket 1.3?


 --
 View this message in context: 
 http://www.nabble.com/-Wicket-user--ajax-libraries---wicket-tf3191437.html#a10129826
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] coordinating the html tabindex attribute

2007-04-12 Thread Scott Swank
We construct forms from panels and each panel has a set tabindex.  To
keep this functionality consistent through the form we have
implemented the following (credit where credit is due: not my work,
one of my compatriots).


*** Abstract class AthenaPage implements TabIndex
(getTabIndex(),hasTabIndex(),resetTabIndex(),setHasTabIndex() )

*** The AthenaPage implements TabIndex with the help of a
DefaultTabIndexImpl (strategy)

*** When a page has tab indexing, a call to setHasTabIndex(true) will
ensure tab indexing is implemented on the page (as well
resetTabIndex() will be called in onAfterRender() ).


*** All components in com.vegas.ui.wicket.form have tabindex
capabilities.  Basically all comonents override onComonentTag() and
set the tabindex via an AttributeModifier if a call to the components
setEnabledTabIndex(true) was called.  By default the page the
component lives on will used as as PropertyModel.  The
getTabIndex(tabindex) will be called and the tabindex attribute will
be modified upon render.

*** The nice trick is that each panel can define what order the
components are in by simply setting tabindex=1, tabindex=3 as normal.
The TabIndex stragey takes into account the templates tabindex
attribute and knows the over all tabindex for the entire page so the
new tabindex value for the component is in sync.


Does anyone see any potential issues with the above, or are we
re-inventing the wheel in any portion of the above?  In case anyone is
interested, the canonical use case for us consists of an order for
multiple items, each of which requires differing user data:

hotel room: guest names  ages
tickets to a show: name of person picking up the tickets, whether to
print or hold at will-call
another hotel room
etc.

Thank you,
Scott

-- 
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] General Java/OO/Pattern Question

2007-03-26 Thread Scott Swank
The idea is that the grouper and the leaf implement the same
interface and perhaps share an abstract parent -- this is named
component in the GoF Pattern.  This is to avoid the following sort
of code when you are processing the tree:

if (x.isLeaf())
{
  // process leaf
}
else
{
  // process branch
}

You simple implement the appropriate behavior on the leaf/branch
appropriately.  Often the branch simply summarizes the branches/leaves
below it.


On 3/26/07, Matt Welch [EMAIL PROTECTED] wrote:
 On 3/23/07, Scott Swank [EMAIL PROTECTED] wrote:
  In short, the Gang of Four's Composite pattern.
 
  http://en.wikipedia.org/wiki/Composite_pattern
 
 

 Really? I briefly took a look at that pattern specifically and I didn't see
 the fit, but I'll take a closer look. Thanks for the advice.

 James, I currently have all of the objects that might be parents of children
 of each other implement an abstract class that provides the the two
 attributes that are the same between them all. I'll take a look at the
 TreeNodes that you suggested.




 -
 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


[Wicket-user] wicket sessions

2007-03-26 Thread Scott Swank
We are integrating our new Wicket app with our legacy applications as follows:

1. legacy app makes an http post to wicket app
2. the bridge page catches this post, extracts the http parameters
and redirects to the relevant wicket page -- crucial point: we now
have a cart object in our wicket session that contains the item that
the user was browsing in the legacy app
3. the user goes back out to the legacy app
4. the user comes back into the wicket app

Question: is there any way to get the wicket session from step #2
again in step #4?  We want to add this 2nd item from one of the legacy
apps to our existing wicket session's cart.

Thanks you.

-- 
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


[Wicket-user] wicket-dev topics

2007-03-26 Thread Scott Swank
Would it be appropriate to post position(s) for Wicket developers on the list?

-- 
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] wicket-dev topics

2007-03-26 Thread Scott Swank
Vegas.com is looking for Java developers with Wicket experience.  The
listed position does not mention Wicket, but all of our on-going web
development is in Wicket.

http://www.vegas.com/about/jobs/jobdescription_softwaredev.html.html

Our stack looks like:

wicket
service layer
domain model
hibernate
db

Kindly mention me if you apply -- there may or may not still be some
sort of bonus in it for me.  :)  And of course ask me if you have any
questions.

Cheers,
Scott

-- 
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


[Wicket-user] On-site training

2007-03-21 Thread Scott Swank
We are looking for someone to come out to Las Vegas for 3-5 days for
an overview of best practices.  Any takers?

Cheers,
Scott

-- 
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] Reverting the constructor change of 2.0

2007-03-11 Thread Scott Swank
I favor (c) as well.  A release always takes substantial time so the
fewer the better.  In fact, if backporting anything else into 1.3 ends
up being more trouble than anticipated then I vote for rolling it into
1.4 (along with Java5).

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


Re: [Wicket-user] Frustracted with JDBC...

2007-03-09 Thread Scott Swank
If you have lazy-loaded objects in your graph then they are initially
populated with Hibernate proxies and only resolved from the database
when you access them in your application code.  I imagine that in one
case the Hibernate transaction is being closed before you have walked
the object graph far enough to retrieve all of the relevant objects,
while in the other case the transaction is still open and so Hibernate
can resolve the proxies.

Try looking at any relevant settings on the jdbc drivers.  We're using
jtds successfully (to the degree that anyone uses sql server
successfully).

Scott

On 3/9/07, ChuckDeal [EMAIL PROTECTED] wrote:

 I was able to narrow the problem scope a little.

 The difference is between getting a result from a Criteria object vs
 Session.load().

 With both drivers, using the criteria object gets a fully populated object
 (with children)
 With the JTurbo (JDBC 2.1) driver, Session.load returns the fully populated
 object while jTDS (JDBC 3.0) returns only the parent!

 The problem with the model is that the DataBinder HibernateObjectModel uses
 session.load()!  So now my problem lies with Hibernate(?) and the difference
 between those methods.  I'm still interested in ideas if anyone has had
 similar experiences with this.

 Chuck



 ChuckDeal wrote:
 
  I really don't know where to ask this, so I am trying here because someone
  may have encountered a similar problem...
 
  I use MSSQLServer 2000 and JTurbo (JDBC 2.1) driver.
  Wicket 1.3, Databinder 1.1
 
  I ran into a case where my tables had triggers on them.  Hibernate
  wouldn't let the update occur because it looked like I was updating too
  many rows.  So, I modified the triggers to SET NOCOUNT ON at the beginning
  and SET NOCOUNT OFF at the end.  Query Analyzer reports only one row
  updated, but now Hibernate gets ZERO rows.  I assume that it is not
  Hibernate's fault, but the JDBC driver reporting the rowcount wrong.
 
  So, I had been planning on switching to the jTDS driver anyway (for when
  we switch to SQLServer 2005) so I try to hook that it.  Not a big deal,
  fix the hibernate.cfg.xml and a simple JUNIT that uses a Session and
  Criteria returns the parent object and children collections just fine.
  Enter my code, Pages, Panels, HibernateObjectModels, etc.  Now, I can't
  get ALL of the data to display only the parent object, the child
  collections appear as empty.  Arghh!
 
  I know, I know... That's ridiculous, nothing changed but the driver!  So,
  I added some code to the page constructor that did very much what the Unit
  test did and voila, it worked.  I get a parent object with initialized
  collections.  Yet, still when it comes time for the model to pull the
  collections off the parent, nothing!  So, I simply switch back to the old
  driver and it starts working again.
 
  What could possibly be happening?  The only real difference (besides the
  obvious fact that I am using two different drivers) is that one driver
  (the original is a JDBC 2.1) and the new driver (jTDS) is a JDBC 3.0.
  But, since I can pull data with the driver, that doesn't seem like it
  could be the problem.  Have you ever encountered something so ridiculous
  as this?  Why aren't the Models returning data for the children
  collections?  Even when I get a handle to the parent object from the main
  model and call the collection directly it doesn't work!  I set fetch=EAGER
  on the collection, no luck.  I turned off second level cache, no luck.
  I'm very frustrated and am hoping you have some insight.
 
  n summary,
  using old JDBC 2.1 driver (JTurbo) Hibernate retrieves all data and models
  can display all data.
  Using new JDBC 3.0 (jTDS), Hibernate retrieves all data, but models only
  retrieve the parent data, not children!
 
  Thoughts?
 
  Chuck
 
 

 --
 View this message in context: 
 http://www.nabble.com/Frustracted-with-JDBC...-tf3375802.html#a9395214
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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

Re: [Wicket-user] Frustracted with JDBC...

2007-03-09 Thread Scott Swank
I'd look for something like auto-commit inserting itself between these
two lines.

result = (SpecChangeModelObject) criteria.uniqueResult();
assertNotNull(SpecChangeModelObject should not be null, result);

but that's just my best guess.

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


Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in 2.0

2007-03-08 Thread Scott Swank
All things equal I prefer the 1.x add() syntax, however I don't have a
good feel for the advantages/disadvantages that add() vs. new provide.
 What I really want is generics/models.

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


Re: [Wicket-user] repeaters and inheritance

2007-03-01 Thread Scott Swank
Thank you Eelco  Iman.

I was hoping to have a custom component that played the role of the
ListItem but which had methods such as

abstract Panel getPricingPanle()

which were variously implemented in subclasses as

return new ShowPricingPanel() or
return new HotelPricingPanel()

instead of pushing that determination off to a factory.  Oh, and the
issue isn't just one of handling pricing, but rather of markup 
display as well.

Cheers,
Scott



On 2/28/07, Iman Rahmatizadeh [EMAIL PROTECTED] wrote:
 Another solution would be to put all the complexity of managing items into a
 general CartPanel class, but that wont get much cleaner I guess. One thing
 that comes to mind is, If you have a Pricing domain object to handle pricing
 issues, and a Summary object to handle the items summary , you can somehow
 get rid of the inheritance hierarchy and manage them with a single Item
 class at the top, and two dependent objects(Pricing and Summary). The actual
 smell I sniff in your code is the parallel inheritance hierarchies in the
 domain objects and UI. Thats what forces you to use a factory.


 On 3/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  On 2/28/07, Scott Swank [EMAIL PROTECTED] wrote:
   In our application we have several places where we are construction an
   html table but the content of the rows varies by ProductType.  For
   example:
  
   column 1. always an image
   column 2. the pricing: for hotels by room, for shows by ticket, for
   limo by hours
   column 3. item summary: for hotels the rooms/nights, for shows the
   seats and show time, etc
   column 4. the total
  
   There is a natural class hierarchy here where we have
  
   AbstractItem
 HotelItem
 ShowItem
 LimoItem
  
   I'd like to have a comparable hierarchy of perhaps RepeaterRow
   objects that could have methods such as:
  
   AbstractItemRow
 protected abstract Panel getPricingPanel();
 protected abstract Panel getSummaryPanel();
  
   I've gotten this working with a ListView, but I'm doing things like:
  
 populateItem(ListItem listItem) {
   final AbstractItem cartItem =
 (AbstractItem)listItem.getModelObject();
   add(CartPanelFactory.getPricingPanel(cartItem));
   add(CartPanelFactory.getSummaryPanel(cartItem));
 }
  
   Is there a cleaner way than delegating this decision about which Panel
   I need to a factory?
 
  That looks like a fine pattern to me tbh. What don't you like about it?
 
  Eelco
 
 
 -
  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


[Wicket-user] repeaters and inheritance

2007-02-28 Thread Scott Swank
In our application we have several places where we are construction an
html table but the content of the rows varies by ProductType.  For
example:

column 1. always an image
column 2. the pricing: for hotels by room, for shows by ticket, for
limo by hours
column 3. item summary: for hotels the rooms/nights, for shows the
seats and show time, etc
column 4. the total

There is a natural class hierarchy here where we have

AbstractItem
  HotelItem
  ShowItem
  LimoItem

I'd like to have a comparable hierarchy of perhaps RepeaterRow
objects that could have methods such as:

AbstractItemRow
  protected abstract Panel getPricingPanel();
  protected abstract Panel getSummaryPanel();

I've gotten this working with a ListView, but I'm doing things like:

  populateItem(ListItem listItem) {
final AbstractItem cartItem = (AbstractItem)listItem.getModelObject();
add(CartPanelFactory.getPricingPanel(cartItem));
add(CartPanelFactory.getSummaryPanel(cartItem));
  }

Is there a cleaner way than delegating this decision about which Panel
I need to a factory?

Thank you,
Scott

-- 
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] wicket:component, container, pseudo, et al

2007-02-22 Thread Scott Swank
Nice.  So use wicket:container where you'd like to use div or
span but the result is invalid html.  Then does the list of
standard wicket tags looks like the following?

   wicket:border
   wicket:child
   wicket:container
   wicket:extend
   wicket:link
   wicket:message
   wicket:panel

On 2/22/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Ah, pretty sweet actually. Good one for the WIKI and Wicket In Action as well.

 Eelco

 On 2/22/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
  wicket:container is in trunk only
 
  it is just a pseudo tag - a container that has setrenderbodyonly(true)
  called on it.
 
  imagine you have a listview that builds tds like this
 
  trspan
  wicket:id=listviewtd.../tdtd.../td/span/tr
 
  validating editors in an ide will complain because span is not allowed
  inside tr, so instead you do
 
  trwicket:container
  wicket:id=listviewtd.../tdtd.../td/wicket:container/tr
 
  now they should not complain cause the namespace is different
 
  -igor
 
 
 
  On 2/22/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:
  
   On 2/21/07, Scott Swank  [EMAIL PROTECTED] wrote:
All of the above tags were disparaged in the wicket:component vote.
Are any other tags all but deprecated?  The following are all clearly
standard tags.
   
   wicket:border
   wicket:child
   wicket:extend
   wicket:message
   wicket:panel
   
What about
   
   wicket:link
  
   That one is fine. I used to be against adopting it, but lost the vote,
   and now that it is in I'm not voting it out again :)
  
   For simple situations or situations where you use a lot of
   bookmarkable pages, wicket:link can be quite convenient.
  
In particular, which tags (apart from component, container  pseudo)
would I be best off avoiding?
  
   None that I know off. In fact, I lost track and hardly have an idea
   what container and pseudo really do and whether they are officially in
   the code base now. Maybe the committers who are responsible here could
   clarify this?
  
   Eelco
  
  
  -
   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
 
 

 -
 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] wicket:component, container, pseudo, et al

2007-02-22 Thread Scott Swank
There is.  Thank you.

http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html


On 2/22/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 there is a wiki page that lists all these with the exception of :container

 -igor



 On 2/22/07, Scott Swank  [EMAIL PROTECTED] wrote:
  Nice.  So use wicket:container where you'd like to use div or
  span but the result is invalid html.  Then does the list of
  standard wicket tags looks like the following?
 
 wicket:border
 wicket:child
 wicket:container
 wicket:extend
 wicket:link
 wicket:message
 wicket:panel
 
  On 2/22/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
   Ah, pretty sweet actually. Good one for the WIKI and Wicket In Action as
 well.
  
   Eelco
  
   On 2/22/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
wicket:container is in trunk only
   
it is just a pseudo tag - a container that has setrenderbodyonly(true)
called on it.
   
imagine you have a listview that builds tds like this
   
trspan
   
 wicket:id=listviewtd.../tdtd.../td/span/tr
   
validating editors in an ide will complain because span is not allowed
inside tr, so instead you do
   
trwicket:container
   
 wicket:id=listviewtd.../tdtd.../td/wicket:container/tr
   
now they should not complain cause the namespace is different
   
-igor
   
   
   
On 2/22/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:

 On 2/21/07, Scott Swank  [EMAIL PROTECTED] wrote:
  All of the above tags were disparaged in the wicket:component
 vote.
  Are any other tags all but deprecated?  The following are all
 clearly
  standard tags.
 
 wicket:border
 wicket:child
 wicket:extend
 wicket:message
 wicket:panel
 
  What about
 
 wicket:link

 That one is fine. I used to be against adopting it, but lost the
 vote,
 and now that it is in I'm not voting it out again :)

 For simple situations or situations where you use a lot of
 bookmarkable pages, wicket:link can be quite convenient.

  In particular, which tags (apart from component, container 
 pseudo)
  would I be best off avoiding?

 None that I know off. In fact, I lost track and hardly have an idea
 what container and pseudo really do and whether they are officially
 in
 the code base now. Maybe the committers who are responsible here
 could
 clarify this?

 Eelco


   
 -
 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
   
   
  
  
 -
   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

Re: [Wicket-user] Navigation between pages

2007-02-21 Thread Scott Swank
Nino,

Wouldn't that leave all of the pages in session?  I.e. you expect to
have 7 pages in history, but 7 points to 8, which points to 9, etc.

Scott


On 2/21/07, Nino Wael [EMAIL PROTECTED] wrote:
 You can also employ an easy way to go back to the previous page by passing 
 the current page to the next page. It's been pretty useful for us. Or even 
 telling the page which page to goto next.

 Small pseudo snipplet:


 public class mypage extends WebPage {

 public mypage(final Page Previous, final Page next, Model model) {

 on next button: setresponse(next);

 on previous: setresponse(previous);

 }

 Regards Nino



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gohan
 Sent: 21. februar 2007 09:36
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Navigation between pages


 Well you could just use setResponsePage(new YourWebPage(..));


 Peter Klassen wrote:
 
  Hi all,
 
  just one more trivial question; ;-)
 
  which possibilities do i got to navigate from one Webpage to another after
  an event is triggered?
 
  Thx in advance! Peter
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/Navigation-between-pages-tf3265417.html#a9077111
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 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


[Wicket-user] wicket:component, container, pseudo, et al

2007-02-21 Thread Scott Swank
All of the above tags were disparaged in the wicket:component vote.
Are any other tags all but deprecated?  The following are all clearly
standard tags.

   wicket:border
   wicket:child
   wicket:extend
   wicket:message
   wicket:panel

What about

   wicket:link

In particular, which tags (apart from component, container  pseudo)
would I be best off avoiding?

Thank you,
Scott

-- 
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


[Wicket-user] like i18n only different

2007-02-13 Thread Scott Swank

There are many 3rd parties who use our web application to sell our product.
This entails having completely different html for given pages or components
-- but still retaining a default version of each page/component.  So in
short we want Wicket's i18n functionality, but we want to base it on the
organization or label (business concepts) with which the user is logged in.
So we have our own component:

foo.java
foo.html

And then we need 3rd parties A, B, C, etc. to (potentially) have their own
version of the above html files.  Here are the options we're considering:

1. Re-implement i18n-style functionality so that we have foo-A.html,
foo-B.html, etc.

2. Implement this via entirely separate directory structures with the
CompoundResourceStreamLocator

/base/this/that/foo.html
/A/this/that/foo.html
/b/this/that/foo.html
etc

3. A distant 3rd option: implement this via authorization strategies

Which of the above sounds the most sensible?

Thank you again,
Scott

--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] like i18n only different

2007-02-13 Thread Scott Swank

Oh.  So what should I be reading to avoid asking questions that make me feel
this daft?  :)

Thank you.

On 2/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


have you see session.setstyle() or component.getvariation() they allow you
to use alternative markup

so for example if you call session.setstyle(bar);

when foo.java renders first foo_bar.html si tried and then foo.html

variation is much the same but scoped to instances instead of session

-igor


On 2/13/07, Scott Swank  [EMAIL PROTECTED] wrote:

 There are many 3rd parties who use our web application to sell our
 product.  This entails having completely different html for given pages or
 components -- but still retaining a default version of each page/component.
 So in short we want Wicket's i18n functionality, but we want to base it on
 the organization or label (business concepts) with which the user is logged
 in.  So we have our own component:

 foo.java
 foo.html

 And then we need 3rd parties A, B, C, etc. to (potentially) have their
 own version of the above html files.  Here are the options we're
 considering:

 1. Re-implement i18n-style functionality so that we have foo-A.html,
 foo-B.html, etc.

 2. Implement this via entirely separate directory structures with the
 CompoundResourceStreamLocator

 /base/this/that/foo.html
 /A/this/that/foo.html
 /b/this/that/foo.html
 etc

 3. A distant 3rd option: implement this via authorization strategies

 Which of the above sounds the most sensible?

 Thank you again,
 Scott

 --
 Scott Swank
 reformed mathematician

 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] like i18n only different

2007-02-13 Thread Scott Swank

Right you are, it's a matter of overriding getVariation() on the component.
The wiki, however, indicates that it's component_variation_style.html

If style is set, variation + _ is prepended to the style name, which is
then returned by getStyle().

If you have a panel inside Home called kitchen, you can override
getVariation in the kitchen panel to return granite or corriander. For a
German locale, you could provide the following markups for the granite
variation: Kitchen_granite_de_DE.html, Kitchen_granite_stone_de_DE.html,
Kitchen_granite_wood_de_DE.html, Kitchen_granite_brick_de_DE.html. The
possibilities are exponential.
In either case, however, if the style  variation are specified will Wicket
then check the component_style and/or the component_variation if it does not
find component_variation_style?

Thank you,
Scott

On 2/13/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


On 2/13/07, Scott Swank [EMAIL PROTECTED] wrote:

 One point of confirmation, please.  If I setStyle(A) and then
 setVariation(123) which of the following would be checked, and in what
 order:


there is no setvariation, only getvariation

afik it is component_style_variation.html

-igor


foo_123_A.html
 foo_A.html
 foo_123.html
 foo.html

 Thank you,
 Scott

 On 2/13/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 
  dont know how up to date it is...
 
  
http://cwiki.apache.org/WICKET/newuserguide.html#Newuserguide-LocalizationandSkinningofApplications
 
 
  -igor
 
 
  On 2/13/07, Scott Swank  [EMAIL PROTECTED] wrote:
  
   Oh.  So what should I be reading to avoid asking questions that make
   me feel this daft?  :)
  
   Thank you.
  
   On 2/13/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
   
have you see session.setstyle() or component.getvariation () they
allow you to use alternative markup
   
so for example if you call session.setstyle(bar);
   
when foo.java renders first foo_bar.html si tried and then
foo.html
   
variation is much the same but scoped to instances instead of
session
   
-igor
   
   
On 2/13/07, Scott Swank  [EMAIL PROTECTED] wrote:
   
 There are many 3rd parties who use our web application to sell
 our product.  This entails having completely different html for given 
pages
 or components -- but still retaining a default version of each
 page/component.  So in short we want Wicket's i18n functionality, but 
we
 want to base it on the organization or label (business concepts) with 
which
 the user is logged in.  So we have our own component:

 foo.java
 foo.html

 And then we need 3rd parties A, B, C, etc. to (potentially) have
 their own version of the above html files.  Here are the options we're
 considering:

 1. Re-implement i18n-style functionality so that we have
 foo-A.html, foo-B.html, etc.

 2. Implement this via entirely separate directory structures
 with the CompoundResourceStreamLocator

 /base/this/that/foo.html
 /A/this/that/foo.html
 /b/this/that/foo.html
 etc

 3. A distant 3rd option: implement this via authorization
 strategies

 Which of the above sounds the most sensible?

 Thank you again,
 Scott

 --
 Scott Swank
 reformed mathematician

 
-
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make
 your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on
 Apache Geronimo

 
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


   
   

-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your
job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
   
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
  
  
   --
   Scott Swank
   reformed mathematician
  
   -
   Using Tomcat but need to do more? Need to support web services,
   security?
   Get stuff done quickly with pre-integrated technology to make your
   job easier.
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
  
   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

Re: [Wicket-user] Who is using Wicket under production environment?

2007-02-12 Thread Scott Swank

I'll need a couple of months.

On 2/12/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


Cool. Any mention of any projects you know on the WIKI would be welcome.

Eelco


On 2/12/07, Aaron Hiniker [EMAIL PROTECTED] wrote:

  I wrote mystreet.com in wicket last summer.  It uses EJB3 for
persistence.

  The site is still pending an official launch.  There may still be a
few
 bugs here and there but I moved on to a new job, so..  :)

  To view a demo neighborhood you can use:

  http://mystreet.com/

  Username: markg
  Password: mg123

  I am currently working on an IT Procurement / Internal ERP system on
top of
 Compiere in Wicket.  Should go into production in the next two months.

  Aaron



  Matthes R. wrote:
  Michel Wichers schrieb:


  Hi all,

 is there anywhere a reference list with products/projects using the
 wicket framework? Or do you know any companies who are using the wicket
 framework productive?

 Regards,

 Michel



-
 Using Tomcat but need to do more? Need to support web services,
security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



  check this out:
 http://cwiki.apache.org/WICKET/#Index-SitesusingWicket

 greets,
 Matthes


-
 Using Tomcat but need to do more? Need to support web services,
security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
 Using Tomcat but need to do more? Need to support web services,
security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] 1.3 and 2.0 schedules

2007-02-09 Thread Scott Swank

Good morning all.

We are just gearing up for our development effort with Wicket.  We are
looking at completing development mid-to-late March.  Should we target
Wicket 1.3 for the effort?  Is 1.3 stable enough for us to work against it,
or should we just stay with 1.2.x for now?

Thank you,
Scott

--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries wicket

2007-02-08 Thread Scott Swank

Igor,

The most verbose code is the following.  It creates the FeedbackPanel and
two fields: a check-in date and a check-out date.  The comments are a bit
heavy because this is a proof-of-concept app.  At this point, and such best
practices pointers are more than welcome.  Thank you.

...Oh, and the CylleniusCalendar (our underlying app is named Cyllenius) is
simply a sub-class of DatePicker with a HeaderContributor.forCss() to
increase its z-index a a value greater than that of the ModalWindow from
which it is opened.

   private void addReservationDates()
   {
   // create the feedback panel
   FeedbackPanel feedback = new FeedbackPanel(feedback);
   feedback.setOutputMarkupId(true);
   add(feedback);

   // create the check-in field
   DateTextField checkIn = new DateTextField(checkIn, new
PropertyModel(roomRequest, checkIn),
   MM/dd/);
   checkIn.setOutputMarkupId(true);
   checkIn.setRequired(true);
   checkIn.add(DateValidator.minimum(getToday()));
   add(buildAjaxFeedbackBorder(checkInBorder, checkIn, feedback));

   // create a date picker for the check-in field
   add(new CylleniusCalendar(checkInPicker, checkIn));

   // create the check-out field
   DateTextField checkOut = new DateTextField(checkOut, new
PropertyModel(roomRequest,
   checkOut), MM/dd/);
   checkOut.setOutputMarkupId(true);
   checkOut.setRequired(true);
   add(buildAjaxFeedbackBorder(checkOutBorder, checkOut, feedback));

   // create a date picker for the check-out field
   add(new CylleniusCalendar(checkOutPicker, checkOut));

   // require checkIn to be before checkOut
   add(new DatesComparatorValidator(checkIn, checkOut));
   }

   private FormComponentFeedbackBorder buildAjaxFeedbackBorder(String
borderId,
   FormComponent component, final FeedbackPanel feedback)
   {
   final FormComponentFeedbackBorder border = new
FormComponentFeedbackBorder(borderId);
   border.add(component);
   border.setOutputMarkupId(true);

   component.add(new AjaxFormComponentUpdatingBehavior(onblur) {
   private static final long serialVersionUID =
-8868206053122717303L;

   protected void onUpdate(AjaxRequestTarget target)
   {
   target.addComponent(feedback);
   target.addComponent(border);
   }
   });

   return border;
   }

On 2/7/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


On 2/7/07, Scott Swank [EMAIL PROTECTED] wrote:

 2. Overall there was a preference for Wicket's Java components over
 JSF's taglibs and backing bean code.  This was not a unanimous preference,
 and taglibs are much more concise than Wicket code.  However, the cleanness
 of the resulting HTML was a factor in Wicket's favor and the rapidity of the
 development effort largely offset the comparative verbosity of the code
 base.  This verbosity was most evident in ajax form feedback: feedback
 panel, text field, ajax feedback border, ajax behavior, etc.


got any examples of this verbouse code? i am doing something similar in a
project i am building with 2.0 and i was able to factor out a lot of this
stuff so its not so bad. maybe we can help you do the same.

-igor



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries wicket

2007-02-08 Thread Scott Swank

Briefly, we wanted a component-centric framework for reuse and more nimble
refactoring -- e.g. should this form be in-line with the rest of the page or
in a popup; should this content be in a sequence of panels or in tabs?  This
left us with:

 Tapestry -- we heard daunting things about the learning curve and veered
away
 Echo2 -- excluded our html/css team and required Java changes for too many
UI changes
 GWT -- is not a good fit for non-Ajax apps and we wanted a single
framework

Cheers,
Scott


On 2/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


  it was our 2nd choice after considering a host of other
 options, including Stripes, Rife, Tapestry, Echo2, GWT, etc.

I'd be interested to learn what you liked and didn't like about those
alternatives (on this list or private).

Eelco



--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries wicket

2007-02-08 Thread Scott Swank

Cyllenius is a name for the Greek god Hermes -- associated with commerce.
Given the importance of a solid date picker, I imagine we'll be following
and perhaps contributing to this effort.

http://en.wikipedia.org/w/index.php?title=Cylleniusredirect=no


On 2/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


 ...Oh, and the CylleniusCalendar (our underlying app is named Cyllenius)
is
 simply a sub-class of DatePicker with a HeaderContributor.forCss() to
 increase its z-index a a value greater than that of the ModalWindow from
 which it is opened.

For anyone using that date picker component, read this:
http://chillenious.wordpress.com/2007/02/06/49/. I hope to see some
more activity/ discussion on that new wicket-datetime project in the
future, and the date picker that ships with that project already is a
lot better than the old one.

Btw, Cyllenius? Where did that come from?

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries wicket

2007-02-08 Thread Scott Swank

You know, JSF is sounding better  better

On 2/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


On 2/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 On 2/8/07, Scott Swank [EMAIL PROTECTED] wrote:
  Cyllenius is a name for the Greek god Hermes -- associated with
commerce.

 That sounds a lot better than Hillenius with Herpes ;)

Though I too have some godly features. But that's OT.

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax libraries wicket

2007-02-08 Thread Scott Swank
(true));

// create the check-in field

DateField checkIn = new DateField(checkIn);
checkIn.add(DateValidator.minimum(getToday()));
add(new MyAjaxErrorBorder(checkInBorder).add(checkIn));


 // create the check-out field
 DateField checkOut = new DateField(checkOut);
 add(new MyAjaxErrorBorder(checkOutBorder).add(checkOut));

 // require checkIn to be before checkOut
 add(new DatesComparatorValidator(checkIn, checkOut));
 }


finally extract a simple daterange panel like jon suggested

and you will be down to:

private void addReservationDates()
{
// create the feedback panel
add(new FeedbackPanel(feedback).setOutputMarkupId(true));

add(new DateRangeSelector(selector, new PropertyModel(this,
checkIn), new PropertyModel(this, checkOut), getToday(), null));
}

and what you end up with are new reusable

datefield
ajax error border
daterange selector

that you can use anywhere in your project

this is where you really win out over jsf/tapestry

if you dont mind this might make a good wiki page, but it needs to be
cleaned up lots :)

-igor


On 2/8/07, Scott Swank [EMAIL PROTECTED] wrote:

 Igor,

 The most verbose code is the following.  It creates the FeedbackPanel
 and two fields: a check-in date and a check-out date.  The comments are a
 bit heavy because this is a proof-of-concept app.  At this point, and such
 best practices pointers are more than welcome.  Thank you.

 ...Oh, and the CylleniusCalendar (our underlying app is named Cyllenius)
 is simply a sub-class of DatePicker with a HeaderContributor.forCss() to
 increase its z-index a a value greater than that of the ModalWindow from
 which it is opened.

 private void addReservationDates()
 {
 // create the feedback panel
 FeedbackPanel feedback = new FeedbackPanel(feedback);
 feedback.setOutputMarkupId(true);
 add(feedback);

 // create the check-in field
 DateTextField checkIn = new DateTextField(checkIn, new
 PropertyModel(roomRequest, checkIn),
 MM/dd/);
 checkIn.setOutputMarkupId(true);
 checkIn.setRequired(true);
 checkIn.add(DateValidator.minimum(getToday()));
 add(buildAjaxFeedbackBorder(checkInBorder, checkIn,
 feedback));

 // create a date picker for the check-in field
 add(new CylleniusCalendar(checkInPicker, checkIn));

 // create the check-out field
 DateTextField checkOut = new DateTextField(checkOut, new
 PropertyModel(roomRequest,
 checkOut), MM/dd/);
 checkOut.setOutputMarkupId(true);
 checkOut.setRequired(true);
 add(buildAjaxFeedbackBorder(checkOutBorder, checkOut,
 feedback));

 // create a date picker for the check-out field
 add(new CylleniusCalendar(checkOutPicker, checkOut));

 // require checkIn to be before checkOut
 add(new DatesComparatorValidator(checkIn, checkOut));
 }

 private FormComponentFeedbackBorder buildAjaxFeedbackBorder(String
 borderId,
 FormComponent component, final FeedbackPanel feedback)
 {
 final FormComponentFeedbackBorder border = new
 FormComponentFeedbackBorder(borderId);
 border.add(component);
 border.setOutputMarkupId(true);

 component.add(new AjaxFormComponentUpdatingBehavior(onblur) {
 private static final long serialVersionUID =
 -8868206053122717303L;

 protected void onUpdate(AjaxRequestTarget target)
 {
 target.addComponent(feedback);
 target.addComponent(border);
 }
 });

 return border;
 }

 On 2/7/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:

  On 2/7/07, Scott Swank [EMAIL PROTECTED] wrote:
  
   2. Overall there was a preference for Wicket's Java components over
   JSF's taglibs and backing bean code.  This was not a unanimous preference,
   and taglibs are much more concise than Wicket code.  However, the 
cleanness
   of the resulting HTML was a factor in Wicket's favor and the rapidity of 
the
   development effort largely offset the comparative verbosity of the code
   base.  This verbosity was most evident in ajax form feedback: feedback
   panel, text field, ajax feedback border, ajax behavior, etc.
 
 
  got any examples of this verbouse code? i am doing something similar
  in a project i am building with 2.0 and i was able to factor out a lot
  of this stuff so its not so bad. maybe we can help you do the same.
 
  -igor
 
 
 
 
  -
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
 
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

[Wicket-user] ajax libraries wicket

2007-02-07 Thread Scott Swank

Hello all,

After closely considering Wicket and JSF my company has decided to go with
Wicket for our web development framework.  This was based on a two week
prototype effort between two teams of four developers each.  The Wicket team
made rapid progress and had extra time to add in unrequested features such
as i18n and JUnit tests, while still producing a clear, readable code base.

This is to the credit of the core Wicket developers, particularly the ones
on this list who were so helpful in answering our questions.  Thank you
all.  Here are some of the issues that in my mind were material factors.

1. The wicket group made very rapid progress because
 * the API is clean and easy to learn
 * the examples are excellent
 * things consistently work more or less as expected

In comparison the JSF group had substantial upfront decisions to make before
progress could begin in earnest:
 * use Sun's reference implementation or Apache MyFaces
 * use Facelets or no
 * which Ajax/DHTML framework integrates best with the above: ajax4jsf,
tomahawk, etc

2. Overall there was a preference for Wicket's Java components over JSF's
taglibs and backing bean code.  This was not a unanimous preference, and
taglibs are much more concise than Wicket code.  However, the cleanness of
the resulting HTML was a factor in Wicket's favor and the rapidity of the
development effort largely offset the comparative verbosity of the code
base.  This verbosity was most evident in ajax form feedback: feedback
panel, text field, ajax feedback border, ajax behavior, etc.

3. The reuse of Wicket components was also in its favor.  It is much easier
to create custom components via composition or inheritance in Wicket, the
palette is a great example of this.

Thank you again for your patience and helpful answers.

--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax feedback onSubmit

2007-02-06 Thread Scott Swank

Thank you both.  Does field-level validation always happen before form-level
validation?  I want to ensure that I have two dates in hand before I apply
my requirement that the check-out date be after the check-in date.

Scott

On 2/5/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


there is also an example that does this in ajax examples, albeit not in
the modal window.

-igor


On 2/5/07, Matej Knopp  [EMAIL PROTECTED] wrote:

 Try to add the feedback panel to AjaxRequestTarget in the onError method

 of AjaxSubmitLink.

 -Matej

 Scott Swank wrote:
  I have a form in a ModalWindow.  I can add
  AjaxFormComponentUpdatingBehavior to relevant fields to get immediate
  feedback about the fields, but I would like to have feedback
 (including
  form-level feedback) posted onSubmit if validation fails.  What do I
  need to add to my AjaxSubmitButton#onSubmit to accomplish this?  I've
  attached a simple quickstart demo without the relevant 1.2.4 jars.
 
  Thank you.
 
  --
  Scott Swank
  reformed mathematician
 
 
 
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services,
 security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 
 
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user


 -

 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax feedback onSubmit

2007-02-06 Thread Scott Swank

I should have tracked that down myself.  Thank you.

On 2/6/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


yes, see form.process()

field required check
field type conversion check
field validators
form validators

-igor


On 2/6/07, Scott Swank [EMAIL PROTECTED] wrote:

 Thank you both.  Does field-level validation always happen before
 form-level validation?  I want to ensure that I have two dates in hand
 before I apply my requirement that the check-out date be after the check-in
 date.

 Scott

 On 2/5/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:

  there is also an example that does this in ajax examples, albeit not
  in the modal window.
 
  -igor
 
 
  On 2/5/07, Matej Knopp  [EMAIL PROTECTED] wrote:
  
   Try to add the feedback panel to AjaxRequestTarget in the onError
   method
   of AjaxSubmitLink.
  
   -Matej
  
   Scott Swank wrote:
I have a form in a ModalWindow.  I can add
AjaxFormComponentUpdatingBehavior to relevant fields to get
   immediate
feedback about the fields, but I would like to have feedback
   (including
form-level feedback) posted onSubmit if validation fails.  What do
   I
need to add to my AjaxSubmitButton#onSubmit to accomplish
   this?  I've
attached a simple quickstart demo without the relevant 1.2.4 jars.
   
Thank you.
   
--
Scott Swank
reformed mathematician
   
   
   
   
   
   
   -
Using Tomcat but need to do more? Need to support web services,
   security?
Get stuff done quickly with pre-integrated technology to make your
   job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
   
   
   
   
   
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
   -
  
   Using Tomcat but need to do more? Need to support web services,
   security?
   Get stuff done quickly with pre-integrated technology to make your
   job easier.
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 
  -
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
 
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 --
 Scott Swank
 reformed mathematician

 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] property expression language

2007-02-04 Thread Scott Swank

A quick point of curiosity, does the property expression language support
expressions beyond foo.bar?  I searched the wiki and couldn't find any
more information that that in the models page under PropertyModel and
CompoundPropertyModel.

Thank you.

--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] property expression language

2007-02-04 Thread Scott Swank

Thank you both.  That seems like a reasonable compromise between
functionality and the desire to keep the code in Java instead of EL.

Scott

On 2/4/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


Not much. See
http://wicket.sourceforge.net/apidocs/wicket/util/lang/PropertyResolver.html

We started out with OGNL in the past but:
1) OGNL at one point took about 30% processor time of the whole
request. We simplified and optimized and wrote OGNL out.
2) We feel it's not the recommended way of programming to rely on
property expressions beyond simple navigations
3) By overriding
wicket.model.AbstractPropertyModel#onGetObject(wicket.Component) and
AbstractPropertyModel#onSetObject(Component, Object) users can provide
their own resolving if

Eelco


On 2/4/07, Scott Swank [EMAIL PROTECTED] wrote:
 A quick point of curiosity, does the property expression language
support
 expressions beyond foo.bar?  I searched the wiki and couldn't find any
 more information that that in the models page under PropertyModel and
 CompoundPropertyModel.

 Thank you.

 --
 Scott Swank
 reformed mathematician

-
 Using Tomcat but need to do more? Need to support web services,
security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Not sure how to use DatePicker component

2007-02-02 Thread Scott Swank

The text field has yy, while the date picker puts  into the date --
whether it's MM/dd/ or dd/MM/ (due to i18n).  Then we get an
annoying npe rendering the feedback panel -- which I still haven't tracked
down.

popup contains panel
panel contains form
form contains fields with validation
form contains date pickers that are tied to two of the fields
form also has form-level validation
form also contains feedback panel with form component feedback borders
around date fields
form applies AjaxFormValidatingBehavior.addToAllFormComponents(onblur)

When the date picker pushes an invalid date (check-in date before today or
check-out date on/before check-in date) null pointers just roll in rendering
the feedback panel.  I'm working to isolate this to a simpler case...

Scott


On 2/2/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


The date picker component already tries to sync with the text field
you provide as the target. Did you try this?

Eelco


On 2/1/07, Scott Swank [EMAIL PROTECTED] wrote:
 I just (a bit too optimistically) tried to get the converter from my
 TextField and use it to set the DateConverter for the corresponding
 DatePicker.  I definitely want to retain the i18n (mm/dd/ for
ENGLISH
 and dd/mm/ for FRENCH).  Is there a straightforward way to synch up
the
 DateConverters for a TextField and DatePicker while retaining
 internationalization?

 RequiredTextField checkIn = new RequiredTextField(checkIn, new
 PropertyModel(roomRequest,
 checkIn), Date.class);
 checkIn.setOutputMarkupId(true);
 checkIn.add(DateValidator.minimum(getToday()));
 add(checkIn);

 DatePicker dp = new
 CylleniusCalendar(checkInPicker, checkIn);
 dp.setOutputMarkupId(true);
 dp.setDateConverter ((DateConverter) checkIn.getConverter());
 add(dp);

  java.lang.ClassCastException: wicket.util.convert.Converter
 at
 com.vegas.cart.wicket.components.RoomRequestForm.init(
RoomRequestForm.java
 :69)

 Thank you,
 Scott

-
 Using Tomcat but need to do more? Need to support web services,
security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Not sure how to use DatePicker component

2007-02-02 Thread Scott Swank
:
[MarkupContainer [Component id = feedbackul, page =
com.vegas.cart.wicket.pages.Index, path =
0:scrollPopup:content:productReservation:roomRequestPopup:content:roomRequestForm:feedback:
feedbackul.FeedbackPanel$2, isVisible = true, isVersioned = false]]
   at wicket.Component.renderComponent(Component.java:1746)
   at wicket.MarkupContainer.onRender(MarkupContainer.java:927)
   at wicket.Component.render(Component.java:1533)
   at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)
   at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java
:982)
   at wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java
:571)
   at wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:108)
   at wicket.Component.renderComponent(Component.java:1719)
   at wicket.MarkupContainer.onRender(MarkupContainer.java:927)
   at wicket.Component.render(Component.java:1533)
   at wicket.Component.renderComponent(Component.java:1657)
   at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java
:474)
   at wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:361)
   at wicket.request.compound.DefaultResponseStrategy.respond(
DefaultResponseStrategy.java:49)
   at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond
(AbstractCompoundRequestCycleProcessor.java:66)
   at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:902)
   at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:934)
   at wicket.RequestCycle.step(RequestCycle.java:1010)
   at wicket.RequestCycle.steps(RequestCycle.java:1084)
   at wicket.RequestCycle.request(RequestCycle.java:454)
   at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
   at wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:262)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(
ReplyHeaderFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(
CustomPrincipalValve.java:39)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(
SecurityAssociationValve.java:159)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(
JaccContextValve.java:59)
   at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
   at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
   at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
   at org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:678)
   at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
   at wicket.markup.html.list.ListView.renderItem(ListView.java:680)
   at wicket.markup.html.list.ListView.onRender(ListView.java:641)
   at wicket.Component.render(Component.java:1533)
   at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334)
   at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java
:982)
   at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:917)
   at wicket.Component.renderComponent(Component.java:1719)
   ... 44 more

On 2/2/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


Give us a stacktrace if you have it.

Eelco

On 2/2/07, Scott Swank [EMAIL PROTECTED] wrote:
 The text field has yy, while the date picker puts  into the date --
 whether it's MM/dd/ or dd/MM/ (due to i18n).  Then we get an
 annoying npe rendering the feedback panel -- which I still haven't
tracked
 down.

 popup contains panel
 panel contains form
 form contains fields with validation
 form contains date pickers that are tied to two of the fields
 form also has form-level validation
 form also contains feedback panel with form component feedback borders
 around date fields
 form applies
 AjaxFormValidatingBehavior.addToAllFormComponents(onblur)

 When

Re: [Wicket-user] ui framework choice

2007-02-01 Thread Scott Swank

Very interesting to hear.  Thank you.

On 1/31/07, beboris [EMAIL PROTECTED] wrote:



We have done some performance testing between JSF, JSP, Wicket and Stripes
when choosing a framework to develop Ajax-enabled WebUI.

You may find it interesting to know that our results showed JSF is at
least
3-4 times slower than JSP on simple pages (exactly as described at
http://www.mail-archive.com/users@myfaces.apache.org/msg24571.html), while
wicket's performance is on par with JSP for the same pages...

Actually, those performance testing results was the main reason why we
have
chosen Wicket over JSF despite the fact the cumulative team experience
with
JSF in terms of projects made and time spent was significantly greater
than
with Wicket (the latter being around zero...)


Eelco Hillenius wrote:

 That would be interesting yeah. I'm not sure if there would be a clear
 winner.

 Eelco


 On 1/29/07, Christopher Gardner [EMAIL PROTECTED] wrote:
 I apologize if this has been mentioned, but is comparative performance
 and
 load testing planned?  I'd love to see Wicket rule on this.


 On 1/29/07, Scott Swank [EMAIL PROTECTED] wrote:
 
  One week (of two) into the JSF vs. Wicket comparison here at
Vegas.com
 things are going nicely -- team Wicket is finished while team JSF is
 trying
 to get Ajax functionality working.  There were four people working on
 each
 implementation, but JSF is so far behind that an additional person was
 added
 to the JSF team and one of the Wicket folk was moved from Wicket to JSF
 --
 i.e. three folk working on Wicket and 6 on JSF in an effort to catch
up.
 The three of us remaining are working on:
 
  * overriding components' css -- i.e. a custom look/feel for
ModalWindow
  * unit test integration
  * cleaner use of dynamic models
 
  Cheers,
  Scott
 
  --
  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





-
 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



--
View this message in context:
http://www.nabble.com/-Wicket-user--ui-framework-choice-tf3137969.html#a8743585
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ui framework choice

2007-02-01 Thread Scott Swank

If our JSF v. Wicket shakedown continues to clearly favor Wicket then I
imagine you'll see some from our corner of the web.

Scott

On 1/31/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


and what we expect from our users are patches :)

-igor


On 1/31/07, Carfield Yim [EMAIL PROTECTED]  wrote:

 On 2/1/07, Igor Vaynberg [EMAIL PROTECTED]  wrote:
  you are free to write your own if the one we provide doesnt fit your
 needs
  :) we didnt use any api you dont have access to to create this one.
 
 Sure, no offence, in fact I am happy to use ModalWindow. I just say
 what we expect for our software some time is a lot difference from
 what user expected


 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user






--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Right-click context menu

2007-02-01 Thread Scott Swank

I agree with the benefits of a lightweight approach like you're describing,
but would it make custom css tweaks harder?

On 1/31/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


i dont know if it makes sense to back the menu items with a listview,
labels, links, etc. for what purpose?

i would have a single component for the menu that spits out the necessary
html directly into the page rather then backing it via actual wicket
components. this menu component can implement ILinkListener and generate a
url back to itself, prepend the index of the clicked menu item to it and you
are done.

much more light weight. its not like the html you are spitting out is very
comples, just a bunch of lia/a/li

now if you want a menu where items can be panels that can contain other
panels, etc, etc, then it makes sense to use actual wicket components to
back it.

-igor


On 1/31/07, Shams Mahmood [EMAIL PROTECTED] wrote:

 See the following site :

 http://www.dhtmlgoodies.com/index.html?whichScript=context_menu
 demo :
 http://www.dhtmlgoodies.com/scripts/context-menu/context-menu.html

 I think the html can be easily generated by using a ListView and
 Adding Links inisde and handling the onclick of the links.

 Hope u find it useful.


 Shams


 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user






--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Right-click context menu

2007-02-01 Thread Scott Swank

By custom I just meant a color palette that matched the rest of the
application in question.  I think that such a sample css file would be
entirely sufficient.

On 2/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


what is custom css?

you should put in css class names into the necessary elements, and apply
css solely based on that.

if someone picks a javascript impl of the menu and people agree on it
maybe i will write one up as a demo

-igor


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

 I agree with the benefits of a lightweight approach like you're
 describing, but would it make custom css tweaks harder?

 On 1/31/07, Igor Vaynberg  [EMAIL PROTECTED] wrote:
 
  i dont know if it makes sense to back the menu items with a listview,
  labels, links, etc. for what purpose?
 
  i would have a single component for the menu that spits out the
  necessary html directly into the page rather then backing it via actual
  wicket components. this menu component can implement ILinkListener and
  generate a url back to itself, prepend the index of the clicked menu item to
  it and you are done.
 
  much more light weight. its not like the html you are spitting out is
  very comples, just a bunch of lia/a/li
 
  now if you want a menu where items can be panels that can contain
  other panels, etc, etc, then it makes sense to use actual wicket components
  to back it.
 
  -igor
 
 
  On 1/31/07, Shams Mahmood  [EMAIL PROTECTED] wrote:
  
   See the following site :
  
   http://www.dhtmlgoodies.com/index.html?whichScript=context_menu
   demo :
   http://www.dhtmlgoodies.com/scripts/context-menu/context-menu.html
  
   I think the html can be easily generated by using a ListView and
   Adding Links inisde and handling the onclick of the links.
  
   Hope u find it useful.
  
  
   Shams
  
  
   -
   Using Tomcat but need to do more? Need to support web services,
   security?
   Get stuff done quickly with pre-integrated technology to make your
   job easier.
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
   http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 
  -
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
 
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


 --
 Scott Swank
 reformed mathematician

 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user






--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ui framework choice

2007-02-01 Thread Scott Swank

And we just got WicketTester up  running.  Very nice stuff.  Its
capabilities are already impressing folk.  Are there any known things to be
aware of with respect to Ajax-ified apps  WicketTester?

Continually impressed,
Scott

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


If our JSF v. Wicket shakedown continues to clearly favor Wicket then I
imagine you'll see some from our corner of the web.

Scott

On 1/31/07, Igor Vaynberg [EMAIL PROTECTED] wrote:

 and what we expect from our users are patches :)

 -igor


 On 1/31/07, Carfield Yim  [EMAIL PROTECTED]  wrote:
 
  On 2/1/07, Igor Vaynberg  [EMAIL PROTECTED]  wrote:
   you are free to write your own if the one we provide doesnt fit your
  needs
   :) we didnt use any api you dont have access to to create this one.
  
  Sure, no offence, in fact I am happy to use ModalWindow. I just say
  what we expect for our software some time is a lot difference from
  what user expected
 
 
  -
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
 
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your job
 easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ui framework choice

2007-02-01 Thread Scott Swank

Read it?  I have it printed off  sitting on my desk.  The key point I was
missing was that a static model for, lets say, a label holds the value in
question.  For Ajax refreshes a dynamic model, such as a PropertyModel,
knows how to get the value and hence updates the label's contents on
refresh.

For no good reason I just wasn't getting that right out of the gate.

Cheers,
Scott

On 2/1/07, Jonathan Locke [EMAIL PROTECTED] wrote:




Models are actually simpler than they look.  If you haven't already read
it,
this is a good primer:

http://cwiki.apache.org/WICKET/working-with-wicket-models.html


Scott Swank wrote:

 Thank you to both of you.  And for anyone who's been paying any
attention
 to
 my questions it's pretty clear that I don't know Wicket particularly
well
 yet.  I'm still fumbling around a bit with models.  Further, the other
 three
 folk had never set eyes on Wicket before last Monday.

 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



--
View this message in context:
http://www.nabble.com/-Wicket-user--ui-framework-choice-tf3137969.html#a8753476
Sent from the Wicket - User mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ui framework choice

2007-02-01 Thread Scott Swank

The wiki needs more examples that use a particular model in one or two
situations and then explain why that model is a good fit for the situation
at hand.  Once I feel like I have a bit more solid grasp I'll volunteer my
time to such an effort.

Matej -- By nested do you mean what is referred to as chaining models in
the wiki?

Scott

On 2/1/07, Matej Knopp [EMAIL PROTECTED] wrote:


Yeah, well, it took me some time to realize the potential of wicket
models :)

I believe the way wicket models are is both blessing and curse. The
model interface is very simple and flexible, but on the other hand, the
possibilities (like nested and compound models) are not entirely obvious.

-Matej
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Not sure how to use DatePicker component

2007-02-01 Thread Scott Swank

I just (a bit too optimistically) tried to get the converter from my
TextField and use it to set the DateConverter for the corresponding
DatePicker.  I definitely want to retain the i18n (mm/dd/ for ENGLISH
and dd/mm/ for FRENCH).  Is there a straightforward way to synch up the
DateConverters for a TextField and DatePicker while retaining
internationalization?

   RequiredTextField checkIn = new RequiredTextField(checkIn, new
PropertyModel(roomRequest,
   checkIn), Date.class);
   checkIn.setOutputMarkupId(true);
   checkIn.add(DateValidator.minimum(getToday()));
   add(checkIn);

   DatePicker dp = new CylleniusCalendar(checkInPicker, checkIn);
   dp.setOutputMarkupId(true);
   dp.setDateConverter((DateConverter) checkIn.getConverter());
   add(dp);

java.lang.ClassCastException: wicket.util.convert.Converter
   at com.vegas.cart.wicket.components.RoomRequestForm.init(
RoomRequestForm.java:69)

Thank you,
Scott
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ui framework choice

2007-01-31 Thread Scott Swank

Mmm, here's the rather frustrated response from the developer who's been
working on re-skinning DatePicker  ModalWindow to get them to more
seamlessly fit our UI look/feel.  Apart from this hitch the demo
implementation has been proceeded so well that we're trying to figure out
what else to do to take up the rest of the week -- so things really are
coming along rather well.  I'm open to any/all advice on how best to give
our html/css team reasonably straight-forward access to the look/feel of
components that come packages with their own css.

Many thanks again,
Scott

--

Team,
Here is my findings and final thoughts on Wicket and CSS for components.
Please let me know if you really want me to get the CSS changed on a
component.  I can do just that, but the path to get there isn't entirely
easy.  Here are my thoughts:

Firstly, to answer Scotts question How easy would it be to just sub-class
ModalWindow to one that has our css attached?.  The answer is not that
easy.  We can subclass sure, but telling wicket to use our own CSS with a
member function call would require changing the code that implements that
component. The components I have seen have a function called setStyle().
The problem is that style assumes you are setting one of its predefined
styles that exist in the package directory.

By convention components have their CSS at the class level (inside the
package) .  Worse than that, some times the CSS (or in the case of the
DatePicker) reference a handful of other content like images in the same
class package.  In that case you would have to move every referenced piece
of content relative to where you made your changes.

Here are the following ways that make it possible to override Wicket
components CSS:

*1)*  Change the source for the desired component(s) to allow better
flexibility in choosing external CSS.
*2)*  Override the CSS by either of the following 2 ways:
   *a)* Insert a wicket-head tag on the page and override CSS attributes
on the desired component page.  To find out what the CSS looks like, you
still have to unzip the wicket JAR or wicket-extensions JAR to get to the
CSS:
   wicket:head
   style type=text/cssdiv.calendar {position: absolute;z-index:
10;top:150;left:100;}/style
   /wicket:head
   *b)* Do what I did for the DatePicker, and force the component to add a
new Header to the page (overriding its original components CSS).  I was able
to put the CSS in our content directory which in practive gives a designer
the ability to change any CSS properties at will without redeploying our
app:

*add(HeaderContributor.forCss(../../css/cyllenius_cal.css));*
**
Note:  In any case we are going to want designers to be able to access CSS
files without digging into a Java package structure.

*The ModalWindow Problems with styes*
**
I started looking into modifying the ModalWindows CSS just to show we have
control over the component. In order to change its behavior, we would have
to modify Javascript.  In order to change its look we need to modify a
tightly coupled component to its CSS.

What has made this a mess is that the ModalWindow has 2 choices, grey and
blue based CSS.  By default it uses the blue css (blue borders, etc).  In
order for me to override any of the CSS attributes, such as if i want to
have no blue borders and simple black lines, I need to apply choice 1 or 2
above.  If we don't modify the source code, we would have to give the
designer the CSS and they would be required to override CSS classes called 
div.wicket-modal div.w_blue in order to change to new properties.  Just
looks ugly to change a property with the word blue in it, but its not blue
now its black.

Another silly issue that demonstrates the coupling of a component to its CSS
is that the modal window uses CSS's background-image in for its blue/grey
border.  We can only override the image not remove it so that we simply have
a black line.  Bottom line is that the relationship of the CSS and the
component is pure infatuation.  That intense desire needs to be broken up in
order to achieve the true love that is often seen with the concept of
Windows application - its called Skinning.

*Summary*

Wicket's component nature introduces the tight relationship with to CSS and
silly convention of housing the CSS in the packages themselves.  After this
exercise I am convinced component UI frameworks (at least Wicket) fall short
in allow the developer to skin or change the look of a component with
ease.  It is obvious these components are written with the thought that that
their look is your desired look.  Until this problem can be solved, I
believe this is a major weakness of the component framework.


chris
-
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 

Re: [Wicket-user] ui framework choice

2007-01-31 Thread Scott Swank

Ok, I dug into the DatePickerSettings and figured out that we can very
easily:

1. Apply our own css that overrides part of the existing css like so:

  this.add(HeaderContributor.forCss(../../css/cyllenius_cal.css));

2. Apply our own css _instead of_ the existing css like so:

  settings.setStyle(new ResourceReference(DatePickerSettings.class,
css/cyllenius_cal.css));

I'm still researching ModalWindow...

Cheers,
Scott

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


Mmm, here's the rather frustrated response from the developer who's been
working on re-skinning DatePicker  ModalWindow to get them to more
seamlessly fit our UI look/feel.  Apart from this hitch the demo
implementation has been proceeded so well that we're trying to figure out
what else to do to take up the rest of the week -- so things really are
coming along rather well.  I'm open to any/all advice on how best to give
our html/css team reasonably straight-forward access to the look/feel of
components that come packages with their own css.

Many thanks again,
Scott

--

Team,
Here is my findings and final thoughts on Wicket and CSS for components.
Please let me know if you really want me to get the CSS changed on a
component.  I can do just that, but the path to get there isn't entirely
easy.  Here are my thoughts:

Firstly, to answer Scotts question How easy would it be to just sub-class
ModalWindow to one that has our css attached?.  The answer is not that
easy.  We can subclass sure, but telling wicket to use our own CSS with a
member function call would require changing the code that implements that
component. The components I have seen have a function called setStyle().
The problem is that style assumes you are setting one of its predefined
styles that exist in the package directory.

By convention components have their CSS at the class level (inside the
package) .  Worse than that, some times the CSS (or in the case of the
DatePicker) reference a handful of other content like images in the same
class package.  In that case you would have to move every referenced piece
of content relative to where you made your changes.

Here are the following ways that make it possible to override Wicket
components CSS:

*1)*  Change the source for the desired component(s) to allow better
flexibility in choosing external CSS.
*2)*  Override the CSS by either of the following 2 ways:
*a)* Insert a wicket-head tag on the page and override CSS
attributes on the desired component page.  To find out what the CSS looks
like, you still have to unzip the wicket JAR or wicket-extensions JAR to get
to the CSS:
wicket:head
style type=text/cssdiv.calendar {position: absolute;z-index:
10;top:150;left:100;}/style
/wicket:head
*b)* Do what I did for the DatePicker, and force the component to add
a new Header to the page (overriding its original components CSS).  I was
able to put the CSS in our content directory which in practive gives a
designer the ability to change any CSS properties at will without
redeploying our app:

*add(HeaderContributor.forCss(../../css/cyllenius_cal.css));*
**
Note:  In any case we are going to want designers to be able to access CSS
files without digging into a Java package structure.

*The ModalWindow Problems with styes*
**
I started looking into modifying the ModalWindows CSS just to show we have
control over the component. In order to change its behavior, we would have
to modify Javascript.  In order to change its look we need to modify a
tightly coupled component to its CSS.

What has made this a mess is that the ModalWindow has 2 choices, grey and
blue based CSS.  By default it uses the blue css (blue borders, etc).  In
order for me to override any of the CSS attributes, such as if i want to
have no blue borders and simple black lines, I need to apply choice 1 or 2
above.  If we don't modify the source code, we would have to give the
designer the CSS and they would be required to override CSS classes called 
div.wicket-modal div.w_blue in order to change to new properties.  Just
looks ugly to change a property with the word blue in it, but its not blue
now its black.

Another silly issue that demonstrates the coupling of a component to its
CSS is that the modal window uses CSS's background-image in for its
blue/grey border.  We can only override the image not remove it so that we
simply have a black line.  Bottom line is that the relationship of the CSS
and the component is pure infatuation.  That intense desire needs to be
broken up in order to achieve the true love that is often seen with the
concept of Windows application - its called Skinning.

*Summary*

Wicket's component nature introduces the tight relationship with to CSS
and silly convention of housing the CSS in the packages themselves.  After
this exercise I am convinced component UI frameworks (at least Wicket) fall
short in allow the developer to skin or change the look of a component

Re: [Wicket-user] ui framework choice

2007-01-31 Thread Scott Swank

Correction.  Step #1 is on the DatePicker itself, while step #2 is on the
DatePickerSettings.  Dumb cut/paste mistake.

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


Ok, I dug into the DatePickerSettings and figured out that we can very
easily:

1. Apply our own css that overrides part of the existing css like so:

   this.add(HeaderContributor.forCss(../../css/cyllenius_cal.css));

2. Apply our own css _instead of_ the existing css like so:

   settings.setStyle(new ResourceReference(DatePickerSettings.class,
css/cyllenius_cal.css));

I'm still researching ModalWindow...

Cheers,
Scott

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

 Mmm, here's the rather frustrated response from the developer who's been
 working on re-skinning DatePicker  ModalWindow to get them to more
 seamlessly fit our UI look/feel.  Apart from this hitch the demo
 implementation has been proceeded so well that we're trying to figure out
 what else to do to take up the rest of the week -- so things really are
 coming along rather well.  I'm open to any/all advice on how best to give
 our html/css team reasonably straight-forward access to the look/feel of
 components that come packages with their own css.

 Many thanks again,
 Scott

 --

 Team,
 Here is my findings and final thoughts on Wicket and CSS for
 components.  Please let me know if you really want me to get the CSS changed
 on a component.  I can do just that, but the path to get there isn't
 entirely easy.  Here are my thoughts:

 Firstly, to answer Scotts question How easy would it be to just
 sub-class ModalWindow to one that has our css attached?.  The answer is not
 that easy.  We can subclass sure, but telling wicket to use our own CSS
 with a member function call would require changing the code that implements
 that component. The components I have seen have a function called
 setStyle().  The problem is that style assumes you are setting one of its
 predefined styles that exist in the package directory.

 By convention components have their CSS at the class level (inside the
 package) .  Worse than that, some times the CSS (or in the case of the
 DatePicker) reference a handful of other content like images in the same
 class package.  In that case you would have to move every referenced piece
 of content relative to where you made your changes.

 Here are the following ways that make it possible to override Wicket
 components CSS:

 *1)*  Change the source for the desired component(s) to allow better
 flexibility in choosing external CSS.
 *2)*  Override the CSS by either of the following 2 ways:
 *a)* Insert a wicket-head tag on the page and override CSS
 attributes on the desired component page.  To find out what the CSS looks
 like, you still have to unzip the wicket JAR or wicket-extensions JAR to get
 to the CSS:
 wicket:head
 style type=text/cssdiv.calendar {position: absolute;z-index:
 10;top:150;left:100;}/style
 /wicket:head
 *b)* Do what I did for the DatePicker, and force the component to
 add a new Header to the page (overriding its original components CSS).  I
 was able to put the CSS in our content directory which in practive gives a
 designer the ability to change any CSS properties at will without
 redeploying our app:

 *add(HeaderContributor.forCss(../../css/cyllenius_cal.css));*
 **
 Note:  In any case we are going to want designers to be able to access
 CSS files without digging into a Java package structure.

 *The ModalWindow Problems with styes*
 **
 I started looking into modifying the ModalWindows CSS just to show we
 have control over the component. In order to change its behavior, we would
 have to modify Javascript.  In order to change its look we need to modify a
 tightly coupled component to its CSS.

 What has made this a mess is that the ModalWindow has 2 choices, grey
 and blue based CSS.  By default it uses the blue css (blue borders, etc).
 In order for me to override any of the CSS attributes, such as if i want to
 have no blue borders and simple black lines, I need to apply choice 1 or 2
 above.  If we don't modify the source code, we would have to give the
 designer the CSS and they would be required to override CSS classes called 
 div.wicket-modal div.w_blue in order to change to new properties.  Just
 looks ugly to change a property with the word blue in it, but its not blue
 now its black.

 Another silly issue that demonstrates the coupling of a component to its
 CSS is that the modal window uses CSS's background-image in for its
 blue/grey border.  We can only override the image not remove it so that we
 simply have a black line.  Bottom line is that the relationship of the CSS
 and the component is pure infatuation.  That intense desire needs to be
 broken up in order to achieve the true love that is often seen with the
 concept of Windows application - its called Skinning.

 *Summary*

 Wicket's component nature introduces the tight

Re: [Wicket-user] ui framework choice

2007-01-31 Thread Scott Swank

what we need to do is to extract an AbstractModalWindow that doesnt have

all the bells and whistles but lets you customize the look more.

+1  -- if we go with Wicket we might even contribute this ourselves


also can you not simply do modalwindow.setcssclassname(mine) and then

include an additional stylesheet that looks like one of modal window's but
uses the div.mine as a prefix so it overrides the other styles?

We're doing that, and embedding it in the constructor of a sub-class of
ModalWindow.


-igor


Igor rocks.
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ui framework choice

2007-01-31 Thread Scott Swank

Eelco  Igor,

I'm in agreement on the broad component-packaging approach and had much the
same conversation with our developer (Chris).  Mostly he was frustrated.
We're sub-classes both DatePicker  ModalWindow so that they have our
look/feel for the prototype.  Things really aren't nearly so bad as he made
them out to be, and my phobia of css stopped me from digging into the
particulars before I passed his commentary along.  I am suitably chastised.
:)

Scott

On 1/31/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


Hi,

 By convention components have their CSS at the class level (inside the
 package) .  Worse than that, some times the CSS (or in the case of the
 DatePicker) reference a handful of other content like images in the same
 class package.  In that case you would have to move every referenced
piece
 of content relative to where you made your changes.

 Wicket's component nature introduces the tight relationship with to CSS
 and silly convention of housing the CSS in the packages themselves.
 After this exercise I am convinced component UI frameworks (at least
Wicket)
 fall short in allow the developer to skin or change the look of a
component with ease.
 It is obvious these components are written with the thought that that
their look is your
 desired look.  Until this problem can be solved, I believe this is a
major weakness
  of the component framework.

The main reason for Wicket to put markup and resources in packages
*and* facilitate such use (which is something most frameworks do not
provide) is to enable users to create components that you can put in a
jar and enable your users to use it without them having to worry about
what resources they need to put in the web app dir.

I am surprised this ability of writing encapsulated components is
marked as a major weakness; it is quite the opposite if you ask me.
I'm also surprised that the fact that a couple of existing components
depend heavily on packaged resources is taken as a framework weakness.

It is *very easy* to write your own date picker component if you don't
care about the encapsulation. Just get your favorite javascript
widget, wrap a Wicket component around it so that you'd have the
proper header contribution (HeaderContributor#forJavaScript/
HeaderContributor#forCss with the single string argument) and
initialization of the specific widget (e.g. by doing another header
contribution of a little script that initializes the widget using the
component (markup) id). My estimate is that doing this is less than an
hour work! If you follow the user/ dev lists, you can see that we keep
repeating that one of Wicket's major features is the ability to create
custom components easily yourself. This saves us from having to write
kitchen sink components, and others from going through the frustration
that a certain component doesn't do what they want.

 It is obvious these components are written with the thought that that
their look is your
 desired look

Huh? DatePicker packages all the skins that the original javascript
component packages, and creating your own style for this is as easy as
creating your own folder (and subfolders if you want) with css and
images etc and then doing something like:

public class MyPicker extends DatePicker {

private static class Settings extends DatePickerSettings {

public DatePickerSettings() {
setStyle(new ResourceReference(MyPicker.class, 
mystyle.css));
}
}

public MyPicker(String id, Component target) {
  super(id, target, new Settings());
}

and you're done! The only thing DatePicker isn't flexible in, is that
it is not written with the idea in mind that people want it to use
resources from a web app dir (and thus break encapsulation). There's
nothing wrong with doing that for your own project (in fact the
project I'm working on has many of such components), but like I
stated, writing such a component yourself would be so easy it would be
better letting people do it themselves so that they have exactly what
they need.

I think we have some work to do getting this message across louder, so
I opened up http://issues.apache.org/jira/browse/WICKET-249

Cheers,

Eelco

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





--
Scott Swank
reformed mathematician
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM

Re: [Wicket-user] ui framework choice

2007-01-31 Thread Scott Swank

That someone may well be me -- once I have a better idea about how the
moving pieces (js  css) fit together.

On 1/31/07, Matej Knopp [EMAIL PROTECTED] wrote:


Hi.

I guess someone should write a how to customize modal window article to
wiki :)

You don't have to use blue or grey css. You can specify your own style
selector in modal window (ModalWindow.setCssClassName). If you set it to
e.g. black, you won't even have the background images loaded.

As for adding images through background-image - there really is no other
way. This is the only way you can have repeated image. Plus this was the
only way to reduce number of images loaded (modal window loads only two
images, so that it appears rather quickly).

-Matej

Scott Swank wrote:
 Mmm, here's the rather frustrated response from the developer who's been
 working on re-skinning DatePicker  ModalWindow to get them to more
 seamlessly fit our UI look/feel.  Apart from this hitch the demo
 implementation has been proceeded so well that we're trying to figure
 out what else to do to take up the rest of the week -- so things really
 are coming along rather well.  I'm open to any/all advice on how best to
 give our html/css team reasonably straight-forward access to the
 look/feel of components that come packages with their own css.

 Many thanks again,
 Scott

 --

 Team,
 Here is my findings and final thoughts on Wicket and CSS for
 components.  Please let me know if you really want me to get the CSS
 changed on a component.  I can do just that, but the path to get there
 isn't entirely easy.  Here are my thoughts:

 Firstly, to answer Scotts question How easy would it be to just
 sub-class ModalWindow to one that has our css attached?.  The answer is
 not that easy.  We can subclass sure, but telling wicket to use our own
 CSS with a member function call would require changing the code that
 implements that component. The components I have seen have a function
 called setStyle().  The problem is that style assumes you are setting
 one of its predefined styles that exist in the package directory.

 By convention components have their CSS at the class level (inside the
 package) .  Worse than that, some times the CSS (or in the case of the
 DatePicker) reference a handful of other content like images in the same
 class package.  In that case you would have to move every referenced
 piece of content relative to where you made your changes.

 Here are the following ways that make it possible to override Wicket
 components CSS:

 *1)*  Change the source for the desired component(s) to allow better
 flexibility in choosing external CSS.
 *2)*  Override the CSS by either of the following 2 ways:
 *a)* Insert a wicket-head tag on the page and override CSS
 attributes on the desired component page.  To find out what the CSS
 looks like, you still have to unzip the wicket JAR or wicket-extensions
 JAR to get to the CSS:
 wicket:head
 style type=text/cssdiv.calendar {position:
 absolute;z-index: 10;top:150;left:100;}/style
 /wicket:head
 *b)* Do what I did for the DatePicker, and force the component to
 add a new Header to the page (overriding its original components CSS).
 I was able to put the CSS in our content directory which in practive
 gives a designer the ability to change any CSS properties at will
 without redeploying our app:

 *add(HeaderContributor./forCss/(../../css/cyllenius_cal.css));*
 **
 Note:  In any case we are going to want designers to be able to access
 CSS files without digging into a Java package structure.

 *The ModalWindow Problems with styes*
 **
 I started looking into modifying the ModalWindows CSS just to show we
 have control over the component. In order to change its behavior, we
 would have to modify Javascript.  In order to change its look we need to
 modify a tightly coupled component to its CSS.

 What has made this a mess is that the ModalWindow has 2 choices, grey
 and blue based CSS.  By default it uses the blue css (blue borders,
 etc).  In order for me to override any of the CSS attributes, such as if
 i want to have no blue borders and simple black lines, I need to apply
 choice 1 or 2 above.  If we don't modify the source code, we would have
 to give the designer the CSS and they would be required to override CSS
 classes called div.wicket-modal div.w_blue in order to change to new
 properties.  Just looks ugly to change a property with the word blue
 in it, but its not blue now its black.

 Another silly issue that demonstrates the coupling of a component to its
 CSS is that the modal window uses CSS's background-image in for its
 blue/grey border.  We can only override the image not remove it so that
 we simply have a black line.  Bottom line is that the relationship of
 the CSS and the component is pure infatuation.  That intense desire
 needs to be broken up in order to achieve the true love that is often
 seen with the concept of Windows

Re: [Wicket-user] ui framework choice

2007-01-31 Thread Scott Swank

take a look at datatable example in wicket-examples.


Nice example, thank you.
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ui framework choice

2007-01-30 Thread Scott Swank

Very kind, thank you.

On 1/29/07, Jonathan Locke [EMAIL PROTECTED] wrote:




Sounds very smart.  I firmly believe that Wicket can peform and scale as
well as being productive and maintainable.  Let me know if you run into a
need for consulting help in this arena (or any other).


Scott Swank wrote:

 Right now we're focused on developer productivity, code-to-weight ratio
 and
 code clarity.  If this goes over then we'll look at performance.

 Scott

 On 1/29/07, Christopher Gardner [EMAIL PROTECTED] wrote:

 I apologize if this has been mentioned, but is comparative performance
 and
 load testing planned?  I'd love to see Wicket rule on this.


 On 1/29/07, Scott Swank [EMAIL PROTECTED] wrote:
 
  One week (of two) into the JSF vs. Wicket comparison here at
 Vegas.comthings are going nicely -- team Wicket is finished while team
 JSF is trying
  to get Ajax functionality working.  There were four people working on
 each
  implementation, but JSF is so far behind that an additional person
was
 added
  to the JSF team and one of the Wicket folk was moved from Wicket to
JSF
 --
  i.e. three folk working on Wicket and 6 on JSF in an effort to catch
  up.  The three of us remaining are working on:
 
  * overriding components' css -- i.e. a custom look/feel for
ModalWindow
  * unit test integration
  * cleaner use of dynamic models
 
  Cheers,
  Scott
 
  --
  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



--
View this message in context:
http://www.nabble.com/-Wicket-user--ui-framework-choice-tf3137969.html#a8703686
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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] ui framework choice

2007-01-30 Thread Scott Swank

Interesting, I'll dig into that a bit.  (Or more accurately, I'll pass this
on to the fellow who's actually working on the ModalWindow  DatePicker css
for our demo).

Cheers,
Scott

On 1/30/07, Andrew Klochkov [EMAIL PROTECTED] wrote:


Scott Swank wrote:
 The stylesheet is not very simple though. -- Yup, that's that stage
 we're
 at.  :)

It's much easier to change modal window markup by overriding javascript
function Wicket.Window.getMarkup.

--
Andrew Klochkov


-
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] How do you load an external image?

2007-01-30 Thread Scott Swank

I went back to this last night and it just worked the way it should have in
the first place without any changes.  I imagine that we had something mucked
up in our app's resource stream locator.

Thanks again.

On 1/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


ah, so the image doesnt even render, i see. i thought that url you
showed was in the image's src. so this thread doesnt have anything to
do with the staticimage component itself???

-igor


On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote:
 No markup is produced.  It's in a ModalWindow.  Here's the dump from the
 Ajax debug window:

 INFO: Initiating Ajax GET request on

/wicketapp/app?wicket:interface=:1:openScroll::IBehaviorListenerwicket:behaviorId=0random=
0.46680841416499696
 INFO: Invoking pre-call handler(s)...
 ERROR: Received Ajax response with code: 500
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...

 On 1/24/07, Igor Vaynberg [EMAIL PROTECTED]  wrote:
  that is very peculiar, i dont see a reason for it to look for a
packaged
 resource, what does the produced markup look like?
 
  -igor
 
 
 
 
  On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote:
  
   And the html tag is simply:
  
  img wicket:id=productImage /
  
   Thank you.
  
  
   On 1/24/07, Scott Swank  [EMAIL PROTECTED] wrote:
  
The image is added to the panel like so:
   
   add(new StaticImage(productImage, 
 http://cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg
 ));
   
And that uses a convenience constructor I added to the original
 StaticImage:
   
package com.vegas.wicket;
   
import wicket.markup.ComponentTag;
import wicket.markup.html.WebComponent;
import wicket.model.IModel;
import wicket.model.Model;
   
public class StaticImage extends WebComponent
{
private static final long serialVersionUID =
 -7600332611457262341L;
   
public StaticImage(String id, IModel model)
{
super(id, model);
}
   
public StaticImage(String id, String url)
{
this(id, new Model(url));
}
   
protected void onComponentTag(ComponentTag tag)
{
checkComponentTag(tag, img);
tag.put(src, getModelObjectAsString());
}
}
  
  
  
   --
   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




-
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

[Wicket-user] target.addComponent() setOutputMarkupId(true)

2007-01-30 Thread Scott Swank

If you add a component as an Ajax target, but you have not called
setOutputMarkupId(true) on the component then the ajax call will never find
its target and will silently fail.  Should this raise a runtime exception or
is there a use case where we would want the Ajax call to silently fail?

Thank you,
Scott

--
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] target.addComponent() setOutputMarkupId(true)

2007-01-30 Thread Scott Swank

Good point, thank you.  Still, should it raise a Java exception or are there
cases where one would want it to fail?

On 1/30/07, Nick Heudecker [EMAIL PROTECTED] wrote:


The Ajax debug window tells you that it couldn't find a component with the
relevant id.  It's available in development mode.

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

 If you add a component as an Ajax target, but you have not called
 setOutputMarkupId(true) on the component then the ajax call will never find
 its target and will silently fail.  Should this raise a runtime exception or
 is there a use case where we would want the Ajax call to silently fail?

 Thank you,
 Scott

 --
 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





--
Nick Heudecker
Professional Wicket Training  Consulting
http://www.systemmobile.com

Eventful - Intelligent Event Management
http://www.eventfulhq.com
-
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] target.addComponent() setOutputMarkupId(true)

2007-01-30 Thread Scott Swank

Sweet.

On 1/30/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


it does in 1.3 and 2.0

-igor


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

 Good point, thank you.  Still, should it raise a Java exception or are
 there cases where one would want it to fail?

 On 1/30/07, Nick Heudecker  [EMAIL PROTECTED] wrote:
 
  The Ajax debug window tells you that it couldn't find a component with
  the relevant id.  It's available in development mode.
 
  On 1/30/07, Scott Swank [EMAIL PROTECTED] wrote:
 
   If you add a component as an Ajax target, but you have not called
   setOutputMarkupId(true) on the component then the ajax call will never 
find
   its target and will silently fail.  Should this raise a runtime exception 
or
   is there a use case where we would want the Ajax call to silently fail?
  
   Thank you,
   Scott
  
   --
   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
  
  
  
 
 
  --
  Nick Heudecker
  Professional Wicket Training  Consulting
  http://www.systemmobile.com
 
  Eventful - Intelligent Event Management
  http://www.eventfulhq.com
 
  -
  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


[Wicket-user] ui framework choice

2007-01-29 Thread Scott Swank

One week (of two) into the JSF vs. Wicket comparison here at
Vegas.comthings are going nicely -- team Wicket is finished while team
JSF is trying
to get Ajax functionality working.  There were four people working on each
implementation, but JSF is so far behind that an additional person was added
to the JSF team and one of the Wicket folk was moved from Wicket to JSF --
i.e. three folk working on Wicket and 6 on JSF in an effort to catch up.
The three of us remaining are working on:

* overriding components' css -- i.e. a custom look/feel for ModalWindow
* unit test integration
* cleaner use of dynamic models

Cheers,
Scott

--
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] ui framework choice

2007-01-29 Thread Scott Swank

Thank you to both of you.  And for anyone who's been paying any attention to
my questions it's pretty clear that I don't know Wicket particularly well
yet.  I'm still fumbling around a bit with models.  Further, the other three
folk had never set eyes on Wicket before last Monday.

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


Re: [Wicket-user] ui framework choice

2007-01-29 Thread Scott Swank

The stylesheet is not very simple though. -- Yup, that's that stage we're
at.  :)

On 1/29/07, Matej Knopp [EMAIL PROTECTED] wrote:


I wish I could help you in person :) Unfortunately I'm not from US.

I'm afraid there's not much that can be done about ModalWindow feel,
unless you want to mess with the javascript :)

As for Look, you can specify custom stylesheet though. Actually, you can
set the CSS class modal window would use (using
ModalWindow.setCssClassName())

You can have your own style, simple copying and modifying the modal.css
file that comes with wicket. The stylesheet is not very simple though.

-Matej

Scott Swank wrote:
 One week (of two) into the JSF vs. Wicket comparison here at Vegas.com
 http://Vegas.com things are going nicely -- team Wicket is finished
 while team JSF is trying to get Ajax functionality working.  There were
 four people working on each implementation, but JSF is so far behind
 that an additional person was added to the JSF team and one of the
 Wicket folk was moved from Wicket to JSF -- i.e. three folk working on
 Wicket and 6 on JSF in an effort to catch up.  The three of us remaining
 are working on:

 * overriding components' css -- i.e. a custom look/feel for ModalWindow
 * unit test integration
 * cleaner use of dynamic models

 Cheers,
 Scott

 --
 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] ui framework choice

2007-01-29 Thread Scott Swank

But none the less, thank you very kindly.

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


The stylesheet is not very simple though. -- Yup, that's that stage
we're at.  :)

On 1/29/07, Matej Knopp  [EMAIL PROTECTED] wrote:

 I wish I could help you in person :) Unfortunately I'm not from US.

 I'm afraid there's not much that can be done about ModalWindow feel,
 unless you want to mess with the javascript :)

 As for Look, you can specify custom stylesheet though. Actually, you can

 set the CSS class modal window would use (using
 ModalWindow.setCssClassName())

 You can have your own style, simple copying and modifying the modal.css
 file that comes with wicket. The stylesheet is not very simple though.

 -Matej

 Scott Swank wrote:
  One week (of two) into the JSF vs. Wicket comparison here at Vegas.com
  http://Vegas.com things are going nicely -- team Wicket is finished
  while team JSF is trying to get Ajax functionality working.  There
 were
  four people working on each implementation, but JSF is so far behind
  that an additional person was added to the JSF team and one of the
  Wicket folk was moved from Wicket to JSF -- i.e. three folk working on
  Wicket and 6 on JSF in an effort to catch up.  The three of us
 remaining
  are working on:
 
  * overriding components' css -- i.e. a custom look/feel for
 ModalWindow
  * unit test integration
  * cleaner use of dynamic models
 
  Cheers,
  Scott
 
  --
  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





--
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


  1   2   >