[
https://issues.apache.org/jira/browse/TAP5-2489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14805127#comment-14805127
]
Svein commented on TAP5-2489:
-----------------------------
It's working, but the "required = true" indicates that you NEED this parameter
in the TML/Template. JavaDoc: Parameter.required: If true, the parameter is
required and and must be bound. In my TML:
<t:palette t:id="destinations" selected="destinationsForAd"
model="selectModelDestBeans" encoder="valueEncoderDestinationBeans"/>
I do not add availableLabel or selectedLabel. It's correct that IntelliJ gives
this error. The Palette.java should be changed to:
/**
* Allows the title text for the available column (on the left) to be
modified. As this is a Block, it can contain
* conditionals and components. The default is the text "Available".
*/
@Property(write = false)
@Parameter(required = *false*, allowNull = false, value =
"message:core-palette-available-label", defaultPrefix =
BindingConstants.LITERAL)
private Block availableLabel;
/**
* Allows the title text for the selected column (on the right) to be
modified. As this is a Block, it can contain
* conditionals and components. The default is the text "Available".
*/
@Property(write = false)
@Parameter(required = *false*, allowNull = false, value =
"message:core-palette-selected-label", defaultPrefix = BindingConstants.LITERAL)
private Block selectedLabel;
> Palette component parameter availableLabel and selectedLabel should have
> required = false
> ------------------------------------------------------------------------------------------
>
> Key: TAP5-2489
> URL: https://issues.apache.org/jira/browse/TAP5-2489
> Project: Tapestry 5
> Issue Type: Wish
> Components: tapestry-core
> Affects Versions: 5.4
> Reporter: Svein
> Priority: Minor
> Labels: component
>
> Having value = "message:core-palette-available-label" and value =
> "message:core-palette-selected-label" then @Parameter(required = false) is
> better! My IDE gives me error when selectedLabel or availableLabel is skipped.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)