You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org> on 2006/09/30 23:35:19 UTC

[jira] Created: (TAPESTRY-1103) Allow InjectState and InjectStateFlag to 'guess' the name of the ASO

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()



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Re: [jira] Created: (TAPESTRY-1103) Allow InjectState and InjectStateFlag to 'guess' the name of the ASO

Posted by andyhot <an...@di.uoa.gr>.
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: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


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


Re: [jira] Created: (TAPESTRY-1103) Allow InjectState and InjectStateFlag to 'guess' the name of the ASO

Posted by Norbert Sándor <de...@erinors.com>.
Why not for both? (In a specified order.)

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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: [jira] Created: (TAPESTRY-1103) Allow InjectState and InjectStateFlag to 'guess' the name of the ASO

Posted by andyhot <an...@di.uoa.gr>.
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()
>
>
>
>   


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


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


[jira] Resolved: (TAPESTRY-1103) Allow InjectState and InjectStateFlag to 'guess' the name of the ASO

Posted by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-1103?page=all ]

Andreas Andreou resolved TAPESTRY-1103.
---------------------------------------

    Resolution: Fixed

Works like the Message annotation if value is left unspecified

> 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()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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