Validate RefreshingView

2009-09-23 Thread Hakan . Steisjo
Hi, I've got a problem that I hope someone can help me with and point me in the right direction. Is there a way in the validation phase to validate that a refreshingview contain items? My scenario: I've got a page that holds a form, an ajaxsubmitlink and a panel. The panel in turn has some

How to dynamic add links to WebMarkupContainer

2009-09-23 Thread Haulyn R. Jason
Hi, all I have a WebMarkupContainer in my page, and I need to create some links to this WebMarkupContainer.But I do not have markup like a wicket:id= foo/a, because I do not know how many links I need to create, but I do not know how to create links without markup. Can anyone help me? Thanks very

Re: How to dynamic add links to WebMarkupContainer

2009-09-23 Thread Martin Grigorov
El mié, 23-09-2009 a las 17:21 +0800, Haulyn R. Jason escribió: Hi, all I have a WebMarkupContainer in my page, and I need to create some links to this WebMarkupContainer.But I do not have markup like a wicket:id= foo/a, because I do not know how many links I need to create, but I do not know

Re: How to dynamic add links to WebMarkupContainer

2009-09-23 Thread Peter Thomas
On Wed, Sep 23, 2009 at 3:09 PM, Martin Grigorov mcgreg...@e-card.bgwrote: El mié, 23-09-2009 a las 17:21 +0800, Haulyn R. Jason escribió: Hi, all I have a WebMarkupContainer in my page, and I need to create some links to this WebMarkupContainer.But I do not have markup like a wicket:id=

Re: How to dynamic add links to WebMarkupContainer

2009-09-23 Thread Haulyn R. Jason
Hi, Peter, happy to meet you here. Label, Sounds good, but How can I get the html String generated by Link class with onClicked method override? On Wed, Sep 23, 2009 at 5:45 PM, Peter Thomas ptrtho...@gmail.com wrote: On Wed, Sep 23, 2009 at 3:09 PM, Martin Grigorov mcgreg...@e-card.bg wrote:

Best way to handle circular references

2009-09-23 Thread Giovanni Cuccu
Hi all, I'm developing a wicket application and I'm facing a problem. I built a menupanel that shows the menu to access the various aplication pages; since the panel needs to show the pages it contains a list of links that when clicked simply do the the following

Collection of strings in form

2009-09-23 Thread Sam Barrow
What is the best way to handle a collection of strings in a form? DomainObject String property1 String property2 CollectionString property3 I'm thinking either some type of repeater, or a text area that creates an element in the collection for each line (might be easier).

Re: Best way to handle circular references

2009-09-23 Thread Pedro Santos
It looks like you are looking for cohesion. In the class menupanel.java I must reference Page In the class Page.java I must reference MenuPanel menupanel can to be an parameter to PageXXX; PageXXX can to be abstract and have an abstract method : abstract protected Page

Regarding: HybridUrlCodingStrategy and session expired

2009-09-23 Thread Muro Copenhagen
Hi, I hope someone can help me on this issue. I have a payment page and receipt page. The receipt page invalidates the session, so user can't go back. Due to some external configuration i needed to use HybridUrlCodingStrategy to make sure that payment page has a url containing ...Secure. This

Re: Stateless Applications and Wicket

2009-09-23 Thread Erik Post
Interesting point! I'm also wondering if this is somehow feasible... On Wed, Sep 23, 2009 at 1:01 AM, Ricardo Mayerhofer ricardo.ekm.lis...@gmail.com wrote: It would be very nice to see better support for stateless applications in wicket. Some topics that come to my mind right now are: - Ajax,

Re: Best way to handle circular references

2009-09-23 Thread Giovanni Cuccu
Thanks for the response, I try to clarify my point of view. Before using wicket I don't remember that my classes were cross references, I always paid attention that if class A references Class B Class B can't reference Class A (even in imports). After starting wicket development I've

ModalWindow and RedirectRequestTarget

