Jetspeed-2 HEAD does not work today
I got the CVS HEAD today and successfully built it. Then finished following the instructions for deploying it. But when I try to bring it up in Mozilla the following error occurs. I'm unable to bring up even the main page. org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:492) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:242 2) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82 8) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58 4) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:683) at java.lang.Thread.run(Thread.java:534) root cause javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:536) at org.apache.jsp.index_jsp._jspService(index_jsp.java:51) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.cata
Apache Portals Perl Framework Bridge build failed
I tried to build Jetspeed-2 today from the CVS Head and got the following error. I followed the instructions in the "getting started" exactly. 1) the java:compile goal fails because it can't find the org.apache.jetspeed.rewriter package, but the Rewriter Component built successfully. 2) Every target in the build prints "Plugin 'maven-deploy-plugin' in project 'XYZ' is not available Any idea why what's going on here ? The build seems incredibly complicated and I can't yet make any sense of it. Where would I start looking for the problem ? Thanks, Tom + | Build and Install all Jetspeed 2 jars Apache Portals Perl Framework Bridge | Memory: 72M/96M + Plugin 'maven-deploy-plugin' in project 'Apache Portals Perl Framework Bridge' is not available jar:install: build:end: build:start: java:prepare-filesystem: [mkdir] Created dir: C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\target\classes java:compile: [echo] Compiling to C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl/target/classes [javac] Compiling 3 source files to C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\target\classes [javac] C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\src\java\org\apache \portals\bridges\perl\PerlContentRewriter.java:20: package org.apache.jetspeed.rewriter does not exist [javac] import org.apache.jetspeed.rewriter.Rewriter; [javac] ^ [javac] C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\src\java\org\apache \portals\bridges\perl\PerlContentRewriter.java:21: package org.apache.jetspeed.rewriter does not exist [javac] import org.apache.jetspeed.rewriter.RulesetRewriterImpl; [javac] ^ [javac] C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\src\java\org\apache \portals\bridges\perl\PerlContentRewriter.java:29: cannot resolve symbol [javac] symbol : class RulesetRewriterImpl [javac] location: class org.apache.portals.bridges.perl.PerlContentRewriter [javac] public class PerlContentRewriter extends RulesetRewriterImpl implements [javac] ^ [javac] C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\src\java\org\apache \portals\bridges\perl\PerlContentRewriter.java:30: cannot resolve symbol [javac] symbol : class Rewriter [javac] location: class org.apache.portals.bridges.perl.PerlContentRewriter [javac] Rewriter { [javac] ^ [javac] C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\src\java\org\apache \portals\bridges\perl\PerlPortlet.java:55: package org.apache.jetspeed.rewriter does not exist [javac] import org.apache.jetspeed.rewriter.JetspeedRewriterController; [javac] ^ [javac] C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\src\java\org\apache \portals\bridges\perl\PerlPortlet.java:56: package org.apache.jetspeed.rewriter does not exist [javac] import org.apache.jetspeed.rewriter.RewriterController; [javac] ^ [javac] C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\src\java\org\apache \portals\bridges\perl\PerlPortlet.java:57: package org.apache.jetspeed.rewriter does not exist [javac] import org.apache.jetspeed.rewriter.RewriterException; [javac] ^ [javac] C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\src\java\org\apache \portals\bridges\perl\PerlPortlet.java:58: package org.apache.jetspeed.rewriter does not exist [javac] import org.apache.jetspeed.rewriter.RulesetRewriter; [javac] ^ [javac] C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\src\java\org\apache \portals\bridges\perl\PerlPortlet.java:59: package org.apache.jetspeed.rewriter.html does not exist [javac] import org.apache.jetspeed.rewriter.html.SwingParserAdaptor; [javac] ^ [javac] C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\src\java\org\apache \portals\bridges\perl\PerlPortlet.java:60: package org.apache.jetspeed.rewriter.rules does not exist [javac] import org.apache.jetspeed.rewriter.rules.Ruleset; [javac] ^ [javac] C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\src\java\org\apache \portals\bridges\perl\PerlPortlet.java:61: package org.apache.jetspeed.rewriter.xml does not exist [javac] import org.apache.jetspeed.rewriter.xml.SaxParserAdaptor; [javac] ^ [javac] C:\jetspeed2\jakarta-jetspeed-2\portals-bridges\perl\src\java\org\apache \portals\bridges\perl\PerlPortlet.java:125: cannot resolve symbol [javac] symbol : class RulesetRewriter [javac] location: class org.apache.portals.bridges.perl.PerlPortlet [javac] RulesetRew
What is the Status of Jetspeed 2 ??
I'm currently using Jetspeed 1.5 and I would like to upgrade to Jetspeed 2 as soon as it is reasonable to do so. But I can't tell from the Jetspeed 2 website what the current status is. Is Jetspeed 2 released ? When will it be released ? Is the 'M1' release a production release or is it "Alfa" or "Beta" ? Thanks, Tom
Jetspeed with Secure LDAP ?
I've gotten Jetspeed to authenticate against LDAP but I would like to use SSL to communicate with the LDAP server. There are some properties to configure the security protocol to be SSL but I can't find where you specify where the certificates should be ? Is there a property somewhere that I should use to set the location of the certificates ? Or is there a standard place in the jetspeed distribution where they should be placed ? Thanks, Tom
Problem using Oracle & Jetspeed 1.5
I'm getting the following error when trying to create a new user account when running jetspeed 1.5 with Oracle. org.apache.jetspeed.services.security.UserException: Failed to create account 'a': ORA-04016: sequence TURBINE_USER no longer exists I created a database and ran the C:\jetspeed-1.5\src\sql\external\turbine-oracle.sql and C:\jetspeed-1.5\src\sql\external\populate-oracle.sql Sql scripts. Copied the oracle JDBC driver into lib directory. Made the following modifications to the Torque.properties file torque.database.default.adapter=oracle torque.dsfactory.default.connection.driver = oracle.jdbc.driver.OracleDriver torque.dsfactory.default.connection.url = jdbc:oracle:thin:@localhost:1521:orcl torque.dsfactory.default.connection.user = jetspeed torque.dsfactory.default.connection.password = jetspeed What else do I need to do? I'm working with a Jetspeed 1.5 source distribution, not pulled from the CVS tree. Seems like the code is somehow expecting a sequence called TURBINE_USER but it's called TURBINE_USER_SEQ in the sql file. Is there something that needs to be changed in the security-schema.xml file ? Thanks, Tom The stack trace : java.sql.SQLException: ORA-04016: sequence TURBINE_USER no longer exists at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:12 5) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623) at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:112) at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:3 51) at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatemen t.java:896) at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java :383) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement. java:986) at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:112 5) at com.workingdogs.village.QueryDataSet.(Unknown Source) at org.apache.torque.oid.SequenceIdGenerator.getIdAsVillageValue(SequenceId Generator.java:199) at org.apache.torque.oid.SequenceIdGenerator.getIdAsBigDecimal(SequenceIdGe nerator.java:133) at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:720) at org.apache.torque.util.BasePeer.doInsert(BasePeer.java:639) at org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doInsert(Bas eTurbineUserPeer.java:241) at org.apache.jetspeed.om.security.turbine.BaseTurbineUserPeer.doInsert(Bas eTurbineUserPeer.java:214) at org.apache.jetspeed.services.security.turbine.TurbineUserManagement.addU ser(TurbineUserManagement.java:283) at org.apache.jetspeed.services.JetspeedUserManagement.addUser(JetspeedUser Management.java:95) at org.apache.jetspeed.services.JetspeedSecurity.addUser(JetspeedSecurity.j ava:213) at org.apache.jetspeed.modules.actions.CreateNewUserAndConfirm.doPerform(Cr eateNewUserAndConfirm.java:171) at org.apache.turbine.modules.Action.perform(Action.java:87) at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122) at org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:14 3) at org.apache.turbine.modules.Page.build(Page.java:90) at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123) at org.apache.turbine.Turbine.doGet(Turbine.java:563) at org.apache.turbine.Turbine.doPost(Turbine.java:658) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:242 2) at org.apache.catalina.core.StandardHostValve.invoke(Stand
RE: Can't mix JSP & VM on the same page
I inserted an explicit link into left.vm as you suggested but it still throws the same error when mixing VM & JSP. Here are the links that I added. The first one works fine (.vm -> .vm). But the second one (.vm -> .jsp) throws the same error I described in my previous message. http://localhost:8080/jetspeed/portal/media-type/html/language/en/user/anon/page/default.psml/layout/default.vm/template/Page2.vm";> and http://localhost:8080/jetspeed/portal/media-type/html/language/en/user/anon/page/default.psml/layout/default.vm/template/Page3.jsp";> Looks to me like it's just a bit more involved. Because the JetspeedTemplatePage.doBuildAfterAction method calls both TemplateLocator.locateScreenTemplate & TemplateLocator.locateLayoutTemplate with the "screen template", including the extension. Then the TemplateLocator.locateLayoutTemplate strips the extension off the "screen template" to use in constructing the path for looking up the "layout". The problem is this depends on both the screen and layout having the same extension. To further explore the issue I thought it would be easy enough to extend the JetspeedTemplateLocatorService and tweak it (just for an experiment) to force it to only find the layout. So I did that and added the following snip to the beginning of MyTemplateLocatorService.locateLayoutTemplate() if (template.equal("Page3.jsp")) { template = "Page3.vm"; } Then change the service in the JR.p file to the use my new service. services.TemplateLocator.classname=org.apache.jetspeed.services.template.MyTemplateLocatorService This should force the locator service to find a VM Layout for the JSP Screen. And it did, but it fails later in the JetspeedJspLayout class where the code again seems to assume that the screens and layouts are both either VM or JSP but not mixed. So I don't think it's just a default extension issue nor does the issue seems to be encapsulated within the locator service. I appreciate your help. Thanks, Tom -Original Message- It should be extremely simple since the engine supports it and the issue looks to mainly be the use of default extensions. Firsft thing first, have you tried explicit extension naming like in: http:///jetspeed/portal/layout/default.jsp/template/test.vm It should work and prove that it's just the assumption that need fixing. Note that navigations should mix well too if you take care to suffix them with '.jsp' and '.vm' as required. If the above works, you can modify the default layout property and default template properties in your properties file to explicitely select the correct version and then use the full template name with extension in your links between screen templates. -- Raphaƫl Luta - [EMAIL PROTECTED] Apache Portals - Enterprise Portal in Java http://portals.apache.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't mix JSP & VM on the same page
What I was trying to do is use Velocity to implement the Layout for a page and then have some Screens that are implemented in JSP and some in Velocity. Ok, got it. You can't mix VM & JSP this way. The code forces the Screen & Layout to both be either JSP or VM. Seems to me that you ought to be able to do this, but I'm not familiar enough with Turbine to know if this is a limitation of Turbine or Jetspeed. If Turbine can support this scenario how hard would it be to get Jetspeed to do it ? Here's the code that's causing my scenario not to work. This is with Jetspeed 1.5 It's in the org.apache.jetspeed.modules.pages.JetspeedTemplatePage.doBuildAfterActio n(RunData) method. . ---> This section forces the extension onto the template name. String ext = TurbineTemplate.getDefaultExtension(); . if (template.lastIndexOf('.')<0) { template=template+"."+ext; } if ( logger.isDebugEnabled() ) { logger.debug("JetspeedTemplatePage: requested template = " + template); } ---> This section looks up the JSP screen, no problem because it's there // get real path now - this is a fix to get us thru 1.3a2 // when the TurbineTemplateService can locate resources by NLS and mediatype, // then it can be removed String locatedScreen = TemplateLocator.locateScreenTemplate(data, template); data.setScreenTemplate( locatedScreen ); if ( logger.isDebugEnabled() ) { logger.debug("JetspeedTemplatePage: calculated template = " + locatedScreen); } ---> This section assumes that the Layout is the same templating technology as the screen ---> but the JSP version of the Layout isn't there so it fails returning NULL (because I removed it) ---> which ultimately causes a null pointer exception to be thrown. ---> OR ---> It finds the wrong Layout (because I did not remove it) and dynamically switches the Layout ---> from the VM version to the JSP version which seems to really screw up the state of the portal from ---> that point forward String layout = TemplateLocator.locateLayoutTemplate(data, template); data.setLayoutTemplate(layout); if ( logger.isDebugEnabled() ) { logger.debug("JetspeedTemplatePage: layoutTemplate is finally " + layout); } . Thanks, Tom -Original Message- From: Hampton, Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 1:00 PM To: Jetspeed Users List Subject: RE: What do you need to do to add a new screen ? Ok, so I changed the code in left.vm to the following Jslink.getTemplate("Page2.jsp") This caused the template to be found but also caused left.jsp to be rendered instead of left.vm which confuses me. I would have expected left.vm to be rendered using velocity and for Page2 to be rendered by JSP. What's even more weird is that the top & bottom are still rendering top.vm & bottom.vm. Any insight as to what I'm doing wrong ? I feel like I'm missing something simple here. Thanks, Tom -Original Message- From: Hampton, Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 9:46 AM To: Jetspeed Users List Subject: RE: What do you need to do to add a new screen ? David, Thank you. The jslink example helps a lot. The $jslink.getTemplate("Page2") is working. But I also have some templates that are JSP. The $jslink.getTemplate() method seems to only be finding VM templates and not the JSP templates. Is it possible to link from a VM template such as left.vm to a JSP template ? Thanks, Tom -Original Message- From: David Sean Taylor [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 11:58 PM To: Jetspeed Users List Subject: Re: What do you need to do to add a new screen ? Hampton, Thomas wrote: > Right, so I changed it to $jslink.getTemplate() but it still does not bring up my screen. Still a blank screen. > Is there anything else that needs to be done besides creating the Page2.vm file and putting it in the correct directory and then calling $jslink.getTemplate("Page2") from the Left.vm file ? > > Where are things like jslink, link, jlink, and clink documented, I've looked around but am not finding where these things are documented. How do I know what these references are and what methods are available on them ? > Its documented in the JetspeedLink.java interface http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed/src/java/org/apache/j etspeed/util/template/JetspeedLink.java?rev=1.15&view=markup The $jslink is self-documented with examples
RE: What do you need to do to add a new screen ?
Ok, so I changed the code in left.vm to the following Jslink.getTemplate("Page2.jsp") This caused the template to be found but also caused left.jsp to be rendered instead of left.vm which confuses me. I would have expected left.vm to be rendered using velocity and for Page2 to be rendered by JSP. What's even more weird is that the top & bottom are still rendering top.vm & bottom.vm. Any insight as to what I'm doing wrong ? I feel like I'm missing something simple here. Thanks, Tom -Original Message- From: Hampton, Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 9:46 AM To: Jetspeed Users List Subject: RE: What do you need to do to add a new screen ? David, Thank you. The jslink example helps a lot. The $jslink.getTemplate("Page2") is working. But I also have some templates that are JSP. The $jslink.getTemplate() method seems to only be finding VM templates and not the JSP templates. Is it possible to link from a VM template such as left.vm to a JSP template ? Thanks, Tom -Original Message- From: David Sean Taylor [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 11:58 PM To: Jetspeed Users List Subject: Re: What do you need to do to add a new screen ? Hampton, Thomas wrote: > Right, so I changed it to $jslink.getTemplate() but it still does not bring up my screen. Still a blank screen. > Is there anything else that needs to be done besides creating the Page2.vm file and putting it in the correct directory and then calling $jslink.getTemplate("Page2") from the Left.vm file ? > > Where are things like jslink, link, jlink, and clink documented, I've looked around but am not finding where these things are documented. How do I know what these references are and what methods are available on them ? > Its documented in the JetspeedLink.java interface http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed/src/java/org/apache/j etspeed/util/template/JetspeedLink.java?rev=1.15&view=markup The $jslink is self-documented with examples in the "JSLink Examples" portlet. Add this portlet to your page with the customizer and you will see The other variations ($clink, $link, $jlink) we tried to deprecate. > Thanks for your help. > Tom > > > > From: David Sean Taylor [mailto:[EMAIL PROTECTED] > Sent: Tue 11/16/2004 6:38 PM > To: Jetspeed Users List > Subject: Re: What do you need to do to add a new screen ? > > > > Hampton, Thomas wrote: > > >>I created a new screen "template" in the >>webapp\WEB-INF\templates\vm\screens\html directory. Then I modified the >>left.vm file as follows. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>What I want to happen is for the "Page2" screen to come up the same way >>the "EditAccount" screen does. But I just get a blank page. The >>EditAccount screen comes up ok. So I'm sure that I have not done >>something that is needed to "register" the "Page2" screen template, but >>I don't know what I'm missing. The "Page2" template just has static >>text in it right now. >> >>What am I missing ? >> >> > > $jslink.getPage gets a PSML page, not a turbine template > I think you may be confusing it with $link.getPage > Why not use $jslink.getTemplate here too > > -- > David Sean Taylor > Bluesunrise Software > [EMAIL PROTECTED] > [office] +01 707 773 4646 > [mobile] +01 707 529 9194 > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] [office] +01 707 773 4646 [mobile] +01 707 529 9194 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What do you need to do to add a new screen ?
David, Thank you. The jslink example helps a lot. The $jslink.getTemplate("Page2") is working. But I also have some templates that are JSP. The $jslink.getTemplate() method seems to only be finding VM templates and not the JSP templates. Is it possible to link from a VM template such as left.vm to a JSP template ? Thanks, Tom -Original Message- From: David Sean Taylor [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 11:58 PM To: Jetspeed Users List Subject: Re: What do you need to do to add a new screen ? Hampton, Thomas wrote: > Right, so I changed it to $jslink.getTemplate() but it still does not bring up my screen. Still a blank screen. > Is there anything else that needs to be done besides creating the Page2.vm file and putting it in the correct directory and then calling $jslink.getTemplate("Page2") from the Left.vm file ? > > Where are things like jslink, link, jlink, and clink documented, I've looked around but am not finding where these things are documented. How do I know what these references are and what methods are available on them ? > Its documented in the JetspeedLink.java interface http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed/src/java/org/apache/j etspeed/util/template/JetspeedLink.java?rev=1.15&view=markup The $jslink is self-documented with examples in the "JSLink Examples" portlet. Add this portlet to your page with the customizer and you will see The other variations ($clink, $link, $jlink) we tried to deprecate. > Thanks for your help. > Tom > > > > From: David Sean Taylor [mailto:[EMAIL PROTECTED] > Sent: Tue 11/16/2004 6:38 PM > To: Jetspeed Users List > Subject: Re: What do you need to do to add a new screen ? > > > > Hampton, Thomas wrote: > > >>I created a new screen "template" in the >>webapp\WEB-INF\templates\vm\screens\html directory. Then I modified the >>left.vm file as follows. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>What I want to happen is for the "Page2" screen to come up the same way >>the "EditAccount" screen does. But I just get a blank page. The >>EditAccount screen comes up ok. So I'm sure that I have not done >>something that is needed to "register" the "Page2" screen template, but >>I don't know what I'm missing. The "Page2" template just has static >>text in it right now. >> >>What am I missing ? >> >> > > $jslink.getPage gets a PSML page, not a turbine template > I think you may be confusing it with $link.getPage > Why not use $jslink.getTemplate here too > > -- > David Sean Taylor > Bluesunrise Software > [EMAIL PROTECTED] > [office] +01 707 773 4646 > [mobile] +01 707 529 9194 > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] [office] +01 707 773 4646 [mobile] +01 707 529 9194 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What do you need to do to add a new screen ?
Right, so I changed it to $jslink.getTemplate() but it still does not bring up my screen. Still a blank screen. Is there anything else that needs to be done besides creating the Page2.vm file and putting it in the correct directory and then calling $jslink.getTemplate("Page2") from the Left.vm file ? Where are things like jslink, link, jlink, and clink documented, I've looked around but am not finding where these things are documented. How do I know what these references are and what methods are available on them ? Thanks for your help. Tom From: David Sean Taylor [mailto:[EMAIL PROTECTED] Sent: Tue 11/16/2004 6:38 PM To: Jetspeed Users List Subject: Re: What do you need to do to add a new screen ? Hampton, Thomas wrote: > I created a new screen "template" in the > webapp\WEB-INF\templates\vm\screens\html directory. Then I modified the > left.vm file as follows. > > > > > > > > > > > > > > > > What I want to happen is for the "Page2" screen to come up the same way > the "EditAccount" screen does. But I just get a blank page. The > EditAccount screen comes up ok. So I'm sure that I have not done > something that is needed to "register" the "Page2" screen template, but > I don't know what I'm missing. The "Page2" template just has static > text in it right now. > > What am I missing ? > > $jslink.getPage gets a PSML page, not a turbine template I think you may be confusing it with $link.getPage Why not use $jslink.getTemplate here too -- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] [office] +01 707 773 4646 [mobile] +01 707 529 9194 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What do you need to do to add a new screen ?
I created a new screen "template" in the webapp\WEB-INF\templates\vm\screens\html directory. Then I modified the left.vm file as follows. What I want to happen is for the "Page2" screen to come up the same way the "EditAccount" screen does. But I just get a blank page. The EditAccount screen comes up ok. So I'm sure that I have not done something that is needed to "register" the "Page2" screen template, but I don't know what I'm missing. The "Page2" template just has static text in it right now. What am I missing ? Tom Hampton Sr. Software Engineer / Architect SRA International, Inc. [EMAIL PROTECTED] Phone 240-221-2012 Fax 240-221-2001
Default/Anon Screen ?
Jetspeed seems to come up for the Anon user to a screen that is some kind of "portlet container". Is it possible to change that default screen to not be the a "portlet container" but some other screen ? What I'd like to do is have a regular screen be the default, and use the portal container when a user has logged in and selected some portlets. Tom Hampton Sr. Software Engineer / Architect SRA International, Inc. [EMAIL PROTECTED] Phone 240-221-2012 Fax 240-221-2001
RE: PHP compatible with Jetspeed ?
Is the PHP portlet also part of or compatible with Jetspeed 1 ? Where do you get it ? From the CVS tree somewhere ? Thanks, Tom -Original Message- From: Roger Ruttimann [mailto:[EMAIL PROTECTED] Sent: Friday, November 05, 2004 1:30 PM To: Jetspeed Users List Subject: Re: PHP compatible with Jetspeed ? In Jetspeed-2 there is a PHP portlet that allows you to run php applications inside a portlet. We successfully run several PHP applications in our portal (latest J1 and J2) Roger Hampton, Thomas wrote: >Has anyone used PHP successfully with Jetspeed ? I haven't attempted >yet but was wondering if it's been done. > > >Tom > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PHP compatible with Jetspeed ?
Has anyone used PHP successfully with Jetspeed ? I haven't attempted yet but was wondering if it's been done. Tom
How to correctly Java Script with Jetspeed ?
I'm having problems using Java Script in portlets because I don't know the correct place to put the function definitions. Java Script functions are supposed to be defined in the section to make sure that the scripts are loaded before they can possibly be called, but the HTML for portlets don't have tags. I'm using Jetspeed 1, is this handled differently in Jetspeed 2 ? I've scanned the discussion forums and found the following suggestions. 1) JavaScript does not need to be in the tag just put it in the body, that it was just convention that it's put in the tag. This is kind of true, the Java Script documentation says the following: Generally, you should define the functions for a page in the HEAD portion of a document. That way, all functions are defined before any content is displayed. Otherwise, the user might perform an action while the page is still loading that triggers an event handler and calls an undefined function, leading to an error. The question is then, what else, besides putting the script definitions in the HEAD tag, can you do to guarantee that the functions are defined before content is displayed. Different browsers process the content differently. I have not been having problems with IE but in Mozilla, if you are quick, it's possible to click a link that triggers some script that has not yet been processed. 2) Override the JetSpeed template file and put all the JavaScript into the HEAD tag there. This would mean that all my script would have to be in the portal layout pages because that's where the HEAD tags are: templates\jsp\layouts\html\content.jsp templates\jsp\layouts\html\default.jsp templates\jsp\layouts\html\previous.jsp And that it would be loaded all the time whether it's needed or not for any page in the portal. This is pretty non-elegant solution, especially if you have a lot of script in your portal, but it would work. 3) It was suggested that other portals have a way to add content dynamically (maybe I misunderstood this one) into the HEAD tag. Here's a questions/suggestion from me : Is it possible in Jetspeed to include the HEAD tags in the portlet's HTML and have the portlet code (HTML portlet) merge the contents of the HEAD tags from all portlets on a page together before sending the HTML to the browser ? Seems like this would solve the problem. I would like to hear what everyone else thinks, as I've not yet discovered a workable solution that I'm happy with. Thanks, Tom
How to configure Jetspeed to use JSP instead of Velocity
Looks like Jetspeed 1.5 is using Velocity instead of JSP by default. How do you configure it to use JSP instead ? Thanks, Tom