cancel
Showing results for 
Search instead for 
Did you mean: 

HOW to add footer in Ajax framework page in portal 7.3

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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.



former_member246153
Active Contributor
0 Kudos

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

Former Member
0 Kudos

when i add that layout to the page it gives below error.

Error in Layout Jsp component (pageId or jspName not available)

former_member246153
Active Contributor
0 Kudos

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

Former Member
0 Kudos

thanks for quick reply.

as per the log it looks like application refernces is issue. i will just check in detail what can be done to resolve the same.

Former Member
0 Kudos

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

Former Member
0 Kudos

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" %>

former_member246153
Active Contributor
0 Kudos

Hi,

     Leave those build errors for tag lib and epagevariables, it will not affect your component. Please check you have given com.sap.portal.pagebuilder in your sharing reference.

Regards,

Srinivasan V

Former Member
0 Kudos

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"/>
Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Qutubuddin,

Adding the height parameter to the BODY tag of the Html page will reduce the default height of the html page and in turn the vertical scroll bar of the iview will also disappear.

Cheers

Jeet

former_member246153
Active Contributor
0 Kudos

Hi,

   Have you changed the Height Type attribute of your iView/Page to Automatic? Please check that also..

Regards,

Srinivasan V

Former Member
0 Kudos

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" %>

former_member246153
Active Contributor
0 Kudos

Hi,

OK leave these build errors...  Can you provide the logs from NWA?

just check the below thread also

Modify AFP Layout | SCN

Regards,

Srinivasan V

Former Member
0 Kudos

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.


former_member193577
Active Contributor
0 Kudos

Hi,

Please see the following document ,specifically slides 30-35 for adding a footer iView:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d077fa17-7fbf-2a10-d983-fb12decf6...

Best Regards,

Tal

Former Member
0 Kudos

hi

that document is for portal 7.0 i needed for portal 7.3

former_member246153
Active Contributor
0 Kudos

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

Former Member
0 Kudos

hi ,

this i have already seen it does not give any details for the steps to be done for customizing the layout. is this the only solution we can not add the footer container without doing coding?

former_member246153
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks.Do you have any steps which needs to be followed while doing this customization.

former_member246153
Active Contributor
0 Kudos

Hi,

     Ya i tried customizing this layout component, but in your case first try to get this com.sap.portal.navigation.afp.layout component to NWDS. Then check how to add a container at the bottom of the Layout to hold the footer iview.

I don't have any documents on it...

Regards,

Srinivasan V

Former Member
0 Kudos

hi Srinivasan,

can you give the details what customizing you have done in framework layout and also whether we can add footer conatiner in the layout or not.

former_member246153
Active Contributor
0 Kudos

Hi,

     I don't have any documents related to that , but i think it is possible to add footer in com.sap.portal.navigation.afp.layout component.

Regards,

Srinivasan V

Former Member
0 Kudos

Hi Srinivasan,

i have dowloaded the application com.sap.portal.navigation.afp.layout in my nwds there are lots of error coming in the application . can you guide me what all jar file needs to be added and from where.

former_member246153
Active Contributor
0 Kudos

Hi,

Just check the below thread for getting jar files needed for this layout component

http://scn.sap.com/thread/2146360

Regards,

Srinivasan V

Former Member
0 Kudos

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.

former_member246153
Active Contributor
0 Kudos

Hi,

While generating EAR file provide a different name.So that we can check whether it is working or not,then if everything is OK then we can overwrite the standard EAR.

Regards,

Srinivasan V

Former Member
0 Kudos

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 ?

former_member246153
Active Contributor
0 Kudos

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

Former Member
0 Kudos

thanks for your reply.

i am struck at one place i have added all jar file lots of error got removed but still i am having error PortalRuntime not resolved. can you help out which jar files needs to be added.