Re: StatelessForm data becomes PageParameters and as result is doubling

2008-09-16 Thread Michael Sparer
without looking at code - can't you circumvent the problem by using POST instead of GET? kan-4 wrote: > > If I have stateless form on a page, and form is submitted, page is > constructed again with all form data as parameters. Ok, it's not great > but it's impossible to avoid. > But, if the for

Re: terracotta integration

2008-09-16 Thread Michael Sparer
strange, I successfully downloaded the path some seconds ago ... https://issues.apache.org/jira/secure/attachment/12386708/TerracottaPageStore.java.patch A2M wrote: > > thanks lot richard. > I did whatever you said but I can't download the patch from > https://issues.apache.org/jira/browse/WICK

Re: Need to Achieve this functionality

2008-09-16 Thread Piller Sébastien
Look at http://www.wicket-library.com/wicket-examples/ajax/tree/simple newbie_to_wicket a écrit : http://www.nabble.com/file/p19526113/test.jpg Hi, I'm using Wicket 1.3.4 , I've to achieve this functionality what I presented in the above image , if you know this how to achieve, you suggest

Need to Achieve this functionality

2008-09-16 Thread newbie_to_wicket
http://www.nabble.com/file/p19526113/test.jpg Hi, I'm using Wicket 1.3.4 , I've to achieve this functionality what I presented in the above image , if you know this how to achieve, you suggest me , or send me sample code.. Thanks Johni -- View this message in context: http://www.nabble.co

Re: terracotta integration

2008-09-16 Thread Afsaneh Abouie
thanks lot richard. I did whatever you said but I can't download the patch from https://issues.apache.org/jira/browse/WICKET-1738 is there any way ? Regards, Afsaneh

Re: ModalWindow tabindex bug

2008-09-16 Thread Scott Swank
Brilliant. Thank you Timo, I'll give it a try in the morning. Scott On Tue, Sep 16, 2008 at 7:20 PM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > On Tue, 16 Sep 2008, Scott Swank wrote: >> Wicket 1.3.4 >> >> I have noticed that in ie 6 & 7 the tab order no longer corresponds to >> the tabindex o

Re: ModalWindow tabindex bug

2008-09-16 Thread Timo Rantalaiho
On Tue, 16 Sep 2008, Scott Swank wrote: > Wicket 1.3.4 > > I have noticed that in ie 6 & 7 the tab order no longer corresponds to > the tabindex order for form fields after a ModalWindow is opened and > then closed. It is not the case that the tabindex attributes have > been modified via dhtml, b

Re: Having trouble with ajax link

2008-09-16 Thread walnutmon
Thanks a lot Igor. A related question is how do I test a situation like this? The problem I'm running into is that I have them represented by the same model object, so when I want to test the only way I can think to "load" the text box is to retrive the object and set the ModelObjectValue, howev

ModalWindow tabindex bug

2008-09-16 Thread Scott Swank
Wicket 1.3.4 I have noticed that in ie 6 & 7 the tab order no longer corresponds to the tabindex order for form fields after a ModalWindow is opened and then closed. It is not the case that the tabindex attributes have been modified via dhtml, but rather the tabindex is simply no longer obeyed.

Re: Having trouble with ajax link

2008-09-16 Thread Igor Vaynberg
wicket allows it -igor On Tue, Sep 16, 2008 at 5:21 PM, walnutmon <[EMAIL PROTECTED]> wrote: > > can you nest forms in HTML? Seems like that could cause issues... If wicket > allows it that is a great solution! > > > igor.vaynberg wrote: >> >> you can put the textarea and the preview link into th

Re: Having trouble with ajax link

2008-09-16 Thread walnutmon
can you nest forms in HTML? Seems like that could cause issues... If wicket allows it that is a great solution! igor.vaynberg wrote: > > you can put the textarea and the preview link into their own form, > that way only the inner form is submitted when you click the preview > link. > > -igor >

Re: Having trouble with ajax link

2008-09-16 Thread walnutmon
The button will have the same problem because it submits the form. I need info from the text box without triggering the text areas form submission. Matej Knopp-2 wrote: > > Try using AjaxButton. > > -Matej > > On Tue, Sep 16, 2008 at 10:57 PM, walnutmon > <[EMAIL PROTECTED]>wrote: > >> >> Al

Re: Mysterious classnotfoundexceptions

2008-09-16 Thread kan
2008/9/12 Ritesh Trivedi <[EMAIL PROTECTED]>: > java.lang.NoClassDefFoundError: I had the exception (not ClassNotFoundException) on Windows if class name cAsE doesn't match file name. -- WBR, kan. - To unsubscribe, e-mail: [EMA

Re: Scalability & PageMaps

2008-09-16 Thread Matej Knopp
Hash will only be there for the folder name. e.g. int hash = computeHash(sessionId) % 100; String folder = "" + hash + "/" + sessionId; this way you will have 100 top level folders in which you'll have session folders. This was it's much less likely to have 32k session in one folder. Or you can a

Re: Cyrillic characters

2008-09-16 Thread kan
2008/9/16 akunosh <[EMAIL PROTECTED]>: > i'm getting questions marks! I don't think it's wicket problem. Just trace character data encodings between database and web-server. Most probably you missed character set somewhere, as I heard Tomcat misconfiguration is very often the issue. -- WBR, kan

StatelessForm data becomes PageParameters and as result is doubling

2008-09-16 Thread kan
If I have stateless form on a page, and form is submitted, page is constructed again with all form data as parameters. Ok, it's not great but it's impossible to avoid. But, if the form has validation errors and the same page is rendered again, it has all that parameters in and next request has the

Re: Scalability & PageMaps

2008-09-16 Thread Igor Vaynberg
you can prefix the file with the session name... -igor On Tue, Sep 16, 2008 at 2:17 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > A hash doesnt have to be unique for the same string :) > So when will the first be that has session leakage because of that > > On 9/16/08, Matej Knopp <[EMAIL PROT

Re: Scalability & PageMaps

2008-09-16 Thread Johan Compagner
A hash doesnt have to be unique for the same string :) So when will the first be that has session leakage because of that On 9/16/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > Another approach would be just counting hash from session id and mod it. > > -Matej > > On Tue, Sep 16, 2008 at 6:00 PM, Uw

Re: Use wicket page templates not for webapplication

2008-09-16 Thread kan
2008/8/27 Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>: > I did something similar once, but realized somewhere in the process that it > werent exactly the same content writing a mail as the web page. I used the > wicket text templates heavy instead. Ok, I've made it. I've created "clas

Re: Having trouble with ajax link

2008-09-16 Thread Igor Vaynberg
you can put the textarea and the preview link into their own form, that way only the inner form is submitted when you click the preview link. -igor On Tue, Sep 16, 2008 at 1:57 PM, walnutmon <[EMAIL PROTECTED]> wrote: > > All, > > This seems like a simple issue, but I have been stumped for hours.

Re: Having trouble with ajax link

2008-09-16 Thread Matej Knopp
Try using AjaxButton. -Matej On Tue, Sep 16, 2008 at 10:57 PM, walnutmon <[EMAIL PROTECTED]>wrote: > > All, > > This seems like a simple issue, but I have been stumped for hours... > > Basically I have a form that includes a text area where you can enter HTML, > to the right of this text area is

Having trouble with ajax link

2008-09-16 Thread walnutmon
All, This seems like a simple issue, but I have been stumped for hours... Basically I have a form that includes a text area where you can enter HTML, to the right of this text area is a "preview" area... I have an AjaxFallbackLink labeled "preview" which should take the info in the text area an

Re: Scalability & PageMaps

2008-09-16 Thread Uwe Schäfer
Matej Knopp schrieb: Another approach would be just counting hash from session id and mod it. that´s much better for sure. i´ll do it asap. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: can requestcycle or response be null in websession constructor?

2008-09-16 Thread lars vonk
Hi Igor, Thanks for replying. I already added null checks and additional logging to see which of the two (RequestCycle or Response) is actually null. It will take some time to get it in into production though so if you have any ideas in the meanwhile I'll be glad to hear them :-). Lars On Tue, S

Re: DropDownChoice and lazy loaded choices

2008-09-16 Thread Cédric Thiébault
Ok thanks all... I will read again about Hibernate sessions :-) Cedric On Tue, Sep 16, 2008 at 4:26 PM, Igor Vaynberg <[EMAIL PROTECTED]>wrote: > +1 > > -igor > > On Tue, Sep 16, 2008 at 1:24 PM, James Carman > <[EMAIL PROTECTED]> wrote: > > +1, OSIV works for me just fine, too. You must be do

Re: DropDownChoice and lazy loaded choices

2008-09-16 Thread Igor Vaynberg
+1 -igor On Tue, Sep 16, 2008 at 1:24 PM, James Carman <[EMAIL PROTECTED]> wrote: > +1, OSIV works for me just fine, too. You must be doing something > weird. The OSIV doesn't commit transactions by default. So, it > shouldn't be doing anything weird. > > On Tue, Sep 16, 2008 at 1:07 PM, Micha

Re: DropDownChoice and lazy loaded choices

2008-09-16 Thread James Carman
+1, OSIV works for me just fine, too. You must be doing something weird. The OSIV doesn't commit transactions by default. So, it shouldn't be doing anything weird. On Tue, Sep 16, 2008 at 1:07 PM, Michael Sparer <[EMAIL PROTECTED]> wrote: > > Before dropping OpenSessionInviewFilter I'd suggest

bookmarkable URL and sortable data table

2008-09-16 Thread Monica D'Arcy
Hi, I have an application that uses primarily Bookmarkable pages. On the main Search page there is also a DefaultDataTable that uses a SortableDataProvider. When clicking on sortable column, the URL becomes "wicketized". Is there a way to easily override this behavior so that the URLs

Re: AjaxLink setResponsePage > Channel busy - postponing

2008-09-16 Thread Louis Letourneau
Issue created WICKET-1838 Thanks Louis Matej Knopp wrote: Hi, this is probably a bug in wicket where the queue is not resumed after redirect. Normally this is not needed, but since your redirect is an attachement the page stays active. Can you please open a jira issue for this? It shouldn't be

Re: DropDownChoice and lazy loaded choices

2008-09-16 Thread Igor Vaynberg
see https://issues.apache.org/jira/browse/WICKET-663 this will not happen until 1.5 though, for now you can override convertChoiceIdToChoice(String) and implement your own lookup there. -igor On Mon, Sep 15, 2008 at 2:04 PM, Cédric Thiébault <[EMAIL PROTECTED]> wrote: > My DropDownChoice contain

Re: Scalability & PageMaps

2008-09-16 Thread Matej Knopp
Another approach would be just counting hash from session id and mod it. -Matej On Tue, Sep 16, 2008 at 6:00 PM, Uwe Schäfer <[EMAIL PROTECTED]>wrote: > Matej Knopp schrieb: > >> I had a quick glance at the patch. The folder hierarchy it creates seems >> to >> be quite deep, i'm not sure if that

Re: Scalability & PageMaps

2008-09-16 Thread Uwe Schäfer
Matej Knopp schrieb: I had a quick glance at the patch. The folder hierarchy it creates seems to be quite deep, i'm not sure if that is necessary. Perhaps 3-4 levels would be enough? Also I'm afraid that this approach would leave lot of empty folders. well, that depends on the number of differe

Re: DropDownChoice and lazy loaded choices

2008-09-16 Thread Michael Sparer
Before dropping OpenSessionInviewFilter I'd suggest to have a more thorough look at how hibernate works. e.g. have a look at the different cascade styles hibernate offers and also at transaction management, then it's easy to know why, and when, hibernate "commits" without explicitly calling save .

Re: AjaxLink setResponsePage > Channel busy - postponing

2008-09-16 Thread Matej Knopp
Hi, this is probably a bug in wicket where the queue is not resumed after redirect. Normally this is not needed, but since your redirect is an attachement the page stays active. Can you please open a jira issue for this? It shouldn't be difficult to fix. -Matej On Tue, Sep 16, 2008 at 6:27 PM, L

Re: AjaxLink setResponsePage > Channel busy - postponing

2008-09-16 Thread Louis Letourneau
The redirect works (firefox pops up the filedownload window) the problem is since I'm not actually redirected to a page (I get a file instead) I stay on the same page with the links but the links do not work anymore. If I click on them I get 'Channel busy - postponing'. I'm using wicket 1.3.

