-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Invalid
-
Affects Version/s: 5.3
-
Fix Version/s: None
-
Component/s: tapestry-core
-
Labels:
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 =
, publishParameters = "ajaxLoad")
private PinkynailPreviewBubble pinkynailBubble;
...
}
public class ContentItemBase extends AbstractContentItemBase
{
....
@Parameter(name = "source", required = true)
private ResultsItem item;
...
}