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
14
votes
4 answers

Define own feedback messages in Wicket

How do I define my own feedback messages in Wicket? For example: if I give an incorrect username, I want to get an error message like "The user name in incorrect, try to login again." instead of using the default error message. What would an example…
Robo
  • 141
  • 1
  • 1
  • 3
14
votes
2 answers

JSF 2.0 vs. Wicket vs. SpringMVC 3.x for special requirements

Searching for a web framework practicable for my few critical requirements in a new Java EE 6 project, I read here the now many threads on this topic, and I finally could reduce the number of envisioned frameworks to JSF 2.0, Wicket 1.4 (among the…
Martin
  • 151
  • 1
  • 6
14
votes
4 answers

How do I make IntelliJ recognize wicket html tags?

I'm using IntellIJ with Apache Wicket and IntelliJ is showing me that tags like and and adding wicket:id to other html tags is not valid. What steps do I need to take to make IntelliJ recognize the wicket tags? I'm…
Alex B
  • 24,678
  • 14
  • 64
  • 87
14
votes
5 answers

Object equality in context of hibernate / webapp

How do you handle object equality for java objects managed by hibernate? In the 'hibernate in action' book they say that one should favor business keys over surrogate keys. Most of the time, i do not have a business key. Think of addresses mapped to…
bert
  • 7,566
  • 3
  • 31
  • 47
14
votes
2 answers

Dynamic markup in Wicket

Is it possible to generate the markup for a MarkupContainer dynamically, i.e. without storing an HTML file for it? I thought about reading the markup as a plain string from the database to offer CMS-like functionality.
Wolfgang
  • 2,367
  • 23
  • 29
14
votes
4 answers

Should I use Spring or Guice for a Tomcat/Wicket/Hibernate project?

I'm building a new web application that uses Linux, Apache, Tomcat, Wicket, JPA/Hibernate, and MySQL. My primary need is Dependency Injection, which both Spring and Guice can do well. I think I need transaction support that would come with Spring…
Trevor Allred
  • 888
  • 2
  • 13
  • 22
13
votes
4 answers

Spring MVC or Wicket?

I have a long (and happy so far) experience with Spring MVC, but lately I'm getting interested in Wicket. My question is also on how to handle (with Wicket) DI, Transaction Mgmt, JDBC connections and all that stuff? Is it okay to mix certain parts…
user1241320
  • 481
  • 3
  • 7
  • 16
13
votes
2 answers

How to use the "Guessed User name" in tomcat manager in a wicket application?

In Tomcat Manager on the Page "Sessions Administration", there is a column Guessed User name. How can i set this column from within my Wicket Session? Note: I have successfully overridden AuthenticatedWebSession.toString() and this value is shown…
Martin Schlagnitweit
  • 2,042
  • 6
  • 26
  • 42
13
votes
2 answers

Is it difficult to make a mainly stateless web application with Wicket?

I've been working with Wicket for month or two now, making simple web applications with it and getting used to models and so forth. Now I'd like to move forward and see if I can put what I've learned so far to use and create a medium/large web…
John
  • 2,571
  • 6
  • 32
  • 40
13
votes
5 answers

Wicket: Relative to absolute URL or get base URL

If I have a relative path to a static asset (flash/blah.swf), what is the best way to programmatically convert this to an absolute URL (http://localhost/app/flash/blah.swf)? Or what is the best way to get the base URL of the Wicket application? I've…
Gilean
  • 14,708
  • 10
  • 45
  • 52
13
votes
1 answer

How to display html text within a Wicket element?

i'm trying to display html i.e. rich text within a wicket element dynamically. An example is like displaying a rich text email within a div tag. how can i get this done with wicket. the wicket Label component doesn't seem to support this. is there a…
Emotu Balogun
  • 305
  • 1
  • 3
  • 15
12
votes
2 answers

How can I get a Spring bean injected in my custom Wicket model class?

In a custom Wicket class, not unlike the following, I'm using a service bean which should be injected by Spring, as defined with the SpringBean annotation (from the wicket-spring project). public class ReportExportFileModel extends…
Jonik
  • 80,077
  • 70
  • 264
  • 372
12
votes
7 answers

Does it make sense to use Google Web Toolkit (GWT) as a full-blown Java web framework?

I am interested in the possibility that GWT could serve as the basis for my entire presentation layer. I would be interested to know if anyone has tried this successfully - or unsuccessfully - and could persuade or unpersuade me from attempting…
karl
  • 393
  • 3
  • 7
  • 14
12
votes
1 answer

Why is jsessionid appearing in Wicket URLs when cookies are enabled?

I notice that the first time a user visits my site the Wicket-generated URLs contain a jsessionid, rather than relying on the cookie for session information. The cookie does get set successfully, and if the user simply reloads the page, the…
George Armhold
  • 30,824
  • 50
  • 153
  • 232
12
votes
5 answers

using images for links with

I'm trying to use an image for a link like so: In the rendered HTML, the href of the is correctly set to my upload page. But curiously, Wicket…
George Armhold
  • 30,824
  • 50
  • 153
  • 232