Proposed changes to DbBaseHandlerTag and DbSelectTag.

DbBaseHandlerTag
 overrideFormFieldName       override the generated name for the html
widget. Useful with custom controllers and field is used multiple times.


DbSelectTag

Attribute
 OverrideReadOnly            [EXPERIMENTAL] override the read only attribute
of the parent form
 IfEmptyDontDraw             Do not draw the Select box if there is no data
 IfEmptyItem                 Item to be used if there is no embedded data

Example
<db:select id="alpha" pattern="#" fieldName="subject_code" size="0" 
  ifEmptyDontDraw="true" overrideReadOnly="true"
overrideFormFieldName="MigrateTo" > 
        <db:queryData name="aQuery43"  query="select foo,foo from bar" />
</db:select>

The IfEmptyDontDraw and IfEmptyItem are self-explanatory.

The overrideFormFieldName is applicable in situation when you are using a
custom controller
to process the page, especially if you are using the same field more than
once.

OverrideReadOnly was necessary to force the display of a select box, even
though the form was read-only.




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to