Re: Where to add javascript in html pages which follow inheritance relationship.

2012-07-29 Thread Martin Grigorov
Only the parent page can have . The children pages should use to contribute to the parent's Or just override #renderHead(IHeaderResponse) in .java. On Sun, Jul 29, 2012 at 5:48 PM, kshitiz wrote: > Hi, > > I have 3 pages: > > *Page1:* > > Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-str

Re: Change http status code on ajax response redirect?

2012-07-29 Thread Martin Grigorov
Hi, You can use IResponseFilter to check the content of the response (as String) and then set the custom status code. MyApp#init(): getRequestCycleSettings().add(new MyCustomResponseFilter()) You may also need to set the 'Location' response header just in case something in the middle tries to pro

Re: HTTPS FORM POST FROM EXTERNAL SITE TO WICKET WEBPAGE

2012-07-29 Thread Dan Retzlaff
If your constructor isn't being called, you have something more basic to figure out. I just tested with a quickstart, and it worked as expected. See https://gist.github.com/3204518. Hitting localhost:8080 shows "value is not specified", then submitting the (non-Wicketized) form shows "value is ".

Re: HTTPS FORM POST FROM EXTERNAL SITE TO WICKET WEBPAGE

2012-07-29 Thread hannach
Thanks for the reply. I don't think Webpage is called at all. Do I need to add crazy wicket url like pay_result?form7_hf_0=&wicket%3Ainterface=%3A1%3Aform%3A%3AIFormSubmitListener in returnURL in order to get what's been submitted from external site to my web page? Perhaps it's HTTPS and it's usi

Re: HTTPS FORM POST FROM EXTERNAL SITE TO WICKET WEBPAGE

2012-07-29 Thread Dan Retzlaff
If you look at FormComponent#getInputAsArray(), you can see how Wicket gets access to posted values: getRequest().getRequestParameters().getParameterValues(inputName); On Sun, Jul 29, 2012 at 3:06 PM, hannach wrote: > Hi there, > > I need to provide returnURL for payment portal like Paypal. > I c

HTTPS FORM POST FROM EXTERNAL SITE TO WICKET WEBPAGE

2012-07-29 Thread hannach
Hi there, I need to provide returnURL for payment portal like Paypal. I created bookmarkable WebPage called paymentResultPage and path is called "pay_result". Once user is done with payment, this portal will do the HTTPS form POST (not GET) to the returnURL returning whether payment went successfu

Re: Which is the best way to manage the visibility of a component?

2012-07-29 Thread Dan Retzlaff
You could override C's onConfigure() to set its visibility based on B, and override C's onEvent() to add C to the ART if it's current visibility is wrong. https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Defaultajaxevent On Sun, Jul 29, 2012 at 6:17 AM, Alberto wro

Re: Which is the best way to manage the visibility of a component?

2012-07-29 Thread kshitiz
You can write the code in a separate method and call that method from A and B... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Which-is-the-best-way-to-manage-the-visibility-of-a-component-tp4650853p4650854.html Sent from the Users forum mailing list archive at Nab

Which is the best way to manage the visibility of a component?

2012-07-29 Thread Alberto
Hi, I'm using wicket 1.5.7 and I have the following scenario. A page with two DropDownChoice that we will call A and B. Values of B depend on value of A and are updated by Ajax. Then a WebMarkupContainer component that we will call C. The visibility of C depends on value of B. I added in the metho