Encountered deferred syntax #{ in template text.

Hi All,
I am using Webcenter application 11.1.1.5. When I run any jspx page form this application I get error:
<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
javax.faces.FacesException: javax.servlet.ServletException: OracleJSP error:
oracle.jsp.parse.JspParseException:
/oracle/webcenter/portalapp/pagetemplates/pageTemplate_globe.jspx: Line # 50, <cust:panelCustomizable id="pt_pc4" inlineStyle="background-image:url(#{facesContext.externalContext.requestContextPath}/images/globe_tab-bkg.png);background-position:center top;background-repeat:repeat-x;padding-top:2px;" rendered="#{!composerContext.inEditMode and attrs.showNavigation and !attrs.isEditingTemplate}">
Error: Encountered deferred syntax #{ in template text. If intended as a literal, escape it or set directive deferredSyntaxAllowedAsLiteral
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)
Caused by: javax.servlet.ServletException: OracleJSP error:
oracle.jsp.parse.JspParseException:
/oracle/webcenter/portalapp/pagetemplates/pageTemplate_globe.jspx: Line # 50, <cust:panelCustomizable id="pt_pc4" inlineStyle="background-image:url(#{facesContext.externalContext.requestContextPath}/images/globe_tab-bkg.png);background-position:center top;background-repeat:repeat-x;padding-top:2px;"
rendered="#{!composerContext.inEditMode and attrs.showNavigation and !attrs.isEditingTemplate}">
Error: Encountered deferred syntax #{ in template text. If intended as a literal, escape it or set directive deferredSyntaxAllowedAsLiteral
Every jspx page is build on default page template pageTemplate_globe.jspx
Amit

Thanks for your response Hoque.
Attribute 'showGreetings' already exists in page template.
What I assume is some thing in the project is corrupted as a result of which below statement for cust:panelCustomizable is giving the error. Please note this is default template from Webcenter with no changes at all.
rendered="#{!composerContext.inEditMode and attrs.showNavigation and !attrs.isEditingTemplate}
If I create a new project, same template works fine. So I guess some jar or tag libs are missing. I tried to remove and add 'WebCenter Customizable Components Tag Library' (has prefix cust) again but that didn't worked.
Any ideas ?
Thanks. Amit

