wicket

JAR or Maven dependency for wicketstuff-dojo

风流意气都作罢 提交于 2020-01-16 18:59:41
问题 I want to use org.wicketstuff.dojo.markup.html.form.DojoDatePicker an so I am searching over internet for maven dependency of wicketstuff-dojo. From MVN BROWSER I found a dependency. But It is not working I am getting "Missing artifact" error. If anybody knows the dependency or location from where I can download the JAR it will be very helpful to me. My pom.xml is: <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope>

How to put a parameter on a wicket link in HTML?

人盡茶涼 提交于 2020-01-15 11:09:43
问题 Wicket has a couple of options for creating links. E.g. this <wicket:link><a href="Page2.html?productId=1694969292874602935">Go to Page 2 </a></wicket:link> This shows it passing in a parameter. However, we cant use as we need the linked to page to popup, and :link autolink page doesnt do this. The only other way to do a link is like this: <a href="#" wicket:id="launchlink">click here</a> The question is, using the above notation, How to I give it a parameter the designers can enter?

Accessing a web application's static resources

随声附和 提交于 2020-01-14 13:00:12
问题 I've just built a very simple Java web application using the Wicked framework. The current layout of the project is: src/ main/ java/ net/myapp/ Homepage.java Homepage.html reources/ scripts/ script.js In the Homepage.html file I am trying to load the JavaScript file: <script src="scripts/script.js"></script> I deployed the application, but the browser doesn't find the JavaScript file. The WAR file is being packaged using the maven-war-plugin. I looked into the WAR file, and I see the

Wicket: concurrent Ajax requests limited to one?

放肆的年华 提交于 2020-01-14 09:05:56
问题 Situation In my Wicket application, I have a page which contains two tags. Each time a tab is selected, its content is fetched via Ajax so that every time you switch to a different tab its content it loaded fresh from the server. On one of the tabs I have an input field which has an onblur event which saves the contents of the field via Ajax. Problem If the focus is on the input field and I click to a blank area of the page, the Ajax request it fired and the data saved. If, instead of

Wicket: concurrent Ajax requests limited to one?

烂漫一生 提交于 2020-01-14 09:04:11
问题 Situation In my Wicket application, I have a page which contains two tags. Each time a tab is selected, its content is fetched via Ajax so that every time you switch to a different tab its content it loaded fresh from the server. On one of the tabs I have an input field which has an onblur event which saves the contents of the field via Ajax. Problem If the focus is on the input field and I click to a blank area of the page, the Ajax request it fired and the data saved. If, instead of

Javascript in Wicket 1.5

倖福魔咒の 提交于 2020-01-14 03:38:11
问题 im looking for the Wicket 1.5 Way of doing the following tasks: Add a external .js File to header of the Page from a Panel. Add a <script>...</script> Tag at Bottom of Page from a Panel Add some Javascript to the onLoad Event of the Body tag There are lots of examples how to do this in Wicket 1.2 and 1.3 but these API are gone. Any good Wicket 1.5 Articles aboutJavascript/Ajax would be great. 回答1: HaBaLeS found it out himself: add(new Behavior(){ private final ResourceReference SOME_JS = new

wicket date range (From-To) validation

蓝咒 提交于 2020-01-13 19:42:29
问题 I have a form where I need to validate DateFrom and DateTo. I have done like this: // start date RequiredTextField<Date> startdateField = new RequiredTextField<Date>("startDate", Date.class); startdateField.add(new DatePicker(){ @Override protected CharSequence getIconUrl() { return RequestCycle.get().getUrlRenderer().renderContextPathRelativeUrl("/image/date-picker.png"); } }); Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE,-1); startdateField.add(DateValidator.minimum(cal

wicket date range (From-To) validation

余生颓废 提交于 2020-01-13 19:42:07
问题 I have a form where I need to validate DateFrom and DateTo. I have done like this: // start date RequiredTextField<Date> startdateField = new RequiredTextField<Date>("startDate", Date.class); startdateField.add(new DatePicker(){ @Override protected CharSequence getIconUrl() { return RequestCycle.get().getUrlRenderer().renderContextPathRelativeUrl("/image/date-picker.png"); } }); Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE,-1); startdateField.add(DateValidator.minimum(cal

Can the Wicket modal window be customized?

帅比萌擦擦* 提交于 2020-01-13 10:14:09
问题 I need to add a button to the title bar of a Wicket modal window. I can't find anything useful in the Wicket API that will help me. Is there any way to customize the title bar in this way? 回答1: According /org/apache/wicket/extension/ajax/markup/html/modal/res/modal.js you can't modify modal window decorator by wicket api because modal window markup defined entirely in javascript. So as always you can select simple but bad way and replace modal.js by your own, or you can hardly true way

Wicket, page stack, and memory usage

谁都会走 提交于 2020-01-12 04:04:31
问题 A Wicket application serializes and caches all pages to support stateful components, as well as for supporting the back button, among other possible reasons. I have an application which uses setResponsePage to navigate from screen to screen. Over a pretty short amount of time the session gets rather large because all of the prior pages are stored in the session. For the most part, I only need the session to contain the current page, for obvious reasons, and perhaps the last 2 or 3 pages to