Markup inheritance and constructors call

2011-05-20 Thread Mathilde Pellerin
Hi all, I am new in wicket and I encountering a problem with my Markup inheritance. In my BasePage (that extends WebPage), I have a menu with some BookmarkablePageLink : ul class=blocklist !-- MENU -- li wicket:id=accueilpageaAccueil/a/li li wicket:id=e4npageaInfos E4N/a/li li

Re: Markup inheritance and constructors call

2011-05-20 Thread Martin Grigorov
It shouldn't be called as you described it. Put a breakpoint in BasePage's constructor and see the thread stack. On Fri, May 20, 2011 at 10:17 AM, Mathilde Pellerin mathilde.pelle...@statlife.fr wrote: Hi all, I am new in wicket and I encountering a problem with my Markup inheritance. In

Re: Markup inheritance and constructors call

2011-05-20 Thread Mathilde Pellerin
thanks for your answer. You are right : the second call is not due to Accueil Page. In fact, I have an error404 page which is called when user try an url that is not in the application. I don't know why, but the ErrorPage constructor is called each time that I follow a link. This is the part of

Re: Markup inheritance and constructors call

2011-05-20 Thread Martin Grigorov
You have a resource with broken url. Some css/js/image cannot be found. On Fri, May 20, 2011 at 11:00 AM, Mathilde Pellerin mathilde.pelle...@gmail.com wrote: thanks for your answer. You are right : the second call is not due to Accueil Page. In fact, I have an error404 page which is called

Re: Markup inheritance and constructors call

2011-05-20 Thread Mathilde Pellerin
You are right again : when I remove the css file of ma BasePage, errorPage constructor is not called. So, what is the good practice to declare style css file when you use Markup Inheritance? I thougth that put the link : link rel=stylesheet href=styles.css type=text/css / in the head of basePage

Re: Markup inheritance and constructors call

2011-05-20 Thread Martin Grigorov
where is located styles.css in the file system ? it should either be in WEB-INF/ folder or you should use wicket:linklink ...//wicket:link On Fri, May 20, 2011 at 11:27 AM, Mathilde Pellerin mathilde.pelle...@gmail.com wrote: You are right again : when I remove the css file of ma BasePage,

Re: Markup inheritance and constructors call

2011-05-20 Thread Mathilde Pellerin
it was in the webapp folder, so I put it in the WEB-INF folder and I put images folder in the WEB-INF folder to, put the error page is still called. I don't understand what happen cause css styles are visibly there in base page and in extends pages. this is my basePage head : head meta

Re: Markup inheritance and constructors call

2011-05-20 Thread Martin Grigorov
sorry. it should be next to WEB-INF/, not inside it. On Fri, May 20, 2011 at 11:48 AM, Mathilde Pellerin mathilde.pelle...@gmail.com wrote: it was in the webapp folder, so I put it in the WEB-INF folder and I put images folder in the WEB-INF folder to, put the error page is still called. I

Re: Markup inheritance and constructors call

2011-05-20 Thread Martin Grigorov
On Fri, May 20, 2011 at 11:48 AM, Mathilde Pellerin mathilde.pelle...@gmail.com wrote: it was in the webapp folder, so I put it in the WEB-INF folder and I put images folder in the WEB-INF folder to, put the error page is still called. I don't understand what happen cause css styles are

Re: Markup inheritance and constructors call

2011-05-20 Thread Mathilde Pellerin
OK, I tried /style.css but it didn't work : style is apply but error page is called (maybe for images used in style.css?) So, I try to implement the other solution. I found example on the wiki ( https://cwiki.apache.org/WICKET/including-css-resources.html). I try with wicket:head wicket:link

Re: Markup inheritance and constructors call

2011-05-20 Thread Martin Grigorov
1. the images in .css should use relative urls to the .css file. For beginning put .css and the images in the same folder and reference them with url('someImage.png') 2. Did you move style(s).css in fr/statlife/protoE4N/ folder ? If you use Wicket's resources then you should put the .css (and the

Re: Markup inheritance and constructors call

2011-05-20 Thread Mathilde Pellerin
OK, I found the problem : I used style.css instead of styles.css. Now, .css and images folder are in the right place (next to BasePage.html in the package) and they are in the class path. Thanks to that configuration, when I tried, I had this warning message : INFO - haredResourceRequestTarget -

Re: Wicket Cookbook - preventing multiple form submits

2011-05-20 Thread lucast
Hi Andrea, As you have suggested, on the SubmitOnceForm class, I've added two variables, page reference and page relative path, on calling process I get the copy the values: public void process(IFormSubmittingComponent submittingComponent) { pageReference =

Re: Apache Wicket Cookbook Published!

2011-05-20 Thread Mihai Postelnicu
I've just ordered a copy and already received the eBook ! :) Thanks Igor ! Mihai On 04/13/2011 07:43 PM, Igor Vaynberg wrote: thanks! i am happy you are enjoying it! -igor On Wed, Apr 13, 2011 at 1:24 AM, lucastlucastol...@hotmail.com wrote: Hi Igor, Congratulations on your new book. I

wicket push startup error messages

2011-05-20 Thread Doug Leeper
Not sure if any anyone else has experienced this. On startup of my wicket app...I get the following messages: I searched the web and nothing I found was conclusive. Any help would be appreciated. java.lang.IllegalStateException: STATE!=START at

