Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1715

@Component annotation doesn't work properly with "parameters"

    XMLWordPrintableJSON

Details

    Description

      While defining a new @Component in a java class, we can declare the parameters of it. If some of the parameters are in a parent class the compiler reports an error because it can't find it.
      Moving this parameters from the @Component annotation to the tml file solve the issue.

      public class PinkynailPreview extends ContentItemBase {
      ...
      @Component(parameters =

      {"item=source", "results=results"}

      , publishParameters = "ajaxLoad")
      private PinkynailPreviewBubble pinkynailBubble;
      ...
      }

      public class ContentItemBase extends AbstractContentItemBase
      {
      ....
      @Parameter(name = "source", required = true)
      private ResultsItem item;
      ...
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            pjayala Pedro Ayala
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: