Re: [Wicket-user] Fwd: [Wicket-develop] [ wicket-Bugs-1357506 ] Can't add label to WebMarkupContainer

2005-11-15 Thread Phil Kulak
Yea, that's why I figured it was a bug.

wicket.markup.MarkupException: Unable to find component with id
'title' in [MarkupContainer [Component id = _extend, page =
md.lhm.wicket.page.cart.ViewCart, path =
8:_body:_child:_extend:_child:_extend:_child:_extend.MarkupInheritanceResolver$TransparentWebMarkupContainer,
isVisible = true, isVersioned = true]]. This means that you declared
wicket:id=title in your markup, but that you either did not add the
component to your page at all, or that the hierarchy does not match.

I'll write a small test case that runs apart from my app just to make
sure it happens in isolation.


---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Fwd: [Wicket-develop] [ wicket-Bugs-1357506 ] Can't add label to WebMarkupContainer

2005-11-15 Thread Phil Kulak
Here we go. Right now you'll get a RuntimeException. Change the ps to
divs and it's all good.

-Phil

On 11/15/05, Phil Kulak [EMAIL PROTECTED] wrote:
 Yea, that's why I figured it was a bug.

 wicket.markup.MarkupException: Unable to find component with id
 'title' in [MarkupContainer [Component id = _extend, page =
 md.lhm.wicket.page.cart.ViewCart, path =
 8:_body:_child:_extend:_child:_extend:_child:_extend.MarkupInheritanceResolver$TransparentWebMarkupContainer,
 isVisible = true, isVersioned = true]]. This means that you declared
 wicket:id=title in your markup, but that you either did not add the
 component to your page at all, or that the hierarchy does not match.

 I'll write a small test case that runs apart from my app just to make
 sure it happens in isolation.



 test



TestPage.java
Description: Binary data


Re: [Wicket-user] Re: FormFeedbackIndicator

2005-11-14 Thread Phil Kulak
Are you adding the text field?

On 11/10/05, Marco van de Haar [EMAIL PROTECTED] wrote:
 Typo, sorry, ofcourse I meant FormComponentFeedbackIndicator

  We're trying to test a TextField wit a FormFeedbackIndicator. but
  we keep getting a 'the following Components failed to render' error on
  testform.indicator.FormFeedbackIndicator when we submit the form with
  errors.
 
  java:
  ...
  testfield = new RequiredTextField(text, new
  PropertyModel(ValidatePage.this, textValue));
  testfield.add(LengthValidator.max(5));
  FormComponentFeedbackIndicator i = new
  FormComponentFeedbackIndicator(indicator);
  i.setIndicatorFor(testfield);
  form.add(i);
  ...
 
  html:
  input type=text wicket:id=text/div wicked:id=indicator/div
 
  What are we doing wrong?
 
  Marco  Ruud
 



 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wait Screen

2005-11-14 Thread Phil Kulak
Meta refresh works and is a nice backup, but with AJAX you don't have
to have the user looking at a flickering screen and you can put images
and fancy things on the page. Here's how I do it.


RedirectHandler.java
Description: Binary data


Re: [Wicket-user] Re: Re: Re: My take on Spring integration

2005-11-14 Thread Phil Kulak
It's best to keep your app context beans in the Wicket application.
See the wicket-phonebook example in wicket-stuff cvs.

On 11/14/05, Maik Dobryn [EMAIL PROTECTED] wrote:
 Hi Igor,

 I'm very new to Wicket. The last days I tried to figure out how the
 Spring integration in Wicket works.

 There is a lot of confusion about the most recent practice.
 Unforturnatly, no documentation does exist which covers this important
 technique.

 So would You please provide a small (code) example of setting up a
 Spring application context and injecting a bean at page level?

 Thank You in advance,

 Maik


 on 2005-11-11 00:50 Igor Vaynberg wrote:
  more refactoring/tests and some new things:
  
  SpringWebApplicationFactory - which will pull the webapplication
  subclass out of spring application context
  
  SpringInjector/SpringWebApplica tion - make it very simple to inject
  objects using @SpringBean annotation with lazy-init proxies
  
  SpringWebPage - autoinitailizes its subclasses using the SpringInjector
  
  I also deprecated all the old stuff and moved it into
  wicket.contrib.spring.old package. The new stuff is the
  official/supported/standard/whateveryouwanttocallit way to do spring
  integration.
  
  currently we only provide an easy way to inject objects using jdk5
  annotations. it is possible to create a jdk1.4 object locator
  factories, but there are many options as to how to store metadata/do
  the lookup. if someone is interested in this please let me know and we
  can discuss some ways of doing this.
  
  As always, any feedback is greatly appreciated.
  


 ---
 This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
 Register for a JBoss Training Course.  Free Certification Exam
 for All Training Attendees Through End of 2005. For more info visit:
 http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28alloc_id845op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] remove jsessionid in first page

2005-11-12 Thread Phil Kulak
App servers HAVE to put that in the first URL, because it's really the
second (because of the redirect). The server doesn't know if the
client is using cookies until the first request comes back, so for the
first request it has to use cookies and url rewriting.


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView for navigation menu?

2005-11-02 Thread Phil Kulak
So you just need to know when the item you're rendering is the last in
the list? Well, you have access to the list (getList()) and the item
(item.getModelObject()), so it should be pretty straight forward, if
not elegant, to find out if the item is the last in the list.

On 11/1/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Yeah, something like that could work pretty well. I think you should
 take a look at how paged lists work (package
 wicket.markup.html.navigation.paging).

 Eelco

 On 11/1/05, Stijn de Witt [EMAIL PROTECTED] wrote:
   Hi all,
 
 
   I'm a new user to Wicket. I love what I have seen so far. The HelloWorld
  example was very convincing for me to give Wicket a try!
 
 
  I am trying to create a menu to go above my pages. I have been browsing
  through the Wiki and looked at the navigation example. The navigation
  example uses borders, but before I delve into those, I thought of trying
  something else, and I wonder if you could give me some feedback on it.
 
 
  I thought I might use a ListView. I think I could add a ListView to my page
  that would contain Links to WebPages to create a simple navigation bar. I
  found some example code and HTML in the javadoc:
 
 
  A ListView holds ListItem children. Items can be re-ordered and deleted,
  either one at a time or many at a time.
 
   Example: tbody
   tr wicket:id=rows class=even
   tdspan wicket:id=idTest ID/span/td
   ...
 
 
   Though this example is about a HTML table, ListView is not at all limited
  to HTML tables. Any kind of list can be rendered using ListView.
 
   And the related Java code: add(new ListView(rows, listData)
   {
   public void populateItem(final ListItem item)
   {
   final UserDetails user =
  (UserDetails)item.getModelObject();
   item.add(new Label(id, user.getId()));
   }
   });
 
 
 
 
 
  For a navigation bar I could think of this for the HTML: div
  id=navigation
   span class=item wicket:id=navigationitems
   a wicket:id=link href=#Item/a
   span class=separator | /span
   /span
  /div
 
 
 
 
 
  But I need some way to identify the last separator in the stylesheet, so I
  can hide it. In the example the class even is used in the table row, but
  how is this updated to odd ?
 
 
  Am I on the right track here? Any suggestions,
 
 
  Greetings,
 
 
  -Stijn
 
 


 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListView for navigation menu?

2005-11-02 Thread Phil Kulak
Oh yea, that's much better.

On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 In that case, better would be to compare the current index of ListItem
 (li.getIndex) with the ListView's size (lv.getViewSize()). That way
 you won't have to touch the 'internal' model, and it'll work with
 sizes that differ from the underlying model.

 Eelco


 On 11/2/05, Phil Kulak [EMAIL PROTECTED] wrote:
  So you just need to know when the item you're rendering is the last in
  the list? Well, you have access to the list (getList()) and the item
  (item.getModelObject()), so it should be pretty straight forward, if
  not elegant, to find out if the item is the last in the list.
 
  On 11/1/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
   Yeah, something like that could work pretty well. I think you should
   take a look at how paged lists work (package
   wicket.markup.html.navigation.paging).
  
   Eelco
  
   On 11/1/05, Stijn de Witt [EMAIL PROTECTED] wrote:
 Hi all,
   
   
 I'm a new user to Wicket. I love what I have seen so far. The 
HelloWorld
example was very convincing for me to give Wicket a try!
   
   
I am trying to create a menu to go above my pages. I have been browsing
through the Wiki and looked at the navigation example. The navigation
example uses borders, but before I delve into those, I thought of trying
something else, and I wonder if you could give me some feedback on it.
   
   
I thought I might use a ListView. I think I could add a ListView to my 
page
that would contain Links to WebPages to create a simple navigation bar. 
I
found some example code and HTML in the javadoc:
   
   
A ListView holds ListItem children. Items can be re-ordered and deleted,
either one at a time or many at a time.
   
 Example: tbody
 tr wicket:id=rows class=even
 tdspan wicket:id=idTest ID/span/td
 ...
   
   
 Though this example is about a HTML table, ListView is not at all 
limited
to HTML tables. Any kind of list can be rendered using ListView.
   
 And the related Java code: add(new ListView(rows, listData)
 {
 public void populateItem(final ListItem item)
 {
 final UserDetails user =
(UserDetails)item.getModelObject();
 item.add(new Label(id, user.getId()));
 }
 });
   
   
   
   
   
For a navigation bar I could think of this for the HTML: div
id=navigation
 span class=item wicket:id=navigationitems
 a wicket:id=link href=#Item/a
 span class=separator | /span
 /span
/div
   
   
   
   
   
But I need some way to identify the last separator in the stylesheet, 
so I
can hide it. In the example the class even is used in the table row, 
but
how is this updated to odd ?
   
   
Am I on the right track here? Any suggestions,
   
   
Greetings,
   
   
-Stijn
   
   
  
  
   ---
   SF.Net email is sponsored by:
   Tame your development challenges with Apache's Geronimo App Server. 
   Download
   it for free - -and be entered to win a 42 plasma tv or your very own
   Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server. Download
  it for free - -and be entered to win a 42 plasma tv or your very own
  Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Model Serialization Question

2005-11-02 Thread Phil Kulak
Let's say I have this code on a page:

add(new Label(label1, new Model() {
   public Object getObject(Component c) {
  // Return some interesting string...
   }
});

add(new Label(label2, new Model() {
   public Object getObject(Component c) {
  // Return some other interesting string...
   }
});

will the page be serialized into two sperate bytestreams? And if
that's the case, when the page is recreated, will each model be
looking at a different page instance?


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Model Serialization Question

2005-11-02 Thread Phil Kulak
That's what I was afraid of.

What do you think about having a special model that Component never
serializes. Like:

new Label(id, new StaticModel() {
   ...
});

Probably not any easier then just calling setVersioned(false), but
it's more readable and less of a pain..

On 11/2/05, Igor Vaynberg [EMAIL PROTECTED] wrote:
 when you serialize from top to the bottom of the hierarchy only one instance
 is used.
  ie. if you serialize the page both your models will point ot the same page
 instance, but if you serialize the models indivudally, they will each have a
 separate page instance. so if you call setModelObject and your component is
 versioned, the model - since its anonymous - will serialize the page and
 take up a lot of space. better use an inner static class.

  -Igor



 On 11/2/05, Phil Kulak [EMAIL PROTECTED] wrote:
 
  Let's say I have this code on a page:
 
  add(new Label(label1, new Model() {
 public Object getObject(Component c) {
// Return some interesting string...
 }
  });
 
  add(new Label(label2, new Model() {
 public Object getObject(Component c) {
// Return some other interesting string...
 }
  });
 
  will the page be serialized into two sperate bytestreams? And if
  that's the case, when the page is recreated, will each model be
  looking at a different page instance?
 
 
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server.
 Download
  it for free - -and be entered to win a 42 plasma tv or your very own
  Sony(tm)PSP.  Click here to play:
 http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with multiple submit buttons in form

2005-11-01 Thread Phil Kulak
The beauty of the @Override notation. :D

On 10/29/05, Dan Gould [EMAIL PROTECTED] wrote:
 Thanks Andrew (and everyone) -- my dumb mistake.

 [I'm in the cleanup phase of the beta for my new app; I'll send a link to
 wicket-user pretty soon to try out.]


 ---
 This SF.Net email is sponsored by the JBoss Inc.
 Get Certified Today * Register for a JBoss Training Course
 Free Certification Exam for All Training Attendees Through End of 2005
 Visit http://www.jboss.com/services/certification for more information
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with multiple submit buttons in form

2005-10-29 Thread Phil Kulak
If that's really what's happening, then it's a bug.

On 10/28/05, Dan Gould [EMAIL PROTECTED] wrote:
 I'm trying to create a form with multiple submit buttons follow the
 example on
 http://www.wicket-wiki.org.uk/wiki/index.php/Multiple_submit_buttons_in_form

 The buttons' onSubmit isn't getting called.  [However, the Form's onSubit
 IS getting called.]

 My HTML looks like

 form id=backForm wicket:id=backForm target=_top
input id=thumbdown wicket:id=thumbdown type=image
   src=/thumbdown.jpg alt=thumbs down name=thumbdown /

input id=thumbup wicket:id=thumbup type=image
   src=/thumbup.jpg alt=thumbs up name=thumbup /
 /form

 And my code looks like:

 private final class BackForm extends Form {
  public BackForm(final String componentname)
  {
  super(componentname);

  add(new Button(thumbup) {
  protected void onSumbit() {
  if(log.isDebugEnabled()) log.debug(THUMBS UP);
  }
  });

  add(new Button(thumbdown) {
  protected void onSumbit() {
  if(log.isDebugEnabled()) log.debug(THUMBS DOWN);
  }
  });
  }
 }

 Any ideas?  [I just realized: does the type=image cause problems for
 wicket?  If so, is there a workaround?]

 Thanks,
 Dan


 ---
 This SF.Net email is sponsored by the JBoss Inc.
 Get Certified Today * Register for a JBoss Training Course
 Free Certification Exam for All Training Attendees Through End of 2005
 Visit http://www.jboss.com/services/certification for more information
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] replace ognl.

2005-10-28 Thread Phil Kulak
I like the idea of being able to plug in OGNL if you really need it.
Now that I think about it, I've got a couple ChoiceRenderers that call
functions using OGNL. Although, it probably would be very easy to
rewrite these by just implementing the interface myself, and much more
efficient.


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best way to a handle SSL pages?

2005-10-27 Thread Phil Kulak
Yea, but my problem is finding that full url because when
checkAccess() is called, the url in the request is not the redirect
handler, but whatever interface was called last, and you can't
redirect to that.

On 10/27/05, Johan Compagner [EMAIL PROTECTED] wrote:
 i think you just have te redirect to a full url (but then with https)



 On 10/26/05, Phil Kulak [EMAIL PROTECTED] wrote:
 
  At first I tried sending a redirect to the URL in the request, but
  with https instead of http, but that breaks down if the user is
  redirected to the secure page since the url may include listener
  interfaces and what have you. I could still do this if there was some
  other way to get the url for a page as it currently exists, but I'm
  not sure if I can do that, or if it's possible. Does anyone have any
  ideas on this? My ultimate goal is to just be able to flag pages that
  need to be secure as such, and have all the redirects taken care of in
  the super class.
 
 
  ---
  This SF.Net email is sponsored by the JBoss Inc.
  Get Certified Today * Register for a JBoss Training Course
  Free Certification Exam for All Training Attendees Through End of 2005
  Visit http://www.jboss.com/services/certification for
 more information
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best way to a handle SSL pages?

2005-10-27 Thread Phil Kulak
I'm trying to get something to work with:

page.urlFor(IRedirectListener.class);

but it just doesn't and I can't seem to figure out why not.

On 10/27/05, Phil Kulak [EMAIL PROTECTED] wrote:
 Yea, but my problem is finding that full url because when
 checkAccess() is called, the url in the request is not the redirect
 handler, but whatever interface was called last, and you can't
 redirect to that.

 On 10/27/05, Johan Compagner [EMAIL PROTECTED] wrote:
  i think you just have te redirect to a full url (but then with https)
 
 
 
  On 10/26/05, Phil Kulak [EMAIL PROTECTED] wrote:
  
   At first I tried sending a redirect to the URL in the request, but
   with https instead of http, but that breaks down if the user is
   redirected to the secure page since the url may include listener
   interfaces and what have you. I could still do this if there was some
   other way to get the url for a page as it currently exists, but I'm
   not sure if I can do that, or if it's possible. Does anyone have any
   ideas on this? My ultimate goal is to just be able to flag pages that
   need to be secure as such, and have all the redirects taken care of in
   the super class.
  
  
   ---
   This SF.Net email is sponsored by the JBoss Inc.
   Get Certified Today * Register for a JBoss Training Course
   Free Certification Exam for All Training Attendees Through End of 2005
   Visit http://www.jboss.com/services/certification for
  more information
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 



---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Best way to a handle SSL pages?

2005-10-27 Thread Phil Kulak
Woo hoo! Got it by basically doing what PageMap.redirectToInterceptPage does.

If I made a patch that added a setSecure(boolean) method to WebPage
and handled all this stuff (redirects to https or http accordingly),
would you guys review and consider putting it in the core?

On 10/27/05, Phil Kulak [EMAIL PROTECTED] wrote:
 I'm trying to get something to work with:

 page.urlFor(IRedirectListener.class);

 but it just doesn't and I can't seem to figure out why not.

 On 10/27/05, Phil Kulak [EMAIL PROTECTED] wrote:
  Yea, but my problem is finding that full url because when
  checkAccess() is called, the url in the request is not the redirect
  handler, but whatever interface was called last, and you can't
  redirect to that.
 
  On 10/27/05, Johan Compagner [EMAIL PROTECTED] wrote:
   i think you just have te redirect to a full url (but then with https)
  
  
  
   On 10/26/05, Phil Kulak [EMAIL PROTECTED] wrote:
   
At first I tried sending a redirect to the URL in the request, but
with https instead of http, but that breaks down if the user is
redirected to the secure page since the url may include listener
interfaces and what have you. I could still do this if there was some
other way to get the url for a page as it currently exists, but I'm
not sure if I can do that, or if it's possible. Does anyone have any
ideas on this? My ultimate goal is to just be able to flag pages that
need to be secure as such, and have all the redirects taken care of in
the super class.
   
   
---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for
   more information
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 



---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Best way to a handle SSL pages?

2005-10-26 Thread Phil Kulak
At first I tried sending a redirect to the URL in the request, but
with https instead of http, but that breaks down if the user is
redirected to the secure page since the url may include listener
interfaces and what have you. I could still do this if there was some
other way to get the url for a page as it currently exists, but I'm
not sure if I can do that, or if it's possible. Does anyone have any
ideas on this? My ultimate goal is to just be able to flag pages that
need to be secure as such, and have all the redirects taken care of in
the super class.


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Markup not found

2005-10-25 Thread Phil Kulak
Just put this in an random markup file:

span

and you'll get the stack trace. ;)

On 10/25/05, Nick Heudecker [EMAIL PROTECTED] wrote:
 I checked my old logs and wasn't able to find the stack trace.  Apologies.


 On 10/25/05, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
  Yes I agree, but please with stacktrace, markup etc.. Just it does
  not work doesn't help much to find the cause.
 
  Juergen
 
  On 10/25/05, Martijn Dashorst [EMAIL PROTECTED] wrote:
   eh... bug-REPORT that is :-)
  
   Martijn
  
  
  
   On 10/25/05, Martijn Dashorst [EMAIL PROTECTED] wrote:
We should create a bug for this.
   
Martijn
   
   
   
   
On 10/25/05, Nick Heudecker [EMAIL PROTECTED]  wrote:
 Yep, it was horribly incorrect markup.  I would've expected a parse
   error, not a not found error.



 On 10/24/05, Eelco Hillenius  [EMAIL PROTECTED] wrote:
  There might be a problem parsing your markup, so that it can't be
  loaded properly. Can you send us your complete stacktrace?
 
  Eelco
 
  On 10/24/05, Nick Heudecker  [EMAIL PROTECTED] wrote:
   I've been staring at this for hours, but can't figure out what
 would
   cause a
   Markup not found error when the markup does in fact exist at
 the
   correct
   location.  What other error conditions could cause this problem?
   Thanks.
  
 
 
 
   ---
  This SF.Net email is sponsored by the JBoss Inc.
  Get Certified Today * Register for a JBoss Training Course
  Free Certification Exam for All Training Attendees Through End of
 2005
  Visit http://www.jboss.com/services/certification
 for
   more information
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 


   
   
  
  
 
 
  ---
  This SF.Net email is sponsored by the JBoss Inc.
  Get Certified Today * Register for a JBoss Training Course
  Free Certification Exam for All Training Attendees Through End of 2005
  Visit http://www.jboss.com/services/certification for
 more information
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using elements other than span for panels

2005-10-18 Thread Phil Kulak
That's what's nice about the tag being visible by default.

On 10/17/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Yep, totally. Anyting you like. If a component should /not/ be
 attached to a certain tag, it should tell you so by throwing an
 exception. Some of the formcomponents do this.

 Eelco

 On 10/17/05, Jason Essington [EMAIL PROTECTED] wrote:
  I had some markup that looked something like:
 
  table
 tr
   tdspan wicket:id=myPanel[myPanel]/span/td
   tdspan wicket:id=myOtherPanel[myOtherPanel]/span/td
 /tr
  /table
 
  I want to make some of the columns visible or not at runtime, so
  rather than adding another wicket:id to the td tag, and adding my
  panel to a WebMarkupContainer, I did something like:
 
  table
 tr
   td wicket:id=myPanel[myPanel]/td
   td wicket:id=myOtherPanel[myOtherPanel]/td
 /tr
  /table
 
  and can just set my panel as visible or not.
 
  So my question is, Is it reasonable to use a tag such as the td tag
  in place of the span tag that would ordinarily hold my panels?
 
  -jason
 
 
 
  ---
  This SF.Net email is sponsored by:
  Power Architecture Resource Center: Free content, downloads, discussions,
  and more. http://solutions.newsforge.com/ibmarch.tmpl
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Standalong Radio component ?

2005-10-18 Thread Phil Kulak
I agree, for what it's worth.

On 10/17/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Sounds like a good one for core.

 Eelco


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Did we change resource lookups?

2005-10-17 Thread Phil Kulak
I just got the lastest from CVS and whatever was happening isn't
anymore. So... nevermind. :D

On 10/14/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 Not exactly sure what you mean? file? validator messages?
 In case of validator message, I hope not. The intend was to provide
 for some application level defaults for Validator messages. First we
 try to find it by path and in case it does not exist, it tries to find
 it by class name only. Please the conversation I had with Igor
 recently.

 Juergen

 On 10/14/05, Phil Kulak [EMAIL PROTECTED] wrote:
  And by we, I mean you. :D
 
  On 10/14/05, Phil Kulak [EMAIL PROTECTED] wrote:
   It looks like resources are now being looked up only be class name, not 
   path.
  
 
 
  ---
  This SF.Net email is sponsored by:
  Power Architecture Resource Center: Free content, downloads, discussions,
  and more. http://solutions.newsforge.com/ibmarch.tmpl
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Did we change resource lookups?

2005-10-14 Thread Phil Kulak
It looks like resources are now being looked up only be class name, not path.


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Did we change resource lookups?

2005-10-14 Thread Phil Kulak
And by we, I mean you. :D

On 10/14/05, Phil Kulak [EMAIL PROTECTED] wrote:
 It looks like resources are now being looked up only be class name, not path.



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Standard for database integration? (Please!)

2005-10-13 Thread Phil Kulak
But DataView has NO dependencies. If you're worried about too many
classes in the core, just add a DataView(String id, List list)
constructor (using the ListAdapter) to DataView and get rid of
ListView.

On 10/11/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 I don't agree with that. You want the DataView, I want JasperReports
 and Dojo, and someone else wants some other project. The net effect
 would be a lot of dependencies for one download.

 What we still should do is:
 * Make releases of the wicket-stuff projects. This has been on our
 radar for weeks now, but we keep on being bussy with other stuff
 (which is not very visible, but I can assure you working on a decent
 book proposal takes up a lot of time). All wicket-stuff committers can
 make file releases etc. It would help if anyone stepped up and did
 some of the work.
 * I have always been in favor of delivering a special distribution,
 which would include the wicket-core projects (wicket,
 wicket-extensions and wicket-examples) and some of the more popular
 wicket-stuff projects, like dataview.

 I'd like to stress the reasons for /not/ including projects like
 dataview in the core distribution:
 * Too many dependencies. We want to keep the number of dependencies of
 core as small as possible.
 * Too many classes will confuse people where to start looking for
 stuff; having it add-on packages will make their intention much
 clearer.
 * Not everyone agrees with the approach taken in project x, so they
 want to see project y shipped as well. Dataview was set up because
 people didn't agree do the code I initially contributed for doing
 database (Hibernate) stuff.

 Eelco


 On 10/12/05, Nathan Hamblen [EMAIL PROTECTED] wrote:
  Whatever you want to call it, I'm advocating that something like
  DataView be packaged officially with Wicket. If we can agree on that,
  it's a start.
 
  Going further, I do think there should be an official way to integrate
  with Hibernate. The why is that it would save a lot of people a lot of
  trouble.
 
  Nathan
 


 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Standard for database integration? (Please!)

2005-10-13 Thread Phil Kulak
Oh, well, I agree that the hibernate stuff should not be in the core.

On 10/13/05, Nathan Hamblen [EMAIL PROTECTED] wrote:
 One thing I mean by integration is a built-in loadable detachable model
 for Hibernate mapped objects, like what's in contrib.data and
 contrib.database. After that, you need an easy way for people to fill up
 list views with query results. If there weren't a use for base classes
 that help in these tasks, the several contributed ones would not exist.

 This isn't really a tier argument (thank God), it's about giving
 people a starting point and suggested structure for accessing a database
 in a Wicket application. Pretty basic stuff if you ask me, and I do not
 think that a pile of contributed packages and examples is much of a
 solution.

 Nathan

 Nick Heudecker wrote:
  I have to agree with Igor here.  I didn't have to do anything special
  when I started using Wicket.  The DAOs and Service tier that I had in
  place worked fine.
 
  It could be argued that if you're integrating Hibernate at the Wicket
  level, something is wrong in your design.  However, I understand that
  for simple apps, multiple tiers is overkill.  Things like Spring's
  OpenSessionInViewFilter still work, or you can roll your own filter and
  have it set the session in the WebSession.
 
  Perhaps I'm confused on what you mean by integration.
 
 



 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Image is not displayed

2005-10-10 Thread Phil Kulak
Do you have a resource reference named images/delete.gif? Because if
you're just trying to make a static link to a static image, there's no
need to get Wicket involved:

img src=images/delete.gif type=image width=12 height=12
alt=[Delete] border=0 valign=middle /

On 10/10/05, Francis Amanfo [EMAIL PROTECTED] wrote:
 Hi,

  I have a Panel whose markup contains:

  img src=images/delete.gif type=image wicket:id=deleteImage
 width=12 height=12 alt=[Delete] border=0 valign=middle /

  The markup is located in package org.foo.presentation
  In my panel class located in the same package as the markup I do:

  add(new Image(deleteImage, images/delete.gif))

  The problem is the image doesn't get dsiplayed. Viewing the source html in
 my browser I see:

  img width=12 height=
 12 type=image wicket:id=deleteImage
 valign=middle border=0
 src=/portal/app/resources/org.foo.presentation.PSBreadCrumbsPanel/images/delete_en_US.gif
 alt=[Delete]
 /

  I don't get it. Any help?

  Francis



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Image is not displayed

2005-10-10 Thread Phil Kulak
Images in Wicket are bit tricky. If you didn't want to use
ResourceReferences, you could do something like this:

AttributeModifier src = new AttributeModifier(src, true, new Model() {
   @Override
   public Object getObject(Component component) {
  // Do some logic and return a string...
   }
}

add(new WebMarkupContainer(image).add(src));

Otherwise, I usually just put the dynamic images in the package, then
create static resource references to them:

public static final ResourceReference ERROR_IMG =
new PackageResourceReference(MyClass.class, error.gif);

and use those in the image:

add(new Image(image) {
@Override
public ResourceReference getImageResourceReference() {
if (anyMessage(FeedbackMessage.ERROR)) {
return ERROR_IMG;
}
return INFORMATION_IMG;
}
});

On 10/10/05, Francis Amanfo [EMAIL PROTECTED] wrote:
 I'm adding the image dynamically based on a condition. I can't see why this
 shouldn't work. The images directory are located in the application root.
 Tried also to put it in the presentation package but didn't work. Whats the
 solution then?



 On 10/10/05, Phil Kulak [EMAIL PROTECTED] wrote:
 
  Do you have a resource reference named images/delete.gif? Because if
  you're just trying to make a static link to a static image, there's no
  need to get Wicket involved:
 
  img src=images/delete.gif type=image width=12 height=12
  alt=[Delete] border=0 valign=middle /
 
  On 10/10/05, Francis Amanfo [EMAIL PROTECTED] wrote:
   Hi,
  
I have a Panel whose markup contains:
  
img src=images/delete.gif type=image wicket:id=deleteImage
   width=12 height=12 alt=[Delete] border=0 valign=middle /
  
The markup is located in package org.foo.presentation
In my panel class located in the same package as the markup I do:
  
add(new Image(deleteImage, images/delete.gif))
  
The problem is the image doesn't get dsiplayed. Viewing the source html
 in
   my browser I see:
  
img width=12 height=
   12 type=image wicket:id=deleteImage
   valign=middle border=0
  
 src=/portal/app/resources/org.foo.presentation.PSBreadCrumbsPanel/images/delete_en_US.gif
   alt=[Delete]
   /
  
I don't get it. Any help?
  
Francis
  
 
 
  ---
  This SF.Net email is sponsored by:
  Power Architecture Resource Center: Free content, downloads, discussions,
  and more. http://solutions.newsforge.com/ibmarch.tmpl
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] xml ouput

2005-10-10 Thread Phil Kulak
I just found this and would like to do the same, however, it looks
like Page now has three static methods. Is there now a better way to
do this, or can I just return null from those three methods?

On 9/24/05, pepone pepone [EMAIL PROTECTED] wrote:
 i open a bug with this at
 https://sourceforge.net/tracker/index.php?func=detailaid=1303553group_id=119783atid=684975

 On 9/24/05, Martijn Dashorst [EMAIL PROTECTED] wrote:
  Hmmm,
 
   You could file a bug report for this. I doubt that what you are currently
  experiencing (having to reference xxx.html instead of xxx.xml) is good
  behavior on wicket's part.
 
   Martijn
 
 
 
  On 9/24/05, pepone pepone [EMAIL PROTECTED] wrote:
  
   Thanks Johan
   I subclas Page in XmlPage and orverride String getMarkupType() to
   return xml and this is working for me. The only think that i feel a
   bit confused is that when i want to create a link in other markup file
   to the XmlPage i need to put href=XmlPage.html and not
   a=XmlPage.xml
  
   I think that is nice to put XmlPage.xml because this is realy the markup
  file
  
   but Xml ouput is working well :D Thanks again
  
   On 9/24/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
That was new to me. Neat!
   
And you could also make it a resource in the fashion like I did with
JasperReports integration.
   
Eelco
   
   
On 9/24/05, Johan Compagner [EMAIL PROTECTED] wrote:
 Make youre own Page (extends from Page not WebPage) call it for
  example
 XmlPage
  then override the

  public String getMarkupType()

  method, where you return xml

  If you really need stuff from webpage you could override that one.

  if you override getMarkupType youre content type is set right and the
  file
 is loaded with a xml extentions.
  (this way we could also make WapPage with a wml extention)


 On 9/23/05, pepone pepone [EMAIL PROTECTED] wrote:
  Hello i want to build a componente that create a RSS file with the
  latest changes of my wicket app
 
  what super class you recomend to use
 
  How write xml response
 
  any ideas are wellcome
 
  thanks
 
 
 
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server.
 Download
  it for free - -and be entered to win a 42 plasma tv or your very
  own
  Sony(tm)PSP.  Click here to play:
 http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


   
   
---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
  Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play:
  http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
   ---
   SF.Net email is sponsored by:
   Tame your development challenges with Apache's Geronimo App Server.
  Download
   it for free - -and be entered to win a 42 plasma tv or your very own
   Sony(tm)PSP.  Click here to play:
  http://sourceforge.net/geronimo.php
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 


 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] xml ouput

2005-10-10 Thread Phil Kulak
Oh, I'm sorry, I screwed up that email. I was talking about how Page
has three ABSTRACT (hehe, sorry about that) methods, so it's not
apparent how to extend it directly. I've extended WebPage and that
seems to work okay.

On 10/10/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 What do you mean, which static methods?

 .xml is now supported btw. The only problem still left is what Juergen
 noted: it is only possible currently to have a fixed set of
 extensions.

 Or... instead of getMarkupType being an instance method, we could make
 it static and call it using introspection. That way we could support
 any extension. It would not be possible anymore to have a dynamically
 designated markup type, though I don't think that will ever be a
 problem. Was that what you meant Phil? And others... what about this
 idea?

 Eelco


 On 10/10/05, Phil Kulak [EMAIL PROTECTED] wrote:
  I just found this and would like to do the same, however, it looks
  like Page now has three static methods. Is there now a better way to
  do this, or can I just return null from those three methods?
 
  On 9/24/05, pepone pepone [EMAIL PROTECTED] wrote:
   i open a bug with this at
   https://sourceforge.net/tracker/index.php?func=detailaid=1303553group_id=119783atid=684975
  
   On 9/24/05, Martijn Dashorst [EMAIL PROTECTED] wrote:
Hmmm,
   
 You could file a bug report for this. I doubt that what you are 
currently
experiencing (having to reference xxx.html instead of xxx.xml) is good
behavior on wicket's part.
   
 Martijn
   
   
   
On 9/24/05, pepone pepone [EMAIL PROTECTED] wrote:

 Thanks Johan
 I subclas Page in XmlPage and orverride String getMarkupType() to
 return xml and this is working for me. The only think that i feel a
 bit confused is that when i want to create a link in other markup file
 to the XmlPage i need to put href=XmlPage.html and not
 a=XmlPage.xml

 I think that is nice to put XmlPage.xml because this is realy the 
 markup
file

 but Xml ouput is working well :D Thanks again

 On 9/24/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
  That was new to me. Neat!
 
  And you could also make it a resource in the fashion like I did with
  JasperReports integration.
 
  Eelco
 
 
  On 9/24/05, Johan Compagner [EMAIL PROTECTED] wrote:
   Make youre own Page (extends from Page not WebPage) call it for
example
   XmlPage
then override the
  
public String getMarkupType()
  
method, where you return xml
  
If you really need stuff from webpage you could override that 
   one.
  
if you override getMarkupType youre content type is set right 
   and the
file
   is loaded with a xml extentions.
(this way we could also make WapPage with a wml extention)
  
  
   On 9/23/05, pepone pepone [EMAIL PROTECTED] wrote:
Hello i want to build a componente that create a RSS file with 
the
latest changes of my wicket app
   
what super class you recomend to use
   
How write xml response
   
any ideas are wellcome
   
thanks
   
   
   
---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App 
Server.
   Download
it for free - -and be entered to win a 42 plasma tv or your 
very
own
Sony(tm)PSP.  Click here to play:
   http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 
 
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server.
Download
  it for free - -and be entered to win a 42 plasma tv or your very 
  own
  Sony(tm)PSP.  Click here to play:
http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server.
Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play:
http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

Re: [Wicket-user] Page Lifecycle

2005-10-06 Thread Phil Kulak
There are two ways to get around this problem. Both work okay, but
they both have a certain stink to them. The first is to make
everything a model. That way, the data is only referenced on render
and there are no null pointers at that point. The other is to have an
init method that builds the component tree but is only called after a
successfull checkAccess(). I tend to prefer the latter just because
having a bunch of models makes the page more difficult to understand
can can result in seriallizing the whole page when it's really not
needed.

On 10/6/05, Troy MacNeil [EMAIL PROTECTED] wrote:
 Thank You! This clears up a lot of confusion, and is exactly what was
 happening. Shortly after my last message I tried checking for a null
 session object and everything worked, though I expected a run time error
 due to the missing panel.

 User user = ((VSecureSession)getSession()).getUser();
 if(user != null){
 add(new EventListPanel(eventList, user.getId()));
 //add other session dependent panels
 }

 So what is happening is:
 1. Page is constructed, skipping session dependent panels
 2. checkAccess() is called redirecting to signIn page
 3. User signs in and the session is created
 4. Original page is re-constructed, this time with a session
 5. Original page is rendered

 Not the most elegant solution, but for now so long as it works I'm
 happy. I'd be interested in any other approaches in the future though.

 Thanks,
 Troy


 On Thu, 2005-10-06 at 11:20 -0400, Todor Todorov wrote:
  Troy,
 
  I think  you are confusing constructing a page with rendering a page.
 
  First a page is being constructed (that's where you are getting the
  exception I believe)
  then checkAccess is being invoked, and later the page is being rendered..
 
  I'm having similar problems with protected pages - sometimes the
  construction depends on session information but you don't have a valid
  user session until checkAccess returns true.
 
  So, what you could do is, skip the construction if the user is not
  authenticated ( the page is not going to be rendered anyway).
  Or, create your page in a such a way that session based decisions are
  delayed until render time.
  Or, don't use wicket's authentication features...
 
  I consider this more a design issue because the workarounds are  not
  satisfying for me.
  I'm currently experimenting with a different auth approaches...
 
  Better ideas  anyone?
 
  Todor
 
 
  On 10/6/05, Troy MacNeil [EMAIL PROTECTED] wrote:
   Thanks for the reply, I'm using RC2, and my app is originally based on
   one of the CD apps in contrib-examples (the one with annotations) from
   the b4 timeframe.
  
   In my base page, I redirect to a sign-in page which adds the user object
   to my session. I then try to use this object in a page which extends the
   base page.
  
   If I link directly to a page (via setHomePage() or bookmark) that
   accesses the session, my session user object is still null and the page
   fails to render (due to the null pointer exception in my panel code).
  
   If I first link to a page that doesn't use the session variable, and
   _then_ link to a page that does everything works as expected. So it
   seemed as though checkAccess() wasn't being called until after the page
   rendered.
  
   I'll take a look with more alert eyes in case there are any lingering
   issues with the demo code (or at least any I can understand:). I'm also
   going to try catching the null exception, I expect they won't see data
   on the first page they visit but at least it won't crash.
  
   Here is a more complete version of the relevant code in case it helps...
  
  
   From base page:
   protected boolean checkAccess()
   {
  
   //((VSecureSession)getSession()).authenticate(admin,
   admin); //DEBUG
   boolean signedIn = ((VSecureSession)getSession()).isSignedIn();
  
   if(!signedIn){
   redirectTo(newPage(SignIn.class));
   }
   return signedIn;
  
   }
  
   From my session:
  
   public final boolean authenticate(final String username, final String
   password)
   {
   if (user == null)
   {
   inUser = ((VSecureRequestCycle)
   getRequestCycle()).getDao().getUser(username);
  
   
   if((in.getPassword()).equalsIgnoreCase(password)){
   this.user = in;
   return true;
   }
   return user != null;
   }
  
   And the line in the sub page (which causes the null pointer):
   Long userId = 
   (((VSecureSession)getSession()).getUser()).getId();
   add(new EventListPanel(eventList, userId));
  
  
   Thanks,
   Troy
  
   On Thu, 2005-06-10 at 11:00 +0200, Johan Compagner wrote:
checkAccess() is the first thing that 

[Wicket-user] Anyway to make the url change?

2005-10-03 Thread Phil Kulak
I've got a page that is versioned, but the models never change, so
neither does the URL. This means that the browser never refreshes the
page and changes are not shown to the user. Is there anyway I can get
that URL to change short of adding a fake model somewhere and changing
it?


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Access the current request from ISessionFactory#newSession()?

2005-10-03 Thread Phil Kulak
Is this possible? I would like to persist my WebSession
implementation, but to get the right one back out of the database when
the user returns, I need access to a cookie in the request. Thanks!


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Access the current request from ISessionFactory#newSession()?

2005-10-03 Thread Phil Kulak
Eh, nevermind. The more I think about this, the more I think it's just
better to delegate to a new persistant session from my Wicket session.

On 10/3/05, Phil Kulak [EMAIL PROTECTED] wrote:
 Is this possible? I would like to persist my WebSession
 implementation, but to get the right one back out of the database when
 the user returns, I need access to a cookie in the request. Thanks!



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Anyway to make the url change?

2005-10-03 Thread Phil Kulak
That will work. Thanks!

On 10/3/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
 You don't like no-cache, no-store cache-control header?

 On 10/3/05, Phil Kulak [EMAIL PROTECTED] wrote:
  I've got a page that is versioned, but the models never change, so
  neither does the URL. This means that the browser never refreshes the
  page and changes are not shown to the user. Is there anyway I can get
  that URL to change short of adding a fake model somewhere and changing
  it?


 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to set and get cookies?

2005-10-03 Thread Phil Kulak
But I'm not storing form component values, I'm storing a session hash.

On 10/3/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 you may use FormComponent.setPersistent(boolean) to automatically
 store and load FormComponent values from Cookies. That is all you must
 do.

 Juergen

 On 10/3/05, Phil Kulak [EMAIL PROTECTED] wrote:
  I used to just get the HttpServletResponse and HttpServletRequest, but
  it looks like that's no longer possible since the response won't
  necessarily be a WebResponse. Is there a better way to do this?
 
 
  ---
  This SF.Net email is sponsored by:
  Power Architecture Resource Center: Free content, downloads, discussions,
  and more. http://solutions.newsforge.com/ibmarch.tmpl
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to set and get cookies?

2005-10-03 Thread Phil Kulak
No, you can't actually. Sometimes it's a StringResponse.


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to set and get cookies?

2005-10-03 Thread Phil Kulak
You rock, dude. :)

