[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

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

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

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

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

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

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

[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

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?

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.

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

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

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

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

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.

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

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

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

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:

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

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

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

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'

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

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

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.

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

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

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,

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,

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

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,

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.

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

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.

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

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.

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

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

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

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

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*

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.

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,

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

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

[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

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

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

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

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

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

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

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

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

[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

[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

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

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

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,

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

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

[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);

[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

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

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

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 {

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

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