wicket

How to use post method in wicket

大憨熊 提交于 2019-12-02 08:33:32
when I want to redirect in my page to other I use this method exception: throw new RedirectToUrlException("/login/j_security_check?j_username=" + username + "&j_password=" + pass); problem is that this information are visible in browser. How I can send this and use POST method ? POST redirects are a somewhat esoteric edge case with most browsers. Wicket's RedirectRequestHandler currently only supports HTTP codes 301 and 302. POST redirect would require 307, which will also show a warning to the user. That said, what you are trying to do is inherently unsafe. Do not ever send a password back to

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

自古美人都是妖i 提交于 2019-12-02 02:44:05
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 IndicatingX [Button, Link, etc.], or do I have to design my page in a new way? This is not possible. Well,

Wicket - DropDownChoice + ChoiceRenderer - preselecting does not work

天大地大妈咪最大 提交于 2019-12-02 01:52:37
问题 I am creating a form with a select-box in my web application. I am using the DropDownChoice + ChoiceRenderer combination in the below described way. It works fine, but for one thing - in does not preselect default values. I have been struggling with this for quite a long time. I have found several examples on the Internet which were said to work but they didn't work for me. My codebase looks like this (unrelated parts have been omitted or simplified to improve clarity): Business Entities

Wicket - DropDownChoice + ChoiceRenderer - preselecting does not work

纵然是瞬间 提交于 2019-12-02 01:33:17
I am creating a form with a select-box in my web application. I am using the DropDownChoice + ChoiceRenderer combination in the below described way. It works fine, but for one thing - in does not preselect default values. I have been struggling with this for quite a long time. I have found several examples on the Internet which were said to work but they didn't work for me. My codebase looks like this (unrelated parts have been omitted or simplified to improve clarity): Business Entities public class MultivalueType { private Long id; private String label; private String description; public

Invalid lambda deserialization

断了今生、忘了曾经 提交于 2019-12-02 01:19:14
The Eclipse JDT compiler appears to have a problem whereby, under certain circumstances, Java 8 lamdas are not deserializing correctly and instead throw an IllegalArgumentException . I'm using the most recently distributed maintenance build, as follows: Eclipse SDK Version: Luna SR2 (4.4.2) Build id: M20141210-0900 There are existing bugs / SO entries that report similar issues that have been (at least partially) resolved in Luna SR2 (4.4.2) M20141210-0900 . I have personally verified that the following issues have been resolved. Java 8 lambdas that access instance fields and methods can't be

Scaffolding in Wicket

对着背影说爱祢 提交于 2019-12-01 21:21:51
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 to edit Domain Objects (selecting objects for OneToOne and add-remove-controls for lists would be a big

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

橙三吉。 提交于 2019-12-01 13:54:40
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 = WebApplication.get().getServletContext(); ServletRequest request = (HttpServletRequest) RequestCycle

Is there an activity indicator in Wicket?

拈花ヽ惹草 提交于 2019-12-01 13:15:26
I'll make this short: Is there a way / library in Wicket to show an activity indicator? You know, the spinning thing that moves while the user is waiting for something, or is it just a javascript thing? Thanks for your help. If this is an ajax operation then you can look at the implementations of IAjaxIndicatorAware . These implementations will show a 'spinner' while the operation is processing. e.g. IndicatingAjaxButton and IndicatingAjaxLink You could also look at AjaxIndicatorAppender and alter it your own needs for non ajax things ? Check here to generate your own 'activity indicator'.

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

烈酒焚心 提交于 2019-12-01 11:51:48
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. 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 XML to the client with <?xml-stylesheet ... ?> construct embedded. If you want to apply XSLTs to XMLs at

Wicket- RequiredFieldValidator for AjaxEditableLabel

本小妞迷上赌 提交于 2019-12-01 11:49:13
At first I want to say, although RequiredFieldValidator is used in .NET but I use this term for wicket as I want to mean a Label (color: red and text: *) which will be be displayed beside AjaxEditableLabel when the editor of the AjaxEditableLabel will be blank. I have set AjaxEditableLabel.setRequired(true) and it is working, i.e., the Form cannot be submitted. But I am not able to track that red star Label beside the AjaxEditableLabel. What I did so far is : private class TaskTypeSettingsForm extends Form { private static final long serialVersionUID = 10058L; private FeedbackMessageFilter