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
24
votes
7 answers

delete version number in url

How can I delete or hide the version number in the URL introduced in Wicket 1.5? Mounting a page doesn't help. http://localhost/MyPage/SubPage?0
rotsch
  • 1,909
  • 16
  • 36
8
votes
3 answers

Wicket 1.5 and obtaining a URL to page instance

What is to correct way in Wicket 1.5 to obtain URL to a page instance? In Wicket 1.4.x this worked: MyPage page = new MyPage(some, parameters); getRequestCycle().urlFor(page).toString() A bunch of different versions of urlFor() were removed from…
Juha Syrjälä
  • 33,425
  • 31
  • 131
  • 183
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
7
votes
1 answer

Get a specific Wicket Component within a Page

What's the way to find a specific (known wicket id) Wicket Component within a Page regarding less effort performance?
cobeete
  • 169
  • 1
  • 3
  • 11
5
votes
1 answer

Render page to string in Wicket 1.5

I'm working on upgrading our existing Wicket webapp to 1.5 and have hit a snag in our renderPage function that we use to render our HTML emails. Previously we used the code referenced/listed in this StackOverflow question and this (currently broken…
jbarz
  • 582
  • 6
  • 17
5
votes
1 answer

Wicket Label not updated / remains invisible

I am trying to implement Breadcrumb Navigation on a WebPage that exchanges a content Panel via ajax. It ends up looking like this: Home >> Page >> Panel Here is my page code: public MyPage() { super(); contentContainer = new…
Yashima
  • 2,248
  • 2
  • 23
  • 39
5
votes
1 answer

Wicket: downloading files after an onSubmit

So what I have is a DataView with three columns, one of which is a checkbox column that allows users to check which files they would like to download. For simplicity's sake (I think); I've decided to compress the files into a single zip file and…
Kevin D.
  • 1,500
  • 1
  • 18
  • 41
5
votes
0 answers

wicket create a dynamic return class from getHomePage

I am building a web application using Wicket 1.5. I need to decide if the user that is currently logged in is an admin or a regular user and display different page for each of them. My code: public class HomePage extends WebApplication { private…
Ggdw
  • 2,509
  • 5
  • 24
  • 22
5
votes
3 answers

Why am I getting "The component(s) below failed to render"?

When I add a ChildPanel to a page, I get an error that states: org.apache.wicket.WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup…
Snekse
  • 15,474
  • 10
  • 62
  • 77
4
votes
1 answer

Migrating wicket 1.4 to 1.5 - PageParameters.getAsEnum()

In wicket 1.4 PageParameters has methods like getAsEnum(String key, Class eClass, getAsInteger(String key, int defaultValue) In official migration guide theres this hint org.apache.wicket.PageParameters.getInt(String) -…
lukaszrys
  • 1,656
  • 4
  • 19
  • 33
4
votes
1 answer

Guice @SessionScoped annotation causes IllegalArgumentException with Shiro HttpSession

I have an Apache Wicket 1.5 application that uses Shiro for security, and Guice for dependency injection. Most of its pages are stateless, but some of my model objects (user data, current menu state, ...) need to be consistent across all requests in…
weltraumpirat
  • 22,544
  • 5
  • 40
  • 54
4
votes
1 answer

Wicket - strange behavior with parameterized StringResourceModel

This is my resource key: Expired {0} days ago This is the definition of the StringResourceModel: new StringResourceModel("store.expired.tooltip", null, Days.daysBetween(expirationDate, refDate)); Expected result would be something like Expired 20…
Stijn Geukens
  • 15,454
  • 8
  • 66
  • 101
4
votes
1 answer

WebSession ClassCastException

I've been trying to subclass Wicket's WebSession so I can implement a basic authentication system. I have followed the guidelines in the Wicket reference library. When I try the following in my WebPage, I get a…
4
votes
2 answers

How do I use html5 calendar input type in wicket

I'm experimenting with HTML5. What I'd like to know is how does Wicket work with HTML5 input types such as date and email, if at all? Currently Wicket uses java script to generate a calendar for date inputs. What complicates this issue is how…
sardo
  • 2,731
  • 3
  • 19
  • 18
4
votes
2 answers

How to add a component to a label?

I have the following html: But label element are not allowed to add a…
cobeete
  • 169
  • 1
  • 3
  • 11
1
2 3
15 16