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

hpalma edited comment on TAPESTRY-1907 at 1/4/08 2:27 AM:
--------------------------------------------------------------

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.

I ask you to reconsider this...

Thanks

      was (Author: hpalma):
    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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to