Re: [Wicket-user] New Link component ?

2006-03-31 Thread Eelco Hillenius
Yeah, that could be a code saver. Personally I like just private
classes better. I use that when annonymous classes get too big/ messy.
The big advantage over not using introspection is that you can easily
track down how it is called from your IDE, you won't mess up with
refactoring and stepping through an execution is easier as you don't
get the ugly reflection stuff in your face. Otoh, using relection
could help you keep your code smaller. I wouldn't be for putting such
a component in link, as I believe we shouldn't encourage this as a
best practice. However, as a nice alternative, I can see such a
component live in Wicket extensions.

Btw, what should add(new ReflectionLink(myLink, myMethod)) call?
where does myMethod live? It's parent? The page? See, it's already
less clear compared to non-reflective java code.

There are basically three options how this link could work:
1) it invokes the method on the parent
2) it invokes the method on the page
3) you explictly define the object the method is invoked on

I think 3) would be best as it is always clear what happens, can
immediately be checked on validity (is the method available) and it's
also the most flexible way then enables you e.g. to pass command
objects.

Furthermore, I don't thing the click method suffices: it probably
needs the invoking component to be passed in as a call argument, so
that you can e.g. get it's model.

Eelco


On 3/31/06, Alex [EMAIL PROTECTED] wrote:
 Hi,
 we've been using wicket for about a month now, so far so good.
 The only complain is about code lisibility, sometimes our constructors
 are filled with a lot of code, particurally with all the :

 add(new Link(myLink)
 {
 public void onClick(RequestCycle cycle)
 {
 // do something here...
 }
 );

 The //do something here can be quite large. Of course you can put that on a
 custom method...
 Coming from a WebObjects background, we're used to clean, small Java code
 associated with pages (component instanciation, binding data to component, are
 in other files).
 So we thought a custom component subclassing Link could force this approach :

 in constructor :

 add(new ReflectionLink(myLink, myMethod))

 and elsewhere :

 public void myMethod() { // do something here ... }

 Basically the ReflectionLink would contain some reflection stuff in
 onClick(RequestCycle cycle) to invoke our method...

 With that you get the separation between init code and action code

 What do you think ?




 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] VOTE: One refactor to do in 1.2 if possible: String Param or Returntype to its interface CharSequence..

2006-04-01 Thread Eelco Hillenius
+1 for now.

Eelco


On 4/1/06, Johan Compagner [EMAIL PROTECTED] wrote:
 Currently almost all our interfaces that makes the output or Response
 writing code are using Strings
 as parameters or return types

 I would like to change all those methods to use Charsequence because this
 would mean that
 we don't have to do toString() every where and just passing directly the
 buffer that was made
 This will greatly reduce String char array copies.

 This does mean that for example:

 Response.write(String) - Response.write(CharSequence)

 and

 protected final void replaceComponentTagBody(final MarkupStream
 markupStream,
 final ComponentTag tag, final String body)

 protected final void replaceComponentTagBody(final MarkupStream
 markupStream,
 final ComponentTag tag, final CharSequence body)

 for calling methods nothing will really change because the String maps on
 its interface.

 Only when users have implemented such a method they should also convert
 so for the above replaceComponentTagBody this is not a problem because it is
 final anyway

 But for Response.write() subclasses should also be refactored.


 Don't know currently yet how many overridable methods really would be
 affected.
 But it could enhance performance quite a bit.

 Many of the interfaces that would affected are 1.2 only interfaces so if we
 change them now
 those interfaces never made it to a final version.

 So what should we do:

 [ ] do it in 1.2
 [ ] do it in 2.0/1.3 with another big refactor? (then interfaces introduced
 in 1.2 will change again)
 [ ] never do it.

 johan




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket in a clustered environment

2006-04-01 Thread Eelco Hillenius
I tested it a couple of times, and the product I'm working on needs to
be deployed in a clustered environment (with Wicket). However, having
an automated cluster test is one of our to-dos. It would be awesome if
someone could set such a thing up, preferably in such a way that it
can just be checked out from SVN an get it working without too much
hassle.

As a side note, if you want to see what round-robin clustering would
mean for you application, turn on the HttpSessionStore logger, e.g. in
log4j:

log4j.logger.wicket.protocol.http.HttpSessionStore=INFO

There are also a couple of options in Wicket which affect the way it
clusters, most notably the render strategy. And there's a whole bunch
of possible optimizations possible too, unfortunately not documented
outside the javadocs ifaik.

Eelco


On 3/31/06, Tom van Zummeren [EMAIL PROTECTED] wrote:



 I was wondering…



 Does anyone have any experience with Wicket in a clustered environment?

 If yes, please tell me your experience with it.



 Thanks in advance,





 Tom


 --
  No virus found in this outgoing message.
  Checked by AVG Free Edition.
  Version: 7.1.385 / Virus Database: 268.3.3/298 - Release Date: 3/30/2006



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] PopupSettings Center

2006-04-01 Thread Eelco Hillenius
Didn't think about that yet. A patch would be welcome. If you have
one, please attach it to an RFE
(http://sourceforge.net/tracker/?group_id=119783atid=684978)

Eelco

On 3/31/06, Alexander Lohse [EMAIL PROTECTED] wrote:
 Hi,

 are there any efforts yet to add a centering option to the
 PopupSettings?

 Something like: script.append(mywindow.moveTo((screen.availWidth- +
 width +)/2,(screen.availHeight- + height + )/5*2);\n);

 Regards,

 Alex

 –––
 Alexander Lohse
 (Entwicklungsleitung  Projektmanagement)

 Human Touch Medienproduktion GmbH
 Am See 1
 17440 Klein Jasedow
 Deutschland

 Tel: +49 38374 752 11
 Fax: +49 38374 752 23
 e-mail: [EMAIL PROTECTED]
 Internet: http://www.webjazz.de
 –––




 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: New Link component ?

2006-04-01 Thread Eelco Hillenius
 We thought about it and as our internal component, we were ready to implement 
 2)
 et 3). In our case we want provide a uniform style of coding : 90% of use 
 cases,
 the method is called on the page object. 10% left are filled by 3)

Yeah, the disadvantage of calling the page object is that it is not
suited for writing reusable code. For instance, if you write a panel
with a link that makes that call, and you decide to reuse it in
another page, you would have to implement that method in that page too
(or make sure that method is in some base class), but the compiler is
never going to warn you about it.

I would argue to support just method for clarity, and that would be
nbr 3 as it is explicit and reusable in any situation. Also just
passing in MyPage.this in the constructor isn't that much of a code
bloat, right?

 Indeed, thank you all for you answers, i must say we like coding with wicket 
 and
 we hope it will continue to focus on making web developper's life easier !

That's what we are doing it for. We aim for making our developer's
life not only easier, but also more fun in general. We believe a
framework should not only be about how fast/ easy you can do stuff,
but also about the 'art parts' of programming: elegance, expressive
power, etc. It's exiting to see that many people like that and
participate in Wicket by discussing ideas and sending in patches etc.

Eelco


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] date formats and SimpleConverterAdapter (wicket 1.2 beta 2)

2006-04-01 Thread Eelco Hillenius
Yeah, I know what was going on. I made a stupid mistake! Sorry...

It's fixed in trunk now.

Eelco

On 4/1/06, Simon Edwards [EMAIL PROTECTED] wrote:
 Hello,

 I'm trying to get some date formatting on the go for Date.class field. The
 SimpleConverterAdapter example that was posted to the list works fine for
 URLs ( http://sourceforge.net/mailarchive/message.php?msg_id=15132297 ). But
 after rewriting it for doing date formatting I just get an exception when the
 value is being written back to my domain POJO with the help of a
 CompoundPropertyModel.

 Anyone know what is going on?

 code:
 -
 TextField dob = new TextField(dateOfBirth,Date.class) {
   private SimpleDateFormat df = new SimpleDateFormat(dd-MM-);
   public IConverter getConverter() {
 return new SimpleConverterAdapter() {

   public String toString(Object value) {
 System.err.println(SimpleConverterAdapter.toString() +value);
   return value != null ? df.format( (Date)value ) : null;
   }

   public Object toObject(String value) {
 System.err.println(TextField.toObject() +value);
 if(value==null || .equals(value)) {
   throw new ConversionException('+value+' is not a valid date.);
 }
 Date newDate = df.parse(value,new ParsePosition(0));
 System.err.println(TextField.toObject() returning +newDate);
 return newDate;
   }
 };
   }
 };
 -
 exception (slightly formatted, 1-2-2003 was submitted in the HTML text field):

 -
 INFO  - MarkupCache- Loading markup from
 file:/home/sbe/devel/apache-tomcat-5.5.16/webapps/wicket-examples/WEB-INF/classes/wicket/examples/tvguide/PersonsTab.html

 INFO  - MarkupCache- Loading markup from
 jar:file:/home/sbe/devel/apache-tomcat-5.5.16/webapps/wicket-examples/WEB-INF/lib/wicket-1.2-beta2.jar!/wicket/markup/html/panel/FeedbackPanel.html

 SimpleConverterAdapter.toString(): 'Sat Apr 01 10:39:55 CEST 2006'

 SimpleConverterAdapter.toObject(): '01-02-2003'

 SimpleConverterAdapter.toObject() returning 'Sat Feb 01 00:00:00 CET 2003'

 SimpleConverterAdapter.toObject(): 'Sat Feb 01 00:00:00 CET 2003'

 SimpleConverterAdapter.toObject() returning 'null'

 ERROR - RequestCycle   - Method onFormSubmitted of interface
 wicket.markup.html.form.IFormSubmitListener targeted at component
 [MarkupContainer [Component id = personform, page =
 wicket.examples.tvguide.TvGuidePage, path =
 1:tabs:panel:personform.PersonsTab$4, isVisible = true, isVersioned = true]]
 threw an exception

 wicket.WicketRuntimeException: Method onFormSubmitted of interface
 wicket.markup.html.form.IFormSubmitListener targeted at component
 [MarkupContainer [Component id = personform, page =
 wicket.examples.tvguide.TvGuidePage, path =
 1:tabs:panel:personform.PersonsTab$4, isVisible = true, isVersioned = true]]
 threw an exception
   at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:173)
   at
 wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:74)
   at
 wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65)
 ...

 Caused by: java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   ...

 Caused by: wicket.util.convert.ConversionException: Can't convert value: Sat
 Feb 01 00:00:00 CET 2003 to class: class java.util.Date for setting it on
 [EMAIL PROTECTED]
 at
 wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:824)
   ...

 INFO  - MarkupCache- Loading markup from
 jar:file:/home/sbe/devel/apache-tomcat-5.5.16/webapps/wicket-examples/WEB-INF/lib/wicket-1.2-beta2.jar!/wicket/markup/html/pages/ExceptionErrorPage.html

 SimpleConverterAdapter.toString(): 'Sat Apr 01 10:39:55 CEST 2006'

 -

 info:

 * wicket 1.2 beta 2
 * tomcat 5.5
 * jdk 1.5.0_06

 thank you,

 --
 Simon Edwards | KDE-NL, Guidance tools, Guarddog Firewall
 [EMAIL PROTECTED] | http://www.simonzone.com/software/
 Nijmegen, The Netherlands | ZooTV? You made the right choice.


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the 

Re: [Wicket-user] Form Feedback

2006-04-01 Thread Eelco Hillenius
1.1 worked by setting the appropriate collecting component - which in
the case of forms was done automatically. From 1.2 on we have
IFeedbackMessageFilter for this.

If you want field level feedbakc, you might want to check out
FormComponentFeedbackBorder. From 1.2 on there additionally is
FormComponentFeedbackIndicator, which is a feedback panel but for one
component.

Eelco


On 4/1/06, Alexander Lohse [EMAIL PROTECTED] wrote:
 Hi,

 can anyone explain how the new (1.1) Form-Feedback-System works?

 How does the Form know which Feedback-Panel to use?

 What if I have multiple forms and multiple feedbacks on one page?

 Is there a way to skip the messaging and give the feedback in
 different ways?
 For example: I used to just mark the erroneous fields with special
 css or place the messages right next to field.

 Thank you,

 Alex
 –––
 Alexander Lohse
 (Entwicklungsleitung  Projektmanagement)

 Human Touch Medienproduktion GmbH
 Am See 1
 17440 Klein Jasedow
 Deutschland

 Tel: +49 38374 752 11
 Fax: +49 38374 752 23
 e-mail: [EMAIL PROTECTED]
 Internet: http://www.webjazz.de
 –––




 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Wicket Include vs. RequestDispatcher.include

2006-04-02 Thread Eelco Hillenius
That's interesting. Do you include Wicket pages in you sitemesh definitions too?

Eelco

On 4/1/06, Nili Adoram [EMAIL PROTECTED] wrote:
 After reconsidering I used Sitemesh which provides a better approach to
 this issue.

 However, this is a good opportunity to thank you Wicket team for
 developing the most wonderful framework.
 I voted for you!

 Nili


 Eelco Hillenius wrote:
  To my knowledge, none of the core developers of Wicket uses the
  Include component for their projects. What about this: if you and
  anyone else that uses this functionality agree on what would be the
  best implementation, I'd be happy to look at the patch and put it in
  Wicket if we agree on it. That would work better than me developing it
  and guessing what is right.
 
  Ideally, it should work similar to sitemesh, but simpler, as we don't
  need the composition (it would steer people the wrong direction for
  how to do things with Wicket) and of course without a line of xml
  configuration.
 
  I'd like to keep it one component thought, so I wouldn't be in favor
  of the LightInclude as mentioned the post before this. I'd rather have
  some property for deciding how the include should work.
 
  Related issues:
  http://sourceforge.net/tracker/?group_id=119783atid=684978func=detailaid=1243549
  http://sourceforge.net/tracker/?group_id=119783atid=684978func=detailaid=1285909
 
  Eelco
 
 
  On 3/30/06, Robert McClay [EMAIL PROTECTED] wrote:
 
  I posted a very similar component to the group a while back -- search
  for Servlet forward to a JSP. It could be used as a starting point
  for a nice component, as it definitely needs polishing.
 
  On 2006-03-29 23:54:57 -0700, Nili Adoram [EMAIL PROTECTED] said:
 
 
  How about extending Include as follows:
  public class LightInclude extends Include {
 
  public LightInclude(String id, String model, ServletRequest
  request, ServletResponse response) {
 this.request = request;
 this.response = response;
  }
 
  protected String importUrl(String url) {
  //create a buffer
  Writer writer = new BufferedWriter(new CharArratWriter());
  //create some mockup response
  ServletResponse mockupResponse = new ServletResponse() {
 //implement all interface methods by delegating to the
  original response except for this:
 public PrintWriter getWriter(){
return new PrintWriter(writer);
 }
  };
 //call RequestDispatcher with the mockup response
  //this will write the response to our buffer
  request.getrequestDispatcher(url).include(request, 
  mockupResponse);
 //return the content of the buffer
  return writer.toString();
  }
  }
 
  I guess some additional polish is required..
  Nili
 
  Eelco Hillenius wrote:
 
  That's what I did in the first version(s) of Include. There were
  issues with it, which I unfortunately forgot. I never use this
  component myself, but if you have good ideas in the form of patches,
  I'd be happy to look at them.
 
  Eelco
 
  On 3/29/06, Nili Adoram [EMAIL PROTECTED] wrote:
 
 
  Hi,
  Is there an option to use utilize wicket Include without opening a new
  connection?
  I would like to include the contents of a URL like
  RequestDispatcher.include() does, directly into a wicket component.
  10x
  Nili
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting 
  language
  that extends applications into web and mobile media. Attend the live 
  webcast
  and join the prime developer group breaking into this new coding 
  territory!
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting 
  language
  that extends applications into web and mobile media. Attend the live 
  webcast
  and join the prime developer group breaking into this new coding 
  territory!
  http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting 
  language
  that extends applications into web and mobile media. Attend the live 
  webcast
  and join the prime developer group breaking into this new coding 
  territory!
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting

Re: [Wicket-user] Re: Wicket Include vs. RequestDispatcher.include

2006-04-02 Thread Eelco Hillenius
Thanks for voting. Don't forget to use it too! ;)

Eelco

On 4/1/06, Nili Adoram [EMAIL PROTECTED] wrote:
 After reconsidering I used Sitemesh which provides a better approach to
 this issue.

 However, this is a good opportunity to thank you Wicket team for
 developing the most wonderful framework.
 I voted for you!

 Nili


 Eelco Hillenius wrote:
  To my knowledge, none of the core developers of Wicket uses the
  Include component for their projects. What about this: if you and
  anyone else that uses this functionality agree on what would be the
  best implementation, I'd be happy to look at the patch and put it in
  Wicket if we agree on it. That would work better than me developing it
  and guessing what is right.
 
  Ideally, it should work similar to sitemesh, but simpler, as we don't
  need the composition (it would steer people the wrong direction for
  how to do things with Wicket) and of course without a line of xml
  configuration.
 
  I'd like to keep it one component thought, so I wouldn't be in favor
  of the LightInclude as mentioned the post before this. I'd rather have
  some property for deciding how the include should work.
 
  Related issues:
  http://sourceforge.net/tracker/?group_id=119783atid=684978func=detailaid=1243549
  http://sourceforge.net/tracker/?group_id=119783atid=684978func=detailaid=1285909
 
  Eelco
 
 
  On 3/30/06, Robert McClay [EMAIL PROTECTED] wrote:
 
  I posted a very similar component to the group a while back -- search
  for Servlet forward to a JSP. It could be used as a starting point
  for a nice component, as it definitely needs polishing.
 
  On 2006-03-29 23:54:57 -0700, Nili Adoram [EMAIL PROTECTED] said:
 
 
  How about extending Include as follows:
  public class LightInclude extends Include {
 
  public LightInclude(String id, String model, ServletRequest
  request, ServletResponse response) {
 this.request = request;
 this.response = response;
  }
 
  protected String importUrl(String url) {
  //create a buffer
  Writer writer = new BufferedWriter(new CharArratWriter());
  //create some mockup response
  ServletResponse mockupResponse = new ServletResponse() {
 //implement all interface methods by delegating to the
  original response except for this:
 public PrintWriter getWriter(){
return new PrintWriter(writer);
 }
  };
 //call RequestDispatcher with the mockup response
  //this will write the response to our buffer
  request.getrequestDispatcher(url).include(request, 
  mockupResponse);
 //return the content of the buffer
  return writer.toString();
  }
  }
 
  I guess some additional polish is required..
  Nili
 
  Eelco Hillenius wrote:
 
  That's what I did in the first version(s) of Include. There were
  issues with it, which I unfortunately forgot. I never use this
  component myself, but if you have good ideas in the form of patches,
  I'd be happy to look at them.
 
  Eelco
 
  On 3/29/06, Nili Adoram [EMAIL PROTECTED] wrote:
 
 
  Hi,
  Is there an option to use utilize wicket Include without opening a new
  connection?
  I would like to include the contents of a URL like
  RequestDispatcher.include() does, directly into a wicket component.
  10x
  Nili
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting 
  language
  that extends applications into web and mobile media. Attend the live 
  webcast
  and join the prime developer group breaking into this new coding 
  territory!
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting 
  language
  that extends applications into web and mobile media. Attend the live 
  webcast
  and join the prime developer group breaking into this new coding 
  territory!
  http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting 
  language
  that extends applications into web and mobile media. Attend the live 
  webcast
  and join the prime developer group breaking into this new coding 
  territory!
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting language
  that extends applications

Re: [Wicket-user] passing IModel around

2006-04-02 Thread Eelco Hillenius
Aaargh. Ok, final try:

public HeaderPanel(String id, IModel blogModel) {
  super(id, blogModel);
  Blog blog = (Blog)getModelObject();

or

public HeaderPanel(String id, IModel blogModel) {
  super(id);
  setModel(blogModel);
  Blog blog = (Blog)getModelObject();

Eelco

On 4/2/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Oh, I didn't look at your example yet. Better is this:

 public HeaderPanel(String id, IModel blogModel)
 {
 super(id);

 Blog blog = (Blog)getModelObject();

 Eelco


 On 4/2/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  Just pass in null. The component parameter is only used by
  CompoundPropertyModel and friends, not by LoadableDetachableModel.
 
  Eelco
 
 
  On 4/2/06, Vincent Jenks [EMAIL PROTECTED] wrote:
   That won't work, since getObject takes a parameter of Componentwhat
   would I pass in?
  
  
   On 4/2/06, karthik Guru  [EMAIL PROTECTED] wrote:
The model isn't of type Blog. The object stored within
LoadableDetachableModel is of type Blog.
   
Blog blog = (Blog)blogModel.getObject( )
   
should hopefully work.?
   
On 4/2/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
 I'm just testing something out.  Since I use EJB3 and need lazy
 initialization I'm making an attempt to see if passing an object with 
 a
 collection of lazily-loaded elements in an IModel, from page-to-page,
   will
 prevent a LazyInitializationException (Hibernate).

 I start here in the first page:

 public class ViewBlog extends WebPage
 {
 public ViewBlog()
 {
 //get Blog in detached model
 IModel blogModel = new LoadableDetachableModel()
 {
 protected Object load()
 {
 return BlogProxy.getDefault(); //via proxy
 }
 };

 //add panel components
 add(new HeaderPanel(headerPanel, blogModel));
 

 ...and then in the HeaderPanel I do this:

 public class HeaderPanel extends Panel
 {
 public HeaderPanel(String id, IModel blogModel)
 {
 super(id);

  Blog blog = (Blog)blogModel; //EXCEPTION HERE!
 ..

 I get this exception:

 java.lang.ClassCastException: com.myapp.ui.ViewBlog$1
 at com.myapp.ui.panel.HeaderPanel.init(HeaderPanel.java :34)
 at com.myapp.ui.ViewBlog.init(ViewBlog.java:53)
 at

   sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance
   (NativeConstructorAccessorImpl.java
 :39)
 at

   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 at
 java.lang.reflect.Constructor.newInstance
   (Constructor.java:494)
 at java.lang.Class.newInstance0 (Class.java:350)
 at java.lang.Class.newInstance(Class.java:303)

 How do I down-cast to Blog (entity bean) from the IModel param?

   
   
--
-- karthik --
   
   
---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
   language
that extends applications into web and mobile media. Attend the live
   webcast
and join the prime developer group breaking into this new coding
   territory!
   
   http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] passing IModel around

2006-04-02 Thread Eelco Hillenius
Oh, I didn't look at your example yet. Better is this:

public HeaderPanel(String id, IModel blogModel)
{
super(id);

Blog blog = (Blog)getModelObject();

Eelco


On 4/2/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Just pass in null. The component parameter is only used by
 CompoundPropertyModel and friends, not by LoadableDetachableModel.

 Eelco


 On 4/2/06, Vincent Jenks [EMAIL PROTECTED] wrote:
  That won't work, since getObject takes a parameter of Componentwhat
  would I pass in?
 
 
  On 4/2/06, karthik Guru  [EMAIL PROTECTED] wrote:
   The model isn't of type Blog. The object stored within
   LoadableDetachableModel is of type Blog.
  
   Blog blog = (Blog)blogModel.getObject( )
  
   should hopefully work.?
  
   On 4/2/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
I'm just testing something out.  Since I use EJB3 and need lazy
initialization I'm making an attempt to see if passing an object with a
collection of lazily-loaded elements in an IModel, from page-to-page,
  will
prevent a LazyInitializationException (Hibernate).
   
I start here in the first page:
   
public class ViewBlog extends WebPage
{
public ViewBlog()
{
//get Blog in detached model
IModel blogModel = new LoadableDetachableModel()
{
protected Object load()
{
return BlogProxy.getDefault(); //via proxy
}
};
   
//add panel components
add(new HeaderPanel(headerPanel, blogModel));

   
...and then in the HeaderPanel I do this:
   
public class HeaderPanel extends Panel
{
public HeaderPanel(String id, IModel blogModel)
{
super(id);
   
 Blog blog = (Blog)blogModel; //EXCEPTION HERE!
..
   
I get this exception:
   
java.lang.ClassCastException: com.myapp.ui.ViewBlog$1
at com.myapp.ui.panel.HeaderPanel.init(HeaderPanel.java :34)
at com.myapp.ui.ViewBlog.init(ViewBlog.java:53)
at
   
  sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance
  (NativeConstructorAccessorImpl.java
:39)
at
   
  sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance
  (Constructor.java:494)
at java.lang.Class.newInstance0 (Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
   
How do I down-cast to Blog (entity bean) from the IModel param?
   
  
  
   --
   -- karthik --
  
  
   ---
   This SF.Net email is sponsored by xPML, a groundbreaking scripting
  language
   that extends applications into web and mobile media. Attend the live
  webcast
   and join the prime developer group breaking into this new coding
  territory!
  
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] passing IModel around

2006-04-02 Thread Eelco Hillenius
Just pass in null. The component parameter is only used by
CompoundPropertyModel and friends, not by LoadableDetachableModel.

Eelco


On 4/2/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 That won't work, since getObject takes a parameter of Componentwhat
 would I pass in?


 On 4/2/06, karthik Guru  [EMAIL PROTECTED] wrote:
  The model isn't of type Blog. The object stored within
  LoadableDetachableModel is of type Blog.
 
  Blog blog = (Blog)blogModel.getObject( )
 
  should hopefully work.?
 
  On 4/2/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
   I'm just testing something out.  Since I use EJB3 and need lazy
   initialization I'm making an attempt to see if passing an object with a
   collection of lazily-loaded elements in an IModel, from page-to-page,
 will
   prevent a LazyInitializationException (Hibernate).
  
   I start here in the first page:
  
   public class ViewBlog extends WebPage
   {
   public ViewBlog()
   {
   //get Blog in detached model
   IModel blogModel = new LoadableDetachableModel()
   {
   protected Object load()
   {
   return BlogProxy.getDefault(); //via proxy
   }
   };
  
   //add panel components
   add(new HeaderPanel(headerPanel, blogModel));
   
  
   ...and then in the HeaderPanel I do this:
  
   public class HeaderPanel extends Panel
   {
   public HeaderPanel(String id, IModel blogModel)
   {
   super(id);
  
Blog blog = (Blog)blogModel; //EXCEPTION HERE!
   ..
  
   I get this exception:
  
   java.lang.ClassCastException: com.myapp.ui.ViewBlog$1
   at com.myapp.ui.panel.HeaderPanel.init(HeaderPanel.java :34)
   at com.myapp.ui.ViewBlog.init(ViewBlog.java:53)
   at
  
 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
   Method)
   at
   sun.reflect.NativeConstructorAccessorImpl.newInstance
 (NativeConstructorAccessorImpl.java
   :39)
   at
  
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
   at
   java.lang.reflect.Constructor.newInstance
 (Constructor.java:494)
   at java.lang.Class.newInstance0 (Class.java:350)
   at java.lang.Class.newInstance(Class.java:303)
  
   How do I down-cast to Blog (entity bean) from the IModel param?
  
 
 
  --
  -- karthik --
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket.authentication package classes.

2006-04-03 Thread Eelco Hillenius
The wicket-auth-roles-examples project depenends on project
wicket-auth-roles. Maybe that's what you are missing. You don't need
that project to implement authorization with Wicket, as the core
support is in the wicket package, but it includes a convenient role
based implementation.

Eelco


On 4/3/06, Michael Hosier [EMAIL PROTECTED] wrote:
 Hi,

 I'm trying to migrate my Wicket app to 1.2-beta3.  Since checkAccess
 is deprecated I'm looking into refactoring my authentication.  I'm
 looking at the auth-roles sign in example.  The classes extend
 classes from the wicket.authentication package but I can't seem to
 find the classes from that package anywhere.  I have downloaded both
 core wicket-1.2-beta3 and the extensions bundle.  Seems like I am
 missing something big, and I couldn't find any info on the migration
 page other than to look at the auth-roles example, which I am doing.

 Thanks,
 Michael


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2-beta3 is available

2006-04-03 Thread Eelco Hillenius
Do you have a stack trace with that?

Eelco

On 4/3/06, Frank Silbermann [EMAIL PROTECTED] wrote:



 My application uses DataTable's  whose column headers come from
 ResultSetMetaData and whose data comes from ResultSet.  With the new .jars,
 I'm getting the column headers, but not the table contents.  I clicked
 something and got a no such method exception.



 Have the DataTable extensions been re-factored since 1.2B2?




 -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Martijn Dashorst
  Sent: Sunday, April 02, 2006 4:55 PM
  To: Wicket User; Wicket Developers
  Subject: [Wicket-user] Wicket 1.2-beta3 is available



 All,

  I have created and uploaded the third beta release of Wicket 1.2. We have
 solved quite some bugs, but there are some nasty one's still unsolved. This
 is why we chose to release another beta instead of moving into the end game
 of our 1.2 release schedule. You can monitor the bug list at sourceforge
 (http://sourceforge.net/tracker/?group_id=119783atid=684975)
 to see which are still open and which are solved.

  The outstanding bugs shouldn't hurt development efforts, so if you are in
 the process of upgrading to Wicket 1.2, please continue to do so with this
 release (or bake your own from SVN trunk). This release is not considered
 stable enough to use in production.

  Help us finalize this release by downloading and test driving this release.
 The more bugs you find now, the better the final release will be!

  You can download the release(s) of the different projects at the usual
 download location:
 http://sourceforge.net/project/showfiles.php?group_id=119783

  This release contains the following projects:

   o wicket
   o wicket-extensions
   o wicket-spring
   o wicket-spring-annot
   o wicket-auth-roles
   o and all example projects for each release.

  Have fun!

  - the Wicket team

  --
  Wicket 1.2 is coming! Write Ajax applications without touching JavaScript!
  -- http://wicketframework.org



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Validations and the TabbedPanel

2006-04-03 Thread Eelco Hillenius
Actually, that should work. As long as your components are visible in
the hierarchy. And they probably are, it's just the panels you have to
set visible.

The interesting thing is that I think we have a bug in the 1.2
implementation of FormComponent.

Compare this, correct visit of form components:

protected final void updateFormComponentModels()
{
visitFormComponents(new FormComponent.IVisitor()
{
public void formComponent(final FormComponent 
formComponent)
{
// Only update the component when it is visible 
and valid
if (formComponent.isVisibleInHierarchy()  
formComponent.isEnabled()
 formComponent.isValid()  
formComponent.isEnableAllowed())
{
// Potentially update the model
formComponent.updateModel();
}
}
});
}

with this, I think incorrect visit:

private void validateRequired()
{
visitFormComponents(new ValidationVisitor()
{
public void validate(final FormComponent formComponent)
{
formComponent.checkRequired();
}
});
}

(same for conversion and generic validator checks).

Maybe I miss something, but it looks to me someone has been a bit
sloppy there! :)

Validation *should* only be done for visible components, correct?

Eelco


On 4/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 no, this will not work. form component's that are not visible are also not
 updated.


 -Igor


 On 4/3/06, Bennett, Timothy (JIS - Applications) 
 [EMAIL PROTECTED] wrote:
 
 
  Michael Jouravlev's Wicket Wizard code renders a whole set of panels (as
 part of the wizard) and then uses a construct like:
 
  public void updatePanels() {
  log.info(-- wizard.updatePanels, step name:  +
   (wizard != null ? wizard.getCurrentStepName() : null));
 
  for (int i = 0; i  wizardPanels.length; i++) {
  wizardPanels[i].setVisible(
  wizard != null 
  (wp+i).equals(wizard.getCurrentStepName())
  );
  }
  }
 
 
  To set the panel visibility flag for the selected panel... thinking I
 could use something like this in a modified TabbedPanel component that is
 form friendly...
 
 
  
  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Igor Vaynberg
  Sent: Monday, April 03, 2006 12:19 PM
  To: wicket-user@lists.sourceforge.net
  Subject: Re: [Wicket-user] Validations and the TabbedPanel
 
 
 
  tabbedpanel isnt really meant to be used to cover up form components, so
 you are right, what you need is a tabbedpanel that uses dhtml instead of a
 server roundtrip.
 
  -Igor
 
 
 
  On 4/3/06, Bennett, Timothy (JIS - Applications)
 [EMAIL PROTECTED] wrote:
  
  
   Wicketeers,
  
   I'm using the TabbedPanel component in a Wicket 1.1.1 application.
 Works great in a read-only view mode of my data, but using the TabbedPanel
 to present a create/edit form for my data is proving to be a bit
 problematic.  One big issue I'm having is that the validators of my form
 components are only firing for the components that are part of the
 currently selected tab panel.  The reason is because the TabbedPanel only
 renders the content of the selected tab, instead of doing some show/hide
 magic with all the tabbed panels.
  
   Markup for my page looks basically like:
  
   form wicket:id=form
  input wicket:id=save type=image src=images/saveBtn.gif
 border=0 hspace=6 /
  input wicket:id=cancel type=image src=images/cancelBtn.gif
 border=0 value=Cancel hspace=6 /
  span wicket:id=tabs class=tabpanel[tabbed panel will be
 here]/span
   /form
  
   As you can see, the TabbedPanel is inside a single form.  I need
 validations to fire on all the component in all the tab panels, not just the
 rendered panel.  My plan is to extend/modify/evolve the TabbedPanel
 component to (something like a TabbedFormPanel component) that effectively
 employs some show/hide magic so that all the panels are available in the
 form for validation.
  
   Does this sound like the right approach, or am I missing something that
 would be simpler but accomplish the same thing...
  
   Thanks in advance,
  
   Timothy
 
 
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!

Re: [Wicket-user] Validations and the TabbedPanel

2006-04-03 Thread Eelco Hillenius
Ah. Sloppy me :)

Eelco

On 4/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 yes, you missed something:

 notice it is using a validation visitor which is defined on top of the
 form.java like so:

 /**
  * Visitor used for validation
  *
  * @author Igor Vaynberg (ivaynberg)
  */
 private static abstract class ValidationVisitor implements
 FormComponent.IVisitor
 {

 /**
  * @see
 wicket.markup.html.form.FormComponent.IVisitor#formComponent(wicket.markup.html.form.FormComponent
 )
  */
 public void formComponent(FormComponent formComponent)
 {
 if (formComponent.isVisibleInHierarchy() 
 formComponent.isValid()
  formComponent.isEnabled() 
 formComponent.isEnableAllowed())
 {
 validate(formComponent);
 }
 }

 -Igor



 On 4/3/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Actually, that should work. As long as your components are visible in
 the hierarchy. And they probably are, it's just the panels you have to
 set visible.

 The interesting thing is that I think we have a bug in the 1.2
 implementation of FormComponent.

 Compare this, correct visit of form components:

 protected final void updateFormComponentModels()
 {
 visitFormComponents(new
 FormComponent.IVisitor ()
 {
 public void formComponent(final FormComponent
 formComponent)
 {
 // Only update the
 component when it is visible and valid
 if
 (formComponent.isVisibleInHierarchy() 
 formComponent.isEnabled()
 
 formComponent.isValid()  formComponent.isEnableAllowed ())
 {
 // Potentially
 update the model

 formComponent.updateModel();
 }
 }
 });
 }

 with this, I think incorrect visit:

 private void validateRequired()
 {
 visitFormComponents(new ValidationVisitor()
 {
 public void validate(final FormComponent
 formComponent)
 {

 formComponent.checkRequired();
 }
 });
 }

 (same for conversion and generic validator checks).

 Maybe I miss something, but it looks to me someone has been a bit
 sloppy there! :)

 Validation *should* only be done for visible components, correct?

 Eelco


 On 4/3/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  no, this will not work. form component's that are not visible are also not
  updated.
 
 
  -Igor
 
 
  On 4/3/06, Bennett, Timothy (JIS - Applications) 
  [EMAIL PROTECTED] wrote:
  
  
   Michael Jouravlev's Wicket Wizard code renders a whole set of panels (as
  part of the wizard) and then uses a construct like:
  
   public void updatePanels() {
log.info(-- wizard.updatePanels, step name:  +
(wizard != null ? wizard.getCurrentStepName() :
 null));
  
   for (int i = 0; i  wizardPanels.length; i++) {
   wizardPanels[i].setVisible(
   wizard != null 
   (wp+i).equals(wizard.getCurrentStepName())
);
   }
   }
  
  
   To set the panel visibility flag for the selected panel... thinking I
  could use something like this in a modified TabbedPanel component that is
  form friendly...
  
  
   
   From: [EMAIL PROTECTED]
  [mailto: [EMAIL PROTECTED] On
 Behalf
  Of Igor Vaynberg
   Sent: Monday, April 03, 2006 12:19 PM
   To: wicket-user@lists.sourceforge.net
   Subject: Re: [Wicket-user] Validations and the TabbedPanel
  
  
  
   tabbedpanel isnt really meant to be used to cover up form components, so
  you are right, what you need is a tabbedpanel that uses dhtml instead of a
  server roundtrip.
  
   -Igor
  
  
  
   On 4/3/06, Bennett, Timothy (JIS - Applications)
  [EMAIL PROTECTED] wrote:
   
   
Wicketeers,
   
I'm using the TabbedPanel component in a Wicket 1.1.1 application.
  Works great in a read-only view mode of my data, but using the TabbedPanel
  to present a create/edit form for my data is proving to be a bit
  problematic.  One big issue I'm having is that the validators of my form
  components are only firing for the components that are part of the
  currently selected tab panel.  The reason is because the TabbedPanel
 only
  renders the content of the selected tab, instead of doing some show/hide
  magic with all the tabbed panels.
   
Markup for my page looks basically like:
   
form wicket:id=form
   input wicket:id=save type=image src=images/saveBtn.gif
  border=0 hspace=6 /
   input wicket:id=cancel type=image src=images/cancelBtn.gif
  border=0 value=Cancel hspace=6 /
   span

Re: [Wicket-user] Extra markup while creating listview

2006-04-04 Thread Eelco Hillenius
And so am I :)

Eelco

On 4/4/06, Steve Knight [EMAIL PROTECTED] wrote:
 Ramnivas,

 Did you get the DOJO-based tree working?  If so, I'd be very interested in
 it.

 Steve



 On 3/29/06, Ramnivas Laddad  [EMAIL PROTECTED] wrote:
  Hi,
 
  I am continuing my attempt to create a DOJO-based tree (Thanks Igor for
  the urlFor() tip).
 
  Currently, I am facing a problem of extra markup emitted in a listview.
  I think there is something wrong with my code, but can't quite figure
  out what. I am using 1.2-beta2.
 
  Here is a short program that illustrates the problem:
 
  Markup:
  html
  body
  div wicket:id=list
  div wicket:id=itemitem text/div
  /div
  /body
  /html
 
  Home and list class:
  public class ListViewHome extends WebPage {
  public ListViewHome() {
  List testList = new ArrayList();
  testList.add(one);
   testList.add(two);
  testList.add(three);
  add(new TestListView(list, testList));
  }
  }
 
  class TestListView extends ListView {
  public TestListView(String id, List list) {
  super(id, list);
  }
 
  @Override
  protected void populateItem(ListItem item) {
  String itemString = (String)item.getModelObject();
  Label listItemLabel = new Label(item, itemString);
  item.add(listItemLabel);
  }
  }
 
  HTML Output produced:
 
  html
  body
  div wicket:id=list
  div wicket:id=itemone/div
  /div
  div wicket:id=list
  div wicket:id=itemtwo/div
  /div
  div wicket:id=list
  div wicket:id=itemthree/div
  /div
  /body
  /html
 
  When used with DOJO-tree, the extra markup (div wicket:id=list)
  surrounding every node produces unwanted effects.
 
  I will like to have the following output:
 
  html
  body
  div wicket:id=list
  div wicket:id=itemone/div
  div wicket:id=itemtwo/div
  div wicket:id=itemthree/div
  /div
  /body
  /html
 
  Please help.
 
  Thanks.
 
  -Ramnivas
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: More on refreshing page contents

2006-04-04 Thread Eelco Hillenius
Anything would have worked as long as the list that you return is
fresh by either using a detachable model, or one of the models that
re-evaluate on every call, like PropertyModels or e.g. a model like:

IModel listViewModel = new Model() {
  Object getObject(Component c) {
return tmpInstrument.getCorrelations();
  }
}

There is no specific advantage of Loops over ListViews in this case.
Loops are simply designed to be a simpler but more limited version. of
ListView.

Eelco


On 4/4/06, Anders Peterson [EMAIL PROTECTED] wrote:
 That worked!

 I also had to move the declaration of tmpInstrument to inside the
 populateItem method (otherwise all rows were the same).

 Thanks!

 (I feel this was a bit more complicated than it should be.)

 Could this have been done with a CompoundPropertyModel and Loop:s
 instead of ListView:s - using ognl like instrument[i].correlation[j] ?

 /Anders

 Igor Vaynberg wrote:
  actually, the string in the label is fine because the listview rebuilds its
  items on every request so new labels will be created.
 
  the problem is here:
  ListView tmpCorrList = new ListView(ID_CORRELATIONS,
  tmpInstrument.getCorrelations())
 
  this is making listview use the same list w/out updating it on every
  request, this should be a detachable model so that a fresh list is used on
  every request:
 
  IModel listViewModel=new LoadableDetachableModel() { Object load() { return
  tmpInstrument.getCorrelations(); }}
  ListView tmpCorrList = new ListView(ID_CORRELATIONS, listViewModel) {
  ...
  };
 
  hope this helps,
  -Igor
 
  On 4/4/06, Maurice Marrink [EMAIL PROTECTED] wrote:
  Hi,
 
  I am also wrestling with the matrix beast and am still exploring my
  options.
  However i might be able to help you out.
  In your code the label is given a string as diplay value. This string
  is not updated when the item model is. So you should give the label
  the model of the item.
  If you want some fancy numberformatting to take place you can always
  overwrite the getConverter() method of your label to convert the
  bigdecimal to a string there.
 
  Hope this helps.
 
  Maurice
 
  On 4/4/06, Anders Peterson wrote:
  Hi All,
 
  With one page I'm displaying a matrix of numbers and I have a problem
  updating/refreshing it. I roughly understand why it doesn't work, but I
  don't know what the best/correct way to make it work is.
 
  Basically I have a ListView of rows and the last column in each row is
  in turn a ListView creating more columns to the right. That final
  ListView is implemented with the code you can see below.
 
  How was I supposed to have done this to have updating/refreshing happen
  as automagically as possible?
 
  (I'm using Wicket 1.1.1)
 
  /Anders
 
  ListView tmpCorrList = new ListView(ID_CORRELATIONS,
  tmpInstrument.getCorrelations()) {
 
 BigDecimal tmpCoefficient;
 
 public void populateItem(final ListItem anItem) {
 
 tmpCoefficient = (BigDecimal) anItem.getModelObject();
 
 anItem.add(new Label(ID_COEFFICIENT, tmpCoefficient.toString()));
 
  }
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
  language
  that extends applications into web and mobile media. Attend the live
  webcast
  and join the prime developer group breaking into this new coding
  territory!
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
  language
  that extends applications into web and mobile media. Attend the live
  webcast
  and join the prime developer group breaking into this new coding
  territory!
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 --
 http://ojalgo.org/

 Mathematics, Linear Algebra and Optimisation with Java


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join 

Re: [Wicket-user] starting jetty with 1.2 beta3

2006-04-04 Thread Eelco Hillenius
It seems that it wants the jasper libs too (jasper-runtime-x.jar and
probably jasper-compiler-x.jar).

Eelco


On 4/4/06, Scott Swank [EMAIL PROTECTED] wrote:
 I just downloaded the beta3 wicket-examples and created a new Java
 project for it in Eclipse 3.1.  When I try to run StartExamples I
 receive the following -- which is rather odd since this jar
 (org.mortbay.jetty-4.2.24.jar) is visible under project properties:
 Java Build Path  Libraries.  Have I just mucked up some dumb detail
 in my Eclipse project this time around?

 15:09:19.862 EVENT  Started SocketListener on 0.0.0.0:8080
 FATAL - StartExamples  - Could not start the Jetty server:
 org.mortbay.util.MultiException[java.lang.ClassNotFoundException:
 org.apache.jasper.servlet.JspServlet]
 15:09:19.862 EVENT  Stopping Acceptor
 ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080]
 15:09:20.815 EVENT  Stopped SocketListener on 0.0.0.0:8080
 15:09:20.815 EVENT  invoker: destroy
 15:09:20.815 EVENT  default: destroy
 15:09:20.815 EVENT  Stopped
 WebApplicationContext[/wicket-examples,Wicket Examples]
 15:09:20.815 EVENT  Stopped [EMAIL PROTECTED]

 --
 Scott Swank
 reformed mathematician


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Question about DataTable and IDataProvider restated

2006-04-04 Thread Eelco Hillenius
 I suppose the usual approach is to trigger the download of IDataProvider's
 data via the event handler of the submit button.  That way, the data would
 be available for both Iterator IDataProvider.iterate(first, count) and
 int IDataProvider.size().

It's the responsibility of the model(s). Components may rely on models
being properly initialized and available whenever they want to access
them. Model implementations may or may implement detachable behavior,
caching etc.

 However, I do not have a single submit button – I have various sets of
 radio-buttons and a change to any one causes an immediate postback.  I do
 not want to code an event handler for each one of them; I'd rather put my
 database query in a method that is called before the page is rendered
 _regardless_ of the reason.  Can you suggest a suitable method?

So, make that part of your model's implementation. Look at for example
LoadableDetachableModel for ideas, or you can use the implementation
directly too if you want.

Eelco


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ?Contract for Iterator IDataProvider.iterator(int first, int count) ???

2006-04-04 Thread Eelco Hillenius
 Therefore, for each post-back, I'll need to query the database before
 _either_ of these methods return.

 If both methods query the database independently, intervening CRUD
 operations may cause them to return inconsistent results (a size that is too
 small or too large).  I can and should retrieve both the rows and their
 number with a single query.  The question is where I should do this.

Like I stated in my other email, hide this in your model
implementation. For example, on detach load the results (window) and
the current row count in one transaction.

 MY PROBLEM is that I'm seeing an inconsistent number of rows displayed for
 the same query.  It seems to depend upon how large the previous query's
 results were.

That sounds like something very specific for your situation. Is the
database regularly updated from outside your application?

Please don't cross post and keep discussions about the same topic in
the same thread so that it is easier for people to follow them.

Eelco


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] PopupSettings Center

2006-04-05 Thread Eelco Hillenius
Thanks, I'll try to look into it shortly.

Eelco

On 4/3/06, Alexander Lohse [EMAIL PROTECTED] wrote:
 I did so.

 Regards,

 Alex

 Am 01.04.2006 um 23:31 schrieb Eelco Hillenius:

  Didn't think about that yet. A patch would be welcome. If you have
  one, please attach it to an RFE
  (http://sourceforge.net/tracker/?group_id=119783atid=684978)
 
  Eelco
 
  On 3/31/06, Alexander Lohse [EMAIL PROTECTED] wrote:
  Hi,
 
  are there any efforts yet to add a centering option to the
  PopupSettings?
 
  Something like: script.append(mywindow.moveTo((screen.availWidth- +
  width +)/2,(screen.availHeight- + height + )/5*2);\n);
 
  Regards,
 
  Alex
 
  –––
  Alexander Lohse
  (Entwicklungsleitung  Projektmanagement)
 
  Human Touch Medienproduktion GmbH
  Am See 1
  17440 Klein Jasedow
  Deutschland
 
  Tel: +49 38374 752 11
  Fax: +49 38374 752 23
  e-mail: [EMAIL PROTECTED]
  Internet: http://www.webjazz.de
  –––
 
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
  language
  that extends applications into web and mobile media. Attend the
  live webcast
  and join the prime developer group breaking into this new coding
  territory!
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
  language
  that extends applications into web and mobile media. Attend the
  live webcast
  and join the prime developer group breaking into this new coding
  territory!
  http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user

 –––
 Alexander Lohse
 (Entwicklungsleitung  Projektmanagement)

 Human Touch Medienproduktion GmbH
 Am See 1
 17440 Klein Jasedow
 Deutschland

 Tel: +49 38374 752 11
 Fax: +49 38374 752 23
 e-mail: [EMAIL PROTECTED]
 Internet: http://www.webjazz.de
 –––




 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cdapp-example download

2006-04-05 Thread Eelco Hillenius
Hi,

It's part of wicket-contrib-examples, which you can find in the
repository of wicket-stuff
(https://svn.sourceforge.net/svnroot/wicket-stuff). *someday* we will
have a proper, recent release of that :).

Eelco


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WicketAjaxIndicatorAppender

2006-04-05 Thread Eelco Hillenius
This might not be exactly what you want, but you can do any header
contribution using wicket.behavior.HeaderContributor. To make this a
little bit easier/ more specific for arbitrairy string contributions,
beta 3 has now wicket.behavior.StringHeaderContributor and a neat way
to do javascript contributions is using
wicket.extensions.util.resource.JavaScriptTemplate. That header
contributions (ie a javascript function) can then be called in your
onclick script.

Eelco

On 4/5/06, Steve Knight [EMAIL PROTECTED] wrote:
 Okay, now that my indicator is working, I need to add a javascript
 confirmation box to appear before my form is submitted.

 With a regular button I just used getOnClickScript(), but I don't see how to
 do it with AjaxSubmitButton.  Is there someway I can add my javascript call
 before the ajax form submission?

 Steve



 On 4/5/06, Steve Knight [EMAIL PROTECTED] wrote:
 
  I created a quickstart project to demonstrate the problem.  Then I decided
 to bump the quickstart up to beta 3 and the problem went away.  So, I guess
 I'll have to upgrade.
 
  Thanks Igor.
 
 
  Steve
 
 
  On 4/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  
   hrm. ok. can you make me a quickstart project that reproduces the
 problem? and then i will try it against trunk and tell  you if its been
 fixed or not.
  
  
   -Igor
  
  
  
   On 4/4/06, Steve Knight [EMAIL PROTECTED] wrote:
   
Not easily.  I am using Databinder which I think is tied to beta2.
   
   
Steve
   
   
   
On 4/4/06, Igor Vaynberg [EMAIL PROTECTED]  wrote:

 can you try against trunk or beta3?


 -Igor




 On 4/4/06, Steve Knight [EMAIL PROTECTED] wrote:
 
  I am trying to make an AjaxSubmitButton that uses
 WicketAjaxIndicatorAppender to display a busy indicator, but it's not quite
 working.  I used the IndicatingAjaxLink as a guideline, and everything seems
 to work except that the indicator does not disappear after the Ajax call is
 completed.
 
  Here is my IndicatingAjaxSubmitButton class:
 
  abstract class IndicatingAjaxSubmitButton extends AjaxSubmitButton
 implements IAjaxIndicatorAware {
  private final WicketAjaxIndicatorAppender indicatorAppender =
 new WicketAjaxIndicatorAppender();
 
  public IndicatingAjaxSubmitButton(String id,
 Form form) {
  super(id, form);
  add(indicatorAppender);
  }
 
  public String getAjaxIndicatorMarkupId() {
  return  indicatorAppender.getMarkupId ();
  }
  }
 
  Here is the relevant bit of html that gets generated:
 
  input value=submit via ajax type=button
 wicket:id=ajax-submit-button
 onclick=wicketShow('ajax-submit-button--ajax-indicator');var
 wicketAjaxCallMade=wicketSubmitFormById('selectForm',
 '/smarttag2/app?wicket:interface=:0:ajax-submit-button:-1:IUnversionedBehaviorListenerwicket:behaviorId=0'
 , function() {
 wicketHide('ajax-submit-button--ajax-indicator');});;
 return true; id=ajax-submit-button/span style=display:none;
 class=wicket-ajax-indicator
 id=ajax-submit-button--ajax-indicatorimg
 src=/smarttag2/app/resources/wicket.ajax.AbstractDefaultAjaxBehavior/indicator.gif//span
 
  Am I missing something?
 
 
  Steve
 
 


   
   
  
  
 
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] no en_US in dateformats.properties ?

2006-04-05 Thread Eelco Hillenius
Hi,

On 4/5/06, Nathan Hamblen [EMAIL PROTECTED] wrote:
 DatePicker isn't setting a correct date string for me in beta3. It's
 doing 2006/04/05, which the date converter won't understand. I stepped
 into the code and saw that it's trying to find 'en_US' in a hashtable
 built from dateformats.properties, which only has 'en' and 'en_ZA'
 (where's that?).

en_ZA is english/ South Africa

 I don't see anything in the code that would fall back to 'en' when it
 can't find 'en_US'. So it goes with the default in the calendar
 javascript, with the year first. Is my locale.toString() somehow wrong?
 How is this supposed to work?

It should fall back on en. If it doesn't it's a bug. Could you please
file an issue?

 Thanks,

Eelco


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: no en_US in dateformats.properties ?

2006-04-06 Thread Eelco Hillenius
We just moved YUI (Yahoo) out of Wicket extensions and to
wicket-stuff. Joshua Lim will be playing around with that. He might be
interested in coorporating on the calendar if that is what you have in
mind? I would prefer the YUI variant too for the longer term, as that
has a much better chance of being supported.

Eelco


On 4/6/06, Nathan Hamblen [EMAIL PROTECTED] wrote:
 In that case I'm not sure that month-first is a good default for en
 with an exception only for South Africa. The English standard is
 day-first and it's the US that is the exception, right?

 I'll file the bug, and I'm for Yahoo's calendar or whatever gets us a
 more solid date widget.

 Nathan

 Eelco Hillenius wrote:
  Hi,
 
  On 4/5/06, Nathan Hamblen [EMAIL PROTECTED] wrote:
  DatePicker isn't setting a correct date string for me in beta3. It's
  doing 2006/04/05, which the date converter won't understand. I stepped
  into the code and saw that it's trying to find 'en_US' in a hashtable
  built from dateformats.properties, which only has 'en' and 'en_ZA'
  (where's that?).
 
  en_ZA is english/ South Africa
 
  I don't see anything in the code that would fall back to 'en' when it
  can't find 'en_US'. So it goes with the default in the calendar
  javascript, with the year first. Is my locale.toString() somehow wrong?
  How is this supposed to work?
 
  It should fall back on en. If it doesn't it's a bug. Could you please
  file an issue?
 
   Thanks,
 
  Eelco
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting language
  that extends applications into web and mobile media. Attend the live webcast
  and join the prime developer group breaking into this new coding territory!
  http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642



 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: strange behaviour of TextField conversion to Float in beta3

2006-04-06 Thread Eelco Hillenius
What does the code for the converter factory look like?

Eelco

On 4/6/06, Jaime De La Jara [EMAIL PROTECTED] wrote:
 Yes, I use the following code :

  add(new TextField(montoTotal, Float.class));

 I've made some tests and found that commenting the
 definition of the IConverterFactory for the date format
 and defining the format for the float field and it worked,
 however I cannot define the format for both types.

 Thanks,

 Jaime.


 did you do TextField.setType(Float.class) or create it with
 the constructor that takes the class?

 -Igor


 On 4/6/06, Jaime De La Jara [EMAIL PROTECTED] wrote:
 
  Hi, I've just downloaded version 1.2 beta 3 and I have a
  problem when editing the contents of a javabean,
  particularly in a case of a Float field. The relevant
  code is :
 
  Javabean :
  public class Pago
  {
  .
  public Float getMontoTotal()
  {
  return Float.valueOf(1234567890);
  }
  ...
  }
 
  Html :
 
  td class=tit
  input wicket:id=montoTotal type=text class=normal size=20/
  /td
 
 
  When the page is displayed it shows the following :
  15-01-1970 in the textfield,
  this value corresponds to the date equivalent (aprox)
  to the above number in milisec.
 
  The only thing I've done that can be important to this
  issue is to define a new IConverterFactory to apply the
  same date format to the whole app.
 
  What is going on?
 
  Thanks.
 
  Jaime.


  
 New Yahoo! Messenger with Voice. Call regular phones from your PC and save
 big.




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Re: Re: strange behaviour of TextField conversion to Float in beta3

2006-04-07 Thread Eelco Hillenius
Yeah, you can do that. Like this:

getApplicationSettings().setConverterFactory(new 
IConverterFactory()
{
public IConverter newConverter(final Locale locale)
{
final Converter converter = new 
Converter(locale);
// String - Date
DateConverter dc = new DateConverter();
dc.setDateFormat(locale, new 
SimpleDateFormat(dd-MM-));
converter.set(Date.class, dc);
// Date - String
DateToStringConverter dsc = new 
DateToStringConverter();
dsc.setDateFormat(locale, new 
SimpleDateFormat(dd-MM-));
StringConverter sc = new StringConverter();
sc.set(Date.class, dsc);
converter.set(String.class, sc);

return converter;
}
});

Notice the use of a seperate StringConverter that has a registry for
type converters itself.

It's kind of awkward right now. It's on our list to simplify for 1.3.

Eelco


On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 i dont think you can do this globally, i would override getConverter() on
 the textfield thats displaying dates, or craete a DateTextField subclass
 that does it for you.

 alternatively you can create a model decorator that does the conversion,
 advantage is that it will work for any component.


 -Igor


 On 4/7/06, Jaime De La Jara [EMAIL PROTECTED] wrote:
 
 
  I commented the lines that define the datetostring converter
  and the effect was that the date was displayed using toString()
  and the float value was displayed correctly.
  So, how can I define converters for different types, like
 
  Float and Date from and to String?. In a previous post I
  learnt that that the conversion was a two-way process, that
  is from type1-type2 and from type2-type1, and that was
  applicable to a textfield.
 
  I'm lost here.
 
  Jaime.
 
 
 
 
 
  i think the problem is that you registered your own
  converter for String.class so when wicket will try to
  display the float in the textfield it will try to format it
  to string, and it will use the datetostring converter
  you registered.
 
  -Igor
 
 
  On 4/7/06, Jaime De La Jara  [EMAIL PROTECTED] wrote:
  
   Here is the original code to define a Date format :
  
   getApplicationSettings().setConverterFactory(new
 IConverterFactory()
   {
   public IConverter newConverter(final Locale locale)
   {
   final Converter converter = new Converter(locale);
   // String - Date
   DateConverter dc = new DateConverter();
   dc.setDateFormat(locale, new
 SimpleDateFormat(dd-MM-));
   converter.set(Date.class, dc);
   // Date - String
   DateToStringConverter dsc = new DateToStringConverter();
   dsc.setDateFormat(locale, new SimpleDateFormat(dd-MM-) );
   converter.set(String.class, dsc); (*)
  
   return converter;
   }
   }
   );
  
   But in this case a float value gets formatted as it were
   a Date.
   If a insert the following code in (*) :
  
   // Float - String
   NumberToStringConverter numberToStringConverter = new
 NumberToStringConverter();
   DecimalFormat fmt = new
   DecimalFormat(###,###,###,###.#);
   numberToStringConverter.setNumberFormat(locale, fmt);
   final StringConverter stringConverter = new StringConverter();
   stringConverter.set (Float.class, numberToStringConverter);
   stringConverter.set(Float.TYPE, numberToStringConverter);
   stringConverter.set(Date.class, dsc);
   converter.set(String.class, stringConverter);
   converter.set (Float.class, new FloatConverter());
  
   I get the float value correctly formmatted but the date is
   displayed using Date.toString().
  
  
   Jaime.
  
  
  
  
   can you show me youre converter code?
  
  
   On 4/6/06, Jaime De La Jara [EMAIL PROTECTED] wrote:
   
Yes, I use the following code :
   
add(new TextField(montoTotal, Float.class));
   
I've made some tests and found that commenting the
definition of the IConverterFactory for the date format
and defining the format for the float field and it worked,
however I cannot define the format for both types.
   
Thanks,
   
Jaime.
   
   
   
did you do TextField.setType(Float.class) or create it with
the constructor that takes the class?
   
-Igor
   
   
On 4/6/06, Jaime De La Jara [EMAIL PROTECTED]  wrote:

 Hi, I've just downloaded version 1.2 beta 3 and I have a
 problem when editing the contents of a javabean,
 particularly in a case of a Float field. The relevant
 code is :

 Javabean :
 public class Pago
 {
 .
 public Float getMontoTotal()
 {
 return Float.valueOf(1234567890);
 }
 ...

Re: [Wicket-user] Re : Re : Re: strange behaviour of TextField conversion to Float in beta3 : resolved !

2006-04-07 Thread Eelco Hillenius
 I commented the lines that define the datetostring converter
 and the effect was that the date was displayed using toString()
 and the float value was displayed correctly.
 So, how can I define converters for different types,
  like
 Float and Date from and to String?.

Like I answered you earlier:


   getApplicationSettings().setConverterFactory(new
IConverterFactory()
   {
   public IConverter newConverter(final Locale locale)
   {
   final Converter converter = new
Converter(locale);
   // String - Date
   DateConverter dc = new DateConverter();
   dc.setDateFormat(locale, new
SimpleDateFormat(dd-MM-));
   converter.set(Date.class, dc);
   // Date - String
   DateToStringConverter dsc = new
DateToStringConverter();
   dsc.setDateFormat(locale, new
SimpleDateFormat(dd-MM-));
   StringConverter sc = new StringConverter();
   sc.set(Date.class, dsc);
   converter.set(String.class, sc);

   return converter;
   }
   });

Notice the use of a seperate StringConverter that has a registry for
type converters itself.

In a previous post I
 learnt that that the conversion was a two-way process, that
 is from type1-type2 and from type2-type1, and that was
 applicable to a textfield.
 I'm lost here.

It is. Currently Wicket doesn't know about ingoing or outgoing values
though. But typically conversion is from String to T and from T to
String. Different converters would be used in both cases.

Eelco


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] IMG reload via AJAX

2006-04-07 Thread Eelco Hillenius

 url=url+rand=+UUID.random().toString()

 but wait...even with that there is a chance of collission...hmmm


Is there? Isn't UUID supposed to be unique in space and time?

Eelco


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Enterprise application using Wicket

2006-04-09 Thread Eelco Hillenius
JSP is not included, but here:
http://www.virtuas.com/articles/webframework-sweetspots.html is a
discussion that might help.

Eelco

On 4/9/06, dave723 [EMAIL PROTECTED] wrote:

 The Fortune 50 company where I work is migrating a proprietary web
 application and is tending toward JSP.

 I'd like to get them to consider Wicket.  What persuasive arguments can I
 make that would counter the momentum of JSP?  Thanks.
 --
 View this message in context: 
 http://www.nabble.com/Enterprise-application-using-Wicket-t1420394.html#a3828769
 Sent from the Wicket - User forum at Nabble.com.



 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: zero session state/stateless pages

2006-04-11 Thread Eelco Hillenius
I think it is possible, but as you can read from Martijn's reply and
the issue I created for this just today, not for this release, as it
means an API break.

See (and track)
http://sourceforge.net/tracker/index.php?func=detailaid=1468853group_id=119783atid=684975

Eelco

On 4/11/06, Michael Day [EMAIL PROTECTED] wrote:
 On Apr 11, 2006, at 6:40 PM, Nathan Hamblen wrote:

  It looks like Wicket is doing all the right things. I don't think it
  should try too hard to avoid generating a session for bookmarkable
  links
  cause the googlebot could always find those same links after it has
  created a session elsewhere, muddying things just as much.

 Not really - the correct action would be to use a robots.txt to
 prevent the spider from going to pages which require a session in the
 first place.

  Instead, search conscious sites (and what big site isn't?) should just
  disable url rewriting in a WebRequest subclass. Users without cookies,
  and Google, will still be able to browse the non-interactive parts of
  the site through bookmarkable urls. You'd have to hack essential
  (search) forms, but that's no harder than doing the same form in a
  caveman framework. Then you'd customize the session expired page to
  explain that cookies are required for interactivity.

 Okay, but I don't think you should require cookies just because you
 want to be search-engine friendly.  URL rewriting is a great and
 useful feature.  I don't see why we should give it up if we don't
 have to.

 The question is really whether it is *possible* for wicket to defer
 creating a session.  If it is possible, then let's defer it.  If not,
 then we have no choice but to use workarounds like this.  But let's
 be realistic - these *are* workarounds.


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: Betr.: Re: [Wicket-user] Wicket 2 (beta 3) and Resin 3.0.18 on SuSE 9.3 FileNotFoundException Too many open files

2006-04-12 Thread Eelco Hillenius
Yeah, the problem /should/ be gone, as in production you would have
resource polling turned off, which is the cause of the problem in the
first place.

Eelco

On 4/12/06, Tom Desmet [EMAIL PROTECTED] wrote:


 After switching to production mode, the problem does not seem to appear any 
 more at first sight.
 As the problem cannot be simulated by carrying out a specific action, but 
 only occurs after a while,
 I cannot confirm that it does not re-occur in production mode any more.
 Again I have monitored file usage in production mode, and it seems that 
 indeed at this moment,
 the  wicket main jar file is not opened multiple times as in development mode.
 Opposed to the main jar, the extension jar has a growing number of file 
 handles.
 Right now I cannot tell if this will make the problem re-occur.

 I'll keep you posted on future experience.

 Thank you for the advice!

 Tom Desmet




  Johan Compagner [EMAIL PROTECTED]
 Verzonden door: [EMAIL PROTECTED]

 11/04/2006 15:51

 Antwoord a.u.b. aan
  wicket-user@lists.sourceforge.net


 Aan wicket-user@lists.sourceforge.net

 Cc


 Onderwerp Re: [Wicket-user] Wicket 2 (beta 3) and Resin 3.0.18 on SuSE 9.3 
 FileNotFoundException Too many open files







 When you set it to deployment mode what happens then?

  If you want markup polling to see changes do set the
  public void setResourcePollFrequency(final Duration resourcePollFrequency)

  to a higher number like 10 seconds..

  johan


 On 4/11/06, Tom Desmet [EMAIL PROTECTED] wrote:

  Hi all,

  On my company, we have an issue with wicket 2.0 beta 3 and Resin 3.0.18.
  After resin is active for a while, a stack trace occurs in the logfile with 
 the following exception ...
  FileNotFoundException (Too many open files). The exception occurs multiple 
 times.
  We have tested with our own application, and afterwards also with a clean  
 resin installation with only the wicket  sample application.
  In both cases the problem occurs.

  We are using SuSE 9.3 ( Linux linux01 2.6.11.4-21.7-smp #1 SMP Thu Jun 2 
 14:23:14 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux )
  on an intel xeon.

  We are using Sun JRE:
  java version 1.5.0_06
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
  Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-b05, mixed mode)

  Problem also occurs on JRockit:
  java version 1.5.0_04
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
  BEA JRockit(R) (build R26.0.0-188-52875-1.5.0_04-20051110-0920-linux-x86_64, 
 )

  When investigating open file handles with lsof, it seems that the wicket jar 
 files have a very high amount of open file handles (+/- 1000).
  (I think the problem occurs when more than 1024 files are opened 
 simultaneously)

  All these file handles are allocated to the wicket jar files.

  We have other resin instances running without wicket, and there the 
 phenomenon does not occur,
  so it is probably related to the combination Resin / Wicket.


  Contents of /proc/sys/fs/file-max
  203357

  Contents of /proc/sys/fs/file-nr
  58350   203357

  Alle entries in /etc/security/limits.conf are commented out.
  Resin is running as user root for testing purposes.

  When investigating open file handles on other files, no extremely high file 
 usage on other processes is detected.
  Does someone have a clue what could be going on here? Has someone 
 experienced something similar?

  After googling for the problem, I did not bump in any eventual solution. All 
 help would be welcome.
  Thanks in advance for any reaction.

  Tom Desmet

  
 

  ATTENTION !!

  This email and any files transmitted with it are confidential and intended 
 solely for the use of the individual or entity to whom they are addressed.
  If you are not the intended recipient of this message you are hereby 
 notified that any use, distribution or reproduction of this message and any 
 files is prohibited.
  If you have received this email in error please notify the system manager by 
 sending this email to [EMAIL PROTECTED] .
  Any views expressed in this email are those of the individual sender and may 
 not necessarily reflect the views of TVH - Group Thermote  Vanhalst.

  This footnote also confirms that this email message has been swept by our 
 virus-scanning software for the presence of computer viruses.
  
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642

Re: [Wicket-user] Data Provider vs. ListView

2006-04-12 Thread Eelco Hillenius
Well, there is pageable list view, which can be used with the same
effect. Basically, the repeater packages (which dataprovider is part
of) are higher-level and more focused on common need, whereas
ListViews are the generic list support components. If you have to do
database driven stuff, and things like sortable/ pageable/ etc,
repeater packages have a lot to offer.

Eelco


On 4/12/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 dataprovider is made for working with large data sets where it is too
 expensive to load the enire dataset into memory at once. dataprovider allows
 you to only retrieve the window of the dataset you are going to display.

 if you have a list of 40 items and it is not expensive to load it you might
 as well use a listview.

 -Igor



 On 4/12/06, Jeffrey H. Lin  [EMAIL PROTECTED] wrote:
 
 
 
  Hello, as a Wicket novice I'm trying to figure out the differences between
 DataProvider and ListView. What I need to do is simply read a table of ~40
 rows, display them on the screen with pagination and sorting, and provide an
 easy way for the user to select multiple rows (probably using checkboxes)
 and perform a delete of those rows.
 
  Is there any reason why I should use ListView over DataProvider or vice
 versa?
 
  Thanks!
  Jeff




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Data Provider vs. ListView

2006-04-12 Thread Eelco Hillenius
Though you can hide paging in the List implementation too, like
PageableList of wicket-contrib-data does. But with Dataprovider it's
clearer on what you are doing though.

Eelco


On 4/12/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 well, i guess the important distinction is that even with a pageable
 listview you must still have the entire list available, where as with a
 dataprovider it will only load the page that is currently displayed.

 -Igor



 On 4/12/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Well, there is pageable list view, which can be used with the same
 effect. Basically, the repeater packages (which dataprovider is part
 of) are higher-level and more focused on common need, whereas
 ListViews are the generic list support components. If you have to do
 database driven stuff, and things like sortable/ pageable/ etc,
 repeater packages have a lot to offer.

 Eelco


 On 4/12/06, Igor Vaynberg [EMAIL PROTECTED]  wrote:
  dataprovider is made for working with large data sets where it is too
  expensive to load the enire dataset into memory at once. dataprovider
 allows
  you to only retrieve the window of the dataset you are going to display.
 
  if you have a list of 40 items and it is not expensive to load it you
 might
  as well use a listview.
 
  -Igor
 
 
 
  On 4/12/06, Jeffrey H. Lin  [EMAIL PROTECTED] wrote:
  
  
  
   Hello, as a Wicket novice I'm trying to figure out the differences
 between
  DataProvider and ListView. What I need to do is simply read a table of ~40
  rows, display them on the screen with pagination and sorting, and provide
 an
  easy way for the user to select multiple rows (probably using checkboxes)
  and perform a delete of those rows.
  
   Is there any reason why I should use ListView over DataProvider or vice
  versa?
  
   Thanks!
   Jeff
 
 


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DatePickerSettings not closing inputstream

2006-04-13 Thread Eelco Hillenius
Thanks Johan. Fixed another one (PackagedTextTemplate) too.

Eelco

On 4/13/06, Johan Compagner [EMAIL PROTECTED] wrote:
 fixed


 On 4/13/06, Davy De Durpel [EMAIL PROTECTED] wrote:
 
  Hi,
 
  Everytime I start my Wicket application, I see a warning in the Glassfish
  log file:
 
  Input stream has been finalized or forced closed without being explicitly
  closed; stream instantiation reported in following stack trace
  java.lang.Throwable
  at
 
 com.sun.enterprise.loader.EJBClassLoader$SentinelInputStream.init(EJBClassLoader.java:1096)
  at
 
 com.sun.enterprise.loader.EJBClassLoader$InternalJarURLConnection.getInputStream
 (EJBClassLoader.java:1189)
  at java.net.URL.openStream(URL.java:1007)
  at
 java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1161)
  at
 
 com.sun.enterprise.loader.EJBClassLoader.getResourceAsStream
 (EJBClassLoader.java:755)
  at
 java.lang.Class.getResourceAsStream(Class.java:1998)
  at
 
 wicket.extensions.markup.html.datepicker.DatePickerSettings.clinit(DatePickerSettings.java:52)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:164)
  at
 
 wicket.extensions.markup.html.datepicker.DatePickerComponentInitializer.class$(DatePickerComponentInitializer.java
 :110)
  at
 
 wicket.extensions.markup.html.datepicker.DatePickerComponentInitializer.init(DatePickerComponentInitializer.java:130)
  at
 wicket.extensions.Initializer.init(Initializer.java:39)
  at wicket.Application.initialize(Application.java:653)
  at
 wicket.Application.initializeComponents(Application.java:718)
  at
 wicket.Application.initializeComponents(Application.java:695)
  at wicket.protocol.http.WicketServlet.init
 (WicketServlet.java:287)
 
 
  This exception seems to be related to the fact that the inputstream is not
  explicitly closed when reading the dateformats.properties file in the
  DatePickerSettings class.  This is not a real bug but I like to have clean
  log files ;-)
 
  Byeee...
  --
  View this message in context:
 http://www.nabble.com/DatePickerSettings-not-closing-inputstream-t1443016.html#a3896735
  Sent from the Wicket - User forum at Nabble.com.
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
  that extends applications into web and mobile media. Attend the live
 webcast
  and join the prime developer group breaking into this new coding
 territory!
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket Session vs HttpSession

2006-04-14 Thread Eelco Hillenius

 However, the session passed to the backend isn't always the same one,
 causing the back-end to throw exceptions.

Then there is something wrong that is not Wicket related. Wicket just
passes/ uses the underlying httpSession.

 Is there something i can do to
 maintain the httpSession (and keep it alive).

Set the timeout value in web.xml

 How come i can't get the
 httpSession from the wicket session (like i can with the request)?

We removed that in Wicket 1.2 as I've seen a couple of bad uses of it.
Basically that was people taking the easy way and depending on
HttpSession instead of Wicket's Session without a good reason.

If you use Wicket's default settings, Session sits on HttpSession. An
alternative strategy to getting the session from the request is to
expose get/setAttribute from wicket.Session in a custom Wicket
session.

 Understandably, modifying the existing application opens a whole new can of
 beans... and is outside the scope of the project.

Yeah, that shouldn't be necesarry. You should find out how having
seperate sessions happens.


 Thanks for your help,

 Nils


Good luck,

Eelco


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket ajax memory leak with IE

2006-04-14 Thread Eelco Hillenius
I can't speak for Igor - though we have talked about that too - but
for my opion see e.g.
http://www.theserverside.com/news/thread.tss?thread_id=39579#204913

Basically, I think continuations are a smart idea, and they might be
useful for wizard/ flow type applications. That said, I also think
they are very procedural, whereas Wicket tries to be the object
oriented framework of the bunch. Thus in that respect I think it
wouldn't be a match for Wicket. Rife does seem to do some smart
optimizations, (though imo, your 'code beauty' suffers from that), but
mind you that Wicket allows for very fancy state optimizations as
well.

So, I'm not pro continuations in Wicket at this point, except for the
ajax optimization with Jetty, which will probably be implemented
transparently. However, if other people do think it is a useful
addition, I think most or all of the core comitters would welcome such
a project as a wicket-stuff project. Geert has done the extra effort
of ensuring his continutation API can be used without RIFE, so that's
certainly an option (I think, because I never seriously thought about
how this would/ should be integrated in Wicket).

My 2c,

Eelco

On 4/14/06, Timo Stamm [EMAIL PROTECTED] wrote:
 Igor,


 do you know RIFE/Continuations? It uses continuations for better state
 handling and control flow instead of better performance.

 There are some examples in this slide (pages 5 to 8):
 https://www.dev.java.net/files/documents/204/3120/rife_fosdem_2004.pdf

 It really looks like an interesting concept. You could keep complicated
 flow control for business-logic at one place.

 It changes the bytecode using ASM, but if it's done properly, I don't care.


 Timo


 Igor Vaynberg schrieb:
  well, at some point the server calls will start returning right? and so
  xmlhttprequest objects will start being reused. it will consume memory to a
  certain point and then stop. if you ask me 100ms for an ajax update is
  unreasonable anyways, this is what jetty 6 continuations are for which would
  be relatively simple to integrate into wicket as an alternative for ajax
  self updating behaviors.
 
  -Igor


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebPage generated script problem

2006-04-16 Thread Eelco Hillenius
That code is for automatically opening new page maps when new windows
are opened (e.g. when doing ctrl+click or ctrl+n in IE). That code had
some problems though, and we rewrote it using cookies when they are
available, using the history trick as a last fall back. There was a
thread about this earlier this week btw.

I agree, any checking like this should be a configuration option. I'll
build that in now.

Eelco


On 4/16/06, Ingram Chen [EMAIL PROTECTED] wrote:
 The WebPage from latest beta generate some javascript:

 if((history.length == 0  document.all) || (history.length == 1 
 !document.all))
 

 I am not sure what this for but while in testing we may dump whole page
 source and preview it in browser. This script always do redirect because
 there is
 no history for such standalone page.

 Is it possible to turn it off via PageSetting ? or at least it can be turned
 off
 in MockWebApplication.

 --
 Ingram Chen
 Java [EMAIL PROTECTED]
 Institue of BioMedical Sciences Academia Sinica Taiwan
 blog: http://www.javaworld.com.tw/roller/page/ingramchen


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebPage generated script problem

2006-04-16 Thread Eelco Hillenius
Done. It's setting automaticMultiWindowSupport.

Eelco


On 4/16/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 That code is for automatically opening new page maps when new windows
 are opened (e.g. when doing ctrl+click or ctrl+n in IE). That code had
 some problems though, and we rewrote it using cookies when they are
 available, using the history trick as a last fall back. There was a
 thread about this earlier this week btw.

 I agree, any checking like this should be a configuration option. I'll
 build that in now.

 Eelco


 On 4/16/06, Ingram Chen [EMAIL PROTECTED] wrote:
  The WebPage from latest beta generate some javascript:
 
  if((history.length == 0  document.all) || (history.length == 1 
  !document.all))
  
 
  I am not sure what this for but while in testing we may dump whole page
  source and preview it in browser. This script always do redirect because
  there is
  no history for such standalone page.
 
  Is it possible to turn it off via PageSetting ? or at least it can be turned
  off
  in MockWebApplication.
 
  --
  Ingram Chen
  Java [EMAIL PROTECTED]
  Institue of BioMedical Sciences Academia Sinica Taiwan
  blog: http://www.javaworld.com.tw/roller/page/ingramchen



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] call for i18n contributions

2006-04-17 Thread Eelco Hillenius
Hi all,

As you might have noticed, we implemented some default validator
messages (Application.properties). We currently have that in languages
English (default), Chinese (zh_TW), German (de) and Dutch (nl).

It would be great if your language is not in that list, you could
contribute it. At the end of this email, I  included the English
contents. Please contribute by either responding to this email, or -
the preferred way - to add your file to
http://sourceforge.net/tracker/index.php?func=detailaid=1471603group_id=119783atid=684977

Thanks!

Eelco





RequiredValidator=field '${label}' is required.
TypeValidator='${input}' is not a valid ${type}.

NumberValidator.range=${input} must be between ${minimum} and ${maximum}.
NumberValidator.minimum='${input}' must be greater than ${minimum}.
NumberValidator.maximum='${input}' must be smaller than ${maximum}.

StringValidator.range='${input}' must be between ${minimum} and
${maximum} chars.
StringValidator.minimum='${input}' must be at least ${mimimum} chars.
StringValidator.maximum='${input}' must be at most ${maximum} chars.

DateValidator.range='${input}' must be between ${minimum} and ${maximum}.
DateValidator.minimum='${input}' must be greater than ${minimum}.
DateValidator.maximum='${input}' must be smaller than ${maximum}.

PatternValidator='${input}' does not match pattern '${pattern}'
EmailAddressPatternValidator='${input}' is not a valid email address.

EqualInputValidator='${input0}' from ${label0} and '${input1}' from
${label1} must be equal.

null=Choose One
nullValid=


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Yahoo Calendar component

2006-04-17 Thread Eelco Hillenius
Yep, YUI has no future in core, at least not in the short term. I
couldn't find enough time to properly build/ support it.

Josua Lim and I moved the YUI code out of extensions into
wicket-contrib-yui and wicket-contrib-yui-examples (wicket-stuff)
where it will hopefully grow into a useful library. I think Joshua
build in decent support for the slider (though not yet complete), but
that Calendar is still pretty raw.

If you are interested in contributing to this project, please let me know.

Eelco


On 4/17/06, Mats Norén [EMAIL PROTECTED] wrote:
 Hi,
 I'm  curious about the future plans for the Yahoo Calendar component
 in the 1.2 release?  Could one of the developers shed some light on
 the subject? :)

 /Mats


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2-rc1 available for download

2006-04-17 Thread Eelco Hillenius
Hi Gustavo,

Sorry for the inconvenience. What kind of test cases are failing? If
you use jWebUnit tests, you probably should set

HttpUnitOptions.setExceptionsThrownOnScriptError(false);

as jWebUnit does not seem not recognize history as a valid javascript property.

Could you give more specifics please?

Eelco


On 4/17/06, Gustavo Hexsel [EMAIL PROTECTED] wrote:
   Argh, my tests don't run anymore.  Is there a place where I can find the 
 detailed changelog between 1.2b3 to 1.2rc1?

   []s Gus


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket 1.2-rc1 available for download

2006-04-17 Thread Eelco Hillenius
That must have been the case where you mount the application on the
server root and where you don't use a web app name.

Fixed in trunk.

Eelco


On 4/17/06, Ramnivas Laddad [EMAIL PROTECTED] wrote:
  Just switched over to rc1 and I started getting the following exception for
 every request.

  String index out of range: -1
  java.lang.StringIndexOutOfBoundsException: String index
 out of range: -1
  at
 wicket.util.string.AppendingStringBuffer.charAt(AppendingStringBuffer.java:247)
  at
 wicket.protocol.http.request.WebRequestCodingStrategy.encode(WebRequestCodingStrategy.java:584)
  at
 wicket.protocol.http.request.WebRequestCodingStrategy.encode(WebRequestCodingStrategy.java:198)
  at wicket.RequestCycle.urlFor(RequestCycle.java:717)
  at wicket.RequestCycle.urlFor(RequestCycle.java:699)
  at wicket.Component.urlFor(Component.java:2187)
  at
 wicket.markup.html.WebPage$PageMapChecker.renderHead(WebPage.java:466)
  at wicket.Component.renderHead(Component.java:1731)
  at
 wicket.markup.html.internal.HtmlHeaderContainer.renderHeaderSections(HtmlHeaderContainer.java:231)
  at
 wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:141)
  at
 wicket.Component.renderComponent(Component.java:1662)
  at wicket.MarkupContainer.onRender(MarkupContainer.java:917)
  at wicket.Component.render(Component.java:1507)
  at wicket.Component.render(Component.java:1473)
  at wicket.MarkupContainer.autoAdd(MarkupContainer.java:196)
  at
 wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:82)
  at
 wicket.MarkupContainer.renderNext(MarkupContainer.java:1351)
  at
 wicket.MarkupContainer.renderAll(MarkupContainer.java:934)
  at wicket.Page.onRender(Page.java:863)
  at wicket.Component.render(Component.java:1507)
  at wicket.Page.renderPage(Page.java:407)
  at
 wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:148)
  at
 wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:60)
  at
 wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49)
  at
 wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66)
  at wicket.RequestCycle.respond(RequestCycle.java:905)
  at wicket.RequestCycle.step(RequestCycle.java:975)
  at wicket.RequestCycle.steps(RequestCycle.java:1034)
  at wicket.RequestCycle.request(RequestCycle.java:453)
  at
 wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215)
  at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
  at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
  at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
  at
 org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
  at
 org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
  at
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
  at
 org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
  at
 org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
  at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
  at
 org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
  at
 org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
  at
 org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
  at
 org.mortbay.http.HttpServer.service(HttpServer.java:927)
  at
 org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
  at
 org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983)
  at
 org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
  at
 org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
  at
 org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
  at
 org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
  1933 [SocketListener0-8] ERROR
 wicket.protocol.http.WebRequestCycle  - String index out of
 range: -1

  -Ramnivas


  Martijn Dashorst wrote:
 The first release candidate of the 1.2 version of Wicket and its subprojects
 is available for download.

  You can download the release here:


 http://sourceforge.net/project/showfiles.php?group_id=119783

  Available in this release are:
   o wicket
   o wicket-extensions
   o wicket-examples
   o wicket-auth-roles
   o wicket-auth-roles-examples
   o wicket-spring
   o wicket-spring-examples
   o wicket-spring-annot
   o wicket-spring-annot-examples
   o wicket-quickstart

  This release has several fixes on the beta3 release, so it is highly
 recommended to update your current development to rc1.

Re: [Wicket-user] Wicket 1.2-rc1 available for download

2006-04-17 Thread Eelco Hillenius
Could you please provide the exact line of that error, and tell us
which browser you are using?

Thanks,

Eelco


On 4/17/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 I'm getting an Object expected javascript error on every page...did
 I forget a jar or something?  These pages don't have any of my own
 javascript so I'm assuming it has something to do w/ the wicket cookie
 scripts I'm seeing while viewing the generated source in the browser.

 Those scripts don't exist on the path that's being generated.

 On 4/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  Hi Gustavo,
 
  Sorry for the inconvenience. What kind of test cases are failing? If
  you use jWebUnit tests, you probably should set
 
  HttpUnitOptions.setExceptionsThrownOnScriptError(false);
 
  as jWebUnit does not seem not recognize history as a valid javascript 
  property.
 
  Could you give more specifics please?
 
  Eelco
 
 
  On 4/17/06, Gustavo Hexsel [EMAIL PROTECTED] wrote:
 Argh, my tests don't run anymore.  Is there a place where I can find 
   the detailed changelog between 1.2b3 to 1.2rc1?
  
 []s Gus
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting language
  that extends applications into web and mobile media. Attend the live webcast
  and join the prime developer group breaking into this new coding territory!
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] RE: Problem with FormComponentFeedbackBorder and Component#isAncestor()? (was: * is not output)

