TagLib
Reference
tag libraries
Jaffa Tags
widgets
  • buttons
  • check box
  • date/time editbox
  • drop down
  • editbox
  • grid
  • image
  • label
  • lookup
  • radio button
  • table
  • text field
  • user grid
  • Layout Controls
  • folding section
  • Guards
  • component guard
  • function guard
  • Page Controls
  • header
  • form
  • footer
  • raise errors
  • Other Tags
    Struts
  • html
  • logic
  • bean
  • util
  • template
  • digester
  • JSTL
  • Sun Site
  • Taglibs
  • reference
  • widgets/text
    <Portlet:Text . . . compatability
     
    Overview

    This widget provides 3 variations.

    1. Default Text
    2. Text with a MetaData Layout
    3. Text with Layout
     
    Sample
    <Portlet:Text field="createdDocdate" layout="MM/dd/yyyy"/>
     
    General Attributes for TexTag
    Attribute Name Mandatory/Optional Description
    field Mandatory Name of associated getter and setter on form bean
    type Optional Can specify text type .. ie HTML etc
    doman Optional Fully qualified package and class.
    domainField Optional Specific field within a domain object. The metadata definition for the layout will be used.
    layout Optional Data layout
     
    Events
    Event Name Description
    No Events
     
     
    Default Text top

    Overview

    This is a widget for displaying text on a screen that will have values populated from the form bean.

     

    In Browser

    " some text "

    JSP Code

    <Portlet:Text field="fieldNotLinked"/>

    How they work

    This widget creates some text on a screen. The text value is populated from the form bean, by specifying the field.

     

     
    Text with Metadata Layout top

    Overview

    This widget will create text on a screen. The text value is populated from the form bean by specifying the field and the layout defintion is set by specifying a domain object and domain object's field name.

     

    In Browser

    " some text "

    JSP Code

    <Portlet:Text field="status1" domain="com.spirentsystems.applications.aura4d.modules.asset.domain.AssetView" domainField="Status1"/>

    How they work

    The value is set from the form bean and displayed on the screen as text. The layout can be controlled by using the attribute layout="" or you can specify a fully qualified class name of a domain object and its corresponding field. The layout definition is then derived from this.

     

    Text with Layout top

    Overview

    This widget will create text on a screen. The text value is populated from the form bean by specifying the field and the layout defintion is set by passing the layout using the attribute layout=''.

     

    In Browser

    " some text "

    JSP Code

    <Portlet:Text field="createdDocdate" layout="MM/dd/yyyy"/>

    How they work

    The value is set from the form bean and displayed on the screen as text. The layout can be controlled by using the attribute layout="" or you can specify a fully qualified class name of a domain object and its corresponding field. The layout definition is then derived from this.

     

     
    Controlling the widget CSS top

    Controlling the look of the Text field pop up by CSS

    The Text widget's corresponding CSS can be found in 'source/html/jaffa/css/widgets/texttag.css'. You cannot directly effect the CSS properties of your text, but you can control the css properties of the popup window, .outertexttip controls the outer box colors, .innerTexttip controls the inner box colors and the exit button is the style of the exit button.



    index.html, Last Modified 28-Jun-2003 at 04:14:10pm