Re: [Migration 1.5] Howto configure HttpsMapper to ignore https protocol by configuration?

2011-09-26 Thread Martin Grigorov
Just override org.apache.wicket.protocol.https.HttpsMapper.mapRequest(Request) and/or org.apache.wicket.protocol.https.HttpsMapper.mapHandler(IRequestHandler) and do whatever you need. This class is very simple. You can even create your own. On Mon, Sep 26, 2011 at 8:39 AM, Mike Mander wrote: > H

Re: Firing JavaScript handler on AJAX panel swap

2011-09-26 Thread Martin Grigorov
On Sun, Sep 25, 2011 at 11:30 PM, Alec Swan wrote: > It would be nice if Wicket JavaScript API supported registration of > handlers for user-initiated AJAX events, such as clicking on a link, > separately from code-initiated AJAX events, such as contributing a > JavaScript script to head. The curr

Re: DecimalFormatLabel (proposed)

2011-09-26 Thread Yves-Marie LAINÉ
I agree with you. Yves-Marie 2011/9/25 Pranav kacholia > One way or the other, i think Wicket needs a label of that sort. > There are too many places where i have to display currency. It should have > something inbuilt that allows us to display formatted strings and numbers > (a > label) > > >

Re: replace panel in dialog box

2011-09-26 Thread pragya.rawal
Hi, Any further thoughts on this issue ? Thanks - Pragya http://pragyarawal.co.cc -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/replace-panel-in-dialog-box-tp3640377p3843188.html Sent from the Users forum mailing list archive at Nabble.com. ---

Re: [Migration 1.5] Howto configure HttpsMapper to ignore https protocol by configuration?

2011-09-26 Thread Mike Mander
Thanks Martin, Overriding / implementing my own mapper would be an option if i could use the HttpsRequestChecker. But it's package private (1.5.0). But thinking about that again lead me to another option => set the https_port in config. setRootRequestMapper(new HttpsMapper(getRootRequestMappe

Re: [Migration 1.5] Howto configure HttpsMapper to ignore https protocol by configuration?

2011-09-26 Thread Martin Grigorov
Can't you just return the passed IRequestHandler/Url in mapHandler/mapRequest() methods if the https port is -1 ? No need to use HttpsRequestChecker at all. On Mon, Sep 26, 2011 at 11:17 AM, Mike Mander wrote: > Thanks Martin, > > Overriding / implementing my own mapper would be an option if i co

WicketFilter 1.5 ignorePaths - any changes?

2011-09-26 Thread Chris Colman
Are there any changes to the way the ignorePaths init-param works in 1.5? I have a web.xml that has been working fine in 1.4 with a set of ignorePaths but it appears as though Wicket 1.5 is trying to process some of the requests that it was ignoring in 1.4.

Re: WicketFilter 1.5 ignorePaths - any changes?

2011-09-26 Thread Martin Grigorov
It should be the same behavior but since this method has been lost and re-introduced in 1.5 it may have issues. It has test in WicketFilterTest. Extend the test with the failures and attach it in a ticket. On Mon, Sep 26, 2011 at 11:22 AM, Chris Colman wrote: > Are there any changes to the way th

Re: Firing JavaScript handler on AJAX panel swap

2011-09-26 Thread Emond Papegaaij
Hi Alec, If you use WiQuery for your javascript-enabled panels, this is done automatically. WiQuery will add the javascript calls in the right places for you. Best regards, Emond On Saturday 24 September 2011 19:58:05 Alec Swan wrote: > Hello, > > We use panel swapping to implement tabbing. T

Re: creating a textarea with a radiobutton using Listview

2011-09-26 Thread wholalotta
I tried the following but couldnt get into "onUpdate" method while debugging. I need to use checkgroup to be able to use AjaxFormChoiceComponentUpdatingBehavior. So I created a checkgroup and added the checkboxes into it. So I guess in each iteration I am creating one text area, one check group and

Re: [Migration 1.5] Howto configure HttpsMapper to ignore https protocol by configuration?

2011-09-26 Thread Mike Mander
Thanks Martin, Problem solved. Instead of implementing something i've configured the mapper: if (_httpsPort > -1) { setRootRequestMapper(new HttpsMapper(getRootRequestMapper(), new HttpsConfig(_httpPort, _httpsPort))); } :-) That is simple and no need to copy cod