2006-04-18 Thread Eelco Hillenius
I created 
http://sourceforge.net/tracker/index.php?func=detailaid=1472451group_id=119783atid=684975

Thanks for spotting it.

Eelco

On 4/18/06, Sebastian Scheid [EMAIL PROTECTED] wrote:
  I use Wicket 1.2-rc1.
  I use FormComponentFeedbackBorder, but when input error is occured, * is
  not output.
  How has meens been changed?

 Hi,

 I am trying Wicket for a few days now and wanted to use
 FormComponentFeedbackBorder, too. I encountered the same problem with
 1.2beta3 and 1.2RC1. To reproduce the error, go to the
 wicket-example/library EditPage and try to submit the form with an empty
 textfield for title. You get the feedback messages at the top but no
 asterisk next to the textfield.
 It does work with wicket-examples-1.1.1.

 When stepping through the code I recognized that
 ContainerFeedbackMessageFilter#accept(FeedbackMessage) fails and filters the
 correct message out. So the FeedbackBorder never gets any message.
 The accept method calls the deprecated method
 Component#isAncestorOf(Component) which calls
 Component#getParent().contains(component, false) as the @deprecated doc
 states. I am really not familiar with wicket's internals but that doesn't
 make sense in my eyes. Calling parent.getParent().contains(child, false)
 returns true if child is a sibling of parent instead of a child (which
 isAncestorOf is standing for, isn't it?)

 Perhaps parent.isAncestorOf(child) should be replaced with
 parent.getParent().contains(child, true) which works recursive (note the
 true) or simply with parent.contains(child, false/true).

 Regards
 Sebastian



 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Encrytption of password data

2006-04-18 Thread Eelco Hillenius
I don't know whether it is such a good idea to 'unfix' a bug just for
compatibility. It was fixed because people were experiencing problems
with it, right? So unfixing it will give those users those problems
again.

Eelco

On 4/18/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 Yes that is true. We most likely change it back. The reason it has
 been changed is because / and + are not allowed in URLs and we use the
 same encryption algorithm for URL encryption  Though we used a
 (old) standards compliant base64 encoder/decoder it is not URL
 compliant. The new standard (RFC 3xxx) is slightly different and the
 one rc1 is using. rc2 will be out pretty soon I guess and I assume we
 change it back (for compatibility reasons only) and find some other
 solution for URLs

 Juergen

 On 4/18/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:
  Hello list,
 
  for a Wicket-application requiring a signed-in user I use
  PasswordTextField.getModelObject() for acquiring the entered data.
  Going the easy way, I simply stored this in the database, as it was
  already encrypted, and comparison during login is also very easy to
  do.
 
  Now I upgraded from wicket 1.1.1 to 1.2rc1. This method still works,
  but something has changed. Before, all passwords had a '=' as their
  last character, which they now lack. Apart from that, the encryption
  seems to produce the same encrypted strings out of the source strings.
 
  If this is not a bug, it should be stated in the migration guide
  somewhere...
 
  --
  greetings from Berlin,
 
  Rüdiger Schulz
 
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting language
  that extends applications into web and mobile media. Attend the live webcast
  and join the prime developer group breaking into this new coding territory!
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] help: dynamically change the meta tag's content attribute

