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 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PartialTrigger with two inputDate does not work properly...