Static web page localization

2012-08-15 Thread Arni Kekoni
Hello I have a bunch of static web pages, with no wicket objects associated with them. These pages have .swf files like so: EMBED SRC=xyz.swf/EMBED Is it possible to use wicket to localize those .swf files? Serve xyz_en.swf for english and so on? I know you could simply create a page_en.html,

URL params parsing issue if param value contain '='

2012-08-15 Thread sumitkathuria
Hello, We are in process of integrating our application with the third party application and during the auth flow, The wicket is not returning the correct parameter value when the third party application passes the parameter value containing = operator. After doing the initial investigation, i

Re: URL params parsing issue if param value contain '='

2012-08-15 Thread Martin Grigorov
Hi, You can wrap the HttpServletRequest (see HttpServletRequestWrapper) and fix the query string by encoding the additional '=' char. On Wed, Aug 15, 2012 at 9:08 AM, sumitkathuria sumitkathu...@gmail.com wrote: Hello, We are in process of integrating our application with the third party

Re: Static web page localization

2012-08-15 Thread Martin Grigorov
Hi, You may use Wicket IResource that should serve the SWFs dynamically. See http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ for an inspiration. On Wed, Aug 15, 2012 at 9:02 AM, Arni Kekoni arni.kek...@tuntinetti.fi wrote: Hello I have a bunch of static web pages, with no

Re: Static web page localization

2012-08-15 Thread Arni Kekoni
Thanks! 2012/8/15 Martin Grigorov mgrigo...@apache.org: Hi, You may use Wicket IResource that should serve the SWFs dynamically. See http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ for an inspiration. On Wed, Aug 15, 2012 at 9:02 AM, Arni Kekoni arni.kek...@tuntinetti.fi

Re: URL params parsing issue if param value contain '='

2012-08-15 Thread sumitkathuria
Can i use IPageParametersEncoder here? I can use the Base64 encoding decoding there and implement the below strategy. when the first request(*page.html?param1=paramvalue==*) comes I can get the request params from native HTTPServletRequest and put that value in page parameters without encoding.

Re: URL params parsing issue if param value contain '='

2012-08-15 Thread Joachim Schrod
sumitkathuria wrote: Hello, We are in process of integrating our application with the third party application and during the auth flow, The wicket is not returning the correct parameter value when the third party application passes the parameter value containing = operator. After doing

Regarding WARN - (WebPageRenderer.java:162) v1.5.7

2012-08-15 Thread yesotaso
Sorry for non-informative title. The whole warning is: WARN - (WebPageRenderer.java:162) - The Buffered response should be handled by BufferedResponseRequestHandler I know in various places it is said to be harmless and I dont know if other people seeing this warning for the same reason as me...

Re: issue refreshing covered panel when modalwindow is open

2012-08-15 Thread Andrew Geery
Thanks for the answer, David. I do use the technique you use below and it works well. However, in your situation, I think you're updating active content. In my situation, I have a modal window which is active. When a button on the modal window is clicked, the modal window calls the send(...)

Need clarification for modifying usage of modal.js

2012-08-15 Thread kshitiz
Hi, I want to position a modal window in the center of the current viewable window rather than whole one. For that I need to use customized modal.js as I have read in wicket forum. Now, in modal.js

Dataview with filter: I need a textfilter for a numeric column

2012-08-15 Thread Delange
I have a datatable with a filter. At this moment a user can enter some search combinations in the header for alpha fields, for example: column area: Area51Area60 I also need this for numeric fields (amounts and date fields) How can I accomplish that? for example in the column quantity I want

RE: Static web page localization

2012-08-15 Thread Paul Bors
Another idiom is to attach a wicket:id to that HTML tag, and in your Java code use a WebMarkupContainer with an AttributeModifier to change whatever attribute you would like. Of course the IResource and children might be a better approach since it does the work for you :) ~ Thank you, Paul

IExceptionMapper to notify support of errors

2012-08-15 Thread jchappelle
I have written an IExceptionMapper that notifies our support team if an unexpected exception occurs. It will redirect the user to our ErrorPage and in the ErrorPanel.onBeforeRender I send a notification via email in a new Thread. This mostly works except we are getting several false positives.

Re: IExceptionMapper to notify support of errors

