[Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Henning Bredel
Hi,

is there a way, to handle an upload with ajax?

I have a form with some textfields and an upload (like the example).
After uploading, the form loads again and all made entries in the 
textfields
are gone.

thanks in advance

Henning

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


Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Johan Compagner

can't you run in deployment mode instead of development mode?
then that shouldn't happen.

I can see if we can backport it.

johan


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



We have found a pretty weird situation with too many open files error on
our alpha-testing site. Further analysis showed that on each page refresh
the following resources get repeatedly obtained from the wicket's .jar and
add to the number of open files:
   'wicket/ajax/wicket-ajax.js'
   'wicket/extensions/ajax/markup/html/modal/res/modal.css'
   'wicket/extensions/ajax/markup/html/modal/res/modal.js'
   'wicket/extensions/markup/html/tree/res/tree.css'
   'wicket/extensions/markup/html/tree/res/tree.js'

Eventually (due to garbage collection?) the number of open files goes down
again. But we wanted to know why those files stayed open in the first
place
and were not closed upon retrieving a resource.

It looks like switching to the deployment mode from development one
would significantly reduce the peak numbers of the open files/streams to
wicket .jar-s, and extracting resources from the .jar would reduce it even
better. We were told that the original reason for files staying open is a
Java bug (the fact that URLConnection doesnt have a .close), which causes
those nasty results when combined with development mode trying to monitor
[resource] files for changes and reloading them.

We were also told that there is a workaround for that problem in SVN
somewhere, but it's probably not backported to 1.2.5 . I have 2 questions
in
that regard:
(1) Where can we find those workarounds in the code?
(2) Is it too much work to backport them to 1.2.5 so when it's released it
doesn't contain the problem?

Thanks,
Bob.
--
View this message in context:
http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8743682
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Paolo Di Tommaso

You have to force Wicket to avoid reloading the page after the file has been
uploaded. I've used the following code in the Form#onSubmit() method:


   // avoid redirection
   // Tell Wicket we're going to do the redirect ourselves.
   getRequestCycle().setRedirect(false);
   // Make sure no output for the current cycle is ever sent.
   getRequestCycle().setRequestTarget(
EmptyRequestTarget.getInstance());




- Paolo




On 2/1/07, Henning Bredel [EMAIL PROTECTED] wrote:


Hi,

is there a way, to handle an upload with ajax?

I have a form with some textfields and an upload (like the example).
After uploading, the form loads again and all made entries in the
textfields
are gone.

thanks in advance

Henning

-
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


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-01 Thread Carfield Yim
On 1/26/07, Carfield Yim [EMAIL PROTECTED] wrote:
 The target of the RedirectPage is another wicket form running at
 difference host. In firefox it work ok but in IE it always show page
 expire after I submit the form. Does anybody experience this also?

Hi, have asked this several day before... no one have similar problem?

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


Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Martijn Dashorst
Hmm,

Seems more like a bug to me. Apparently the raw input is not kept in
the components when doing the backgroung ajax upload.

Can you file a JIRA issue for this?

Martijn

On 2/1/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:
 You have to force Wicket to avoid reloading the page after the file has been
 uploaded. I've used the following code in the Form#onSubmit() method:


  // avoid redirection
  // Tell Wicket we're going to do the redirect ourselves.
  getRequestCycle().setRedirect(false);
  // Make sure no output for the current cycle is ever sent.

 getRequestCycle().setRequestTarget(EmptyRequestTarget.getInstance());




 - Paolo





 On 2/1/07, Henning Bredel  [EMAIL PROTECTED] wrote:
  Hi,
 
  is there a way, to handle an upload with ajax?
 
  I have a form with some textfields and an upload (like the example).
  After uploading, the form loads again and all made entries in the
  textfields
  are gone.
 
  thanks in advance
 
  Henning
 
 
 -
  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




-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Using own localizer

2007-02-01 Thread Juergen Donnerstag
Localizer is meant to be a realy thin layer mainly providing easy to
use access helpers. Flexibility is meant to come from
ResourceStreamLocators and ResourceStreamFinder. In 1.x the
searchStack is still part of Localizer. In 2.x it has been moved into
the ResourceStreamFactory (used to be ResourceStreamLocator) and can
be augmented/replaced. Your only choice in 1.x to speed it up is via
caching the value in your Component, though you will loose automatic
properties reloading in development mode than. Another question would
be: are you sure it is a performance issue and needs to be tackled?
Profilers haven't identified it being a problem, except for
DropDownList (Null values), but that has been solved a long time ago.

Juergen

On 2/1/07, Juha Alatalo [EMAIL PROTECTED] wrote:
 Hi,

 is there some way of using own Localizer in WebApplication? I found out
 that in version 1.1 there was setLocalizer() method in Application, but
 I couldn't find such anymore anywhere.

 In quite many cases the path used in Localizer.visitResourceLoaders() is
 realy long and there is done too many useless
 loader.loadStringResource() calls. This is starting to have a
 significant impact in loading times. I would like to change getString
 call of a component so that 'final List searchStack' is null when
 finally calling localicer.visitResourceLoaders().

 - Juha Alatalo

 -
 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


Re: [Wicket-user] Ajax Fallback Submit Link

2007-02-01 Thread Flavia Paganelli
Thanks to all for your help and suggestions.

I wrote an AjaxFallbackSubmitButton component as Igor suggested. It 
inherits from Button and checks if javascript is enabled in the 
onSubmit() (non-ajax) method. There it can decide whether to call 
onSubmit(AjaxRequestTarget,Form) with null parameters (js not enabled), 
or do nothing because the onSubmit(AjaxRequestTarget,Form) will be 
called by ajax.

I used


((WebClientInfo)getSession().getClientInfo()).getProperties().getBoolean(ClientProperties.NAVIGATOR_JAVA_ENABLED)

to check if javascript is enabled, but it throws a 
RestartResponseAtInterceptPageException when it is called for the first 
time (thrown from WebRequestCycle.newClientInfo()), and then a blank 
page is shown. There's a message 'If you see this, it means that both 
javascript and meta-refresh are not support by your browser 
configuration. Please click here to continue to the original 
destination' . Anyone knows why is this? I'm using wicket 1.2.3. Firefox 
2. javascript is enabled.
(I am doing getRequestCycleSettings().setGatherExtendedBrowserInfo(true) 
in my application init() method, as indicated by Eelco.)

Anyone knows why this might be happening? Any way to prevent that page 
from showing? Otherwise it works.

This is the class:

/**
 * Ajax submit button that can fallback to a normal request if 
javascript is not enabled.
 * It checks if javascript is enabled calling
 * codenew WebClientInfo((WebRequestCycle) 
getRequestCycle()).getProperties().getBoolean(ClientProperties.NAVIGATOR_JAVA_ENABLED)/code
 * When javascript is not enabled, the methods 
onSubmit(AjaxRequestTarget, Form) is
 * called with null parameters.
 *
 * This class goal is to combine the behavior of a an AjaxSubmitButton 
with fallback behavior if js is not present.
 * 
 * @author flavia.paganelli
 *
 */
public abstract class AjaxFallbackSubmitButton extends Button {

public AjaxFallbackSubmitButton(String id, final Form form) {
super(id);

add(new AjaxFormSubmitBehavior(form, onclick)
{

private static final long serialVersionUID = 1L;

protected void onSubmit(AjaxRequestTarget target)
{
AjaxFallbackSubmitButton.this.onSubmit(target, form);
}
   
protected void onError(AjaxRequestTarget target)
{
AjaxFallbackSubmitButton.this.onError(target, form);
}

protected CharSequence getEventHandler()
{
return new 
AppendingStringBuffer(super.getEventHandler()).append(; return false;);
}

protected IAjaxCallDecorator getAjaxCallDecorator()
{
return new 
CancelEventIfNoAjaxDecorator(AjaxFallbackSubmitButton.this
.getAjaxCallDecorator());
}

});
}

/**
 * Returns the [EMAIL PROTECTED] IAjaxCallDecorator} that will be used to 
modify the
 * generated javascript. This is the preferred way of changing the
 * javascript in the onclick handler
 *
 * @return call decorator used to modify the generated javascript or 
null
 * for none
 */
protected IAjaxCallDecorator getAjaxCallDecorator()
{
return null;
}

protected void onComponentTag(ComponentTag tag)
{
checkComponentTag(tag, input);

final String type = tag.getAttributes().getString(type);
if (!button.equals(type)  !image.equals(type)  
!submit.equals(type))
{
findMarkupStream().throwMarkupException(
Component  + getId() +  must be applied to a tag 
with 'type'
+  attribute matching 'submit', 'button' or 
'image', not ' + type
+ ');
}

super.onComponentTag(tag);
}

/**
 * Listener method invoked on form submit with no errors
 *
 * @param target
 * @param form
 */
protected abstract void onSubmit(AjaxRequestTarget target, Form form);

/**
 * Listener method invoked on form submit with errors
 *
 * @param target
 * @param form
 *
 */
protected void onError(AjaxRequestTarget target, Form form) {
}

/**
 * If javascript is not enabled, the method onSubmit() is called 
with null values as parameters.
 * Otherwise, this method does nothing.
 */
@Override
protected void onSubmit() {
if (!isJavascriptEnabled()) {
// call the ajax onSubmit method with target = null only if 
java is disabled
onSubmit(null, null);
}
}

private boolean isJavascriptEnabled() {
return 
((WebClientInfo)getSession().getClientInfo()).getProperties().getBoolean(ClientProperties.NAVIGATOR_JAVA_ENABLED);
}
   
   
}

I'd like to understand why that page is shown the first time I try to 
access the properties (when the newClientInfo() method is called). For 
the rest, I 

[Wicket-user] Is there easy way to make AjaxFallbackDefaultDataTable non-sortable?

2007-02-01 Thread Carfield Yim
There is some table we don't want user to sort, can I make
AjaxFallbackDefaultDataTable not able to sort or I have to create my
DataView?

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


Re: [Wicket-user] Is there easy way to make AjaxFallbackDefaultDataTable non-sortable?

2007-02-01 Thread Martijn Dashorst
Use other Column constructors (one parameter less).

Martijn

On 2/1/07, Carfield Yim [EMAIL PROTECTED] wrote:
 There is some table we don't want user to sort, can I make
 AjaxFallbackDefaultDataTable not able to sort or I have to create my
 DataView?

 -
 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



-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Henning Bredel
Paolo Di Tommaso schrieb:
 You have to force Wicket to avoid reloading the page after the file 
 has been uploaded. I've used the following code in the Form#onSubmit() 
 method:


 // avoid redirection
 // Tell Wicket we're going to do the redirect ourselves.
 getRequestCycle().setRedirect(false);
 // Make sure no output for the current cycle is ever sent.
 
 getRequestCycle().setRequestTarget(EmptyRequestTarget.getInstance());




 - Paolo




 On 2/1/07, *Henning Bredel*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi,

 is there a way, to handle an upload with ajax?

 I have a form with some textfields and an upload (like the example).
 After uploading, the form loads again and all made entries in the
 textfields
 are gone.

 thanks in advance

 Henning

 -
 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
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 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=lnkkid=120709bid=263057dat=121642
 

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

I tried it for my upload, but all now wicket only clears the page and 
waits for rendering again
-- that´s what I guess.

I just would like to upload files, without re-rendering the whole 
webpage. I´m looking forward
for some hints

Henning

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


Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Henning Bredel
Martijn Dashorst schrieb:
 Hmm,

 Seems more like a bug to me. Apparently the raw input is not kept in
 the components when doing the backgroung ajax upload.

 Can you file a JIRA issue for this?

 Martijn

 On 2/1/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:
   
 You have to force Wicket to avoid reloading the page after the file has been
 uploaded. I've used the following code in the Form#onSubmit() method:


  // avoid redirection
  // Tell Wicket we're going to do the redirect ourselves.
  getRequestCycle().setRedirect(false);
  // Make sure no output for the current cycle is ever sent.

 getRequestCycle().setRequestTarget(EmptyRequestTarget.getInstance());




 - Paolo





 On 2/1/07, Henning Bredel  [EMAIL PROTECTED] wrote:
 
 Hi,

 is there a way, to handle an upload with ajax?

 I have a form with some textfields and an upload (like the example).
 After uploading, the form loads again and all made entries in the
 textfields
 are gone.

 thanks in advance

 Henning


   
 -
 
 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


 


   
hmm, i do not know if i misunderstood . . . is the upload working with 
ajax in the background?
i currently do not use any ajax for uploading -- the example does not, 
and it didn´t work when
i tried it with an AjaxSubmitButton.

regards

henning

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


Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Martijn Dashorst
If you use the AjaxUploadField it does. But you can't submit a
multipart form using ajax.

Martijn


On 2/1/07, Henning Bredel [EMAIL PROTECTED] wrote:
 Martijn Dashorst schrieb:
  Hmm,
 
  Seems more like a bug to me. Apparently the raw input is not kept in
  the components when doing the backgroung ajax upload.
 
  Can you file a JIRA issue for this?
 
  Martijn
 
  On 2/1/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:
 
  You have to force Wicket to avoid reloading the page after the file has 
  been
  uploaded. I've used the following code in the Form#onSubmit() method:
 
 
   // avoid redirection
   // Tell Wicket we're going to do the redirect ourselves.
   getRequestCycle().setRedirect(false);
   // Make sure no output for the current cycle is ever sent.
 
  getRequestCycle().setRequestTarget(EmptyRequestTarget.getInstance());
 
 
 
 
  - Paolo
 
 
 
 
 
  On 2/1/07, Henning Bredel  [EMAIL PROTECTED] wrote:
 
  Hi,
 
  is there a way, to handle an upload with ajax?
 
  I have a form with some textfields and an upload (like the example).
  After uploading, the form loads again and all made entries in the
  textfields
  are gone.
 
  thanks in advance
 
  Henning
 
 
 
  -
 
  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
 
 
 
 
 
 
 hmm, i do not know if i misunderstood . . . is the upload working with
 ajax in the background?
 i currently do not use any ajax for uploading -- the example does not,
 and it didn´t work when
 i tried it with an AjaxSubmitButton.

 regards

 henning

 -
 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



-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Henning Bredel
Martijn Dashorst schrieb:
 If you use the AjaxUploadField it does. But you can't submit a
 multipart form using ajax.

 Martijn


 On 2/1/07, Henning Bredel [EMAIL PROTECTED] wrote:
   
 Martijn Dashorst schrieb:
 
 Hmm,

 Seems more like a bug to me. Apparently the raw input is not kept in
 the components when doing the backgroung ajax upload.

 Can you file a JIRA issue for this?

 Martijn

 On 2/1/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:

   
 You have to force Wicket to avoid reloading the page after the file has 
 been
 uploaded. I've used the following code in the Form#onSubmit() method:


  // avoid redirection
  // Tell Wicket we're going to do the redirect ourselves.
  getRequestCycle().setRedirect(false);
  // Make sure no output for the current cycle is ever sent.

 getRequestCycle().setRequestTarget(EmptyRequestTarget.getInstance());




 - Paolo





 On 2/1/07, Henning Bredel  [EMAIL PROTECTED] wrote:

 
 Hi,

 is there a way, to handle an upload with ajax?

 I have a form with some textfields and an upload (like the example).
 After uploading, the form loads again and all made entries in the
 textfields
 are gone.

 thanks in advance

 Henning



   
 -

 
 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



 

   
 hmm, i do not know if i misunderstood . . . is the upload working with
 ajax in the background?
 i currently do not use any ajax for uploading -- the example does not,
 and it didn´t work when
 i tried it with an AjaxSubmitButton.

 regards

 henning

 -
 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

 


   
uh?! Why AjaxUploadField exists, when multipart isn´t supported?

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


Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Martijn Dashorst
Sorry, my bad... UploadProgressBar is the component I was referring to.

http://wicketframework.org/wicket-extensions/apidocs/index.html?wicket/extensions/ajax/markup/html/form/upload

Martijn

On 2/1/07, Henning Bredel [EMAIL PROTECTED] wrote:
 Martijn Dashorst schrieb:
  If you use the AjaxUploadField it does. But you can't submit a
  multipart form using ajax.
 
  Martijn
 
 
  On 2/1/07, Henning Bredel [EMAIL PROTECTED] wrote:
 
  Martijn Dashorst schrieb:
 
  Hmm,
 
  Seems more like a bug to me. Apparently the raw input is not kept in
  the components when doing the backgroung ajax upload.
 
  Can you file a JIRA issue for this?
 
  Martijn
 
  On 2/1/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:
 
 
  You have to force Wicket to avoid reloading the page after the file has 
  been
  uploaded. I've used the following code in the Form#onSubmit() method:
 
 
   // avoid redirection
   // Tell Wicket we're going to do the redirect ourselves.
   getRequestCycle().setRedirect(false);
   // Make sure no output for the current cycle is ever sent.
 
  getRequestCycle().setRequestTarget(EmptyRequestTarget.getInstance());
 
 
 
 
  - Paolo
 
 
 
 
 
  On 2/1/07, Henning Bredel  [EMAIL PROTECTED] wrote:
 
 
  Hi,
 
  is there a way, to handle an upload with ajax?
 
  I have a form with some textfields and an upload (like the example).
  After uploading, the form loads again and all made entries in the
  textfields
  are gone.
 
  thanks in advance
 
  Henning
 
 
 
 
  -
 
 
  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
 
 
 
 
 
 
  hmm, i do not know if i misunderstood . . . is the upload working with
  ajax in the background?
  i currently do not use any ajax for uploading -- the example does not,
  and it didn´t work when
  i tried it with an AjaxSubmitButton.
 
  regards
 
  henning
 
  -
  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
 
 
 
 
 
 uh?! Why AjaxUploadField exists, when multipart isn´t supported?

 -
 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



-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Martijn Dashorst
/me stops working and answering questions on mailinglist.

Martijn

On 2/1/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
 Sorry, my bad... UploadProgressBar is the component I was referring to.

 http://wicketframework.org/wicket-extensions/apidocs/index.html?wicket/extensions/ajax/markup/html/form/upload

 Martijn

 On 2/1/07, Henning Bredel [EMAIL PROTECTED] wrote:
  Martijn Dashorst schrieb:
   If you use the AjaxUploadField it does. But you can't submit a
   multipart form using ajax.
  
   Martijn
  
  
   On 2/1/07, Henning Bredel [EMAIL PROTECTED] wrote:
  
   Martijn Dashorst schrieb:
  
   Hmm,
  
   Seems more like a bug to me. Apparently the raw input is not kept in
   the components when doing the backgroung ajax upload.
  
   Can you file a JIRA issue for this?
  
   Martijn
  
   On 2/1/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:
  
  
   You have to force Wicket to avoid reloading the page after the file 
   has been
   uploaded. I've used the following code in the Form#onSubmit() method:
  
  
// avoid redirection
// Tell Wicket we're going to do the redirect ourselves.
getRequestCycle().setRedirect(false);
// Make sure no output for the current cycle is ever sent.
  
   getRequestCycle().setRequestTarget(EmptyRequestTarget.getInstance());
  
  
  
  
   - Paolo
  
  
  
  
  
   On 2/1/07, Henning Bredel  [EMAIL PROTECTED] wrote:
  
  
   Hi,
  
   is there a way, to handle an upload with ajax?
  
   I have a form with some textfields and an upload (like the example).
   After uploading, the form loads again and all made entries in the
   textfields
   are gone.
  
   thanks in advance
  
   Henning
  
  
  
  
   -
  
  
   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
  
  
  
  
  
  
   hmm, i do not know if i misunderstood . . . is the upload working with
   ajax in the background?
   i currently do not use any ajax for uploading -- the example does not,
   and it didn´t work when
   i tried it with an AjaxSubmitButton.
  
   regards
  
   henning
  
   -
   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
  
  
  
  
  
  uh?! Why AjaxUploadField exists, when multipart isn´t supported?
 
  -
  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
 


 --
 Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
 Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
 http://wicketframework.org



-- 
Vote for Wicket at the http://www.thebeststuffintheworld.com/vote_for/wicket
Wicket 1.2.4 is as easy as 1-2-4. Download Wicket now!
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 

Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Henning Bredel
Henning Bredel schrieb:
 Hi,

 is there a way, to handle an upload with ajax?

 I have a form with some textfields and an upload (like the example).
 After uploading, the form loads again and all made entries in the 
 textfields
 are gone.

 thanks in advance

 Henning

 -
 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

   
Last question for this -- perhaps a developer can give an answere:

is there a way to do an upload via ajax submit?

thanks

h

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


[Wicket-user] Pro Wicket and RestartResponseAtInterceptPage question

2007-02-01 Thread Robert ...

Hi,

I have read the Pro Wicket book and I am trying to make some examples from
the book. However I get an error when trying to use a
RestartResponseAtInterceptPageException in the bookstore example from page
114. It happens after the Login page calls continueToOriginalDestination.

wicket.util.convert.ConversionException: Can't convert null value to a
primitive class: int for setting it on
[EMAIL PROTECTED]


In the authorization strategy/listener onUnauthorizedInstantiation method I
see that the component is the ConfirmationPage as I expected. However the
expection page I get shows the CheckoutPage as the page class. I'm not sure
if it means anything, but it seems to go back to the CheckoutPage instead of
continuing to the ConfirmationPage.

What am I doing wrong?

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


Re: [Wicket-user] ui framework choice

2007-02-01 Thread Scott Swank

Very interesting to hear.  Thank you.

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



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

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

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


Eelco Hillenius wrote:

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

 Eelco


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


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

-
  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance to
share
 your
  opinions on IT  business topics through brief surveys - and earn
cash
 

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 



-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV

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





-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



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


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





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


Re: [Wicket-user] ui framework choice

2007-02-01 Thread Scott Swank

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

Scott

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


and what we expect from our users are patches :)

-igor


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

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


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



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

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






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


Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread beboris

We will, when we are on production. Now that we are are still in alpha we
prefer development (hey, we wrote our first line of wicket code 5-6 weeks
ago!)

Also, even in deployment mode 'lsof' still shows us a lot of open files (one
per resource) if we don't unpack resources from the .jar . It may be smaller
number than in development mode, but still... I imagine your workaround
would close those unnecessarily open files.

If you can't backport it, please, tell me where it is in SVN. We'll hack
it in oursleves for now...

Bob


Johan Compagner wrote:
 
 can't you run in deployment mode instead of development mode?
 then that shouldn't happen.
 
 I can see if we can backport it.
 
 johan
 
 
 On 2/1/07, beboris [EMAIL PROTECTED] wrote:


 We have found a pretty weird situation with too many open files error
 on
 our alpha-testing site. Further analysis showed that on each page refresh
 the following resources get repeatedly obtained from the wicket's .jar
 and
 add to the number of open files:
'wicket/ajax/wicket-ajax.js'
'wicket/extensions/ajax/markup/html/modal/res/modal.css'
'wicket/extensions/ajax/markup/html/modal/res/modal.js'
'wicket/extensions/markup/html/tree/res/tree.css'
'wicket/extensions/markup/html/tree/res/tree.js'

 Eventually (due to garbage collection?) the number of open files goes
 down
 again. But we wanted to know why those files stayed open in the first
 place
 and were not closed upon retrieving a resource.

 It looks like switching to the deployment mode from development one
 would significantly reduce the peak numbers of the open files/streams to
 wicket .jar-s, and extracting resources from the .jar would reduce it
 even
 better. We were told that the original reason for files staying open is a
 Java bug (the fact that URLConnection doesnt have a .close), which causes
 those nasty results when combined with development mode trying to monitor
 [resource] files for changes and reloading them.

 We were also told that there is a workaround for that problem in SVN
 somewhere, but it's probably not backported to 1.2.5 . I have 2 questions
 in
 that regard:
 (1) Where can we find those workarounds in the code?
 (2) Is it too much work to backport them to 1.2.5 so when it's released
 it
 doesn't contain the problem?

 Thanks,
 Bob.
 --
 View this message in context:
 http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8743682
 Sent from the Wicket - User mailing list archive at Nabble.com.


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

 
 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8751579
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Header contribution not always rendered

2007-02-01 Thread Ryan
I compiled my own wicket.jar from the 1.2.x branch on 1/25/07 which
greatly reduced the frequency of the problem in my code that added css
to the header from java however I am still seeing javascript files
being left out on occasion (wicket-ajax.js). A few refreshes later and
the javascript will be included. I haven't had the chance to track it
down since it happens so infrequently however it is still occurring in
1.2.x.

Ryan

On 1/31/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 its fixed and will be included in the upcoming 1.2.5

 -igor



 On 1/31/07, smallufo [EMAIL PROTECTED]  wrote:
 
  I got the same problem with 1.2.4
 
 
 
  2006/11/11, Matej Knopp [EMAIL PROTECTED]:
   That's weird. Which wicket version are you using? Seems that Wicket 1.x
   has already become 1.3 and the latest revision is 473519.
  
   Wicket 1.2 has it's own branch now.
  
   Are you sure you're using the apache repository?
  
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


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



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


Re: [Wicket-user] Header contribution not always rendered

2007-02-01 Thread Igor Vaynberg

any help for tracking it down will certainly help us fix it :)