On 10/3/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 i hust committed a change which will provide you access to the
 original response object (created by wicketservlet and which will
 allways be a webresponse), no matter whether the repsone has been
 temporariily being replaced or not. requestcycle.getOriginalResponse

 Juergen

 On 10/4/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  you can not gurantee, and we never did, that the respsone will alwyas
  be webresponse. Currently the component which handle wicket:head
  uses StringRepsonse for temporary storage and of course any user can
  use its own response object. only at the end of the cycle you can be
  sure: onEndRequests.
 
  Juergen
 
 
  On 10/4/05, Phil Kulak [EMAIL PROTECTED] wrote:
   No, you can't actually. Sometimes it's a StringResponse.
  
  
   ---
   This SF.Net email is sponsored by:
   Power Architecture Resource Center: Free content, downloads, discussions,
   and more. http://solutions.newsforge.com/ibmarch.tmpl
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 


 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Image inside Border doesn't work correctly

2005-10-03 Thread Phil Kulak
Well, Wicket defines the correct place as the same package as the component.

On 10/3/05, Ari Suutari [EMAIL PROTECTED] wrote:
 Hi,

 Assume following html:

 span wicket:id=border
 img wicket:id=img src=test.png/
 /span

 Now, If the application is in package syncrontech.test except that
 border is syncrontech.borders.NiceBorder (I have a separate package
 for common thingies) wicket is unable to find test.png during runtime, instead
 I get:


 wicket.WicketRuntimeException: Unable to find package resource [path = 
 syncrontech/borders/test.png, style = null, locale = fi]

 Ie. it looks for image in wrong place (correct place is 
 syncrontech/test/test.png).

 I'm using wicket 1.1-rc1.

 Ari S.



 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about pageable grids

2005-10-02 Thread Phil Kulak
Yes, they only load the data for the current page. Of course, you
still have to be careful with some databases. SQL Server (and actually
ANSI SQL), for example, does not have any way to return results from
the middle of a SELECT, so Hibernate will do a SELECT TOP, then only
show you the results you want, even though all previous had to be
brought over the wire.

On 9/30/05, Denzel, Jürgen [EMAIL PROTECTED] wrote:
 Hi,

 does anybody know if the current pageable list components in the wicket
 contribution stuff
 support really huge lists (10+ entries), where the pageable list
 component only loads the current page
 and provides the paging links as well to navigate back and forth plus
 allowing to jump
 to the first and last element of the list.

 I think pageable list components only make sense if the pages are loaded
 lazy and not the
 whole data at once.

 Greets,
 jd




 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] list view sorting consuming all heap space

2005-09-26 Thread Phil Kulak
Are you using a model now and doing the lookup there? If you just
downloaded the new code and didn't change you code to use the new API,
nothing will change. I made it all backwards compatible.


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] list view sorting consuming all heap space

2005-09-26 Thread Phil Kulak
I guess if you subclass model, you have to make sure you turn of
versioning on the component. I neverthought of that before. That's a
tricky one.

On 9/26/05, Johan Compagner [EMAIL PROTECTED] wrote:
 I had this  discussion with jonathan also, Just to warn you all:
  BEWARE if you use non static innerclasses you ALWAYS have a reference to
 the outerclass.
  Anonymous .are always non static so you always have a reference to youre
 parent class.


  johan


 On 9/27/05, Nathan Hamblen [EMAIL PROTECTED] wrote:
  Everyone, thanks for the help. I finally found the problem by debugging
  into componentModelChanging as several people had urged me to do. The
  memory hog was an object I had in the data provider, which was a member
  class of my Page class. I wasn't using the page in it, but it still had
  compiler generated references to the page object. Therefore, it was huge.
 
  Seems like a pretty easy trap to fall into; if a view object sneaks into
  a model somehow, your session is headed for disaster. Wouldn't that mean
  you can never have an anonymous subclass of Model in any kind of
  Component? I feel like I've seen that all over the place.
 
  Nathan
 
  Phil Kulak wrote:
   Are you using a model now and doing the lookup there? If you just
   downloaded the new code and didn't change you code to use the new API,
   nothing will change. I made it all backwards compatible.
  
  
   ---
   SF.Net email is sponsored by:
   Tame your development challenges with Apache's Geronimo App Server.
 Download
   it for free - -and be entered to win a 42 plasma tv or your very own
   Sony(tm)PSP.  Click here to play:
 http://sourceforge.net/geronimo.php
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server.
 Download
  it for free - -and be entered to win a 42 plasma tv or your very own
  Sony(tm)PSP.  Click here to play:
 http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] list view sorting consuming all heap space

2005-09-20 Thread Phil Kulak
Sorry about that. I totally spaced this thread because it was called
list view. Anyway, I added constructors to HibernateDataProvider and
HibernateModel that take IModels for the IHibernateDao for the case
when you want to do a lookup. For example:

IModel lookup = new Model() {
   public Object getObject(Component component) {
  // Do some Spring lookup stuff here and get an IHibernateDao...
   }
}

new HibernateDataProvider(lookup) {
   // Define abstract methods...
}

