1 Reply Latest reply on May 11, 2011 3:41 PM by Mark Paluch

    ModalPanel not working with the MenuItem

    chaitanya kakarla Newbie

      Hi Guys,

       

      Need some help to open a modal panel when I click the menuItem. Please refer to the code below. If the run this code, the modelPanel opens and just closes off in a sec. Am I doing something, please let me know. I am using richfaces 3.3.3 Final version

       

      <f:view>

      <h:form>

       

       

      <rich:menuItem>

                     <h:outputLink value="#" id="link"> (Over here I also tried a4j:commandLink but it did not work, I also tried with reRender but still it did not work)

                                         Vehicle Comments

                                    <rich:componentControl for="testModal" operation="show" event="onclick" attachTo="link"/>

               </h:outputLink>

      </rich:menuItem>

       

       

      <rich:modalPanel id="testModal"></rich:modalPanel>

      </h:form>

       

       

      </f:view>

       

      Please let me know