How To Render an <af:inputText> Visible/Invisible Depending on the Value of an af:selectOneChoice (Doc ID 369436.1)

Last updated on AUGUST 04, 2016

Applies to:

Oracle JDeveloper - Version and later
Information in this document applies to any platform.


This note explains how to render an <af:inputText> visible/invisible depending on the value of another component.
We will base our explanation on a JSP JSF page that includes 2 components <af:selectOneChoice>:

The page includes 3 <af:inputText>. The first 2 inputTexts, First Name and Last Name, should always be displayed.
The 3d inputText Maiden Name should be rendered visible only when Gender=Female AND Marital Status=Married, as shown in the following figure:


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms