[JBoss Portal] - load page with portlet maximized
by den74
I'm usung JBossPortal 2.4.1 with jsf based portlets
I have a page with 6 portlets and i would like to open one of these maximized. I think i understood it is not possible so i was looking for prepare a page with 6 links that each one opens the specific portlet in maximized form but i didn't fin a way to do.
I looked in the forum and i already tried these way:
1.
<a id="port1" href="
<portlet:actionURL windowState="maximized">
<portlet:param name="myName" value="myValue"/>
<portlet:param name="locationURL" value="/portal/portal/default/myPage"/>
</portlet:actionURL>">
go to portlet 1
but it is not working, maybe i lost to do something (i don't understand if myValue means i have to develope a method somewhere)
2.
portlet 1
this opens my page but not maximized
Someone have some suggestion.
Thanks in advance to anyone will help me
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996403#3996403
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996403
19 years, 4 months
[JBoss Portal] - Getting PortletPreferences in StrutsPortlet
by sridhark79
Hi,
I am trying to obtain PortletPreferences from a Struts Action class as follows
public ActionForward execute(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response) throws Exception {
PortletRequest portRequest = (PortletRequest)request.getAttribute("javax.portlet.request");
PortletPreferences prefs = renderRequest.getPreferences();
System.out.println("The value of attribute is "+prefs.getValue("attribute1","default"));
}
But all the time i get only default printed on the server console. The attribute1 has a value in the HSQL portal database.
I ma accesing only after sucessful portal logging. Though i was unable to retreive the values i am able to set the value of this attribute.
Can anyone let me know whats incorrect or wrong here.?
Thanks & Regards
Sridhar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996401#3996401
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996401
19 years, 4 months
[EJB 3.0] - Re: Getting Syntax error with EJB 3.0.
by dvuday
Thanks for the reply...
I have packaged the bean and deployed in the server. But when I tried to access the calculator.jsp and hit 'calculate' button...getting an exception....
anonymous wrote : 12:39:13,162 ERROR [STDERR] javax.naming.NameNotFoundException: EJB3Trail not bound
| 12:39:13,162 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| 12:39:13,162 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| 12:39:13,162 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| 12:39:13,162 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| 12:39:13,162 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
| 12:39:13,162 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| 12:39:13,162 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351)
| 12:39:13,162 ERROR [STDERR] at org.apache.jsp.calculator_jsp.jspInit(calculator_jsp.java:19)
| 12:39:13,162 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:78)
| 12:39:13,162 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:155)
| ...........
| ...........
|
| Extra lines not included
|
Where are we actually binding the EJB to a JNDI name ?
Thanks and Regards
Uday
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996398#3996398
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996398
19 years, 4 months
[JBoss Seam] - Re: Getting LazyInitializationErrors with a SMPC
by SmokingAPipe
Ok, what I am doing is I am using a SFSB (temp. conversation scope) to act as an intermediary when needed, and it's working fine (of course) and it's not cumbersome or unnatural. I'll use a real conversation bean (with Begin and End) when I come to some part like building up a complex report or query, where the user might want to try it, refine it, and repeat, and might want to have different queries being developed in different windows or tabs.
And I'm now starting to delve into Facelets. One cool thing I have noticed about Facelets is that I now have Seam debugging available. Now I need to figure out how to use it for templating or whatever else it's for.
One question about Facelets compared to JSP: How does the performance compare? I know JSP gets turned into a Servlet class, which gets compiled and classloaded, so it runs as fast as any compiled Java code. How about Facelets? Do they get XML-parsed every time they display, or are they cached in some compiled state?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996396#3996396
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996396
19 years, 4 months
[Management, JMX/JBoss] - Running TWIDDLE..Name Not Found Exception..JNDI.PROPERTIES a
by mahendra_kutare
While trying to run twiddle on my Jboss 4.0.4 installation it throws the
following error -
sh ./twiddle.sh -s 10.129.50.4 serverinfo --count
04:29:29,352 ERROR [Twiddle] Exec failed
org.jboss.util.NestedRuntimeException Source code of org.jboss.util.NestedRuntimeException: jmx not bound; - nested throwable:
(javax.naming.NameNotFoundException Source code of javax.naming.NameNotFoundException: jmx not bound) at org.jboss.console
.twiddle.Twiddle$1.getServer(Twiddle.java:143)
at org.jboss.console.twiddle.command.MBeanServerCommand Source code of org.jboss.console.twiddle.command.MBeanServerCommand
(MBeanServerCommand.java:59)
at org.jboss.console.twiddle.command.ServerInfoCommand Source code of org.jboss.console.twiddle.command.ServerInfoCommand
(ServerInfoCommand.java:130)
at org.jboss.console.twiddle.Twiddle Source code of org.jboss.console.twiddle.Twiddle(Twiddle.java:305)
Caused by: javax.naming.NameNotFoundException Source code of javax.naming.NameNotFoundException: jmx not bound
at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:529)
at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:537)
at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:543)
at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:267)
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 Source code of java.lang.reflect.Method(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController Source code of java.security.AccessController(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java
:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
(TCPTransport.java:707)
at java.lang.Thread Source code of java.lang.Thread(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer
(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java
:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext Source code of org.jnp.interfaces.NamingContext(NamingContext.java:625)
at org.jnp.interfaces.NamingContext Source code of org.jnp.interfaces.NamingContext(NamingContext.java:587)
at javax.naming.InitialContext Source code of javax.naming.InitialContext(InitialContext.java:351)
at org.jboss.console.twiddle.Twiddle Source code of org.jboss.console.twiddle.Twiddle
(Twiddle.java:250)
at org.jboss.console.twiddle.Twiddle Source code of org.jboss.console.twiddle.Twiddle(Twiddle.java:268)
at org.jboss.console.twiddle.Twiddle Source code of org.jboss.console.twiddle.Twiddle$300(Twiddle.java:62)
at org.jboss.console.twiddle.Twiddle Source code of org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:139)
... 3 more
Can anyone please explain this and possible solution ?
- Mahendra
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996389#3996389
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996389
19 years, 4 months