2 Replies Latest reply on Aug 24, 2011 1:13 PM by teeradej

    Cannot use rich:effect with Richfaces 4

    teeradej

      Hi All,

       

      I would like to use "rich:effect" with Richfaces 4 but it has no this tag

       

      I would like to implement as follow :

       

      Example :

          <rich:panel id="foldbox" styleClass="box">

              <f:facet name="header">Fold Effect</f:facet>

              <rich:effect event="onclick"  type="Fold" params="duration:0.8" />

              <rich:effect event="onclick"  for="foldbox"  type="Appear" params="delay:3.0,duration:0.5" />

              <h:outputText value="Click to Activate" />

          </rich:panel>

       

      My Code :

          <rich:panelMenu style="width:200px" itemMode="ajax" groupMode="ajax" itemChangeListener="#{panelMenuBean.updateCurrent}"

              groupExpandedLeftIcon="triangleUp" groupCollapsedLeftIcon="triangleDown"

              topGroupExpandedRightIcon="chevronUp" topGroupCollapsedRightIcon="chevronDown" itemLeftIcon="disc">

              <rich:panelMenuGroup label="Living" id="componentId" expanded="true" >

                <rich:panelMenuItem label="Home theater" name="HomeTheaterMenu" style="text-align:left" leftIcon="/images/icons/lamp_red.png" rightIcon="/images/icons/arrow2.png" />

                <rich:panelMenuItem label="Air conditioner" name="AirConditionerMenu" style="text-align:left" leftIcon="/images/icons/lamp_green.png" />

                <rich:panelMenuItem label="Lump" name="LumpMenu" style="text-align:left" leftIcon="/images/icons/lamp_green.png" />

                <rich:effect event="onclick"  type="Fold" params="duration:0.8" />

                <rich:effect event="onclick"  for="foldbox"  type="Appear" params="delay:3.0,duration:0.5" />

              </rich:panelMenuGroup>

          </rich:panelMenu>

       

      Could someone suggest me? How to use other function instead?

       

      Thank you all for you help,

      Teeradej

        • 1. Re: Cannot use rich:effect with Richfaces 4
          bharathic

          Hi,

           

          I would also like to know if the above is possible. I see that effect tag is not present in rich faces 4. I am totally new to rich faces and we have a requirement to use rich faces 4 only. Any help is appreciated. Thank you.

           

          Bharathi

          • 2. Re: Cannot use rich:effect with Richfaces 4
            teeradej

            Hi Bharathi,

             

            I got the requirement also. unforturenetlly, it may have no effect tag in this version.

             

            In my view, we may have to wait for JBoss team have any updated in updated period.because in this version is very new.

             

            If someone have any suggesttion, Please let us know.

             

            Teeradej