You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Hugo Palma (JIRA)" <de...@tapestry.apache.org> on 2008/01/04 11:28:34 UTC

[jira] Commented: (TAPESTRY-1907) The translate parameter is marked as required but it isn't

    [ https://issues.apache.org/jira/browse/TAPESTRY-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555877#action_12555877 ] 

Hugo Palma commented on TAPESTRY-1907:
--------------------------------------

I understand. Still, isn't the required parameter semantics supposed to help who is using the component signalling which parameter it has to provide and which it doesn't ?

It seems to me that this should be the other way around, the parameter shouldn't be annotated as required and the documentation should state in which cases the user would have to provide a value for it.

Also, this makes IDE integration much much harder. In the IntelliJ plugin i'm using the required annotation to signal errors like "required parameter not provided". If this isn't solved every TextField component usage will be marked as an error.

> The translate parameter is marked as required but it isn't
> ----------------------------------------------------------
>
>                 Key: TAPESTRY-1907
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1907
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Core Components
>    Affects Versions: 5.0.6
>            Reporter: Hugo Palma
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>
> Components like TextField and TextArea have a "translate" parameter that is stated as being required. But in the documentation it says:
> "If not specified, a value will usually be generated based on the type of the value parameter."
> So, i think the parameter should not be annotated as required as it clearly isn't.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org