This content has been marked as final.
Show 4 replies
-
1. Re: creating a page with lists from the db
ido_tamir Mar 23, 2006 3:03 PM (in response to zzztimbo)from the docs:
1.3.2. How it works
The first time we navigate to the messages.jsp page, whether by a JSF postback (faces request) or a direct browser GET request (non-faces request), the page will try to resolve the messages context variable. Since this context variable is not initialized, Seam will call the factory method findMessages(), which performs a query against the database and results in a DataModel being outjected. This DataModel provides the row data needed for rendering the <h:dataTable>.
hth
ido -
2. Re: creating a page with lists from the db
zzztimbo Mar 23, 2006 6:08 PM (in response to zzztimbo)"ido_tamir" wrote:
from the docs:
1.3.2. How it works
The first time we navigate to the messages.jsp page, whether by a JSF postback (faces request) or a direct browser GET request (non-faces request), the page will try to resolve the messages context variable. Since this context variable is not initialized, Seam will call the factory method findMessages(), which performs a query against the database and results in a DataModel being outjected. This DataModel provides the row data needed for rendering the <h:dataTable>.
hth
ido
ok. i added a @Factory annotation to my method that is equivalent to findMessages(). now i get this error: "In attribute requires value for component:" what does this mean? how do i attempt to fix this? -
3. Re: creating a page with lists from the db
gavin.king Mar 23, 2006 7:15 PM (in response to zzztimbo)It means there is an @In attribute for a context variable that is null, and you do not have required=false or create=true.
-
4. Re: creating a page with lists from the db
zzztimbo Mar 23, 2006 7:41 PM (in response to zzztimbo)"gavin.king@jboss.com" wrote:
It means there is an @In attribute for a context variable that is null, and you do not have required=false or create=true.
thank you very much. that appears to have worked.