wicket

Is it possible to change the color of Wicket's activity indicator?

混江龙づ霸主 提交于 2019-12-20 03:19:32
问题 Situation: I'm working with Wicket's IndicatingAjaxButton . I have the button set up on a page with black background. When the user pushes the button, the button's activity indicator goes off and spins until the system is ready to move on. Problem: Because of the black background, the indicator looks bad. Since part of the indicator is animated in black, some of the details are lost using the indicator on a black background. Question: Is it possible in Wicket to change the color of the

Scaffolding in Wicket

元气小坏坏 提交于 2019-12-20 02:36:09
问题 is there any working, supported and maintained scaffolding solution for Wicket 1.5? I know of Wicketopia at two different locations sourceforge and github but this is still targeted at wicket 1.4, brings it's own wicket and mails to the mailinglists didn't trigger any response in months. Wicket Rad but this hasn't been updated in 18 Months Wicket CRUD which seems more like a tutorial or proof of concept than a working solution. I can't belive, that there is no solution out there that allows

How to integrate wicket framework 6.x with plain old jsp

青春壹個敷衍的年華 提交于 2019-12-19 11:48:13
问题 I am looking for examples for how to ingrate wicket 6.10 with jsp We have lots of code written in jsp , which is a good code and we want it to be in our wicket 1. application to contain those jsp files , how can we integrate it ? 2. put jsp files inside wicket panel ? 3. where should those jsp files be ? What I have done was inside web mark up : @Override public void onComponentTagBody(MarkupStream markupStream, ComponentTag tag) { // Set up mock response and dispatch. ServletContext context

What is the best java web application framework that goes well with xml+xslt?

一笑奈何 提交于 2019-12-19 10:19:29
问题 I recently learned a bit about xml/xslt and would like to try it in my web project. What framework would you recommend for that? Basically, I want to generate a dynamic xml that will be applied to xslt stylesheet on the client side. Wicket was my first candidate, but it is primarily html-centric. Didn't manage to get my idea work yet. 回答1: If you want XSLT stylesheets to be applied on the client-side to XMLs received from server (not opposite as you've written :)) you just have to return pure

Using Wicket AbstractAjaxBehavior with jQuery.ajax()

£可爱£侵袭症+ 提交于 2019-12-18 13:23:22
问题 I have used the jQuery AJax call to send JSON as documented here in StackOverflow The problem is that I am not receiving any Data on the server . I can see that the call did reach the target ajax behavior -- but in onRequest() method , the RequestCycle dd not contain any parameters My Wicket Code: AbstractAjaxBehavior ajaxSaveBehaviour = new AbstractAjaxBehavior(){ private static final long serialVersionUID = 1L; @SuppressWarnings("unchecked") public void onRequest() { //get parameters final

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

落花浮王杯 提交于 2019-12-17 10:43:01
问题 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: 'json' }); I'm using Wicket's AbstractAjaxBehavior to receive the data and would like to get a single JSON string that I can parse. When I get a Map of the parameters passed, the keyset looks like this:

Scope 'session' is not active for the current thread; IllegalStateException: No thread-bound request found

青春壹個敷衍的年華 提交于 2019-12-17 02:33:39
问题 I have a controller that I'd like to be unique per session. According to the spring documentation there are two details to the implementation: 1. Initial web configuration To support the scoping of beans at the request, session, and global session levels (web-scoped beans), some minor initial configuration is required before you define your beans. I've added the following to my web.xml as shown in the documentation: <listener> <listener-class> org.springframework.web.context.request

java framework that will not replace javascript

跟風遠走 提交于 2019-12-14 03:59:33
问题 I am planning to write a medium scale web application. The server side technologies will include Java , Hibernate , MySQL and the client technologies will include Html , CSS , Javascript and Jquery . I am looking for the best suitable Java framework for developing web (Struts, Spring, Wicket and so on). I consider myself heavy Jquery user and I really prefer to do client side stuff. Wicket for example has modules like the date picker and other modules ( AJAX ) that should make life easIer

component is a repeater and cannot be repainted via ajax directly

蹲街弑〆低调 提交于 2019-12-14 02:10:16
问题 I created List view which contain 2 textboxes & i want to fill those on ajaxbutton submit. but I am getting this error: Component com.cerebrum.pages.ShowCalculator$ShowCalculatorForm$2 has been added to the target. This component is a repeater and cannot be repainted via ajax directly. Instead add its parent or another markup container higher in the hierarchy. 回答1: You should surround your list view with a WebMarkupContainer and add this markup container to the request target. html code: <div

Why is java.util.concurrent.FutureTask not serializable

南笙酒味 提交于 2019-12-13 19:52:32
问题 I am currently using Apache Wicket. I have some REST calls which take a few seconds each. Wicket allows ajax calls synchronously only, so I was trying to use Future and Callable. This is part of my class: public abstract class GetPrices extends AbstractAjaxTimerBehavior { private static final long serialVersionUID = 1L; private List<Future<List<Result>>> list; public GetPrices(Duration updateInterval, List<Callable> priceCalls) { super(updateInterval); list = new ArrayList<Future<List<Result>