Re: AjaxLink setResponsePage > Channel busy - postponing

2008-09-16 Thread Matej Knopp
For some reason the redirect didn't happen. What wicket version are you using? -Matej On Tue, Sep 16, 2008 at 5:43 PM, Louis Letourneau < [EMAIL PROTECTED]> wrote: > When I click on an AjaxLink that does a setResponsePage towards a > ResourceStreamRequestTarget, afetr the download, the links on

Re: DropDownChoice and lazy loaded choices

2008-09-16 Thread Cédric Thiébault
I had lots of problems with a Spring MVC webapp that was using OpenSessionInViewFilter : beans were associated directly in DB when they were added to a collection (like the current Foo/Bar case) even if I didn't commit explicitly. Without the session opened, I can prepare all my entities and just s

AjaxLink setResponsePage > Channel busy - postponing

2008-09-16 Thread Louis Letourneau
When I click on an AjaxLink that does a setResponsePage towards a ResourceStreamRequestTarget, afetr the download, the links on the page become non-clickable. In the Ajax debug window I get a 'Channel busy - postponing'. Details: I have a page with many AjaxLinks. The links check whether some

DynamicImageResource and urls

2008-09-16 Thread Pointbreak
I am trying to attach a number of on the fly created images to a page. The images are created by a subclass of DynamicImageResource. They need to be referenced from html code that is not part of a page template (i.e. I do not use an img tag in the page template with an webcomponent that references

1.3.5 The London Branch

2008-09-16 Thread jWeekend
Igor suggested that our London Wicket delegates would probably be quite keen to see 1.3.5 released. What do you think? If you are interested in meeting up somewhere in London that has a whiteboard (probably at http://maps.google.co.uk/maps?f=q&hl=en&geocode=&q=nw6+4pw&ie=UTF8&ll=51.539743,-0.194

Re: Add a * (star) to a mandatory field

2008-09-16 Thread Daan van Etten
Or you can check my solution here: http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket Example form: http://stuq.nl/media/image/form-usability-tutorial-invalid.png (You can easily change the look and feel, this is just an example) Regards, Daan On 16 sep 2008, at 16:54,

Re: Add a * (star) to a mandatory field

2008-09-16 Thread Ryan Gravener
There is always shinyforms. http://code.google.com/p/elephas/source/browse/#svn/trunk/src/main/java/org/elephas/webapp/frontend/component/common/form On Tue, Sep 16, 2008 at 10:43 AM, Igor Vaynberg <[EMAIL PROTECTED]>wrote: > we use componentborder to do this, works like a charm. still it is > i

Re: terracotta integration

2008-09-16 Thread Igor Vaynberg
wasnt kidding. im sure the people you gather would like to see 1.3.5 out and we could use some help. -igor On Tue, Sep 16, 2008 at 12:33 AM, jWeekend <[EMAIL PROTECTED]> wrote: > > Igor, > > I don't know if you're joking or not but we have many talented developers at > our events that I reckon wo

Re: can requestcycle or response be null in websession constructor?

2008-09-16 Thread Igor Vaynberg
not really sure when either would be null, seems strange. why dont you add null checks and if one of them is null dump the stacktrace into your log. -igor On Tue, Sep 16, 2008 at 1:47 AM, lars vonk <[EMAIL PROTECTED]> wrote: > Hi all, > > In the constructor of a custom websession we write a coock

Re: Add a * (star) to a mandatory field

2008-09-16 Thread Igor Vaynberg
we use componentborder to do this, works like a charm. still it is interesting that the * is output before, are you sure its not your css, can you check the generated source? -igor On Tue, Sep 16, 2008 at 6:23 AM, James Perry <[EMAIL PROTECTED]> wrote: > I too recently had a use case where the cu

Re: Scalability & PageMaps

2008-09-16 Thread Matej Knopp
I had a quick glance at the patch. The folder hierarchy it creates seems to be quite deep, i'm not sure if that is necessary. Perhaps 3-4 levels would be enough? Also I'm afraid that this approach would leave lot of empty folders. -Matej On Tue, Sep 16, 2008 at 3:55 PM, Uwe Schäfer <[EMAIL PROTEC

Re: Wicket fails to set seesion and request attributes for external webpages

2008-09-16 Thread Benny Weingarten
Thanks Igor. I did not try your solution, but instead I decided to make the "External" page a wicket page inside my application. Benny. igor.vaynberg wrote: > > it is quiet obvious that if you issue a redirect then a new request is > created from the client to the server, and thus new reques

Re: check if FeedbackPanel has error messages

2008-09-16 Thread newbieabc
Thank you both. esp Igor. I tried putting some code clearing commands (clearInput()) into the onError() method and saw my textfields finally do something. I still have to find out what functions can be used to only clear the output fields and not all the form fields. THANK YOU. igor.vaynberg wr

Re: wicket 1.4 RadioChoice IConverter query

2008-09-16 Thread bruno . borges
This might have something to do with this issue: https://issues.apache.org/jira/browse/WICKET-1577 Regards, Bruno

Re: DropDownChoice and lazy loaded choices

2008-09-16 Thread James Carman
What problems does it cause? On Tue, Sep 16, 2008 at 9:14 AM, Cédric Thiébault <[EMAIL PROTECTED]> wrote: > Thanks Michael. > > But I don't use the OpenSessionInviewFilter and I don't want to use it. > It creates more problems than it solves in my edit pages. > > The LoadableDetachableModel will l

Re: Scalability & PageMaps

2008-09-16 Thread Uwe Schäfer
Uwe Schäfer schrieb: can you create an enhancement jira issue for this? filed as WICKET-1837, patch against 1.4m3 included. thx uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Re: "Attempt to set model object on null model of component" when submitting a form

2008-09-16 Thread Azzeddine Daddah
Thanks Stefan :) On Tue, Sep 16, 2008 at 3:04 PM, Stefan Lindner <[EMAIL PROTECTED]> wrote: > Your DropDownChoice element has no Model so the submit code does not know > where to store your selection. Add a > > new Model() > > to it's constructor. > > -Ursprüngliche Nachricht- > Von:

Re: Open wicket component collection anywhere?

2008-09-16 Thread pixologe
Cool... just let me know where to find it, when you're done :) I'll try to add some momentum then... jwcarman wrote: > > I'll post my AbstractVelocityPanel code and see if that helps build > any momentum. > > On Mon, Sep 15, 2008 at 2:52 AM, pixologe <[EMAIL PROTECTED]> wrote: >> >> Hehe

Re: Add a * (star) to a mandatory field

2008-09-16 Thread James Perry
I too recently had a use case where the customer wanted a '*' to represent a mandatory field. IMO, using a border is more subtle and tidier then your approach. On Tue, Sep 16, 2008 at 12:40 PM, Eyal Golan <[EMAIL PROTECTED]> wrote: > Hi, > I created this behavior for adding a star BEFORE the compo

Re: DropDownChoice and lazy loaded choices

2008-09-16 Thread Cédric Thiébault
Thanks Michael. But I don't use the OpenSessionInviewFilter and I don't want to use it. It creates more problems than it solves in my edit pages. The LoadableDetachableModel will load the whole list of choices, not just the one that was selected by the user. I will encounter the same error except

AW: "Attempt to set model object on null model of component" when submitting a form

2008-09-16 Thread Stefan Lindner
Your DropDownChoice element has no Model so the submit code does not know where to store your selection. Add a new Model() to it's constructor. -Ursprüngliche Nachricht- Von: Azzeddine Daddah [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. September 2008 15:01 An: users@wicket.a

"Attempt to set model object on null model of component" when submitting a form

2008-09-16 Thread Azzeddine Daddah
Hi, I've the following code: private static final List SEARCH_DOMAINS = Arrays.asList("AA", "BB"); ... private void addSearchForm() { Form searchForm = new Form("searchForm"); searchForm.add(new DropDownChoice("searchDomain", SEARCH_DOMAINS)); searchForm.add(new TextField(

Re: Scalability & PageMaps

2008-09-16 Thread Uwe Schäfer
Matej Knopp schrieb: can you create an enhancement jira issue for this? will do. thx cu uwe -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E [EMAIL PROTECTED] www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas