2 Replies Latest reply on Dec 12, 2010 6:18 PM by Winster Jose

    how to enable onclick event for h:outputtext?

    Winster Jose Newbie
      <rich:column id="favoritescol">
                  <h:outputText id="favoriteid" value="#{fav}">
                 <a4j:support event="onclick" action="#{columnDefinitionBean.loadFavorite}" data="#{columnDefinitionBean.message}" oncomplete="loadFavoriteCallBack(data)"/>                        
              </h:outputText>
      </rich:column>

      <rich:column id="favoritescol">

            <h:outputText id="favoriteid" value="#{fav}">

                   <a4j:support event="onclick" action="#{myBean.loadFavorite}"/>    

             </h:outputText>

      </rich:column>

       

       

      Above code will not work because outputText does not have an event called 'onclick'.  Do you have any thoughts?