wicket

Wicket: how to use the BodyTagAttributeModifier class?

i'm trying to dynamically add the class attribute to the body tag, and i came across this class. but i can't seem to understand how to use this class. i have something like this in my page class (or panel class, as i tried with that too): add(new BodyTagAttributeModifier("class", "homepage", this)); this doesn't even compile, saying t...

saving fileds value in ajax Operation by wicket

I have page which some text fields are added to it by ajax depending on user selection by some radio buttons but when user clicks on a radio and add a textfield, values of other fields miss. and I want to save the value of text fields. what should I do? ...

Localizing labels in org.apache.wicket.extensions.yui.calendar.DatePicker

Does anyone know how to localize the "Month", "Year", "Okay" and "Cancel" labels of the org.apache.wicket.extensions.yui.calendar.DatePicker? According to the API you can override the the localize(Map) method to set up localized Strings, but i failed to find out what the names of the corresponding properties are. ...

Does Wicket hamper SEO or search engines ability to crawl?

We're coming from GWT projects and because of problems with SEO not liking GWT for our next project we're going to move clear of GWT (mainly because seo is a high priority for this next project). In choosing a new framework, I'm looking at Wicket and liking what I've seen so far. I've only done a few tutorials, but in looking at the wa...

Can the Wicket modal window be customized?

I need to add a button to the title bar of a Wicket modal window. I can't find anything useful in the Wicket API that will help me. Is there any way to customize the title bar in this way? ...

Wicket directory structure

Hey! I'm trying to figure out the directory structure of wicket. I don't get it at all! Let's say I wanna load an image with images/logo.gif or something like that. Where do I have to place the images folder? Please help me with this! ;) ...

Anonymous inner class in groovy

I am looking into the groovy-wicket integration and lack of anonymous inner classes seems to be a problem when writing the event handlers. Is there a groovier way of writing this code import org.apache.wicket.PageParameters import org.apache.wicket.markup.html.basic.Label import org.apache.wicket.markup.html.link.Link import org.apache....

Can I update the HTML files using Wicket and Eclipse without recompiling the classes?

I'm using Eclipse and Maven-2 and I'd like to be able to edit my HTML files without "it" (not sure if it's Eclipse or Maven) recompiling my application. I understand that usually Eclipse tries to do a hot replace of new compiled Java classes with Eclipse and Tomcat. Can I use something like this? getResourceSettings().setResourcePollFr...

Should I use Spring or Guice for a Tomcat/Wicket/Hibernate project?

I'm building a new web application that uses Linux, Apache, Tomcat, Wicket, JPA/Hibernate, and MySQL. My primary need is Dependency Injection, which both Spring and Guice can do well. I think I need transaction support that would come with Spring and JTA but I'm not sure. The site will probably have about 20 pages and I'm not expect hug...

signoutForm on stateless page

hi i have a web site which is created by wicket(java) but in special cases i got following error. WicketMessage: unable to find component with path signoutForm on stateless page [Page class = ir.pnusn.ui.Dispatcher, id = 1, version = 0] it could be that the component is inside a repeater make your component return false in getStatelessH...

apache wicket texfield null

before call protected void onSubmit() { , what method is called by wicket? my texfield string loginName is null ,but if i close the browser and restart the browser and view the page, i able to see the textfield string loginame is populated with value i entered in the textfield. > <td class="label"><wicket:message > key="log...

Wicket Dynamic Image URL

Short question: I need to turn a dynamic image pulled from a database into a URL without adding a component to the displaying page (such as using a NonCachingImage) using Wicket. The perfect solution (that I've implemented in other Frameworks) is simply to create a page that takes the image ID as a url parameter and renders the image to...

What is the purpose of using a distinct class for each tab in Wicket?

The Wicket examples page for TabbedPanel (link) uses separate, distinct classes for each tab (TabPanel1, TabPanel2 and TabPanel3). Is there a reason to not just use three instances of the same class? If yes, what is it? I'm still fairly new to Wicket, but those classes look identical to me. EDIT: I ran a simple example, using three o...

SmartGWT alternatives

I have been using SmartGWT but have run into trouble mixing SmartGWT with other frameworks such as Wicket. Infact it has been a bit of a disaster and I regret going with it in the first place. I do not want this question to turn into any type of flame war, so therefore would just like people to list alternatives and their experience wi...

Tomcat performance issue

I've got a web application that's running really slowly and occasionally hanging. It's a school-related Wicket app with reporting and editing, and also a servlet which is used by automated clients to get/post data via HTTPS. During busy times where a lot of editing/uploading/downloading is going on, the app becomes sluggish and unrespo...

Globally accessible resources in Wicket application

Currently, I have an Application which consists of a BasePage which as a header (panel), footer(panel) and in the center for inherited page content. The problem I am running into is with ResourceReferences (Perhaps this isn't even the right way). I am looking for a solution which will allow me to do the following: Have a single direct...

Clojure: extend Wicket panel and call to panel methods

Currently I'm trying to create sample Wicket page with Clojure (in existing wicket project). Code looks like this: (ns a.set.of.packages.dataview.info.EmptyNodeInfo2Panel (:import [a.set.of.packages.tree TreeModelBean] [a.set.of.packages.dataview.supplemental GenericHeaderPanel])) (gen-class :name a.set.of.packages.dat...

How to control submit url action in Wicket form?

Hi, I have a wicket web application with Page mounted to bookmarkable alias. The page contains a form object with submit action. The problem is that though the form belongs to the page the action url doesn't contain page alias, but rather created in cryptic form of wicket action. Is there a way to adjust that behavior, so link will b...

Image referencing in CSS with Wicket

Per a great answer from another question I have begun mounting global resources (css/js/images) in the init() method of my WebApplication. Using the following: mountSharedResource("/images/edit-btn.gif", new ResourceReference(GlobalResource.class, "edit-btn.gif").getSharedResourceKey()); This of course allows css in another package to...

How can I correctly remove an AjaxSelfUpdatingTimerBehavior from a component in Apache Wicket?

I'm having trouble with adding and then removing an AjaxSelfUpdatingTimerBehavior in Apache Wicket. The behaviour gets added okay but then as soon as I remove the behavior I get a "Page Expired" come up in the browser very soon, I guess because the removal wasn't clean. My set up is basically a label which starts changing by timer, and...