Questions tagged [wicket]

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.

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.

It uses no XML configuration, and POJO Java components are bound to HTML fragments by tags and naming convention. Only configuration needs to be done is in the web.xml to map the Wicket servlet.

3749 questions
8
votes
2 answers

Jetty 7: configuring JNDI for Start.java

Following Wicket 1.5's lead, I'm converting a project from Jetty 6.1.25 to 7.5.0.v20110901. My existing Start.java contains the following setup, which I use to configure JNDI: EnvConfiguration envConfiguration = new EnvConfiguration(); URL…
George Armhold
  • 30,824
  • 50
  • 153
  • 232
8
votes
1 answer

Serving dynamic content with Wicket 1.5

I have my Wicket 1.4 code to have a link to download a file which is generated programatically: protected class MyWebResource extends WebResource { public IResourceStream getResourceStream() { ..... return new…
Adrian Smith
  • 17,236
  • 11
  • 71
  • 93
8
votes
1 answer

Can you make a TextField accept both , and . as decimal separator?

In a Wicket app, I have a decimal number text field: TextField f = new TextField("f", new PropertyModel(model, "share")); I want it to always accept both . (dot) and , (comma) as decimal separator…
Jonik
  • 80,077
  • 70
  • 264
  • 372
8
votes
6 answers

How to test AjaxFormChoiceComponentUpdatingBehavior in WicketTester

In my Wicket application I used one radio button with "yes" and "no" options. If I select "No", I should display one dropdown choice. I wrote code using AjaxFormChoiceComponentUpdatingBehavior. How do I unittest this using WicketTester?
Robo
  • 81
  • 1
  • 2
8
votes
2 answers

Using enums as model object in Wicket

To use an Enum class in a PropertyModel you can write: new PropertyModel(MyObject, "MyEnumClass"); Now this only works if MyEnumClass is defined within the MyObject-class. How can I use a stand-alone Enum-class in a model? Edit: I…
rotsch
  • 1,909
  • 16
  • 36
8
votes
2 answers

How to get the URL to a Wicket shared resource?

The web designer has given me HTML which looks like:
Unfortunately the contents of the image xxx.png is generated by the software, so I have made it a WebResource and…
Adrian Smith
  • 17,236
  • 11
  • 71
  • 93
8
votes
2 answers

How to insert 'sub-rows' into a Wicket DataTable

I have an AjaxFallbackDefaultDataTable which contains one row per test result. A test result may have a note attached to it, which needs to be displayed prominently below the test result, hopefully giving a table similar to the following: | Test |…
spikeheap
  • 3,827
  • 1
  • 32
  • 47
8
votes
4 answers

How does Spring fit into my application architecture?

I'm currently rebuilding an existing PHP application using Java. I therefore have an existing frontend GUI and an existing database schema that I'm working with. Here is the technology stack I'm working towards: jQuery, client-side Wicket,…
Dolph
  • 49,714
  • 13
  • 63
  • 88
8
votes
3 answers

What is the difference between Model, PropertyModel and CompoundPropertyModel in Wicket?

I have started learning Wicket framework and I came across wicket models and I read about Model(), CompouneModel() and CompoundPropertyModel() but I didn't get the actual difference between them. I searched on Google for this, but I didn't get any…
Maddy
  • 105
  • 1
  • 5
8
votes
2 answers

(Wicket) Change visibility during ajax response

I have a AjaxPagingNavigator. Basically on a certain condition, the list which the AjaxPagingNavigator pages is reloaded. When this happens I only want to render the navigator when the list contains more than 1 page. So does anyone know where I can…
Dmitriy Likhten
  • 5,076
  • 7
  • 36
  • 47
8
votes
3 answers

Java/Wicket: Compile Basic Hello World with Resources

I am following this example of a Hello World Wicket application https://www.ibm.com/developerworks/web/library/wa-aj-wicket/ In particular I placed HelloWorld.html in my source directory next to HelloWorld.java. My file structure looks like this: $…
David Williams
  • 8,388
  • 23
  • 83
  • 171
8
votes
5 answers

Wicket: Conditional display in Template

Hy, I want to display a certain part (a div for example) of my wicket-template only under a certain condition (for example only if I have the data to fill it). The problem is: If I only add the panel (filling the div) if I got the data, an exception…
theomega
  • 31,591
  • 21
  • 89
  • 127
8
votes
9 answers

Now with GWT 2, what are the advantages over wicket and likewise?

Apart from the argument of Wicket's simplicity (that is, Wicket is a simpler system IMHO) and GWT's responsiveness in the client (GWT's client side state and JavaScript - potentially complex client side code) and GWT's greater potential for scaling,…
Antony Stubbs
  • 13,161
  • 5
  • 35
  • 39
8
votes
1 answer

How can I post binary html multipart form data in a character-based encoding?

I have a web page that allows a user to upload files using multipart/form data (i.e. with an input type="file" tag). However, here is a web content security filter in my way which is effectively blocking binary form data being submitted. Is it…
David
  • 201
  • 1
  • 2
  • 5
8
votes
2 answers

How can I make Wicket's "AjaxLink" Stateless?

I am building a Wicket web application which is going to have to handle a lot of simultaneous requests. I've setup a test environment and some jmeter scripts to do load testing and I notice I can reduce the CPU and memory footprint of my application…
Rolf
  • 7,098
  • 5
  • 38
  • 55