Re: Getting more stale page exception in wicket 1.5.6

2012-06-01 Thread Martin Grigorov
Hi, Which version of Wicket do you use ? On Thu, May 31, 2012 at 8:31 PM, sudeivas sureshkumar@gmail.com wrote: Hello Martin I think I found why I see the warning WARN: org.apache.wicket.request.handler.request.WebPageRenderer - The Buffered response should be handled by

Re: handling user agent

2012-06-01 Thread Martin Grigorov
Hi, You have several options: - use a IRequestMapper which will read the user agent and return : new RenderPageRequestHandler(new PageProvider(UserAgentSpecificPage.class, parameters)) - use IRequestCycleListener which implements #onBeginRequest() where it reads the user agent and sets it as

Re: Filtercolumn and bigdecimal formatter

2012-06-01 Thread lang
I make my column with @SuppressWarnings({ unchecked, rawtypes }) private TextFilteredPropertyColumn getVerkoopprijs() { return new TextFilteredPropertyColumn( new ModelString(Verkoopprijs), verkoopprijs, verkoopprijs) {

inputcolumn for Filtercolumn in datatable uses to much space

2012-06-01 Thread lang
Default the input uses size=20 but for some colums that is too much. How can i specify the size from Java? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/inputcolumn-for-Filtercolumn-in-datatable-uses-to-much-space-tp4649638.html Sent from the Users forum mailing

Replace goandclear with images

2012-06-01 Thread lang
How can I replace the text in the goAndClearFilter with a png? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Replace-goandclear-with-images-tp4649640.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Filtercolumn and bigdecimal formatter

2012-06-01 Thread Sebastien
Just a quick update. For the solution to be reliable (I previously said it was not perfect), you will need to implement you own Label like: class BigDecimalLabel extends Label { public BigDecimalLabel(String id, IModelBigDecimal model) { super(id, model);

How to manage redirects using rewrite maps

2012-06-01 Thread Jan Riehn
Hello, we use a tomcat behind a apache. we also use mod_rewrite proxy rules to manage requests from the apache to the tomcat. Our wicket application modifies the location header: curl -I http://wicket-application/application-context/login HTTP/1.1 302 Moved Temporarily Date: Wed, 30 May

Re: Filtercolumn and bigdecimal formatter

2012-06-01 Thread lang
It worked! Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Filtercolumn-and-bigdecimal-formatter-tp4649624p4649646.html Sent from the Users forum mailing list archive at Nabble.com. - To

get PageReference for ModalWinow

2012-06-01 Thread sabina_12
Hello, I have a ModalWindow which can be opened from two different places in my application. modalWindowForUpload.setPageCreator(new ModalWindow.PageCreator() { @Override public Page createPage() { try { return new

Conditional Popup

2012-06-01 Thread hfriederichs
Hello, I have a wicket PopupPage that answers a wicket link, but I don't want it to popup when certain conditions are not met. In that case I want an info-message. So I tried something like: final LinkString theLink = new LinkString(...) { public void onClick() {

Re: Conditional Popup

2012-06-01 Thread Thomas Götz
Could you please provide a quickstart or post the interesting HTML and Java snippets? -Tom On 01.06.2012 at 15:24 hfriederichs wrote: Hello, I have a wicket PopupPage that answers a wicket link, but I don't want it to popup when certain conditions are not met. In that case I want an

Re: Conditional Popup

2012-06-01 Thread hfriederichs
A quick-start costs me one or two hours; in the end, maybe I will. But I think this is a reasonably simple question, so I'll await some straightforward suggestions first. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Conditional-Popup-tp4649649p4649651.html Sent

Re: Conditional Popup

2012-06-01 Thread Thomas Götz
To create a quickstart normally costs me around 5-7 seconds (copy/paste is my friend) ;-) Isolating the problem is another question, right. But in your case this sound rather trivial. In my experience a lot of problems are solved easyly by creating a quickstart, in most cases because then I

Stateless search page

2012-06-01 Thread romanasu
I'm trying to make a stateless search page with some filters in wicket 1.5.5. I have some filter objects(check box, drop down, input) and a repeater. When the page is loaded, i made a search and get some items. When the user change a filter, i want to update the results(the repeater); or, maybe

Re: Conditional Popup

2012-06-01 Thread hfriederichs
For other questions I had earlier on, I created quickstarts, but, since I'm working on a very complex application, I couldn't reproduce the problem in a quickstart. I spent hours and hours copying more and more of my application into the quickstart, but to no avail. So again, it's a simple

Re: Conditional Popup

2012-06-01 Thread Thomas Götz
As an alternative, you could use an AjaxLink and push the popup-opener JS to teh frontend, then you could have your decision logic (wether to open it or not) in the backend (Wicket layer). -Tom - To unsubscribe, e-mail:

Re: handling user agent

2012-06-01 Thread wicket user
Awesome thanks alot !! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/handling-user-agent-tp4649565p4649658.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

Re: Stateless search page

2012-06-01 Thread romanasu
Apparently, if i make the search in onbeforerender, i skip the first useless search. Nice to find out after many hours... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateless-search-page-tp4649653p4649660.html Sent from the Users forum mailing list archive at

Re: How to manage redirects using rewrite maps

2012-06-01 Thread Dan Retzlaff
Hi Jan, Have you tried proxying with AJP instead of HTTP? Some of this complexity goes away then. Using mod_rewrite's [P] flag to proxy requests shouldn't be incompatible with ProxyPassReverse or ProxyPassReverseCookieDomain. Did you try it? Dan On Fri, Jun 1, 2012 at 2:51 AM, Jan Riehn

Re: Loop.populateItem() while migrating from Wicket 1.4 to 1.5

2012-06-01 Thread paulstar
Thanks for looking into this. It seems to be a deployment issue. The way I did it is right for Wicket 1.5. Now I am facing an even bigger problem. I will post another one regarding redirect loop. -- View this message in context:

Re: Conditional Popup

2012-06-01 Thread hfriederichs
Thomas Götz-2 wrote PopupSettings popupSettings = new PopupSettings() { @Override public String getPopupJavaScript() { return if(!condition) return false; + super.getPopupJavaScript(); } }; I'm sorry, but I don't understand your code. My condition is in the

Re: Conditional Popup

2012-06-01 Thread Thomas Götz
I thought you might have some condition that you could evaluate in JS. This is the reason I asked for a short quickstart, it simply eases discussion. -Tom On 01.06.2012 at 19:19 hfriederichs wrote: I'm sorry, but I don't understand your code. My condition is in the Java/Wicket-layer, how

Re: Wicket page has a redirect loop

2012-06-01 Thread Thomas Götz
Hm, put a breakpoint in FragmentMarkupSourcingStrategy.java:143 and see what causes the NullPointerException. -Tom On 01.06.2012 at 19:08 paulstar wrote: Caused by: java.lang.NullPointerException at

Re: Batch process message to user

2012-06-01 Thread Dan Retzlaff
Hi Kemal, You could register your own root IRequestMapper. See the last paragraph under The new way in Wicket 1.5: https://cwiki.apache.org/WICKET/request-mapping.html Dan On Fri, Jun 1, 2012 at 9:52 AM, chrome1235 kemal.m...@gmail.com wrote: Hi, My Application has some batch processes,