2006-04-18 Thread Eelco Hillenius
Or, if you write components without knowing about the pages that they
are on, you can use header contributions (see
wicket.behavior.HeaderContributor).

Eelco


On 4/18/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 markup:
 meta wicket:id=meta name=description content=I want to dynamically
 change this text/

 code:
 WebMarkupContainer meta=new WebMarkupContainer(meta);
  add(meta);
 meta.add(new SimpleAttributeModifier(content,
 mydynamiccontent);

 -Igor



 On 4/18/06, nato  [EMAIL PROTECTED] wrote:
 
  I have a meta tag in my markup:
  meta name=description content=I want to dynamically change this text
 
  Is it possible with wicket to change the content attribute of that meta
 tag? How can I do that?
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Formatting DatePIcker

2006-04-18 Thread Eelco Hillenius
Thanks for answering. I improved the javadocs.

Eelco

On 4/18/06, Marco Geier [EMAIL PROTECTED] wrote:
 use *JavaScript* format semantics instead of java's.

 e.g.
 private static final String DATE_FORMAT_STRING = %m/%d/%Y;

 Aditya Patel wrote:
  I am trying to format the DatePicker component using DatePickerSettings but 
  the format is not being applied to the Date and instead  the format String 
  MM/dd/ is getting displayed when I select a Date. Below is the code:
 
  private static final String DATE_FORMAT_STRING = MM/dd/;
  DatePickerSettings settings = new DatePickerSettings();
  settings.setIfFormat(DATE_FORMAT_STRING);
  RequiredTextField dateField1 = new 
  RequiredTextField(startDate, Date.class);
  add(dateField1);
  add(new DatePicker(dateFieldPicker1, dateField1, settings));
 
 
 
 
 
 
 
  -
  Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
  countries) for 2¢/min or less.

 --
 ___

 Dipl.-Ing. Marco Geier
 EyeTea GmbH
 Germany
 phone   +49 (0)721 662464-0
 fax +49 (0)721 662464-1
 mobile  +49 (0)177 6579590
 [EMAIL PROTECTED]


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Encrytption of password data