-igor


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


I compiled my own wicket.jar from the 1.2.x branch on 1/25/07 which
greatly reduced the frequency of the problem in my code that added css
to the header from java however I am still seeing javascript files
being left out on occasion (wicket-ajax.js). A few refreshes later and
the javascript will be included. I haven't had the chance to track it
down since it happens so infrequently however it is still occurring in
1.2.x.

Ryan

On 1/31/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 its fixed and will be included in the upcoming 1.2.5

 -igor



 On 1/31/07, smallufo [EMAIL PROTECTED]  wrote:
 
  I got the same problem with 1.2.4
 
 
 
  2006/11/11, Matej Knopp [EMAIL PROTECTED]:
   That's weird. Which wicket version are you using? Seems that Wicket
1.x
   has already become 1.3 and the latest revision is 473519.
  
   Wicket 1.2 has it's own branch now.
  
   Are you sure you're using the apache repository?
  
 
 
 

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



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



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

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


Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Johan Compagner

one per resource will i think not really change.

johan


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



We will, when we are on production. Now that we are are still in alpha we
prefer development (hey, we wrote our first line of wicket code 5-6
weeks
ago!)

Also, even in deployment mode 'lsof' still shows us a lot of open files
(one
per resource) if we don't unpack resources from the .jar . It may be
smaller
number than in development mode, but still... I imagine your workaround
would close those unnecessarily open files.

