History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: JSF-25
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Chad Brandon
Reporter: Samuel Solon
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
JSF cartridge

Read-only dates are not displayed

Created: 30/Aug/06 10:36 AM   Updated: 30/Aug/06 11:12 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description   
A date trigger attribute tagged as read-only is not displayed perhaps due to the lack of Calendar handling with the default ADF date converters.

### Eclipse Workspace Patch 1.0
#P andromda-all
Index: cartridges/andromda-jsf/src/templates/jsf/views/renderActionFormInput.vm
===================================================================
RCS file: /cvsroot/andromda/cartridges/andromda-jsf/src/templates/jsf/views/Attic/renderActionFormInput.vm,v
retrieving revision 1.1.2.9
diff -u -r1.1.2.9 renderActionFormInput.vm
--- cartridges/andromda-jsf/src/templates/jsf/views/renderActionFormInput.vm 24 Aug 2006 20:32:09 -0000 1.1.2.9
+++ cartridges/andromda-jsf/src/templates/jsf/views/renderActionFormInput.vm 30 Aug 2006 08:30:00 -0000
@@ -22,7 +22,9 @@
 #if (!$parameter.table && !($parameter.inputHidden || $ownerParameter.inputHidden))
 #if ($parameter.type.dateType)
 #if ($parameter.readOnly)
- <af:inputText id="$propertyId" value="#{${formValuePropertyName}}" label="#{messages['$parameter.messageKey']}:" readOnly="true"/>
+ <af:inputText id="$propertyId" value="#{${formValuePropertyName}}" label="#{messages['$parameter.messageKey']}:" readOnly="true">
+ <a:convertDateTime pattern="$parameter.format"/>
+ </af:inputText>
 #else
         <af:panelLabelAndMessage label="#{messages['$parameter.messageKey']}:" for="$propertyId" showRequired="$parameter.required">
             <t:inputCalendar id="$propertyId" value="#{${formValuePropertyName}}" renderAsPopup="true" popupDateFormat="$parameter.format" required="$parameter.required">


 All   Comments   Change History      Sort Order:
Comment by Samuel Solon [30/Aug/06 11:12 AM]
This fix is less useful without JSF-20 being fixed since Javascript errors will prevent the form from being submitted (at least in Firefox).