dbforms
Tag gotoButton


button for jumping to other jsp

Example:
					
						The gotoButton tag can be used to forward
						processing to another JSP. Setting the position
						(via various gotoButton attributes) will force
						DbForms to navigate to this position within the
						destination-table.
					
					
						Example:
						
					
					
						<!Caption text should be retrieved via a
						resource bundle -->
						
						<db:dbform tableName="MyTABLE"
						captionResource="true">
						
						
						<! Jump to another JSP, no positionning
						-->
						
						<db:gotoButton caption="menu"
						destination="/menu.jsp"/>
						
						
					
				


Tag Information
Tag Classorg.dbforms.taglib.DbGotoButtonTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
idfalsetruejava.lang.String expose id, enables interaction with JavaScript
flavorfalsetruejava.lang.String styling of the button choices: standard a standard form button. if you use it you should specify "caption" image an image-button. if you use it you should specify "src" and "alt" modern a fancy button according to HTML4; dont use if no all of your users have got 5th-generation browsers! You may embed any code into this tag. (see docu or www.w3.org)
captionfalsetruejava.lang.String Caption of the button. (use it if the chosen flavor is "standard") If the value of the 'captionResource' attribute in the parent dbform is 'true', this tag retrieves it's content via a resource bundle.
srcfalsetruejava.lang.String source of the image (use it if the coosen flavor is "image")
altfalsetruejava.lang.String alternative to image (use it if the coosen flavor is "image")
borderfalsetruejava.lang.Stringset html border attribute
destinationtruetruejava.lang.Stringthe URL of the jsp-view to be invoked
destTablefalsetruejava.lang.String the table of the toplevel form to jump to [may be deprecated soon]
destPosfalsetruejava.lang.String a value indicating the row to navigate to. Position strings are used as request parameters allowing the framework to keep track of the position the user comes from or goes to. This string is structured as follows: fieldId : fieldValueLength : fieldValue It is important to note that if multiple keys exist in the definition of the table, your position string must includes values for each key. (separated by dashes (-)) Example: <! Jump to another JSP, specify position using multiple keys--> <db:gotoButton caption="View Sample Details" destination="/viewSample.jsp" destTable="Sample" destPos="1:6:widget-3:2:23"/>
keyToDestPosfalsetruejava.lang.String a key indicating the row to navigate to. Example: <! Jump to another JSP, specify position through a key --> <db:gotoButton caption="View Sample Details" destination="/viewSample.jsp" destTable="Sample" keyToDestPos="k_1_1@root"/>
keyToKeyToDestPosfalsetruejava.lang.String a key to the key indicating the row to navigate to. For each record in the result-set, the associatedRadio tag generates a key reference which can be used to retrieve a position string. Example: <!for each record, generate a key to the position string --> <db:body><db:associatedRadio name="test"/></db:body> <db:footer> <! Jump to another JSP, specify position (get second record using appropriate key!)--> <db:gotoButton caption="View Sample Details" destination="/viewSample.jsp" destTable="Sample" keyToKeyDestPos="test"/> Check "customerlist.jsp" in example! Example for single form (works with mutilple key columns): <db:body> <input type="hidden" name="currentRow" value="<db:pos>"/> </db:body> <db:footer> <db:gotoButton caption="View Sample Details" destination="/viewSample.jsp" destTable="Sample" keyToDestPos="currentRow"/>
singleRowfalsetruejava.lang.String if set to true, only one row of data will be fetched. default is false, so that all rows of data will be fetched and the requested record will be set as actual record.
parentFieldfalsetruejava.lang.String used in sub-form: field(s) in the main form that is/are linked to this form Should either be a key or set to sortable="true" in dbforms-config.xml
childFieldfalsetruejava.lang.String used in sub-form: field(s) in this form that is/are linked to the parent form Should either be a key or set to sortable="true" in dbforms-config.xml
accessKeyfalsetruejava.lang.String The keyboard character used to move focus immediately to thiselement.
onBlurfalsetruejava.lang.String JavaScript event handler executed when this element loses inputfocus.
onChangefalsetruejava.lang.String JavaScript event handler executed when this element loses inputfocus and its value has changed.
onSelectfalsetruejava.lang.String JavaScipt event hanlder executed when the user selects some text
onClickfalsetruejava.lang.String JavaScript event handler executed when this element receives amouse click.
onDblClickfalsetruejava.lang.String JavaScript event handler executed when this element receives amouse double click.
onFocusfalsetruejava.lang.String JavaScript event handler executed when this element receives inputfocus.
onKeyDownfalsetruejava.lang.String JavaScript event handler executed when this element has focus and akey is depressed.
onKeyPressfalsetruejava.lang.String JavaScript event handler executed when this element has focus and akey is depressed and released.
onKeyUpfalsetruejava.lang.String JavaScript event handler executed when this element has focus and akey is released.
onMouseDownfalsetruejava.lang.String JavaScript event handler executed when this element is under the mousepointer and a mouse button is depressed.
onMouseMovefalsetruejava.lang.String JavaScript event handler executed when this element is under themouse pointer and the pointer is moved.
onMouseOutfalsetruejava.lang.String JavaScript event handler executed when this element was under themouse pointer but the pointer was moved outside the element.
onMouseOverfalsetruejava.lang.String JavaScript event handler executed when this element was not underthe mouse pointer but the pointer is moved inside the element.
onMouseUpfalsetruejava.lang.String JavaScript event handler executed when this element is under themouse pointer and a mouse button is released.
stylefalsetruejava.lang.String CSS styles to be applied to this HTML element.
styleClassfalsetruejava.lang.String CSS stylesheet class to be applied to this HTML element.
titlefalsetruejava.lang.String this defines the "title" attribute for the HTML4 tag.
tabIndexfalsetruejava.lang.String The tab order (ascending positive integers) for this element.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.