File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Tomawak inputCalendar Tag malfunction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Tomawak inputCalendar Tag malfunction" Watch "Tomawak inputCalendar Tag malfunction" New topic
Author

Tomawak inputCalendar Tag malfunction

Giovanni Cappelli
Greenhorn

Joined: Mar 11, 2009
Posts: 1
I have the need of using an inputCalendar to store the date value in a string object and not in date Object. Conseguentely I have used a custom converter that inside getAsObject method return a string (representing the date selected) and not a date object. Unfortunately when I submit the form, none value is rendered, inside inputCalendar tag . Maybe the inputCalendar component local value has not been updated and conseguentely the bean property linked to it.

Here is the code I am using:

<h:dataTable value='#{valoreAttributoOggetto.impostazioneValoriAttributi}' var='item' border="1" cellpadding="2" cellspacing="0" headerClass="olimpo-header">
<h:column>
<f:facet name="header">
<h:outputText value="Valore"/>
</f:facet>
<x:inputCalendar id="dateField" value="#{item.valore}"
renderAsPopup="true"
popupDateFormat="dd/MM/yyyy"
popupTodayDateFormat="dd-MMM-yyyy"
rendered="#{item.attributo.tipoData == true}"
styleClass="default-item" forceId="true" />
</h:column>
</h:dataTable>

As I have explained above value="#{item.valore} refers to a backing bean string property.

Thank for any help.

 
 
subject: Tomawak inputCalendar Tag malfunction
 
Similar Threads
Problem with submit()
JSTL fmt:formatDate and fmt:formatNumber in JSF pages
inputCalendar and commandButton
Loading DB data when web app context initialized
JSF java.util. Concurrent ModificationException