Norbert Sándor wrote:
> Why not for both? (In a specified order.)
Better to stick with one option.
It's also much easier :)
All those stuff are lazily validated, i.e.
you can define @InjectState("invalidStateObject") and it will be accepted...
even if invalidStateObject doesn't exist.
Only when you try to access it will you get an exception.
>
> Regards:
> Norbi
>
> andyhot wrote:
>> I just can't decide over the naming in cases such as
>>
>> @InjectState
>> public Manager getManagerData()
>>
>> Should it look for the "managerData"
>> or for the "manager-data" ASO ?
>>
>> We use the latter in the Message annotation.
>>
>>
>> Andreas Andreou (JIRA) wrote:
>>
>>> Allow InjectState and InjectStateFlag to 'guess' the name of the ASO
>>> ---------------------------------------------------------------------
>>>
>>> Key: TAPESTRY-1103
>>> URL:
>>> http://issues.apache.org/jira/browse/TAPESTRY-1103
>>> Project: Tapestry
>>> Issue Type: Improvement
>>> Components: Annotations
>>> Affects Versions: 4.0, 4.0.1, 4.0.2
>>> Reporter: Andreas Andreou
>>> Assigned To: Andreas Andreou
>>> Priority: Minor
>>> Fix For: 4.1.1
>>>
>>>
>>> @InjectState and @InjectState("visit") will be equivalent if the
>>> method in question is getVisit()
>>> also
>>> @InjectStateFlag and @InjectStateFlag("visit") will be equivalent if
>>> the method in question is getVisitExists()
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]