If you can't backport it, please, tell me where it is in SVN. We'll hack
it in oursleves for now...

Bob


Johan Compagner wrote:

 can't you run in deployment mode instead of development mode?
 then that shouldn't happen.

 I can see if we can backport it.

 johan


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


 We have found a pretty weird situation with too many open files error
 on
 our alpha-testing site. Further analysis showed that on each page
refresh
 the following resources get repeatedly obtained from the wicket's .jar
 and
 add to the number of open files:
'wicket/ajax/wicket-ajax.js'
'wicket/extensions/ajax/markup/html/modal/res/modal.css'
'wicket/extensions/ajax/markup/html/modal/res/modal.js'
'wicket/extensions/markup/html/tree/res/tree.css'
'wicket/extensions/markup/html/tree/res/tree.js'

 Eventually (due to garbage collection?) the number of open files goes
 down
 again. But we wanted to know why those files stayed open in the first
 place
 and were not closed upon retrieving a resource.

 It looks like switching to the deployment mode from development one
 would significantly reduce the peak numbers of the open files/streams
to
 wicket .jar-s, and extracting resources from the .jar would reduce it
 even
 better. We were told that the original reason for files staying open is
a
 Java bug (the fact that URLConnection doesnt have a .close), which
causes
 those nasty results when combined with development mode trying to
monitor
 [resource] files for changes and reloading them.

 We were also told that there is a workaround for that problem in SVN
 somewhere, but it's probably not backported to 1.2.5 . I have 2
questions
 in
 that regard:
 (1) Where can we find those workarounds in the code?
 (2) Is it too much work to backport them to 1.2.5 so when it's released
 it
 doesn't contain the problem?

 Thanks,
 Bob.
 --
 View this message in context:

http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8743682
 Sent from the Wicket - User mailing list archive at Nabble.com.



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

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



-
 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



--
View this message in context:
http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8751579
Sent from the Wicket - User mailing list archive at Nabble.com.


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

-
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

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

2007-02-01 Thread Scott Swank

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

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


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

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

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

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

-igor


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

 See the following site :

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

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

 Hope u find it useful.


 Shams


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

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



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

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






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


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

2007-02-01 Thread Igor Vaynberg

what is custom css?

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

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

-igor


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


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

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

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

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

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

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

 -igor


 On 1/31/07, Shams Mahmood  [EMAIL PROTECTED] wrote:
 
  See the following site :
 
  http://www.dhtmlgoodies.com/index.html?whichScript=context_menu
  demo :
  http://www.dhtmlgoodies.com/scripts/context-menu/context-menu.html
 
  I think the html can be easily generated by using a ListView and
  Adding Links inisde and handling the onclick of the links.
 
  Hope u find it useful.
 
 
  Shams
 
 
  -
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 



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

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





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

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



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


Re: [Wicket-user] Pro Wicket and RestartResponseAtInterceptPage question

2007-02-01 Thread Igor Vaynberg

looks like a converter problem? maybe that field that is collection an int
needs to be marked required, or be backed by Integer rather then int.

-igor


On 2/1/07, Robert ... [EMAIL PROTECTED] wrote:


Hi,

I have read the Pro Wicket book and I am trying to make some examples
from the book. However I get an error when trying to use a
RestartResponseAtInterceptPageException in the bookstore example from page
114. It happens after the Login page calls continueToOriginalDestination.

wicket.util.convert.ConversionException: Can't convert null value to a 
primitive class: int for setting it on [EMAIL PROTECTED]


In the authorization strategy/listener onUnauthorizedInstantiation method
I see that the component is the ConfirmationPage as I expected. However the
expection page I get shows the CheckoutPage as the page class. I'm not sure
if it means anything, but it seems to go back to the CheckoutPage instead of
continuing to the ConfirmationPage.

What am I doing wrong?

Robert.


-
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


Re: [Wicket-user] Using own localizer

2007-02-01 Thread Johan Compagner

if you can get a nice test where i can see those hotspots (but then in 1.3or
2.0)
then i will look at it to optimize that.

johan


On 2/1/07, Juha Alatalo [EMAIL PROTECTED] wrote:


Hi,

is there some way of using own Localizer in WebApplication? I found out
that in version 1.1 there was setLocalizer() method in Application, but
I couldn't find such anymore anywhere.

In quite many cases the path used in Localizer.visitResourceLoaders() is
realy long and there is done too many useless
loader.loadStringResource() calls. This is starting to have a
significant impact in loading times. I would like to change getString
call of a component so that 'final List searchStack' is null when
finally calling localicer.visitResourceLoaders().

- Juha Alatalo

-
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


Re: [Wicket-user] IndicatingAjaxSubmitButton

2007-02-01 Thread Igor Vaynberg

please add this to our jira

-igor


On 1/30/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote:


I would suggest that the Button be set to disabled mode onClick just to
discourage a user from clicking again and a long transaction situation.

?

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

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



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


Re: [Wicket-user] Wicket 2.0 bookmarkable page issue?

2007-02-01 Thread Johan Compagner

AlMaw: i guess this kind of behavior will change anyway with your stuff?


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


 I have a webapp that is bound to root / context, and I am mounting a
bookmarkable page to /script/execute via:

mountBookmarkablePage( /script/execute, ScriptExecutor.class );

That page displays a textarea and a submit button within the form.  The
code is as follows:


public class ScriptExecutor extends WebPage
{
private static final Log log = LogFactory.getLog(ScriptExecutor.class
);

String script;

public ScriptExecutor()
{
Form form = new Form( this, form ) {

final TextArea textarea = new TextArea( this, textarea, new
PropertyModel( ScriptExecutor.this, script ) );

protected void onSubmit()
{
super.onSubmit();

System.out.println(TextArea:  + getScript() );
}
};
}


public String getScript()
{
return script;
}

public void setScript(String script)
{
this.script = script;
}
}

When I first load the page via the bookmarkable url and hit submit, I get
a 404 because wicket is submitting to:

http://localhost:8080/script/
?wicket:interface=:5:form::IFormSubmitListener

when it should be submitting to:

http://localhost:8080/?wicket:interface=:5:form::IFormSubmitListener

This all seems to be due to the fact wicket isn't prepending a / to the
form's action URL, causing the browser to use the current directory from the
url, /script/:

body
form id=form0 action=?wicket:interface=:5:form::IFormSubmitListener 
method=post wicket:id=form
div style=display:noneinput type=hidden name=form0:hf:fs 
id=form0:hf:fs/
input type=hidden name=wicketState id=form0:hf:ws//div
textarea style=width: 500px; height: 500px wicket:id=textarea 
name=textarea/textarea
br/

input type=submit value=Execute/
/form
/body


Is this a user error on my part or an issue with how wicket is generating
the url?

Aaron


-
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


Re: [Wicket-user] Wicket 2.0 bookmarkable page issue?

2007-02-01 Thread Igor Vaynberg

what does your web.xml look like where you define the filter and mapping?

-igor


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


 I have a webapp that is bound to root / context, and I am mounting a
bookmarkable page to /script/execute via:

mountBookmarkablePage( /script/execute, ScriptExecutor.class );

That page displays a textarea and a submit button within the form.  The
code is as follows:


public class ScriptExecutor extends WebPage
{
private static final Log log = LogFactory.getLog(ScriptExecutor.class
);

String script;

public ScriptExecutor()
{
Form form = new Form( this, form ) {

final TextArea textarea = new TextArea( this, textarea, new
PropertyModel( ScriptExecutor.this, script ) );

protected void onSubmit()
{
super.onSubmit();

System.out.println(TextArea:  + getScript() );
}
};
}


public String getScript()
{
return script;
}

public void setScript(String script)
{
this.script = script;
}
}

When I first load the page via the bookmarkable url and hit submit, I get
a 404 because wicket is submitting to:

http://localhost:8080/script/
?wicket:interface=:5:form::IFormSubmitListener

when it should be submitting to:

http://localhost:8080/?wicket:interface=:5:form::IFormSubmitListener

This all seems to be due to the fact wicket isn't prepending a / to the
form's action URL, causing the browser to use the current directory from the
url, /script/:

body
form id=form0 action=?wicket:interface=:5:form::IFormSubmitListener 
method=post wicket:id=form
div style=display:noneinput type=hidden name=form0:hf:fs 
id=form0:hf:fs/
input type=hidden name=wicketState id=form0:hf:ws//div
textarea style=width: 500px; height: 500px wicket:id=textarea 
name=textarea/textarea
br/

input type=submit value=Execute/
/form
/body


Is this a user error on my part or an issue with how wicket is generating
the url?

Aaron


-
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


Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Johan Compagner

Henning Bredel schrieb:
 Hi,

 is there a way, to handle an upload with ajax?



