Hi,

I have a xhtml that gets loaded with data through an @Factory("load") method on 
a stateful bean (the xhtml references "load" which gets outjected by my bean) . 
This works well and as expected.  "load" is event scoped, meaning that the 
method loading the data gets invoked every time I view the page.  I build up 
and display several urls on this pages pointing to the xhtml (thus through the 
@Factory I load other elements to be displayed... a painful way of creating a 
page that can be bookmarked, but work very well ).

However, I have a situation where I want to use a commandlink to execute a 
method in another stateful bean (and display another xhtml page). However, when 
I click the commandlink the original dataloader bean gets invoked because of 
the @Factory in stead of the action in the target bean (and then never 
executing the desired action). 

This is really quite baffling.  Any suggestions would be appreciated.

What I have tried is to inject a value (through @RequestParameter) into the 
"load" variable, thus theoretically preventing the @Factory from executing. 
Unfortunately the @Factory method still gets executed  (even though I can see 
that the "load" variable has a value).  I get the impression that Seam has 
already made the decision (evaluated the "load" variable) to execute the method 
before the RequestParam was injected.

Is there a way to prevent the @Factory from being called ?

What a mouthful. Sorry ;-)

Louis

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923351#3923351

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923351


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to