Wednesday 15 May 2013

ajax - Trigger OmniFaces multi field validation after focus lost -


I need to make a verification on the calendar components - Start / end OmniFaces supports multi-field validation, such as Here:

  & lt; H: Panel Grid Column = "3" & gt; & Lt; H: for outputLabel = "start date" value = "start date" /> & Lt; H: inputText id = "startDate" value "# {booking.reservation.startDate}" required = "true" required message = "please enter start date" converter message = "please enter yyyy-MM-dd format" & gt; ; & Lt; F: convert datatype pattern = "yyyy-MM-dd" /> & Lt; / H: inputText> & Lt; H: Message = "Beginners" /> & Lt; H: output = label for = "end date" = "end date" /> & Lt; H: inputText id = "endDate" value "# {booking.reservation.endDate}" Required = "true" required message = "Please enter end date" converter message = "Please enter yyyy-MM-dd format" ; & Lt; F: convert datatype pattern = "yyyy-MM-dd" /> & Lt; / H: inputText> & Lt; H: panelGroup & gt; & Lt; H: message = "endDate" /> & Lt; H: for the message = "command" /> & Lt; O: valid order id = "order" component = "start-date and date" message = "end date must be after start date" /> & Lt; / H: panelGroup & gt; & Lt; / H: panelGrid & gt; & Lt; H: command button value = "submit" action = "# {booking.submit}" & gt; & Lt; F: Ajax execution = "@form" render = "@ form" /> & Lt; / H: CommandButton & gt;   

However, the verification has begun after manually rendering it in this example. And after losing the focus (calendar) I need to validate how can I get it? Thank you.

Multiple fields of OmniFaces validated by . The "Focus Lost" event is Blurred , in this case, it should:

   & Lt; / H: inputText>   

Where m_startDate , etc and lt; H: message & gt; Components of such as

  & lt; H: Message id = "m_startDate" = "startdate" /> For    

No comments:

Post a Comment