Questions tagged [wicket-6]

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. This tag is specific for wicket 6.x since many changes have been done to the API in this version in a way that questions need to be answered in a different way for this version.

284 questions
13
votes
1 answer

wicket 6.0.0-beta2 Updating content of DataTable when submitting a form with AjaxButton

I want to change the content of a DataTable depending on the content of a form (think of it as a searchbar functionality). I used to do that in wicket 1.5.x but I can not seem to make it work in wicket 6.0.0-beta2. It does not seem to enter in the…
jrochette
  • 1,117
  • 5
  • 22
7
votes
1 answer

How to set a button enabled=false after clicking on it in Wicket?

What I want: if I click on a button, it should be NOT enabled (not clickable) BEFORE the other methods (in the clicking) would finish, only AFTER the methods' end. Here is my code to the button: @Override protected void onInitialize() { …
victorio
  • 6,224
  • 24
  • 77
  • 113
6
votes
1 answer

WicketTester how to get html output for component?

I want to check if a given component has a CSS class set. To do this, I would like to get the HTML output for just that specific component. WicketTester can provide the HTML output for the entire rendered page. What would be the best approach to…
Rob Audenaerde
  • 19,195
  • 10
  • 76
  • 121
5
votes
1 answer

Wicket autocomplete text field does not update model when selecting by mouse click

I have wicket's AutoCompleteTextField. To update the model I use 'onblur' event. And I need to refresh text field after 'onblur' event happens, because there is validation required. Here is code sample to illustrate the issue WebPage…
ComeOn
  • 120
  • 8
5
votes
1 answer

Reusable DropDownChoice in Wicket Form

In my project I have more than 50 forms, and they are mostly simillar to each other and use the same DropDownChoice component. May I create separate Panel, where I define my DropDownChoice, and after that I will use that Panel in my another forms?…
BSeitkazin
  • 2,889
  • 25
  • 40
4
votes
1 answer

Wicket AjaxTabbedPanel tab navigation needs second click

I have recently picked up Wicket and built a single page web application with multiple tabs. I have used AjaxTabbedPanel and each tab pretty much contains all Ajax input components. The issue is when I leave the application idle for a minute (or few…
IndoKnight
  • 1,846
  • 1
  • 21
  • 29
4
votes
1 answer

Wicket - Stale Page Exception - how to debug?

my app seems to work correctly, but in the console it throws a lot of StalePageExceptions. I dont know why. How can i debug the cause for this exceptions? What are commons reasons for this Exception? 13:32:29,361 WARN [RequestCycleExtra] (default…
Robert Niestroj
  • 15,299
  • 14
  • 76
  • 119
4
votes
1 answer

Wicket Auth/Roles user authentication before testing web Page

I have a web app which use Wicket Auth/Roles to login user and assign roles. (http://wicket.apache.org/learn/projects/authroles.html) You can refer to this example too: http://www.wicket-library.com/wicket-examples-6.0.x/authentication3/ I have many…
abuteau
  • 6,963
  • 4
  • 16
  • 20
3
votes
2 answers

Shorthand method for creating array of method references in Java 8?

I'm using Wicket 6/Java 8 and am adding some simple classes that make use of the lambda functionality from Java 8 (I know the later versions of Wicket have lambda support but we can't upgrade right now). I'm creating a LambdaModel that is a bit…
fancyplants
  • 1,577
  • 3
  • 14
  • 25
3
votes
2 answers

How to set value to default choice in Wicket DropDownChoice

I need to create a wicket dropdownchoice component, I can replace default "Choose One" text to "All" by set nullValid=All null=All in its properties file. I also want to set the value of "All" to -1, but could not get it done.