wcf.dtd 4 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
<?xml version='1.0' encoding='iso-8859-1'?>


<!-- ********************* common attributes *************************** -->

<!ENTITY % boolean "(true|false)">


<!ENTITY % HtmlAttrs
 "title         CDATA           #IMPLIED
  size          CDATA           #IMPLIED
  onclick       CDATA           #IMPLIED
  tabindex      CDATA           #IMPLIED
  accesskey     CDATA           #IMPLIED
  onclick       CDATA           #IMPLIED
  ondblclick    CDATA           #IMPLIED
  onchange      CDATA           #IMPLIED
  onfocus       CDATA           #IMPLIED
  onblur        CDATA           #IMPLIED">
  

<!--
Common attributes for all xoplon controls
  id    
        identifies the element within a dom tree and http request. 
        If absent, an id is generated by the framework.
  label 
        for display only
  disabled
        user input will be ignored
  handler
        class name of a com.tonbeller.wcf.component.NodeHandler that
        will be instantiated and associated with this element
-->


<!ENTITY % XoplonCtrlAttrs
  "%HtmlAttrs;
   id           ID             #IMPLIED  
   label        CDATA          #IMPLIED
   disabled     %boolean;       'false'
   handler      CDATA          #IMPLIED">


<!--
attributes for controls that have a data type. These attributes
are used to identify and configure a FormatHandler

  format
        format string for the FormatHandler
  type
        data type that identifies the FormatHandler. 
        If absent, "string" is assumed
  modelReference
        name of a bean property. May contain jakarta bean-utils expressions.
        If absent, values are not read/written from the bean 
-->


<!ENTITY % TypedCtrlAttrs
  "%XoplonCtrlAttrs;
   format       CDATA           #IMPLIED
   type         CDATA           #IMPLIED
   modelReference       CDATA   #IMPLIED">


<!--
attributes for TextField, TextArea and Password

  value
        contains the user input  
-->

<!ENTITY % EditCtrlAttrs
  "%TypedCtrlAttrs;
  value         CDATA           #IMPLIED
  cols          CDATA           #IMPLIED">


<!--
selectable items (checkBox, listItem, radioButton)

  selected
        whether or not this item is selected
  value
        if the parent(!) has a modelReference attribute (and an optional 
        type attribute), then this value will be stored in the bean 

  modelReference
        if present, must point to a boolean bean property that will be set 
        to the selected state of this item
-->


<!ENTITY % ItemAttrs
  "%XoplonCtrlAttrs;
  selected      %boolean;       #IMPLIED
  value         CDATA           #IMPLIED
  modelReference CDATA          #IMPLIED">
  

<!-- ********************* elements definitions *************************** -->

<!ELEMENT label EMPTY>
<!ATTLIST label %XoplonCtrlAttrs;>


<!-- 
used to render a group of buttons in a twocolumn form
-->
<!ELEMENT buttons (button)*>

<!--
a single submit button of a form
  forward
        forward to this uri (after optional validation). 
        The uri is relative to the servlet context
  action
        default behaviour: "validate" = validate user input and write back
        to the bean. "revert" = initialize form with values from bean
-->
<!ELEMENT button EMPTY>
<!ATTLIST button %XoplonCtrlAttrs;
  forward CDATA #IMPLIED
  action (validate|revert) #IMPLIED>
  

<!ELEMENT xform ANY>
<!ATTLIST xform 
  style (twocolumn|manual) #IMPLIED
  action CDATA #IMPLIED>

<!ELEMENT textField EMPTY>
<!ATTLIST textField %EditCtrlAttrs;>

<!ELEMENT password EMPTY>
<!ATTLIST password %EditCtrlAttrs;>

<!ELEMENT textArea EMPTY>
<!ATTLIST textArea %EditCtrlAttrs;
  rows  CDATA #IMPLIED>
  
<!ELEMENT listBox1 (listItem)*>
<!ATTLIST listBox1 %TypedCtrlAttrs;
  rows CDATA #IMPLIED>
  
<!ELEMENT listBoxN (listItem)*>
<!ATTLIST listBoxN %TypedCtrlAttrs;
  rows CDATA #IMPLIED>

<!ELEMENT listItem EMPTY>
<!ATTLIST listItem %ItemAttrs;>

<!ELEMENT radioButtons (radioButton)*>
<!ELEMENT radioButton EMPTY>
<!ATTLIST radioButton %ItemAttrs;
  group-id CDATA #REQUIRED>

<!ELEMENT checkBoxes (checkBox)*>
<!ELEMENT checkBox EMPTY>
<!ATTLIST checkBox %ItemAttrs;>