2 Replies Latest reply: Nov 17, 2012 5:09 PM by Alejandro Profet RSS

    how to hide a control in jdeveloper adf

    steve kalenga
      hi guys,
      I am using jdeveloper 11 release 02
      I would like to implement a control which is displayed based on the of the value of first control.
      example
      I have list choice control with options as
      yes and no

      if the user select yes
      the input text appear
      if the user select no
      no input text appear

      regards

      steve kalenga
        • 1. Re: how to hide a control in jdeveloper adf
          codigoadf
          Hi,
          check this thread.{thread:id=2461875}
          It´s the same but instead of a inputtext is a button
          • 2. Re: how to hide a control in jdeveloper adf
            Alejandro Profet
            Other way could be this, without having to implement any managed bean method (just replace #{viewScope.socValue} for your af:selectOneChoice's value):
            <af:selectOneChoice label="Show inputText" id="soc1"
                                value="#{viewScope.socValue}"
                                autoSubmit="true">
              <af:selectItem value="Y" label="Yes" id="si1"/>
              <af:selectItem value="N" label="No" id="si2"/>
            </af:selectOneChoice>
            <af:inputText label="Label 1" id="it1"
                          visible="#{viewScope.socValue ne 'N'}"
                          partialTriggers="soc1"/>
            AP