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/lookup
    <Portlet:LookUp . . . compatability
     
    Overview

    This widget provides 2 variations of lookup.

    1. Lookup With Static Parameters
    2. Lookup With Dynamic Parameters
     
    Sample
    <Portlet:Lookup component="Portlet.Widget.Test.Lookup" dynamicParameters="partNo=field1;segCode=field2" staticParameters="status=O;condition=New" targetFields="field1=partNo;field2=segCode">button content</Portlet:Lookup>
     
    General Attributes for User Grid Tag
    Attribute Name Mandatory/Optional Description
    component Mandatory Name of component you wish to run for the lookup
    bypassSecurity Optional If set to true this will bypass the criteria screen. Defaults in value to false.
    dynamicParameters Optional Allows the user to specify a list of on screen fields to include the values of
    targetFields Optional A list of fields to pass the value from the lookup back to
    staticParameters Optional Allows the user to specify a list of static parameter values.
     
    Events
    Event Name Description
    No Events
     
     
    Lookup with Static Parameters top

    Overview

    This widget allows you to associate a lookup to a particular field(s) on the screen passing static parameters. The returned values will then populate targetted field(s) with values.

     

    In Browser

    JSP Code

    <Portlet:Lookup component="Portlet.Widget.Test.Lookup" bypassCriteriaScreen="true" staticParameters="status=O;condition=New" targetFields="field1=partNo;field2=segCode">button content</Portlet:Lookup>

    How they work

    This widget works by passing static values to a lookup screen using the staticParameters="" attribute specifying a list of static parameters. The returned values are then populated into targetted fields by using the targetFields="" attribute and specifying a list of fields. The attribute bypassSecurity="" is set to true if you do not wish a criteria screen to be used.

     

     
    Lookup with Dynamic Parameters top

    Overview

    This widget allows you to associate a lookup to a particular field(s) on the screen passing the values of fields on the screen. The returned values will then populate targetted field(s) with values.

     

    In Browser

     

    JSP Code

    <Portlet:Lookup component="Portlet.Widget.Test.Lookup" dynamicParameters="partNo=field1;segCode=field2" staticParameters="status=O;condition=New" targetFields="field1=partNo;field2=segCode">button content</Portlet:Lookup>

    How they work

    This widget works by values of fields on the screen to a lookup screen using the dynamicParameters="" attribute specifying a list of fields on the screen. The returned values are then populated into targetted fields by using the targetFields="" attribute and specifying a list of fields. The attribute bypassSecurity="" is set to true if you do not wish a criteria screen to be used.

     

     
    Controlling the widget CSS top

    Controlling the look if a Lookup by CSS

    The button widgets corresponding CSS can be found in 'source/html/jaffa/css/widgets/lookup.css'. The lookup has 2 states A.Lookup:hover and A.Lookup.



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