On 9/20/05, Igor Vaynberg [EMAIL PROTECTED] wrote:
  
  
 
 Ahh, I see. Didn't notice you were using a subclass of the dataview. Either
 way, though, the exact same problem remains because the
 HibernateDataProvider stores the instance of ihibernatedao you retrieve –
 very bad! The HibernateDataProvider should be using the same kind of
 decoration that I provided below for the IDataProvider – where the location
 logic for locating the underlying dao is moved into the decorator. 
 
   
 
 -Igor 
 
   
 
   
  
  
  
  
 
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Nathan Hamblen
  Sent: Tuesday, September 20, 2005 8:23 AM
 
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] list view sorting consuming all heap space 
  
 
   
 
 I don't see how that code would work, as my bean isn't an instance of
 IDataProvider; it's an IHibernateDao. Is there an example somewhere of how
 DataView works with hibernate in such a way that the data provider isn't
 entirely serialized? At the moment I'm trying to wrap my
 HibernateDataProvider in a detachable model, which is harder than it seems
 like this should be. Perhaps I'm not even supposed to be using a
 HibernateDataProvider.
  
  Nathan
  
  Igor Vaynberg wrote: Quick fix to your problem follows, try it and tell us
 if that solves it:
  
 IDataProvider dp=new IDataProvider() {
   Private IDataProvider getDelegate() {
 Return
 ((AdminApplication)Application.getApplication()).getSpringContext().getBean(
 adminComp
   
  
 onentDao)); }
 
   
   Public iterator() { getDelegate().iterator(...) }
   Public size() { return getDelegate().size(); }
   Public model(...) { return getDelegate().model(...); }
 }
  
 DataView articles = new ArticleDataView(articles, dp);
  
 -Igor
  
  
   
  
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:wicket-user-
 [EMAIL PROTECTED] On Behalf Of Nathan Hamblen
 Sent: Monday, September 19, 2005 1:46 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] list view sorting consuming all heap space
  
 This is it:
 ---
 DataView articles = new ArticleDataView(articles, (IHibernateDao)
  
 ((AdminApplication)getApplication()).getSpringContext().getBean(adminComp
 onentDao));
  
 add(articles);
 add(new OrderByBorder(orderByName, subtitle, articles));
 add(new OrderByBorder(orderByMailDate,
 schedule.sendTime, articles));
 add(new PagingNavigator(navigator, articles));
 ---
  
 Nathan
  
 Igor Vaynberg wrote:
 
  
 Is it possible you are creating a link by referencing a final variable
 inside the sorting header? Are you using by OrderByLink or
   
  OrderByBorder?
 
  
  
  
 -Igor
  
  
  
  
  
 
  
 *From:* [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] *On Behalf
 Of *Nathan
 Hamblen
 *Sent:* Monday, September 19, 2005 10:05 AM
 *To:* wicket-user@lists.sourceforge.net
 *Subject:* Re: [Wicket-user] list view sorting consuming all heap space
  
  
  
 When I turn off page versioning, the problem goes away. I'm not
 holding on to any big objects though, as far as I can tell. There are
 some ExternalLink components in the list which aren't detachable, but
 I don't see that using all my java heap space.
  
 There are other controls on the page which affect the query. I can
 toggle them up through version 33 without any problem; it's only the
 sorting that gobbles up memory until it crashes.
  
 Nathan
  
 Johan Compagner wrote:
  
 In this case are you sure that a model detaches right?
 (all objects are cleared and only the query string/sort params) are
 stored?
 Because if could be that all previous attempts where recorded by the
 versioning managment for the back button
 If you do page.setVersioned(false)
  
 does it happen then?
  
 On 9/19/05, *Dipu* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote:
  
 I have come across this problem with the sorting header some time back.
 - Original Message -
 From: Nathan Hamblen [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 To:  wicket-user@lists.sourceforge.net
 mailto:wicket-user@lists.sourceforge.net
 Sent: Monday, September 19, 2005 1:00 AM
 Subject: [Wicket-user] list view sorting consuming all heap space
  
  
   
  
 I wonder if anyone else has had a problem running out of heap space
 using contrib data and dataview. When I hook up a sorting header for
 my hib3 result set, if I keep clicking the header repeatedly (as 

Re: [Wicket-user] Multipart form hides parameters

2005-09-20 Thread Phil Kulak
So now we don't have to even set multipart to true in the class?
Hmm... that's pretty elegant. Especially since a short time ago it was
an entirely different subclass.

On 9/20/05, Scott Sauyet [EMAIL PROTECTED] wrote:
 Eelco Hillenius wrote:
  Found it. Fix it by calling 'setMultipart(true)' in your form's
  constructor (PersonForm).
 
  The way parameters are read in a multipart request differs from how it
  is done normally. This is hidden in the Form processing, and uses the
  form's multipart property. However, the Form class didn't check the
  form tag's attribute, so it never used the multipart processing. It
  does now, but I cannot commit the fix until tonight.
 
 Thank you very much.  I don't know how I missed that in the Javadocs.  I
 looked at all sorts of classes trying to find what was missing.  And the
 amount of time I spent on it, I should have read that ten times!
 
 Well, thank you very much.
 
   -- Scott
 
 .sig wanders off looking for a more alert programmer to describe.  :-(
 
 
 
 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Resource reference scoped to the current session?

2005-09-15 Thread Phil Kulak
Well, that is what I've been doing. The problem is that the link looks
like this:

app?path=3interface=IResourceListener

or something similar. This means that when the content type is known,
the browser can handle it, but otherwise the browser just presents
this file to the user called app. If there was a way to have it be
myFile.pdf, then there would be no confusion. Does that make sense?

On 9/15/05, Johan Compagner [EMAIL PROTECTED] wrote:
 i would say use a ResourceLink for that.
  Then the resource is only useable for that session.
 
 
 On 9/15/05, Phil Kulak [EMAIL PROTECTED] wrote: 
  
  I need to allow users to download files, but they (the files) are
  secure and must only be viewed by the user I give the link to. I've 
  been using resources, but that has the consequence of the files coming
  out with the name app and no extension. Does anyone know of a way I
  can get the utility of a ResourceReference with the security of a 
  plain old resource? Thanks!
  
  
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server.
 Download
  it for free - -and be entered to win a 42 plasma tv or your very own 
  Sony(tm)PSP.  Click here to play:
 http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] setDefaultFormProcessing()

2005-09-14 Thread Phil Kulak
Currently if a button is found, it's onSubmit is called instead of the
form's. Why would you want to take the button's logic out of the
button?

On 9/14/05, Dipu [EMAIL PROTECTED] wrote:
  
 I am using the wicket version 1.1-b4,  
 when setDefaultFormProcessing() is set to false, the form is not getting
 submitted. 
   
 I have a form with the following code. 
   
 Button backButton = new Button(backButton) 
 backButton.setDefaultFormProcessing(false);
 add(backButton); 
   
   
 public void onSubmit()
 {   
 Button button = findSubmittingButton();
 if(button.getId().equals(backButton))  
{ 
//go back  
} 
else 
{ 
// do something 
} 
 } 
   
 how ever if i change the code like the following - it works 
   
 Button backButton = new Button(backButton)
   {
protected void onSubmit()
{
  //go back  
}
   } ;
   backButton.setDefaultFormProcessing(false);
   add(backButton); 
   
   
 Can't i have multiple buttons in a form and a common onSubmit method. 
 Or should i be following the second approach when i want to bypass the the
 validation and do a submit. 
   
   
 Regards 
 Dipu 
   
   



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Why is FileResourceStream final?

2005-09-14 Thread Phil Kulak
And we see how easilly it can all be taken away again. :D

On 9/14/05, Johan Compagner [EMAIL PROTECTED] wrote:
 i think we should jonathan look at the FileResourceStream now.
  I think he can think of some methods to make final now ;)
  lik getContentType() ;)
  
 
 On 9/14/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
  That's not a certainty though. We tend to be carefull when opening up the
 API.
  
  Eelco
  
  On 9/14/05, Scott Sauyet [EMAIL PROTECTED] wrote:
 = Scott Sauyet  [EMAIL PROTECTED] wrote:
 = Eelco Hillenius
  
Is there a good reason to have FileResourceStream final?  [ ... ]
 I made it non-final. 
  
   Ask and you shall receive.  Thanks.
  
  -- Scott
  
  
  
   ---
   SF.Net email is sponsored by:
   Tame your development challenges with Apache's Geronimo App Server.
 Download 
   it for free - -and be entered to win a 42 plasma tv or your very own
   Sony(tm)PSP.  Click here to play:
 http://sourceforge.net/geronimo.php
   ___ 
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user 
  
  
  
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server.
 Download
  it for free - -and be entered to win a 42 plasma tv or your very own 
  Sony(tm)PSP.  Click here to play:
 http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] GridPanel

2005-09-14 Thread Phil Kulak
No, don't use a ListView, use a DataView. You can do what you want
with the GridPanel, however, by implementing your own IColumn. That's
a bit of a pain though.

On 9/14/05, Troy MacNeil [EMAIL PROTECTED] wrote:
 Is there an easy way to add Links to a GridPanel? I'd like to change the
 edit button to go elsewhere instead of editing internally. I'd also like
 to change the column headers that are displayed.
 
 I vaguely recall seeing an example that did this using an interface
 (ILinkListener?) but can't find it anywhere.
 
 Right now I'm using a ListView to accomplish something like this but
 it's a lot of code for fewer features :)
 
 Thanks,
 Troy
 
 
 
 
 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ListItemModel update by index unsafe?

2005-09-14 Thread Phil Kulak
This is one of the main reason that Igor made DataView.

On 9/14/05, Johan Compagner [EMAIL PROTECTED] wrote:
 Updating by index works fine as long as the List behind it never changes.
  
  So if you know 100% sure that over request the list will not change
 (add/remove/order)
  then you can use index just fine.
  But if you have a list of 10. and Index 1 points to a user Jim at render
 time.
  Then User Johan is inserted at index 1 and user Jim is gone to index2.
  
  If now a update model comes in then the a textfield holding the name Jim
 will be bound to a 
  ListModel with index 1. He will get the user at index 1 but that is
 suddenly Johan 
  And you will override everything of Johan with Jim. So suddenly you have 2
 jims... 
  (Maybe in this example that would be better, having no Johan but 2 jims ;))
  
  If you store the ID of the user instead of the Index then before you update
 the model
  the user is loaded with its id. So it will not go wrong.
  
  So the rule is pretty simple:
  Can the list change over/between request yes or no. If yes then store id's
  if no then you can use index.
  
  
 
 On 9/13/05, Jim McBeath [EMAIL PROTECTED] wrote:
  On Tue, Sep 13, 2005 at 09:07:56PM +0200, Eelco Hillenius wrote:
   I think that is how ListItem started out many months ago. There have
   been several been several shouting indecent words about that, and it
   was 'fixed' to what it is now. I don't know, someone else (Johan?)
   should defend that decission.
  
  I would be interested in hearing about the potential problems associated
  with updating the underlying List using the index.  If this has all been 
  discussed before, I expect I could learn something from that discussion.
  I would not want to implement my own fix to do this, then run into some
  subtle problem down the road that has already been discussed here. 
  Can anyone point me to an old discussion about this, or post a summary?
  
  If ListItemModel will not update the underlying list, should it perhaps
  not allow it's value to be set?  I'm curious to see an example of where 
  the ability to set the local object in the ListItemModel is useful.
  If others, like me, assume that the ListItemModel is usable for updating
  the underlying List, it would be helpful to have ListItemModel.onSetObject
  throw an exception with a message telling the developer that he can't do
 that
  and will need to come up with another approach.
  
  --
  Jim
  
  
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server.
 Download
  it for free - -and be entered to win a 42 plasma tv or your very own
  Sony(tm)PSP.  Click here to play:
 http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] GridPanel

2005-09-14 Thread Phil Kulak
Oh, you'll want to use HibernateDataProvider or CriteriaDataProvider.
I'm about to get rid of HibernateDataSource to remove this confusion,
but it involves rewriting GridPanel. I hope to have it done before
this weekend when WicketStuff is released.

On 9/14/05, Troy MacNeil [EMAIL PROTECTED] wrote:
 Thanks, for the pointer. DataView does look much more like what I want
 and I'll have to take a closer look. I'd taken a quick look at it before
 but wasn't sure how to get from a HibernateDataSource or List to
 something it would like.
 
 Thanks,
 Troy
 
 
 On Wed, 2005-14-09 at 08:14 -0700, Phil Kulak wrote:
  No, don't use a ListView, use a DataView. You can do what you want
  with the GridPanel, however, by implementing your own IColumn. That's
  a bit of a pain though.
 
  On 9/14/05, Troy MacNeil [EMAIL PROTECTED] wrote:
   Is there an easy way to add Links to a GridPanel? I'd like to change the
   edit button to go elsewhere instead of editing internally. I'd also like
   to change the column headers that are displayed.
  
   I vaguely recall seeing an example that did this using an interface
   (ILinkListener?) but can't find it anywhere.
  
   Right now I'm using a ListView to accomplish something like this but
   it's a lot of code for fewer features :)
  
   Thanks,
   Troy
  
  
  
  
   ---
   SF.Net email is sponsored by:
   Tame your development challenges with Apache's Geronimo App Server. 
   Download
   it for free - -and be entered to win a 42 plasma tv or your very own
   Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server. Download
  it for free - -and be entered to win a 42 plasma tv or your very own
  Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Resource reference scoped to the current session?

2005-09-14 Thread Phil Kulak
I need to allow users to download files, but they (the files) are
secure and must only be viewed by the user I give the link to. I've
been using resources, but that has the consequence of the files coming
out with the name app and no extension. Does anyone know of a way I
can get the utility of a ResourceReference with the security of a
plain old resource? Thanks!


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Downloading files using Wicket

2005-09-13 Thread Phil Kulak
Check out FileResourceStream. Create one of those from your file, then
you can create a ResourceLink directly to it. Or, if you don't want to
create the resource for every user, you can wrap it in a resource
reference and link to that instead.

On 9/13/05, Scott Sauyet [EMAIL PROTECTED] wrote:
 I wrote:
  By the way, I don't have any control over MIME-types here.  The user
  might upload a text document, a PDF, a MS Word document, or may other
  things.  Is that going to be a problem?
 
 I now realize that this is an exageration.  Since I'm using
 wicket.markup.html.form.upload.FileUpload, I can use getContentType().
 I'm not storing that for now, but certainly can if need be.  Still how
 do I return an arbitrary file (not in the classpath, for instance) to
 the browser?
 
-- Scott
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Why is FileResourceStream final?

2005-09-13 Thread Phil Kulak
haha, I should have just asked. I've been using my own non-final
FileResourceStream for months now. :D

On 9/13/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 I made it non-final.
 
 Eelco
 
 
 On 9/13/05, Scott Sauyet [EMAIL PROTECTED] wrote:
  Is there a good reason to have FileResourceStream final?  I may be
  missing a better way to use it, but I feel I'm jumping through some
  serious hoops because I want to override one method of this class.  What
  I'd like to do is this:
 
   add(new ResourceLink(downloadLink, new Resource() {
   public IResourceStream getResourceStream() {
   return new FileResourceStream(
   new wicket.util.file.File(filename)) {
   public String getContentType() {
   if (filename.toLowerCase().endsWith(.doc)) {
   return application/msword;
   }
   return super.getContentType();
   }
   };
   }
   }));
 
  But because FileResourceStream is final, I need to do something like
  this instead:
 
   add(new ResourceLink(downloadLink, new Resource() {
   public IResourceStream getResourceStream() {
   return new IResourceStream() {
   FileResourceStream frs = new FileResourceStream(
   new wicket.util.file.File(filename));
 
   public String getContentType() {
   if (filename.toLowerCase().endsWith(.doc)) {
   return application/msword;
   }
   return frs.getContentType();
   }
   public void close() throws IOException {
   frs.close();
   }
   public InputStream getInputStream()
   throws ResourceStreamNotFoundException {
   return frs.getInputStream();
   }
   public Locale getLocale() {
   return frs.getLocale();
   }
   public long length() {
   return frs.length();
   }
   public void setLocale(Locale locale) {
   frs.setLocale(locale);
   }
   public Time lastModifiedTime() {
   return frs.lastModifiedTime();
   }
   };
   }
   }));
 
  Of course I should probably move this to a separate class, but,
  regardless, if it weren't final, this would be easier.
 
  Of course any suggestions for how to do this more easily would also be
  welcome!  :-)
 
  Thanks,
 
 -- Scott Sauyet
 
  P.S.  This class has the following Javadoc comment for its one (public)
  constructor: Private constructor to force use of static factory
  methods.  I don't think there is any static factory for this.  There
  certainly isn't one in the class itself.
 
 
 
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App Server. Download
  it for free - -and be entered to win a 42 plasma tv or your very own
  Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 ---
 SF.Net email is sponsored by:
 Tame your development challenges with Apache's Geronimo App Server. Download
 it for free - -and be entered to win a 42 plasma tv or your very own
 Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] dynamic list of Links

2005-09-12 Thread Phil Kulak
I would use a ListView that took a list of these guys:

interface LinkOnClick {
   public void onClick();
}

Then just call the onClick from inside each Link's onClick.

On 9/12/05, Johan Compagner [EMAIL PROTECTED] wrote:
 why must there be dynamic wicket ids?
  why do you need those? How would you target them in java?
 
  
 
 On 9/12/05, leo [EMAIL PROTECTED] wrote:
  i have a reusable MenuBar component that, among other things, contains a
 list of button implemented as Links (id=actionsList). 
  
  Now i would like to make this MenuBar component reusable, so that -among
 other things- buttons can be added  removed by parent component (usually
 the page)
  
  Each link must have its own wicket-id, and i can not figure out how to
 combine Link into a ListView subclass, because of the wicket-ids that need
 to be dynamically generated.
  
  Is it possible to use the ListView, or shall i implement a dedicated 
 LinkList (or whatever you call it) component ? 
  
  Thanks for your time,
  
  Leo
  
  
  --
  
  Menubar snipplet :
  
  div class=btnbar 
  table width=100%tr
...
td align=right style=width:400px
  
form wicket:id=searchform style=;padding:none;
input wicket:id=q name=q value=search... type=text
 onclick=this.value='' /
/form

span wicket:id=actionsList
a wicket:id=??? href=Link Label/a
/span

/td
  /tr/table
  /div
  
  
  
  Buttons bar should expand into something like :
  
  span wicket:id=actionsList
  a
 href=?path=3:menubar:searchForm:newContactLinkamp;interface=ILinkListener
  wicket:id=
  newContactLinkNew/a
  a
 
 href=?path=3:menubar:searchForm:lnkCardViewamp;interface=ILinkListener
 wicket:id
  =lnkCardView
  Panel view/a
  a
 href=?path=3:menubar:searchForm:lnkListViewamp;interface=ILinkListener
  
  wicket:id=lnkListViewList view/a
  /span
  
  
  
  
  
 



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] dynamic list of Links

2005-09-12 Thread Phil Kulak
Oh, better make the interface this:

interface LinkOnClick {
  public void onClick();
  public String linkText(); // Text for the label in the link.
}

On 9/12/05, Phil Kulak [EMAIL PROTECTED] wrote:
 I would use a ListView that took a list of these guys:
 
 interface LinkOnClick {
public void onClick();
 }
 
 Then just call the onClick from inside each Link's onClick.
 
 On 9/12/05, Johan Compagner [EMAIL PROTECTED] wrote:
  why must there be dynamic wicket ids?
   why do you need those? How would you target them in java?
 
 
 
  On 9/12/05, leo [EMAIL PROTECTED] wrote:
   i have a reusable MenuBar component that, among other things, contains a
  list of button implemented as Links (id=actionsList).
  
   Now i would like to make this MenuBar component reusable, so that -among
  other things- buttons can be added  removed by parent component (usually
  the page)
  
   Each link must have its own wicket-id, and i can not figure out how to
  combine Link into a ListView subclass, because of the wicket-ids that need
  to be dynamically generated.
  
   Is it possible to use the ListView, or shall i implement a dedicated
  LinkList (or whatever you call it) component ?
  
   Thanks for your time,
  
   Leo
  
  
   --
  
   Menubar snipplet :
  
   div class=btnbar 
   table width=100%tr
 ...
 td align=right style=width:400px
  
 form wicket:id=searchform style=;padding:none;
 input wicket:id=q name=q value=search... type=text
  onclick=this.value='' /
 /form
  
 span wicket:id=actionsList
 a wicket:id=??? href=Link Label/a
 /span
  
 /td
   /tr/table
   /div
  
  
  
   Buttons bar should expand into something like :
  
   span wicket:id=actionsList
   a
  href=?path=3:menubar:searchForm:newContactLinkamp;interface=ILinkListener
   wicket:id=
   newContactLinkNew/a
   a
  
  href=?path=3:menubar:searchForm:lnkCardViewamp;interface=ILinkListener
  wicket:id
   =lnkCardView
   Panel view/a
   a
  href=?path=3:menubar:searchForm:lnkListViewamp;interface=ILinkListener
  
   wicket:id=lnkListViewList view/a
   /span
  
  
  
  
  
 
 



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to disable a form component ?

