How to Use the Auto-Complete Component

The autoComplete component allows users to do real time auto-completion using AJAX interactions.  The component uses managed beans to configure the advanced properties as well as the retrieve the resultant completion data.  The tag library for the autoComplete component can be accessed using the declaration:
    <%@taglib prefix="ui" uri="http://java.sun.com/blueprints/ui"%>

An example of the JSF autoComplete component's use is as follows:


       <ui:autoComplete size="40" maxlength="100" id="cityField" completionMethod="#{ApplicationBean.completeCity}"
               value="#{SessionBean.city}" required="true" ondisplay="function(item) { return extractCity(item); }"
               onchoose="function(item) { return chooseCity(item); }"/>


JSP Tag Attributes

The Rating component supports the following attributes.


Java BluePrints | Sun Microsystems © 2007 Sun Microsystems Inc. All rights reserved. Use is subject to license terms.