2006-04-18 Thread Eelco Hillenius
I don't care either, as long as we don't re-introduce something that
is broken just to be backwards compatible. So whatever problem this
fixed in the first place, that should stay fixed. If we can do that in
a backwards compatible way without clutering the API, that's all the
better.

Eelco

On 4/18/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 I'm at a point where I don't care anymore. We can revert it assuming
 (based on ICrypt API) that we always encrypt String and expect valid
 Strings after decrypt, than we need some base64 encoding and if for
 whatever reason that must be RFC2xxx compliant, than it must RFC2xxx
 compliant. URLs can be encoded the ICrypt encoded string to make sure
 they url compliant.

 Juergen

 On 4/18/06, Johan Compagner [EMAIL PROTECTED] wrote:
  yes crypting and base encoding shouldn't be the same thing
 
  Or is it that we use it always where crypting is used? For example cookie
  values
  must those be encoded or not (i do think that we should be secure by default
  and always encrypt them)
 
  If we come to the conclusion that we do use encoding everytime when we
  encrypt then i am with eelco and
  let it be what it is now. If we come to the conclusion that this isn't the
  case then remove it completely.
 
  johan
 
 
 
 
  On 4/18/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
  
  That is not true. We introduced base64 because the encrypted strings
  weren't URL compliant. And than we detected that sun/apache/rfc2054
  base64 encoding doesn't do the job either. But you agree with removing
  it completely out of Crypt and not doing any base64 in AbstractCrypt.
 
  Juergen
 
  On 4/18/06, Martijn Dashorst  [EMAIL PROTECTED] wrote:
   The bug is introduced by the fix for the url encoding. Not the other way
   round. This one should be rolled back, and the URL encoding should be
  fixed
   in a different manner.
  
   Also, the Wicket 1.1 encryption used the Sun BASE64Encoding, which is also
   RFC2045 compliant. Our base64 implementation should reflect that and we
   should implement a separate encryption schema for URL's.
  
   Martijn
  
  
   On 4/18/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
I don't know whether it is such a good idea to 'unfix' a bug just for
compatibility. It was fixed because people were experiencing problems
with it, right? So unfixing it will give those users those problems
again.
   
Eelco
   
On 4/18/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:
 Yes that is true. We most likely change it back. The reason it has
 been changed is because / and + are not allowed in URLs and we use the
 same encryption algorithm for URL encryption  Though we used a
 (old) standards compliant base64 encoder/decoder it is not URL
 compliant. The new standard (RFC 3xxx) is slightly different and the
 one rc1 is using. rc2 will be out pretty soon I guess and I assume we
 change it back (for compatibility reasons only) and find some other
 solution for URLs

 Juergen

 On 4/18/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:
  Hello list,
 
  for a Wicket-application requiring a signed-in user I use
  PasswordTextField.getModelObject() for acquiring
  the
   entered data.
  Going the easy way, I simply stored this in the database, as it was
  already encrypted, and comparison during login is also very easy to
  do.
 
  Now I upgraded from wicket 1.1.1 to 1.2rc1. This method still works,
  but something has changed. Before, all passwords had a '=' as their
  last character, which they now lack. Apart from that, the encryption
  seems to produce the same encrypted strings out of the source
  strings.
 
  If this is not a bug, it should be stated in the migration guide
  somewhere...
 
  --
  greetings from Berlin,
 
  Rüdiger Schulz
 
 
 
 
   ---
   This SF.Net email is sponsored by xPML, a groundbreaking scripting
   language
  that extends applications into web and mobile media. Attend the live
   webcast
  and join the prime developer group breaking into this new coding
   territory!
 
  
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
   ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
   https://lists.sourceforge.net/lists/listinfo/wicket-user
 



  ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
   language
 that extends applications into web and mobile media. Attend the live
   webcast
 and join the prime developer group breaking into this new coding
   territory!

  
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
 ___
 Wicket-user mailing list
 Wicket

Re: [Wicket-user] WebPage generated script problem

2006-04-18 Thread Eelco Hillenius
Also, will this give trouble for pages that are not explicitly XHTML complient?

Eelco

On 4/18/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Without the // I think?

 So instead of
 //![CDATA[
 function isXhtmlFriendly() {
 alert('Yes, I am XHTML friendly');
 alert('quotes , less than , and ampersand  used in this javascript
 code do not yield to XHTML validation error');
 }
  //]]

 it's

 ![CDATA[
 function isXhtmlFriendly() {
 alert('Yes, I am XHTML friendly');
 alert('quotes , less than , and ampersand  used in this javascript
 code do not yield to XHTML validation error');
 }
  ]]

 Or did you have a special reason to include those slashes?

 Eelco

 On 4/18/06, nato [EMAIL PROTECTED] wrote:
  May I suggest that you inlude ![CDATA[ ... ]] inside the script element.
  For example,
  script type=text/javascript
  //![CDATA[
  function isXhtmlFriendly() {
  alert('Yes, I am XHTML friendly');
  alert('quotes , less than , and ampersand  used in this javascript
  code do not yield to XHTML validation error');
  }
   //]]
  /script
 
  The opening and closing CDATA inside the script tag do not affect the
  javascript code because it is javascript-commented.
 
  It is a w3c recommendation that we enclose the javascript code inside CDATA
  if the document type is xhtml. Please see
  http://www.w3.org/TR/xhtml1/#h-4.8
 
  I really need to make all my html pages to be valid XHTML because my moron
  boss requires it. It will be an advance christmas gift for me if this issue
  be fixed in Wicket-1.2final. Thanks to all.
 
 
 
 
  On 4/17/06, Johan Compagner [EMAIL PROTECTED] wrote:
  
   we should add it everywhere:
  
   http://www.w3schools.com/tags/tag_script.asp
  
   it is a required tag.
   And language is depricated and shouldn't be used.
  
  
   johan
  
  
  
  
   On 4/17/06, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
Searching through the code there are quite some locations where we
just do script
   
Juergen
   
On 4/17/06, Mark Derricutt  [EMAIL PROTECTED] wrote:
 language=text/javascript  I hope thats just a
  major typo from
 type=text/javascript ?


 On 4/17/06, Johan Compagner  [EMAIL PROTECTED]  wrote:
 
  that can't be done.
  Because if i do this:
 
  script language=
  text/javascript
  var pagemapcookie =
  getWicketCookie('pagemap-null');
  if(!pagemapcookie  pagemapcookie !=
 '1'){setWicketCookie('pagemap-null',1);}
  else {
  document.location.href
  =

  '/wicket/niceurl/the/homepage/path/wicket:pageMapName/wicket-0';}
  /script
  then the script is not executed.  That can only be used for
  including a
 script file.
 
 
  johan
 
 


   
   
---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
  language
that extends applications into web and mobile media. Attend the live
  webcast
and join the prime developer group breaking into this new coding
  territory!
   
  http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
  https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 
 



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebPage generated script problem

2006-04-18 Thread Eelco Hillenius
On 4/18/06, cowwoc [EMAIL PROTECTED] wrote:
  I personally think this is much ado about nothing. I've used
 text/html for a long time and the CDATA thing below and to date I
 haven't run into any problems. And if I do in the future, I'll just fix
 it ;)

 Gili

Unfortunately, we have to find something that always works, as we're
developing a framework rather than one application.

Eelco


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebPage generated script problem

2006-04-18 Thread Eelco Hillenius
Without the // I think?

So instead of
//![CDATA[
function isXhtmlFriendly() {
alert('Yes, I am XHTML friendly');
alert('quotes , less than , and ampersand  used in this javascript
code do not yield to XHTML validation error');
}
 //]]

it's

![CDATA[
function isXhtmlFriendly() {
alert('Yes, I am XHTML friendly');
alert('quotes , less than , and ampersand  used in this javascript
code do not yield to XHTML validation error');
}
 ]]

Or did you have a special reason to include those slashes?

Eelco

On 4/18/06, nato [EMAIL PROTECTED] wrote:
 May I suggest that you inlude ![CDATA[ ... ]] inside the script element.
 For example,
 script type=text/javascript
 //![CDATA[
 function isXhtmlFriendly() {
 alert('Yes, I am XHTML friendly');
 alert('quotes , less than , and ampersand  used in this javascript
 code do not yield to XHTML validation error');
 }
  //]]
 /script

 The opening and closing CDATA inside the script tag do not affect the
 javascript code because it is javascript-commented.

 It is a w3c recommendation that we enclose the javascript code inside CDATA
 if the document type is xhtml. Please see
 http://www.w3.org/TR/xhtml1/#h-4.8

 I really need to make all my html pages to be valid XHTML because my moron
 boss requires it. It will be an advance christmas gift for me if this issue
 be fixed in Wicket-1.2final. Thanks to all.




 On 4/17/06, Johan Compagner [EMAIL PROTECTED] wrote:
 
  we should add it everywhere:
 
  http://www.w3schools.com/tags/tag_script.asp
 
  it is a required tag.
  And language is depricated and shouldn't be used.
 
 
  johan
 
 
 
 
  On 4/17/06, Juergen Donnerstag  [EMAIL PROTECTED] wrote:
   Searching through the code there are quite some locations where we
   just do script
  
   Juergen
  
   On 4/17/06, Mark Derricutt  [EMAIL PROTECTED] wrote:
language=text/javascript  I hope thats just a
 major typo from
type=text/javascript ?
   
   
On 4/17/06, Johan Compagner  [EMAIL PROTECTED]  wrote:

 that can't be done.
 Because if i do this:

 script language=
 text/javascript
 var pagemapcookie =
 getWicketCookie('pagemap-null');
 if(!pagemapcookie  pagemapcookie !=
'1'){setWicketCookie('pagemap-null',1);}
 else {
 document.location.href
 =
   
 '/wicket/niceurl/the/homepage/path/wicket:pageMapName/wicket-0';}
 /script
 then the script is not executed.  That can only be used for
 including a
script file.


 johan


   
   
  
  
   ---
   This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
   that extends applications into web and mobile media. Attend the live
 webcast
   and join the prime developer group breaking into this new coding
 territory!
  
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] WebPage generated script problem

2006-04-19 Thread Eelco Hillenius
I'm still unsure about that. I'm waiting to see where this thread goes.

Eelco

On 4/19/06, Johan Compagner [EMAIL PROTECTED] wrote:
 are you going to commit this? And use the JavaScriptUtils class all over the
 place to open an close those javascript tags?

 johan




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


Re: [Wicket-user] New Suggestion: Form components as labels

2006-04-19 Thread Eelco Hillenius
I agree that this shouldn't be part of the core components. It
shouldn't be too hard to write your own components that do this though
(or as Igor suggested you might look into behaviors for this); that
would be a one-time undertaking for your whole project. Do a little
bit of extra work now, and you can be lazy for the rest of your
project! :)

Eelco

On 4/19/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 but you can do this yourself by creating a panel that swaps between a label
 and a textfield. i see no need for this to be part of the core textfield
 component, maybe a set of these swappable panels can go into extensions.

 another alternative is to add a behavior that morphs the tag in
 oncomponenttag() to a span or a div and clear out any attributes.

 -Igor



 On 4/19/06, Ali Zaid [EMAIL PROTECTED] wrote:
  Hi Guys;
 
  I have been working with the RC1 and I found it wonderful, today I
  came across something that make me think about new thing to add to
  wicket (unless it is there and I don't know)
 
  The thing is, I want to create some Information sheet (I always do
  ;)), and I need to show info, and give the user the ability to press
  edit and edit this info, what I used to do is to create 2 panels, one
  that show the info as text, and the other is the form. and the other
  trick is to add 2 components to the field and show or hide one
  depending on what mode the user in.
 
  Since I'm lazy, and wicket has beed designed to make us even more lazy
  than before ;), I would suggest this
 
  TextField tf = new TextField(name);
 
  now what wicket would expect is to have a tag for this in html that
  looks like this
 
  input type=text wicket:id=name /
 
  now come the lazy part why don't we add something to it to make it
  render as a simple Label, something like:
 
  tf.preview(true);
 
  or
 
  tf.renderAsLabel(true);
 
  now if this can be done for all the form component in my openion this
  would be really useful, tell you the truth I'm so excited about Ajax
  in place edit of 1.2, and I'm trying to use it in a new project I'm
  writting in wicket! but still the above is really worth allot in my
  openion.
 
  --
  Regards, Ali
  -
  Fight back spam! Download the Blue Frog.
 
 http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
 
 
  ---
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




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


Re: [Wicket-user] Suggestion for PageParameters

2006-04-19 Thread Eelco Hillenius
Could you please file a bug report/ feature request for that?

Eelco

On 4/19/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:
 Hey,

 I have a suggestion for PageParameters. All those nice methods
 getInt(), getBoolean() etc. should not throw an Exception, at least if
 a default value is provided. I mean, that's the purpose of default
 values, isn't it ;)

 Currently I'm helping myself with letting
 org.apache.commons.lang.math.NumberUtils do the conversion.

 I see that these convinient methods are all defined in ValueMap, where
 the situation might be different (i.e. Exceptions should not be
 prevented).


 --
 greetings from Berlin,

 Rüdiger Schulz



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



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


Re: [Wicket-user] Wicket 1.2-rc2 available for download

2006-04-19 Thread Eelco Hillenius
I added it. Xie xie!

Eelco


On 4/19/06, lu dongping [EMAIL PROTECTED] wrote:
 Hi, Martijn
 here is the simple chinese version for Application.properties !

 Regards,
 outersky

 On 4/20/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
  All,
 
  To keep our release cycle moving, I have created and uploaded a new RC
  release of 1.2, with several bugs fixed, and some additional localized
  messages as defaults. Keep them coming! Please submit your language file
  using the Java unicode format as used in the finnish and hungarian examples.
 
  We now have:
   - english
   - french
   - german
   - finnish
   - danish
   - hungarian
   - portugese (brasilian)
   - chinese (taiwan)
 
  Looking at our frappr map we can at least get 10 or so more languages
  implemented (japanese, swedish, norwegian, spanish, romainian, czech,
  polish, indian, farsi, arabic, etc)! And of course we should get someone to
  submit a Klingon and Swedish Chef version (does anyone know the locale keys
  for that)?
 
  Also, can someone please confirm that the EqualPasswordInputValidator
  message has been created properly for their own language? I tried to create
  the message based on the EqualInputValidator. The only language I haven't
  touched yet is chinese, as I /really/ can't read that language.
 
  The list of changes between RC1 and RC2:
 
  o Added EqualPasswordInputValidator, which doesn't show the user input in
  its feedback message.
  o Improved error message handling when exceptions occur during validation.
  o Fixed encryption issue of password, maintaining backwards compatibility,
  and implementing correct URL encryption using URL safe base64 encryption.
  o Added Brazilian translation of our Application.properties
  o fixed FormcomponentFeedbackBorder, which didn't display when it should
  o override setModel and added setList. The override on setModel does an
  additional remove of the children so that - even if optimizeItemRemoval ==
  true - the listview will be rendered with the actual contents. setList is a
  convenience method and is consitent with the List constructor.
  o fixed window checker for case where app is configured for server root and
  has no web app name.
 
  Have fun!
 
  Martijn
 
  --
  Wicket 1.2 is coming! Write Ajax applications without touching JavaScript!
  -- http://wicketframework.org




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


Re: [Wicket-user] Wicket 1.2-rc2 available for download

2006-04-19 Thread Eelco Hillenius
Little bit. I've worked in China for a few months (not IT). Kind of
got stuck at the speaking part :)

Is our forminput example still up-to-date btw?

Thanks,

Eelco


On 4/19/06, lu dongping [EMAIL PROTECTED] wrote:
 haha, you know chinese ?

 bu xie !

 outersky

 On 4/20/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
  I added it. Xie xie!
 
  Eelco
 
 
  On 4/19/06, lu dongping [EMAIL PROTECTED] wrote:
   Hi, Martijn
   here is the simple chinese version for Application.properties !
  
   Regards,
   outersky
  
   On 4/20/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
All,
   
To keep our release cycle moving, I have created and uploaded a new RC
release of 1.2, with several bugs fixed, and some additional localized
messages as defaults. Keep them coming! Please submit your language file
using the Java unicode format as used in the finnish and hungarian 
examples.
   
We now have:
 - english
 - french
 - german
 - finnish
 - danish
 - hungarian
 - portugese (brasilian)
 - chinese (taiwan)
   
Looking at our frappr map we can at least get 10 or so more languages
implemented (japanese, swedish, norwegian, spanish, romainian, czech,
polish, indian, farsi, arabic, etc)! And of course we should get 
someone to
submit a Klingon and Swedish Chef version (does anyone know the locale 
keys
for that)?
   
Also, can someone please confirm that the EqualPasswordInputValidator
message has been created properly for their own language? I tried to 
create
the message based on the EqualInputValidator. The only language I 
haven't
touched yet is chinese, as I /really/ can't read that language.
   
The list of changes between RC1 and RC2:
   
o Added EqualPasswordInputValidator, which doesn't show the user input 
in
its feedback message.
o Improved error message handling when exceptions occur during 
validation.
o Fixed encryption issue of password, maintaining backwards 
compatibility,
and implementing correct URL encryption using URL safe base64 
encryption.
o Added Brazilian translation of our Application.properties
o fixed FormcomponentFeedbackBorder, which didn't display when it should
o override setModel and added setList. The override on setModel does an
additional remove of the children so that - even if optimizeItemRemoval 
==
true - the listview will be rendered with the actual contents. setList 
is a
convenience method and is consitent with the List constructor.
o fixed window checker for case where app is configured for server root 
and
has no web app name.
   
Have fun!
   
Martijn
   
--
Wicket 1.2 is coming! Write Ajax applications without touching 
JavaScript!
-- http://wicketframework.org
  
  
 
 
  ---
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



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


Re: [Wicket-user] Wicket 1.2-rc2 available for download

2006-04-19 Thread Eelco Hillenius
On 4/19/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 show off

more?


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


Re: [Wicket-user] call for i18n contributions

2006-04-20 Thread Eelco Hillenius
Tanks a lot. I added it.

Eelco

On 4/20/06, Akira Ueda [EMAIL PROTECTED] wrote:
 Hi,

 Here is a 'ja' version of properties file.

 RequiredValidator='${label}' \u6b04 \u306f\u5fc5\u9808\u3067\u3059\u3002
 TypeValidator='${input}' \u306f ${type}
 \u578b\u3068\u3057\u3066\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002

 NumberValidator.range=${input} \u306f ${minimum} \u4ee5\u4e0a
 ${maximum} \u4ee5\u4e0b\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002
 NumberValidator.minimum='${input}' \u306f ${minimum}
 \u4ee5\u4e0a\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002
 NumberValidator.maximum='${input}' \u306f ${maximum}
 \u4ee5\u4e0b\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002

 StringValidator.range='${input}' \u306f ${minimum}
 \u6587\u5b57\u304b\u3089 ${maximum}
 \u6587\u5b57\u307e\u3067\u306b\u3057\u3066\u304f\u3060\u3055\u3044.
 StringValidator.minimum='${input}' \u306f\u6700\u4f4e ${mimimum}
 \u6587\u5b57\u5fc5\u8981\u3067\u3059\u3002
 StringValidator.maximum='${input}' \u306f\u6700\u5927 ${maximum}
 \u6587\u5b57\u307e\u3067\u3067\u3059\u3002

 DateValidator.range='${input}' \u306f ${minimum} \u304b\u3089
 ${maximum} 
 \u307e\u3067\u306e\u671f\u9593\u306b\u5165\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002
 DateValidator.minimum='${input}' \u306f ${minimum}
 \u4ee5\u964d\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002
 DateValidator.maximum='${input}' \u306f
 ${maximum}\u3000\u4ee5\u524d\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002

 PatternValidator='${input}' \u306f\u30d1\u30bf\u30fc\u30f3
 '${pattern}' \u306b\u30de\u30c3\u30c1\u3057\u307e\u305b\u3093\u3002
 EmailAddressPatternValidator='${input}'
 \u306f\u6b63\u3057\u3044\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002

 EqualInputValidator=${label0} \u6b04\u306e '${input0}' \u3068
 ${label1} \u6b04\u306e '${input1}'
 \u306f\u540c\u3058\u3067\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002

 null=\u9078\u3093\u3067\u304f\u3060\u3055\u3044
 nullValid=

 Thanks,
 Akira


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



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


Re: [Wicket-user] Wicket now ranks 89 on sf.net top 100

2006-04-20 Thread Eelco Hillenius
Heh. Don't get carried away tooo much; we might be 200 next week :)
And there are a lot of Java projects that are not on sourceforge
either.

Eelco

On 4/19/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
 As Jonathan observed yesterday, the Wicket project has entered the ranks of
 the SourceForge top 100 of most active projects. We are barely in the top
 100 and today we moved up 9 places!


 Date (UTC)Rank
 20 Apr 200689
 19 Apr 2006N/D
 18 Apr 200698

 Martijn
 --
 Wicket 1.2 is coming! Write Ajax applications without touching JavaScript!
 -- http://wicketframework.org


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


Re: [Wicket-user] call for i18n contributions

2006-04-20 Thread Eelco Hillenius
Thanks. I already took care of that :)