2005-09-12 Thread Phil Kulak
add(new TextField(tf)
   .add(new AttributeModifier(disable, true, new Model(disable;

Is that what you're looking for? I don't have to API by me, but that
should be close.

On 9/12/05, Ingram Chen [EMAIL PROTECTED] wrote:
 Is there any way to disable form component in java code ?
  
  input type=text disable=disable /
 
 -- 
 Ingram Chen
 Java [EMAIL PROTECTED]
 Institue of BioMedical Sciences Academia Sinica Taiwan
 blog: http://www.javaworld.com.tw/roller/page/ingramchen


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Dynamic Forwards With Wicket

2005-09-07 Thread Phil Kulak
I would just create an inner class for the model object:

private static class FormObject {
   public MyObject myDomainObject = new MyObject();;
   public String nextUrl;
}

and then something like:

add(new MyForm(form, new CompoundPropertyModel(new FormObject(;

On 9/7/05, Nick Heudecker [EMAIL PROTECTED] wrote:
 I want to provide the user with the option of selecting the next screen they
 go to after a form is processed.  For instance, the user creates object A. 
 There are two likely areas they could go to next: view the summary or create
 a child object of A.  I would like to provide this as a function of the Form
 subclass, like adding a Panel with a selection list with available targets.
  
  My problem is I don't understand how to create this Form subclass that
 basically has two models: one for the actual model that's being
 created/edit, and a second for the next page the user should see.  Any
 suggestions or examples?  Thanks.



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] new autocomplete components

2005-09-05 Thread Phil Kulak
Hey there, Ryan. It looks like your stuff broke during the Ajax
refactor. I thought I took care of it by getting rid of the NPEs, but
now formComponent.getValue() on line 98 of AjaxAutocompleteTextField
always returns the empty string. I'm not even sure how that whole
block of code is working, so I thought I'd let you know.


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Style of development (many web pages vs many panels)

2005-09-05 Thread Phil Kulak
I like to stay as state oriented as possible. Mainly because that way
I can take advantage of bookmarkable pages much more. Also for the
reasons Eelco stated.

On 9/5/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 I prefer to work with pages. With this approach, you can still reuse
 panels ofcourse. But my experience is that allthough it is nice to
 have your pages componentized to the max by breaking it up in smaller,
 possibly reusable parts, it is also easy to loose track. I like to
 work with pages as I can see in one glance what that page is doing. I
 try to wait breaking out panels until I need similar components in
 other pages. If reuse not needed, I keep my stuff in pages. The
 disadvantage of this though, is that you need to pass around state
 (models), and worry about navigation more.
 
 
 Eelco
 
 
 On 9/5/05, Kenneth Foo [EMAIL PROTECTED] wrote:
 
  Hi
 
  Just curious here as to which is more correct
 
  Was trying out wicket and noticed that i have a tendency to design apps
  where there are
  few pages (2 or 3 WebPage objects), and many more panels (navigation panels,
  main content panel, header panel).
  The main content panel would then be interchanged with the necessary
  module panels.
 
  (eg. if I click on a user management link in the navigation panel, I'll
  swap what's in the main content panel with the
  user management panel. In this user management panel, I'll have a user
  listing panel, an edit user panel, etc which I'll
  swap depending on which one i'm interested to use. The responsibility of
  swapping belongs to the parent container which
  decides on what to swap with based on the events fired by the subpanels)
 
 
 
  In this model,each page has 1 form, and within this form, I have panels of
  modules (such as user management module,
  etc...). Panels nest with other panels, sometimes up to 3-5 levels deep.
 
  I'm curious whether others are using this method (which I feel is more
  componentized), or the more traditional
  web-style approach where we have many pages (eg. one page for user listing,
  one page for editing user details, etc)
  and transferring navigation to these pages via redirects/etc or
  requestCycle.setResponsePage().
 
  Off the top of my head, using panels instead of web pages allows me to reuse
  the user management module in other web apps
  or for quick prototyping.
 
  What are your thoughts, guys?
 
 
  Regards
  Kenneth
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] new autocomplete components

2005-09-04 Thread Phil Kulak
Very impressive! Thanks for contributing this. I see myself using it a
lot in the future.

Is there anyway to make CustomLayoutAjaxAutocompleteTextField take a
panel instead of an entire page? Maybe make the class name a bit
longer too. ;)

On 9/4/05, Ryan Sonnek [EMAIL PROTECTED] wrote:
 Hey Wicket AJAX developers,
 I just finished up revamping the scriptaculous autocomplete components
 and would like any feedback.  I've been working on the
 wicket-contrib-prototype subproject and think it's looking pretty
 good.  =)
 
 I've decided to create 3 different components for different use cases
 and I wrote up a little article on my blog to show how to use the
 different components.  There are also examples in wicket-stuff for
 anyone interested.
 
 http://jroller.com/page/wireframe/?anchor=choice_is_good
 
 Any thoughts on future changes?
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] No RequestCycle on ResourceReference.newResource()?

2005-09-02 Thread Phil Kulak
I need a resource reference though, and DynamicByteArrayResource is a
Resource. But you're right, it's not lazy. But that's okay. I'd rather
it didn't store any state since my data in on the filesystem and the
database.

I'm not sure what you mean by when I make the resources. Here's the
jist of the class:

public class MyResourceReference extends ResourceReference {
   public Resource newResource() {
  // do a bunch of database lookups and things...
   }
}

I do have it working right now, but I had to add a servlet filter and
store the WebApplicationContext in ThreadLocal to do it, which isn't
all that bad, actually. Maybe it's even a bit more elegant then doing
a ThreadLocal lookup of the RequestCycle and then walking a huge
object graph.

On 9/2/05, Johan Compagner [EMAIL PROTECTED] wrote:
 that's strange
 at what time do you make those resources?
 
 newResource is not lazy by the way,
 you should do that with DynamicByteArrayResource
 and then do you thing on getData()
 
 johan
 
 
 Phil Kulak wrote:
  I'm trying to lazy-load some data from my database in
  ResourceReference.newResource(), but I can't get to any of my DAOs
  because for some reason RequestCycle.get() returns null. Is this a
  show stopper, or is there a way around this? It surprises me that
  there is no request cycle at this point. Anyway, thanks!
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] No RequestCycle on ResourceReference.newResource()?

2005-09-02 Thread Phil Kulak
Oh, okay, I got ya. I think that null pointer is coming from
getSize(), actually. But the more I look at my code, the more I think
I'm going to redo it. I'm using my own thumbnailing right now to store
the thumbnails on the filesystem, but I think it would be better if I
just used Eelco's ThumbnailImageResource and kept them in memory since
it look like that's what's going to happen anyway as soon as a make a
reference to it.

Sorry about wasting your time with this thread. I know a whole lot
more about wicket resources now, though. :D

On 9/2/05, Johan Compagner [EMAIL PROTECTED] wrote:
 The question was when are you making those resources?
 At what time in youre application?
 Because if you do it in a request then there must be a RequestCycle
 (Except when the resource itself is hit for a last modified then you
 only have a application)
 
 but what i meant with a bit more lazy:
 
 public class MyResourceReference extends ResourceReference {
public Resource newResource() {
   return new DynamicByteArrayResource()
   {
 
 getData()
 {   // do a bunch of database lookups and things...
 }
   }
}
 }
 
 
 
 Phil Kulak wrote:
  I need a resource reference though, and DynamicByteArrayResource is a
  Resource. But you're right, it's not lazy. But that's okay. I'd rather
  it didn't store any state since my data in on the filesystem and the
  database.
 
  I'm not sure what you mean by when I make the resources. Here's the
  jist of the class:
 
  public class MyResourceReference extends ResourceReference {
 public Resource newResource() {
// do a bunch of database lookups and things...
 }
  }
 
  I do have it working right now, but I had to add a servlet filter and
  store the WebApplicationContext in ThreadLocal to do it, which isn't
  all that bad, actually. Maybe it's even a bit more elegant then doing
  a ThreadLocal lookup of the RequestCycle and then walking a huge
  object graph.
 
  On 9/2/05, Johan Compagner [EMAIL PROTECTED] wrote:
 
  that's strange
  at what time do you make those resources?
 
  newResource is not lazy by the way,
  you should do that with DynamicByteArrayResource
  and then do you thing on getData()
 
  johan
 
 
  Phil Kulak wrote:
 
  I'm trying to lazy-load some data from my database in
  ResourceReference.newResource(), but I can't get to any of my DAOs
  because for some reason RequestCycle.get() returns null. Is this a
  show stopper, or is there a way around this? It surprises me that
  there is no request cycle at this point. Anyway, thanks!
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
  Practices
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process

Re: [Wicket-user] Integrating FCKeditor

2005-09-01 Thread Phil Kulak
FCK tends to spit out nicer HTML and it's configuration is easier, at
least when I tried both of them a while back.

-Phil

On 9/1/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 That would be a very nice component to have in extensions. So if you
 make it really nice... I think an API like DatePicker works for a
 component like this. The 'problem' is that components like these are
 very configurable. You don't want to loose too much of this
 flexibility, but you have to choose between how much you support
 (strongly typed) out of the box and what part you don't (or e.g.
 support by having a template method for JS generation).
 
 Of course, if you just want to use it in your own project, you don't
 have to support the flexibility, and don't have to think hard about
 what a good API would be. It's fun to try to really make it good
 though.
 
 One final thing. For previewability, it would be great if you could
 attach the rich text component just to a textarea tag.
 
 Eelco
 
 
 On 9/1/05, Nick Heudecker [EMAIL PROTECTED] wrote:
 
   make it as easy to use as possible for users.
 
 
   Where's the fun in that? :)
 
 
   did you look at this one:
  
   http://tinymce.moxiecode.com/
 
   I did look at TinyMCE.  I think they're pretty similiar and both licensed
  under the LGPL.  Which one I use doesn't really matter to me, so if people
  on the mailing list have preferences, I'll go with what's preferred.
 
 
 
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] RequestCycle.onRuntimeException(Page, RuntimeException)

2005-08-30 Thread Phil Kulak
Was this method moved or removed?


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] RequestCycle.onRuntimeException(Page, RuntimeException)

2005-08-30 Thread Phil Kulak
No no, I like it better this way. For some reason I just posted here
instead of doing a text search. :D

On 8/30/05, Johan Compagner [EMAIL PROTECTED] wrote:
 can revert it if you want?
 ;)
 
 
 Phil Kulak wrote:
  Coolness, thanks.
 
  On 8/30/05, Johan Compagner [EMAIL PROTECTED] wrote:
 
  yes
  moved to Application
  because it is very hard to really override that method
 
  make Application make session make factory make xx make yy and then you
  had youre WebRequestCycle...
  (where you also have to do all kinds of cast)
 
  i didn't like that very much.
 
  johan
 
 
  Phil Kulak wrote:
 
  Was this method moved or removed?
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
  Practices
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Setting of hasErrorMessage on FormComponents

2005-08-30 Thread Phil Kulak
DataView handles all of that transparently, so it may be worth looking into.

On 8/30/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 We found what it is. Quite logical actually.
 
 By default, optimizeItemRemoval is set to false, which means that
 ListView replaces all child components by new instances. The idea
 behind this, is that you allways render the fresh data, and as people
 usually use ListViews for displaying read-only lists (at least, that's
 what we think), this is good default behaviour.
 
 However, as the component is replaced before the rendering starts, the
 search for specific messages for that component fails. It doesn't
 exist anymore! And there's more. The other problem is that 'wrong'
 user input is kept as (temporary) instance data of the components -
 the input fields in your case). And as these components are replaced
 by new one, your user will never see the wrong data.
 
 This may sound bad, but it is not too bad actually. The fix is to just
 set optimizeItemRemoval to true whenever your nest a ListView in a
 Form. There's only one disadvantage to that: when your list (the model
 of the ListView) changes, you have to manually notify ListView so it
 will render itself from scratch again. But that's probably something
 you won't need often in forms.
 
 Good luck, hope it solves your problem, and sorry it took us a while
 to look into your problem,
 
 Eelco
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Setting of hasErrorMessage on FormComponents

2005-08-30 Thread Phil Kulak
Oh, looks like you have to explicitly set userOptimizeItemRemoval now.
However, when you do that, it is all handled for you. Take a look at
populateItemsOIR().

On 8/30/05, Johan Compagner [EMAIL PROTECTED] wrote:
 how so?
 
 private void populateItems()
 {
 final IDataProvider dataProvider = getDataProvider();
 final int size = getViewSize();
 super.removeAll();
 
 that one is called if you don't do optimizedRemoval
 
 so also then very component (== dataitem with its content) is recreated
 
 johan


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Registering dynamically added controls

2005-08-29 Thread Phil Kulak
public void onSubmit() {
   MapString, FileItem files = ((MultipartWebRequest)
getRequest()).getFiles();
   // do something with the files...
}

Badda bing. :)

On 8/29/05, Scott Sauyet [EMAIL PROTECTED] wrote:
 Sorry, I'm still missing some of the basics here, so this may be a dumb
 question.
 
 I would like to dynamically update a form, using Javascript to add new
 .input type=file controls so there is no round-trip to the server to
 add additional files to the linked set of uploads.  Can Wicket get at
 these dynamically added controls?  Is there some example code for
 something similar?
 
 Thanks,
 
-- Scott
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How do I unit test interactively without container ?

2005-08-28 Thread Phil Kulak
Jetty + JWebUnit is a really nice solution for me at least.

On 8/28/05, Martijn Dashorst [EMAIL PROTECTED] wrote:
 In a previous project we used the Jetty embedded servlet container,
 together with a TestSetUp decorator (the same we use in the Wicket
 examples), and that kept the tests running fast. TDD was possible
 using such a setup.
 
 Martijn
 
 
 On 8/28/05, Ingram Chen [EMAIL PROTECTED] wrote:
  Thanks for educational advice ! I have tried Link example and it works
  great ! Though I still can not make Form submission work with similar
   way... and It seems that there is no example code for
   mockRequest.setRequestToFormComponent(form, map). I will
  investigate its
   source later.
 
 
   Anyway, Wicket Page serves both View and Controller in presentation layer,
   so it can not avoid writing navigation flow logic in WebPage. Additionally,
   Form typically contains various complex validations, it is helpful that
  writing
   such Test against Java class directly without the need of container. We had
   tried integration-test (such as jWebUnit) before, but it slows down
  developing
   rhythm and hard to practice TDD (because too coarse) . We prefer to keep
  most Test
   small and lightweight, and treat in-container test as last resort.
 
 
 
   On 8/28/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
   You can use them for behavioural tests too. E.g. checking that a
   certain link handler is executed etc.
  
   The mock objects provide you with a minimal simulated web application
   enivornment. That's the least you need for your tests to be usefull.
   You usually want to test rendering results, as that is the goal of
   your web application after all: providing a user interface. For all
   non-render tests - of which I think that usually is about business
   logic, which should be in your business layer and tested independently
   of your presentation layer - just test the callbacks. The mockups will
   execute just like when in a container.
  
   Eelco
  
   On 8/28/05, Ingram Chen [EMAIL PROTECTED]  wrote:
Hi,
   
I have spent some time on test case from Wicket-core source.
 Wicket provides MockApplication and MockHttpServletRequest... etc. to
  help
 testing without the need of container. However, It seems that such test
  is
just related
 to rendering of the page or component. I do not find any examples
  about
behavior test,
 for example:
   
 public ManageBookPage() {
 Form form = new Form(createBookForm) {
 protected void onSubmit() {
 // do some business logic.
 setResponsePage(CreateBook.class);
 }
 };
 add(form) ;
 }
   
 Is it possible to unit test createBookForm submission on the
  ManageBookPage
 without container ?
   
 --
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog:
  http://www.javaworld.com.tw/roller/page/ingramchen
  
  
   ---
   SF.Net email is Sponsored by the Better Software Conference  EXPO
   September 19-22, 2005 * San Francisco, CA * Development Lifecycle
  Practices
   Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
   Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
 
  --
  Ingram Chen
  Java [EMAIL PROTECTED]
  Institue of BioMedical Sciences Academia Sinica Taiwan
  blog: http://www.javaworld.com.tw/roller/page/ingramchen
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Rich Text Editing Controls...

