[jboss-user] [JBoss Seam] - @Factory method get called first..
m.shinde
do-not-reply at jboss.com
Fri May 18 10:58:54 EDT 2007
Hi,
I am using @Factory method and As the behaviour of @Factory method it is called everytime at first. But my requirement is I first want to add filter into the query object and then retrieve the records. To inject filter parameters I am calling one method setFilters()
|
| @In(required = false)
| @Out(required = false)
| private Article article;
|
| @SuppressWarnings("unchecked")
| @Factory("mainformList")
| public List getMainFormData() {
| ....
| }
|
|
| public String setFilters() {
| return "mainForm.xhtml";
| }
|
When I calll setFilter method by h:commandButton , Instead of setFilter method it is calling @Factory method and then setFilter method..
Which gives me wrong result....
Please suggest where I am doing wrong!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046849#4046849
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046849
More information about the jboss-user
mailing list