not  as far as i know.

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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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

2007-02-01 Thread Scott Swank

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

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


what is custom css?

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

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

-igor


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

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

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


 --
 Scott Swank
 reformed mathematician

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

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




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

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






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


Re: [Wicket-user] ui framework choice

2007-02-01 Thread Scott Swank

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

Continually impressed,
Scott

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


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

Scott

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

 and what we expect from our users are patches :)

 -igor


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



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

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





--
Scott Swank
reformed mathematician





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


Re: [Wicket-user] ui framework choice

2007-02-01 Thread Jonathan Locke


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

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


Scott Swank wrote:
 
 Thank you to both of you.  And for anyone who's been paying any attention
 to
 my questions it's pretty clear that I don't know Wicket particularly well
 yet.  I'm still fumbling around a bit with models.  Further, the other
 three
 folk had never set eyes on Wicket before last Monday.
 
 Scott
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

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


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


Re: [Wicket-user] ui framework choice

2007-02-01 Thread Scott Swank

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

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

Cheers,
Scott

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




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

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


Scott Swank wrote:

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

 Scott


-
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys - and earn cash

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



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


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





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


Re: [Wicket-user] ui framework choice

2007-02-01 Thread Matej Knopp
Heh, models take a while to grok. I guess most people have the same 
problem at the beginning (I was no exception :))

-Matej

Scott Swank wrote:
 Read it?  I have it printed off  sitting on my desk.  The key point I 
 was missing was that a static model for, lets say, a label holds the 
 value in question.  For Ajax refreshes a dynamic model, such as a 
 PropertyModel, knows how to get the value and hence updates the label's 
 contents on refresh.
 
 For no good reason I just wasn't getting that right out of the gate.
 
 Cheers,
 Scott
 
 On 2/1/07, *Jonathan Locke*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 
 
 Models are actually simpler than they look.  If you haven't already
 read it,
 this is a good primer:
 
 http://cwiki.apache.org/WICKET/working-with-wicket-models.html
 
 
 Scott Swank wrote:
  
   Thank you to both of you.  And for anyone who's been paying any
 attention
   to
   my questions it's pretty clear that I don't know Wicket
 particularly well
   yet.  I'm still fumbling around a bit with models.  Further, the
 other
   three
   folk had never set eyes on Wicket before last Monday.
  
   Scott
  
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
 share
   your
   opinions on IT  business topics through brief surveys - and earn
 cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 --
 View this message in context:
 
 http://www.nabble.com/-Wicket-user--ui-framework-choice-tf3137969.html#a8753476
 
 http://www.nabble.com/-Wicket-user--ui-framework-choice-tf3137969.html#a8753476
 Sent from the Wicket - User mailing list archive at Nabble.com
 http://Nabble.com.
 
 
 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 -- 
 Scott Swank
 reformed mathematician
 
 
 
 
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 
 
 
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


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


Re: [Wicket-user] Pro Wicket and RestartResponseAtInterceptPage question

2007-02-01 Thread Robert ...

I don't think it's a convertor problem, because if the user is already
logged in, the ConfirmationPage can be reached without a problem.
It's only when the user still has to login between the Checkout and
Confirmation page.

I don't know why it is trying to set something in CheckoutBook anyway. I'm
guessing because it is returning to the CheckoutPage instead of
ConfirmationPage.


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


looks like a converter problem? maybe that field that is collection an int
needs to be marked required, or be backed by Integer rather then int.

-igor


On 2/1/07, Robert ... [EMAIL PROTECTED] wrote:

 Hi,

 I have read the Pro Wicket book and I am trying to make some examples
 from the book. However I get an error when trying to use a
 RestartResponseAtInterceptPageException in the bookstore example from page
 114. It happens after the Login page calls continueToOriginalDestination.

 wicket.util.convert.ConversionException: Can't convert null value to a 
primitive class: int for setting it on [EMAIL PROTECTED]


 In the authorization strategy/listener onUnauthorizedInstantiation
 method I see that the component is the ConfirmationPage as I expected.
 However the expection page I get shows the CheckoutPage as the page class.
 I'm not sure if it means anything, but it seems to go back to the
 CheckoutPage instead of continuing to the ConfirmationPage.

 What am I doing wrong?

 Robert.



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

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




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

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



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


Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Henning Bredel
Johan Compagner schrieb:

 Henning Bredel schrieb:
  Hi,
 
  is there a way, to handle an upload with ajax? 


 not  as far as i know.

 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=lnkkid=120709bid=263057dat=121642
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   
Thx, for answering -- but, perhaps this was not the last question: is 
there a workaround
or is it simply unusual or not w3c conform to handle it that way?

regards

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


Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Johan Compagner

i have no idea about a workaround. I just know that everytime that question
picks up
everytime the answer is no doesn't work

And i don't think it is a w3c standard.. Those guys don't really make the
standards nowadays i think.

johan


On 2/1/07, Henning Bredel [EMAIL PROTECTED] wrote:


Johan Compagner schrieb:

 Henning Bredel schrieb:
  Hi,
 
  is there a way, to handle an upload with ajax?


 not  as far as i know.

 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=lnkkid=120709bid=263057dat=121642
 

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

Thx, for answering -- but, perhaps this was not the last question: is
there a workaround
or is it simply unusual or not w3c conform to handle it that way?

regards

-
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


Re: [Wicket-user] Pro Wicket and RestartResponseAtInterceptPage question

2007-02-01 Thread Johan Compagner

but somehow it really tries to convert a null value to a primitive int
And we don't support that. You could try to debug what it tries to populate.

johan


On 2/1/07, Robert ... [EMAIL PROTECTED] wrote:


I don't think it's a convertor problem, because if the user is already
logged in, the ConfirmationPage can be reached without a problem.
It's only when the user still has to login between the Checkout and
Confirmation page.

I don't know why it is trying to set something in CheckoutBook anyway. I'm
guessing because it is returning to the CheckoutPage instead of
ConfirmationPage.


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

 looks like a converter problem? maybe that field that is collection an
 int needs to be marked required, or be backed by Integer rather then int.

 -igor


 On 2/1/07, Robert ... [EMAIL PROTECTED] wrote:

   Hi,
 
  I have read the Pro Wicket book and I am trying to make some
  examples from the book. However I get an error when trying to use a
  RestartResponseAtInterceptPageException in the bookstore example from page
  114. It happens after the Login page calls continueToOriginalDestination.
 
  wicket.util.convert.ConversionException: Can't convert null value to a 
primitive class: int for setting it on [EMAIL PROTECTED]
 
 
  In the authorization strategy/listener onUnauthorizedInstantiation
  method I see that the component is the ConfirmationPage as I expected.
  However the expection page I get shows the CheckoutPage as the page class.
  I'm not sure if it means anything, but it seems to go back to the
  CheckoutPage instead of continuing to the ConfirmationPage.
 
  What am I doing wrong?
 
  Robert.
 
 
 
  -
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to make your job
  easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache
  Geronimo
 
  http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 


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

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




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


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


Re: [Wicket-user] ui framework choice

2007-02-01 Thread Johan Compagner

Matej!
Even you!?
I can't believe that! you are making fun of me!

johan



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


Heh, models take a while to grok. I guess most people have the same
problem at the beginning (I was no exception :))

-Matej

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

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

 Cheers,
 Scott

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



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

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


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

-
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance to
 share
   your
   opinions on IT  business topics through brief surveys - and earn
 cash
  

http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  

 --
 View this message in context:

http://www.nabble.com/-Wicket-user--ui-framework-choice-tf3137969.html#a8753476
 
http://www.nabble.com/-Wicket-user--ui-framework-choice-tf3137969.html#a8753476

 Sent from the Wicket - User mailing list archive at Nabble.com
 http://Nabble.com.



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

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




 --
 Scott Swank
 reformed mathematician


 


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


 

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


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

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


Re: [Wicket-user] [Upload] Upload and Ajax

2007-02-01 Thread Henning Bredel
Johan Compagner schrieb:
 i have no idea about a workaround. I just know that everytime that 
 question picks up
 everytime the answer is no doesn't work

 And i don't think it is a w3c standard.. Those guys don't really make 
 the standards nowadays i think.

 johan


 On 2/1/07, *Henning Bredel* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Johan Compagner schrieb:
 
  Henning Bredel schrieb:
   Hi,
  
   is there a way, to handle an upload with ajax?
 
 
  not  as far as i know.
 
  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=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 Thx, for answering -- but, perhaps this was not the last question: is
 there a workaround
 or is it simply unusual or not w3c conform to handle it that way?

 regards

 -

 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
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 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
   
Okay -- thx for your effort

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


Re: [Wicket-user] ui framework choice

2007-02-01 Thread Matej Knopp
Yeah, well, it took me some time to realize the potential of wicket 
models :)

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

-Matej

Johan Compagner wrote:
 Matej!
 Even you!?
 I can't believe that! you are making fun of me!
 
 johan
 
 
 
 On 2/1/07, *Matej Knopp*  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote:
 
 Heh, models take a while to grok. I guess most people have the same
 problem at the beginning (I was no exception :))
 
 -Matej
 
 Scott Swank wrote:
   Read it?  I have it printed off  sitting on my desk.  The key
 point I
   was missing was that a static model for, lets say, a label holds the
   value in question.  For Ajax refreshes a dynamic model, such as a
   PropertyModel, knows how to get the value and hence updates the
 label's
   contents on refresh.
  
   For no good reason I just wasn't getting that right out of the gate.
  
   Cheers,
   Scott
  
   On 2/1/07, *Jonathan Locke*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
  
  
  
   Models are actually simpler than they look.  If you haven't
 already
   read it,
   this is a good primer:
  
   http://cwiki.apache.org/WICKET/working-with-wicket-models.html
  
  
   Scott Swank wrote:

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

 Scott


  
 -
 
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the
 chance to
   share
 your
 opinions on IT  business topics through brief surveys -
 and earn
   cash

  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   mailto: Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


  
   --
   View this message in context:
  
 
 http://www.nabble.com/-Wicket-user--ui-framework-choice-tf3137969.html#a8753476
 
 http://www.nabble.com/-Wicket-user--ui-framework-choice-tf3137969.html#a8753476
  
 
 http://www.nabble.com/-Wicket-user--ui-framework-choice-tf3137969.html#a8753476
   Sent from the Wicket - User mailing list archive at
 Nabble.com http://Nabble.com
   http://Nabble.com.
  
  
  
 -
   Using Tomcat but need to do more? Need to support web services,
   security?
   Get stuff done quickly with pre-integrated technology to make
 your
   job easier.
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   mailto:Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
  
   --
   Scott Swank
   reformed mathematician
  
  
  
 
 
  
  
 -
   Using 

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Eelco Hillenius
Wasn't it optimized now so that it only hits jars once and only hits
per resource where normal files are involved?

Eelco

