How to include taglib in a JSF page?

Hi,
How can I include a taglib in a JSF page? I tried the following:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>but I get an error as:
Invalid character used in text string ( <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> ).
Please help!!
Thanks.

Hello Prasant,
I think page fragments is what your after, one of the Sun guys did a good blog on page layout with jspf but i can't access the weblogs, but you could try this tutorial in the meantime:
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/pagefragments.html
Then search the weblogs when its available. i hope this helps
Cheers
Gaz

Similar Messages

  • How to Include the URL of a page in Notification Email ?

    Hi ALL,
    I need your help to implement the below requirement.
    I have implemented Email notification in our application.so when ever the user creates any form/modify the form ,mail will be triggered to them.Now the users want to include the link in the email.
    When they click the link in email ,it should be navigated to the newly created form page in Apex.
    How to include the link of the page in the Email process?
    Thanks,
    Ramya.

    Hi Tuceef,
    Thanks for the response.
    I have created another hidden item P8_URL1 IN page 8 and
    I have created an on submit process in page processing section.
    the pl/sql code is
    Begin
    htp.p('<script type = "text/javascript">');
    function setLocation(href)
               // set the location path specified in the textbox.
               htp.p('location.href = document.getElementById(href).value;');
              htp.p('P8_URL1:= location.href');
    htp.p('</script>');
    end;But the code fetching the plain URL only,it's navigating to the empty form page when i click on the URL.
    Please correct the code if am wrong anywhere!
    Thanks & Regards,
    Ramya.

  • How to set bean property in jsf page

    Hi,
    Hopefully theres an easy solution, but I can't figure it out...
    I have a managed bean that spans several jsf pages.
    Within each page I want to set a flag that tells the bean which page it is serving (as well as some other params).
    How do I set a property of the bean in the page?
    I've tried
    <jsp:useBean id="filter3" scope="request" class="com.aol.rsistats.ui.FilterBean"/>
    <jsp:setProperty name="filter3" property="filterType" value="3"/>
    but that doesn't load the page through the normal JSF routine (and I initialise some values of the bean in the faces-config.xml file... so these are not initialiased when the setProperty is called) .
    (In general I get some strange behaviour when I mix jsf tags with jsp, or jstl, so I've avoided it as much as possilble)
    Is there another way?
    Cheers,
    Keith

    This example works for me (using jsf-1_1_01).
    Index.jsf:
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ page language="java" %>
    <%-- jakarta-taglibs-standard-1.0 --%>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%--
    Note, that with jakarta-taglibs-standard-1.1.1 taglib directive
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    the example NOT works!!!
    --%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
    <head>
    <title>MyTitle</title>
    </head>
    <body>
    <f:view>
    <%--
    Do not delete the following lines! You need to address to WIManager before using c:set.
    --%>
    <!--
    <h:outputText value="#{WIManager != null}"/>
    -->
    <c:set target="${requestScope.WIManager}" property="bpId" value="bpIdValue"/>
    <h:form id="MyWebFormTask" >
    <h:commandButton id="ok" action="ok" value="Ok"/>
    <h:inputHidden id="bpId" value="#{WIManager.bpId}"/>
    </h:form>
    </f:view>
    </body>
    </html>
    ok.jsf:
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ page language="java" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
    <head>
    <title>MyTitle</title>
    </head>
    <body>
    <f:view>
    WIManager.bpId: {<h:outputText value="#{WIManager.bpId}"/>}<br>
    </f:view>
    </body>
    </html>
    In ok.jsf I can see WIManager.bpId property set in Index.jsf.
    faces-config.xml:
    <managed-bean>
    <managed-bean-name>WIManager</managed-bean-name>
    <managed-bean-class>my.package.WIManagerBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bpId</property-name>
    <property-class>java.lang.String</property-class>
    <value>#{param.wim_bpid}</value>
    </managed-property>
    </managed-bean>
    Resume:
    -- use <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    instead of <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    -- address to WIManager before using c:set.

  • How-to get attributes from one JSF page redirected to another?

    How do I send information from one JSF page when the navigation rule redirects it to another?
    When JSF navigation does a forward I can use request.setAttribute() in the from-page and then use request.getAttribute() in the to-page, but this doesn't work with <redirect/>.
    Regards,
    Al Malin

    The process scope in ADF Faces solves this. See:
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.adffacesguide%7Cdevguide%7CcommunicatingBetweenPages%7Ehtml/

  • How to use HTML tags inside JSF pages

    I am creating a Menu using dataTable and outputLink in a JSF page.
    <div class="bodyarea">
    <div id="location">
    <ol>
    <h:dataTable value="#{menuItem.breadCrumb}" var="bread" >
    <h:column>
    <li>
    <h:outputLink id="crumbID" value="#{bread.menuLink}">
    <h:outputText id="crumpName" value="#{bread.menuLabel}" style="width: 165px;"/>
    </h:outputLink>
    <li>
    </h:column>
    </h:dataTable>
    </ol>
    </div>
    </div>
    I want to use <li> HTML tag as shown in code above before and after every <tr> tag formed, but when i run it and see view source, this is how it shows:
    NOTE: you can see it has thrown out of <table> tag itself.
    <div class="bodyarea">
    <div id="location">
    <ol>
    <li>
    </li>
    <table>
    <tbody>
    <tr>
    <td><a id="_id0:0:crumbID" href="/eApps/admin/loginPage.jsp?MenuItem=-1"><span id="_id0:0:crumpName" style="width: 165px;">Home</span></a></td>
    </tr>
    <tr>
    <td><a id="_id0:1:crumbID" href="/eApps/admin/loginPage.jsp?MenuItem=3~-1"><span id="_id0:1:crumpName" style="width: 165px;">HIM Admin</span></a></td>
    </tr>
    </tbody>
    </table>
    </ol>
    </div>
    </div>
    Can some one help me, how do i use HTML tags inside <h:dataTable>.
    Or is their any other way i should form my Menus, to fully utilize to HTML tags.
    Thanks
    Ravi

    Hello,
    You can embed the verbatim elements in your datatable, ie,
    <h:dataTable value="#{menuItem.breadCrumb}" var="bread" >
      <h:column>
        <f:verbatim><li></f:verbatim>
        <h:outputLink id="crumbID" value="#{bread.menuLink}">
          <h:outputText id="crumpName" value="#{bread.menuLabel}" style="width: 165px;"/>
        </h:outputLink>
        <f:verbatim></li></f:verbatim>
      </h:column>
    </h:dataTable>

  • How to use frames in a jsf page

    hi all,
    I need my page to be divided into three frames each frame with scrollable option. Each page should be able to display different jsp pages.Can anyone give a solution how can i implement this in a jsf page
    regards,
    Prasant

    Hello Prasant,
    I think page fragments is what your after, one of the Sun guys did a good blog on page layout with jspf but i can't access the weblogs, but you could try this tutorial in the meantime:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/pagefragments.html
    Then search the weblogs when its available. i hope this helps
    Cheers
    Gaz

  • How to achieve below case using JSF page

    Hi
    I have Created a View Object on DEPT table and I have created a "selectOneChoice" to display only deptno column values.
    When user selects deptno from "selectOneChoice" I need to refresh the JSF page by displaying selected department details.
    How Can do this. I am new to JSF. Anybody let me know steps how to do this.
    Regards
    Kiran Akkiraju

    You use the setWhereClause method on your view object:
    http://download.oracle.com/docs/html/B25947_01/appendix_mostcommon002.htm#sm0406
    One other approach to create the screen would be to have a VO with a built in where clause that uses a bind variable - then you drag this as a parameter form and then as a result table.
    See:
    http://www.oracle.com/technology/products/jdev/tips/muench/screencasts/threesearchpages/threesearchforms_partthree.html?_template=/ocom/technology/content/print

  • How to use j query in .jsf page which is designed using adfpagetemplate.

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:document title="untitled7.jsf" id="d1">
    <af:form id="f1">
    <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">
    <f:facet name="center">
    <af:resource type="javascript"
    source="/lib/jquery/jquery-1.3.2.min.js"/>
    <af:resource type="javascript">
    function slideSwitch() {
    var $active = $('#slideshow IMG.active');
    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
    // use this to pull the images in the order they appear in the markup
    var $next = $active.next().length ? $active.next() : $('#slideshow img:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
    .addClass('active')
    .animate({opacity: 1.0}, 1000, function() {
    $active.removeClass('active last-active');
    $(function() {
    setInterval( "slideSwitch()", 15000 );
    </af:resource>
    <af:resource type="css">
    #slideshow IMG {
    position:absolute;
    top:0;
    left:0;
    z-index:8;
    opacity:0.0;
    #slideshow IMG.active {
    z-index:10;
    opacity:1.0;
    #slideshow IMG.last-active {
    z-index:9;
    </af:resource>
    <af:panelGroupLayout id="slideshow" layout="vertical">
    <!-- The use of groups avoids that each image gets surrounded by a div -->
    <af:group>
    <af:image source="/images/cristo1.jpg" id="i1" />
    <af:image source="/images/cristo2.jpg" id="i2"/>
    <af:image source="/images/ipanema1.jpg" id="i3"/>
    </af:group>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="header"/>
    <f:facet name="end"/>
    <f:facet name="start"/>
    <f:facet name="branding"/>
    <f:facet name="copyright"/>
    <f:facet name="status"/>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    Above content is my code written in jsf page....
    jquery working fine if i create page withoput pagetemplate...
    Any please guide me to use jquery in the jsf page(created with page template)...
    Thanks in advance
    Edited by: 991543 on May 7, 2013 11:05 PM

    Hi frank,
    thanks for your reply frank........still am facing the same issue even i tried wat you told.
    I have pasted the code below for your reference.....
    please let me knw wat is the wrong thing in below code if any thing wrong plz guide me to resolve because this is needed in our project, thanks in advance.
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:document title="untitled7.jsf" id="d1">
    <af:form id="f1">
    <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">
    <f:facet name="center">
    <af:resource type="javascript"
    source="/lib/jquery/jquery-1.3.2.min.js"/>
    <af:resource type="javascript">
    function slideSwitch() {
    var $active = $('#pt1:slideshow IMG.active');
    if ( $active.length == 0 ) $active = $('#pt1:slideshow IMG:last');
    // use this to pull the images in the order they appear in the markup
    var $next = $active.next().length ? $active.next() : $('#pt1:slideshow img:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
    .addClass('active')
    .animate({opacity: 1.0}, 1000, function() {
    $active.removeClass('active last-active');
    $(function() {
    setInterval( "slideSwitch()", 1000 );
    </af:resource>
    <af:resource type="css">
    #pt1:slideshow IMG {
    position:absolute;
    top:0;
    left:0;
    z-index:8;
    opacity:0.0;
    #pt1:slideshow IMG.active {
    z-index:10;
    opacity:1.0;
    #pt1:slideshow IMG.last-active {
    z-index:9;
    </af:resource>
    <af:panelGroupLayout id="slideshow" layout="vertical">
    <!-- The use of groups avoids that each image gets surrounded by a div -->
    <af:group>
    <af:image source="/images/cristo1.jpg" id="i1" />
    <af:image source="/images/cristo2.jpg" id="i2"/>
    <af:image source="/images/ipanema1.jpg" id="i3"/>
    </af:group>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="header"/>
    <f:facet name="end"/>
    <f:facet name="start"/>
    <f:facet name="branding"/>
    <f:facet name="copyright"/>
    <f:facet name="status"/>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    Thanks & Regards
    Gowthaman Narayanan
    Edited by: 991543 on May 15, 2013 4:27 AM
    Edited by: 991543 on May 15, 2013 4:30 AM

  • Code relocation... how to "include '.js' file in the page" ..?

    Several weeks back I was advised in a post ..: "For non .mac slideshow you need to include the photo page's .js file in the page that you want to jump from."
    I asked for clarifications, but got no response.
    Now, recovering from file corruptions and an os reInstall, I'm back up to speed again - at least sufficient to get back into that issue.
    The subject was "remote link to 'slideshow' " at this page:
    "http://discussions.apple.com/thread.jspa?messageID=4247476&#4247476
    I was asking how to activate a s.s. from a link on a different page, given that I was not publishing to dot-mac.
    The response of moving the .js file was a real left curve for me; I've no idea of what do do with the suggestion.
    Can someone explain in more detail what that was trying to suggest?
    -Like, include the whole '.js' file..?
    -Like where in the initiating page would I include the .js?
    -Like would that .js need some of it's own modifications before moving it or after?
    -Like are the modifications needed in page with the initiating link.
    -and, am I suppose to move the whole .js file, or just refer to it someway?
    Or is there some other way to do it?
    I sure would appreciate some guidance with this remote link thing...
    Thanks in advance..!
      Mac OS X (10.4.7)  

    You include javascript into a jsp in exactly the same way you do with html
    <script src="myJavascriptFile.js"/>
    It has nothing to do with the jsp per se, but rather the generated HTML page.

  • How to include javascript file (.js) to pages in portal

    Hi,
    I have been trying to include a javascript file (something.js) to a portal. actually, I want to include it on a html portlet that will be my navigation page.
    I have used the code below to add the js file, but it seems not working
    <script language="JavaScript1.2" src="/javascript/cp_navigation.js">
    </script>
    I have uploaded the js file to the /ora9ias/enterprise/portal/javascript folder (created) in portal server. is there any configuration that I have left out?
    another thing, if I want to include some of the js file to the <head> section, am I possible to do it? and how?
    thanks

    Jerry,
    Where to find this? give the date or the name, please?
    *We're often desperate users that are under pressure to make these Oracle applications WORK for our employers!
    Your help in making us efficient is definitely appreciated!

  • How to display arraylist list on jsf page

    Hii all,
    i am having an jspx page where i want to display the value coming from a bean class getter..
    the getter is returning an Arrarylist of list
    and i want to display the entire array list on the jspx page when it gets loaded.
    The method is :-
    public ArrayList<List> getMyList() {
    myList=getDocumentProperties();
    return myList;
    How to iterate the entire list on jsf..??
    any idea..!!
    Thanks

    You can use <af:forEach> or <af:iterator> in an ADF Faces page to iterate over the items returned by the bean's getMyList() method:
    <af:forEach var="prop" items="#{MyBean.myList}">
      <af:outputText value="#{prop}"/>
    </af:forEach>If you want to iterate over the inner lists, then use a nested iterator:
    <af:forEach var="prop" items="#{MyBean.myList}">
      <af:forEach var="item" items="#{prop}">
        <af:outputText value="#{item}"/>
      </af:forEach>
    </af:forEach>Dimitar

  • How to include HTMLB in a HTML page

    Hello all,
    Is it possible to include for instance a HTMLB:tableview-element in a plain HTML page, with a minimum of HTMLB-elements?
    So i have:
    <HTML>
      <HEAD>
        <TITLE>
        <TITLE>
      </HEAD>
      <BODY>
      </BODY>
    </HTML>
    Where and what HTMLB-elements do i have to include to succeed?
    The reason for my question is, that i have to include some additional elements in a standard generated page and i prefer to us HTMLB for it.
    Thanx in advance.
    Kind regards,
    Martijn de Jong.

    Hi,
       add the following code where ever you require a tableview...
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = "display page ">
      <htmlb:form>
          add tableview here....
      </tmlb:form>
    </htmlb:page>
    </htmlb:content>
    Regards,
    Azaz Ali Shaik.

  • How to Hide JBO Exceptions in JSF Pages in ADF 10g

    Hi All,
    How to hide the JBO Exceptions in ADF 10g, for example JBO-27122: SQL error during statement preparation. I have been used the same customizing error handler which was specified in bcadfdevguide. But the method reportexception which will call disableappendcodes is not doing anything in my case.
    I want to show some decent errors instead of JBO errors to the user, appreciate if you help me on this.
    thank you.

    Hi Jobinesh,
    Thanks for the reply, actually i am looking to show the user our own customized error instead of JBO errors, i don't know whether the method skipexception will skip it or i can override it to show customized exceptions. and registering the customerrorhandler in databindings is different from registering the customphaselistener class in faces-config.xml which was usually done in 10g.
    But in my case, even though i followed everything what was specified in dev guide, i am not getting the result. Hence this post in forums :)
    Thanks.

  • How to include a file in jsf ?

    what equals tiles in struts here in jsf ?
    plz help me

    It depends on the view technology you are using (JSP,Facelets...).
    You can also use tiles with jsf: [Tiles_and_JSF|http://wiki.apache.org/myfaces/Tiles_and_JSF]
    Sorry Balusc, I'm late... ;)
    Edited by: alf.redo on 29-ott-2008 14.13

  • How to include private reports in any page for a websheet application

    Hi,
    i have created a websheet application, it has n number of data grids.
    For some data grids i had created reports, which got classified as private reports by default.
    i would like to display these reports in a page of my websheet application, when i create a new page i am unable to select any of the reports created by me. it only lists out primary report which is a public report.
    any help towards this would be of great help.
    thanks
    srinivas p

    Hello Ram,
    e-recruiting customizing is (in most areas) devided into a sap delivery table and a customer table. When opening the IMG you only find the customer table which is empty as long you have not done any customer configuration yet.
    The tables for startpage customizing (BSP) are named T77RCF_SP_*. The ones containing customer customizing contain a C in the name while the tables with the standard delivery are not. Example: customer table for start page groups T77RCF_SP_GROUPC, standard table T77RCF_SP_GROUP. Standard delivery content can be checked in SE11 or SE16.
    You should not change the standard table contents. It is better to customize your own startpages based on the sap delivery. I personally recomment not to use the sap standard Ids for customer own links, groups and startpages as they overrule the standard ones and you cannot display them later.
    To replace the icons on a standard page you should do the following steps:
    - get the groups for the standard startpage from table T77RCF_SP_ASID
    - get the links to each group from table T77RCF_SP_ASGRP
    - create your customer groups in IMG, use 9XXX ids but copy the information from the standard groups found in table T77RCF_SP_GROUP
    - adjust the ICON links
    - add the links to your groups (you use the standard links here as you do not change them)
    - create a customer startpage in IMG using 9XXX id. you can take the standard settings from table T77RCF_SP_ID
    - assign your customer groups to the customer startpage
    Best regards
    Roman

Maybe you are looking for

  • My experience of BT CS

    As we see a lot of negative posts about people’s experiences with BT customer support, I thought I would post mine which is by and large mostly positve. I’ve had BT Infinity for now just over 3.5 years, and had 3 outages in that time external to me;

  • How many times can u use an app?

    hey! i have purchased many ipad apps im about to get a second ipad and i want the apps on both using just the one purchase of them (one account) my question is how many times can u use an ipad app with one purchase? i kknow with music it says 5 copie

  • Licensing service for Acobat X stops every 30days.

    Im using a Creative suit 6 D&W Premium, my Acobat stop response every 30day.  every 30 days, i need deactive from PS then re-active to keep Acrobat running.  what is happing here? the D&W Premium is running by a 64bit  Windows 7 Ult + Sp1 and with al

  • Moving buildings cisco prime infra 2.1

    Hi, is it possible to move a building from one campus to another if the building already exits within the "new" campus? regards André

  • Resize and print a large image in a report

    A current project I'm working requires that a "report" be printed out for every "part" produced.   Each "part" is photographed and a high quality (large) .jpg file is generated and cataloged on the hard drive.  A report with this image is then printe