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...
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...
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...
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.
...
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
...
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...
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?
...
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...
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...
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 ...
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...
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:/...
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...
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...
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 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)
...
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...
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...
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...
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:...