To use the UI components in your JSP pages, you need to add a Tag Library Definition (TLD) declaration that specifies the tag library where the components are defined. There are two main TLD declarations: one for the ReportPageViewer
component and one for the remaining BusinessObjects Enterprise components that encapsulate functionality to log on and list or navigate managed content.
<%@taglib uri="http://www.businessobjects.com/jsf/enterprise" prefix="boe"%>
<%@taglib uri="http://www.businessobjects.com/jsf/crystalreportsviewers" prefix="bocrv"%>
You also need to add declarations to core JavaServer Faces and HTML libraries:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
For more information on the tag libraries, see Tag libraries.
Next is an example of a logon.jsp page that contains a Logon
component. The Identity
bean that is set to the identity
attribute of the component tag would be initialized in the faces
file. In addition to the tag library declarations, there are two, last, important features of the JSP page:
The example also assumes a backing bean called Logon
exists that contains a method called logonAction
that returns navigation strings used to process the success or failure of a logon attempt by faces
. For more information, see How do I use backing beans?.
<%@taglib uri="http://www.businessobjects.com/jsf/enterprise" prefix="boe"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<html>
<body>
<f:view>
<h:form>
<boe:logon identity="#{identity}" id="logonForm" action="#{Logon.logonAction}">
</boe:logon>
</h:form>
</f:view>
</body>
</html>
Business Objects http://www.businessobjects.com/ Support services http://www.businessobjects.com/services/support/ |