Handle Exceptions outside of RequestCycle

2015-05-19 Thread Ravi
Hi all,I'm facing the following problem, where I'm not sure how to best handle it.I did specify all error pages, and they work if I'm within my Request-Response perimeter.If I manipulate a Requestheader, that it says for example: Wicket-Ajax: trssue instead of Wicket-Ajax: true, I get the tomcat

Re: Handle Exceptions outside of RequestCycle

2015-05-19 Thread Martin Grigorov
Hi, You can specify error page on Servlet level - in web.xml. http://stackoverflow.com/questions/7066192/how-to-specify-the-default-error-page-in-web-xml Mount your Wicket error page and specify that path in web.xml configuration. Martin Grigorov Wicket Training and Consulting

Re: Handle Exceptions outside of RequestCycle

2015-05-19 Thread Ravi
Nice, I didn't see that. That does solve my Problem, Thank you :) Martin Grigorov-4 wrote You can ignore paths in WicketFilter with init-param -

open page in new tab

2015-05-19 Thread Chris
Hi all, It seems that target=„_blank“ is ignored - the info page opens in the same window instead in a new tab. Does someone know why this is the case? Thanks, Chris lia href=# target=_blank wicket:id=infoinfo/a/li Link link = new AjaxFallbackLink(info) { @Override public void

Re: Handle Exceptions outside of RequestCycle

2015-05-19 Thread Ravi
Hi Martin, thank you for your quick reply. I have specified my errorpages inside the web.xml as well, although pointing to my Wicket pages. I now created a dedicated static .html file as a reference in the web.xml but I still pass through the WicketFilter, since it is mapped to root lvl. I will

Re: open page in new tab

2015-05-19 Thread Chris
Martin, Thanks a lot! Am 19.05.2015 um 14:30 schrieb Martin Grigorov mgrigo...@apache.org: Because you use Ajax link. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, May 19, 2015 at 3:24 PM, Chris chris...@gmx.at wrote: Hi all, It seems that

Re: open page in new tab

2015-05-19 Thread Martin Grigorov
Because you use Ajax link. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, May 19, 2015 at 3:24 PM, Chris chris...@gmx.at wrote: Hi all, It seems that target=„_blank“ is ignored - the info page opens in the same window instead in a new tab. Does

AutoCompleteTextField

2015-05-19 Thread Chris
Hi all, can the auto complete text field also be used in that way that it autocompletes words in the middle, too? Such as „minster“ for „Westminster Abbey“? In the example below only autocompletion for comparison of text start is demonstrated.

Re: AutoCompleteTextField

2015-05-19 Thread Martin Grigorov
https://github.com/apache/wicket/blob/31f3acb0d01af7be11a85c8e611c420180f77924/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/AutoCompletePage.java#L97 replace #startsWith() with #contains() Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On

Re: AutoCompleteTextField

2015-05-19 Thread Sven Meier
Sure, just implement #getChoices() accordingly. Have fun Sven On 19.05.2015 16:32, Chris wrote: Hi all, can the auto complete text field also be used in that way that it autocompletes words in the middle, too? Such as „minster“ for „Westminster Abbey“? In the example below only

Re: Re-rendering page on errors during onBeforeRender()

2015-05-19 Thread Sven Meier
This seems to be a bug - please create a Jira issue. Thanks Sven On 19.05.2015 14:53, Michal Kára wrote: I got page with structure like: - Page +- ListView -- items \ - Footer panel Now the scenario (heavily simplified): One of the items in ListView throws soft exception during

Re: Handle Exceptions outside of RequestCycle

2015-05-19 Thread Martin Grigorov
You can ignore paths in WicketFilter with init-param - https://github.com/apache/wicket/blob/31f3acb0d01af7be11a85c8e611c420180f77924/wicket-core/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java#L77 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On

Re-rendering page on errors during onBeforeRender()

2015-05-19 Thread Michal Kára
I got page with structure like: - Page +- ListView -- items \ - Footer panel Now the scenario (heavily simplified): One of the items in ListView throws soft exception during onInitialize(). Required behavior in this case is to keep user on the page and replace ListView with a panel stating

Re: AutoCompleteTextField

2015-05-19 Thread Chris
HI Sven, how is it possible to get the input from the text field when the user does not select one value from the listed choices, but type in some text? I would also like to get this value, but currently the model does not get updated in this case. Thanks, Chris Am 19.05.2015 um 16:36

Re: AutoCompleteTextField

2015-05-19 Thread Sven Meier
Hi, panel.setDefaultModel(searchModel); does your panel pass its model to the repeater component? Regards Sven On 19.05.2015 23:04, Chris wrote: Hi, I have implemented the AutoComplete text field. Based on the input, I would like to change the model of a panel to show an updated list of

Re: AutoCompleteTextField

2015-05-19 Thread Chris
Hi Sven, it works when I set the object of the existing panel’s model but do not replace the model: existModel.setObject(new List…); panel.setDefaultModel(existModel) Why doesn’t it work when replacing the model at all? panel.setDefaultModel(newModel) br, Chris Am 19.05.2015 um 23:11

Re: AutoCompleteTextField

2015-05-19 Thread Chris
Hi, I have implemented the AutoComplete text field. Based on the input, I would like to change the model of a panel to show an updated list of elements. In the below code, the method #getObject of the searchModel never gets executed and the panel’s list is not refreshed. What might be