2005-08-28 Thread Phil Kulak
I like FCK, but support for any one of them would be very trivial. All
you would have to do is add a couple lines of JS to the header and
maybe add an attribute to the tag.

On 8/28/05, Kenneth Foo [EMAIL PROTECTED] wrote:
  
   
 We've used TinyMCE with with some good results. 
   
 http://tinymce.moxiecode.com/ 
   
 Although it has its fair share of problems compared to FCKEditor or HTMLArea
 (eg. CSS styles are lost, etc), it's one of the more customizable ones with
 active development. 
   
 FCK is pretty good also, and version 2.0 has just been released.
  
   
   
   
  
 - Original Message - 
 From: Jesse Sightler 
 To: wicket-user@lists.sourceforge.net 
 Sent: Monday, August 29, 2005 9:30 AM 
 Subject: [Wicket-user] Rich Text Editing Controls... 
 
 Just curious, does anyone have any experiences with good, easily
 customizable Rich Text Editing controls that could be integrated into
 Wicket?  I've been tossing the idea around of integrating one (haven't
 gotten into evaluations yet) for a project, and would like to hear any first
 hand experiences.  Of course, if anything comes of it code will be
 contributed back to the Wicket (FOSS license) community.
 
 Thanks,
 Jess
 



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] TypeValidator doesn't check if a date is valid

2005-08-26 Thread Phil Kulak
No, it's DateFormat.setLenient(boolean lenient).

On 8/26/05, Nick Heudecker [EMAIL PROTECTED] wrote:
 I think the leniency is in Calendar, not DateFormat.
 
 On 8/25/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
  That's probably the lenient feature of DateFormat. Thought that was
  off by default. Could you open an issue please?
 
  Eelco
 
  On 8/25/05, Johannes Fahrenkrug [EMAIL PROTECTED] wrote:
   Ok, new insights on this issue: the date automatically gets corrected...
   of course because the casting of the string to the Java date object does
   that...
  
   the question remains if it makes sense to auto-correct the date or if
   any invalid date should raise an error, informing the user that
   something isn't right (i.e. he entered 31.02.05 but meant 31.03.05.
   the date gets auto corrected to 04.03.05 which is not at all what the
   user wanted - and for business reasons... if such a corrected but not
   wanted date is given, it might cause problems...).
  
   I understand that the TypeValidator simply checks if Java can cast the
   entered value into the given type... but for a date that might not be
   the desired behavior... I know that the datePicker would be an option,
   but I think that the datePicker only works with JavaScript enabled...
  
   - Johannes
  
   Johannes Fahrenkrug wrote:
  
Hi,
   
shouldn't the TextField, when you add a TypeValidator of type Date to
it, check if the entered date is valid?
I can enter the 31st of February, or even the 32nd.
   
And I have to set the Locale for the whole session in order for it to
accept the German date format. When I only pass a new Locale object to
the constructor of TypeValidator it doesn't work.
   
This is the code:
   
Locale locale_de = new Locale(de, DE);
   
getSession().setLocale(locale_de);
add(new TextField(birthdate, new PropertyModel(person, birthdate),
Date.class).add(new TypeValidator(Date.class, locale_de)));
   
- Johannes
   
   
---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing
 QA
Security * Process Improvement  Measurement * 
http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
  
   ---
   SF.Net email is Sponsored by the Better Software Conference  EXPO
   September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
   Practices
   Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
   Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Poolable pages

2005-08-26 Thread Phil Kulak
Pooling has some huge drawbacks since it really goes against the
language itself. I think it's good for things like DB connections that
really are expensive, but for pages? They're just objects.

On 8/26/05, Johan Compagner [EMAIL PROTECTED] wrote:
 ahh
 ok now i get also eelco's response
 
 many people are asking the question but then mean for one session (how
 to reuse pages)
 
 But no storing them in such a thing as an application wouldn't be very
 wise i think.
 But what is really gained? Memory? If you use detachable models i don't
 think that much.
 
 you could do it i think.
 But then there has to be a counter that a page is not in any page map of
 any user any more
 and then it could be returned to  a pool. (so it really has to go away
 from all the sessions)
 But this is pretty hard, because developers can also hold references to
 pages, because they are just objects.
 
 So pooling over multiply users is in my eyes not needed and strange
 errors can lurk around
 
 johan
 
 
 Christian Essl wrote:
  Thanks,
 
  Sorry if I expressed myself unclear, but I rather meant to share the
  same page-instance for different users (not concurrently). But it does
  not work and was a rather stupid question.
 
  Christian
 
  On Fri, 26 Aug 2005 15:21:45 +0200, Johan Compagner
  [EMAIL PROTECTED] wrote:
 
  you can build it pretty easy.
  Just extend WebSession and hold a map with pages you like to pool.
 
 
  Christian Essl wrote:
  I was just following the discussion on the Tapestry and JSF
  comparision.
 
  I wonder if it is possible to use in wicket pooled pages. Something
  like a detachable-model for pages which gets stored in the Session
  instead of the actual page. Can something similar be achieved in
  wicket?
 
  I don't currently need it. So it is just a question and no proposal
  or so.
 
  Christian
 
  ___ Gesendet
  von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden:
  http://mail.yahoo.de
 
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle
  Practices
  Agile  Plan-Driven Development * Managing Projects  Teams *
  Testing  QA
  Security * Process Improvement  Measurement *
  http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle
  Practices
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing
   QA
  Security * Process Improvement  Measurement *
  http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Cayenne advantages

2005-08-26 Thread Phil Kulak
Gili, don't think that just because you are not directly insulting
someone that they have no right to be angry with you and possibly say
something to you that you find insulting. In your mind open source
developers have an obligation to see that you are properly educated
about all aspects of their project. In reality, top notch
documentation and free support on a mailing list or forum is nice, and
may certainly make one project better then another, but they are by no
means a requirement of a successful project. I'm sure that this
attitude is very difficult for developers to deal with and is probably
what makes most of them react to you the way they do.


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: expand emty tags

2005-08-26 Thread Phil Kulak
Yea, but span/span also has no body.

On 8/26/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 We used to have that some time ago and users complaint about the
 magic, which didn't fit there use case. Currently it is easy: we do
 not automatically convert span/ into span. We do not change any
 tag automatically. And because a span/ has no body, onComponentBody
 is not called either.
 
 Juergen
 
 On 8/26/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
  So... do we have an issue for this in the issue DB then? Juergen, is
  that hard to fix?
 
  Eelco
 
  On 8/26/05, Gili [EMAIL PROTECTED] wrote:
  
 Agreed. We should not fail silently. Furthermore just because 
   sometimes
   previews as a no-op does not mean it should not render at runtime when
   Wicket populates its body. span/span and /span are considered to
   be equivilent in XML. I would say treating it differently is a bug.
  
   Gili
  
   Igor Vaynberg wrote:
I always do span[shortdesc]/span because its nice to see the preview
   of
where things go, but this should in no way be required, or at least do
   not
fail silently!
   
-Igor
   
   
   
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of
   Phil Kulak
   Sent: Thursday, August 25, 2005 6:37 PM
   To: wicket-user@lists.sourceforge.net
   Subject: Re: [Wicket-user] expand emty tags
   
   Jonathan told me it was because nothing would be previewed in
   a WYSIWYG editor, so Wicket displayed nothing as well.
   Personally, I don't like writing span/span.
   
   On 8/25/05, Igor Vaynberg [EMAIL PROTECTED] wrote:
   
   
   i thought the same
   -Igor
   
   
   

From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of Jesse
   Sightler
   Sent: Thursday, August 25, 2005 4:59 PM
   To: wicket-user@lists.sourceforge.net
   Subject: Re: [Wicket-user] expand emty tags
   
   
   Er, how exactly can that be a feature?  I thought the resolution
   before was to fix this bug. :)
   
   
   On 8/25/05, Phil Kulak  [EMAIL PROTECTED] wrote:
   
   This has been discussed before. Long story short, it's a
   
   feature not
   
   a
   
   bug. ;)
   
   On 8/25/05, pepone pepone [EMAIL PROTECTED] wrote:
   
   Hello when i write a component and put a markup tag like this
   
   span wicket:id=lblName/ the value of the tag is not render
   
   it only run it is writed in this way span
   wicket:id=lblNamename/span
   
   is this a bug of only is valid the sencod way?
   
   
   ---
   SF.Net email is Sponsored by the Better Software
   
   Conference  EXPO
   
   September 19-22, 2005 * San Francisco, CA * Development
   
   Lifecycle
   
   Practices
   
   Agile  Plan-Driven Development * Managing Projects  Teams *
   Testing 
   
   QA
   
   Security * Process Improvement  Measurement *
   
   http://www.sqe.com/bsce5sf
   
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   
   
   https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   ---
   SF.Net email is Sponsored by the Better Software
   
   Conference  EXPO
   
   September 19-22, 2005 * San Francisco, CA * Development Lifecycle
   
   Practices
   
   Agile  Plan-Driven Development * Managing Projects  Teams *
   Testing  QA Security * Process Improvement  Measurement *
   http://www.sqe.com/bsce5sf
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
   
   ---
   SF.Net email is Sponsored by the Better Software Conference 
   EXPO September 19-22, 2005 * San Francisco, CA * Development
   Lifecycle Practices Agile  Plan-Driven Development *
   Managing Projects  Teams * Testing  QA Security * Process
   Improvement  Measurement * http://www.sqe.com/bsce5sf
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
   
   
   
   
   
   
   
   
---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
   Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing 
   QA
Security * Process Improvement  Measurement * 
http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
   --
   http://www.desktopbeautifier.com/
  
  
   ---
   SF.Net email is Sponsored

Re: [Wicket-user] Re: expand emty tags

2005-08-26 Thread Phil Kulak
Hmm... it would make sense if there were a distinction between the
empty string and null in XML. You're probably right.

On 8/26/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 hmm? the body is  isn't it?
 
 On 8/26/05, Phil Kulak [EMAIL PROTECTED] wrote:
  Yea, but span/span also has no body.
 
  On 8/26/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:
   We used to have that some time ago and users complaint about the
   magic, which didn't fit there use case. Currently it is easy: we do
   not automatically convert span/ into span. We do not change any
   tag automatically. And because a span/ has no body, onComponentBody
   is not called either.
  
   Juergen
  
   On 8/26/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
So... do we have an issue for this in the issue DB then? Juergen, is
that hard to fix?
   
Eelco
   
On 8/26/05, Gili [EMAIL PROTECTED] wrote:

   Agreed. We should not fail silently. Furthermore just because 
 sometimes
 previews as a no-op does not mean it should not render at runtime when
 Wicket populates its body. span/span and /span are considered to
 be equivilent in XML. I would say treating it differently is a bug.

 Gili

 Igor Vaynberg wrote:
  I always do span[shortdesc]/span because its nice to see the 
  preview
 of
  where things go, but this should in no way be required, or at least 
  do
 not
  fail silently!
 
  -Igor
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Phil Kulak
 Sent: Thursday, August 25, 2005 6:37 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] expand emty tags
 
 Jonathan told me it was because nothing would be previewed in
 a WYSIWYG editor, so Wicket displayed nothing as well.
 Personally, I don't like writing span/span.
 
 On 8/25/05, Igor Vaynberg [EMAIL PROTECTED] wrote:
 
 
 i thought the same
 -Igor
 
 
 
  
  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Jesse
 Sightler
 Sent: Thursday, August 25, 2005 4:59 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] expand emty tags
 
 
 Er, how exactly can that be a feature?  I thought the resolution
 before was to fix this bug. :)
 
 
 On 8/25/05, Phil Kulak  [EMAIL PROTECTED] wrote:
 
 This has been discussed before. Long story short, it's a
 
 feature not
 
 a
 
 bug. ;)
 
 On 8/25/05, pepone pepone [EMAIL PROTECTED] wrote:
 
 Hello when i write a component and put a markup tag like this
 
 span wicket:id=lblName/ the value of the tag is not render
 
 it only run it is writed in this way span
 wicket:id=lblNamename/span
 
 is this a bug of only is valid the sencod way?
 
 
 ---
 SF.Net email is Sponsored by the Better Software
 
 Conference  EXPO
 
 September 19-22, 2005 * San Francisco, CA * Development
 
 Lifecycle
 
 Practices
 
 Agile  Plan-Driven Development * Managing Projects  Teams *
 Testing 
 
 QA
 
 Security * Process Improvement  Measurement *
 
 http://www.sqe.com/bsce5sf
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 ---
 SF.Net email is Sponsored by the Better Software
 
 Conference  EXPO
 
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle
 
 Practices
 
 Agile  Plan-Driven Development * Managing Projects  Teams *
 Testing  QA Security * Process Improvement  Measurement *
 http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference 
 EXPO September 19-22, 2005 * San Francisco, CA * Development
 Lifecycle Practices Agile  Plan-Driven Development *
 Managing Projects  Teams * Testing  QA Security * Process
 Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 
 
 
  ---
  SF.Net email is Sponsored by the Better Software

Re: [Wicket-user] TypeValidator doesn't check if a date is valid

2005-08-26 Thread Phil Kulak
haha, I stand corrected. :)

On 8/26/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Actually, it's both. It's on DateFormat, as that is what we use in
 Wicket. However DateFormat uses an instance of Calendar:
 
 public void setLenient(boolean lenient)
 {
 calendar.setLenient(lenient);
 }
 
 :)
 
 Sorry, couldn't resist being a smart ass.
 
 Eelco
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] expand emty tags

2005-08-25 Thread Phil Kulak
This has been discussed before. Long story short, it's a feature not a bug. ;)

On 8/25/05, pepone pepone [EMAIL PROTECTED] wrote:
 Hello when i write a component and put a markup tag like this
 
 span wicket:id=lblName/ the value of the tag is not render
 
 it only run it is writed in this way
 span wicket:id=lblNamename/span
 
 is this a bug of only is valid the sencod way?
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] expand emty tags

2005-08-25 Thread Phil Kulak
Jonathan told me it was because nothing would be previewed in a
WYSIWYG editor, so Wicket displayed nothing as well. Personally, I
don't like writing span/span.

On 8/25/05, Igor Vaynberg [EMAIL PROTECTED] wrote:
  
 i thought the same 
 -Igor 
  
  
  
  
  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Jesse Sightler
 Sent: Thursday, August 25, 2005 4:59 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] expand emty tags
 
  
 Er, how exactly can that be a feature?  I thought the resolution before was
 to fix this bug. :)
 
  
 On 8/25/05, Phil Kulak  [EMAIL PROTECTED] wrote: 
  This has been discussed before. Long story short, it's a feature not a
 bug. ;) 
  
  On 8/25/05, pepone pepone [EMAIL PROTECTED] wrote:
   Hello when i write a component and put a markup tag like this
  
   span wicket:id=lblName/ the value of the tag is not render 
  
   it only run it is writed in this way
   span wicket:id=lblNamename/span
  
   is this a bug of only is valid the sencod way?
  
  
   ---
   SF.Net email is Sponsored by the Better Software Conference  EXPO
   September 19-22, 2005 * San Francisco, CA * Development Lifecycle
 Practices
   Agile  Plan-Driven Development * Managing Projects  Teams * Testing 
 QA 
   Security * Process Improvement  Measurement *
 http://www.sqe.com/bsce5sf
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user 
  
  
  
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle
 Practices 
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___ 
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user 
  
 



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax autocomplete text field

2005-08-23 Thread Phil Kulak
I updated your source for the latest Wicket build and moved the
stylesheet into the header. Do you mind if I commit that?

On 8/22/05, Phil Kulak [EMAIL PROTECTED] wrote:
 I would love it if you committed this somewhere or posted a formal jar
 that I could play with. It would be nice if Wicket had a good auto
 complete field and yours is a better start then what I came up with
 last week, I believe.
 
 On 8/22/05, Martijn Dashorst [EMAIL PROTECTED] wrote:
  Hi Ryan,
 
  I read your blog entry (and commented on it on my own). Nice poem :)
 
  Announcing is perfectly suited for the userlist. Technical discussions
  are preferred in the development list.
 
  Martijn
 
  Ryan Sonnek wrote:
 
  Hey Wicket users and developers,
  I dug into the experimental ajax support in wicket this weekend and was
  able to create an auto complete text field very similar to the one's
  used in scriptalicious demos
  (http://script.aculo.us/demos/ajax/autocompleter_customized).  I've
  posted the code along with my experience on my blog and I would
  appreciate any feedback or suggestions for improvement
  (http://jroller.com/page/wireframe/?anchor=wicket_autocomplete_text_fiel
  d).
  
  Also, I would like to offer this code up to the wicket project if there
  is any interest in adding out-of-the box ajax components.  Let me know
  if there's someway to get this discussion started!  Thanks for the great
  framework, and for making web development fun again.
  
  Not sure if this is the appropriate list for this discussion, or if this
  should be carried on to the developers list.
  
  Ryan Sonnek
  
  
  
 
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Inline error messages

2005-08-23 Thread Phil Kulak
Check out FormComponentFeedbackBorder, or you can do what I do and
just make your own markup container like so (untested):

public class ErrorIndicator extends WebMarkupContainer {
   FormComponent component;

   public ErrorIndicator(String id, FormComponent component) {
  super(id);
  this.component = component;
   }

   public boolean isVisible() {
  return component.hasErrorMessage();
   }
}

On 8/22/05, Gregg D Bolinger [EMAIL PROTECTED] wrote:
 I have been able to use the FeedbackPanel just fine.  What I am looking at
 is using inline error messages.  Any information on how to do that?
  
  Thanks.
  
  Gregg
  
  



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] CSS and visibility in DreamWeaver

