1 Reply Latest reply on Dec 2, 2008 10:14 PM by Adrian Mitev

    Seam and legacy application

    kelly goedert Apprentice

      Hello,


      my company has a legacy application that writes data to files. They would like to show this information on the web. Is it possible to use seam on a situation like that?


      Try to see if it work, I used the seam messages example and modified the findMessages() method like below (considering that I don't have a database and the information is coming from the files or somewhere else)



       @Factory("messageList")
         public void findMessages()
         {
            messageList = new ArrayList<Message>();
            Message m1 = new Message();
            m1.setText("lala");
            m1.setTitle("lal");
            m1.setRead(false);
            m1.setDatetime(new Date(System.currentTimeMillis()));
            
            messageList.add(m1);
         }



      but nothing is shown on the messages.jsp page, except from the page title. The method is being called, but the page is not refreshed with the information.


      Thanks


      Kelly