On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
 one per resource will i think not really change.


 johan


 On 2/1/07, beboris [EMAIL PROTECTED]  wrote:
 
  We will, when we are on production. Now that we are are still in alpha we
  prefer development (hey, we wrote our first line of wicket code 5-6
 weeks
  ago!)
 
  Also, even in deployment mode 'lsof' still shows us a lot of open files
 (one
  per resource) if we don't unpack resources from the .jar . It may be
 smaller
  number than in development mode, but still... I imagine your workaround
  would close those unnecessarily open files.
 
  If you can't backport it, please, tell me where it is in SVN. We'll hack
  it in oursleves for now...
 
  Bob
 
 
  Johan Compagner wrote:
  
   can't you run in deployment mode instead of development mode?
   then that shouldn't happen.
  
   I can see if we can backport it.
  
   johan
  
  
   On 2/1/07, beboris [EMAIL PROTECTED] wrote:
  
  
   We have found a pretty weird situation with too many open files error
   on
   our alpha-testing site. Further analysis showed that on each page
 refresh
   the following resources get repeatedly obtained from the wicket's .jar
   and
   add to the number of open files:
  'wicket/ajax/wicket-ajax.js'
  
 'wicket/extensions/ajax/markup/html/modal/res/modal.css'
  
 'wicket/extensions/ajax/markup/html/modal/res/modal.js'
  'wicket/extensions/markup/html/tree/res/tree.css'
  'wicket/extensions/markup/html/tree/res/tree.js'
  
   Eventually (due to garbage collection?) the number of open files goes
   down
   again. But we wanted to know why those files stayed open in the first
   place
   and were not closed upon retrieving a resource.
  
   It looks like switching to the deployment mode from development one
   would significantly reduce the peak numbers of the open files/streams
 to
   wicket .jar-s, and extracting resources from the .jar would reduce it
   even
   better. We were told that the original reason for files staying open is
 a
   Java bug (the fact that URLConnection doesnt have a .close), which
 causes
   those nasty results when combined with development mode trying to
 monitor
   [resource] files for changes and reloading them.
  
   We were also told that there is a workaround for that problem in SVN
   somewhere, but it's probably not backported to 1.2.5 . I have 2
 questions
   in
   that regard:
   (1) Where can we find those workarounds in the code?
   (2) Is it too much work to backport them to 1.2.5 so when it's released
   it
   doesn't contain the problem?
  
   Thanks,
   Bob.
   --
   View this message in context:
  
 http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8743682
   Sent from the Wicket - User mailing list archive at Nabble.com .
  
  
  
 -
   Using Tomcat but need to do more? Need to support web services,
 security?
   Get stuff done quickly with pre-integrated technology to make your job
   easier.
   Download IBM WebSphere Application Server v.1.0.1 based on Apache
   Geronimo
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
 -
   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
  
  
 
  --
  View this message in context:
 http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8751579
  Sent from the Wicket - User mailing list archive at Nabble.com .
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Using Tomcat 

Re: [Wicket-user] ui framework choice

2007-02-01 Thread Scott Swank

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

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

Scott

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


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

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

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


Re: [Wicket-user] HTTP session expiration and Wicket pages

2007-02-01 Thread Eelco Hillenius
On 1/31/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 no, client side state is not something we support, and probably will not in
 the foreseeable future. there are a lot of downsides to doing so that are
 outlined in numerous threads on this list.

We've played around with the idea of letting components doing their
own URL contribution. However, we currently feel that even though it
might be nice to have that (that's at least what I think), it would
also put users in the wrong way and Wicket would probably be used as a
kind of framework it was not designed for. Also, at this stage we
think it is premature optimization.

See http://issues.apache.org/jira/browse/WICKET-197

Of course, as always, patches or proof of concepts would be very welcome :)

Eelco

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


[Wicket-user] Editable DataTable with Paging

2007-02-01 Thread Tim Lantry

Is there a way to update the property model when paging through a
DataTable.  Here's what I am trying to do.
I have a Paged DataTable and some of the columns contain a TextField.  I
want the user to be able to enter data in the text fields and be able to
page through the data.  When they are finished entering data for the entire
table, they can hit the submit button and save all the data from every page.
I am currently passing a list of all the objects to the DataProvider and
using a sublist to do the paging but when I advance the the next page, my
entered data is gone.
Any suggestions?

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


Re: [Wicket-user] Editable DataTable with Paging

2007-02-01 Thread Igor Vaynberg

the data is lost because paging navigator uses links to navigate and so
doesnt submit the form. what you have to do is override the paging navigator
or make your own to use submitlinks. then you can keep the changed data in
an array somewhere until the submit button is pressed at which point you
would apply that data.

-igor


On 2/1/07, Tim Lantry [EMAIL PROTECTED] wrote:


Is there a way to update the property model when paging through a
DataTable.  Here's what I am trying to do.
I have a Paged DataTable and some of the columns contain a TextField.  I
want the user to be able to enter data in the text fields and be able to
page through the data.  When they are finished entering data for the entire
table, they can hit the submit button and save all the data from every page.

I am currently passing a list of all the objects to the DataProvider and
using a sublist to do the paging but when I advance the the next page, my
entered data is gone.
Any suggestions?

Thanks,
Tim

-
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


Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Johan Compagner

yes the modification checker.
But we do need to really load the resource out of the jar file once. So that
file handle will be used.

johan


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


Wasn't it optimized now so that it only hits jars once and only hits
per resource where normal files are involved?

Eelco

On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
 one per resource will i think not really change.


 johan


 On 2/1/07, beboris [EMAIL PROTECTED]  wrote:
 
  We will, when we are on production. Now that we are are still in alpha
we
  prefer development (hey, we wrote our first line of wicket code 5-6
 weeks
  ago!)
 
  Also, even in deployment mode 'lsof' still shows us a lot of open
files
 (one
  per resource) if we don't unpack resources from the .jar . It may be
 smaller
  number than in development mode, but still... I imagine your
workaround
  would close those unnecessarily open files.
 
  If you can't backport it, please, tell me where it is in SVN. We'll
hack
  it in oursleves for now...
 
  Bob
 
 
  Johan Compagner wrote:
  
   can't you run in deployment mode instead of development mode?
   then that shouldn't happen.
  
   I can see if we can backport it.
  
   johan
  
  
   On 2/1/07, beboris [EMAIL PROTECTED] wrote:
  
  
   We have found a pretty weird situation with too many open files
error
   on
   our alpha-testing site. Further analysis showed that on each page
 refresh
   the following resources get repeatedly obtained from the wicket's
.jar
   and
   add to the number of open files:
  'wicket/ajax/wicket-ajax.js'
  
 'wicket/extensions/ajax/markup/html/modal/res/modal.css'
  
 'wicket/extensions/ajax/markup/html/modal/res/modal.js'
  'wicket/extensions/markup/html/tree/res/tree.css'
  'wicket/extensions/markup/html/tree/res/tree.js'
  
   Eventually (due to garbage collection?) the number of open files
goes
   down
   again. But we wanted to know why those files stayed open in the
first
   place
   and were not closed upon retrieving a resource.
  
   It looks like switching to the deployment mode from development
one
   would significantly reduce the peak numbers of the open
files/streams
 to
   wicket .jar-s, and extracting resources from the .jar would reduce
it
   even
   better. We were told that the original reason for files staying
open is
 a
   Java bug (the fact that URLConnection doesnt have a .close), which
 causes
   those nasty results when combined with development mode trying to
 monitor
   [resource] files for changes and reloading them.
  
   We were also told that there is a workaround for that problem in
SVN
   somewhere, but it's probably not backported to 1.2.5 . I have 2
 questions
   in
   that regard:
   (1) Where can we find those workarounds in the code?
   (2) Is it too much work to backport them to 1.2.5 so when it's
released
   it
   doesn't contain the problem?
  
   Thanks,
   Bob.
   --
   View this message in context:
  

http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8743682
   Sent from the Wicket - User mailing list archive at Nabble.com .
  
  
  

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

-
   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
  
  
 
  --
  View this message in context:

http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8751579
  Sent from the Wicket - User mailing list archive at Nabble.com .
 
 
 

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

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Eelco Hillenius
Yeah, but that would be always one fd for a jar, no matter how many
files in it that have to be read, right?

Eelco


On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
 yes the modification checker.
 But we do need to really load the resource out of the jar file once. So that
 file handle will be used.

 johan



 On 2/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Wasn't it optimized now so that it only hits jars once and only hits
  per resource where normal files are involved?
 
  Eelco
 
  On 2/1/07, Johan Compagner [EMAIL PROTECTED]  wrote:
   one per resource will i think not really change.
  
  
   johan
  
  
   On 2/1/07, beboris [EMAIL PROTECTED]  wrote:
   
We will, when we are on production. Now that we are are still in alpha
 we
prefer development (hey, we wrote our first line of wicket code 5-6
   weeks
ago!)
   
Also, even in deployment mode 'lsof' still shows us a lot of open
 files
   (one
per resource) if we don't unpack resources from the .jar . It may be
   smaller
number than in development mode, but still... I imagine your
 workaround
would close those unnecessarily open files.
   
If you can't backport it, please, tell me where it is in SVN. We'll
 hack
it in oursleves for now...
   
Bob
   
   
Johan Compagner wrote:

 can't you run in deployment mode instead of development mode?
 then that shouldn't happen.

 I can see if we can backport it.

 johan


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


 We have found a pretty weird situation with too many open files
 error
 on
 our alpha-testing site. Further analysis showed that on each page
   refresh
 the following resources get repeatedly obtained from the wicket's
 .jar
 and
 add to the number of open files:
'wicket/ajax/wicket-ajax.js'

  
 'wicket/extensions/ajax/markup/html/modal/res/modal.css'

   'wicket/extensions/ajax/markup/html/modal/res/modal.js'

 'wicket/extensions/markup/html/tree/res/tree.css'

 'wicket/extensions/markup/html/tree/res/tree.js'

 Eventually (due to garbage collection?) the number of open files
 goes
 down
 again. But we wanted to know why those files stayed open in the
 first
 place
 and were not closed upon retrieving a resource.

 It looks like switching to the deployment mode from development
 one
 would significantly reduce the peak numbers of the open
 files/streams
   to
 wicket .jar-s, and extracting resources from the .jar would reduce
 it
 even
 better. We were told that the original reason for files staying
 open is
   a
 Java bug (the fact that URLConnection doesnt have a .close), which
   causes
 those nasty results when combined with development mode trying to
   monitor
 [resource] files for changes and reloading them.

 We were also told that there is a workaround for that problem in
 SVN
 somewhere, but it's probably not backported to 1.2.5 . I have 2
   questions
 in
 that regard:
 (1) Where can we find those workarounds in the code?
 (2) Is it too much work to backport them to 1.2.5 so when it's
 released
 it
 doesn't contain the problem?

 Thanks,
 Bob.
 --
 View this message in context:

  
 http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8743682
 Sent from the Wicket - User mailing list archive at Nabble.com .



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

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

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



  
 -
 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


   
--
View this message in context:
  
 http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8751579
Sent from the Wicket - User mailing list archive at 

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Johan Compagner

that is what you would think... But why generates a modification check one
file handle for every check in the file?

because UrlConnection.connect() has again a JarUrlConnection internally that
makes a new connection to that jar file
and UrlConnection does have a connect() but not a disconnect() so you can't
clear it.

johan


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


Yeah, but that would be always one fd for a jar, no matter how many
files in it that have to be read, right?

Eelco


On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
 yes the modification checker.
 But we do need to really load the resource out of the jar file once. So
that
 file handle will be used.

 johan



 On 2/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Wasn't it optimized now so that it only hits jars once and only hits
  per resource where normal files are involved?
 
  Eelco
 
  On 2/1/07, Johan Compagner [EMAIL PROTECTED]  wrote:
   one per resource will i think not really change.
  
  
   johan
  
  
   On 2/1/07, beboris [EMAIL PROTECTED]  wrote:
   
We will, when we are on production. Now that we are are still in
alpha
 we
prefer development (hey, we wrote our first line of wicket code
5-6
   weeks
ago!)
   
Also, even in deployment mode 'lsof' still shows us a lot of open
 files
   (one
per resource) if we don't unpack resources from the .jar . It may
be
   smaller
number than in development mode, but still... I imagine your
 workaround
would close those unnecessarily open files.
   
If you can't backport it, please, tell me where it is in SVN.
We'll
 hack
it in oursleves for now...
   
Bob
   
   
Johan Compagner wrote:

 can't you run in deployment mode instead of development mode?
 then that shouldn't happen.

 I can see if we can backport it.

 johan


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


 We have found a pretty weird situation with too many open
files
 error
 on
 our alpha-testing site. Further analysis showed that on each
page
   refresh
 the following resources get repeatedly obtained from the
