Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-174

Java EE 5 support for Wicket

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0 branch (discontinued)
    • None
    • wicket
    • 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)

      { new Label(item, "name", new PropertyModel(item.getModel(), "name")); new Label(item, "email", new PropertyModel(item.getModel(), "email")); }

      };
      }
      }

      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

      Attachments

        1. wicket-javaee.zip
          7 kB
          Filippo Diotalevi
        2. wicket-javaee-2.0-SNAPSHOT-12222006.jar
          9 kB
          Filippo Diotalevi
        3. wicket-javaee-2.0-SNAPSHOT-sources-12222006.jar
          8 kB
          Filippo Diotalevi
        4. wicket-javaee-sample.zip
          2.03 MB
          Filippo Diotalevi
        5. wicket-javaee-sample-v2.zip
          2.03 MB
          Filippo Diotalevi
        6. wicket-javaee-snapshot-12222006.zip
          10 kB
          Filippo Diotalevi

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            fdiotalevi Filippo Diotalevi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment