Questions tagged [wicket]
Apache Wicket, commonly referred to as Wicket, is a lightweight component-based web application framework for the Java programming language conceptually similar to JavaServer Faces and Tapestry.
3,708
questions
0
votes
1
answer
30
views
Panel replace component method cause detach model page in Wicket 9.10.0
I used the wicket hello page to reproduce an error i think and i am trying to find a solution.
I have a detachable model in a page used in panels and components. This model will make several queries ...
0
votes
1
answer
33
views
An unexpected error has occurred: IllegalStateException: onConfigure() in the hierarchy of EditContactDetails has not called super.onConfigure()
I am trying to open modal window via on click event using Wicket. It worked completely fine in version 7, but after upgrading to Wicket 9, ModalWindow class that we use, became deprecated and this ...
0
votes
1
answer
34
views
Wicket different handling on page propertyModel depending on RuntimeConfiguration
So I have a Wicket 9.10.0 application, running under Java 17.
By the way: Wicket is great work, thanks to everyone working on the project.
We have a page managing mutations to domain entities using ...
0
votes
1
answer
38
views
Set default value for Radio Choice - Wicket
I want to set my Radio Choice to "Sim" by default, how can I do that?
My custom Radio Choice class:
package com.sges.web.components;
import java.util.ArrayList;
import java.util.Arrays;
...
0
votes
0
answers
48
views
Wicket 9.9.1: Unexpected RuntimeException Last cause: Component 'x:x' has been removed from page
I have a Wicket 9.1.1 application, running under Java 11 and Payara 5.201.
The latest version of this application is currently being tested by a professional tester prior to release. His work style ...
0
votes
0
answers
20
views
Wicket Ajax File Download and Component Update in one go
Question 1 - We have a very old legacy app that is in wicket 1.4 and the client won't let us take the time to upgrade it because it's going to be replaced. Except they've been saying it will be ...
0
votes
1
answer
38
views
Apache Wicket with Spring version dependencies
Is there any known version dependencies between Apache Wicket and Spring? Couldn't find any from the Wicket or Wicket-Spring bridge documentation .
For example can Wicket 7 be run with Spring 5, ...
1
vote
1
answer
55
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, ...
0
votes
0
answers
28
views
Exceptions in criteria API after changed hibernate.criteria.literal_handling_mode
I have a software which used java, ejb, hibernate and wicket.
After I changed hibernate.criteria.literal_handling_mode on "bind" I get some exceptions in criteria api query
Query
TypedQuery&...
1
vote
0
answers
33
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
32
views
Compile error on connot access org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator
I have problem with my maven build. It throws error
[ERROR] \Users\pkostrou\IdeaProjects\dhl-wc-1.2.30.0\src\main\java\com\dhl\web\component\table\CheckboxPropertyColumn.java:[8,66] error: cannot ...
0
votes
1
answer
38
views
java.lang.ClassNotFoundException: org.apache.wicket.settings.def.JavaScriptLibrarySettings
I have wicket application and it sometimes fails on :
java.lang.NoClassDefFoundError: org/apache/wicket/settings/def/JavaScriptLibrarySettings
java.base/java.lang.ClassLoader.defineClass1(Native ...
0
votes
0
answers
27
views
How should I handle 404 error for resources in wicket?
I have an ExamplePage written in wicket 7.18.0 and I have some images in that page. How should I handle those images if it is returning 404 error? I would like to keep the page functional though the ...
0
votes
2
answers
79
views
Upgrading Wicket 9.0.0 to 9.3.0: runtime error when try to access database
I am attempting to upgrade from Wicket 9.0.0 to Wicket 9.3.0. When I change the version in a quick-start application, everything is fine.
The problem occurs in my real application, where we were ...
0
votes
1
answer
29
views
Wicket (9.8.0) application using EJB injection throws exception while deploying on Payara 5.201
I am trying to use WicketTester for application containing EJB injection related code.
I created application using 'wicket.apache.org/start/quickstart.html', and deployed it on Payara server '5.201'.
...
1
vote
1
answer
44
views
Wicket 9: stale page exception no longer handled by recreating the page
After upgrading from Wicket 1.5 to Wicket 9, our users now may sometimes cause a Stale Page Exception by:
Duplicating a tab
Clicking a link, submitting a form, etc., in the second tab
Returning to ...
-1
votes
1
answer
23
views
WicketTester fails if wicket page accesses system properties
I am trying to use WicketTester to test my pages.
On some pages I access System Property. The value read affects display of page. However when I try to test these pages using WicketTester, '...
0
votes
1
answer
22
views
Accessing attributes of session throws NullPointerException error, when using WicketTester
Accessing attributes of session throws NullPointerException error, when using WicketTester.
There was similar question asked earlier
wicket 9: unit testing + mockito + httpSession
The discussion their ...
0
votes
0
answers
52
views
Wicket change ListView on DropdownChoice change
I'm trying to update a ListView of checkboxes when the dropdown choice is changed.
I've managed to get this working to that update point it's called correctly but I'm stuck with updating the ListView.
...
0
votes
1
answer
84
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
47
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
0
answers
49
views
captcha supports accessibility
I am implementing a captcha in my application, where I had an old one does not support accessibility.
I have searched a lot, so I found google reCAPTCHA, but this has privacy concerning since the ...
0
votes
1
answer
87
views
What might cause a page expired error with Apache Wicket, any versions
We are getting page expired exception intermittently when clicking around, what might cause this error.
Apache Wicket, older versions 5.
Also this might be some cause of it with second level cache:
...
0
votes
1
answer
39
views
Select specific localization of Wicket message in HTML
Is it possible to force the language of a Wicket message in HTML?
I have a few wicket pages and generic components that are used both when the user's locale is known and when it is not known. When the ...
0
votes
1
answer
53
views
Form generator with CRUD operations for Wicket
Some related questions have been posted on this topic, but for Wicket specifically they date back to almost a decade ago. What are some modern day solutions to creating a table (data pulled from a ...
0
votes
1
answer
68
views
How to implement CSS into Wicket 9.8.0
Despite using the <wicket:link> tags around my <link> tags my CSS is still not being applied to my HTML even with some attempts to move the css file into my webapp folder (Currently its in ...
0
votes
1
answer
37
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
0
answers
66
views
Apache Wicket onConfigure() executed before onInitialize()
I was facing some problems with a button component, and when I tried to debug, I found out that instead of their normal execution order, the buttons constructor was executed first, the button's ...
1
vote
0
answers
49
views
add an error message to panel in apache wicket
I have an apache wicket panel for google recaptcha where I integrate wicket with google recaptcha and everything is working as it should, but I need to add an error message or feedbackpanel I am not ...
0
votes
0
answers
42
views
Loading icon on IndicatingAjaxButton and IndicatingAjaxLink not showing
I am having issues with the loading icon on the IndicatingAjaxButton and
IndicatingAjaxLink. Previously I was on Wicket 9.0.0-M4 and the icons were working
fine. But after upgrading to Wicket 9.0.0-M5 ...
0
votes
0
answers
261
views
Integrate liferay 7.4 recaptcha with MVC Portlet and apache wicket
I have an old application uses wicket 1.4 and want to integrate the liferay reCAPTCHA ( liferay 7.4).
Is there any guide for that?
Or anyone might help ?
It worked for MVC portlet like the following ...
0
votes
1
answer
49
views
LoadableDetachableModel is not refreshed onSubmit and the model is removed from the page
I am trying to query table and re-render the LoadableDetachableModel with result list.
Table is empty upon page initialization.
After onSubmit method call the table is removed from the page and model ...
0
votes
1
answer
45
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 ...
3
votes
1
answer
82
views
Stylesheet refused by browser with wicket and spring-boot
I am trying wicket with spring-boot integration and I am trying to simply add a stylesheet to a very simple page. So I placed the stylesheet in resources/static/css as usual in Spring-boot and in fact,...
1
vote
1
answer
44
views
How to change the default option choose one to user defined one like select country?
Am trying to change the default drown down choice from choose one to select country. Is there a way to put custom value
Thanks
0
votes
1
answer
58
views
wicket 9: how to test downloading a resource
I have a component which allows a user to download an excel file after clicking a link.
It works and everything is fine, but I don't know how to write a test for this component.
I want to write a test ...
0
votes
1
answer
105
views
wicket 9: unit testing + mockito + httpSession
A Situation
I'm using wicket 9 for a web gui development. And now I'm trying to do some junit testing by mocking (mockito) methods that are not essential. One of those methods is
httpSession....
0
votes
2
answers
62
views
wicket 9: Testing page rendering. How To find a path to a component, link, etc
I want to use wicket tester to test my web application, however I'm totally lost on
what is a path and how to come up with one while testing certain components and behaviour
i.e
public void ...
1
vote
0
answers
127
views
redis-backed spring-session in wicket app, problem with ajax calls resulting in full page redirect
I'm trying to modify a wicket application to store the session in redis via spring-session. The session is showing up in redis, but I've run into a problem that whenever the application makes a ...
0
votes
1
answer
86
views
Wicket + websocket page not refreshing because CSRF attack
In my application I need to use websocket. I follow this example so in my wicket application I got:
@Bean
public FilterRegistrationBean wicketFilter() {
final FilterRegistrationBean wicketFilter = ...
0
votes
0
answers
57
views
wicket 9: error while trying to login using firefox
I have a simple login page
An excerpt
Button button = new Button("SignIn");
AjaxEventBehavior onClick =
new AjaxFormSubmitBehavior(form, "click") {
...
0
votes
1
answer
30
views
Disable Wicket CheckGroup without disabling the rest of the form
I have a form with a CheckGroup and a PropertyListView. Each item in the list view has a Check belonging to the check group and a AjaxFallbackLink. When I disable the check group, the whole form gets ...
1
vote
1
answer
41
views
Wicket 9: allow user to prolong a session
Let's say that user session is about to expire. Before it expires I want to give an opportunity
to a user to prolong his / her session, i.e modal window asking to continue or invalidate session.
How ...
3
votes
0
answers
41
views
Wicket alike property substitution
When reading properties in a Wicket Application we can have properties like this and the values will be automatically replaced with the values of the model object.
weather.message=Weather station ...
0
votes
1
answer
41
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
0
answers
55
views
Error while executing an Uber/ Fat Jar for a wicket bootstrap application
The gradle bootJar task creates a fat / Uber jar for my wicket bootstrap application.
when i try to launch the application using command java -jar app-all.jar , i get to see an exception as below
...
0
votes
1
answer
88
views
Wicket: double login required due to extended browser info
I have a Wicket 8.6 application. Currently, when logging in to the application, mostly (does not always happen) the user has to login twice. After the first login (after entering the credentials and ...
0
votes
0
answers
77
views
How to add button to call java method
I have tried to code at below, but the java onSubmit() seems not get called. I also tried to add onclick to the button and called to a method but it still not get called
reschedule.java
...
0
votes
2
answers
113
views
How to render correctly first column in GridView component?
I am displaying a meal week calendar using a GridView component. I added to the first column (with newRowItem() method) a label with name: 'Breakfast', 'Lunch', 'Supper', 'Dinner' etc...
When I click ...
0
votes
1
answer
44
views
How to use default value in wicket image
I want to show logo of team, but team or their logo can be null. When there is null I want to use some default image in my context path. Is there some options how to use default value when value from ...