wicket's
 .jar
 and
 add to the number of open files:
'wicket/ajax/wicket-ajax.js'

  
 'wicket/extensions/ajax/markup/html/modal/res/modal.css'

   'wicket/extensions/ajax/markup/html/modal/res/modal.js'

 'wicket/extensions/markup/html/tree/res/tree.css'

 'wicket/extensions/markup/html/tree/res/tree.js'

 Eventually (due to garbage collection?) the number of open
files
 goes
 down
 again. But we wanted to know why those files stayed open in the
 first
 place
 and were not closed upon retrieving a resource.

 It looks like switching to the deployment mode from
development
 one
 would significantly reduce the peak numbers of the open
 files/streams
   to
 wicket .jar-s, and extracting resources from the .jar would
reduce
 it
 even
 better. We were told that the original reason for files staying
 open is
   a
 Java bug (the fact that URLConnection doesnt have a .close),
which
   causes
 those nasty results when combined with development mode trying
to
   monitor
 [resource] files for changes and reloading them.

 We were also told that there is a workaround for that problem
in
 SVN
 somewhere, but it's probably not backported to 1.2.5 . I have 2
   questions
 in
 that regard:
 (1) Where can we find those workarounds in the code?
 (2) Is it too much work to backport them to 1.2.5 so when it's
 released
 it
 doesn't contain the problem?

 Thanks,
 Bob.
 --
 View this message in context:

  

http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8743682
 Sent from the Wicket - User mailing list archive at Nabble.com.



  

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

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

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



  

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

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

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Eelco Hillenius
Would it be possible and useful to cache the URL connection? Does it
have a time out and/ or does it use an exclusive lock?

Eelco

On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
 that is what you would think... But why generates a modification check one
 file handle for every check in the file?

 because UrlConnection.connect() has again a JarUrlConnection internally that
 makes a new connection to that jar file
 and UrlConnection does have a connect() but not a disconnect() so you can't
 clear it.

 johan



 On 2/2/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:
  Yeah, but that would be always one fd for a jar, no matter how many
  files in it that have to be read, right?
 
  Eelco
 
 
  On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
   yes the modification checker.
   But we do need to really load the resource out of the jar file once. So
 that
   file handle will be used.
  
   johan
  
  
  
   On 2/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
   
Wasn't it optimized now so that it only hits jars once and only hits
per resource where normal files are involved?
   
Eelco
   
On 2/1/07, Johan Compagner [EMAIL PROTECTED]  wrote:
 one per resource will i think not really change.


 johan


 On 2/1/07, beboris  [EMAIL PROTECTED]  wrote:
 
  We will, when we are on production. Now that we are are still in
 alpha
   we
  prefer development (hey, we wrote our first line of wicket code
 5-6
 weeks
  ago!)
 
  Also, even in deployment mode 'lsof' still shows us a lot of open
   files
 (one
  per resource) if we don't unpack resources from the .jar . It may
 be
 smaller
  number than in development mode, but still... I imagine your
   workaround
  would close those unnecessarily open files.
 
  If you can't backport it, please, tell me where it is in SVN.
 We'll
   hack
  it in oursleves for now...
 
  Bob
 
 
  Johan Compagner wrote:
  
   can't you run in deployment mode instead of development mode?
   then that shouldn't happen.
  
   I can see if we can backport it.
  
   johan
  
  
   On 2/1/07, beboris  [EMAIL PROTECTED] wrote:
  
  
   We have found a pretty weird situation with too many open
 files
   error
   on
   our alpha-testing site. Further analysis showed that on each
 page
 refresh
   the following resources get repeatedly obtained from the
 wicket's
   .jar
   and
   add to the number of open files:
  'wicket/ajax/wicket-ajax.js'
  

  
 'wicket/extensions/ajax/markup/html/modal/res/modal.css'
  

 'wicket/extensions/ajax/markup/html/modal/res/modal.js'
  
   'wicket/extensions/markup/html/tree/res/tree.css'
  
   'wicket/extensions/markup/html/tree/res/tree.js'
  
   Eventually (due to garbage collection?) the number of open
 files
   goes
   down
   again. But we wanted to know why those files stayed open in the
   first
   place
   and were not closed upon retrieving a resource.
  
   It looks like switching to the deployment mode from
 development
   one
   would significantly reduce the peak numbers of the open
   files/streams
 to
   wicket .jar-s, and extracting resources from the .jar would
 reduce
   it
   even
   better. We were told that the original reason for files staying
   open is
 a
   Java bug (the fact that URLConnection doesnt have a .close),
 which
 causes
   those nasty results when combined with development mode trying
 to
 monitor
   [resource] files for changes and reloading them.
  
   We were also told that there is a workaround for that problem
 in
   SVN
   somewhere, but it's probably not backported to 1.2.5 . I have 2
 questions
   in
   that regard:
   (1) Where can we find those workarounds in the code?
   (2) Is it too much work to backport them to 1.2.5 so when it's
   released
   it
   doesn't contain the problem?
  
   Thanks,
   Bob.
   --
   View this message in context:
  

  
 http://www.nabble.com/Fighting-%22Too-many-open-files%22-problem-related-to-wicket-resource-files-tf3153256.html#a8743682
   Sent from the Wicket - User mailing list archive at Nabble.com
 .
  
  
  

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

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

  
 

Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Johan Compagner

why would you cache? and which one? the url connection to an entry in a jar
file (thats the JarUrlConnection)
or (i guess) the FileUrlConnection (to the jar file itself)

