3 Replies Latest reply on Aug 6, 2007 11:28 PM by Sergey Smirnov

    Simple DHTML question: activate component from s:enumItem

    None None Master

      This is something which comes up in forms all the time:

      Please indicate how you found this site:
      <h:selectOneRadio value="#{howIFoundSite}" required="true">
       <s:enumItem enumValue="searchEngine" label="Found from a search engine"/>
       <s:enumItem enumValue="friend" label="A friend told me"/>
       <s:enumItem enumValue="other" label="Other"/>
      </h:selectOneRadio>
      
       <h:outputText value="Please specify other:"/>
       <h:inputText enabled="#{????}" value="#{otherText}"/>
      


      The question is, how do I make this work using DHTML? In other words, if the "other" enum item is selected, I want to enable the inputText for the other. This seems like something that must be simple but I don't know it.

      Thanks