Questions tagged [wicket-1.5]

Apache Wicket, commonly referred to as Wicket, is a lightweight component-based web application framework for the Java programming language conceptually similar to JavaServer Faces and Tapestry. This tag is specific for wicket 1.5 since many changes have been done to the API in this version in a way that questions need to be answered in a different way for this version.

238 questions
4
votes
0 answers

How to reset response in Wicket 1.5

In wicket 1.4 webResponse.reset() cleans buffer. But in wicket 1.5 there is a some kind of garbage left. Response: And then my valid json follows. WebResponse webResponse = (WebResponse)…
4
votes
1 answer

how can I know if the user has left the page in wicket?

I am searching for a way to know when the user leaves the page and has not saved the changes then show wicket's modal(preferable but could be a confirmation box). Additional info: the solution should have minimal effects in code, because I have…
osdamv
  • 3,493
  • 2
  • 21
  • 33
3
votes
3 answers

Scaffolding in Wicket

is there any working, supported and maintained scaffolding solution for Wicket 1.5? I know of Wicketopia at two different locations sourceforge and github but this is still targeted at wicket 1.4, brings it's own wicket and mails to the…
Nicktar
  • 5,548
  • 1
  • 28
  • 43
3
votes
3 answers

Wicket "nullable" component view

Quite frequently, I'm using custom Wicket components to render model objects. Objects can sometimes be null, in that case a specific div is displayed. In the component HTML rendering code, I thus have two div's, one for the "null" case, and one for…
Laurent Grégoire
  • 4,006
  • 29
  • 52
3
votes
3 answers

How to set a custom BigDecimal converter to a TextField in Wicket 1.5?

Going from 1.4 to 1.5, there seem to be many undocumented changes in addition to the documented ones. In 1.4 I had: new TextField("capitalInput", new PropertyModel(model, "capital")) { @Override public…
Jonik
  • 80,077
  • 70
  • 264
  • 372
3
votes
1 answer

AjaxLink stopped working in Wicket 1.5

Java: item.add(new AjaxLink("edit"){ @Override public void onClick(AjaxRequestTarget target) { setResponsePage(new UnitPage(unit)); } }); HTML: This worked fine in 1.4 - clicking the…
NeillR
  • 107
  • 7
3
votes
2 answers

WebResponse.getOutputStream() in Wicket 1.5?

This code was working for me in 1.4: WebResponse response = (org.apache.wicket.request.http.WebResponse) getResponse(); response.setAttachmentHeader("List.xls"); response.setContentType("application/ms-excel"); OutputStream out =…
NeillR
  • 107
  • 7
3
votes
1 answer

How can I get the responsePage from a RequestCycle in Wicket 1.5?

In Wicket 1.4 I used my own WebRequestCycle to store the page in the session when it was detached - in order to implement a 'back' link. getRequestCycleListeners().add(new AbstractRequestCycleListener() { @Override public void…
Duncan McGregor
  • 17,665
  • 12
  • 64
  • 118
3
votes
3 answers

Components not reloading on url change in Wicket 1.5(.2)?

I navigate to my application the first time with following URL: .../homepage/?0&user=x In debug mode I see wicket is nicely instantiating my panels and such (obviously). if I change the URL to: .../homepage/?0&user=y then nothing happens, the…
Stijn Geukens
  • 15,454
  • 8
  • 66
  • 101
3
votes
2 answers

Add CSRF protection header to wicket ajax call

I'm editing a webpage made using Apache Wicket. And we want to add some CSRF protection to the website. Wanting it to be stateless we want to use a double submit pattern. For forms we will probably end up using a hidden field that will contain the…
redspider
  • 401
  • 1
  • 6
  • 21
3
votes
1 answer

Multiple paths for one class in Apache Wicket

I have Wicket app, in WebApplication I do: public class AppStart extends WebApplication{ public AppStart(){ } @Override protected void init(){ super.init(); mountPage("/index.html", StandardPage.class); …
1ac0
  • 2,875
  • 3
  • 33
  • 47
3
votes
1 answer

Wicket 6 !continueToOriginalDestination: operator ! is undefined

Situation I'm migrating a project from Wicket 1.5.7 to Wicket 6.12, one of the errors I get is explained below. Code @Override protected void onSubmit() { final String usernameValue = mail.getModelObject(); //Password is…
Nick N.
  • 12,902
  • 7
  • 57
  • 75
3
votes
1 answer

Wicket session stored in database

Is it possible to store Wicket session data in database (of any kind)? For example in MySQL, Redis, MongoDB? Or to persist data on filesystem between restarts of application server? I'm mainly interested because when developing, it's a pain after…
Jakub Kulhan
  • 1,572
  • 2
  • 16
  • 37
3
votes
1 answer

How can I properly create a stateless form and stateless results page in Wicket

I have a web application with a complicated form that: performs field validation, converts the value to an input format(array) that is easy to parse for the next page. redirects the user to the next page (data is passed in the URL) The next page…
Raystorm
  • 6,180
  • 4
  • 35
  • 62
3
votes
2 answers

Apache Wicket bookmarkable url added one additional parameter to the link, why?

my map is mountPage("/page/#{code}/#{name}", Page.class); but when I click on the link localhost/page/10/toy?2 wicket add also one parameter like a counter, when I refresh the page I have localhost/page/10/toy?3 why?
Armen Arzumanyan
  • 1,939
  • 3
  • 30
  • 56
1
2
3
15 16