wicket

A GridView inside a Wizard in wicket fails to render error feedback messages

旧时模样 提交于 2019-12-13 07:15:26
问题 I have a custom Wizard, defined as follows: <wicket:panel> <div> <form wicket:id="form" class="wizard"> <span class="wizardoverview" wicket:id="overview"/> <div class="wizardheader" wicket:id="header"/> <div wicket:id="view" class="wizardpage"/> <span wicket:id="feedback"/> <div class="buttons"> <span wicket:id="buttons"/> </div> </form> </div> </wicket:panel> The wizardpage is in this case a Panel with its own form. This form contains a new Panel, which in turn contains a GridView. The

use wicket without any request associated with current thread

梦想与她 提交于 2019-12-13 06:20:08
问题 Is there any way to use wicket when there is no request associated with current thread. for example i want to periodically send mail and i want to use wicket panels as mail template. but when i use TimerTask . there is no request in this thread. is there any way to manually create request in wicket? or any better way to handle such situations? I try this final MockWebRequest request = new MockWebRequest(null); final NullResponse response = NullResponse.getInstance(); RequestCycle rc =

model is getting updated but pageablelistview not reflecting the change on UI + wicket

。_饼干妹妹 提交于 2019-12-13 06:05:32
问题 So I have this button on submitting it there is some functioning which will be performed and the selected checkbox needed to be removed from the list. The piece of code below shows the usage of that button and the implementation I have done to remove the particular checkbox selection. Button resumeDrive = new AjaxButton("resume", driveSearchForm) /** * */ private static final long serialVersionUID = -7016746377299867219L; @Override protected void onSubmit(AjaxRequestTarget target, Form<?>

Working with JQWicket's AjaxSlider

末鹿安然 提交于 2019-12-13 05:40:20
问题 Once again I'm gonna show my noobiness by asking about the basics. This follow-up question is related to thread: Accessing javascript (Jquery) variables from Apache Wicket I started to work with the AjaxSlider example, I have the value send back to me, but how do I render the slider component again with other parameters? I would like to change the maximum value that can be assigned to that AjaxSlider. Is there an api somewhere about this? [the object for me is to create a label with

Time to timeout session

随声附和 提交于 2019-12-13 05:28:30
问题 Is there a way to find out how long the session of the user remains valid ( until it times-out)? I would like to show this time on a page. I know how to set the timeout, but could not find how to get the current time to time-out. 回答1: I think you should track the time with plain JavaScript in the browser and reset with every Ajax/WebSocket call. You cannot track it at the server because to check the time you need to make a request and this will renew the session. 回答2: There is a

Growable text area in wicket

时光怂恿深爱的人放手 提交于 2019-12-13 05:10:12
问题 I'm looking to create a text area that grows vertically where I can still see the first line of the text. Currently I'm trying to use this: public class GrowableTextArea extends TextArea { /** * */ private static final long serialVersionUID = 1L; int initialRowSize = 1; int fixedColSize = 40; int currentRowSize = initialRowSize; float temp = 1.0f; String inputValue; public GrowableTextArea(String id) { super(id); setModel(new PropertyModel(this, inputValue)); setOutputMarkupId(true); add(new

Error serializing object class - when running Wicket and GAE

谁说胖子不能爱 提交于 2019-12-13 04:49:34
问题 Issues running Wicket with GAE is: [INFO] SEVERE: Error serializing object class com.myapp.app.TemplatePage [object=[Page class = com.myapp.app.TemplatePage, id = 10, render count = 1]] [INFO] java.security.AccessControlException: access denied ("java.io.SerializablePermission" "enableSubclassImplementation") [INFO] at java.security.AccessControlContext.checkPermission(AccessControlContext.java:457) [INFO] at java.security.AccessController.checkPermission(AccessController.java:884) [INFO] at

How can I add a textfield dynamically after clicking a button?

拟墨画扇 提交于 2019-12-13 03:18:42
问题 Can anyone point me in the right direction here. Im wanting to have say 2 textfields initially then the user will be able to click 'add' button and another 2 textfields will be displayed (this needs to be dynamic as the user could click once or a 100 times for example) 回答1: Since it's wicket, it should be Java... I would retag this but my account is to new for that... Put your initial Textfields models into a single wrapper-object and add this to a list (thus containing only one element) and

Wicket image component not found on page

末鹿安然 提交于 2019-12-13 02:28:14
问题 I get the following problem when trying to display a list of items. For each item, I have to display an image which is dynamically loaded via a Wicket WebResource . The items are loaded step by step — 50 at a time — upon user scrolling, using an Ajax scroll. [ERROR] 2011-04-19 09:58:18,000 btpool0-1 org.apache.wicket.RequestCycle.logRuntimeException (host=, request=, site=): org.apache.wicket.WicketRuntimeException: component documentList:scroller:batchElem:666:content:item:3:batchItemContent

Page expired issue with back button and wicket SortableDataProvider and DataTable

只愿长相守 提交于 2019-12-12 21:27:01
问题 I've got an issue with SortableDataProvider and DataTable in wicket. I've defined my DataTable as such: IColumn<Column>[] columns = new IColumn[9]; //column values are mapped to the private attributes listed in ColumnImpl.java columns[0] = new PropertyColumn<Column>(new Model<String>("#"), "columnPosition", "columnPosition"); columns[1] = new PropertyColumn<Column>(new Model<String>("Description"), "description"); columns[2] = new PropertyColumn<Column>(new Model<String>("Type"), "dataType",