2005-08-23 Thread Phil Kulak
What I've done is have all my HTML files in one folder (there was a
topic on that recently) and then just copy stylesheets and images over
to that folder for previewing. It's not very elegant, but the
alternative is to have every single image and stylesheet handled by
Wicket, which is a bit of a pain.

On 8/23/05, Kenneth Foo [EMAIL PROTECTED] wrote:
 Hi
 
 Just curious, if my css files is in a web folder, but my htmls are in the
 same folder as my java classes,
 how do I make DreamWeaver apply the CSS style while editing the html?
 
 As far as I know, if I use something like this in my html
 
 head
 link rel=stylesheet type=text/css href=style.css/
 /head
 
 Dreamweaver expects the CSS to be in the same folder as the html file.
 And since the CSS is not in the same folder, I only gain style-less WYSIWYG
 editing in DreamWeaver :(
 
 Any help would be great!
 
 Thanks!
 
 Kenneth
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Kickstart Problem

2005-08-23 Thread Phil Kulak
Is that label in a form?

On 8/23/05, Eric Rodriguez [EMAIL PROTECTED] wrote:
 First of all, I apologize for the beginner question.  I am fairly new to
 Java and Wicket.
 
 I have download the Wicket Kickstart 1.0.1 today and I am having some
 trouble.
 The default Kickstart app worked fine, however when I decided to add a
 Label to
 the page I got the following error:
 
 ==
 wicket.markup.MarkupException: Unable to find component with id 'foo' in
 [Page class = wicket.quickstart.Index, id = 19]
 [markup =
 file:/C:/Documents%20and%20Settings/errodr/workspace/foo/target/classes/
 wicket/quickstart/Index.html, index = 1, current = 'span
 wicket:id=foo' (line 8, column 12)]
 ==
 
 Here is the salient part of the index.html file:
 ==
 pspan wicket:id=fooHello, Wicket.../span/p
 ==
 
 Here is the salient part of the index.java file:
 ==
 package wicket.quickstart;
 
 import wicket.PageParameters;
 import wicket.markup.html.basic.*;
 .
 .
 .
 .
 public Index(final PageParameters parameters)
 {
 // TODO Add your page's components here
 add(new Label(foo,Why am I getting an error???));
 }
 ==
 
 Can someone please tell me what I have screwed up?  It looks correct...
 
 Thanks...
 
 
 
 
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hibernate support in Wicket-Stuff

2005-08-22 Thread Phil Kulak
The Hibernate3 project doesn't use any 1.5 stuff. I just did that with
the example app.

On 8/21/05, Gwyn Evans [EMAIL PROTECTED] wrote:
 Is that going to be useable by a JDK 1.4 user?
 
I certainly like the cleanness of Annotations, but I'm a bit
 concerned that by switching to using that, we've no solution for a
 pre-1.5 user and  I've not concept of what's involved to make a
 unannotated equivalent of an Annotated solution, if you see what I
 mean...
 
 /Gwyn
 
 On 22/08/05, Phil Kulak [EMAIL PROTECTED] wrote:
  I think the best place for a user to start is with the dataview and
  hibernate3 projects. I'm refactoring the hibernate3 examples as we
  speek to use that combination.
 
  On 8/21/05, Gwyn Evans [EMAIL PROTECTED] wrote:
   This is on the Wiki as Talk:Wicket-Stuff
   (http://wicket.sourceforge.net/wiki/index.php/Talk:Wicket-Stuff) but I
   thought I'd copy it here in case anyone has any comments...
  
   
  
   As someone who's interested in this, but who's not actually needed to
   use Hibernate as yet, it all seems a bit disjointed and slightly
   incomplete if you can't use JDK 5...
  
   There seem to be the following modules involved..
  
   * Name - Min JDK - Desc - Uses
 o wicket-contrib-data - 4 - Base classes
 o wicket-contrib-data-hibernate-2.1 - 4 - Hibernate 2.1 classes -
   wicket-contrib-data
 o wicket-contrib-data-hibernate-3.0 - 4 - Hibernate 3.0 classes -
   wicket-contrib-data
 o wicket-contrib-database - 5 - Base classes
 o wicket-contrib-examples - 4 - CdApp - wicket-contrib-data,
   wicket-contrib-data-hibernate-3.0
 o wicket-contrib-examples-hibernate-3 - 5 -
   Spring/Hibernate3/HibernateAnnotations CdApp - ?
  
   If you can use JDK 5, then you've got the full choice, but the
   wicket-contrib-examples-hibernate-3 module would look to be a good
   place to start.
  
   If you're restricted to JDK 4, however, then you lose the option of
   using the wicket-contrib-database base classes and also the
   wicket-contrib-examples-hibernate-3 example, due to the use of
   Annotations.
  
  
   Questions
  
  1. Can anyone summarise what Spring brings to the party, in the
   context of wicket-contrib-examples-hibernate-3?
  2. How much work would there be in a Wicket-Hibernate example based
   on wicket-contrib-examples-hibernate-3 to allow use in JDK 4? i.e.
   With XML rather then Annotations?
 * Would it be worth it?
  
   /Gwyn
  
  
   ---
   SF.Net email is Sponsored by the Better Software Conference  EXPO
   September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
   Practices
   Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
   Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax autocomplete text field

2005-08-22 Thread Phil Kulak
I would love it if you committed this somewhere or posted a formal jar
that I could play with. It would be nice if Wicket had a good auto
complete field and yours is a better start then what I came up with
last week, I believe.

On 8/22/05, Martijn Dashorst [EMAIL PROTECTED] wrote:
 Hi Ryan,
 
 I read your blog entry (and commented on it on my own). Nice poem :)
 
 Announcing is perfectly suited for the userlist. Technical discussions
 are preferred in the development list.
 
 Martijn
 
 Ryan Sonnek wrote:
 
 Hey Wicket users and developers,
 I dug into the experimental ajax support in wicket this weekend and was
 able to create an auto complete text field very similar to the one's
 used in scriptalicious demos
 (http://script.aculo.us/demos/ajax/autocompleter_customized).  I've
 posted the code along with my experience on my blog and I would
 appreciate any feedback or suggestions for improvement
 (http://jroller.com/page/wireframe/?anchor=wicket_autocomplete_text_fiel
 d).
 
 Also, I would like to offer this code up to the wicket project if there
 is any interest in adding out-of-the box ajax components.  Let me know
 if there's someway to get this discussion started!  Thanks for the great
 framework, and for making web development fun again.
 
 Not sure if this is the appropriate list for this discussion, or if this
 should be carried on to the developers list.
 
 Ryan Sonnek
 
 
 
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hibernate support in Wicket-Stuff

2005-08-21 Thread Phil Kulak
I think the best place for a user to start is with the dataview and
hibernate3 projects. I'm refactoring the hibernate3 examples as we
speek to use that combination.

On 8/21/05, Gwyn Evans [EMAIL PROTECTED] wrote:
 This is on the Wiki as Talk:Wicket-Stuff
 (http://wicket.sourceforge.net/wiki/index.php/Talk:Wicket-Stuff) but I
 thought I'd copy it here in case anyone has any comments...
 
 
 
 As someone who's interested in this, but who's not actually needed to
 use Hibernate as yet, it all seems a bit disjointed and slightly
 incomplete if you can't use JDK 5...
 
 There seem to be the following modules involved..
 
 * Name - Min JDK - Desc - Uses
   o wicket-contrib-data - 4 - Base classes
   o wicket-contrib-data-hibernate-2.1 - 4 - Hibernate 2.1 classes -
 wicket-contrib-data
   o wicket-contrib-data-hibernate-3.0 - 4 - Hibernate 3.0 classes -
 wicket-contrib-data
   o wicket-contrib-database - 5 - Base classes
   o wicket-contrib-examples - 4 - CdApp - wicket-contrib-data,
 wicket-contrib-data-hibernate-3.0
   o wicket-contrib-examples-hibernate-3 - 5 -
 Spring/Hibernate3/HibernateAnnotations CdApp - ?
 
 If you can use JDK 5, then you've got the full choice, but the
 wicket-contrib-examples-hibernate-3 module would look to be a good
 place to start.
 
 If you're restricted to JDK 4, however, then you lose the option of
 using the wicket-contrib-database base classes and also the
 wicket-contrib-examples-hibernate-3 example, due to the use of
 Annotations.
 
 
 Questions
 
1. Can anyone summarise what Spring brings to the party, in the
 context of wicket-contrib-examples-hibernate-3?
2. How much work would there be in a Wicket-Hibernate example based
 on wicket-contrib-examples-hibernate-3 to allow use in JDK 4? i.e.
 With XML rather then Annotations?
   * Would it be worth it?
 
 /Gwyn
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Spring Integration

2005-08-19 Thread Phil Kulak
I'd like to participate in that. I've done a couple projects now with
Spring + Wicket.

On 8/19/05, Alexandru Popescu [EMAIL PROTECTED] wrote:
 #: Eelco Hillenius changed the world a bit at a time by saying on  8/19/2005 
 3:06 PM :#
  Don't know yet :) Lets see if there are more people that want to 
  participate. And we would have to pick some time that would work for people 
  across time zones.
 
  Eelco
 
 
 
 Not yet a Wicket user, but looking to ;-). I would like to participate: GMT + 
 2 here.
 
 :alex |.::the_mindstorm::.|
 
-Oorspronkelijk bericht-
Van: Koen Serry [mailto:[EMAIL PROTECTED]
Verzonden: vr 19-8-2005 14:56
Aan: wicket-user@lists.sourceforge.net
CC:
Onderwerp: Re: [Wicket-user] Spring Integration
 
 
 
I'd like to participate,
what irc server/channel?
 
Koen
 
Eelco Hillenius wrote:
 
We could even have an online conference (IRC) with the people who 
  are interested/ want to contribute to this topic. We (core devs) sometimes 
  work like that, and I find it really boosting to brainstorm like that and 
  write some code right away. Interested? This weekend?

Eelco


   -Oorspronkelijk bericht-
   Van: Eelco Hillenius
   Verzonden: vr 19-8-2005 14:50
   Aan: wicket-user@lists.sourceforge.net; 
  wicket-user@lists.sourceforge.net
   CC:
   Onderwerp: RE: [Wicket-user] Spring Integration



   I haven't looked in-depth at the Spring stuff, but there seem 
  to be a couple of different view points around when it comes to Spring 
  integration. Maybe we should start a Wiki item on this topicus. More 
  specifically:
   - What do people want to achieve? What kind of wiring would 
  they like to be done by Spring? Wire DAOs etc to their pages? Or have them 
  immediately available from your pages (service lookup)? And do you want 
  fancy configuration of your WebApplication class done by Spring (I guess 
  that's no problem at all now), and are there other things people want to do.

   Discussing on this list is more convenient, but by creating a 
  Wiki item, we might make the specs more persistent.

   Eelco


   -Oorspronkelijk bericht-
   Van: Koen Serry [mailto:[EMAIL PROTECTED]
   Verzonden: vr 19-8-2005 14:33
   Aan: wicket-user@lists.sourceforge.net
   CC:
   Onderwerp: Re: [Wicket-user] Spring Integration


   Hi

   I did before posting to this mailing list, but as I 
  found the construct a bit weird to me I was thinking if an alternative 
  would be possible.

   Like the SpringApplicationController creates a new 
  instance of the servlet to then assign the application to it, or the 
  SpringContextLocator is implemented as a singleton/factory requiring the 
  page to pass the request to it.

   I was just wondering if this could be a plausable 
  alternative since it seems like a lot of overhead just to get to the 
  applicationContext.

   Koen

   Juergen Donnerstag wrote:

   please have a look at sourceforge project 
  wicket-stuff which contains
   additional higher level component. It 
  contains also a modul with
   different alternatives on how to integrate 
  with Spring. I think there
   is even a example application in there.

   Juergen

   On 8/19/05, Koen Serry [EMAIL PROTECTED] 
  mailto:[EMAIL PROTECTED]  wrote:


   Hi all,

   I've been looking into Wicket for a 
  couple of days now and I have to say
   I like what I see so far from a web 
  framework point of view.
   However I have a couple 
  remarks/questions with regards to Spring
   integration or IOC integration in 
  general for that matter.

   So far I've been using tapestry and 
  in tapestry 3 it was pretty easy,
   you subclassed the engine class, put 
  the applicationContext in it, and
   from whatever page-class you could 
  access it. In Tapestry 4 however,
   they haven't found a clean way so 
  that's one of the reasons I was moving
   

Re: [Wicket-user] Getting started with pageable data from DB?

2005-08-18 Thread Phil Kulak
What I would do is use a PageableDataView (wicket-contrib-dataview)
and a HibernateDataProvider or HIbernateCriteriaProvider from the
wicket-contrib-hibernate3 project.

On 8/18/05, Gwyn Evans [EMAIL PROTECTED] wrote:
 Can anyone suggest where would be a good place to start in order to be
 able to come up with a basic paged table, showing the result of a
 query on a DB (Oracle)?  It'll have to run on JDK 1.4.x, so Hibernate
 3 Annotations seem to be out, at least.
 
 Looking at Wicket-Stuff, there's the following:-
 wicket-contrib-data
 wicket-contrib-data-hibernate-2.1
 wicket-contrib-database
 wicket-contrib-dataview
 wicket-contrib-dataview-examples
 but before I try  work out what's what there, does anyone have any
 suggestions/recommendations.  In this case, it's read-only from the
 DB, so I don't have to worry about updating anything, just selecting
 different criteria for the queries.
 
 /Gwyn
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using DropDownChoice and wantOnSelectionChangedNotifications=true clean other form components

2005-08-18 Thread Phil Kulak
I think AJAX is the solution here.

On 8/18/05, Johan Compagner [EMAIL PROTECTED] wrote:
 yes this is a problem that i am also looking at.
 We should do a form post instead of making getting a url..
 
 But this is not so easy at the moment.
 Validators of the form shouldn't run,
 And i don't think we can update the model also. We have to keep it
 internally in form
 After that we do have to call that drop down method..
 
 But for this we need to generate some hidden fields in the form where we
 can set state.
 What the exact interface call was..
 
 It is not only a drop down problem. Also for example a pageable list
 with a navigator which are links
 can have the same problem if the pageable list is inside a form...
 
 johan
 
 
 
 Martin Bednar wrote:
  Hi,
 
  There is a way how to submit values to model from other form
  components when DropDownChoice roundtrip is invoked ?
 
  I have form containing lot's of textboxes and some DropDownChoices
  depends on DropDownChoices with roundtrip enabled (Master-Detail).
  After choosing value from DropDownChoice, roundtrip is done, and all
  data in textboxes are lost :(
 
  Any advice ?
 
  Tnx, Martin
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle
  Practices
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing
   QA
  Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Problem with redirectToInterceptPage

2005-08-18 Thread Phil Kulak
Don't set the redirect page if you're calling redirectToInterceptPage().

On 8/18/05, David Liebeherr [EMAIL PROTECTED] wrote:
 Hi all!
 
 I have a problem with the redirectToInterceptPage.
 I have this:
listItem.add(new Link(delete) {
public void onClick() {
setResponsePage((Page) null);
redirectToInterceptPage(new
 Confirmation(delete_ftpaccount, Do you realy want to delte this
 ftp-account?));
}
});
 
 I get the following Error:
 wicket.WicketRuntimeException: Already redirecting to
 '/test/serverConfig;jsessionid=E4E42D4494F7156FF2B6D65412CF30EF.node1?path=5'.
 Cannot redirect more than once
 wicket.protocol.http.BufferedWebResponse.redirect(BufferedWebResponse.java:96)
 wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:249)
 wicket.RequestCycle.respond(RequestCycle.java:771)
 wicket.RequestCycle.request(RequestCycle.java:406)
 wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:304)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 Any suggestions how to solve this?
 
 Thanks,
 Dave
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using DropDownChoice and wantOnSelectionChangedNotifications=true clean other form components

2005-08-18 Thread Phil Kulak
Well, not if there's a lot of different possible details.

On 8/18/05, Igor Vaynberg [EMAIL PROTECTED] wrote:
 Or plain old javascript can do the trick as well. There have been master
 detail select boxes for ages before ajax :)
 
 -Igor
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
  Phil Kulak
  Sent: Thursday, August 18, 2005 7:15 PM
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] Using DropDownChoice and
  wantOnSelectionChangedNotifications=true clean other form components
 
  I think AJAX is the solution here.
 
  On 8/18/05, Johan Compagner [EMAIL PROTECTED] wrote:
   yes this is a problem that i am also looking at.
   We should do a form post instead of making getting a url..
  
   But this is not so easy at the moment.
   Validators of the form shouldn't run,
   And i don't think we can update the model also. We have to keep it
   internally in form After that we do have to call that drop down
   method..
  
   But for this we need to generate some hidden fields in the
  form where
   we can set state.
   What the exact interface call was..
  
   It is not only a drop down problem. Also for example a
  pageable list
   with a navigator which are links can have the same problem if the
   pageable list is inside a form...
  
   johan
  
  
  
   Martin Bednar wrote:
Hi,
   
There is a way how to submit values to model from other form
components when DropDownChoice roundtrip is invoked ?
   
I have form containing lot's of textboxes and some
  DropDownChoices
depends on DropDownChoices with roundtrip enabled (Master-Detail).
After choosing value from DropDownChoice, roundtrip is
  done, and all
data in textboxes are lost :(
   
Any advice ?
   
Tnx, Martin
   
   
---
SF.Net email is Sponsored by the Better Software
  Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices Agile  Plan-Driven Development * Managing Projects 
Teams * Testing  QA Security * Process Improvement 
  Measurement *
http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
   ---
   SF.Net email is Sponsored by the Better Software Conference  EXPO
   September 19-22, 2005 * San Francisco, CA * Development Lifecycle
   Practices Agile  Plan-Driven Development * Managing
  Projects  Teams
   * Testing  QA Security * Process Improvement  Measurement *
   http://www.sqe.com/bsce5sf
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference 
  EXPO September 19-22, 2005 * San Francisco, CA * Development
  Lifecycle Practices Agile  Plan-Driven Development *
  Managing Projects  Teams * Testing  QA Security * Process
  Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] getParent recursively?

2005-08-17 Thread Phil Kulak
MyForm.this.getModelObject();

Still three steps though. Couldn't beat Igor's. :) And that will only
work if they are nested and non static, of course.

On 8/16/05, Joshua Lim [EMAIL PROTECTED] wrote:
 I like Igor's method a little better ;)
  but thanks for the suggestion
 
 On 8/17/05, Gili [EMAIL PROTECTED] wrote:
 
  heh, that works too. But where's the fun in that? :) Good catch!
 
  Gili
 
  Igor Vaynberg wrote:
   Button.getForm().getModel() :)
   -Igor
  
  
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
  Joshua Lim
  Sent: Tuesday, August 16, 2005 9:26 PM
  To: wicket-user@lists.sourceforge.net
  Subject: [Wicket-user] getParent recursively?
  
  Hi, I have a question regarding components and getting it's parent.
  
  I have a Form which contains a ListView which contains a Button.
  
  when a Button is clicked, in order to get the Form's model, I
  have to do
  getParent().getParent().getParent().getModelObject() to go
  from the ListView item (1st getParent) to ListView to Form...
  
  is there another way of doing this ? not too sure if I got this right?
  perhaps a recursive getParent?
  Josh
  
  
  ---
  SF.Net email is Sponsored by the Better Software Conference 
  EXPO September 19-22, 2005 * San Francisco, CA * Development
  Lifecycle Practices Agile  Plan-Driven Development *
  Managing Projects  Teams * Testing  QA Security * Process
  Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
  
  
  
  
  
   ---
   SF.Net email is Sponsored by the Better Software Conference  EXPO
   September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
   Practices
   Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
   Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
  --
  http://www.desktopbeautifier.com/
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference  EXPO
  September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
  Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
  Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Phil Kulak
I don't like the idea of components creating their own markup instead
of taking it from the markup stream. In fact, I'd really like to see
components like RadioChoice and DropDownChoice operate more like Loop
or ListView then how they do now. I think that having a renderer would
be a step back. I think the alternative to ColumnedDataProvider would
be extending PageableDataView with ColumnedDataView.

On 8/16/05, Gili [EMAIL PROTECTED] wrote:
 
 I've almost got my prototype ready for testing but I'm having a
 initialization problem. My markup reads:
 
div wicket:id=imageRow class=floatfix
  div wicket:id=imageCell class=imageColumn
 foo
  /div
/div
 
 and wicket is complaining about not finding imageCell even though I
 bind it on the Java end using:
 
 add(imageRow);
 imageRow.add(imageCell);
 
 I suspect DataView uses some sort of special magic implementation for
 add(). Can you please take a look (see attached file) and see if you can
 find something wrong?
 
 I'm initializing one DataView for the imageRow, passing in a
 IDataProvider. Then I initialize another DataView for imageCell, pass in
 imageRow into the constructor.
 
 Thanks,
 Gili
 
 Igor Vaynberg wrote:
  I don't understand what you are talking about below...share state? In order
  for your markup to be nested like that you are going to have to add column
  to row which will make row repeat column dataprovider.count() times.
  Not sure that's what you want.
 
  Why don't you try it and tell us if it works.
 
  -Igor
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Gili
 Sent: Tuesday, August 16, 2005 10:36 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Re: ColumnedDataProvider
 startIndex problems
 
 
   sigh I said I disliked the idea of outputting HTML
 from Java code because this is very much like plain servlets
 or JSP, both of which are notoriously ugly doing this. Well
 anyway, if this component is fully theoretical, I guess I
 can't very well try it.
 
   How about this idea?
 
 div wicket:id=row
   div wicket:id=column
   cell data
   /div
 /div
 
   It would sort of work like ColumnedDataProvider did but
 cleaner. In the above example you'd have two instances of the
 same class (similar to ListView, I'm going to call it
 MyListView) that would share the same state information. So,
 allow me to walk you through the rendering process chronologically:
 
 1) Construct MyListView for row, pass in IDataProvider into
 constructor
 2) Construct MyListView for column, pass in row MyListView
 into constructor
 3) Now, when populateItem() is invoked for either the row or
 column, the item's getIndex() will be shared among the two...
 what this means is that the index will be relative to the
 original IDataProvider, not relative to the MyListView passed
 into the constructor. populateItem() will be passed a
 DataItem for both row and column.
 
   See what I mean? It's very flexible in that you can
 nested multiple layers but at the same time the overall state
 is shared so you know what your actual index is.
 
   What do you think?
 
 Gili
 
 Igor Vaynberg wrote:
 
 You don't, that was the concept I proposed earlier and the one you
 said was bad :)
 
 
 
 http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg04192
 
 .html
 
 -Igor
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Gili
 Sent: Tuesday, August 16, 2005 10:10 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex
 problems
 
 
 Where do I find the renderer Java class?
 
 Gili
 
 Igor Vaynberg wrote:
 
 
 This would be really easy with the renderer :)
 
 try something like this, maybe it will work
 
 div wicket:id=maindataview
