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
12
votes
3 answers

How to pass bounded wildcard type argument in Kotlin?

The class used (in Java, third party API, not changeable): public class BookmarkablePageLink extends Link { public BookmarkablePageLink(final String id, final Class pageClass) And now I want to call this from…
Hendy Irawan
  • 20,498
  • 11
  • 103
  • 114
12
votes
6 answers

GWT vs Apache Wicket

Both GWT and Wicket are stateful, java object oriented based. GWT is completely client based with features like javascript optimization, CSS optimization, and I'm pretty new to Apache Wicket. The more I read about Wicket the more similar it feels to…
Kasturi
  • 3,335
  • 3
  • 28
  • 42
12
votes
2 answers

Localizing HTML submit button label in Wicket

How do I put a localized message on the face of a submit button? I am using Wicket, and normally to use a localized message, I'd use something like I have an HTML button defined as
joshua
  • 4,118
  • 3
  • 40
  • 53
12
votes
6 answers

Simple way to use parameterised UI messages in Wicket?

Wicket has a flexible internationalisation system that supports parameterising UI messages in many ways. There are examples e.g. in StringResourceModel javadocs, such as this: WeatherStation ws = new WeatherStation(); add(new Label("weatherMessage",…
Jonik
  • 80,077
  • 70
  • 264
  • 372
12
votes
3 answers

How does Wicket's @SpringBean annotation work?

How does Wicket's @SpringBean annotation work? Does it use reflection at run time? Does it make the compiler inject some code? Or what?
Tarquila
  • 1,167
  • 3
  • 11
  • 17
12
votes
2 answers

not able to put the values in the MDC

I am trying to log few values in the onBeginRequest() of RequestCycle() in wicket. But the values are not being logged in the debug file. I am putting the values in the MDC in RequestCycleListeners(). Following is the…
Ram Dutt Shukla
  • 1,351
  • 7
  • 28
  • 55
12
votes
1 answer

Make Apache Wicket load jquery for all pages

I've got some javascript going on on my pages in addition to Wickets use. However, Wicket only loads jquery on pages where it sees that it is needed. Is there any way to make Wicket load jquery on all pages? I'd hate to include jquery a second time.
thoredge
  • 12,237
  • 1
  • 40
  • 55
12
votes
2 answers

Example of wicket atmosphere with channel

I just saw new features released at wicket 6.40. And I am interested to see example code of the atmosphere channel. Where can i find the example of this feature? Thanks.
code_fish
  • 3,381
  • 5
  • 47
  • 90
11
votes
2 answers

How do I keep entities (or their associations) attached to the current persistence context across multiple requests (using Wicket & JPA)?

I am working on a Wicket-based web app on Java EE. I am trying to find a way to ensure that any entities used as model objects are always attached to the current EntityManager before Wicket tries to render any components. This way, when the…
pbitty
  • 151
  • 6
11
votes
3 answers

How do I mimic HybridUrlCodingStrategy in Wicket 1.5?

We have an existing Java Wicket 1.4 application which uses the HybridUrlCodingStrategy extensively: mount(new HybridUrlCodingStrategy("/myurl", MyPage.class)); This results in our URL's looking…
ThePizzle
  • 1,086
  • 4
  • 12
  • 20
11
votes
6 answers

How do I change link-text in Wicket?

I created a link with static text. That works fine but now I also want to change the text when you click the link. I got as far as this: add(new Link("doAnything") { @Override public void onClick() { // change the text! …
Sylvus
  • 165
  • 1
  • 3
  • 7
11
votes
1 answer

How to programmatically get transaction manager in a thread?

I have a wicket page , which contains two Spring-managed beans , one is DAO , another is Service Object : public class MergeAccountsPage extends WebPage { @SpringBean private MergeEmailDao mergeEmailDao; @SpringBean private MergingService…
smallufo
  • 11,516
  • 20
  • 73
  • 111
11
votes
1 answer

How to send binary multipart formdata as base64?

Possible Duplicate: How can you encode to Base64 using Javascript? I have a web application based on Java, Wicket and JQuery which has a function to enable users to upload files (images, pdfs, rtf) through multipart/form-data. Our web security…
David
  • 201
  • 1
  • 2
  • 5
10
votes
5 answers

In the Wicket DropDownChoice how can you replace "Choose one" to another text

I have a DropDownChoice like below: final DropDownChoice terms = new DropDownChoice("terms", new Model(), new Model(new ArrayList(termDao.findAll())), new IChoiceRenderer() { public Object getDisplayValue(Term object)…
Gollie
  • 169
  • 1
  • 1
  • 8
10
votes
2 answers

How to open ModalDialog on PageLoad

How can I open a modal dialog on PageLoad(), in the constructor of the WebPage and without the AjaxRequestTarget, with Wicket?
sonjafon
  • 363
  • 2
  • 8
  • 17