Re: creating a textarea with a radiobutton using Listview

2011-09-26 Thread manuelbarzi
that iterator you added has no much sense, as it represents only an item on the list, but not the list itself. moreover you don't need modifying components, but updating their models, as mentioned in mail before (may you study wicket models a bit more... see https://cwiki.apache.org/WICKET/working-

set content type of response in wicket 1.5

2011-09-26 Thread Martin A
Hello, In Wicket 1.4 and before that there was a method setContentType(String str) in the class Request. What's its equivalent in wicket 1.5? Thanks

Re: set content type of response in wicket 1.5

2011-09-26 Thread Martin Grigorov
I guess you mean Response because you can't write in the Request On Mon, Sep 26, 2011 at 4:14 PM, Martin A wrote: > Hello, > > In Wicket 1.4 and before that there was a method setContentType(String str) > in the class Request. What's its equivalent in wicket 1.5? > > Thanks > -- Martin Grigor

Re: set content type of response in wicket 1.5

2011-09-26 Thread Martin A
Yes, sorry, I meant Response, as it says in the title. Thanks On Mon, Sep 26, 2011 at 5:19 PM, Martin Grigorov wrote: > I guess you mean Response because you can't write in the Request > > On Mon, Sep 26, 2011 at 4:14 PM, Martin A wrote: > > Hello, > > > > In Wicket 1.4 and before that there wa

Re: set content type of response in wicket 1.5

2011-09-26 Thread Martin Grigorov
org.apache.wicket.request.http.WebResponse.setContentType(String) On Mon, Sep 26, 2011 at 4:21 PM, Martin A wrote: > Yes, sorry, I meant Response, as it says in the title. > > Thanks > > On Mon, Sep 26, 2011 at 5:19 PM, Martin Grigorov wrote: > >> I guess you mean Response because you can't write

Re: set content type of response in wicket 1.5

2011-09-26 Thread Martin A
Ok, so it's been moved to WebResponse... I should have figured that out :) Thanks On Mon, Sep 26, 2011 at 5:24 PM, Martin Grigorov wrote: > org.apache.wicket.request.http.WebResponse.setContentType(String) > > On Mon, Sep 26, 2011 at 4:21 PM, Martin A wrote: > > Yes, sorry, I meant Response, as

Re: How to handle errors in RequestCycle.onEndRequest

2011-09-26 Thread Igor Vaynberg
1.4.x has onRuntimeException() but it has no callback for when the request handler has executed... -igor On Sun, Sep 25, 2011 at 2:20 PM, Christian Huber wrote: > Sorry for bugging again, but I just saw that IRequestCycleListener is not > available in wicket 1.4.x. Is there an alternative other

Re: creating a textarea with a radiobutton using Listview

2011-09-26 Thread wholalotta
Thanks a lot. I wish I have seen the obvious solution by myself but anyway everything is clear now..I should have iterated the Listview not the list item. My plan was iterating the list component and updating the model value in it. But you are right, iterating "item" wont give me the all the item l

Wicket 1.4 redirects to root path

2011-09-26 Thread Bruno Borges
A Wicket 1.4.17 application with its Filter mapped to /foo/* is being redirect to root path after a form submit. Does anyone have any idea on what can be going wrong? Thanks *Bruno Borges* (21) 7672-7099 *www.brunoborges.com*

Re: How to handle errors in RequestCycle.onEndRequest

2011-09-26 Thread Christian Huber
as i suspected ;-) i have been using onRuntimeException already but without onRequestHandlerExecuted this is not enough. well, off to migration it is then :-) The Sanity Resort Am 26.09.2011 18:28, schrieb Igor Vaynberg: 1.4.x has onRuntimeException() but

RE: WicketFilter 1.5 ignorePaths - any changes?

2011-09-26 Thread Chris Colman
Doh! That was my bad. Was building the 1.5 version of our app in a different directory but didn't change the docBase in the app's Tomcat config to reflect that new directory so it continued to pull unchanged web.xml from the old 1.4 directory Embarrassed =] >It should be the same behavior

Servlet and Wicket

2011-09-26 Thread koha...@gmail.com
We have significant Servlet JSP investment in our major development efforts. Now, we want to switch from JSP to Wicket. Because of request dispatching and current investment from http to servlet connectivity we want to reuse the servlet components and swap out just the JSP with Wicket. Is there a

Re: Servlet and Wicket

2011-09-26 Thread Igor Vaynberg
you did not ask a specific enough question... -igor On Mon, Sep 26, 2011 at 12:00 PM, koha...@gmail.com wrote: > We have significant Servlet JSP investment in our major development efforts. > Now, we want to switch from JSP to Wicket. Because of request dispatching > and current investment from

Re: Firing JavaScript handler on AJAX panel swap

2011-09-26 Thread Alec Swan
Martin, Wicket.Ajax.doGet() is called when JavaScript is contributed with response.renderJavascriptReference(script). So, there is no way for preCallHandlers to distinguish between JavaScript contribution and user-initiated click. I would also like to mention that this is not a jQuery issue. Than

Re: Servlet and Wicket

2011-09-26 Thread koha...@gmail.com
I am asking this question because I have reviewed all the books published on Wicket including the recent Wicket Cookbook, I have not seen any examples of how you can replace JSP with Wicket. I want to use Wicket in my current project but it would be cost prohibitive if I have to discard all the Ser

Re: Servlet and Wicket

2011-09-26 Thread Igor Vaynberg
On Mon, Sep 26, 2011 at 3:06 PM, koha...@gmail.com wrote: > I am asking this question because I have reviewed all the books published on > Wicket including the recent Wicket Cookbook, I have not seen any examples of > how you can replace JSP with Wicket. I want to use Wicket in my current > projec

Re: Servlet and Wicket

2011-09-26 Thread noven_lie
Hi.. I understood what your issue is. Just want to share my experience here. I used to convert my struts application to wicket. I found there were no easy way to solve this matter. Since wicket is component based, not rely on servlet to do an action. Finally, I ended this matter by recreating

Re: Servlet and Wicket

2011-09-26 Thread manuelbarzi
i would suggest you, hohaeri, to do the migration progressively, by keeping your servlet-application living with your new wicket-application, while translating one by one your pages from the first to the latter, til finally have all your application fully migrated. if you have correctly done SoC in

Show ModalWindow when a RuntimeException occurrs

2011-09-26 Thread jchappelle
Hi, Currently I have subclassed the RequestCycle and overridden the onRuntimeException method in it to return a custom error page for the user. It works very well but the only problem is that it takes the user away from the page they were on. I would like to be able to show a ModalWindow with a c

Re: Servlet and Wicket

2011-09-26 Thread koha...@gmail.com
In my implementation I have in the presentation layer I have: Interfacing with Http web Server (with IIS and apache http server) Dispatcher Servlet (awaiting incoming httpservletRequest) | Wicket Components On the Application Service layer, I have

Re: Servlet and Wicket

2011-09-26 Thread koha...@gmail.com
Here is what the architecture of my implementation looks like: Dispatcher Servlet (awaiting incoming httpservletRequest) | Wicket Components On the Application Service layer, I have EJB Beans And then on the Data Layer I have J

Re: How to handle errors in RequestCycle.onEndRequest

2011-09-26 Thread Hans Lesmeister 2
Hi, maybe you can override WebRequestCycleProcessor.respond: but I did not try if that's too late as well - -- Regards, Hans http://cantaa.de -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-handle-errors-in-RequestCycle-onEndRequest-tp3824649p384624

Feedback panel inherits parent panel feebdack?

2011-09-26 Thread Arjun Dhar
Hey, i guess i was sleeping when this one was taught. I have a Feetback panel on the parent panel. Then in a WebMarkupContainer, have added another feedback panel. When I add .info(...) or .error(...) to feedback panel in parent it appears in both. Must be some component hierarchy trickle down e

Re: Feedback panel inherits parent panel feebdack?

2011-09-26 Thread Igor Vaynberg
all feedback panels get all feedback messages. use ifeedbackmessagefilter provided impls or your own to filter messages that panels consume... -igor On Mon, Sep 26, 2011 at 10:51 PM, Arjun Dhar wrote: > Hey, i guess i was sleeping when this one was taught. > > I have a Feetback panel on the par

Re: Feedback panel inherits parent panel feebdack?

2011-09-26 Thread Dan Retzlaff
I've hit this too. You're not the first to be surprised by this behavior. http://apache-wicket.1842946.n4.nabble.com/Page-and-compoenent-level-feedback-are-mixing-together-td1846435.html I agree that there's something unintuitive about all FeedbackPanels rendering all messages, but I haven't devis