html « wicket « Java Enterprise Q&A

1. Should I put html and java files in the same package (folder) in Apache Wicket?

I wonder if there is an example which html files and java files are resides in different folders.

2. Remove warning in MyEclipse

How can I modify the conditions for which MyEclipse will throw up warning flags? I'd be happy to hear a generic solution, but here is my specific problem for the ...

3. Why does Wicket changes the id of the html elements?

If I write

<form wicket:id="form" id="form>
or even
<form wicket:id="form>...
Then the rendered HTML shows the id 'form' appended with different numbers whenever the page is refreshed e.g.
   <form id="form7"....
Is there ...

4. How can I transfer output that appears on the console and format it so that it appears on a web page?

package collabsoft.backlog_reports.c4;

import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.Statement;

//import collabsoft.backlog_reports.c4.Report;

public class Report {

private Connection con;

 public Report(){
 public static void main(String args[]){
  Report dc = new Report();

5. Wicket: change component body from IBehavior::onComponentTag

I am implementing the Wicket IBehavior interface and want my behavior change the body of a component (or somehow update the model) from the onComponentTag method. Is there a way to do ...

6. Improvement on wicket HTML generator, is it possible to remove wicketpath?

I have a list with lots of elements (5000), the problem is that for 5000 elements wicket responds with 6MB and it takes 6 sec to generate this and another 5-6 ...

7. How can I suppress the stacktraces and html in Wicket development mode

Usually the first line in the error message is sufficient in solving the problem so I do not want to pollute my console in Eclipse.

8. How to package html files into jar/war with buildr?

I'm working on an embedded Jetty + Wicket app and I'm using buildr. Right now, Buildr isn't including the HTML files (which are in the main source folder, alongside my *.java ...

9. Prevent Wicket from generating HTML for container elements?

I'm running into an issue with Wicket generating markup for elements that programmatically need to be there, but not structurally. It's not messing anything up, but I like to keep the ...

10. Wicket: hide comments in HTML

JSPs support the <%-- comment --%> syntax for comments, which is a way to comment markup code such that it doesn't get included in the emitted HTML. Is there a way to ...

11. Can we call html ids from Wicket Java class

Is there a way to call ids that are created in html page without specifically giving wicket:id in the component. If so, how can I do that? What I am trying to ...

12. Eclipse - Wicket - HTML files from dependent projects not being found

I want to build a reusable Wicket component in Eclipse. I have one project "components" which have files such as and MyComponent.html. Then I have a project "application" which contains ...

13. How to ClickLink through WicketTester when links have the same wicket:id?

On a Wicket page, I produce links with images via the following:

protected void populateItem(ListItem<Club> item) 
    Image joinButton = new Image("joinButton", joinResource);

14. color of apache wicket component

I have the following code:

<html xmlns="" xmlns:wicket=""
  xml:lang="en" lang="en">
      <div wicket:id="serviceListContainer">

15. Dynamic HTML attributes in Wicket

I know there are several ways to do this, but I'm looking for the best way (I'm new to Wicket). In the HTML code below, I've marked 2 areas where I need ...

16. Retrieving html from wicket components