myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Schneider (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (MYFACES-998) default values for convertNumber and convertDateTime
Date Tue, 03 Jan 2006 21:48:01 GMT
default values for convertNumber and convertDateTime
----------------------------------------------------

         Key: MYFACES-998
         URL: http://issues.apache.org/jira/browse/MYFACES-998
     Project: MyFaces
        Type: New Feature
  Components: Tomahawk  
    Reporter: Bill Schneider


Would like to be able to do something like this:

<h:outputText value="#{bean.dateField}">
  <t:convertDateTime pattern="yyyy-MM-dd" default="not provided"/>
</h:outputText>

or alternately, <h:outputText value="#{bean.anyField}" default="(print this if value is
null)">....

same for numbers.

It would seem cleaner to keep this in the view/JSP layer rather than pushing default-if-null
logic into the controller/bean.  

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


Mime
View raw message