aspose file tools*
The moose likes JSF and the fly likes PartialTrigger with two inputDate does not work properly... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "PartialTrigger with two inputDate does not work properly..." Watch "PartialTrigger with two inputDate does not work properly..." New topic
Author

PartialTrigger with two inputDate does not work properly...

Elia Gaglio
Greenhorn

Joined: Aug 15, 2011
Posts: 2
Hi,
in my page i put two inputDate (fromDate and toDate). So, when the user change toDate the inputDate fromDate should be updated with the value of toDate.... this is the trinidad page:

<tr:panelFormLayout rows="4" labelAlignment="start">
<tr:inputDate id="mdf2"
label="Dal"
partialTriggers="mdf1"
value="#{ListOrder.fromDate}">
<f:convertDateTime dateStyle="full"/>
</tr:inputDate>
<tr:inputDate id="mdf1"
label="Al"
value="#{ListOrder.toDate}"
autoSubmit="true"
immediate="true"
valueChangeListener="#{ListOrder.onChangeFromDate}">
<f:convertDateTime dateStyle="full"/>
</tr:inputDate>
</tr:panelFormLayout>


and this is the backing-bean:

private Date fromDate; // with getter and setter
private Date toDate; // with getter and setter

public void onChangeFromDate(ValueChangeEvent valueChangeEvent) {
setDataDa((Date)valueChangeEvent.getNewValue());
}


so the date is updated but i can see the change only if i refresh the page manually... so the partialSubmit does not work!
any idea? thank you!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: PartialTrigger with two inputDate does not work properly...
 
Similar Threads
validation of two calendars
Struts-2 datetimepicker issue...
f:convertDateTime
Compare two custom date input fields each having 3 inputText fields using validator
Problem with selectOneMenu and valueChangedListener