both don't make much sense to cache
the first one we don't need to cache we only need to use it once by really
loading the resource
and i guess when it is finalized it is cleaned up.
We already don't use it anymore for the last modified. Because there we use
only the second one
So the fileUrlConnection to the jarFile itself thats is inside the
JarUrlConnection object.
on that one we call last modified everytime, But that will not cause the
file to open. (because it doesn't have to read the file itself)

And we can't construct JarUrlConnections (for reading the jar entries) with
the same file url connection because there is
no way to initialize the jar url connection directly with the file url
connection so they all would use the same.

johan


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


Would it be possible and useful to cache the URL connection? Does it
have a time out and/ or does it use an exclusive lock?

Eelco

On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
 that is what you would think... But why generates a modification check
one
 file handle for every check in the file?

 because UrlConnection.connect() has again a JarUrlConnection internally
that
 makes a new connection to that jar file
 and UrlConnection does have a connect() but not a disconnect() so you
can't
 clear it.

 johan



 On 2/2/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:
  Yeah, but that would be always one fd for a jar, no matter how many
  files in it that have to be read, right?
 
  Eelco
 
 
  On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
   yes the modification checker.
   But we do need to really load the resource out of the jar file once.
So
 that
   file handle will be used.
  
   johan
  
  
  
   On 2/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
   
Wasn't it optimized now so that it only hits jars once and only
hits
per resource where normal files are involved?
   
Eelco
   
On 2/1/07, Johan Compagner [EMAIL PROTECTED]  wrote:
 one per resource will i think not really change.


 johan


 On 2/1/07, beboris  [EMAIL PROTECTED]  wrote:
 
  We will, when we are on production. Now that we are are still
in
 alpha
   we
  prefer development (hey, we wrote our first line of wicket
code
 5-6
 weeks
  ago!)
 
  Also, even in deployment mode 'lsof' still shows us a lot of
open
   files
 (one
  per resource) if we don't unpack resources from the .jar . It
may
 be
 smaller
  number than in development mode, but still... I imagine your
   workaround
  would close those unnecessarily open files.
 
  If you can't backport it, please, tell me where it is in SVN.
 We'll
   hack
  it in oursleves for now...
 
  Bob
 
 
  Johan Compagner wrote:
  
   can't you run in deployment mode instead of development
mode?
   then that shouldn't happen.
  
   I can see if we can backport it.
  
   johan
  
  
   On 2/1/07, beboris  [EMAIL PROTECTED] wrote:
  
  
   We have found a pretty weird situation with too many open
 files
   error
   on
   our alpha-testing site. Further analysis showed that on
each
 page
 refresh
   the following resources get repeatedly obtained from the
 wicket's
   .jar
   and
   add to the number of open files:
  'wicket/ajax/wicket-ajax.js'
  

  
 'wicket/extensions/ajax/markup/html/modal/res/modal.css'
  

 'wicket/extensions/ajax/markup/html/modal/res/modal.js'
  
   'wicket/extensions/markup/html/tree/res/tree.css'
  
   'wicket/extensions/markup/html/tree/res/tree.js'
  
   Eventually (due to garbage collection?) the number of open
 files
   goes
   down
   again. But we wanted to know why those files stayed open in
the
   first
   place
   and were not closed upon retrieving a resource.
  
   It looks like switching to the deployment mode from
 development
   one
   would significantly reduce the peak numbers of the open
   files/streams
 to
   wicket .jar-s, and extracting resources from the .jar would
 reduce
   it
   even
   better. We were told that the original reason for files
staying
   open is
 a
   Java bug (the fact that URLConnection doesnt have a
.close),
 which
 causes
   those nasty results when combined with development mode
trying
 to
 monitor
   [resource] files for changes and reloading them.
  
   We were also told that there is a workaround for that
problem
 in
   SVN
   somewhere, but it's probably not backported to 1.2.5 . I
have 2
 questions
   in
   that regard:
   (1) Where can we find those workarounds in the code?
   (2) Is it too much work to backport them to 

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

2007-02-01 Thread Scott Swank

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

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

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

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

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


Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Eelco Hillenius
Too bad,

Eelco


On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
 why would you cache? and which one? the url connection to an entry in a jar
 file (thats the JarUrlConnection)
 or (i guess) the FileUrlConnection (to the jar file itself)

 both don't make much sense to cache
  the first one we don't need to cache we only need to use it once by really
 loading the resource
 and i guess when it is finalized it is cleaned up.
 We already don't use it anymore for the last modified. Because there we use
 only the second one
 So the fileUrlConnection to the jarFile itself thats is inside the
 JarUrlConnection object.
 on that one we call last modified everytime, But that will not cause the
 file to open. (because it doesn't have to read the file itself)

 And we can't construct JarUrlConnections (for reading the jar entries) with
 the same file url connection because there is
 no way to initialize the jar url connection directly with the file url
 connection so they all would use the same.

 johan



 On 2/2/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Would it be possible and useful to cache the URL connection? Does it
  have a time out and/ or does it use an exclusive lock?
 
  Eelco
 
  On 2/1/07, Johan Compagner [EMAIL PROTECTED]  wrote:
   that is what you would think... But why generates a modification check
 one
   file handle for every check in the file?
  
   because UrlConnection.connect() has again a JarUrlConnection internally
 that
   makes a new connection to that jar file
   and UrlConnection does have a connect() but not a disconnect() so you
 can't
   clear it.
  
   johan
  
  
  
   On 2/2/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:
Yeah, but that would be always one fd for a jar, no matter how many
files in it that have to be read, right?
   
Eelco
   
   
On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
 yes the modification checker.
 But we do need to really load the resource out of the jar file once.
 So
   that
 file handle will be used.

 johan



 On 2/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Wasn't it optimized now so that it only hits jars once and only
 hits
  per resource where normal files are involved?
 
  Eelco
 
  On 2/1/07, Johan Compagner  [EMAIL PROTECTED]  wrote:
   one per resource will i think not really change.
  
  
   johan
  
  
   On 2/1/07, beboris  [EMAIL PROTECTED]  wrote:
   
We will, when we are on production. Now that we are are still
 in
   alpha
 we
prefer development (hey, we wrote our first line of wicket
 code
   5-6
   weeks
ago!)
   
Also, even in deployment mode 'lsof' still shows us a lot of
 open
 files
   (one
per resource) if we don't unpack resources from the .jar . It
 may
   be
   smaller
number than in development mode, but still... I imagine your
 workaround
would close those unnecessarily open files.
   
If you can't backport it, please, tell me where it is in SVN.
   We'll
 hack
it in oursleves for now...
   
Bob
   
   
Johan Compagner wrote:

 can't you run in deployment mode instead of development
 mode?
 then that shouldn't happen.

 I can see if we can backport it.

 johan


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


 We have found a pretty weird situation with too many open
   files
 error
 on
 our alpha-testing site. Further analysis showed that on
 each
   page
   refresh
 the following resources get repeatedly obtained from the
   wicket's
 .jar
 and
 add to the number of open files:
'wicket/ajax/wicket-ajax.js'

  

  
 'wicket/extensions/ajax/markup/html/modal/res/modal.css'

  
   'wicket/extensions/ajax/markup/html/modal/res/modal.js'

 'wicket/extensions/markup/html/tree/res/tree.css'

 'wicket/extensions/markup/html/tree/res/tree.js'

 Eventually (due to garbage collection?) the number of open
   files
 goes
 down
 again. But we wanted to know why those files stayed open in
 the
 first
 place
 and were not closed upon retrieving a resource.

 It looks like switching to the deployment mode from
   development
 one
 would significantly reduce the peak numbers of the open
 files/streams
   to
 wicket .jar-s, and extracting resources from the .jar would
   reduce
 it
 even
 better. We were told that the original reason for files
 staying
 open is
   a
 Java bug (the fact that URLConnection doesnt have a
 .close),
   which
   causes
 those nasty results when combined with development mode
 trying
   

[Wicket-user] Form Post Issues in IE, not Mozilla

2007-02-01 Thread dukejansen

I'm facing a very strange issue which may be Wicket-related or may not.

It seems that for any form posts in our application, whether Ajax or
otherwise, when the request arrives at the server there is no form data
included. The request.postData member is null.

This happens only in IE. Form posts work fine in Mozilla.

I look at the HTML and it all looks fine. Basic form, method post, action is
a wicket url.

I have put breakpoints in my servlet filter before it even gets to wicket
and the form data is already missing, so it doesn't seem to be a problem
with Wicket reading the request. But it is very odd that it works fine in
Mozilla and not IE.

Since I've never encountered this before, I thought maybe it had something
to do with the way Wicket generates forms or something.

Long shot, I know, but thought I'd post just in case someone else has seen
similar behavior and knows the silver bullet.

Has anyone seen anything like this?

-Jason
-- 
View this message in context: 
http://www.nabble.com/Form-Post-Issues-in-IE%2C-not-Mozilla-tf3158363.html#a8759743
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] Ajax components failing within DataView

2007-02-01 Thread dukejansen

I have a DataView.

Within this DataView I have multiple items.

Each item includes, among other things:
   - a markup container more that starts out visible=false
   - an ajax link show more, which toggles the visibility of the markup
container (this is an AjaxFallbackLink)

In addition, the dataview itself contains an AjaxPagingNavigator, which I've
subclassed to provide some additional formatting but otherwise is the basic
wicket version.

The ajax show more link works great. Hides/shows the more info container
for each item without a problem.

But once I use any of the ajax paging links, which re-render the DataView
only, the ajax more info links no longer work. Specifically, clicking on
the more info link results in a full page form submit (instead of a
behind-the-scenes ajax submit), as though there was no ajax behavior on
them. Once it reloads the whole page, the more info ajax links work again.
But any use of the paging links renders them useless oncemore.

My only thought is that maybe somehow the AjaxFallbackLink for more info
is getting confused, and not rendering the ajax code necessary after the
paging controls re-render the data view.

Any ideas what might be going on?

-Jason
-- 
View this message in context: 
http://www.nabble.com/Ajax-components-failing-within-DataView-tf3158418.html#a8759860
Sent from the Wicket - User mailing list archive at Nabble.com.


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


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

2007-02-01 Thread Sean Sullivan

In my application, I implemented a custom IConverterFactory class and I
extended
Wicket's DateConverter class.

Here's what I did for my Intranet application:
*

import* wicket.util.convert.IConverterFactory;
*

import* wicket.util.convert.IConverter;
*

import* wicket.util.convert.Converter;
*

import* java.util.*;
*

import* java.text.*;
*

public* *class* *ConverterFactory* *implements* IConverterFactory

{

*public* ConverterFactory()

{

*super*();

}

*public* *IConverter* newConverter(*final* Locale locale)

{

Converter c = *new* Converter(locale);

*if* ( (locale == Locale.ENGLISH) || (locale == Locale.US) )

{

MyDateConverter dc = *new* *My*DateConverter();

c.set(java.util.Date.*class*, dc);

}

*return* c;

}
}
**
*

public class MyDateConverter extends
wicket.util.convert.converters.DateConverter {

public DateFormat getDateFormat(Locale locale)

{

if ( (locale == null) || (locale == Locale.ENGLISH) || (locale == Locale.US)
)

{

SimpleDateFormat format = new SimpleDateFormat(MM/dd/);

return format;

}

else



{

return super.getDateFormat(locale);

}

}

}
*


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


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

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

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

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

Thank you,
Scott
-

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


Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread beboris

It's hard for me to say, what the right way to fix this situation is. The
number of open files (that look to the OS as wicket .jar files) will go up
significantly and then go down (down - probably due to the garbage
collection). It is during those spikes caused by many users hitting wicket
pages around the same time that we got too many open files error. It
almost looks like the only way to really eliminate those unnecessary open
files to numerous Wicket resources (and to guarantee too many open files
will never hit us) is to unpack those resources from the wicket .jar-s and
put them into WEB-INF/classes directory instead. Once we did it, we didn't
see all those dozens (and even hundreds) open files ever again...

Bob.


Eelco Hillenius wrote:
 
 Too bad,
 
 Eelco
 
 
 On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
 why would you cache? and which one? the url connection to an entry in a
 jar
 file (thats the JarUrlConnection)
 or (i guess) the FileUrlConnection (to the jar file itself)

 both don't make much sense to cache
  the first one we don't need to cache we only need to use it once by
 really
 loading the resource
 and i guess when it is finalized it is cleaned up.
 We already don't use it anymore for the last modified. Because there we
 use
 only the second one
 So the fileUrlConnection to the jarFile itself thats is inside the
 JarUrlConnection object.
 on that one we call last modified everytime, But that will not cause the
 file to open. (because it doesn't have to read the file itself)

 And we can't construct JarUrlConnections (for reading the jar entries)
 with
 the same file url connection because there is
 no way to initialize the jar url connection directly with the file url
 connection so they all would use the same.

 johan



 On 2/2/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Would it be possible and useful to cache the URL connection? Does it
  have a time out and/ or does it use an exclusive lock?
 
  Eelco
 
  On 2/1/07, Johan Compagner [EMAIL PROTECTED]  wrote:
   that is what you would think... But why generates a modification
 check
 one
   file handle for every check in the file?
  
   because UrlConnection.connect() has again a JarUrlConnection
 internally
 that
   makes a new connection to that jar file
   and UrlConnection does have a connect() but not a disconnect() so you
 can't
   clear it.
  
   johan
  
  
  
   On 2/2/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:
Yeah, but that would be always one fd for a jar, no matter how many
files in it that have to be read, right?
   
Eelco
   
   
On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
 yes the modification checker.
 But we do need to really load the resource out of the jar file
 once.
 So
   that
 file handle will be used.

 johan



 On 2/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Wasn't it optimized now so that it only hits jars once and only
 hits
  per resource where normal files are involved?
 
  Eelco
 
  On 2/1/07, Johan Compagner  [EMAIL PROTECTED]  wrote:
   one per resource will i think not really change.
  
  
   johan
  
  
   On 2/1/07, beboris  [EMAIL PROTECTED]  wrote:
   
We will, when we are on production. Now that we are are
 still
 in
   alpha
 we
prefer development (hey, we wrote our first line of
 wicket
 code
   5-6
   weeks
ago!)
   
Also, even in deployment mode 'lsof' still shows us a lot
 of
 open
 files
   (one
per resource) if we don't unpack resources from the .jar .
 It
 may
   be
   smaller
number than in development mode, but still... I imagine
 your
 workaround
would close those unnecessarily open files.
   
If you can't backport it, please, tell me where it is in
 SVN.
   We'll
 hack
it in oursleves for now...
   
Bob
   
   
Johan Compagner wrote:

 can't you run in deployment mode instead of development
 mode?
 then that shouldn't happen.

 I can see if we can backport it.

 johan


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


 We have found a pretty weird situation with too many
 open
   files
 error
 on
 our alpha-testing site. Further analysis showed that on
 each
   page
   refresh
 the following resources get repeatedly obtained from the
   wicket's
 .jar
 and
 add to the number of open files:
'wicket/ajax/wicket-ajax.js'

  

  
 'wicket/extensions/ajax/markup/html/modal/res/modal.css'

  
   'wicket/extensions/ajax/markup/html/modal/res/modal.js'

 'wicket/extensions/markup/html/tree/res/tree.css'

 'wicket/extensions/markup/html/tree/res/tree.js'

 Eventually (due to garbage 

Re: [Wicket-user] Form Post Issues in IE, not Mozilla

2007-02-01 Thread Igor Vaynberg

strange indeed. what is your wicket filter/servlet mapping? what does the
generated form markup look like?

-igor


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



I'm facing a very strange issue which may be Wicket-related or may not.

It seems that for any form posts in our application, whether Ajax or
otherwise, when the request arrives at the server there is no form data
included. The request.postData member is null.

This happens only in IE. Form posts work fine in Mozilla.

I look at the HTML and it all looks fine. Basic form, method post, action
is
a wicket url.

I have put breakpoints in my servlet filter before it even gets to wicket
and the form data is already missing, so it doesn't seem to be a problem
with Wicket reading the request. But it is very odd that it works fine in
Mozilla and not IE.

Since I've never encountered this before, I thought maybe it had something
to do with the way Wicket generates forms or something.

Long shot, I know, but thought I'd post just in case someone else has seen
similar behavior and knows the silver bullet.

Has anyone seen anything like this?

-Jason
--
View this message in context:
http://www.nabble.com/Form-Post-Issues-in-IE%2C-not-Mozilla-tf3158363.html#a8759743
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] Ajax components failing within DataView

2007-02-01 Thread Igor Vaynberg

can you reproduce in quickstart please?

-igor


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



I have a DataView.

Within this DataView I have multiple items.

Each item includes, among other things:
   - a markup container more that starts out visible=false
   - an ajax link show more, which toggles the visibility of the markup
container (this is an AjaxFallbackLink)

In addition, the dataview itself contains an AjaxPagingNavigator, which
I've
subclassed to provide some additional formatting but otherwise is the
basic
wicket version.

The ajax show more link works great. Hides/shows the more info
container
for each item without a problem.

But once I use any of the ajax paging links, which re-render the DataView
only, the ajax more info links no longer work. Specifically, clicking on
the more info link results in a full page form submit (instead of a
behind-the-scenes ajax submit), as though there was no ajax behavior on
them. Once it reloads the whole page, the more info ajax links work
again.
But any use of the paging links renders them useless oncemore.

My only thought is that maybe somehow the AjaxFallbackLink for more info
is getting confused, and not rendering the ajax code necessary after the
paging controls re-render the data view.

Any ideas what might be going on?

-Jason
--
View this message in context:
http://www.nabble.com/Ajax-components-failing-within-DataView-tf3158418.html#a8759860
Sent from the Wicket - User mailing list archive at Nabble.com.


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

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


Re: [Wicket-user] Fighting Too many open files problem related to wicket resource files

2007-02-01 Thread Igor Vaynberg

the os should be able to handle at least a few thousand open file handles.
furthermore you can configure it to have more if you need to. only one
handle should be open per resource (no way to avoid that) in a jar, so a
spike of user activity shouldnt affect this at all as resources cache
globally.

but yes, unpacking should eliminate these problems. i wish there was an
option in tomcat to unpack the jars on deployment, it can already do this
for the war.

-igor

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



It's hard for me to say, what the right way to fix this situation is. The
number of open files (that look to the OS as wicket .jar files) will go up
significantly and then go down (down - probably due to the garbage
collection). It is during those spikes caused by many users hitting wicket
pages around the same time that we got too many open files error. It
almost looks like the only way to really eliminate those unnecessary open
files to numerous Wicket resources (and to guarantee too many open files
will never hit us) is to unpack those resources from the wicket .jar-s and
put them into WEB-INF/classes directory instead. Once we did it, we didn't
see all those dozens (and even hundreds) open files ever again...

Bob.


Eelco Hillenius wrote:

 Too bad,

 Eelco


 On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
 why would you cache? and which one? the url connection to an entry in a
 jar
 file (thats the JarUrlConnection)
 or (i guess) the FileUrlConnection (to the jar file itself)

 both don't make much sense to cache
  the first one we don't need to cache we only need to use it once by
 really
 loading the resource
 and i guess when it is finalized it is cleaned up.
 We already don't use it anymore for the last modified. Because there we
 use
 only the second one
 So the fileUrlConnection to the jarFile itself thats is inside the
 JarUrlConnection object.
 on that one we call last modified everytime, But that will not cause
the
 file to open. (because it doesn't have to read the file itself)

 And we can't construct JarUrlConnections (for reading the jar entries)
 with
 the same file url connection because there is
 no way to initialize the jar url connection directly with the file url
 connection so they all would use the same.

 johan



 On 2/2/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Would it be possible and useful to cache the URL connection? Does it
  have a time out and/ or does it use an exclusive lock?
 
  Eelco
 
  On 2/1/07, Johan Compagner [EMAIL PROTECTED]  wrote:
   that is what you would think... But why generates a modification
 check
 one
   file handle for every check in the file?
  
   because UrlConnection.connect() has again a JarUrlConnection
 internally
 that
   makes a new connection to that jar file
   and UrlConnection does have a connect() but not a disconnect() so
you
 can't
   clear it.
  
   johan
  
  
  
   On 2/2/07, Eelco Hillenius  [EMAIL PROTECTED] wrote:
Yeah, but that would be always one fd for a jar, no matter how
many
files in it that have to be read, right?
   
Eelco
   
   
On 2/1/07, Johan Compagner [EMAIL PROTECTED] wrote:
 yes the modification checker.
 But we do need to really load the resource out of the jar file
 once.
 So
   that
 file handle will be used.

 johan



 On 2/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
 
  Wasn't it optimized now so that it only hits jars once and
only
 hits
  per resource where normal files are involved?
 
  Eelco
 
  On 2/1/07, Johan Compagner  [EMAIL PROTECTED]  wrote:
   one per resource will i think not really change.
  
  
   johan
  
  
   On 2/1/07, beboris  [EMAIL PROTECTED]  wrote:
   
We will, when we are on production. Now that we are are
 still
 in
   alpha
 we
prefer development (hey, we wrote our first line of
 wicket
 code
   5-6
   weeks
ago!)
   
Also, even in deployment mode 'lsof' still shows us a lot
 of
 open
 files
   (one
per resource) if we don't unpack resources from the .jar
.
 It
 may
   be
   smaller
number than in development mode, but still... I imagine
 your
 workaround
would close those unnecessarily open files.
   
If you can't backport it, please, tell me where it is in
 SVN.
   We'll
 hack
it in oursleves for now...
   
Bob
   
   
Johan Compagner wrote:

 can't you run in deployment mode instead of development
 mode?
 then that shouldn't happen.

 I can see if we can backport it.

 johan


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


 We have found a pretty weird situation with too many
 open
   files
 error
 on
 our alpha-testing site. Further analysis showed that
on
 each
   page
   refresh

[Wicket-user] setResizable(false) for ModalWindow doesn't work

2007-02-01 Thread beboris

We have the following code that attempts to create a modal window of certain
size and make it non-resizable:

public class MyModalPage extends WebPage {
public MyModalPage( final WebPage parentPage, ModalWindow modalWindow) {
modalWindow.setVersioned(false);
modalWindow.setInitialWidth(400);
modalWindow.setInitialHeight(280);
modalWindow.setMinimalWidth(400);
modalWindow.setMinimalHeight(280);
modalWindow.setResizable(false);
...
}
}

public class ParentPage extends WebPage {
...
private void addModalDialog() {
final ModalWindow modal;
add(modal = new ModalWindow(MyModalWindow));
modal.setVersioned(false);
modal.setPageCreator(new ModalWindow.PageCreator() {
  public Page createPage() {
  Page result = new MyModalPage(ParentPage.this,modal);
  return result;
  }
}
...
}
...
}

The modal window can be brought up upon a button click in the parent page.
Unfortunately, when the modal window is displayed for the first time, it can
be resized, despite modalWindow.setResizable(false) call. For subsequent
button clicks it becomes non-resizable. Is there any way to make it
non-resizable from the get go or is it a bug in the ModalWindow code?

Bob.

-- 
View this message in context: 
http://www.nabble.com/setResizable%28false%29-for-ModalWindow-doesn%27t-work-tf3158740.html#a8760937
Sent from the Wicket - User mailing list archive at Nabble.com.


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


[Wicket-user] Strategy for many to one component relationships in 1.2.x

2007-02-01 Thread Ryan
I am working on creating an inline login link that when clicked uses
javascript to present a previously hidden login form (if javascript is
disabled it will go to a login page). There will be several login
links on a single page so I would like to render the login form once
and have each link refer to the same form by id.

What is a good strategy for only rendering the login form panel once
but allow links that live at many places in the render hierarchy to
refer to it? It seems like the main issue to solve is that at
construction time the hierarchy is not known so the link components
can not refer to its page and obtain a reference to the login panel.
Is there a clean way to design this?

Thanks!

Ryan

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


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-01 Thread beboris

Is it possible that your session expired comes from the second host because
it knows nothing about your session on the first host? If that's the case
you'd need to use some distributed session mechanism. Just a guess...


Carfield Yim-2 wrote:
 
 By the way, I just deploy the application of another host to my
 localhost and test, it work ok. Does anyone know the reason of this
 happening?
 
 On 1/26/07, Carfield Yim [EMAIL PROTECTED] wrote:
 On 1/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
  Is that a wicket form? Is it a completely different application? How it
  is related to modal window?
 
 Yes, it is wicket form at completely difference application
 (difference host). One application call that page through ModalWindow
 and RedirectPage, the code is


 final ModalWindow modal = new ModalWindow(ajaxpanel);
 modal.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
 modal.setPageCreator(new PageCreator() {
 private static final long serialVersionUID = 1L;
 public Page createPage() {
 return  new
 RedirectPage(http://host2/app/tickdatasearch;);
 }
 });
 add(modal);
 add(new AjaxFallbackLink(tickdatasearch) {
 private static final long serialVersionUID = 1L;
 public void onClick(AjaxRequestTarget target) {
 modal.show(target);
 }
 });

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

-- 
View this message in context: 
http://www.nabble.com/-Wicket-user--Question-about-using-RedirectPage-in-a-modalwindow-tf3121251.html#a8761067
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: [Wicket-user] Strategy for many to one component relationships in 1.2.x

2007-02-01 Thread Igor Vaynberg

class mypage extends webpage {
  public mypage() {
 final Panel loginpanel=loginpanel=new LoginPanel(...);
 add(loginpanel);

 add(new LoginLink(..., loginpanel));
 add(new LoginLink(..., loginpanel));
  }
}

-igor




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


I am working on creating an inline login link that when clicked uses
javascript to present a previously hidden login form (if javascript is
disabled it will go to a login page). There will be several login
links on a single page so I would like to render the login form once
and have each link refer to the same form by id.

What is a good strategy for only rendering the login form panel once
but allow links that live at many places in the render hierarchy to
refer to it? It seems like the main issue to solve is that at
construction time the hierarchy is not known so the link components
can not refer to its page and obtain a reference to the login panel.
Is there a clean way to design this?

Thanks!

Ryan

-
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


Re: [Wicket-user] Strategy for many to one component relationships in 1.2.x

2007-02-01 Thread Ryan
You don't get off that easy. =)

What if login link parent is not the same parent as the login panel...
for instance like 5 levels deep where passing it through all the
constructors is highly undesirable.

Ryan

On 2/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 class mypage extends webpage {
public mypage() {
   final Panel loginpanel=loginpanel=new LoginPanel(...);
   add(loginpanel);

   add(new LoginLink(..., loginpanel));
   add(new LoginLink(..., loginpanel));
}
 }

 -igor





 On 2/1/07, Ryan [EMAIL PROTECTED] wrote:
 
  I am working on creating an inline login link that when clicked uses
  javascript to present a previously hidden login form (if javascript is
  disabled it will go to a login page). There will be several login
  links on a single page so I would like to render the login form once
  and have each link refer to the same form by id.
 
  What is a good strategy for only rendering the login form panel once
  but allow links that live at many places in the render hierarchy to
  refer to it? It seems like the main issue to solve is that at
  construction time the hierarchy is not known so the link components
  can not refer to its page and obtain a reference to the login panel.
  Is there a clean way to design this?
 
  Thanks!
 
  Ryan
 
 
 -
  Using Tomcat but need to do more? Need to support web services, security?
  Get stuff done quickly with pre-integrated technology to make your job
 easier.
  Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


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

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




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


Re: [Wicket-user] Question about using RedirectPage in a modalwindow

2007-02-01 Thread Carfield Yim
 you'd need to use some distributed session mechanism. Just a guess...

Might be, Can I just include the sessionid as hidden field / url to
fix that? I probably cannot have too complicate distributed session
mechanism

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


Re: [Wicket-user] Strategy for many to one component relationships in 1.2.x

2007-02-01 Thread Igor Vaynberg

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


You don't get off that easy. =)

What if login link parent is not the same parent as the login panel...
for instance like 5 levels deep where passing it through all the
constructors is highly undesirable.




you have to pass a reference somehow. if you do not want to pass it down the
constructor chain then you cannot use it inside component constructor - so
you have to delay it until render time.

interface ILoginPanelContainer { LoginPanel getLoginPanel() }

class mypage extends webpage implements iloginpanelcontainer {
 private final LoginPanel panel;

 public mypage() { panel=new }

 LoginPanel getLoginPanel() { return panel; }
}

class loginlink extends link {

  LoginPanel findLoginPanel() {

 iloginpanelprovider provider=null;
 Component ancestor=getParent();
 while (ancestor!=null) { if (ancestor isntanceof
iloginpanelprovider) { provider=ancestor; break; } }
 return provider.getloginpanel();
  }

  onclick() {
panel=findloginpanel();
   //fooo
  }
}

-igor


Ryan


On 2/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote:
 class mypage extends webpage {
public mypage() {
   final Panel loginpanel=loginpanel=new LoginPanel(...);
   add(loginpanel);

   add(new LoginLink(..., loginpanel));
   add(new LoginLink(..., loginpanel));
}
 }

 -igor





 On 2/1/07, Ryan [EMAIL PROTECTED] wrote:
 
  I am working on creating an inline login link that when clicked uses
  javascript to present a previously hidden login form (if javascript is
  disabled it will go to a login page). There will be several login
  links on a single page so I would like to render the login form once
  and have each link refer to the same form by id.
 
  What is a good strategy for only rendering the login form panel once
  but allow links that live at many places in the render hierarchy to
  refer to it? It seems like the main issue to solve is that at
  construction time the hierarchy is not known so the link components
  can not refer to its page and obtain a reference to the login panel.
  Is there a clean way to design this?
 
  Thanks!
 
  Ryan
 
 

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



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

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




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

-
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