<%--
 * Copyright (c) 2001, 2006, Oracle. All rights reserved.  
--%>
<%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix"%>

<uix:messageLayout promptBinding="translatedDisplayName"
                   vAlign="middle"
                   tipBinding="(paramTipKey)@paResourceBundle">
  <uix:contents>
    <uix:formValue nameBinding="valueName"
                   valueBinding="displayName"/>
    <uix:choice nameBinding="bindingTypeKey"
                renderedBinding="renderBindingTypeChoice"
                selectedValueBinding="bindingType"
                disabledBinding="isReadOnly"
                onChange="submitForm('pafForm', true, {'event':'bindChoiceChange'})">
      <uix:contents>
        <uix:option textBinding="PA_BINDING_TYPE_UNBOUND@paResourceBundle"
                    value="unbound"/>
        <%-- Technique 1: The user will get an "inline" message when an unsupported
        PropertyBindingType is chosen. --%>
        <uix:option textBinding="PA_BINDING_TYPE_VARIABLE@paResourceBundle"
                    renderedBinding="hasVariableChoices"
                    value="var"/>
        <uix:option textBinding="PA_BINDING_TYPE_VALUE@paResourceBundle"
                    value="value"/>
        <%-- Technique 2: When a particular PropertyBindingType is not supported,
        the choice box shows the reason why.  If the choice is selected anyway,
        the PartialPageRender will just reset the value to "Ask User at Run-Time".
        Be sure to translate the strings if this is used.
        <uix:option renderedBinding="isChooseVariableSupported" textBinding="PA_BINDING_TYPE_VARIABLE@paResourceBundle" value="var"/>
        <uix:option renderedBinding="isChooseVariableNotSupported" text="Choose Variable (no compatible variables available)" value="invalid"/>
        <uix:option renderedBinding="isValueEditingSupported" textBinding="PA_BINDING_TYPE_VALUE@paResourceBundle" value="value"/>
        <uix:option renderedBinding="isValueEditingNotSupported" text="Set Value (not supported for this type)" value="invalid"/>
        --%>
      </uix:contents>
    </uix:choice>
    <uix:choice disabledBinding="isReadOnly"
                renderedBinding="renderVariableField"
                nameBinding="valueKey"
                selectedValueBinding="value"
                onChange="submitForm('pafForm', true, {'event':'variableChoiceChange'})">
      <uix:contents childDataBinding="value@variableBindings@">
        <uix:option textBinding="text" valueBinding="optionKey"/>
      </uix:contents>
    </uix:choice>
    <uix:spacer width="3" height="3" renderedBinding="renderVariableField"/>
    <uix:choice readOnly="true"
                renderedBinding="renderVariableField"
                name="variableDescription"
                selectedValueBinding="value">
      <uix:contents childDataBinding="value@variableDescriptionBindings@">
        <uix:option textBinding="text" valueBinding="optionKey"/>
      </uix:contents>
    </uix:choice>
    <uix:styledText renderedBinding="renderNoVariablesMessage"
                    textBinding="PA_NO_COMPATIBLE_VARIABLES@paResourceBundle"
                    styleClass="OraInlineErrorText"/>
    <uix:include nodeBinding="valueEditorNode"/>

    <uix:button textBinding ="PA_ADD_TARGET_BTN@paResourceBundle" onClickBinding="addButtonOnClick" renderedBinding="addBtnRendered" disabledBinding="isReadOnly"/>

  </uix:contents>
</uix:messageLayout>
<uix:rowLayout>
  <uix:spacer height="3"/>
</uix:rowLayout>