2012-08-15 Thread Igor Vaynberg
perhaps an error occurs during an ajax request whose response is ignored. or maybe it happens during resource processing... eg tinymce requests a resource, wicket doesnt find it and throws an exception. your panel renders. but, because the url was for a resource the response is ignored because

Re: IExceptionMapper to notify support of errors

2012-08-15 Thread jchappelle
Thanks for the quick response Igor. Are there any callback methods in Panel that will allow me to put my notification code and guarantee that it will be rendered to the user? Worst case I could add a timer behavior to the panel that makes a callback to the server and executes the notification,

Re: IExceptionMapper to notify support of errors

2012-08-15 Thread Igor Vaynberg
not really. like i said, if this happens during a resource url then the browser will never show the response. your best bet is to use a timer or any other callback that gets triggered via javascript, so you know the user sees the error panel. -igor On Wed, Aug 15, 2012 at 10:22 AM, jchappelle

Re: IExceptionMapper to notify support of errors

2012-08-15 Thread jchappelle
I'll do the timer then. Thanks for your help Igor. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/IExceptionMapper-to-notify-support-of-errors-tp4651251p4651256.html Sent from the Users forum mailing list archive at Nabble.com.

Add page feedback to every AjaxRequestTarget

2012-08-15 Thread Alec Swan
Hello, I have a FeedbackPanel on a page. The page can contain different kinds of forms depending on the end-user preference. Some of those forms are submitted via AJAX and may or may not add any components to AjaxRequestTarget. How can I add the page's FeedbackPanel to AjaxRequestTarget of the

Re: Add page feedback to every AjaxRequestTarget

2012-08-15 Thread Bertrand Guay-Paquet
Hi Alec, Have a look at this: https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Defaultajaxevent I think it does what you need. On 15/08/2012 3:59 PM, Alec Swan wrote: Hello, I have a FeedbackPanel on a page. The page can contain different kinds of forms

Re: Add page feedback to every AjaxRequestTarget

2012-08-15 Thread Alec Swan
Bertrand, that's exactly what I want! Except I am using Wicket 1.4.x :( Is there a way to implement this in Wicket 1.4.x? Thanks, Alec On Wed, Aug 15, 2012 at 3:02 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi Alec, Have a look at this:

Re: How to control IMG/CSS URL-Rewriting in mounted pages?

2012-08-15 Thread Joachim Schrod
Well, one answer yet, with an assertion that Wicket does what I don't want it to do. :-( So, is it really not possible to exchange bidirectionally HTML files with an HTML designer who does *not* put all his HTML files in web root? I thought being able to share files bidirectionally with HTML

Re: Add page feedback to every AjaxRequestTarget

2012-08-15 Thread procrastinative.developer
Hello Alec, Could you take a look on this: https://github.com/procrastinativedeveloper/ToolsClasses/blob/master/src/main/java/com/utils/wicket/ajax/AjaxFeedbackPanelUpdater.java -- View this message in context:

Re: Problem sending email using SSL after upgrading to Wicket 1.5

2012-08-15 Thread James Eliyezar
It turns out that the problem was because of the custom trust store we were using in our application. It has nothing to do with wicket. Sorry for bothering you all. On Tue, Aug 14, 2012 at 3:55 PM, James Eliyezar ja...@mcruncher.com wrote: Martin, Yes I use smtp props that are similar to what

Re: Is there a way to search component by its wicket ID ?

2012-08-15 Thread James Eliyezar
Thanks Paul for this nice tip. On Tue, Aug 14, 2012 at 11:04 PM, Paul Bors p...@bors.ws wrote: If you use wicket-component-expressions from com.googlecode.londonwicket you can get to the list of all the components on the page that have that username id via a regexp of **:username, but as

WicketTester best practices

2012-08-15 Thread James Eliyezar
Friends, Just curious to find out what best practices do you all follow when using WicketTester. FYI, to improve the performance of unit tests, we decided to use a shared instance of WicketTester across our unit tests. The tests worked fine in Wicket 1.4.x but fail after upgrading to 1.5.x when

AjaxFormSubmitBehavior causing page refresh in IE

2012-08-15 Thread kshitiz
Hi, I have a simple code which is running fine in chrome... // defining text field for user to search * final RequiredTextFieldString searchTextField = new RequiredTextFieldString( search); searchTextField.add(new