[JBoss Seam] - Re: Conversation problem
by vladimir.kovalyuk
I tried the following scenario:
Page /object_details.xhtml is designed to show details of my particular object.
I tuned pages.xml to map request parameters (such as objejctId) to properties of my SFSB backing the page. And my custom page action was marked as @Begin.
I realized that in spite whether I'm using AJAX (IceFaces in my case) or not, Seam call that action method every time. So at the second attempt, when Seam tries to invoke action that is binded on a button on the page, it invokes @Begin method again and suggest annotating with @Begin(nested=true). That's a problem of Seam design - it provides us with myriads of possibilities, that are not working in combination some times :)
In my case I succeeded with introducing a fake page that does nothing but accepting parameters and invoking page action. Page action method returns reference to another page. It helped me to omit reentering into new conversation.
In other words you need to address your conversational page through the fake page, that does all preparation work for you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002259#4002259
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002259
19 years, 3 months
[EJB 3.0] - Re: Asynchronous callbacks
by aleksab
I managed to do it with a little "hack".
Instead of passing the Method as an argument, i passed the client object itself as an argument. This means that the method in the bean was changed to:
| public String getAsynhcString(Object client, String test)
|
The client calls the bean with:
| String tmp = test.getAsynhcString(this, "hello");
|
This works, and in this example it would be:
| Method met = client.getClass().getMethod("callmeback", String.class);
| met.invoke(client, "lovely");
|
There are several downsides to this, however. I have to extract the method, which means that i must know the method name and arguments. This is bad for generic method callbacks. It could be solved by annotations I suppose, but that only introduce more "hacks".
Anyone know how I can do if differently? Suggestions and ideas are much appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002246#4002246
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002246
19 years, 3 months
[JBoss Portal] - Re: Single sign-on
by rabbuhl
Our web application is written using struts and I am using the struts bridge in order to allow it to run under the JBoss Portal. The logon JSP page for our web application invokes an Java action to handle the authentication.
I am not sure whether for the portal we should first make the user pass authentication or whether we should show the portal and only require authentification when the user tries to access a protected area.
If we require initial authentification then I need to invoke our logon JSP when the portal starts up. I can only guess that this would need to be done by modifying tomcat?
If we defer authetification then I am not sure how to cause the logon to occur when the user accesses a protect page or portlet.
Richard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002244#4002244
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002244
19 years, 3 months
[Installation, Configuration & Deployment] - Runtime Exception
by hussain_rangwala
hi,
i am trying to deploy a struts application as a portlet on jboss portal 2.4.0.GA.
However the application gets deployed successfully and i see the portal-page when i access http://localhost:8080/portal.
However when i click on the portal page It gives an error "Object not found SETLInstanceName".
| 2007-01-16 16:35:32,434 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=portal:container=Portlet,id=SETLAppName.SETLPortletName state=Create
| org.jboss.portal.portlet.container.PortletInitializationException: The portlet SETLPortletName threw a runtime exception during init
| at org.jboss.portal.portlet.container.PortletContainer.start(PortletContainer.java:287)
| at org.jboss.portal.portlet.container.PortletContainerAdapter.start(PortletContainerAdapter.java:74)
| at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.joinpoint.plugins.reflect.ReflectMethodJoinPoint.dispatch(ReflectMethodJoinPoint.java:72)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:92)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.installAction(KernelControllerContextActions.java:452)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:147)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
| at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:74)
| at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:232)
| at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:79)
| at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfo$DeploymentContext.start(PortalDeploymentInfo.java:211)
| at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:242)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
|
|
below are the deployment descriptors:
1.jboss-app.xml
| <jboss-app>
| <app-name>SETLAppName</app-name>
| </jboss-app>
|
2.jboss-portlet.xml
| <portlet-app>
|
| <portlet>
| <portlet-name>SETLPortletName</portlet-name>
| <!-- Use the specific struts container configuration -->
| <config-name>StrutsPortlet</config-name>
| </portlet>
| </portlet-app>
|
|
3. portlet.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <portlet-app id="SETLAppName" xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
| version="1.0">
|
| <portlet id="SETLPortletName">
| <init-param>
| <name>ServletContextProvider</name>
| <value>org.jboss.portal.bridge.JBossServletContextProvider</value>
| </init-param>
| <init-param>
| <name>ViewPage</name>
| <value>/Login.do</value>
| </init-param>
| <init-param>
| <name>HelpPage</name>
| <value>/signIn.do</value>
| </init-param>
| <portlet-name>SETLPortletName</portlet-name>
| <display-name>SETL Display Name</display-name>
| <description>This is the SETLBAAAAAANK</description>
| <portlet-class>org.apache.portals.bridges.struts.StrutsPortlet</portlet-class>
| <expiration-cache>-1</expiration-cache>
| <supports>
| <mime-type>text/html</mime-type>
| <portlet-mode>VIEW</portlet-mode>
| <portlet-mode>HELP</portlet-mode>
| </supports>
| <portlet-info>
| <title>SETL Bank Demo</title>
| <short-title>This is the short title</short-title>
| <keywords>SETL</keywords>
| </portlet-info>
| </portlet>
| </portlet-app>
|
|
4.portlet-instances.xml
| <?xml version="1.0" standalone="yes"?>
|
| <instances>
| <instance>
| <instance-name>SETLInstanceName</instance-name>
| <component-ref>SETLPortletName</component-ref>
| </instance>
| </instances>
|
|
5.SETLAppName-object.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <deployments>
| <deployment>
| <if-exists>overwrite</if-exists>
| <parent-ref>default</parent-ref>
| <page>
| <page-name>SETLAppName</page-name>
| <window>
| <window-name>SETLWindowName</window-name>
| <instance-ref>SETLInstanceName</instance-ref>
| <region>center</region>
| <height>1</height>
| </window>
| </page>
| </deployment>
|
| </deployments>
|
6.SETLAppName-pages.xml
| <pages>
| <portal-name>default</portal-name>
| <page>
| <page-name>SETLStruts</page-name>
| <window>
| <window-name>SETLBankWindowName</window-name>
| <instance-ref>/SETLAppName.SETLPortletName.SETLInstanceName</instance-ref>
| <region>center</region>
| <height>0</height>
| </window>
| </page>
| </pages>
|
Any ideas and suggestions will be appreciated
Thanks
Hussain
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002243#4002243
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002243
19 years, 3 months