5 Replies Latest reply on Sep 9, 2010 4:49 PM by Stan Silvert

    Unable to value/bind component through available jsf jars in Jboss 4.2.3 GA

    Tarun Kumar Newbie

      Hi,

        • 1. Re: Unable to value/bind component through available jsf jars in Jboss 4.2.3 GA
          Tarun Kumar Newbie

          Sorry the page has submitted unfortunately. Here's the issue, previously I used Jboss 4.0.2 AS for my JSF web application. Where I used the default jsf(jboss-faces,jsf-api,jsf-impl) jar files with tomahawk jar(1.1.6) too that came with AS (jsf-api,jsf-impl) and wrote a program as follows: On UI end I used tomahawk datatable  and under which I created a Boolean Checkbox using jsf tag and bind it to backend java bean ( to a class variable). Actaully Backend Java bean Class which is an extension(extends) of other data bean class(here the exact class variable for checkbox is defined), and whenever I change the values from UI front the setters/getter used to be called. And was able to see the value property being changed accordingly. Recently I have upgraded to jboss 4.2.3 where I am able to see that thevalue change is not reflected on to the backend bean variable.

          • 2. Re: Unable to value/bind component through available jsf jars in Jboss 4.2.3 GA
            Tarun Kumar Newbie

            And one key point I have noticed is that previous Jboss used the jsf Jar files of Implementation version 1.2_04 -b16-p02 and the present one is of 1.2_09-b01-BETA1.

            • 3. Re: Unable to value/bind component through available jsf jars in Jboss 4.2.3 GA
              Stan Silvert Master

              Hi Tarun,

               

              JBoss AS 4.2.3 ships with Mojarra 1.2.   JBoss AS 4.0.2 ships with MyFaces 1.1.  So you are working with different JSF spec versions and implementations.

               

              I don't know what your problem is, but I do want to make sure you have seen the documentation on that:

              JBossWithJSFCDDL

              JBossWithIntegratedMyFaces

               

              Stan

              • 4. Re: Unable to value/bind component through available jsf jars in Jboss 4.2.3 GA
                Tarun Kumar Newbie

                Hi Stan,

                Thanks for the reply I have gone through the links provided by you. But I'm experiencing bit typical issue. Please find the details.

                Jboss: Jboss 4.2.3 GA which has got jar files (jboss.faces + jsf-api + jsf-impl of version '1.2_09-BETA1')  under 'jsf-libs' folder.

                In one of my jsp pages :

                <t:datatable id="abc" value= "some_class.aDataModel" var="role" binding="some_Class.aTable" ......>         (tomahawk table)

                     ....................

                     <h:column>

                          <h:SelectBooleanCheckbox binding="backendClass.dummyBindSelect" value="backendClass.dummyValueSelect" ....../>

                     </h:column>

                     ...............

                </t:datatable>

                 

                 

                The above code is used to work with my previous Jboss 4.0.2 GA and recently I upgraded it to Jboss 4.2.3 GA and unfortunately it stopped working.

                And when i debug it, the getters and setters of "VALUE" are always being called Although the return/set  'false'  when checked.

                And coming to the "BIND", the getters and setter are called once and "dummyBindSelect.isSelected()" is returning false even though I checked it.

                • 5. Re: Unable to value/bind component through available jsf jars in Jboss 4.2.3 GA
                  Stan Silvert Master

                  I suspect this is a problem with compatibility between Tomahawk and Mojarra.  You should probably ask your question on the MyFaces Tomahawk list and ask if there are known problems between the Tomahawk version you are using and the Mojarra version that ships with JBoss AS 4.2.3.

                   

                  Stan