7 Replies Latest reply on Apr 24, 2012 6:57 AM by anisj1m

    Mobile Richfaces Hello world

      Hi all,

       

      Please is there any sample page using the mobile richfaces features, in order that I start developing with it, kind of hello world.

       

      Thanks

        • 1. Re: Mobile Richfaces Hello world
          ppitonak

          Hi,

           

          have you seen our getting started guide for mobiles [1]?

           

          The easiest way to start is to let RichFaces archtype generate a mobile application for you:

           

          mvn archetype:generate \
          -DarchetypeGroupId=org.richfaces.archetypes \
          -DarchetypeArtifactId=richfaces-archetype-simpleapp \
          -DarchetypeVersion=4.2.0-Final \
          -Dmobile-optimized=true

           

          Regards,

          Palo

           

          [1] https://community.jboss.org/wiki/GettingStartedWithMobileRichFaces

          • 2. Re: Mobile Richfaces Hello world

            Thank you Pavol,

             

            I am getting this error while executing the maven command:

             

            The desired archetype does not exist (org.richfaces.archetypes:richfaces-archetype-simpleapp:4.2.0-Final)

             

            What is the used repository for this command.

             

            Thanks

            • 3. Re: Mobile Richfaces Hello world
              ppitonak

              Hi,

               

              you are correct... the version contains dot instead of dash :/

               

              mvn archetype:generate \

              -DarchetypeGroupId=org.richfaces.archetypes \

              -DarchetypeArtifactId=richfaces-archetype-simpleapp \

              -DarchetypeVersion=4.2.1.Final \

              -Dmobile-optimized=true

               

              Regards,

              Palo

              • 4. Re: Mobile Richfaces Hello world

                it is working with this command :

                 

                mvn archetype:generate -DarchetypeGroupId=org.richfaces.archetypes -DarchetypeArtifactId=richfaces-archetype-simpleapp -DarchetypeVersion=4.2.0.Final -Dmobile-optimized=true -DgroupId=com.qccsw -DartifactId=mobile -Dversion=1.0

                • 5. Re: Mobile Richfaces Hello world

                  Hi,

                   

                  I deployed the generated war and tried to access it fromy my laptop using firefox and getting this error :

                   

                  You must define the page ID and location hash as default parameters.

                  Error:TypeError: document.getElementById(id) is null

                   

                  is it normal ?

                  • 6. Re: Mobile Richfaces Hello world

                    with IE this is the error:

                     

                    You must define the page ID and location hash as default parameters.

                    Error: TypeError: Unable to get value of the property 'className': object is null or undefined

                    • 7. Re: Mobile Richfaces Hello world

                      The generated HTML page is not following the step 3 in the getting started with mobile RichFaces?

                      Does this make any sense?