Box highlighting taglib ver. 1.4

    Custom JSP taglib. Tag boxhighlight lets you highlighting the box that has the input focus. This technique can significantly improve the user's experience for complex HTML forms. With this tag you can easily change the background and foreground color of the active textbox, and thus give immediate feedback about the field that receives the input. For example:
 


<%@ taglib uri="taglib.tld" prefix="bh" %>

<input type="text" name="f1" value="Coldbeans" <bh:boxhighlight/> >

<select name="s" <bh:boxhighlight activeStyle="background:lightblue;color:green"/>>
<option value="1">Coldtags suite</option>
<option value="2">JSOS</option>
</select>

and you will get some like this (try to change focus for fields):




Tags are:

boxhighlight

Custom tag lets you highlighting the box that has the input focus. Parameters are:

1) style Optional parameter. Describes your own CSS style for the normal (passive) state. Default value: background:white;color:black;
2) className Optional parameter. Describes your own CSS class for the normal (passive) state
3) activeStyle Optional parameter. Describes your own CSS style for the active state (input focus). Default value: background:yellow;color:blue;
4) activeClassName Optional parameter. Describes your own CSS class for the active state (input focus)
5) cond Optional parameter. Describes a boolean value tag's behavior depends on. Default value is true (highlight)

for downloading:

Library: boxhighlightingtag.jar    Description: taglib.tld

© Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: