I will try and get the appropriate parts...
In the xhtml the bean is invoked based on allServicesToViewLoaded as called by :
| <ui:define name="leftNavigation" id="leftNavIns">
| <n:leftNavigation rendered="#{not empty
allServicesToViewLoaded}"
| service="#{selectedServiceForView}"
| serviceTopics="#{orderedTopicsForView}"
|
targetURL="#{facesContext.externalContext.requestContextPath}/public/content/view/viewContent.jsf"
| id="leftNavigationId" />
| </ui:define>
|
| <ui:define name="siteNavigation" id="siteNav">
| <n:siteNavigation rendered="#{not empty
allServicesToViewLoaded}"
| services="#{allServicesForView}"
|
targetURL="#{facesContext.externalContext.requestContextPath}/public/content/view/viewContent.jsf"
| id="siteNavigationId" />
| </ui:define>
|
The link that I am trying to execute is:
<h:commandLink action="#{contentManagementBean.editContent}"
| rendered="#{not empty selectedContentForView}"
id="editContent" >
| <f:param name="preventAllServicesToViewLoaded"
value="PreventLoading" />
|
In my bean I have:
| //if we set this in the editContent and createContent links
| //the factory will hopefully not be executed as a value will be injected
| @RequestParameter(value="preventAllServicesToViewLoaded")
| @Out(required = false)
| private String allServicesToViewLoaded;
|
| @SuppressWarnings("unchecked")
| @IfNAPException(goToOutcome = "ViewContentHomePage")
| @Factory("allServicesToViewLoaded")
| @Begin(join = true)
| public String handleLoadAllServices() throws NAPException {
|
| logger.info("handleLoadAllServices has been called because of
Factory");
| logger.info("But has value: " + allServicesToViewLoaded);
| .
| .
|
When clicking the link, I get the following in my log file:
19:08:39,791 INFO [ViewContentBean] handleLoadAllServices has been called
because of Factory
| 19:08:39,791 INFO [ViewContentBean] But has value: PreventLoading
| 19:08:39,791 INFO [ViewContentBean] Planning to edit content
|
|
Hope I got the important stuff.
L
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923356#3923356
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923356
-------------------------------------------------------
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