1 2 Previous Next 19 Replies Latest reply on Jun 27, 2008 12:36 AM by kragoth Go to original post
      • 15. Re: New JSFUnit and rich:panelMenuItem
        kragoth

        Hey guys!

        Sorry I havn't replied ealier but, I live in Australia so time zone is probly a bit different.

        Here is the code I use to get clicking on a rich:panelMenuItem working.

        public static void clickSideMenuOption(JSFSession session,
         JSFServerSession server,
         JSFClientSession client,
         String id) throws SAXException, IOException
         {
         HtmlPage htmlPage = (HtmlPage)client.getContentPage();
         Element element = client.getElement(id);
         ClickableElement clickable = (ClickableElement)htmlPage.getElementById("icon" + element.getAttribute("id"));
         clickable.click();
         }
        


        Obviously you don't need to pass the session, or server into this method, but this is just how I've left it cause I've been too lazy to clean it up. :P

        As you can see I am clicking on the element with the id that starts with "icon".

        Hope this helps

        • 16. Re: New JSFUnit and rich:panelMenuItem
          kragoth

          Forgot 1 thing.

          I am using richfaces 3.2.0.GA.
          Maybe that is why it is not working for you bgregory. Althought I wouldn't have thought that the changes between 3.2.0 and 3.2.1 would have been that big. I could try upgrading and see if that stops it working.

          • 17. Re: New JSFUnit and rich:panelMenuItem
            kragoth

            Was this enough info?

            • 18. Re: New JSFUnit and rich:panelMenuItem

              Yes, thanks. Although I can't seem to get this to work w/ 3.2.1 or 3.2.0.
              Could you describe your project setup and perhaps list the dependencies you're using? (jars, server, etc.) And if you're bored, and are really ambitious, an example project would be great! (I'm trying to nail down what library contains the problem)

              Thanks.

              • 19. Re: New JSFUnit and rich:panelMenuItem
                kragoth

                I'm going on holidays for one week so, I wont be able to get that to you until after that sorry.
                But I'll list some libs that I'm using quickly.

                using java 1.6.0_02

                Here is my list of jars sorry I don't have time to sort them out for you.
                Hope this helps.

                antlr-2.7.6.jar
                aopalliance.jar
                asm-2.2.3.jar
                asm-commons-2.2.3.jar
                asm-util-2.2.3.jar
                aspectjrt.jar
                aspectjweaver.jar
                cactus-1.7.2.jar
                cactus-ant-1.7.2.jar
                cargo-0.5.jar
                cglib-nodep-2.1_3.jar
                commons-beanutils-1.7.0.jar
                commons-codec-1.3.jar
                commons-collections-3.2.jar
                commons-digester-1.8.jar
                commons-discovery-0.4.jar
                commons-el-1.0.jar
                commons-httpclient-3.1.jar
                commons-io-1.4.jar
                commons-lang-2.3.jar
                commons-logging-1.1.jar
                cssparser-0.9.5.jar
                dom4j-1.6.1.jar
                ehcache-1.2.3.jar
                ejb3-persistence.jar
                el-impl-1.0.jar
                gekko-services.jar
                hibernate-annotations.jar
                hibernate-commons-annotations.jar
                hibernate-entitymanager.jar
                hibernate-validator.jar
                hibernate3.jar
                htmlunit-2.2-SNAPSHOT.jar
                iijdbc.jar
                itext.jar
                jasperreports-1.3.4.jar
                javassist.jar
                jboss-archive-browsing.jar
                jboss-el.jar
                jboss-jsfunit-analysis-1.0.0.GA-SNAPSHOT.jar
                jboss-jsfunit-ant-1.0.0.GA-SNAPSHOT.jar
                jboss-jsfunit-core-1.0.0.GA-SNAPSHOT.jar
                jboss-jsfunit-richfaces-1.0.0.GA-SNAPSHOT.jar
                jboss-jsfunit-seam-1.0.0.GA-SNAPSHOT.jar
                jboss-seam-debug.jar
                jboss-seam-ui.jar
                jboss-seam.jar
                jdbc2_0-stdext.jar
                js-1.7R1.jar
                jsf-api.jar
                jsf-facelets-1.1.13.jar
                jsf-impl.jar
                jstl.jar
                jta.jar
                jtidy-4aug2000r7-dev.jar
                junit-4.4.jar
                log4j-1.2.14.jar
                nekohtml-1.9.7.jar
                proxool-0.9.0RC3.jar
                readme.txt
                richfaces-api-3.2.0.GA.jar
                richfaces-impl-3.2.0.GA.jar
                richfaces-ui-3.2.0.GA.jar
                sac-1.3.jar
                serializer-2.7.1.jar
                spring-aop.jar
                spring-beans.jar
                spring-context.jar
                spring-core.jar
                spring-jdbc.jar
                spring-orm.jar
                spring-tx.jar
                spring-web.jar
                standard.jar
                ws-commons-util-1.0.2.jar
                xalan-2.7.1.jar
                xercesImpl-2.9.0.jar
                xml-apis-1.0.b2.jar
                xmlParserAPIs-2.2.1.jar
                xmlrpc-client-3.1.jar
                xmlrpc-common-3.1.jar
                xmlrpc-server-3.1.jar
                xstream-1.3.jar
                





                1 2 Previous Next