All Questions
207 questions
0
votes
1
answer
35
views
How to get AjaxRequestTarget from inside AbstractAjaxBehavior?
I'm in Wicket 6 (client won't approve upgrade, we've asked, it's a whole thing).
I have an AbstractAjaxBehavior that I wish to modify the page from. Normally, I'd drop the components to update into ...
0
votes
0
answers
34
views
Wicket ajaxbutton works fine normally, but when triggered with button.click(), a javascript error occurs
Trying to help a colleague with a problem, and I'm kind of lost in the black box. We have some javascript activity that can happen, and at the end of it, we want to effectively check some checkboxes ...
0
votes
1
answer
119
views
Apache wicket 7: how to add a behavior to a label inside enclosure?
I have a legacy block of code as shown:
<wicket:enclosure >
<div class="form-group">
<label class="col-sm-4 control-label">Vorlage</label>
&...
0
votes
0
answers
58
views
Wicket Behavior is working in some cases, and is not in others
I have implemented a wicket behavior as shown below:
@Priority(100)
public class MouseOverTextBehavior extends Behavior {
private final String description;
public MouseOverTextBehavior(...
0
votes
1
answer
57
views
Is possible to add a javascript library from backend multiple time using wicket framework without refreshing the page?
I want to add a javascript library in my page each time when we click on a AjaxLink in apache wicket without refreshing the page. Is it possible to add Javascript library without refreshing the page ...
1
vote
1
answer
49
views
Add add same javascript file multiple time in single page using apche wicket framework. Is it possible?
I using a loop and each time this function is call but it add only one javascript file. But i want to trigger the functionality of that javascript file each time . Can anyone please help me?
@...
0
votes
1
answer
81
views
Wicket static markup IDs
In developing an automated test script, our test team is struggling with the fact that Wicket creates it's own IDs that aren't necessarily stable or predictable.
We could go around and invoke ...
1
vote
1
answer
532
views
How does Wicket get parameters from the request?
We had a penetration tester discover pages in our wicket 6 apps where a javascript injection attack could be successful. Basically put script tags with javascript in them into a form field, save it, ...
1
vote
1
answer
91
views
How to change the href of a wicket container?
With wicket 6.18.0 and Java 8.
I have a simple wicket panel:
<!DOCTYPE HTML>
<html xmlns:wicket="http://wicket.apache.org">
<wicket:panel>
<wicket:container wicket:id=&...
0
votes
1
answer
799
views
Wicket ajax call from client causes error
After a time expires, my client wants us to prompt the user for a possible keepalive to the server. I put an AbstractAjaxBehavior in place, passed the URL to the client and issue the ajax request ...
0
votes
1
answer
163
views
Wicket 6 - Feedback message not showing until request after the request in which it happened
I have an AjaxButton. The event fires, and I'm testing a scenario where I need to add a feedback and return without committing the change. I add the feedback at the page level (our feedback only shows ...
0
votes
1
answer
306
views
wicket 6 custom error message instead of The value of x is not a valid int
I am using Wicket 6, I want to add custom error message for a specific component (TextField).
This field should only accept number within specific value (0-59). This validation works perfectly. ...
0
votes
1
answer
197
views
Wicket reporting same FileUpload object in subsequent requests
I have a panel used in multiple pages in an app we're developing. In this panel is a FileUploadField that uses AjaxFormSubmitBehavior (extended as FileUploadBehavior) on "change" to upload a ...
0
votes
1
answer
100
views
AutoCompleteField onchange/onselect not firing
I'm in wicket 6. I've got an autocomplete field that I want to capture when someone completes the field, either by fully typing a finished ID, or by selecting one from the list and moving on from the ...
0
votes
1
answer
84
views
Is there a way to create a FormComponent with a HTML templet in Apache Wicket
I am writing some Forms in Apache Wicket 6 and have come parts of the forms that have the same fields. Is there a way to create a form component with a html Template like a panel would have a html ...
1
vote
1
answer
95
views
In wicket, how to make the page re-init when back button is hit
I'm using Wicket 6, and we have a situation where a user is hitting back and it's loading the page without initializing it from the page history. I want the page init to run so that data is read ...
1
vote
1
answer
1k
views
Wicket - Keyclock hide org.keycloak.adapters debug logs (logback)
I am pretty new with keycloak and I integrated keycloak with my wicket project.
Integration seems ok, but the debug log continuously displaying this:
12:49:41.808 [http-nio-8080-exec-9] DEBUG org....
0
votes
1
answer
47
views
Prevent PageExpired
i have this problem in my wicket app. i am using wicket 6.13;
This is step by step what happen:
- PageA is opened.
- user click on button close twice or more times, clicking on that button cause PageA ...
0
votes
1
answer
446
views
Wicket - Datatable custom pagination
I am working on wicket datatable which uses built-in pagination feature where data is given through dataprovider. Wicket NavigationToolbar for displays links used to navigate the pages of the ...
1
vote
0
answers
136
views
Multiple Buttons Link under the same column in wicket
Is it possible to provide two button under the same column of a Listview in Wicket
I am able to do the same for two hyperlink but somehow i am facing difficulties in creating two buttons.
Any help ...
1
vote
1
answer
157
views
after selecting 'Choose one' in drop-down in wicket
I have 3 option in drop-down in DropDownChoice in Apache wicket,
and when I select default 3 options it will add one text field with respective to each choice but when I select default 'choose one' it ...
2
votes
1
answer
448
views
Wicket 6 to 8 upgrade: RadioGroup.onSelectionChanged() replacement
We have inherited a large code base that uses Wicket 6 where we have a RadioGroup of preferred contact type choices (SMS, e-mail, etc). When a Radio for SMS is selected, a TextField for phone number ...
0
votes
1
answer
173
views
Hi, I am currently upgrading wicket application from 1.5.3 to 6.30.0 but i am getting error and login page is not getting instantiated
org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor 'public com.ecs.test.web.page.Login()'. An exception has been thrown during construction!
at org.apache.wicket....
1
vote
1
answer
49
views
Handling simultaneous action
I have a GUI screen which consist of 2 buttons, Check Balance and Create Saving. Once any user enters the customer ID and click on 'Check Balance' , details of the customer including their balance ...
0
votes
2
answers
1k
views
Hide a fiedset HTML element with Wicket
I have a fieldset element in my HTML page that I want to hide under some conditions.
I usually hide labels like this.
HTML file
<label class="optional"><wicket:message key="myLabel" />&...
-1
votes
1
answer
214
views
How to show label component when AjaxLink is clicked
When Ajaxlink is clicked, I need to display data from the JSON file. I have implemented the following code which is not working. Please correct my code if I did any mistake. (is it possible to add a ...
0
votes
1
answer
24
views
Wicket implement flash redirection
I would like to perform something like a flash redirection (not sure if it is really called flash redirection).
After a certain action like delete device, I am redirecting to the device list page.
...
0
votes
1
answer
257
views
Text Field with hidden content when read, but visible when writing
I need a text field with the following behavior:
When the field is rendered, the current contents are hidden with password style (******), but if the user tries to edit it, the field gets cleared ...
0
votes
1
answer
42
views
Populate Wicket table with Ajax
Is it possible to have 1 input text field that accepts characters from the user, and as the user types, queries to a webservice are launched, and to update the contents of another component dynamicaly ...
0
votes
1
answer
88
views
Wicket and ajax with Rest service
Is it possible with Wicket to use AJAX but invoking a webservice from a different domain from the one serving the original page?
1
vote
1
answer
575
views
Wicket - Set Model from another panel
I am quite new to Wicket. I am adding a model to a sub-panel(ChartPanel) from a main panel (MainPanel) on a button click.
MainPanel.java
On button click, I am re-adding the chartPanel after I change ...
0
votes
2
answers
286
views
Apache wicket 6.29x, RadioGroup with ListView with AjaxFormChoiceComponentUpdatingBehavior ()
I have a list and each item in this list I have a radioGroup for two options, depending on the choice a field appears for upload, I did very dynamic with dynamic id but the only iteration of ...
0
votes
1
answer
92
views
Wicket stateful pages cause creeping overload from googlebot
We have been using Wicket for several different projects from version 1.5. We recently upgraded to Wicket 8 (from 6 and 7), and we have run into issues with google's crawler. It may have started when ...
1
vote
1
answer
121
views
Is there a way to load string resources from database instead of the wicket properties file?
I need to store the string key value pairs in the database. I want to load them with the Wicket ResourceModel, so no modifications have to be made in the gui part of the application. Is there a way to ...
0
votes
1
answer
166
views
Wicket 6 - Custom JQuery-plugin causes StalePageException
I'm using Wicket 6 for an application and wanted to create a JQuery-plugin which keeps track of a Users' activity.
The idea is to refresh the http session once in a while and if the User has been ...
1
vote
1
answer
2k
views
Form and Enter key submission in wicket7
I have form with Textbox and submit Ajaxbutton, when i insert some value in textbox then click on submit button, will perform some business logic written in OnSubmit of Ajaxbutton, its fine for us But ...
0
votes
2
answers
3k
views
Call Wicket 6 Code from Javascript and return value
I have managed to call my Wicket 6 Java code from Javascript using option A in this example: https://stackoverflow.com/a/42612027/1047418
However, I have not been able to find examples for returning ...
2
votes
0
answers
166
views
Wicket DropDownChoice not working after Wicket migration from 6.9.0 to 7.10.0
My unit test have been running ok before this migration process, but not after it. No code changes, no unit test changes done in my side. I did not notice any changes related to this in Wicket ...
2
votes
1
answer
359
views
Wicket NotSerializableException populating ListView
I'm working on a Web application which uses Spring and Hibernate frameworks. Right now I would like to remove the Serializable interface implementation from my Viaggio.java class, a JPA Entity.
...
0
votes
0
answers
214
views
Getting Session has been Expired for wicket 6.6 in IE and FireFox, working fine in Chrome
1) Upgraded our code from wicket 1.4.9 to wicket 6.6 and from jdk 1.6 to Jdk 1.8
2)First time i am able to log in application, if i click logout and click login
link from homepage getting session ...
1
vote
1
answer
88
views
Cleanup of resources Wicket 6
In Java Wicket 6, I'm trying to find out how to get notified in a Page or Component when that Page / component is no longer used.
The context is I have a configuration service that can have listeners ...
0
votes
1
answer
195
views
Change Model Value of 2nd DropDown in wicket
I have 2 dropdown in wicket and select any value from 1st dropdown then its changed 2nd dropdown list accordingly. Now If i am selecting any value from 2nd dropdown then data should changed, Its fine.
...
0
votes
0
answers
1k
views
wicket DropDown Issue : Could not convert value:
I have a Wicket dropdown which is showing country list in page, below is code in java file
new DropDownChoice("CountryList",
new PropertyModel(Country, "site"),
...
0
votes
1
answer
151
views
Check which Button is active in Wicket
I have a ListView. This is the populateItem-Method:
@Override
protected void populateItem(ListItem<Test> test) {
// TODO Auto-generated method stub
Test t = test.getModelObject();
...
0
votes
1
answer
331
views
Apache Wicket - Forms
Hello I am new to Apache Wicket, can someone help me find some documentation or examples related to Apache Wicket Forms where I can navigate between a flow of screens having Text fields, Drop downs, ...
0
votes
1
answer
411
views
Change class of disabled tab on change of dropdown value
I have 1 dropdown and based on dropdown value tab will be enable or disable. By default I am using getTabContainerCssClass() for all tab and it will show all tab as enable view but i want to change a ...
0
votes
1
answer
871
views
Wicket 6: TextField cursor position moves when component updated
I have a component that wraps a Wicket TextField that, upon update, I validate it's contents via some other outer class responsible for model validation.
If the contents is invalid I update the ...
1
vote
1
answer
954
views
How to implement editable grid with 2 related dropdown in wicket?
I need to show the data from DB in table format with edit, save , cancel, delete button, its called editable grid in wicket.
In Table row after click on edit button data should be shown on 2 dropdown ...
0
votes
1
answer
282
views
Wicket 6 - Prevent jQuery call scrolling page to top using AjaxCallListener
Within my Wicket (6.27) page, I have an AjaxLink. Within this AjaxLink I use an AjaxCallListener to call some javascript to display and his a spinner div that fills the page. The Javascript is a ...
1
vote
1
answer
152
views
Wicket: ShieldUI Chart disappear on update
I'm currently having an issue with the Wicket/ShieldUI combo with regards to Charting.
On page initialization, charts are displayed fine (i.e. the first time they are rendered). These charts are ...