wicket

protected field vs. protected method vs. implementing interface for action handlers

I have a class that represents a basic page with "go back", "go forward", and "canel" buttons in Wicket. But not all pages have all the buttons, e. g. the first page doesn't have "go back" obviously. My idea is to define a generic ActionHandler public interface ActionHandler { void perform(); } and let subclasses return the actions...

Choosing a Framework for Developing Portlets in WebSphere Portal 6 / 7

I'm part of a team which is evaluating frameworks for developing portlets for WebSphere Portal 6.1.5 (and 7, once we get it). A rough outline of our requirements for the framework are (as many of the following as possible): Support development of JSR-286 compliant portlet applications Should support custom portlet modes AJAX support ...

Jmeter test with Apache Wicket

I've got an application built on Apache Wicket that I want to test with JMeter. But I've got a problem when I submit a form - all fields are empty on the server side. Does anybody test Apache Wicket applications with Jmeter with success? ...

Hibernate is not updating record - Wicket

Hi. I'm working on a web application with Wicket, Spring and Hibernate and I've come across a problem with updating records. I have verified that the saveOrUpdate method is invoked, and that the data in the domain object has changed. The SQL-output does however not display that any changes to the database has been made (UPDATE in exampl...

Wicket AJAX + OnComponentTag

HI guys, I wanted to add an AJAX Event to my Homepage, but it doesn't work! I figured out, that if I delete the onComponentTag function it works well. I have no clue why this happend, maybe you can help me! Thats my Code: final TextField<String> searchInput = new TextField<String>("searchInput", model) { @Override protected v...

Wicket : Notify if page model has been changed.

The problem is like this; A webpage contains multiple form elements, which can be altered and saved by the user via a save button, or changes can be discarded. If the user attempts to navigate away from the page without saving the changes, I need a modal window to pop us asking if the user would like to save the changes before leaving t...

Wicket: how to redirect to another page?

How do I redirect to another page using Wicket? IIRC, some exception has to be thrown in the constructor, but I don't remember which one. Thanks in advance. ...

How to integrate CMS to existing web site

I try to solve problem with integration some CMS to existing web app. Web app is based on java (basic 3-layered architecture). UI layer is based on Apache Wicket framework. Our web app is deployed on Glassfish server. I need to put a new parts to my existing pages, it will be CMS part. For example: I have two divs on web page. Whole pa...

Wicket key event -> get key!

Hi guys, one more question: I created an inputfield and added an AjaxFormComponentUpdatingBehavior ("onkeyup"). Now I want to execute some code only if the right key (space-key) is pressed. How am I able to get the last pressed key? I thought it would be stored in the target attribute but I couldn't find it there... Is there any easy way...

Wicket + Spring + JPA + Hibernate tutorial

Hi, I'm looking for a step by step tutorial on building small web application using Wicket, Spring, JPA and Hibernate assuming that the programmer is advanced in java but new to those technologies (so if the whole set up was included that would be perfect). Could anyone help? Thanks in advance. ...

Set the timeout value in Wicket?

How do you set the timeout value in Wicket without using the web.xml file; I am not using one. My project uses bookmarkable pages which I think prevent the session from timing out normally. ...

Error injecting entity manager with Wicket/JPA

I have an app using Wicket for the presentation layer with CDI/Weld, JPA 2.0, EJB 3.1 etc. (JEE 6) deployed on GlassFish v3.0.1. When I try to inject an EJB into a wicket page using @EJB I get the following error: java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName When I try to inject using @Inject, ...

Porting PHP/jQuery application to Java/Wicket

I'm porting working PHP application to Java/Wicket. I have a lot of complex, well written jQuery/javaScript which I would like to reuse and not change too much. Obviously I have to change urls in ajax calls and rewrite the server side scripts from PHP to Java. I tought this task would be simple but somehow I can't figure out how to write...

Has anybody run Wicket application on Google-App-Engine?

We have a lot of Wicket based applications being run out of a standalone Java Tomcat server. We are planning to move some of this into Google App Engine. Has anybody tried running similar applications (Wicket heavy) on GAEJ? Are there any troubles with session handling in GAEJ (documentation indicates it should work - http://code.google....

Weld injection failing when calling a method from an super/abstract class with Wicket.

Hi all. I am having a problem with weld-wicket. When @Inject-ing an EJB that inherits from an abstract class, if I attempt to call a method from the abstract class I get an ejb-ref error. However if I call a method from the concrete class it works perfectly. I can override methods and call them, and I can delegate an overridden method ...

Wicket: Showing the button during Ajax response

Hi all, I have the problem related to showing the button on the page. There are two buttons called “Upload” and “Save”. On the beginning “Upload” button is visible, while Save button has .setVisible(false). … <tr> <td width="35%" align="right"> <input type="submit" wicket:id="createUploadButton" value="Upload" class="ui-but...

JSF 2.0 vs Apache Wicket

I am pretty happy with JSF 2.0 and I am not familiar with Wicket. If I would switch from JSF 2.0 to Wicket... What would I like most in Wicket? What would I miss most from JSF 2.0? I guess it's only possible to answer this question if you have experience with both frameworks. Please don't compare with JSF 1.x. ...

Wicket 1.4.9 cannot use AjaxRequestTarget from modal after Feedback error!

I create a simple wicket web app for using description this problem when i set require is true at TextField and submit with null value in Textfield. i have got a feedback panel message (This sound good) but my use case i want to get my data from modal windows and send back to this form but it can not AjaxRequestTarget update TextField ...

How to make wicket's quickstart maven archetype for 1.4.9 available in Eclipse?

Hi. I'm using Eclipse 3.6 with the m2Eclipse plugin. Up until now I've been using Wicket's web based quickstart, but I just realised that m2Eclipse allows me to create Maven projects from archetypes within Eclipse. The problem is that the wicket-archetype-quickstart is version 1.4.7, but the newest version of Wicket is 1.4.9. Is it pos...

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 application. However, I haven't spent much time thinking about how to make pages stateless. If...