java - TextField description RichFaces -
i'm working richfaces , need show "x" message when field clicked photo. code in xhtml :
<!doctype composition public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j"> <rich:panel> <h:form> <h:panelgrid columns="3"> <h:outputtext value="name:" /> <h:inputtext label="name" id="name" required="true" value="#{loginaction.username}"> <f:validatelength minimum="3" /> </h:inputtext> <rich:message for="name" style="color:red;"> <f:facet name="errormarker"> <h:graphicimage value="/img/error.gif" /> </f:facet> </rich:message> <f:facet name="footer"> <a4j:commandbutton value="validate" /> </f:facet> </h:panelgrid> </h:form> </rich:panel> </ui:composition> i want , before submited , when field clicked :

thanks.
use richfaces' <rich:tooltip/> display customizable , skinnable tooltip next text box. the demo example:
<h:inputtext label="name" id="name" required="true" value="#{loginaction.username}"> <f:validatelength minimum="3" /> <rich:tooltip followmouse="false" showevent="onclick" showdelay="1500" styleclass="tooltip-custom-body" layout="block"> <span style="white-space: nowrap"> tool-tip content <strong>pre-rendered</strong> page.<br /> </span> </rich:tooltip> </h:inputtext>
Comments
Post a Comment