Oh, and like I stated in another email, contributions for the
FormInput example of wicket-examples are more than welcome too!

Eelco


On 4/20/06, Akira Ueda [EMAIL PROTECTED] wrote:
 2nd try. I attached ja version.
 Please ignore my previous mail. (Its some lines are wrapped).
 Thanks,
 Akira





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


Re: [Wicket-user] call for i18n contributions

2006-04-20 Thread Eelco Hillenius
I converted it (the Persian input) to escaped unicode. As I needed a
tool for that I added a simple converter as a wicket example.

Eelco


On 4/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Very cool. I don't think we can put it in a file like that though.
 Martijn warned that we should use unicode characters for anything
 fancier than old ASCII. For instance, a line of the Chinese
 translation is

 NumberValidator.minimum = '${input}' \u5FC5\u9808\u5927\u65BC ${minimum}

 If I understand correctly, Persian uses the arabic alphabet as well,
 which is listed with unicode here:
 http://en.wikipedia.org/wiki/Arabic_alphabet

 Could you please take a look at that?

 Thanks!

 Eelco

 On 4/17/06, ali [EMAIL PROTECTED] wrote:
 
   from Iran : fa_IR
 
  RequiredValidator= ورودی '${label}' مورد نیاز است.
  TypeValidator='${input}'  یک  ${type} معتبر نیست.
 
  NumberValidator.range=${input} باید بین ${minimum} و ${maximum} باشد.
  NumberValidator.minimum='${input}' باید بزرگتر از ${minimum} باشد.
  NumberValidator.maximum='${input}' باید کوچکتر از ${maximum} باشد.
 
  StringValidator.range='${input}' باید بین ${minimum} و ${maximum} کاراکتر
  باشد.
  StringValidator.minimum='${input}' باید حداقل ${mimimum} کاراکتر باشد.
  StringValidator.maximum='${input}' باید حداکثر ${maximum} کاراکتر باشد.
 
  DateValidator.range=${input} باید بین ${minimum} و ${maximum} باشد.
  DateValidator.minimum='${input}' باید بعد از ${minimum} باشد.
  DateValidator.maximum='${input}' باید قبل از ${maximum} باشد.
 
  PatternValidator='${input}' مطابق الگو '${pattern}' نیست.
  EmailAddressPatternValidator='${input}' یک آدرس پستی معتبر نیست.
 
  EqualInputValidator='${input0}' از ${label0} و '${input1}' از ${label1}
  باید مساوی باشند.
 
  null=یکی انتخاب کن
  nullValid=نامشخص
 
  
  with best regards
  --
  Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting language
  that extends applications into web and mobile media. Attend the live webcast
  and join the prime developer group breaking into this new coding territory!
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



Re: [Wicket-user] Re: call for i18n contributions

2006-04-20 Thread Eelco Hillenius
Cool, added it too.

Eelco

On 4/20/06, nato [EMAIL PROTECTED] wrote:
 Here's a translation in Filipino/Tagalog (tl)
 ___

 RequiredValidator=Ang '${label}' ay kailangan.
 TypeValidator=Ang '${input}' ay hindi isang ${type}.

 NumberValidator.range=Ang ${input} ay dapat na nasa pagitan ng ${minimum}
 hanggang ${maximum} lamang.
 NumberValidator.minimum=Ang '${input}' ay dapat na mas higit sa ${minimum}.
 NumberValidator.maximum=Ang '${input}' ay dapat na mas mababa sa ${maximum}.

 StringValidator.range=Ang bilang ng mga titik sa '${input}' ay dapat na nasa
 pagitan ng ${minimum} hanggang ${maximum} lamang.
 StringValidator.minimum=Ang bilang ng mga titik sa '${input}' ay hindi dapat
 na mas kaunti sa ${mimimum}.
 StringValidator.maximum=Ang bilang ng mga titik sa '${input}' ay hindi dapat
 na mas marami sa ${maximum}.

 DateValidator.range=Ang ${input} ay dapat na nasa pagitan ng ${minimum}
 hanggang ${maximum} lamang.
 DateValidator.minimum='Ang '${input}' ay dapat na mas higit sa ${minimum}.
 DateValidator.maximum=Ang '${input}' ay dapat na mas mababa sa ${maximum}.

 PatternValidator=Ang '${input}' ay hindi tumugma sa pattern na '${pattern}'.
 EmailAddressPatternValidator=Ang '${input}' ay hindi
 puwedeng email address.

 EqualInputValidator=Ang '${input0}' mula sa ${label0} at ang '${input1}'
 mula sa ${label1} ay dapat na magkapareho.

 null=Mamili ng isa
 nullValid=
 __





  On 4/18/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Also, it would be really cool to have as many languages as possible
 for the FormInput example of wicket-examples. Contributions are
 welcome!

 Eelco

 On 4/17/06, Eelco Hillenius  [EMAIL PROTECTED] wrote:
  Hi all,
 
  As you might have noticed, we implemented some default validator
  messages (Application.properties). We currently have that in languages
  English (default), Chinese (zh_TW), German (de) and Dutch (nl).
 
  It would be great if your language is not in that list, you could
  contribute it. At the end of this email, I  included the English
  contents. Please contribute by either responding to this email, or -
  the preferred way - to add your file to
 
 http://sourceforge.net/tracker/index.php?func=detailaid=1471603group_id=119783atid=684977
 
  Thanks!
 
  Eelco
 
 
 
 
 
  RequiredValidator=field '${label}' is required.
  TypeValidator='${input}' is not a valid ${type}.
 
  NumberValidator.range=${input} must be between ${minimum} and ${maximum}.
  NumberValidator.minimum='${input}' must be greater than
 ${minimum}.
  NumberValidator.maximum='${input}' must be smaller than
 ${maximum}.
 
  StringValidator.range='${input} ' must be between ${minimum} and
  ${maximum} chars.
  StringValidator.minimum='${input}' must be at least
 ${mimimum} chars.
  StringValidator.maximum='${input}' must be at most
 ${maximum} chars.
 
  DateValidator.range='${input}' must be between ${minimum} and ${maximum}.
  DateValidator.minimum='${input}' must be greater than ${minimum}.
  DateValidator.maximum='${input}' must be smaller than ${maximum}.
 
  PatternValidator='${input}' does not match pattern '${pattern}'
  EmailAddressPatternValidator='${input}' is not a valid
 email address.
 
  EqualInputValidator='${input0}' from ${label0} and '${input1}' from
  ${label1} must be equal.
 
  null=Choose One
  nullValid=
 


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642

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




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


Re: [Wicket-user] Bug: Message from EmailAddressPatternValidator not displayed correctly

2006-04-20 Thread Eelco Hillenius
It's always a good idea to file bug reports on the sourceforge site,
so that we don't forget about them, and everyone else can track
whether they are fixed or not. Sourceforge seems to be down now, but
I'll add a report later.

Eelco


On 4/20/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:
 Still incorrect in rc2...


 Ingram Chen wrote on 20.04.2006 at 15:50:

  Is this being fixed ? This is still incorrect in rc2.

  On 4/20/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:
  Juergen Donnerstag wrote on 19.04.2006 at 18:05:

  Where does the a come from?

  this is what I entered in the textfield.


  --
  greetings from Berlin,

  Rüdiger Schulz


  Juergen

  On 4/19/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:
  Hello list,
 
  in a form I have a TextField for an email, simply like this:
 
  final TextField email = new TextField(email);
  email.add(EmailAddressPatternValidator.getInstance());
  add(email);
 
  In the properties for the enclosing page, I defined a message for
  invalid emails:
 
  editForm.email.EmailAddressPatternValidator
 
  This worked well before upgrading from 1.1.1 to 1.2rc1. Other messages
  in this properties file for other form components still do.
 
  Now I get the message 'a' does not match pattern
  '[EMAIL PROTECTED]'.
 
  I'd say several thing go wrong here:
 
  * My custom message gets ignored.
  * Instead of the default message for
  EmailAddressPatternValidator, the
  one for PatternValidator is displayed.
  * The message for PatternValidator does not display the pattern
  itself, but its class and adress.
 
  Another thing is, although I set another Locale in my application's
  init(), the english default error is displayed (and I see a german
  file in the wicket jar). I set the Locale like this:
 
  getApplicationSettings().setDefaultLocale(Locale.GERMAN);
 
  (I also tried Locale.GERMANY)
 
 
 
  --
  greetings from Berlin,
 
  Rüdiger Schulz
 
 
 
  ---
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job 
  easier
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  http://sel.as-us.falkag.net/sel?cmdlnk kid0709 bid 3057 dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


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






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










 --
 greetings from Berlin,

 Rüdiger Schulz



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



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


Re: [Wicket-user] Wicket 1.2-rc2 available for download

2006-04-20 Thread Eelco Hillenius
 3:
 FormInput_zh_CN.html is not completely translated to chinese.
 and , I don't like the current style it used to present chinese:
 #20351;#29992;#22320;#28857;

 generally, I write html file in utf8 encoding , then I can directly enter
 chinese , and it seems more friendly.

Agreed. We didn't do that as CVS only had the choice for ASCII or
binary. I just comitted your file (reply to another thread,
FormInput_zh_CN.html), which seems to work fine now. Much nicer to
work like that.

Eelco


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


Re: [Wicket-user] Wicket now ranks 89 on sf.net top 100

2006-04-20 Thread Eelco Hillenius
Haha, and you distributed that script over 500 computers world-wide
didn't you? ;)

Eelco

On 4/20/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
 write a download script that downloads the wicket distributions constantly.
 That should help :-) Also page clicks on the project pages of
 http://www.sf.net/projects/wicket help.

 Martijn



 On 4/20/06, Johan Compagner [EMAIL PROTECTED] wrote:
 
  pessimist.
 
  i want in top 5!!!
 
  What is exactly monitored?
  commits? downloads? mailing-lists?
 
  can i spam somehow? ;)
 
 
  johan
 
 
 
 
  On 4/20/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
   Heh. Don't get carried away tooo much; we might be 200 next week :)
   And there are a lot of Java projects that are not on sourceforge
   either.
  
   Eelco
  
   On 4/19/06, Martijn Dashorst  [EMAIL PROTECTED] wrote:
As Jonathan observed yesterday, the Wicket project has entered the
 ranks of
the SourceForge top 100 of most active projects. We are barely in the
 top
100 and today we moved up 9 places!
   
   
Date (UTC)Rank
20 Apr 200689
19 Apr 2006N/D
18 Apr 200698
   
Martijn
--
Wicket 1.2 is coming! Write Ajax applications without touching
 JavaScript!
-- http://wicketframework.org
  
  
   ---
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make your job
 easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
  
 http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 



 --

 Wicket 1.2 is coming! Write Ajax applications without touching JavaScript!
 -- http://wicketframework.org


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


Re: [Wicket-user] RC2 - still have javascript errors

2006-04-20 Thread Eelco Hillenius
I think Igor meant what the servlet-mapping element looks like. E.g.
phonebook has:

servlet-mapping
servlet-namephonebook/servlet-name
url-pattern/app/*/url-pattern
/servlet-mapping

if that would be

servlet-mapping
servlet-namephonebook/servlet-name
url-pattern/app//url-pattern
/servlet-mapping

(without the *), package resources won't work.

Eelco


On 4/20/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 servlet-classwicket.protocol.http.WicketServlet/servlet-class

 On 4/20/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
  what is the servlet mapping you use for the wicket servlet?
 
  -Igor
 
 
 
  On 4/20/06, Vincent Jenks [EMAIL PROTECTED]  wrote:
   404 not found
  
   On 4/20/06, Johan Compagner  [EMAIL PROTECTED] wrote:
and what does this link return?
   
   
   
  /MyApp/products/resources/wicket.markup.html.WebPage/cookies.js;jsessionid=8D5250BD41A597EBD63C695113E757DF
   
johan
   
   
   
On 4/20/06, Vincent Jenks [EMAIL PROTECTED] wrote:

 Yep, here's all the js stuff I see in the head:
   
script type=text/javascript
   
  src=/MyApp/products/resources/wicket.markup.html.WebPage/cookies.js;jsessionid=8D5250BD41A597EBD63C695113E757DF/script
script type=text/javascriptvar pagemapcookie =
getWicketCookie('pm-null/MyAppProductCatalogApp');
if(!pagemapcookie  pagemapcookie !=
   
  '1'){setWicketCookie('pm-null/MyAppProductCatalogApp',1);}
else {document.location.href =
   
  '/MyApp/products;jsessionid=8D5250BD41A597EBD63C695113E757DF?wicket:bookmarkablePage=wicket-0:com.myapp.ui.ProductCatalog';}
/script
   
...and in the body tag:
   
body
   
  onUnLoad=deleteWicketCookie('pm-null/MyAppProductCatalogApp');
   
On 4/20/06, Johan Compagner [EMAIL PROTECTED] wrote:
 how is that possible?
 don't you have a script like:
 script type=text/javascript

   
  src=/wicket/forminput/resources/wicket.markup.html.WebPage/cookies.js/script

 included in youre page?


 johan


 On 4/20/06, Vincent Jenks  [EMAIL PROTECTED]  wrote:
 
  Using Wicket 1.2RC2, I still get these javascript errors in both
 Firefox 1.5.0.2 and IE 6.0:

 deleteWicketCookie is not defined
 getWicketCookie is not defined



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

   
  http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

  https://lists.sourceforge.net/lists/listinfo/wicket-user


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


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



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

Re: [Wicket-user] call for i18n contributions

2006-04-22 Thread Eelco Hillenius
Thanks. That's language code 'sv', right? (Application_sv.properties).

Eelco

On 4/20/06, Per Ejeklint [EMAIL PROTECTED] wrote:
 Here is the quick Swedish translation (couldn't log in to sourceforge
 right now)!

 RequiredValidator=fältet '${label}' krävs.
 TypeValidator='${input}' är ingen giltig ${type}.

 NumberValidator.range=${input} måste vara mellan ${minimum} och $
 {maximum}.
 NumberValidator.minimum='${input}' måste vara större än ${minimum}.
 NumberValidator.maximum='${input}' måste vara mindre än ${maximum}.

 StringValidator.range='${input}' måste innehålla mellan ${minimum}
 och ${maximum} tecken.
 StringValidator.minimum='${input}' måste innehålla minst ${mimimum}
 tecken.
 StringValidator.maximum='${input}' får som mest innehålla ${maximum}
 tecken.

 DateValidator.range='${input}' måste vara mellan ${minimum} och $
 {maximum}.
 DateValidator.minimum='${input}' måste vara senare än ${minimum}.
 DateValidator.maximum='${input}' måste vara tidigare än ${maximum}.

 PatternValidator='${input}' matchar inte mönstret '${pattern}'
 EmailAddressPatternValidator='${input}' är ingen giltig epostadress.

 EqualInputValidator='${input0}' från ${label0} och '${input1}' från $
 {label1} måste vara lika.

 null=Välj en
 nullValid=

 Cheers!

 /Per

 17 apr 2006 kl. 09.39 skrev Eelco Hillenius:

  Hi all,
 
  As you might have noticed, we implemented some default validator
  messages (Application.properties). We currently have that in languages
  English (default), Chinese (zh_TW), German (de) and Dutch (nl).
 
  It would be great if your language is not in that list, you could
  contribute it. At the end of this email, I  included the English
  contents. Please contribute by either responding to this email, or -
  the preferred way - to add your file to
  http://sourceforge.net/tracker/index.php?
  func=detailaid=1471603group_id=119783atid=684977
 
  Thanks!
 
  Eelco
 
 
 
 
 
  RequiredValidator=field '${label}' is required.
  TypeValidator='${input}' is not a valid ${type}.
 
  NumberValidator.range=${input} must be between ${minimum} and $
  {maximum}.
  NumberValidator.minimum='${input}' must be greater than ${minimum}.
  NumberValidator.maximum='${input}' must be smaller than ${maximum}.
 
  StringValidator.range='${input}' must be between ${minimum} and
  ${maximum} chars.
  StringValidator.minimum='${input}' must be at least ${mimimum} chars.
  StringValidator.maximum='${input}' must be at most ${maximum} chars.
 
  DateValidator.range='${input}' must be between ${minimum} and $
  {maximum}.
  DateValidator.minimum='${input}' must be greater than ${minimum}.
  DateValidator.maximum='${input}' must be smaller than ${maximum}.
 
  PatternValidator='${input}' does not match pattern '${pattern}'
  EmailAddressPatternValidator='${input}' is not a valid email address.
 
  EqualInputValidator='${input0}' from ${label0} and '${input1}' from
  ${label1} must be equal.
 
  null=Choose One
  nullValid=
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking scripting
  language
  that extends applications into web and mobile media. Attend the
  live webcast
  and join the prime developer group breaking into this new coding
  territory!
  http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user



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



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


Re: [Wicket-user] Image upload

2006-04-22 Thread Eelco Hillenius
wicket-contrib-examples of wicket-stuff has the cdapp example that
does this. It uses hibernate and stores uploaded images in the
database as a blob.

Eelco


On 4/21/06, Steve Knight [EMAIL PROTECTED] wrote:
 I am creating a form that will allow users to upload image files that will
 be displayed on other pages.  How should I go about uploading the images so
 that they can be used in Wicket Image components on the other pages?  The
 upload part is not problem, I just don't know where I should put them.

 On my view pages, I am using ThumbnailImageResource which takes a
 WebResource in it's contructor to find the image.  Where should I save the
 images to make this work?

 Thanks.

 Steve





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


Re: [Wicket-user] migrating to 1.1

2006-04-22 Thread Eelco Hillenius
Geert, if it is a project you can share, we could help you I think.
It's probably not a zillion lines project anyway, right? Can you
contact me ofline if you are interested in that?

Eelco

On 4/21/06, Geertjan Wielenga [EMAIL PROTECTED] wrote:


  Well, I'm a bit fearful of doing that. I'm building all samples against 1.1
 and integrating them into NetBeans at that level. After JavaOne, I'll come
 back to this and upgrade them to 1.2.

  -- Gj


  Vincent Jenks wrote:

  I'd almost say that you might want to consider just using 1.2 since it
 is now in RC mode and will be production-grade soon? Correct me if
 I'm wrong, but 1.1.1 will be obsolete soon.

 I'm using 1.2RC2 on a project that will go into productin in less than
 a month and so far I'm very happy w/ it. I just upgraded from 1.1.1
 and so far, it's solid.

 On 4/21/06, Geertjan Wielenga [EMAIL PROTECTED] wrote:


  Yes, I had 1.0.3 samples and now, for the NetBeans support, I'd like to use
 the latest stable major version, which is 1.1. So I don't know what the
 difference was exactly, but I got the 1.1 samples and everything seems to be
 ok now.

  Gj


  Johan Compagner wrote:

 migrating to 1.1? from where 1.0?
  For every release we have a 1-1 relation shipt with our examples or
 extentions (and most wicket-stuff things also)

  johan



 On 4/21/06, Geertjan Wielenga [EMAIL PROTECTED] wrote:


  I migrated to Wicket 1.1 and found a problem with this method in Guest
 Book (the arrow point to the problematic line):


  public CommentForm(final String id) {
  // Construct form with no validation listener
 -- super(id, new CompoundPropertyModel(new Comment()),
 null);

  // Add text entry widget
  add(new TextArea(text));
  }


 Does 1.1 come with updated samples? Or can I change the above somehow?

 Gj


 ---
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job

  easier


  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo


 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642


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




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




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


Re: [Wicket-user] migrating to 1.1

2006-04-22 Thread Eelco Hillenius
We aim for 2.0 actually. Both the authors (Martijn and me) are core
developers, so we hope to keep up with the changes.

Eelco


On 4/21/06, Vincent Jenks [EMAIL PROTECTED] wrote:
 And, if I'm not mistaken, the book will be based on 1.2, correct?

 On 4/21/06, Martijn Dashorst [EMAIL PROTECTED] wrote:
  we are going to release 1.2 pretty soon, I suppose somewhere in the next two
  weeks, preferrable before 1st of may.
 
   Wicket 1.2 has many improvements over 1.1 and will be our major release. I
  don't know how long a release cycle for the netbeans module will be, but you
  might want to wait for the 1.2 final release.
 
   Martijn
 
 
  On 4/21/06, Geertjan Wielenga [EMAIL PROTECTED] wrote:
  
  
   Yes, I had 1.0.3 samples and now, for the NetBeans support, I'd like to
  use the latest stable major version, which is 1.1. So I don't know what the
  difference was exactly, but I got the 1.1 samples and everything seems to be
  ok now.
  
   Gj
  
  
  
   Johan Compagner wrote:
  
   migrating to 1.1? from where 1.0?
   For every release we have a 1-1 relation shipt with our examples or
  extentions (and most wicket-stuff things also)
  
   johan
  
  
  
   On 4/21/06, Geertjan Wielenga [EMAIL PROTECTED] wrote:
   
   
I migrated to Wicket 1.1 and found a problem with this method in Guest
Book (the arrow point to the problematic line):
   
   
public CommentForm(final String id) {
// Construct form with no validation listener
--   super(id, new CompoundPropertyModel(new Comment()),
null);
   
// Add text entry widget
add(new TextArea(text));
}
   
   
Does 1.1 come with updated samples? Or can I change the above somehow?
   
Gj
  
  
  
  
   ---
   Using Tomcat but need to do more? Need to support web services, security?
   Get stuff done quickly with pre-integrated technology to make your job
  easier
   Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
  
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 
 
 
  --
  Wicket 1.2 is coming! Write Ajax applications without touching JavaScript!
  -- http://wicketframework.org


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



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


Re: [Wicket-user] VOTE: ListView.setUseOptimizedItemRemoval()

2006-04-22 Thread Eelco Hillenius
I'm not sure setReuseItems is the best name, but I not a friend of
setUseOptimizedItemRemoval.

Eelco

On 4/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 +1

 we can deprecate the existing one and have it forward to the new one as not
 to break the api. then remove the deprecated method once 1.2 is out of the
 door.

 -Igor



  On 4/21/06, cowwoc [EMAIL PROTECTED] wrote:
 
  I vote in favor of renaming setUseOptimizedItemRemoval() to
  setReuseItems() because I feel it is more descriptive of what it
  actually does. What do the rest of you think?
 
  Thanks,
  Gili
 
 
 
 




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


Re: [Wicket-user] proposal: internationalization project

2006-04-24 Thread Eelco Hillenius
On 4/23/06, Iman Rahmatizadeh [EMAIL PROTECTED] wrote:
 I'm ready for Persian/Farsi (fa_IR).
 Just asking, would it be a good idea to let wicket automatically set the
 page direction (ltr or rtl) based on the locale ?

I have no experience with that, so I wouldn't know. Which is exactly
why we should startup such a project :)

Eelco



 Iman



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



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


Re: [Wicket-user] image ref within CSS

2006-04-24 Thread Eelco Hillenius
On 4/24/06, karthik Guru [EMAIL PROTECTED] wrote:
 I have a CSS that refers to an image -

 span hello{
   float:left;
   background:#DAE0D2 url(test.gif) repeat-x bottom;
 }

 If I were to package the panel as a component, the gif needs to be packaged
 as well. Then the CSS reference to image -  url(test.gif)
 cannot be hardcoded.

Did you try registering test.gif as a shared resource? Or e.g. all
gif's in that package using a regexp. There are more components that
work like that: DataPicker, YUI slider/ Calendar, or tinymce, which
seem to work fine.

Eelco


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


Re: [Wicket-user] image ref within CSS

2006-04-24 Thread Eelco Hillenius
Pfffew. Glad I didn't say something stupid this time ;)

Eelco

On 4/24/06, karthik Guru [EMAIL PROTECTED] wrote:

 yes worked..great!..my initializer that registers the gifs as a shared
 resource didn't run .I fixed that.
 thanks.


 On 4/24/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  On 4/24/06, karthik Guru [EMAIL PROTECTED] wrote:
  I have a CSS that refers to an image -
 
  span hello{
float:left;
background:#DAE0D2 url( test.gif) repeat-x bottom;
  }
 
  If I were to package the panel as a component, the gif needs to be
 packaged
  as well. Then the CSS reference to image -  url(test.gif)
  cannot be hardcoded.

 Did you try registering test.gif as a shared resource? Or e.g. all
 gif's in that package using a regexp. There are more components that
 work like that: DataPicker, YUI slider/ Calendar, or tinymce, which
  seem to work fine.

 Eelco


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



 --
  -- karthik --


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


Re: [Wicket-user] Re: Licensing issues for including Wicket JARs

2006-04-24 Thread Eelco Hillenius
So it would be much quicker for you Geertjan to just update to 1.2 :)
No worries, we'll help you through it. It's only a couple of classes,
no?

Eelco


On 4/24/06, Petr Pisl [EMAIL PROTECTED] wrote:
 It depends, how we can distribute the module. In the case that it will
 be distributed with NetBeans (as you wrote), we need permission from
 pack to be part of NetBeans and then fill a leagal issue for lawyers.
 This issue should be entered with Mike  Boyer, who covers all legal
 issues. Usually it takes 2 - 3 month to be the legal issue solved.

 Petr

 
 
  If we were to include the Wicket JARs (wicket-1.1.jar,
  commons-logging-1.0.4, log4j-1.2.11.jar, ognl-2.6.7.jar) in a NetBeans
  module (possibly to de distributed/packaged with NetBeans at some
  future date) would we have licensing issues to deal with in relation
  to Wicket? (I suspect that the latter 3 are not needed, but I'm not
  sure.) What procedures would we need to go through?
 
  Geertjan
 



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



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


Re: [Wicket-user] Changing Tree model

2006-04-24 Thread Eelco Hillenius
setOptimizeItemRemoval to false should do the trick. Or maybe just
manually removeChildren when you suspect something changed (e.g. by
registring a listener).

Eelco


On 4/24/06, Steve Knight [EMAIL PROTECTED] wrote:
 I am currently using the tree component to display hierarchical data, and
 now I'd like to have an Edit page that allows users to edit the data that is
 displayed in the tree.  So, after the user saves the changes the tree view
 is displayed again, and the changes should be reflected in the tree.
 Currently, it does not do this.  How should I go about implementing it?  Or
 am I missing something obvious?

 Thanks.

 Steve



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


Re: [Wicket-user] Changing Tree model

2006-04-24 Thread Eelco Hillenius
That's the beauty of that Swing tree model. It should work as the
selection is held in the TreeState object. So if you set
OptimizeItemRemoval to false, it triggers redrawing the child
components everytime, but using the current tree state. So, just
setting that flag - btw the new method name for this will be
setReuseItems, which is consistent with the ListView method, though I
just comitted that) - should suffice.

Eelco

On 4/24/06, Steve Knight [EMAIL PROTECTED] wrote:
 The data for the tree comes from a database.  And the user may also move a
 node to a different part of the tree.  I would like to rebuild the entire
 tree from the database on each page view, but I'd like it to maintain the
 expanded and selected states.  How should I go about doing this?

 Steve


 On 4/24/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  setOptimizeItemRemoval to false should do the trick. Or maybe just
 manually removeChildren when you suspect something changed (e.g. by
 registring a listener).

 Eelco


 On 4/24/06, Steve Knight  [EMAIL PROTECTED] wrote:
  I am currently using the tree component to display hierarchical data, and
  now I'd like to have an Edit page that allows users to edit the data that
 is
  displayed in the tree.  So, after the user saves the changes the tree view
  is displayed again, and the changes should be reflected in the tree.
  Currently, it does not do this.  How should I go about implementing it?
 Or
  am I missing something obvious?
 
  Thanks.
 
  Steve
 


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




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


Re: [Wicket-user] UML diagram?

2006-04-25 Thread Eelco Hillenius
That'd be much appreciated. The WIKI is a good place for that.

Thanks,

Eelco

On 4/24/06, Stefan Kanev [EMAIL PROTECTED] wrote:
 Hi

 Don't you think that an UML diagram for the basic objects in wicket would be
 useful for newbies to the frameworks (shows the complete) picture and for
 all users, where it can serve as a quick reference. Since such a diagram is
 not present, I'm willing to put up one. What do you think should be included
 in it?

 Stefan



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


Re: [Wicket-user] ajax behavior NotSerializable exception

2006-04-25 Thread Eelco Hillenius
 The problem is the 'setThrottleDelay' method.  This method creates an
 instance of the 'wicket.ajax.AjaxEventBehavior$ThrottlingSettings' class.
 This inner class however is not serializable and I guess that when the
 component is put on the session, Glassfish throws the NotSerializable
 exception.

Correct, good catch. Fixed it.

Eelco


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


Re: [Wicket-user] Is there an easy way to Prevent Caching and Expire HTML content imediately

2006-04-25 Thread Eelco Hillenius
The page or the session?

If you don't want to support the back button for a page, just override
isVersioned and return false. The effect is that the URL stays the
same, so the back button will take users to the page they were before
that.

To invalidate a session, call Session.invalidate().

Eelco

On 4/25/06, lu dongping [EMAIL PROTECTED] wrote:
 I now need to expire the page at once,
 so users can not click back button again.
 thanks!



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


Re: [Wicket-user] Any news on JSR-168 portlet support?

2006-04-26 Thread Eelco Hillenius
 the main block is that none of the core developer team are familiar/have any
 experience with the spec.

Actually, two of the current core developers got their committer
status because they were familiar with JSR168 and they wanted to work
on Wicket-portlet integration. Sadly, the real world with tight
schedules etc kicked in, and they were not able to work on this much.

Unless something changes - ie someone works on this hard and soon -, I
doubt we'll ever have portlet integration. Sorry to all the folks that
have been waiting for this.

Eelco


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


Re: [Wicket-user] Hard setting of Locale

2006-04-26 Thread Eelco Hillenius
Easiest thing is probably to override Session.getLocale in a custom
Session implementation. super.getLocale will give you the locale that
was set based on the request that created the session in case you need
to take that into consideration.

Eelco


On 4/26/06, Rüdiger Schulz [EMAIL PROTECTED] wrote:
 Hello list,

 is it somehow possible to not only set a default Locale for an
 application, but sort of hard-wire one, that isn't overridden by
 Browser settings?

 I'm using an english Firefox for development, and (so far) didn't
 change the web page language settings. Now I'm getting the english
 default error messages from the validators. Sure, normally this is a
 great feature, but as this web application is in german, and there are
 no plans for additional languages, english error messages are never
 going to be useful anyway.

 Setting the default Locale doesn't (and shouldn't) help, as the
 browser _does_ request a different locale.

 (in a previous post I thought this to be a bug, but I now know why
 Wicket behaves that way :)

 --
 greetings from Berlin,

 Rüdiger Schulz



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



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


Re: [Wicket-user] contrib-dojo

2006-04-26 Thread Eelco Hillenius
Hi,

Unfortunately they are bussy with other projects (though doing those
with Wicket I think). Would you two be interested in taking over that
project?

Cheers,

Eelco


On 4/26/06, Jeff Lin [EMAIL PROTECTED] wrote:
 I posted something a while ago about the wicket-contrib-dojo-0.3.1
 incompatability with wicket-1.2.x. I'd like to use some Dojo features
 with the latest wicket release, so Matt Carlson and I will be working
 on some code fixes for the Wicket-Dojo source code. If we get it
 working in the near future, we can contribute it back to the project.

 Are Ruud and Marco doing anything with this? If so, I can coordinate
 with them to get things working, otherwise we'll try to do it ourselves.

 Cheers,
 Jeff




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



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


Re: [Wicket-user] Back button and Database rollback

2006-04-27 Thread Eelco Hillenius
There is, though not specifically geared towards doing database roll
back. Also, note that it is impossible afaik to detect things like
that from the browser, so the following only works when the user
pushes the back button and then clicks some link or button causing
another server roundtrip.

Anyway, you can register state changes with their 'undo' actions like this:

addStateChange(new Change()
{
private final Foo someFoo;

public void undo()
{
getDao().rollback(someFoo);
}
});

Hope that's helpful,

Eelco

On 4/27/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:

 In wicket, if i want hibernate to rollback a transaction when a user clicks
 the 'back button'  back to a page where they just posted from a Form to a
 database..what du i do? is there anyway i can detect 'onBack'

 thanks






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


Re: [Wicket-user] Opera 9 Beta works with Wicket

2006-04-27 Thread Eelco Hillenius
Yeah! Nathan you rock man!

Eelco

On 4/27/06, Nathan Hamblen [EMAIL PROTECTED] wrote:
 Previous versions of Opera would choke on wicket:id tags, etc (as
 reported on this list). I filed a  bug report with Opera a little while
 back and the problem seems to have been fixed in the new version.

 Also, our Ajax impl now works with it as far as I can tell.

 Nathan



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



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


Re: [Wicket-user] Links to images and .css

2006-04-27 Thread Eelco Hillenius
Would it break any clients if we would do that now?

Eelco

On 4/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 call it /wicket-resources instead of /resources or some such

 -Igor



 On 4/27/06, cowwoc [EMAIL PROTECTED]  wrote:
 
  What does it mean to namespace it in the context of Wicket?
 
  Gili
 
  Igor Vaynberg wrote:
   there is already a plan to namespace that directory for v2, or so i
 thought.
  
   -Igor
  
  
   On 4/27/06, *cowwoc*  [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] wrote:
  
  
   Personally, I dislike how Wicket prevents the use of
   reserved paths
   such as /resources. There should be a better way, somehow.
  
   Why not let users bind whatever resources they want to
   /resources and
   if Wicket (or another user-call) tries binding to that same path you
   throw an exception? It would be up to the user to ensure he doesn't
   produce conflicts (which I think are extremely rare in the first
 place).
  
   Anyway, just food for thought.
  
   Gili
  
   Eelco Hillenius wrote:
I'm afraid /resources/ is a reserved path with Wicket. I guess
 it's
not the best name we choose, as it's kind of an obvious path to
 use
for people. Maybe we should use another path, like
'/wicket-shared-resources/'  or something.
   
Eelco
   
   
On 4/27/06, Rui Pacheco  [EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] wrote:
My problem is, the images and css files can't be found by the
   html pages.
I am calling them as if I was using a static page:
link href=universal.css rel=stylesheet type=text/css
   
Images follow a similar pattern.
   
   
On 4/27/06, Igor Vaynberg [EMAIL PROTECTED]
   mailto: [EMAIL PROTECTED] wrote:
how are you referring to those files inside your css?
   
-Igor
   
   
   
   
On 4/27/06, Rui Pacheco [EMAIL PROTECTED]
   mailto: [EMAIL PROTECTED]  wrote:
Hi all.
   
My application, as with all applications, uses stylesheets and
   images.
Those files are stored under
$TOMCAT_HOME/webapps/my_app/resources, but when
 I launch my
wicket application I see an error on my logs saying that the file
   can't be
found, even though I can see it on the filesystem.
How can I make my files appear on the application?
   
--
Cumprimentos,
   
Rui Pacheco
   
   
   
--
Cumprimentos,
Rui Pacheco
   
   
   
 ---
Using Tomcat but need to do more? Need to support web services,
   security?
Get stuff done quickly with pre-integrated technology to make your
   job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
   
  
 http://sel.as-us.falkag.net/sel?cmd=kkid0709bid3057dat1642
   
 http://sel.as-us.falkag.net/sel?cmd=kkid0709bid3057dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   mailto: Wicket-user@lists.sourceforge.net
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
  
 
 
 
 




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


Re: [Wicket-user] Links to images and .css

2006-04-27 Thread Eelco Hillenius
Ok.

On 4/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 this is not entirely true. sharead resource urls are essentially
 bookmarkable...so that might be a problem. if we are going to do this in 1.2
 we should probably poll the users first.

 -Igor



  On 4/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
 
  i dont see how unless a filter, security or something was mapped onto that
 path
 
 
  -Igor
 
 
 
 
  On 4/27/06, Eelco Hillenius  [EMAIL PROTECTED] wrote:
   Would it break any clients if we would do that now?
  
   Eelco
  
   On 4/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
call it /wicket-resources instead of /resources or some such
   
-Igor
   
   
   
On 4/27/06, cowwoc [EMAIL PROTECTED]  wrote:

 What does it mean to namespace it in the context of Wicket?

 Gili

 Igor Vaynberg wrote:
  there is already a plan to namespace that directory for v2, or so
 i
thought.
 
  -Igor
 
 
  On 4/27/06, *cowwoc*  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]  wrote:
 
 
  Personally, I dislike how Wicket prevents the use of
  reserved paths
  such as /resources. There should be a better way, somehow.
 
  Why not let users bind whatever resources they want to
  /resources and
  if Wicket (or another user-call) tries binding to that same
 path you
  throw an exception? It would be up to the user to ensure he
 doesn't
  produce conflicts (which I think are extremely rare in the
 first
place).
 
  Anyway, just food for thought.
 
  Gili
 
  Eelco Hillenius wrote:
   I'm afraid /resources/ is a reserved path with Wicket. I
 guess
it's
   not the best name we choose, as it's kind of an obvious path
 to
use
   for people. Maybe we should use another path, like
   '/wicket-shared-resources/'  or something.
  
   Eelco
  
  
   On 4/27/06, Rui Pacheco  [EMAIL PROTECTED]
  mailto: [EMAIL PROTECTED] wrote:
   My problem is, the images and css files can't be found by
 the
  html pages.
   I am calling them as if I was using a static page:
   link href=universal.css rel=stylesheet
 type=text/css
  
   Images follow a similar pattern.
  
  
   On 4/27/06, Igor Vaynberg  [EMAIL PROTECTED]
  mailto: [EMAIL PROTECTED] wrote:
   how are you referring to those files inside your css?
  
   -Igor
  
  
  
  
   On 4/27/06, Rui Pacheco  [EMAIL PROTECTED]
  mailto: [EMAIL PROTECTED]  wrote:
   Hi all.
  
   My application, as with all applications, uses
 stylesheets and
  images.
   Those files are stored under
   $TOMCAT_HOME/webapps/my_app/resources, but
 when
I launch my
   wicket application I see an error on my logs saying that
 the file
  can't be
   found, even though I can see it on the filesystem.
   How can I make my files appear on the application?
  
   --
   Cumprimentos,
  
   Rui Pacheco
  
  
  
   --
   Cumprimentos,
   Rui Pacheco
  
  
  
   
 ---
   Using Tomcat but need to do more? Need to support web
 services,
  security?
   Get stuff done quickly with pre-integrated technology to
 make your
  job easier
   Download IBM WebSphere Application Server v.1.0.1 based on
 Apache
  Geronimo
  
 
   
 http://sel.as-us.falkag.net/sel?cmd=kkid0709bid3057dat1642
  
   
 http://sel.as-us.falkag.net/sel?cmd=kkid0709bid3057dat1642
 
  
 ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  mailto: Wicket-user@lists.sourceforge.net
  
   
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 




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




---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre

Re: [Wicket-user] FeedbackMessagesModel final

2006-04-28 Thread Eelco Hillenius
Done.

Eelco


On 4/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I want to override FeedbackMessagesModel.processMessages() to be able to add 
 special messages. This seems to be one of its intended usages according to 
 the javadoc.

 Regretfully FeedbackMessagesModel is final, so could this modifier please be 
 removed?

 Thanks

 Sven


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



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


Re: [Wicket-user] multi-window support and deadlocks

2006-04-29 Thread Eelco Hillenius

But that's exactly what we have build in. It's not totally fail safe -
clients need at least Javascript turned on but preferably also allow
cookies - but given the technology it's the best we can do for server
side store.

Eelco


On 4/29/06, Michael Day [EMAIL PROTECTED] wrote:

I don't want to test with two tabs, but the fact is that my users
will be doing it regardless of what wicket supports.  The expired
page is logical to me also, but it is not acceptable.  Using your
example below, can't we leave page 2 in memory?  The form action is
set to a separate
wicket interface, so can't the server somehow detect that this
request is *separate* from the requests happening on page 1?  If not,
could an extra hidden form field help?

Michael Day

On Apr 29, 2006, at 6:30 AM, Johan Compagner wrote:

 i will check out the deadlock.
 But can i say that when you disable multi window support you can
 start testing with 2 tabs
 or you really have to specify the pagemap youreself

 So if you have use/test 2 tabs and both are in the same pagemap
 multiwindow support MUST be on.
 Else it really won't work, that expired page doesn't really suprise
 me, that is pretty logical
 because we use a access stack. So if you load 1 then 2 then you
 submit 1 then 2 will be erased
 from memory on the serverside!

 johan




 On 4/28/06, Michael Day [EMAIL PROTECTED] wrote: Hi,

 There is an issue when automatic multi-window support is turned off.

 I have a form on a bookmarkable page.  I loaded it in two tabs, then
 submitted both.  This caused the second one to show an expired page
 error.  When I click back and try to submit again, the connection
 stalls.

 Michael Day



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




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




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


Re: [Wicket-user] multi-window support and deadlocks

2006-04-29 Thread Eelco Hillenius

On 4/29/06, Michael Day [EMAIL PROTECTED] wrote:

I understand that we have a javascript/cookie solution, but I don't
like it.  If I don't need back button support, why can't wicket deal
with multiple tabs/windows without javascript?  Each time a page
containing a form is loaded, keep it in session as a separate object
- even if the page is there more than once.  Then when the form is
submitted, make updates to the correct object (which was found by the
form action url).  Surely I'm missing something?


We need to know when we can ditch the pages too. In the strategy you
propose, we would ditch the second page in history - we always need to
keep one to have a path for callbacks (links and forms). This would
work exactly the same as doing getPageSettings().setMaxPageVersions(2)
in your application's init() function. But... the problem would stay
exactly the same as the the page you would need to the first tab/
window gets removed whenever you interact with the second tab/ window.
The problem is that without those page maps, Wicket doesn't see the
difference between requests comming from different windows. For
example: if you have tab A and tab B, and both have the same pagemap,
clicking a link on tab B, and then one on tab A is effectively the
same as clicking a link on tab A, pushing the back button and clicking
a link on tab A again. The only way to have this work is to increase
your maxPageVersions size (but that will also increase the size of
server memory you need for each session) or using different pagemaps.
Pagemaps were always meant for this, but what we recently did was to
build in automatic detection.

Eelco


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


Re: [Wicket-user] multi-window support and deadlocks

2006-04-29 Thread Eelco Hillenius

Btw, there has been some experimenting with client state saving for
Wicket. It seems like we could get that working. For issues like this,
it's the ultimate 'fix', though besides advantages there are of course
disadvantages, like the dependence on javascript, more bandwith use
and more processor utilization. It's probably not going to be released
soon though, as finalizing 1.2 has priority. But if we have more
people working on it (check out the branch and everyone is always free
to sumbit patches), we *could* have it in a couple of weeks.

Eelco


On 4/29/06, Eelco Hillenius [EMAIL PROTECTED] wrote:

On 4/29/06, Michael Day [EMAIL PROTECTED] wrote:
 I understand that we have a javascript/cookie solution, but I don't
 like it.  If I don't need back button support, why can't wicket deal
 with multiple tabs/windows without javascript?  Each time a page
 containing a form is loaded, keep it in session as a separate object
 - even if the page is there more than once.  Then when the form is
 submitted, make updates to the correct object (which was found by the
 form action url).  Surely I'm missing something?

We need to know when we can ditch the pages too. In the strategy you
propose, we would ditch the second page in history - we always need to
keep one to have a path for callbacks (links and forms). This would
work exactly the same as doing getPageSettings().setMaxPageVersions(2)
in your application's init() function. But... the problem would stay
exactly the same as the the page you would need to the first tab/
window gets removed whenever you interact with the second tab/ window.
The problem is that without those page maps, Wicket doesn't see the
difference between requests comming from different windows. For
example: if you have tab A and tab B, and both have the same pagemap,
clicking a link on tab B, and then one on tab A is effectively the
same as clicking a link on tab A, pushing the back button and clicking
a link on tab A again. The only way to have this work is to increase
your maxPageVersions size (but that will also increase the size of
server memory you need for each session) or using different pagemaps.
Pagemaps were always meant for this, but what we recently did was to
build in automatic detection.

Eelco




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


Re: [Wicket-user] multi-window support and deadlocks

2006-04-29 Thread Eelco Hillenius

So the question is how can we keep multiple instances of the same
page in session, correct?  What about keeping all pages (up to the
configured max) in the session until the session expires?  Once the
number hits the max, remove the oldest (by time, not by path).  So
if a user has two tabs open, both would work for a long period... If
he leaves one tab for an extended period, it would expire.



The good news is that you can implement any strategy for page history
you like by providing your own implementation of
IPageMapEvictionStrategy
(getSessionSettings().setPageMapEvictionStrategy).

If you find a strategy that works better - or which would be at least
an alternative that might be attractive for certain situations - we'd
be interested to know. If we agree to it's usefulness we could ship it
with the Wicket distro.

Eelco


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


Re: [Wicket-user] multi-window support and deadlocks

2006-04-29 Thread Eelco Hillenius

I'm not convinced this is a good solution, but I'm concerned that
most people are ignoring this problem.  I love everything about
wicket, except this.  In this regard, wicket is a giant step
backwards from other frameworks like webwork, struts, etc.


Most struts-like apps that I've seen had problems like this too, at
least for parts of the application. Theoretically, there's no need to
have such problems, but practically, programmers depend on ad-hoc
session state a lot to keep track of things like the current tab/
wizard step and e.g. pagination number in pageable lists.

You can acchieve almost the same with Wicket by using stateless
bookmarkable pages for everything. But if you really want to program
like that, there are probably better frameworks to use.

Eelco


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


Re: [Wicket-user] multi-window support and deadlocks

2006-04-29 Thread Eelco Hillenius

Yep, I agree with Johan on the points he gave. ISessionStore was
created to abstract the actual storage of sessions, and the version we
have now is finally something that works (we needed a few iterations
to get it right). I'm using a custom session store for a project right
now btw.

Like Johan said about pagemaps: they don't make sense in the context
of client state saving. Pagemaps are very specific for supporting
mulitple windows on the same session when session state cannot be
rebuild from the client.

Another thing about pagemaps is that I have grown less comfortable
with the naming lately. It's a very generic term which doesn't
communicate what it is used for. Furthermore, there's no conceptual
extra; it's just a fix for a problem we had. If you think about it a
bit more, what we actually have is a kind of sub sessions. The project
I'm working on might actually have a good usecase where this special
session scope might come in handy. With that app, users have to select
a current context, which is then used for all subsequent requests
until they switch to another context. The use case now is that a user
should be able to open up another tab/ window, switch to a context,
while the other window would stay in the same context. Currently, this
is not elegantly possible.

Having something like:

Session
 Window(null)
 Window(auto-0)
 Window(named)

would be used the same way as pagemaps, but is conceptually much
stronger. A session would then be a composition of Windows (or
whatever better name there might be... as a side note I don't like
having INewBrowserWindowListener in package wicket too much as it
points to something more specific then needs to be in that package);
having always at least one, with no name (null, same as with page maps
now). Such a window would work exactly the same as sessions work now,
but are scoped on tab/ window instead.

We'll need some more time to think about this, but something like I
described above would be the way to go imo. Something for post 1.2


Eelco


On 4/29/06, Johan Compagner [EMAIL PROTECTED] wrote:

Just one to say one thing more for this

MultiPageWindow support doesn't have much to do with back button support
Those 2 are sperated issues.

with multipage window support we are fixing things where the back button
doesn't have to be touched at all.

johan



On 4/29/06, Michael Day [EMAIL PROTECTED] wrote:
 I understand that we have a javascript/cookie solution, but I don't
 like it.  If I don't need back button support, why can't wicket deal
 with multiple tabs/windows without javascript?  Each time a page
 containing a form is loaded, keep it in session as a separate object
 - even if the page is there more than once.  Then when the form is
 submitted, make updates to the correct object (which was found by the
 form action url).  Surely I'm missing something?

 Michael Day

 On Apr 29, 2006, at 11:12 AM, Eelco Hillenius wrote:

  But that's exactly what we have build in. It's not totally fail safe -
  clients need at least Javascript turned on but preferably also allow
  cookies - but given the technology it's the best we can do for server
  side store.
 
  Eelco
 
 
  On 4/29/06, Michael Day [EMAIL PROTECTED] wrote:
  I don't want to test with two tabs, but the fact is that my users
  will be doing it regardless of what wicket supports.  The expired
  page is logical to me also, but it is not acceptable.  Using your
  example below, can't we leave page 2 in memory?  The form action is
  set to a separate
  wicket interface, so can't the server somehow detect that this
  request is *separate* from the requests happening on page 1?  If not,
  could an extra hidden form field help?
 
  Michael Day
 
  On Apr 29, 2006, at 6:30 AM, Johan Compagner wrote:
 
   i will check out the deadlock.
   But can i say that when you disable multi window support you can
   start testing with 2 tabs
   or you really have to specify the pagemap youreself
  
   So if you have use/test 2 tabs and both are in the same pagemap
   multiwindow support MUST be on.
   Else it really won't work, that expired page doesn't really suprise
   me, that is pretty logical
   because we use a access stack. So if you load 1 then 2 then you
   submit 1 then 2 will be erased
   from memory on the serverside!
  
   johan
  
  
  
  
   On 4/28/06, Michael Day  [EMAIL PROTECTED] wrote: Hi,
  
   There is an issue when automatic multi-window support is turned
  off.
  
   I have a form on a bookmarkable page.  I loaded it in two tabs,
  then
   submitted both.  This caused the second one to show an expired page
   error.  When I click back and try to submit again, the connection
   stalls.
  
   Michael Day
  
  
  
  
---
   Using Tomcat but need to do more? Need to support web services,
   security?
   Get stuff done quickly with pre-integrated technology to make your
   job easier
   Download IBM WebSphere Application Server v.1.0.1 based

Re: [Wicket-user] Advice on what to do with app

2006-04-29 Thread Eelco Hillenius

If your interested in trying it out, go to
www.noodleshare.com and click Download.  Sorry,
currently the only version comes with the jre
embedded, so its about 16M.


Yeah, I guess most people have their JDK already installed on this
list. Furthermore, I'm guessing that you'll miss at least 30% of the
people here by distributing a windows exe. Why not an executable jar?

Eelco


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


Re: [Wicket-user] multi-window support and deadlocks

2006-04-29 Thread Eelco Hillenius

On 4/29/06, Johan Compagner [EMAIL PROTECTED] wrote:

Isn't what you describe just a rename of PageMap?
So PageMap is Window ?


Well, for starters, I think having the proper naming makes a huge
difference in how you think about it and how people understand how it
is supposed to work. Furthermore, I'm proposing an explicit
composition of these things in the session itself, instead of
indirectly as it is now (currently, page maps are stored as session
attributes). So, it'll have a rather big impact on the API and
potentially on how people will use it.


INewBrowserWindowListener can be moved ot wicket.markup.html

it is pretty much a internal listener inteface anyway.. It could be an
internally scoped interface ...
But we can't make it package scope or something because some classes do need
it


Yeah. It's not that it gives me sleepless nights or something... I
just think refering to browsers is not ultimately generalized.

Eelco


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


Re: [Wicket-user] multi-window support and deadlocks

2006-04-29 Thread Eelco Hillenius

On 4/30/06, Martijn Dashorst [EMAIL PROTECTED] wrote:

I'd like to see a component level as well to support multi-request component
storage, bound to a window. This would encapsulate component specific state
which can be used over requests, and rolled back using our versioning
strategy.


I think that'll be very, very hard. Also, as long as we expect
components to live in a hierarchy - and in fact we plan on even make
this more strict with the constructor change, I see no added practical
value for something that will complicate things enormously.


I still have to think about the details and more usecases, but I already
have a couple of components that require session storage. Currently they are
application specific, but I could envision that they grow to
multi-application reusable components. Using session storage, they are now
directly bound to the application specific session object. I also have to
implement my own versioning strategy, whereas it could be something Wicket
takes care of.
For instance, a BreadCrumbs component could trace breadcrumbs over pages,
and store the information locally inside the session storage specific for
the component. The user of the breadcrumbs component then doesn't have to
transfer the state of the component to subsequent requests, all that is
hidden from the user of the component.


Why not use models for that? Storing your state in a session together
with a factory to create the breadcrumbs components using that state
sounds like a much better idea to me. Though I don't know much of your
use case.

Maybe you should further formalize your ideas on this. What would it
conceptually (that's the last time I use that term today, promise!)
mean to have such components, and how could they live outside of a
hierarchy. And if you think we should have something like that, how do
you feel about that famous constructor change?

Eelco


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


Re: [Wicket-user] Re: multi-window support and deadlocks

2006-04-30 Thread Eelco Hillenius

Yeah there's just no perfect world as long as browsers work the way
they work. The big, really big advantage of client state saving is
that there is no limit to history. You can work with internal links
everywhere without ever having to worry they'll get stale. I found
this an ugly limitation of keeping server state currently; if you want
to create tabs etc, you generally have to use bookmarkable page links
as otherwise you might run into the trouble of running out of
versions.

Eelco

On 4/30/06, Johan Compagner [EMAIL PROTECTED] wrote:

as always igor can say it so much better then i can :)

But ajax and clientside state really isn't the best combination to have.
Because for every request the page state must be sent over and sent back.

johan


On 4/30/06, Igor Vaynberg [EMAIL PROTECTED] wrote:




 On 4/29/06, Matej Knopp  [EMAIL PROTECTED] wrote:
  Johan Compagner wrote:
   this is pretyt much all in place.
   I don't believe in a cookie and or url state what is that? storing a
   page in an url?
  
   We have a branch where we have a first draft of ClientSide Page saving
   (in an javascript variable that is then set in a hidden field of all
the
   forms)
  How will hidden field work with ajax? Will every response have to carry
  the whole (new) page state?
 


 yep, ajax + clientstate = the suck


 -Igor







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


<    7   8   9   10   11   12   13   14   15   16   >