The Common-Controls Tag Library

<forms:row>

Creates a horizontal row within the surrounding form element container. Form element groups can be nested.
The tag may only be used within a com.cc.framework.taglib.forms.FormElementContainerTag. Examples of this are <forms:form>, <forms:section> and <forms:buttonsection>
../images/images/formrow_small.gif

Body content: JSP
Tag class: FormElementRowTag
 

[ Syntax ]

Standard Syntax
<forms:row
[ align = "{left | right | center}" ]
[ colspan = "Integer" ]
[ height = "String" ]
[ join = "Boolean" ]
[ permission = "ACL" ]
[ styleId = "String" ]
[ valign = "{top | bottom | center}" ]
[ width = "String" ]
>
...Body Content...

</forms:row>
 

[ Attributes ]

AttributeTypeDescriptionReq.RTExp
alignAlignmentType Specifies the horizontal alignment of the element.
  • left = left alignment
  • right = right alignment
  • center = center alignment
 
colspanInteger Specifies the column span of a form element within a multi column form  
heightString Sets the height of the form element. The height may be specified in absolute or percent terms.

Annotation: See HTML documentation for the attribute height.

 
joinBoolean Indicates that two adjacent form elements should be joined together  
permissionACL With this attribute, access to the element can be restricted.

Authorizations are checked using the com.cc.framework.security.Principal object in the user session. The principal object is registered in the session with the method com.cc.framework.security.SecurityUtil#registerPrincipal(HttpSession, Principal). It is made available by the application developer by implementing the principal interface. In this manner, any authorization system can be very easily connected within the framework.

Authorizations are always specified in the form of an Access Control List (ACL). What is involved here is a semicolon-delimited list with individual authorizations. The framweork supports the following authorization types, which, however, can be expanded at will by the application developer:

Literal
true|false -> com.cc.framework.security.StaticPermission
Role
#rolename -> com.cc.framework.security.RoleBasedPermission
Function
$functionname -> com.cc.framework.security.FunctionBasedPermission

 
styleIdString The HTML-id attribute of the element can be specified with this attribute.

Annotation: See HTML documentation for the Attribute id.

 
valignAlignmentType Specifies the vertical alignment of the element.
  • top = top alignment
  • bottom = bottom alignment
  • center = center alignment
 
widthString Sets the width of the form element. The width may be specified in absolute or percent terms.

Annotation: See HTML documentation for the attribute width.

 

[ Example ]

Form with a row.


<%@ taglib uri="http://www.common-controls.com/cc/tags-forms"   prefix="forms" %>

<forms:form type="search" caption="Client Search" formid="frmSearch">

    <forms:row>
        <forms:group orientation="horizontal">
            <forms:text  property="zipcode"  maxlength="10"  size="5">
                <forms:label label="form.city"/>
            </forms:text>
            <forms:text  property="city"  maxlength="45"  size="25"/>
        </forms:group>

        <forms:text  property="phonemobile"  maxlength="10"  size="10">
            <forms:label label="form.phone.mobile" imageref="mobile"/>
        </forms:text>
    </forms:row>

</forms:form>