Xpages form to Create Basic HTML Navigation Links

<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">


	<xp:link escape="true" text="#{CreateHtmlJavaBean.genResourceHtml}"


Run this XSnippet with Java code added earlier 'CreateHtmlJavaBean.java' to populate your side navigation bar with specific links...  Items readily available in NSF back-end based on user preference.  See brief instructions for usage...

Brief Instructions:
(1) Create form, add preferred field items, example ViewURL, AddURL, UpdateURL, DeleteURL
(2) Likewise create view, bring in field items
(3) Run form in your Notes Client to populate View column named 'ViewURL' with the name of your Xpage (one of your Xpages), example 'User-Defined URLs'
(4) In AddURL,  UpdateURL, DeleteURL, add the actual Xpage with its extension, example 'xpuserdefinedurls.xsp'
(5) Repeat steps three and four to add additional page names and Xpage fileName
(6) Go ahead and create the actual page elements, design as you wish
(7) Create an additional page (example: xpcreatehtmldashlinks.xsp), copy above code over generated sample code
(8) Run this bad boy in your browser

Note: You may want to add additional field names to view and form, example UserID, UserRole, in case you want to ensure specific user, gets own page items

Added info:
Configure your facesConfig file

Köll S Cherizard
March 8, 2014 11:12 AM

All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.

No comments yetLogin first to comment...