wicket-1.6

Open new Tab when button is clicked

有些话、适合烂在心里 提交于 2020-01-03 03:13:11
问题 using wicket I want to open a new tab when a button or link is clicked, how can I achieve it? what I have managed to do is to open it in a pop up like this: PopupSettings popupSettings = new PopupSettings("popuppagemap").setLeft(0).setHeight(500).setWidth(500).setHeight(0); // Popup example final Link<Void> setPopupSettings = new BookmarkablePageLink<Void>("searchBtn", HomePage.class) .setPopupSettings(popupSettings); but this opens it in a new window. 回答1: no problem to open a link in a new

How to integrate wicket framework 6.x with plain old jsp

青春壹個敷衍的年華 提交于 2019-12-19 11:48:13
问题 I am looking for examples for how to ingrate wicket 6.10 with jsp We have lots of code written in jsp , which is a good code and we want it to be in our wicket 1. application to contain those jsp files , how can we integrate it ? 2. put jsp files inside wicket panel ? 3. where should those jsp files be ? What I have done was inside web mark up : @Override public void onComponentTagBody(MarkupStream markupStream, ComponentTag tag) { // Set up mock response and dispatch. ServletContext context

support for Multi Window wicket 6.x

扶醉桌前 提交于 2019-12-12 09:55:43
问题 Hi i am using wicket and getting page expire when ever two pages are open and I am trying to submit in on after the other is there a way to support getPageSettings().setAutomaticMultiWindowSupport(true) in wicket 6.8 回答1: You've to know how big your pages will get and how many sessions you've in parallel. I think your page size (serialized) is bigger than maxSizePerSession and because of that only last page is stored on disk. you can tweak your IPageStore settings a bit (but this will

wicket download output stream

感情迁移 提交于 2019-12-11 18:52:37
问题 I want to download csv file , i take the response content and write to it , apprently wicket write after me and the content iam getting is the page html where it should be my csv I have seen in the example the usage of throw new AbortException(); I am using version 6.7 , do you know if my version wicket has somthing instead of it ? or rather I am doing somthing wrong .... can you please help me ... add(new Link<Void>("export") { @Override public void onClick() { WebResponse response =

After Wicket session timeout - pageParameters are null

坚强是说给别人听的谎言 提交于 2019-12-07 23:08:23
问题 I'm using wicket 6. My application is based on WebPages created with pageParameters in the constructor. I'm using also a pageParameter country that is a path-parameter defined with: mountPage("/${country}/pagepath", MyPage.class); I have many statefull forms in every page. I'm now trying to handle the case when the session expires (to reproduce this scenario I delete or modify the jsessionid cookie). After that I click a submit button in a page and I'd expect wicket to understand that the

How to get the AjaxRequestTarget inside Wicket's onBeforeRender() method of a component?

♀尐吖头ヾ 提交于 2019-12-04 13:04:02
问题 I have an Ajax event that triggers the redraw of various Wicket panels. Some panels have additional calculations of their own inside their onBeforeRender() method. If there is an error, I want to display it to the user. But I can't add the FeedbackPanel to the AjaxRequestTarget because I don't have access to it anymore inside the panel that is being redrawn. Is there a way to get the AjaxRequestTarget inside onBeforeRender() of a Wicket component? Is it even possible to add additional

How to integrate wicket framework 6.x with plain old jsp

橙三吉。 提交于 2019-12-01 13:54:40
I am looking for examples for how to ingrate wicket 6.10 with jsp We have lots of code written in jsp , which is a good code and we want it to be in our wicket 1. application to contain those jsp files , how can we integrate it ? 2. put jsp files inside wicket panel ? 3. where should those jsp files be ? What I have done was inside web mark up : @Override public void onComponentTagBody(MarkupStream markupStream, ComponentTag tag) { // Set up mock response and dispatch. ServletContext context = WebApplication.get().getServletContext(); ServletRequest request = (HttpServletRequest) RequestCycle