Re: wicket push startup error messages

2011-05-20 Thread Doug Leeper
Never mind. I just found the cometd web site and the following post: http://cometd.org/documentation/2.x/howtos/servlet-containers I added to my web.xml: filter filter-namecontinuation/filter-name filter-classorg.eclipse.jetty.continuation.ContinuationFilter/filter-class

Re: Wicket Cookbook - preventing multiple form submits

2011-05-20 Thread Andrea Del Bene
Your welcome lucast! Don't hesitate to post again if you need more help or some other tricks. Hi Andrea, As you have suggested, on the SubmitOnceForm class, I've added two variables, page reference and page relative path, on calling process I get the copy the values: public void

Re: Wicket Cookbook - preventing multiple form submits

2011-05-20 Thread Andrea Del Bene
By the way, I gave for granted that you move back from the view person panel to the create person one with browser 'back' button. Is it correct or do you use a specific link or button? Hi Andrea, As you have suggested, on the SubmitOnceForm class, I've added two variables, page reference and

Re: Set FeedbackPanel with Error from JavaScript?

2011-05-20 Thread eugenebalt
Thanks, which one is easier? Are there any examples of how this would be done? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Set-FeedbackPanel-with-Error-from-JavaScript-tp3536164p3538940.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket Cookbook - preventing multiple form submits

2011-05-20 Thread lucast
Hi Andrea, That's correct, I move back from the view person panel to the create person one with browser 'back' button. Many thanks, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Cookbook-preventing-multiple-form-submits-tp3535159p3539086.html Sent from

Re: Set FeedbackPanel with Error from JavaScript?

2011-05-20 Thread eugenebalt
Sorry, but can someone help? This is pretty urgent. I like the 2nd idea, it looks easier to implement. I need to issue an AJAX request for the FeedbackPanel inside of JavaScript. The only thing is, I haven't used AJAX by itself. Thanks -- View this message in context:

Re: Wicket Cookbook - preventing multiple form submits

2011-05-20 Thread aladejebi
Is Wicket cookbook the most comprehensive wicket book around? Is it available in hard copy too? Sent via my BlackBerry Device from MTN -Original Message- From: Andrea Del Bene adelb...@ciseonweb.it Date: Fri, 20 May 2011 18:08:06 To: users@wicket.apache.org Reply-To:

Setting the value of a HiddenField from JavaScript

2011-05-20 Thread eugenebalt
Hi, As was posted before, the FileUploadField resets its model on Submit. We lose the user's input. I need to save the user's input because, in case the file doesn't exist, the error message has to mention it by name: File [XYZ] does not exist. In JavaScript, I can easily get the user's input.

Re: Setting the value of a HiddenField from JavaScript

2011-05-20 Thread eugenebalt
Working now, disregard. The HiddenField route works for saving the user's input, I had a small mistake. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Setting-the-value-of-a-HiddenField-from-JavaScript-tp3539234p3539264.html Sent from the Users forum mailing list

Re: Wicket Cookbook - preventing multiple form submits

2011-05-20 Thread lucast
Hi Ayodeji, The book is not an introduction to Wicket. It's for current users of Wicket. I can personally say its a really good book and I wish it was published 5 months ago, at the beginning of my pet project. you can find it in https://www.packtpub.com/ in hardcopy or electronic copy. Amazon

Customize Validator Message based on Dynamic Variable

2011-05-20 Thread eugenebalt
In the Validators we override the method getResourceKey() to get a message from .properties. My problem is, my error message includes the value of a component on the form. So I only know the full message AFTER I get to onValidate(). How can I construct the message string here? Is there a way to

Change Order (Priority) of Validator Msgs?

2011-05-20 Thread eugenebalt
How can I change the order (priority) of validator messages? I have a Form-level validator and 3 Component-level validators. The Form-level one is coming up on the bottom. I need to make it display first. I tried adding the Form after adding the validator on the Page, but that's not working.

Big Brazilian e-Stores using Wicket

2011-05-20 Thread Bruno Borges
I've come to know that these websites are using Wicket on their mainstream apps (not just intranet stuff): - www.americanas.com.br (go to this specific URL: https://carrinho.nova.americanas.com.br/CustomerWeb/pages/Login and look at the source for 'wicket') - www.submarino.com.br -

Re: Customize Validator Message based on Dynamic Variable

2011-05-20 Thread Clint Checketts
You could override the variablesMap() method to add in your values that the message in the properties file contains: Similar to the message: '${input}' isn't a valid widget. -Clint On Fri, May 20, 2011 at 2:34 PM, eugenebalt eugeneb...@yahoo.com wrote: In the Validators we override the

Re: Set FeedbackPanel with Error from JavaScript?

2011-05-20 Thread Igor Vaynberg
class specialpanel extends feedbackpanel implements iheadercontributor { abstractdefaultajaxbehavior callback; public specialpanel() { callback=new abstractdefaultajaxbehavior() { getCallbackUrl(boolean active) { return super.getCallbackUrl+message='+message+'';

Re: Big Brazilian e-Stores using Wicket

2011-05-20 Thread Jonathan Locke
Sweet! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Brazilian-e-Stores-using-Wicket-tp3539473p3539633.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,