I have an XHTML page that has four text fields
<h:column > <f:facet name="header"> <h:outputText value="Start Date" /> </f:facet> <h:inputText id="startDate" value="#{sampleVO.startDate}" /> </h:column> <h:column > <f:facet name="header"> <h:outputText value="End Date" /> </f:facet> <h:inputText id="endDate" value="#{sampleVO.endDate}" /> </h:column> <h:column > <f:facet name="header"> <h:outputText value="Start Date" /> </f:facet> <h:inputText id="startDate1" value="#{sampleVO.startDate}" /> </h:column> <h:column > <f:facet name="header"> <h:outputText value="End Date" /> </f:facet> <h:inputText id="endDate1" value="#{sampleVO.endDate}" /> </h:column>
I need to put validation on the Start Date and End Date. If the user enters some start and end date in id = "startDate" and id = "endDate", we can say that the start date is "01/01/2012" (1jan) and the end date is: 01/31/2012, and if the user enters some dates on id = "startDate1" and id = "endDate1" id = "startDate1" should always be greater than thn id = "endDate", i.e. date ranges should not overlap
public class SampleServiceimpl implements SampleService { private List<SampleVO> listOfSample;
Not sure if the above logical function is current and will work in a script. Any help would be appreciated.
source share