2009-09-23 Thread Timo B. Hübel
Hi, I have a ModalWindow and want to redirect to a download of a shared resource if the user clicks ok (i.e. closes the window). Currently, I am doing the following to achieve this, but Wicket produces a slightly wrong URL in the call to RequestCycle.urlFor(): setWindowClosedCallback(new

Re: Is it the best way to code a Link depending on a condition

2009-09-23 Thread Nicolas Melendez
ok, i understand, thanks, NM On Tue, Sep 22, 2009 at 9:45 PM, Jeremy Thomerson jer...@wickettraining.com wrote: It's the same reason you shouldn't use new Label(id object.getSomeText());. See this example: public MyPage () { Person p = getPersonFromSomewhere(); Label l = new

Form Processing problem on pages with Border - Wicket 1.4.1

2009-09-23 Thread Flavius
I am migrating a project from 1.3.6 to 1.4.1. I've run into a problem and I'm not sure if this is a bug or not. Most of the pages have a border and the border has a DropDownChoice in it (as well as other components). Technically it's in a panel in the border. The Form objects are typically

componment hierarchy changed between rendering and form submission

2009-09-23 Thread Giovanni
I have a form used for performing a search on a database. If I fill the form and then I submit it for the search and wait until the results appear, it works well. The search takes some seconds (5-10 seconds). Instead, if I change some fields, dropdown choices, checkboxes on the form after

Date validation in a form

2009-09-23 Thread Charles Moulliard
I would like to know How I can validate the string date inputted by a user in a textfield of my form ? e.g : The SimpleDateformat to be used to create a java Date is : dd/MM/ So I would like to check that the user has well introduced its date using this format Regards, Charles Moulliard

Re: Collection of strings in form

2009-09-23 Thread Igor Vaynberg
or something like this http://wicketinaction.com/2008/10/building-a-listeditor-form-component/ -igor On Wed, Sep 23, 2009 at 3:32 AM, Sam Barrow s...@sambarrow.com wrote: What is the best way to handle a collection of strings in a form? DomainObject        String property1        String

FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Giambalvo, Christian
Hi all, ich have a component (textfield) with an FXValidationAjaxHandler. If i set this component in pageconstructor to visible(false) then the needed javascript code for validation is not contributed to pageheader. if set to visible(true) all is fine. does anyone had the same problem and if so,

Wicket 1.4.1 and HtmlUnit

2009-09-23 Thread Tomek Sniadach
Hi,after upgrade from wicket 1.4-rc2 to 1.4.1 I have problems with my HtmlUnit tests. It seems to be a problem with form submitting. I'm not sure if this is a wicket problem, but with version 1.4.rc2 it works fine. Here a sample code: HtmlPage page = client.getPage(request); HtmlButton btn =

Maven eclipse plugin

2009-09-23 Thread Anantha Kumaran
hi i am new to eclipse and maven i followed the wicket wiki to create a new wicket project after created the pom i try to create the project using the eclipse plugin (mvn eclipse:eclipse) i got the following error [INFO] Scanning for projects... [INFO]

Re: Maven eclipse plugin

2009-09-23 Thread Dane Laverty
What do you mean after created the pom? If you're following the guide here, http://cwiki.apache.org/WICKET/windows-guide-to-installing-wicket-on-eclipse-with-maven.html, you shouldn't have to create the pom manually. The mvn archetype:create command will do that for you. Dane On Wed, Sep 23,

Re: Wicket 1.4.1 and HtmlUnit

2009-09-23 Thread Igor Vaynberg
your app works fine in a browser, right? so its most likely an htmlunit problem. -igor On Wed, Sep 23, 2009 at 7:31 AM, Tomek Sniadach tomek.sniad...@googlemail.com wrote: Hi,after upgrade from wicket 1.4-rc2 to 1.4.1 I have problems with my HtmlUnit tests. It seems to be a problem with form

Re: Disable Ajax Buttons/Links while a in request progress

2009-09-23 Thread tdelesio
I assume you meant to do this: AjaxLink favLink = new AjaxLink(fav) { @Override protected IAjaxCallDecorator getAjaxCallDecorator() {

Re: August London Wicket Event (just a drink?)

2009-09-23 Thread Ioannis Mavroukakis
Oct 7 is looming and is the page updated? nooo! :-P Y. On 5 Aug 2009, at 20:18, jWeekend wrote: As many of our guests enjoy their hard-won summer holidays, we will hold our next London Wicket Event on October 7th (dates/location/ presentation TBC here soon). In the meantime, for those

Wicket in France

2009-09-23 Thread Pierre Goupil
Hello, Are there any Wicketers out there living in Bordeaux, France? Regards, Pierre -- Sans amis était le grand maître des mondes, Eprouvait manque, ce pour quoi il créa les esprits, Miroirs bienveillants de sa béatitude. Mais au vrai, il ne trouva aucun égal, Du calice du royaume total des

Re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Igor Vaynberg
javascript contributions do not show up for components that are not visible, add it to a visible component instead. -igor On Wed, Sep 23, 2009 at 7:15 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Hi all, ich have a component (textfield) with an FXValidationAjaxHandler.

Re: Disable Ajax Buttons/Links while a in request progress

2009-09-23 Thread Igor Vaynberg
if the clientside is not good enough then use a serverside check http://markmail.org/message/leji5o6dmubffm6q -igor On Wed, Sep 23, 2009 at 8:55 AM, tdelesio tdele...@gmail.com wrote: I assume you meant to do this: AjaxLink favLink = new AjaxLink(fav)                {                    

Re: Date validation in a form

2009-09-23 Thread Igor Vaynberg
see DateTextField in extensions -igor On Wed, Sep 23, 2009 at 7:13 AM, Charles Moulliard cmoulli...@gmail.com wrote: I would like to know How I can validate the string date inputted by a user in a textfield of my form ? e.g : The SimpleDateformat to be used to create a java Date is :

Wicket in Italy

2009-09-23 Thread Giovanni
Hi, are there any Wicketers living in Turin, Italy? Best regards, giovanni Resources are limited, Imagination is unlimited.

Re: Best way to handle circular references

2009-09-23 Thread Igor Vaynberg
what is the actual problem you are having with this other then i dont like it? -igor On Wed, Sep 23, 2009 at 3:21 AM, Giovanni Cuccu giovanni.cu...@cup2000.it wrote: Hi all,        I'm developing a wicket application and I'm facing a problem. I built a menupanel that shows the menu to access

Re: + key as alternative for tab key

2009-09-23 Thread Daniel Toffetti
Boydens Joeri (OZ joeri.boydens at oz.be writes: How would you do this in an elegant and generic way ? Joeri Also, take a look at wicketstuff-input-events Daniel - To unsubscribe, e-mail:

Palette Update Behaviour Problem

2009-09-23 Thread Tim Hughes
I am using a Palette to assign multiple Category objects to a Document object. When I select a Category, the Palette seems to operate correctly on-screen, but I'm having two issues: 1) debugging the code, the selected choice (in the onUpdate below) is ALWAYS the first item in the

AW: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Giambalvo, Christian
Hi, first thanks for reply. Well, it's not possible to add it to a visible component. Let me explain. I have 2 custom panels and depending on the selection in a dropdownchoice the corresponding panel gets visible or hidden. Because one of these panels need to be invisible on page construction

Re: Is it the best way to code a Link depending on a condition

2009-09-23 Thread josephpachod
hi Charles The whole issue is that you don't know how the data (in this case a String) is to be retrieved. Can it be read only once ? Should it be refresh on each request cycle ? On each access to the data ? Does it come from a database ? Wicket's model allows you to go away from all these

Re: Wicket in France

2009-09-23 Thread josephpachod
hi Not in Bordeaux, but France is bigger than just this town no ? ;) But then I admit living place, Alsace, might seem quite far and foreign to you ;) However, you might be interested by this french forum : http://www.developpez.net/forums/f1265/java/developpement-web-java/frameworks/wicket/

Re: Wicket in France

2009-09-23 Thread Pierre Goupil
Cheers, man! Alsace is a bit far for a meeting, I'm afraid. Are you planning to go to any conference? On Wed, Sep 23, 2009 at 11:05 PM, josephpac...@thomas-daily.de wrote: hi Not in Bordeaux, but France is bigger than just this town no ? ;) But then I admit living place, Alsace, might seem

Starting with Wicket, Spring, Maven and JDBC

2009-09-23 Thread Pedro Sena
Hi Guys, I'm new to Wicket with Spring(I never used Spring before, just Seam). I'm using lolite but it comes with JPA instead of JDBC. I would like to know if there is some archetype for the setup that I described in the title. I already checked wicket stuff if no luck. Thanks in advance, --

Re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Igor Vaynberg
put the two panels into a parent container that is always visible. -igor On Wed, Sep 23, 2009 at 1:37 PM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Hi, first thanks for reply. Well, it's not possible to add it to a visible component. Let me explain. I have 2 custom

Re: Starting with Wicket, Spring, Maven and JDBC

2009-09-23 Thread Erik Post
Well, besides iolite, you could take a look at wicket-phonebook and wicketopia. They're not JDBC but they both come with Spring preconfigured. The phonebook has a couple of example DAO's and iBatis (among others) set up. You could take those as a starting point and 'add' JDBC. Cheers, Erik On

AW: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Giambalvo, Christian
i'm sorry, but doesn't work. i attached a simple project. i added the needed components to a webmarkupcontainer. instead of panels this time i used requiredtextfields to keep it as simple as possible. one textfield is visible the other invisible. here is the generated markup: ?xml version=1.0

Re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Igor Vaynberg
i meant add the javascript to a container that is visible. components that are not visible do not render their javascript, it wouldnt make any sense for them to do otherwise. -igor On Wed, Sep 23, 2009 at 5:16 PM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: i'm sorry, but

AW: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Giambalvo, Christian
well, it makes no sense to add the javascript to another container. how should i validate the textfields if the javascript points to a different component? or could you give me an example? -Ursprüngliche Nachricht- Von: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Gesendet: Do

AW: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Giambalvo, Christian
maybe i'm to stupid to understand what you mean. so please provide an example. thx -Ursprüngliche Nachricht- Von: Giambalvo, Christian [mailto:christian.giamba...@excelsisnet.com] Gesendet: Do 24.09.2009 02:45 An: users@wicket.apache.org Betreff: AW: FXValidationAjaxHandler - Javascript

Re: August London Wicket Event (just a drink?)

2009-09-23 Thread jWeekend
Ioannis, It's good to hear from you - I hope you and your family are well! I have been talking to 2 guest presenters we are flying in from Europe and to potential hosts of our next event just this week; I will make an announcement as soon as everything is confirmed - the next date will probably

maven/quickstart question

2009-09-23 Thread Chris Colman
I've been using wicket under for a while now, always using ant, but now I have to create a quickstart app and I'm new to maven... I've created the quickstart app and it runs under Jetty no problem but where does it store the Wicket and Jetty .jars? They don't seem to be under the directory I

maven/quickstart question

2009-09-23 Thread jWeekend
Chris, Maven creates a local repository of libraries your projects depend on. Take a look under .m2 in your home directory. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com I've been using wicket under for a while now, always using ant, but

Re: maven/quickstart question

2009-09-23 Thread Pedro Santos
They probably are at user home. You can know more about maven settings at: http://maven.apache.org/settings.html * localRepository*: This value is the path of this build system's local repository. The default value is ${user.home}/.m2/repository. This element is especially useful for a main build

Re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread Jeremy Thomerson
Why validate the input on a textfield that isn't displayed to the user? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Sep 23, 2009 at 7:45 PM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: well, it makes no sense to add the javascript to another container. how

RE: maven/quickstart question

2009-09-23 Thread Chris Colman
Cool, thanks for the info. That repository looks like the manually managed one I maintain for ant's use to allow sharing of jars across multiple projects. I guess maven has automated that process somewhat. The default value is ${user.home}/.m2/repository. This element is especially useful for a

Re: Maven eclipse plugin

2009-09-23 Thread Anantha Kumaran
Hi i followed the same guide and all went nicely till the project creation I cann't create the eclipse descriptor using mvn eclipse:eclipse command What do you mean after created the pom? If you're following the guide here,

Old instances of a page remain in memory (apparently) forever

2009-09-23 Thread Esteban Ignacio Masoero
Hi: I'm not sure whether this behavior is normal or not, so I'm going to describe it and I hope someone can tell me if I'm doing something wrong or if there's just nothing wrong! In my app I found out that each time a request is made, old instances of a page remain in memory, and get accumulated

Re: Old instances of a page remain in memory (apparently) forever

2009-09-23 Thread Igor Vaynberg
the instances are held in memory until the jvm runs the garbage collector. -igor On Wed, Sep 23, 2009 at 8:09 PM, Esteban Ignacio Masoero emaso...@getsense.com.ar wrote: Hi: I'm not sure whether this behavior is normal or not, so I'm going to describe it and I hope someone can tell me if I'm

Re: Old instances of a page remain in memory (apparently) forever

2009-09-23 Thread Marcelo Fukushima
you can check the javadoc for WeakReference, but basically WeakReferences hold the reference until a full gc occurs On Thu, Sep 24, 2009 at 12:14 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: the instances are held in memory until the jvm runs the garbage collector. -igor On Wed, Sep 23,

re: FXValidationAjaxHandler - Javascript not added if component is set visible(false) in page constructor

2009-09-23 Thread jWeekend
Chris, The fact that you've chosen to use Wicket probably shows there's not so much danger of that! To better see what's going on, try the snippet below in the project you attached // ... mark t2 final and // append this to your BasePage constructor

Re: Old instances of a page remain in memory (apparently) forever

2009-09-23 Thread Esteban Ignacio Masoero
Thanks for the quick answer! After doing some exhaustive testing, I've just found out that, just before seeing your answer. The problem was that it wasn't until the 20th instance that finally the garbage collector decided to free up some memmory (I tried calling it explicitly but apparently the

Re: Maven eclipse plugin

2009-09-23 Thread Anantha Kumaran
hi i found the problem it is due to some corrupted jar in the maven repo i cleared that and now working properly On Thu, Sep 24, 2009 at 8:35 AM, Anantha Kumaran ananthakuma...@gmail.comwrote: Hi i followed the same guide and all went nicely till the project creation I cann't create the

Re: Palette Update Behaviour Problem

2009-09-23 Thread Fernando Wermus
Tim, Just to know. Have you implemented your own Recorder? ps: You can get it with palette.getRecorderComponent(). Then add the behavior. On Wed, Sep 23, 2009 at 4:30 PM, Tim Hughes thug...@troglobyte.com wrote: I am using a Palette to assign multiple Category objects to a Document

Re: Old instances of a page remain in memory (apparently) forever

2009-09-23 Thread Fernando Wermus
If you run System.gc(), you are recommended to jvm to run the garbarge. Anyway, It is not mandatory to do it. On Thu, Sep 24, 2009 at 12:56 AM, Esteban Ignacio Masoero emaso...@getsense.com.ar wrote: Thanks for the quick answer! After doing some exhaustive testing, I've just found out that,