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 wrote: > Hi, > My Application has some batch processes, therefore I want to r

Re: Conditional Popup

2012-06-01 Thread hfriederichs
Martin Grigorov-4 wrote > > try with: > > if (condition) { setPopupSettings(nonNull) } else { setPopupSettings(null) > } > > This doesn't work. The condition has to be checked every time the link is clicked, so within the onCLick(). setPopupSettings(null) gives the current page as popup. May

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 > org.apache.wicket.markup.html.panel.FragmentMarkupSourcingStrategy.getMarkup(Fr

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, ho

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

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: http://apache-wicket.1842946.n4.nabble.com/Loop-populateItem

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 wrote:

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 Nabb

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, e-mai

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: u

Re: Conditional Popup

2012-06-01 Thread Thomas Götz
As I suppose that you want to create a Javascript popup (i.e. a Wicket Link with PopupSettings), you need to decide wether to open the popup or not in the frontend (Javascript layer), not in the onClick() of the Link. So you could try something like this: PopupSettings popupSettings = new Popup

Re: Conditional Popup

2012-06-01 Thread Martin Grigorov
try with: if (condition) { setPopupSettings(nonNull) } else { setPopupSettings(null) } On Fri, Jun 1, 2012 at 5:40 PM, hfriederichs wrote: > 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

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 questio

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 eas

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 real

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 from

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 a

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 Link theLink = new Link(...) { public void onClick() { if (conditio

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 UploadFisierMo

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 unsubs

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 2012

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, IModel model) { super(id, model); }

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
Hi, I would have done something like that: public class BigDecimalFilteredPropertyColumn extends TextFilteredPropertyColumn { public BigDecimalFilteredPropertyColumn(IModel displayModel, String sortProperty, String propertyExpression) { super(displayModel, sortProperty, propertyEx

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 l

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 Model("Verkoopprijs"), "verkoopprijs", "verkoopprijs") {

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 Sess

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 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 BufferedResponseRequestHandler. >