Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PartialTrigger with two inputDate does not work properly...

 
Elia Gaglio
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic