on 12-23-2013 4:40 AM
hi Team,
I have requirement to add footer in ajax framework page in portal 7.3. But i dont find any container in ajax framework layout where i can add my footer ivew. like other container we have for masthead and detail navigation but nothing for footer. Can anyone have idea how to add footer in AFP.
i have followed following steps.
1. downloaded afp application from server and import the application in to NWDS.
2. changed the name of application to com.sap.portal.navigation.afp.layout_New.
3. Created the EAR project checking the chekbox on import screen with name com.sap.portal.navigation.afp.layout_NewEAR
4. changes made in portalapp.xml application alias name to "AFPLayout_New"and application name to com.sap.portal.navigation.afp.layout_New.
5. added the jar files in to project and made the changes in the code.
6. Configured the EAR appliaction-j2ee-engine xml added new resource and referenced to com.sap.portal.navigation.afp.layout_New and vendor sap.com
7. exported the EAR file and deployed in to server.
8. Deployment finished with warning CSN component for deployment not available.
9. In portal under content admin application is found but there is no option to copy. option available is update PCD object when click on the same it gives following error.
Child not found: com.sap.portal.navigation.afp.layout_New atcom.sap.portal.system/gpal_hidden_content/gpar
what can be the error where i am going wrong.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the Portal under Portal Applications tab are you able to see that com.sap.portal.navigation.afp.layout_New. Then are able to expand this application to see the Layout Component which you have mentioned in portalapp.xml
Just follow the below blog
http://scn.sap.com/docs/DOC-50786
Regards,
Srinivasan V
Hi,
Please check in portalapp.xml , where you should have mentioned your layout jsp name as like below.
<property name="com.sap.portal.reserved.layout.TemplateFile"
value="xxxxx.jsp"/>
And also please check Step 3 : Update the portalapp.xml File in the below link
http://scn.sap.com/docs/DOC-50786
Then please open nwa and post the complete error log..
Regards,
Srinivasan v
hi ,
now the layout application is deployed and i am able to add layout to page but i am geeting error .
below is the error log
at com.sap.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:786)
at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:318)
at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:380)
at com.sap.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:88)
at com.sap.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:222)
at com.sapportals.portal.pb.layout.PageLayout.doContent(PageLayout.java:87)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:164)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:270)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)
at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:229)
at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
at com.sap.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:206)
at com.sapportals.appdesigner.pageeditor.layout.LayoutJsp.doContent(LayoutJsp.java:126)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:213)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:129)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$5.service(RequestDispatcherFactory.java:308)
at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:270)
at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.service(RequestDispatcherFactory.java:298)
at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:229)
at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
at com.sap.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:206)
at com.sap.portal.prt.pom.PortalNode.service(PortalNode.java:588)
at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:233)
at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
at com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:520)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:201)
at com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:132)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:202)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:103)
at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at com.sap.portal.prt.dispatcher.CustomHeaderFilter.doFilter(CustomHeaderFilter.java:58)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:432)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
Caused by: com.sapportals.portal.prt.runtime.PortalRuntimeException: Error while processing jsp: portal module name = com.sap.portal.navigation.afp.layout_Custom, JSP name = jsp/LShapeLayout.jsp
at com.sap.portal.prt.servlets_jsp.JSPProcessor.processJsp(JSPProcessor.java:67)
at com.sap.portal.prt.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:313)
... 75 more
Caused by: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Implicit parsing error.
at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassName(JSPChecker.java:368)
at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.compileAndGetClassName(JSPChecker.java:348)
at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.getClassNameForProduction(JSPChecker.java:237)
at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.processJSPRequest(JSPChecker.java:168)
at com.sap.engine.services.servlets_jsp.jspparser_api.JSPChecker.processJSPRequest(JSPChecker.java:115)
at com.sap.engine.services.servlets_jsp.jspparser_api.JspParser.generateJspClass(JspParser.java:156)
at com.sap.engine.services.servlets_jsp.jspparser_api.JspParser.generateJspClass(JspParser.java:120)
at com.sap.portal.prt.servlets_jsp.JSPProcessor.processJsp(JSPProcessor.java:63)
... 77 more
Hi Srinivasan,
I am wondering the portal runtime is coming because of below buikd errors. ANy idea how can resolve below build errors.especially Taglib error i have seeen the older post it does not give solutions for that error.
i have added all jar files but still facing below three issue can anybody help me out how to resolve this issue.
PortalRuntime not resolved in below code
NavigationEventsHelperService navHelperService = (NavigationEventsHelperService) PortalRuntime.getRuntimeResources().getService(NavigationEventsHelperService.KEY);
Map not resolved in below code.
Map splashScreenParams = navHelperService.getDataFromSharedStorage(new String []{AFPPhaseConfiguration.ATTR_NAME_SHOW_SPLASH_SCREEN});
taglib not resolved in belwo code
<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>
yes it is there below is the sharing refernce from portalapp.xml
| <property name="PrivateSharingReference" value="SAPJ2EE::library:com.sapportals.htmlb, com.sap.portal.navigation.api_service, com.sap.portal.pagebuilder, | com.sap.portal.useragent, com.sap.portal.navigation.helperservice, com.sap.portal.navigation.afp.helperservice, com.sap.portal.pcm.admin.pcdimplservice, com.sap.tc~epbc~prt~api,com.sap.portal.navigation.json.helper.api, com.sap.portal.core.utils"/> |
hi srinivasan,
i was able to add footer container properly. now the issue is we created a footer ivew whiich is a km document ivew which holds one html page with footer container..
but ivew default hehigt is 80 px so it occupies quite space in page. But if we reduce the size of ivew below 80 px a vertical scroll bar comes.Any idea how to remove the scroll bar
Hi All,
i have added all jar files but still facing below three issue can anybody help me out how to resolve this issue.
PortalRuntime not resolved in below code
NavigationEventsHelperService navHelperService = (NavigationEventsHelperService) PortalRuntime.getRuntimeResources().getService(NavigationEventsHelperService.KEY);
Map not resolved in below code.
Map splashScreenParams = navHelperService.getDataFromSharedStorage(new String []{AFPPhaseConfiguration.ATTR_NAME_SHOW_SPLASH_SCREEN});
taglib not resolved in belwo code
<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
OK leave these build errors... Can you provide the logs from NWA?
just check the below thread also
Regards,
Srinivasan V
i have followed following steps.
1. downloaded afp application from server and import the application in to NWDS.
2. changed the name of application to com.sap.portal.navigation.afp.layout_New.
3. Created the EAR project checking the chekbox on import screen with name com.sap.portal.navigation.afp.layout_NewEAR
4. changes made in portalapp.xml application alias name to "AFPLayout_New"and application name to com.sap.portal.navigation.afp.layout_New.
5. added the jar files in to project and made the changes in the code.
6. Configured the EAR appliaction-j2ee-engine xml added new resource and referenced to com.sap.portal.navigation.afp.layout_New and vendor sap.com
7. exported the EAR file and deployed in to server.
8. Deployment finished with warning CSN component for deployment not available.
9. In portal under content admin application is found but there is no option to copy. option available is update PCD object when click on the same it gives following error.
Child not found: com.sap.portal.navigation.afp.layout_New atcom.sap.portal.system/gpal_hidden_content/gpar
what can be the error where i am going wrong.
Hi,
Please see the following document ,specifically slides 30-35 for adding a footer iView:
Best Regards,
Tal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you want to add footer to ajax framework page then you need to customize the ajax framework page layout . You need to add a container to hold your footer in the ajax framework page layout.
war file name:com.sap.portal.navigation.afp.layout.
Please check below thread also:
http://scn.sap.com/thread/2146360
Regards,
Srinivasan V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to add this footer through coding only. No other ways you can get it.That to you need to customize the layout component. Once you import that component into your studio then you might get idea about how to customize it. And also no body will give you the exact coding what your are looking for..
Regards,
Srinivasan V
Hi,
Just check the below thread for getting jar files needed for this layout component
http://scn.sap.com/thread/2146360
Regards,
Srinivasan V
hi srinivasan,
just wanted to check once we are done with our changes any configuration needed in ear file to be deployed.
i have done following activity uptill now.
1.dowladed the war file com.sap.portal.navigation.afp.layout.war from server.
2. imorted in to nwds
3. craeted the EAR project for same.
4. made the changes in jsp.
5. now i want to deploy the application back to teh server any configuration required in EAR file? and also how to make sure it does not overwrite the original war file.
ok so i have to give EAR file a different name not teh the war file . and do i need to change any seeting in EAR project?
secondly if i have to send the file to basis to deploy which one should i send EAR file or expoart to war file.
in portal content the framework will be avilabel with new ear file name ?
Hi,
Yes you need to generate the new ear file for the project, then you can deploy that ear to the SAP Portal server. Then after the deployment in Portal, you can go to
Content Administration--> Portal Content Management-->Portal Applications
you have to copy the deployed application's layout view and past it as PCD Object in the name your folder path. And the property "Object is Template" is marked "YES".
Regards,
Srinivasan V
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.