Questions tagged [wicket-1.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 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.

155 questions
1
vote
1 answer

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? @Override public void renderHead(Component component,…
1
vote
1 answer

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 fresh and things are in the proper state. How can I…
Entropy
  • 1,219
  • 6
  • 21
  • 45
1
vote
1 answer

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 will be shown and simultaneously 'Create Saving'…
Trips
  • 35
  • 8
1
vote
1 answer

org.apache.wicket.Component to be replaced with JSP

we are migrating a legacy front end application which was built on Apache Wicket (1.3.5) to jsp with spring-mvc. What can be the exact match for replacing org.apache.wicket.Component in my migration? The reason for asking this question is, we need…
1
vote
1 answer

How to use mount and QueryStringUrlCodingStrategy in wicket 6.x or 7.x

I have code as shown below, mount(new QueryStringUrlCodingStrategy(pwdRstHomeURl.substring(pwdRstHomeURl.lastIndexOf('/')), UserHome.class)); How can I modify this code into 6.x or 7.x?
S.P. ROOPESH
  • 65
  • 11
1
vote
1 answer

configureResponse() in Wicket 6.x or 7.x

I was using below configureResponse() in wicket 1.4.9 protected void configureResponse() { super.configureResponse(); WebResponse response = getWebRequestCycle().getWebResponse(); response.setHeader("Cache-Control",…
S.P. ROOPESH
  • 65
  • 11
1
vote
1 answer

setResponsePage() and setRequestTarget() in wicket 6.x or 7.x

I had code like below 1) getRequestCycle().setRedirect(true); setResponsePage(ClasAdminHome.class); Repalced with I converted to latest version as below, no compilation error RequestCycle.get().scheduleRequestHandlerAfterCurrent(new…
S.P. ROOPESH
  • 65
  • 11
1
vote
1 answer

setRedirect(true) in wicket 6.x or 7.x

I have code something like this, So how can I write in wicket 6.x or 7.x 1. catch (Exception e) { log.error("**** Exception ***********"); setRedirect(true); log.errorException(e); …
S.P. ROOPESH
  • 65
  • 11
1
vote
1 answer

One URL, which can display one of two Wicket pages based on database content

I want to achieve the following using Apache Wicket. We have the requirement that the URL /xxxx can display one of two things. If there is an entry in the "city" table (column "url_name") then we should display the CityDetailPage. If there is an…
Adrian Smith
  • 17,236
  • 11
  • 71
  • 93
1
vote
1 answer

Apache Wicket: Remove or alter presentation of pageId from statefull pages

Is it possible to remove the pageId from the URL of a statefull wicket page? It's ok if it's not versioned in the page store because of this. I've tried overriding the isVersioned()-method to returning false, but I still get the pageId in the…
denethon
  • 93
  • 1
  • 10
1
vote
2 answers

Wicket 6 DefaultDataTable navigation don't work in Firefox

After porting from Wicket 1.5.x to 6.0.20 pages using DefaultDataTable don't work in navigation toolbar when viewed in Firefox (in Google Chrome is OK) a) events OnClick() in java classes of Navigation Toolbar never hit b) the whole Page is…
Jacek Cz
  • 1,872
  • 1
  • 15
  • 22
1
vote
1 answer

Wicket: How to use Map instead of PropertyModel?

We user Wicket 6 and usually are fine with POJO objects and PropertyModel to access model attributes. Now instead of a POJO I want to use a Map, how can I do that? Instead of form.add(new TextField("fieldName", new…
Artem
  • 7,275
  • 15
  • 57
  • 97
1
vote
1 answer

Fileupload Field Wicket error

When I haven't fileupload tag(component), my code run fine. But when I add file input(component), when I submit, page only refresh, form is resseted, feedbackPanel don't show anything. I spent a day for this error, but still resolve it. Here is my…
luanvu
  • 89
  • 10
1
vote
3 answers

Wicket 6.13 link onclick behavior not working with ajax onclick row select

I have recently upgraded to Wicket 6.13 from Wicket 1.5.11 After the upgrade i am facing an issue with onclick behavior of a link. We have a clickable row which contains few columns (one of which is a link to new page). now, if we click on the link…
avinash chavan
  • 729
  • 2
  • 11
  • 27
1
vote
1 answer

Show two fields in Wicket DropDownChoice via ChoiceRenderer

In my DropDownChoice I want to show two fields: Name - Surname DropDownChoice customer = new DropDownChoice( "customer", new PropertyModel(customermodel, "customer"),list, new…
user2025818
1 2
3
10 11