7 Replies Latest reply on Jun 10, 2009 9:06 AM by ssilvert

    User questions are welcome in this forum!

    ssilvert

      Despite the forum name, "Design of JSFUnit", feel free to post user questions or any other comment relating to JSFUnit. If traffic picks up to the point that we need to split this forum into User and Dev then we will do so at that time.

      PLEASE START A NEW THREAD TO ASK A QUESTION


      Stan
      http://www.jsfunit.org

        • 1. Re: User questions are welcome here!

          Hi All,

          I am using JSFUnit First time. Can any body tell me how I can pass the request paramter to the calling jsp page from JsfUnit Test I have written.

          I need to pass two parameters as a request parameters to JSP.

          Thanks,
          Pankaj

          • 2. Re: User questions are welcome here!
            ssilvert

            Please start a new thread when you want to ask a question.

            I'm not sure I understand what you are asking. Please look at the "Getting Started Guide"
            http://www.jboss.org/jsfunit/gettingstarted.html

            If you still have questions, post in a new thread and I will be glad to help.

            Stan

            • 3. a question about ID
              halylam

              Hi Stan,

              You said that we should put an id for every web component in a jsf page so that we can test JSFUnit test.

              So, I created a web application using JAVA Persistence and used JSFUnit Test. My problem is that: my jsf page content a table have many rows. Every row is loaded form a table in database. And every row has a command link to edit data and save to database. I want to test these command link but when I put id in every tag like this <h:commandLink value="Edit" action="#{animal.editSetup}" id="editCurrentAnimalItem">. I received error like this "editCurrentAnimalItem matches more than one JSF component ID. Use a more specific ID suffix. Suffix matches: j_id_id19:table1:0:editCurrentAnimalItem, j_id_id19:table1:1:editCurrentAnimalItem"

              and here my test method:

              public void testClickEditAnimal() throws IOException, SAXException {
              this.client.clickCommandLink("showAnimals");
              this.client.clickCommandLink("editCurrentAnimalItem");
              this.client.setParameter("kind", "Thú ăn thịt");
              this.client.setParameter("name", "Chó sói");
              this.client.setParameter("pavilion", "2");
              this.client.setParameter("weight", "130");
              this.client.clickCommandLink("saveAnimal");
              JSFServerSession server = new JSFServerSession(this.client);
              assertEquals("/animal/Detail.jsp", server.getCurrentViewID());
              }

              I knew the "ID" loaded from database is duplicated. Can you give me an advise or a solution?
              If you haven't understood clearly my question, you can reply to me.

              I'm looking forward to hearing from you

              Best regards

              HaLy

              • 4. Re: User questions are welcome here!
                ssilvert

                Haly,

                I've moved your question here:
                http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159231#4159231

                PLEASE START A NEW THREAD TO ASK A QUESTION

                Stan

                • 5. Re: User questions are welcome here!
                  gkumar666

                  Hi Stan,
                  I have a question regarding JSFUnit jars. The link
                  http://www.jboss.org/jsfunit/gettingstarted.html clearly briefs about how to configure the JSFUnit. But to execute the JSFUnit i need to add all these jars mentioned in that link.
                  currently I am evaluating the JSFUnit framework.So if i want to use JSFUnit Ineed to get licence for the jars. If then for which jars?
                  I am not clear of the jars for which i should go for licence.Can you help me out in this regard as early as possible

                  • 6. Re: User questions are welcome here!
                    wolfgangknauf

                    Hi,

                    seems the "please start a new thread to ask a question" is not bold enough ;-)

                    You will have to dig through the licenses for each included JAR.
                    Ant for example has this: http://ant.apache.org/license.html

                    Wolfgang

                    • 7. Re: User questions are welcome here!
                      ssilvert

                      All the jars use standard open source licenses. So you shouldn't have to "get" anything.

                      Wolfgang is completely right. If you want the details, open the jar and look at the license. He's also right about starting a new thread. Please do that from now on. I'm happy to answer questions, but we need to maintain some organization.

                      Regards,

                      Stan