Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0 branch (discontinued)
-
None
-
None
Description
When developing applications with Wicket and Java EE 5, it would be very useful to add support for @EJB annotations to Wicket pages.. like in this example:
public class ListContacts extends WebPage {
private @EJB(name="ejb/contacts") ContactService contactService;
public ListContacts() {
new ListView<Contact>(this, "contacts",contactService.getContacts()){
protected void populateItem(ListItem<Contact> item)
};
}
}
Attached to this issue:
- wicket-javaee.zip
A wicket module for supporting @EJB annotations, which adopts the very same architecture of the wicket-spring integration module.
Type: mvn install to build the module
- wicket-javaee-sample.zip
A simple application which demonstrates how to use wicket-javaee integration. It produces an ear which has been tested under Glassfish. Since maven 2 has still no support for java ee 5 packages, the mvn build of this module is still not working (but the project has the right directory structure, so adding maven support it will be easy when maven 2.1 is out)
Go to directory 'ear' and type: ant to build the ear