div wicket:id=rowview
[cell markup]
/div
div class=floatfix/
 /div
 
 -Igor
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Gili
 Sent: Tuesday, August 16, 2005 10:02 PM
 To: wicket-user@lists.sourceforge.net
 Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex
 problems
 
 
   Ok, turns out that using DataView is no good :(
 
   The markup contains:
 
  div wicket:id=imageRow class=floatfix
div class=imageColumn
  cell data
/div
  /div
 
   and I only want to issue a imageRow once every X columns. The
 problem, I just realized, is that the imageRow tag wraps a single
 imageColumn tag and I'd really like for it to wrap multiple
 imageColumn tags. Any ideas, short of outputting multiple
 
 columns in a
 
 
 single call to populateItem()? Now I am beginning to see
 
 why it is a
 
 
 bad idea to only have a concept of cells :(
 
   I can see how to get this working under DataView but it
 
 will result
 
 
 in 

Re: [Wicket-user] Re: Updating multiple database records with one form submit

2005-08-17 Thread Phil Kulak
Check out the user's guide as well. There's some very good
documentation on models in there.

On 8/17/05, Martijn Dashorst [EMAIL PROTECTED] wrote:
 This just works, but not totally as you might expect...
 
 public MyForm(String id, FooBar foobar) {
 super(id, new CompoundPropertyModel(foobar));
 add(new ListView(persons) {
 protected IModel getListItemModel(IModel model, int nr) {
 return new
 CompoundPropertyModel(super.getListItemModel(model, nr));
 }
 public void populateItem(ListItem item) {
 add(new TextField(name));
 }
 });
 }
 
 Anders Peterson wrote:
 
  Thanks very much for trying to help,
 
  I have it working now, but I'm not happy with the code - it's not
  correct.
 
  It's the small, obvious, things that are difficult for beginners.
 
  I had this:
 
  new Model(tmpBrand.getName(), name)
 
  which of course did not work. Changing to this:
 
  new PropertyModel(tmpBrand, name)
 
  made things work a lot better. ;-)
 
 
  Now to the part I still don't understand. The only models I explicitly
  create are the ones I need to populate the rows in the ListView. The
  Form itself does not have a Model (that I created) and I feel it should.
 
  How would you use a CompoundPropertyModel (with the form) when it
  contains a ListView?
 
  /Anders
 
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Where is IUniqueIdProvider?

2005-08-16 Thread Phil Kulak
My bad. I was a little behind the curve on Igor's changes. It's fixed now.

On 8/15/05, Gili [EMAIL PROTECTED] wrote:
 
 I can clearly see it here:
 http://cvs.sourceforge.net/viewcvs.py/wicket-stuff/wicket-contrib-dataview/src/wicket/contrib/dataview/IUniqueIdProvider.java?rev=1.1view=log
 
 but when I do CVS checkout it's not there (on the SSH server). It's
 required for building the Hibernate wicket-stuff module.
 
 Gili
 --
 http://www.desktopbeautifier.com/
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ColumnedDataProvider startIndex problems

2005-08-16 Thread Phil Kulak
Knock yourself out.

On 8/16/05, Gili [EMAIL PROTECTED] wrote:
 
 There is no way to offset the ColumnedDataProvider beginning index.
 This functionality doesn't really belong here but until the refactor of
 contrib-data I don't think there is a cleaner way.
 
 So I'll be adding ColumnedDataProvider.setStartIndex() ok?
 
 Gili
 --
 http://www.desktopbeautifier.com/
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hibernate. Unique field in GridPanel.

2005-08-16 Thread Phil Kulak
Oh, oops, I thought that's what you were talking about. :) Don't use
the GridPanel. Just wrap the save in a try catch, or check first to
see if the row exists.

On 8/16/05, Oleg Marchuk [EMAIL PROTECTED] wrote:
 May be I can use something like this?
 http://www.cs.uoregon.edu/~torok/GridPanelDocs/
 
 IDataSource ds = new HibernateDataSource(Customer.class, COMPONENT_DAO);
 
 List states = (List) COMPONENT_DAO.execute(new IHibernateCallback() {
 public Object execute(Session session) {
 return session.createQuery(FROM State s ORDER BY s.abbrev)
 .list();
 }
 });
 
 // Our custom columns
 ArrayList cols = new ArrayList();
 
 cols.add(new MultiColumn()
 .add(new DeleteColumn())
 .add(new EditColumn()));
 
 cols.add(new TextFieldColumn(Address, address));
 cols.add(new TextFieldColumn(City, city));
 cols.add(new DropDownChoiceColumn(State, state, states)
 .setAllowOrderBy(false));
 cols.add(new TextFieldColumn(Name, name)
 .add(RequiredValidator.getInstance()));
 cols.add(new CheckBoxColumn(Prefered, prefered));
 
 // Our feedback panel.
 FeedbackPanel feedback = new FeedbackPanel(feedback);
 add(feedback);
 
 GridPanel gridPanel = new GridPanel(allCustomers, ds, 5, cols, feedback);
 add(gridPanel);
 
 
 Phil Kulak wrote:
 
 Hmm.. there's another reason why I don't like coarse-grained
 components like that. Since the component is doing all the saving and
 updating, there's not a whole lot you can do.
 
 On 8/15/05, Oleg Marchuk [EMAIL PROTECTED] wrote:
 
 
 Hello.
 
 Today I get cdapp example and play with it. I set one of the field of
 Album to unique in mapping. And now when I am trying to save object with
 same values I always get exception. How to rewrite code to show feedback
 messsage like Error: this field must be unique. Try other value ?
 
 
 
 
 
 --
 Oleg Marchuk
 
 Softzone ltd., software and IT consulting
 Ukraine, Kiev, +380-44-2460965
 [EMAIL PROTECTED]
 http://www.softzonenet.com/
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Updating multiple database records with one form submit

2005-08-16 Thread Phil Kulak
If you used a PropertyModel or CompoundPropertyModel, then that's all
you have to do. When the form is submitted, the properties will be
updated if the form passes validation.

On 8/16/05, Anders Peterson [EMAIL PROTECTED] wrote:
 Beginner here!
 
 Stuck on a problem:
 
 1) I get all (4) records from a table in the database.
 2) Using a Form and a ListView I display all records simultaneously each
 with its own TextField
 3) I press the submit button after having changed any or all of the
 items in the form/list.
 
 How do I get these objects to be updated correctly?
 
 What kind of model should I feed the form, and what object should I feed
 that model?
 
 /Anders
 --
 http://ojalgo.org/
 
 Java Algorithms for Mathematics, Linear Algebra and Optimisation
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-15 Thread Phil Kulak
 So as far as the patch goes, I
 like the idea but maybe we should just do
 model.getModelObject().equals(model2.getModelObject()) as opposed to
 model.equals(model2).

You can get yourself into some nasty N + 1 select problems like that
if you're not careful.  I think it's a bad idea to do an attach just
to do a comparison that the model knows how to do anyway.


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-15 Thread Phil Kulak
Won't it be comparing with the models from the last request? You know,
those models that were detached and may be discarded, never to be
attached again save that comparison?

Another problem is that I don't want the DataView using value equality
when row equality is available, which it always will be in this case.
I think if you want to make it more general, use the model's equals so
that it can use value, row, or object identity. I don't think that
requiring a proper implementation of equals on the model is any
different from requiring it on the object and it gives you more
options.

On 8/15/05, Igor Vaynberg [EMAIL PROTECTED] wrote:
 Unless you are using a unique key I don't see how your model is going to
 know other then delegate to the object anyways.
 And hopefully your persistence layer is smart enough to pull N+1 queries out
 of cache since you will be doing that anyways when you render.
 -Igor
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
  Phil Kulak
  Sent: Sunday, August 14, 2005 11:52 PM
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] [Wicket] DataView and optimized
  item removal
 
   So as far as the patch goes, I
   like the idea but maybe we should just do
   model.getModelObject().equals(model2.getModelObject()) as
  opposed to
   model.equals(model2).
 
  You can get yourself into some nasty N + 1 select problems
  like that if you're not careful.  I think it's a bad idea to
  do an attach just to do a comparison that the model knows how
  to do anyway.
 
 
  ---
  SF.Net email is Sponsored by the Better Software Conference 
  EXPO September 19-22, 2005 * San Francisco, CA * Development
  Lifecycle Practices Agile  Plan-Driven Development *
  Managing Projects  Teams * Testing  QA Security * Process
  Improvement  Measurement * http://www.sqe.com/bsce5sf
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Hibernate. Unique field in GridPanel.

2005-08-15 Thread Phil Kulak
Hmm.. there's another reason why I don't like coarse-grained
components like that. Since the component is doing all the saving and
updating, there's not a whole lot you can do.

On 8/15/05, Oleg Marchuk [EMAIL PROTECTED] wrote:
 Hello.
 
 Today I get cdapp example and play with it. I set one of the field of
 Album to unique in mapping. And now when I am trying to save object with
 same values I always get exception. How to rewrite code to show feedback
 messsage like Error: this field must be unique. Try other value ?
 
 --
 Oleg Marchuk
 
 Softzone ltd., software and IT consulting
 Ukraine, Kiev, +380-44-2460965
 [EMAIL PROTECTED]
 http://www.softzonenet.com/
 
 
 
 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: How can I link to a resource stream?

2005-08-15 Thread Phil Kulak
I would really appreciate it if someone could let me know if this is
possible. If it's not currently possible, I'd be happy to submit a
patch for whatever solution I come up with. I'd like to not resort to
a servlet if I can help it.

On 8/15/05, Phil Kulak [EMAIL PROTECTED] wrote:
 So I've got a FileResourceStream and I'd like to give a link to it to
 the user. ResourceLink takes a ResourceReference, which I don't have.
 Any ideas? Thanks!



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


  1   2   3   >