wicket

How to integrate Guice 2 into Wicket?

I want to use Guice 2 with Wicket 1.4. There is a "wicket-guice" package, which uses Guice 1. Can someone give me an example how to configure Wicket to use Guice 2 for injection (with Maven). As you can see blow, I've found a solution, but I wonder, if it would be better to use Guice Servlets and register the whole Wicket Application as...

Override Session timeout at runtime in wicket.

Hi All , How can I override session timeout interval during the runtime. Basically at the time of login, user is given an option if wants to be logged in for specific hours say(7). So what I did once user is authenticated , set the max inactiveInterval at the session. WebRequest request = (WebRequest) WebRequestCycle.get().get...

Changes to markup files not getting picked up in wicket project

When I change a html file in my wicket project and reload the page the changes don't get automatically picked up. I have to republish to pick up the changes. Changes to java files get picked up without any problems. I am running a wicket 1.4 project on a websphere 6.1 server. So far I have tried the following steps Validated that relo...

How do I make IntelliJ recognize wicket html tags?

I'm using IntellIJ with Apache Wicket and IntelliJ is showing me that tags like <wicket:extend> and <wicket:container> 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 using IntelliJ Ultimate 9 with the wicketforge plugin. ...

How to do Exception Handling in WIcket.

Hi, I read that wicket can not throw Checked exception. how to deal with this. What is good wany to implement exception handling in Wicket spring based application Mac ...

Why are action based web frameworks predominant?

Most web frameworks are still using the traditional action based MVC model. A controller recieves the request, calls the model and delegates rendering to a template. That is what Rails, Grails, Struts, Spring MVC ... are doing. The other category, the component based frameworks like Wicket, Tapestry, JSF, or ASP.Net Web Forms have becom...

How do you get the selected items in a Wicket ListMultipleChoice?

I'm using a ListMultipleChoice component in wicket and I want to get the selected items. It seems that isSelected is protected so I cannot use it. How do I get the selected items? ...

Spring MVC -> Wicket Integration

Hey everyone, I'm working on porting part of an existing Spring MVC application over to Wicket. I used the wicket-spring library to get the initial integration working, but now I'm stuck with the best way to integrate my Spring Security implementation. I was wondering if anyone could give me some advice on the best way to handle thi...

Using EJB in Wicket WebPage

When I'm using @EJB annotation to access stateless EJB through remote interface in common HttpServlet, it works OK: public class ListMsgs extends HttpServlet { @EJB private Msgs msgsRI; ... protected void processRequest(...) ... { List msgs = msgsRI.getAll(); ... } ... } But when I'm trying the same thing in Wick...

Syntax error results in blank page

I am new to wicket and trying to get some things working. One thing that annoys me a lot is that I get a blank (0 chars of text) page whenever there is a syntax error on a page. Striped down example: Test.html header stuff: doctype ... html ... head ... body ... <span wicket:id="msgTest" id="message">MSG</span> footer stuff: /body ...

How to make a wicket link appear as an image?

I am trying to make a wicket link appear as an image instead of text. I am creating an external link and then placing it on the page. add(new ExternalLink("link", url, "Page name")); <a wicket:id="link"></a> My problem is that I can't put the image in place of "Page name" because it will just set the html as text. I also tried to sp...

Can't reach wicket quickstart from outside firewall

I have a project which, for purposes of server configuration, is just a wicket quickstart archetype. I've added some application code, but haven't really done anything to change the default jetty configuration. I can run and test my application locally using: http://localhost:8080 or: http://bekkar:8080 (my PC's network name) or: http:/...

Wicket - runtime class reloading

Hi, I have classical complaint - rebuilding and reloading the web app takes too long. I want to compile the classes (preferrably from the IDE) or change a static file and let the server check what changed and act approprietly (reload the class/file). What are my options for Wicket + JDK 1.6 ? I'd prefer Jetty, but Tomcat, JBoss AS or o...

Wicket: How to create a dynamic url (e.g. for images)

I am just wondering how I can specify a dynamic url for an image src in apache wicket. I just thought about something like new StaticResourceReference("images/buttons/" + filename+ ".gif") but I cannot find such a class or apporoach. There seem to be ugly workarounds, like the ones mentioned here. I really can't imagine that a popular...

Wicket: On RadioChoice component, invoke form submit, what am I missing

There are some components in wicket that seem to be associated with a form, but I can't get them to actually submit the form. For example, I can create a "submitlink" or button and those components submit: return new SubmitLink(id, form) { @Override public void onSubmit() { this.setResponsePage(pageClass); } }; That...

How to develop one session - multiple window applications in wicket?

How to develop an intranet application using wicket which is able to deal with multiple windows within one common seesion? The multiple windows should work/be used independently (but sharing a common session, for example authorization data) ...

What are the key benefits when upgrading from Wicket 1.3.7 to 1.4.9?

Hi everybody, I am thinking about migrating a larger WebApp from 1.3.7 to the latest stable Wicket version. As some basic things have changed with version 1.4, this will be quite some effort. Apart from Generics, what would be the key benefits of upgrading? From what I have read, I am not sure whether the benefits pay off for the migrat...

Javascript in wicket ModalWindow

Hi everyone! I have next situation: I open ModalWindow and show in it several Panels by clicking on button - and I need to attach some JavaScript on viewing concrete Panel. How can I do it? I tried to add Behavior on my Panel: add(new AbstractBehavior() { private static final long serialVersionUID = 1L; @Overri...

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 mergingService; } The MergingService's implementation's methods are mostly annotated wit...

JSON formatting (Sending JSON via jQuery AJAX post to Java/Wicket server)

I'm using jQuery to post JSON to a Java server, but I think my JSON must be wrong. Here's an example of my data and how I'm sending it: var lookup = { 'name': name, 'description': description, 'items': [{ 'name': itemName, 'value': itemValue }] } $.ajax({ type: 'post', data: lookup, dataType:...