myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Timbul (JIRA)" <>
Subject [jira] Commented: (MYFACES-674) 'common' accessor prefixes
Date Thu, 06 Oct 2005 11:59:51 GMT
    [ ] 

Thomas Timbul commented on MYFACES-674:

Of course, to make EL happy and to make the whole thing more intuitive one could always write
a wrapping bean (around the actual one) that has methods like
isIsMobile (so on the page you can actually write 'bean.isMobile')
isHasMobile (-> 'bean.hasMobile')

> 'common' accessor prefixes
> --------------------------
>          Key: MYFACES-674
>          URL:
>      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:
For more information on JIRA, see:

View raw message