This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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...