wicket-contrib-bbcodecomponent
About
Wicket BBCodeComponent Contribution enables you to use BBCode on your wicket page.
Features
- Main BBCode control with buttons
- Tested with FF2
- BBCode Label for displaying
- BBCode TextArea and TextField for editing
- Requires jdk 1.5
- Currently has no validation
Used by
Please insert your site here if using the contrib and its possible for you.
Short Example
Insert this on your page and bling bling you've enabled your wicket page to edit/display BBcode
.
// Editing page : Form form=new Form("form"); add(form) ; // add bbcode controls form.add(new BBCodeControls("bBCodeControls")); // remember to use the TextArea and TextField from bbcomponent else it wont work form.add(new BBTextArea("text", new Model("text"))); // Displaying page : // either use a model or a string add(new BBLabel("bBCodeLabel","[b]bold[/b] text"));
Matching html
// Editing Page <form wicket:id="form"> <div wicket:id="bBCodeControls"></div> <textarea wicket:id="text"></textarea> </form> // Displaying page <label wicket:id="bBCodeLabel"></label>
SVN
svn url https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-bbcodecomponent
See more about checking out from svn here