• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomawak inputCalendar Tag malfunction

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

reply
    Bookmark Topic Watch Topic
  • New Topic