<?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core"> <xp:span style="font-weight:bold;font-size:18pt">UserID</xp:span><xp:span style="font-weight:bold;font-size:18pt"> Validation</xp:span><xp:br></xp:br> <xp:br></xp:br> <xp:inputText id="userID1" style="width:275.0px" required="true" value="#{ValidationJavaBean.userID}" disableClientSideValidation="true"> <xp:this.validators> <xp:validator validatorId="ValidationJavaBean"> </xp:validator> <xp:validateRequired message="userID Must be added" /> </xp:this.validators> </xp:inputText> <xp:message for="userID1" /><xp:br></xp:br> <xp:button id="button1" value="Submit"> <xp:eventHandler event="onclick" submit="true" refreshMode="complete" immediate="false" save="true"> </xp:eventHandler> </xp:button></xp:view>