Similar Messages

  • Deferred Syntax Error : ADF Business Rules

    Hi all,
    I am working on business rule implementation in my project . I have created a dictionary (.rule) file and added oracle rules and oracle rule editor component libraries to the project . The page fragement contains the rulesdc component which reads the dictionary file from a path . i have also added oracle.soa.rules_dict_dc.webapp.war to the integerated WLS Deployments section. when i run the page i get an error ' Error: Encountered deferred syntax #{ in template text. If intended as a literal, escape it or set directive deferredSyntaxAllowedAsLiteral' . I have also tried with having deferredSyntaxAllowedAsLiteral value true in the page which contains the rulesdc component but no use. the error still persists .
    can anybody help in this case?
    Thanx in advance

    Thank you for pointing this out.
    I'm currently browsing metalink kb but "7021469 - Business Rules should support dataexport and dataimportbin functionality" provides no results.
    hbr_93300_readme.pdf refers indeee to that issue but I cannot upgrade to that version (because, as stated in that pdf, I should upgrade all prouducts to 9.3.3)
    You said it might be solved in Administration Services release 9.3.1.5 (I believe 9.3.1.1.5 was a typo), but the readme does not mention it...

  • Deferred syntax error  while integration WSRP Portlets

    Hi,
    I have a webcenter application, in which :-
    1. I have created WSRP Producer portlet from connection>New Connection>Portlet Producer in application Navigator.
    2. Portlet Producer is created succesfully and started appearing under the resource pallet.
    3. Later I create a new .jspx page and ran the page. It ran succesfully
    4. Then I drag that portlet on the .jspx page and ran it again , then it errored saying :
    "Error: Encountered deferred syntax #{ in template text. If intended as a literal, escape it or set directive deferredSyntaxAllowedAsLiteral"
    If require I'll send the entire stack trace.
    Please let me know if have any pointers, any leads will be really helpful.
    Thanks,
    Amrita

    Hello
    Did you resolved this?
    I've deployed 11.1.1.6.0 and applied patch 14361677.
    I've deployed my portlet to a custom portal and using EM, attached the WSS 1.0 SAML Token with Message Protection Service policy. I registered the WRSP portlet and specified WSS 1.0 SAML Token with Message Protection under the security section.
    The portlet works fine in composer - it's when I save the page that I am finding problems.
    Once I saved the page and try to stress test the portlet (i.e., press the button twice for instance), an error page is displayed indicating a time out.
    If I navigate to another page and return to my page, the portlet does not render.
    When I log out of WebCenter, the exception described in your post is thrown.
    It would be great if Oracle provided documentation we are looking for.

  • JBoss, JSF exception: #{..} is not allowed in template text

    I've created a simple JSF login application using MyEclipse IDE. I deployed the application on JBoss 4.2.1. At first it failed to deploy. After some searching, I followed the instructions at:
    http://forum.java.sun.com/thread.jspa?threadID=5176676&messageID=9923048
    I deleted the JSF related jar files in the JSF application's WEB-INF/lib folder. The application was then only successfully deployed.
    Question #1:  Is there a conflict with the jar files, which prevents the application from being deployed.  Does someone know the right way to solve this issue
    Now when I access my page in the browser at the URL:
    http://localhost:8080/JSF_tutorial/userLogin.faces
    I see the following exception:
    org.apache.jasper.JasperException: /userLogin.jsp(32,29) #{..} is not allowed in template text
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:102)
         org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:711)
         org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:935)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
         org.apache.jasper.compiler.Validator.validate(Validator.java:1737)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:408)
         com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:442)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    Question #2: How do I get rid of the above exception?
    thanks,

    tsc wrote:
    I've created a simple JSF login application using MyEclipse IDE. I deployed the application on JBoss 4.2.1. At first it failed to deploy. After some searching, I followed the instructions at:
    http://forum.java.sun.com/thread.jspa?threadID=5176676&messageID=9923048
    I deleted the JSF related jar files in the JSF application's WEB-INF/lib folder. The application was then only successfully deployed.
    Question #1:  Is there a conflict with the jar files, which prevents the application from being deployed.  Does someone know the right way to solve this issue
    I'm not entirely sure what you are asking here; do you want to be able to include an implementation of JSF with your WAR file? In any case, I suspect your question is answered on the JBoss Wiki pages for JSF.
    Now when I access my page in the browser at the URL:
    http://localhost:8080/JSF_tutorial/userLogin.faces
    I see the following exception:
    org.apache.jasper.JasperException: /userLogin.jsp(32,29) #{..} is not allowed in template text
    Question #2: How do I get rid of the above exception?
    My best guess is that you are somehow configured to use JSP 1.x instead of JSP 2.1 (see http://www.google.com/codesearch?q=jsp.error.el.template.deferred). Check your tag library tld versions.

  • Using PSE11 on MacPro, using a commercial digital template text editing stuck in upper case, cannot change to LC in any font; tried deleting layer

    Using PSE11 on MacPro, using a commercial digital template>text editing>stuck in upper case, cannot change to LC in any font; tried deleting layer

    Can you use lower case in other files? If not, then go to the far right of the tool options and click the little four-lined square and choose Reset Tool.

  • Template text in JSF element still output when rendered="false"?

    I was thinking about trying the following to optionally output some components and template text.
    <h:panelGroup rendered="#{! empty courseSiteRequestBean.comments}">
    <p>
    <h:outputLabel value="Comments:"/>
    <h:outputText value="#{courseSiteRequestBean.comments}"/>
    </p>
    </h:panelGroup>
    However, I found that while the components were supressed from being rendered if rendered="false", the template text was not. Why?
    I was hoping that I could find a solution to doing this kind of thing without having to use JSTL. Why? Because the fact that JSF isn't fully compatible with JSTL makes it's use seem inelegant IMHO. If the theory is that this is supposed to be easier for HTML coders, I'm not so sure...
    I can get it to work if I use h:outputText elements to output the template text, but, that seems excessive. I don't understand why it doesn't just work the same way the <c:if> statement does.

    for displaying things in the right order, try this
    <h:panelGroup rendered="#{! empty courseSiteRequestBean.comments}">
    <f:verbatim><p></f:verbatim>
    <h:outputLabel value="Comments:"/>
    <f:verbatim><br/></f:verbatim>
    <h:outputText value="#{courseSiteRequestBean.comments}"/>
    <f:verbatim></p></f:verbatim>
    </h:panelGroup>

  • Customizing Template Text question

    Has anyone customized the template text via the xml file?  I have begun some work to tailor the template text to our current standards, but am having difficulty getting the Object Name to display in all CAPS.  Please let me know if anyone knows how to code this.  Thanks!

    Yes, I always end up customizing the template texts for my clients. It's relatively easy if you know what you're looking at. there's a very good explanation and instructions on how to change it in the book Oracle UPK 11 Development (see Amazon: http://amzn.to/XPxlNL).

  • ADF FACES: HTML template text Layout is broken when uses ADF Faces tags

    This works fine:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
    </head>
    <body>
    <h:form>
    <table border="1">
    <tr>
    <td width="45%">
    <h:dataTable rows="5" bgcolor="Red" value="#{class1.names}" var="name">
    <h:column>
    <h:outputText value="#{name}"/>
    </h:column>
    <h:column>
    <h:outputText value="#{name}"/>
    </h:column>
    </h:dataTable>
    </td>
    <td width="55%">
    <h:inputText/>
    </td>
    </tr>
    </table>
    </h:form>
    </body>
    </html>
    </f:view>
    => a table is rendered with one row and two columns; in the first column the data table is rendered in the second the inputText
    Changing to ADF Faces tags breaks the layout:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA11" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA11/html" prefix="afh"%>
    <f:view>
    <afh:html>
    <afh:head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
    </afh:head>
    <afh:body>
    <af:form>
    <table border="1">
    <tr>
    <td>
    <af:table rows="5" value="#{class1.names}" var="name">
    <af:column>
    <h:outputText value="#{name}"/>
    </af:column>
    <af:column>
    <h:outputText value="#{name}"/>
    </af:column>
    </af:table>
    </td>
    <td>
    <h:inputText/>
    </td>
    </tr>
    </table>
    </af:form>
    </afh:body>
    </afh:html>
    </f:view>
    => at the begin of the page an empty table is rendered; below the data table is rendered and below the inputText
    It think it should be possible to layout the page with HTML template text and use ADF Faces tags.

    As of EA12 (and EA13) <afh:body> is what is known as a "rendersChildren" tag. It needs to do so in order to support partial-page rendering This means that template text inside it needs to be wrapped inside <f:verbatim>.
    For later releases of ADF Faces, I've filed an enhancement request to loosen up this restriction for <afh:body>.

  • BUG: EL does not evaluate when used in template text but does in tag.

    When I run the jsp below the EL on Line1 evaluates but the EL on Line2 does not. It was my understanding that the form in Line2 should be valid.
    Environment is Jdev 10.1.3.3, Servlet 2.4, JSP 2.0, J2EE 1.4, JSTL 1.1
    Does anyone have any thoughts?
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
    <title>mainMenu</title>
    </head>
    <body>
    Line1 1+2=<c:out value="${1+2}"/> This evaluates.
    Line2 1+2=${1+2} This does not.
    </body>
    </html>
    web.xml is
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    </web-app>
    Thanks
    PaulJP
    Message was edited by:
    pauljp

    The problem appears to be related to jdev j2ee 10.1.3.3. I installed a fresh copy of jdev j2ee 10.1.3.3. I created a new application, project, and jsp. I placed the ${1+2} EL in the JPSs body as part of the Template Text. The EL did not evaluate.
    I then installed a fresh copy of jdev studio 10.1.3.3 and followed the exact same steps. Using jdev suite the EL does evaluate.
    It is my understanding the EL is part of the JSP API under JSP 2.0 so I would have assumed that it should evaluate under JDEV J2EE 10.1.3.3.
    Message was edited by:
    pauljp

  • EL and template texte question ?

    hi,
    in the j2EE tutorial, in the chapter related to Expression langage (EL), we can read "EL Expressions can be used in two situations, In template text, In any standard or custom tag attribute that can accept an expression"
    ok have a look at this code
    <html>
    <c:out value="${1.2E4 + 1.4}"/>
    ${1.2E10 + 1.4}
    </html>the output is
    12001.4
    ${1.2E10 + 1.4} why the second EL ${1.2E10 + 1.4} is not evaluated, even if it appears in the template texte!!!!
    perhaps i didn't understand what is a 'template texte' ??
    tahnks for your help

    Not only are you expecting magic, you're also an annoying cross-poster
    http://forum.java.sun.com/thread.jsp?thread=468216&forum=4&message=2156458

  • Document template - text lines

    Hi,
    I have created a multine virtual attribute which is filled with text lines (from a PO).
    I want to show these lines in a document template. It works but the lines are shown like this:
    Line1Line2Line3
    In the document template (word document) I want to show it like this:
    Line1
    Line2
    Line3
    How do I force a line-break?
    I'm quite new in WF so i probably made some basic mistake.
    Any help is welcome !
    bert

    Bert,
    What Aman mentioned is not available for Word Document Templates. I am not sure if this will work but try to introduce a linebreak character at the end of each line of the multiline container element. You could try that in the method that populates the multiline container or have a new background method.
    You can try the following code (I have not checked the syntax).
      DATA:
        l_crlf(2).
      FIELD-SYMBOLS:
        <line>  TYPE t_line. "table type of the text
      l_crlf = cl_abap_char_utilities=>cr_lf.
      LOOP AT it_line ASSIGNING <line>.
        CONCATENATE <line> l_crlf INTO <line>.
      ENDLOOP.
    Cheers,
    Ramki.

  • Why Templates text looks uggly in Internet Explorer ?

    Hi folks,
    I´m doing a kind of a job that will make use of the iWeb templates. It will be easier for the task.
    The problem is that most of the audience will navigate to the site by IE (as almost 80% of the planet does, unfortunetly ... lol). Right now I´m doing a test in front of a PC using XP and IE6. The text of the site looks very, very uggly.
    As I´m a mac user for a long time and work with good computers (1 Mac Pro and 1 MacBook Pro) I guess I´m used to "good image".
    On iWeb templates many different fonts are used, probably fonts that are not web safe as I have read through this forum, right ?
    The resolution of the monitor that I´m doing this test is not too bad (1024 x 768), so it should looks ok, right ?
    Checking the folders contents of the site when it is "saved to a folder" before changing text of the pages, I could noticed that most of the contents (paragraphs and texts) are .png files. Images ! Is it a way and the only way to make texts and paragraphs look nice in Internet Explorer ?
    By the way, is it a safe font size for IE or for general internet ?
    Thanks in advance ....

    The rule in your CSS that's causing the squishing is this one:
    .right_side_text {
        letter-spacing: 0;    line-height: 5px;
        margin: auto;
        padding: 0 0 0 20px;
    I don't think that you need margin: auto
    It's easy to test it in Firefox using the Firebug plugin.  You can edit the CSS "live."  However, it's not so easy to test it in IE so I'm not sure what will happen there if you edit it.
    Martin

  • Template Text  Appears Reversed "Mirrored" After Burning

    Greetings, I am using DVD Studio Pro 3.02 with Final cut 4.5
    I have imported my Video asset with Markers created in Final cut, into DVD Studio, I drag the asset to the menu stage, and am asked to build a menu index I pick a template with the right amount of buttons, edit the text on the buttons for proper spelling an capitlization... Hit the preview button, all looks great... I burn a DVD, it pops out, pop it into a P.C. or apple and all the text is reveresed, backwords, DVD plays fine. What is up?
    Sam

    It is a known bug with an incompatible graphics card in some [older] Macs. If you change your preferences to 'software encoding' instead of 'hardware encoding' in DVD SP, the problem should go away.
    Also have a search of previous threads for "backwards" et c. for more detail.
    --edit--
    for example
    http://discussions.apple.com/thread.jspa?messageID=1086448&#1086448

  • Using &Item. syntax in Rich Text (ck editor)

    Morning Forum
    We are trying to use the &ITEM. syntax in Apex 4.1.1 CKE Editor/Rich Text Editor. The editor however converts the & to &amp; ....
    Does anyone have any experience in something something similar and how it can be resolved ?
    Thanks
    Pierre

    Are you saying you have a Source Value or a Default Value to an Editor, and that doesn't convert &PXXX_TEXT. when you load the page?
    I made something similar and had it working. Can you please elaborate?
    Tks,
    Kleber

  • Newborn Newbie Needs To Edit Flash Template Text

    First, I AM learning Flash 8 at Lynda.com. However I have the immediate need to know how to edit the text in a .fla file in F8. I am fairly proficient in Dreamweaver 8 and Photoshop CS, although that may not matter in the case of Flash.
    I do not know how to get at nor edit the text in an .fla file. I've opened an .fla in Flash but it looks like everything's on one layer and I assumed Flash was like PS in that there are many layers of content. I tried but I mangled it badly. I don't really know how the text tools work in Flash.
    I purchased the following template from Flashden:
    http://flashden.net/item/md-portfoliosite-v2/full_screen_preview/3109
    Xml files are included but unfortunately they only drive the galleries and not the rest of the site. Can someone please school me in very very (to the 100th power) basic steps on how I get at this text, edit it, and how I convert the .fla to a .swf and export it to Dreamweaver?
    I have attached the .swf file.
    THANK YOU!!!!!!

    The text may be in an external .txt or .xml file. If you think that the text is written directly in the Flash movie, you can use the Find and Replace tool to find the text. Open the movie, select the stage window, go to the Edit menu and select find. When this window opens type in some of the text that you're trying to find, select Text and Actionscript in the options and and hit the find button. This should give you a list of the places where that text exists in your movie.

Maybe you are looking for