[ 
http://issues.apache.org/jira/browse/MYFACES-674?page=comments#action_12331674 
] 

Kalle Korhonen commented on MYFACES-674:
----------------------------------------

JavaBean spec section 8.3 specifies design patterns for properties. The default 
is get<PropertyName> and in addition 8.3.2 defines is<PropertyName> for boolean 
properties and 8.3.3 sets. JSP/JSF EL and its shorthand notation bean.property 
is a direct extension of the JavaBean spec. There has been a referendum in the 
from of JSRs. There's no has<PropertyName> in EL and I don't think MyFaces 
should do more than than the standard does. I suggest closing this issue.

> 'common' accessor prefixes
> --------------------------
>
>          Key: MYFACES-674
>          URL: http://issues.apache.org/jira/browse/MYFACES-674
>      Project: MyFaces
>         Type: Wish
>   Components: General
>     Reporter: Thomas Timbul
>     Priority: Minor

>
> Currently (correct me if wrong) the list of 'common' getter and setter 
> prefixes is
> get (getProperty)
> is (isBig)
> set (setProperty)
> One particular prefix I find more common every day is 'has' for boolean 
> getters (hasArms rather than isArmed or isWithArms or isHasArms).
> So maybe there should be a referendum on what is commonly perceived as 
> 'common' prefixes and those added as possibilities. Of course, if the method 
> gets too long we need to be careful with how EL can handle it, since there 
> could be a great difference between 'isMobile' and 'hasMobile' and EL cannot 
> distinguish the 2... (can it?)

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

Reply via email to