3 Replies Latest reply on May 9, 2008 2:12 AM by fijaicairo

    View doesn't render model data sometimes

    fijaicairo

      I have an application in development that uses stateless actions to create event scoped model objects using the xml data retrieved over http from another application.


      Rather frequently, the views will not render the data in the model objects even though our logs indicate that the request and creation of the model objects were both successful.


      No exceptions are thrown and the logs we get are identical to the logs spewed in cases where the view behaves properly and renders the data as expected.


      Another related issue we've been experiencing is that after changing values in the form and resubmitting, the view displays data from the previous request even though our logs show the new data.


      I'm running seam 2.0.1GA, on JBoss 4.22 with facelets,JSF RI 1.2 and a sprinkling of richfaces 3.1.2.


      I have no hair left to pull out :-)

        • 1. Re: View doesn't render model data sometimes
          matt.drees

          A shot in the dark...


          I've seen some people misuse stateless beans, and trying to store stuff in them.  You get away with it sometimes in development, because you often get back the same bean instance.  Are you doing anything like this?

          • 2. Re: View doesn't render model data sometimes
            fijaicairo

            Thanks for your reply Matt. We aren't trying to store anything beyond a single event. These views are read only and rather simple. All they actions do is get the xml and initialize models with the xml data.


            The essence of our action methods is illustrated with the following lines.


            XmlRequest req = new OrderInfoRequest("orderId", "blah", "blah");
            XmlResponse res = RemoteService.makeXmlRequest("orderId");
            
            //orderInfo is outjected
            orderInfo = orderInfo.setXmlData(res);
            
            return "ORDER_INFO_DETAIL";
            

            • 3. Re: View doesn't render model data sometimes
              fijaicairo

              Correction


              //orderInfo is outjected
              orderInfo.setXmlData(res);