Showing posts with label wicket. Show all posts
Showing posts with label wicket. Show all posts

Sunday, March 18, 2012

Wicket TinyMCE and AjaxButton

TinyMCE is a WYSIWYG editor, that can be used in Wicket to replace your TextAreas with a Rich Text Editor.

Sunday, February 5, 2012

Integrating Wicket with Spring

In this short example I will show you how to integrate Wicket 1.5 with Spring 3. Wicket is a rich web framework that allows creating web applications using simple html and Java code. Wicket has its own IOC/DI engine, but Spring has become a de-facto standard for service layer.

Tuesday, January 31, 2012

My Wicket improvement for StringValue was supported!

Working with Wicket I was sadly surprised by the behaviour of StringValue class. I needed to get optional parameters from URL, such as page number or document id. This parameters may have values, but can be omited and should be replaced by default value.

So I used this code to get page number, default page is 1.

PageParameters parameters = ...
int currentPage = parameters.get("page").toInt(1);  // default value is 1


Unfortunatelly, toInt(1) throwed StringValueConversionException instead of returning 1.