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>

Similar Messages

  • Elements 9 crashes when rendering - every time.

    When I try and render a video - I've tried several rendering settings - the progress bar always reaches about 20-40 % completion, then the whole program crashes. The error message is from windows. I have tried freeing hard drive space, updating to 9.01, and it is the only program running at the time. Please help!

    Boblimbo
    I am strictly and Elements user, intensely Premiere Elements (all versions) and have a good working relationship with Photoshop Elements alone or integrated with Premiere Elements. And, I stick to Premiere Elements answers to Premiere Elements questions. So, not to worry about me throwing you a Premiere Pro answer for a Premiere Elements question.
    When you created your title in Premiere Elements 9.0/9.0.1 (Title Menu/New Title/Default Still), the "Titler" workspace open, and your creation of the title is done in the Titler.
    Thanks for clarify that your focus is rendering as in exporting the Timeline content to file saved to the computer hard drive or burn to disc rather than Timeline rendering to get the best possible preview of the Timeline content at playback in the Edit area monitor.
    For now, please point your Scratch Disks (Edit Menu/Preferences/Scratch discs) to Libraries/Documents/Adobe/Premiere Elements/9.0 so that they are Local Disk C (assumed with the 484 GB free space).
    Premiere Elements 9.0/9.0.1 on Windows 7 64 bit is still a 32 bit application running in the 32 bit compatibility mode of the 64 bit system and as such has the limitations of 32 bit system, namely, maximum supported installed RAM = 4 GB of which 3.2 to 3.0 GB or less of that are available. So, computer resource is a good candidate, but we need explore other factors as well.
    Was that a misprint 120 GB file? What is its duration in the 18 minute Timeline content? What happens if you remove this file from the project? Do you get a successful export?
    But, preliminary questions...what is your export choice...
    a. Share/Computer/What with What export settings? Whatever the case, what does the export dialog show for estimated file size and duration at its bottom area?
    b. Share/Disc/What.....? If this is the export, what does the burn dialog show in its Quality area for Space Required and Bitrate?
    Not to be forgotten...what
    9 original files, 1 picture, 3 videos and 5 sound files
    What are the formats of those video files...file size, file extension, video compression, audio compression, interlaced or progressive, pixel aspect ratio.
    (Brand/Model/Settings of the camera that recorded the videos might give us some or most of that type of information.) What are the pixel dimensions of your one photo? What is the nature of those 5 sound files (.wav, .mp3....music or narration)?
    Let us start here. The answers should be in the details above.
    We will be watching for your progress when you have time.
    Thank you.
    ATR

  • Bug? Text field & Button are still visible when solid-filled rectangle is placed on top of them

    Adobe Live Cycle 7.1
    It cannot work when i tried to make the text field and button invisible without JavaScript:
    1. Create a text field with any default value and button.
    2. Create a filled color rectangle.
    3. Set the rectangle on top of all objects (right click it and select "bring to front")
    4. View in Pdf.
    5. Result:
    Text field's caption and border are invisible (covered by rectangle) ,but the text field's raw value and the button are visible.
    Is this a bug?

    It's difficult to tell. I can see what you're trying to accomplish but it's possible that Acrobat is giving priority to fillable fields over static objects (such as the rectangle) regardless of z-order (i.e. "bring to front", "send to back"...).
    You can make objects invisible without having to write any script by selecting the objects which should be invisible and setting the Presence property, on the Object palette's Field tab, to
    Invisible or
    Hidden - Exclude from Layout. The former means the objects won't be visible but they will still be a factor in the way in which objects are placed on the form while the latter means they're totally hidden from the form.

  • Adobe Premiere Elements 11, Crashes When Rendering

    When I try and render a video I get the below error and the program closes. The video I'm rendering is roughly 15 min long. Any help would be great!
    I'm using windows 7, and I'm using the latest version of premiere elements 11, and this is on a desktop computer.

    azurite2
    I think it is time to take a hard look at the recording settings that you are using for the Dxtory.
    Apparently CurtisC is not have the same problems as you with Dxtory video. Please see
    http://forums.adobe.com/message/6318308#6318308
    We will deal with the atypical frame size later. Right now setting Dxtory for video compression compatible with Premiere Elements is the task at hand.
    a. consider changing the video codec choice to Microsoft Video 1
    b. consider converting your screen capture to H.264.mp4 with a free program such as HandBrake
    Is the Dxtory software installed on the same computer as Premiere Elements 12? And/or does it come with a utilities program?
    Let us pause here and review the above.
    Thanks.
    ATR

  • Facelets evaluates EL when rendered = false

    I'm want to use facelets to have a template page. But I have the problem that facelets evaluates all the EL in a <ui:define> element. Example:
    <ui:composition template="template.xhtml">
    <ui:define name="title"><h:outputText value="#{bundle.CustomerTitle}"/></ui:define>
    <ui:define name="body" >
    <h:panelGrid rendered="#{customerController.show}">
    <h:dataTable id="customers" value="#{customerController.customers}">
    <h:column>
    <h:outputText value="#{customer.name}"/>
    </h:column>
    </h:dataTable>
    </h:panelGrid>
    </ui:define>
    </ui:composition>
    Even tough customerController.show is false, the content of panelGrid is rendered. Using a subview didn't solve the problem. Is this normal facelets behavior? Is this somehow solvable?
    Grts, Jonathan

    Put the content in another file and use this trick:
                <h:panelGroup rendered="#{renderedCondition}">
                    <ui:include src="#{renderedCondition ? '/WEB-INF/includes/newfile.xhtml' : ''}">
                        <ui:param name="param1" value="#{value1}"/>
                        <ui:param name="param2" value="#{value2}"/>
                    </ui:include>
                </h:panelGroup>

  • Can't output text before document element?

    Hello,
    When I try to run my template, which is programmed in Java and which is supposed to extract information from XML-File, I use a XSLTInputSource interface. But the compiler send the following message:
    org.xml.sax.SAXException: Warning: can't output text before document element! Ignoring...
    Can anyone explain me, what this Exception means?
    Thanks
    RudiRatte

    The XML-File is in a database, which I can't access.

  • 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.

  • 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>.

  • I deleted a contact from my address book but when I go into text message it is still there. How do I fully delete this contact? It is only in my text messages not in my address book.

    I deleted a contact from my address book but when I go into text message it is still there. How do I fully delete this contact? It is only in my text messages not in my address book.

    I don't believe there's much you can do about it...have a look at the "More Like This" pane on the right side of this page.
    One way though to eliminate the issue (although not a very good way) is to restore the phone as new.

  • I dropped my phone and the screen went black but I can still hear when I get a call or text.. How can I fix this?

    Please help! I dropped my phone and the screen went black but I can still hear when I get a call or text.. How can I fix this?

    See Here for  >  Frozen or unresponsive iPhone
    Try this First...
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • 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

  • When I go to text my deleted contacts still show.

    When I go to text, my deleted contacts still show up when I type in a name but when I tap on them just the number shows up. Is there a way to get them to go away other than reseting my iPhone 5?

    Try this...
    have a text convo with the person you want to delete. Go to the top contact in the text convo, hit edit contact, and delete that contact.
    That resolution came from another thread on this issue, and this did solve to poster's issue.

  • SAPscript error - element missing. When added, doesn't fix

    Hi,
    I copied a standard check to a custom SAPscript. All I changed were the header and address windows, which did not call any elements.
    However, when running this check from f110, I get the following messages in the spool:
    F0251                    In form YF110_IN_CHECK / window MAIN , the element 510-1 (Text-1) is missing
    F0253                    Output of the relevant forms is defective
    I added a blank 510-1 element to the main window, but I am still getting this error. Please help.
    Thanks,
    John

    Using your system browser (Windows Explorer or Finder), open the folder that contains your catalog. In Windows it is in your pictures folder and then in a Lightroom folder. Inside of the Lightroom folder you will find another folder that has the extension .lrdata. It will have the same name as your catalog except for the extension. You need to delete that folder, and then start Lightroom again. Lightroom will generate a new previews folder, and you should be back in business.

  • Problems with the xsl element ---- xsl:output method="xml"/ ----

    Hy, my problem is the next, I am trying to read a xml file and transform it in itself but when I do with XSLT, Internet Explorer doesnt show a xml file, just show me the text nodes of the xml file. I have the element <xsl:output method="xml"/>" in the xsl file but I dont Know what Iam doing wrong.
    The next code is from the xsl file:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml"/>
    <xsl:template match="/">
    <xsl:copy-of select="catalog"/>
    </xsl:template>
    </xsl:stylesheet>
    The next code is from the xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Edited with XML Spy v2007 (http://www.altova.com) -->
    <?xml-stylesheet type="text/xsl" href="PlantillaXSL.xml"?>
    <catalog dni="4546545">
         <cd numero="2" id="5" color="red">
              <title>Empire Burlesque</title>
              <artist>Bob Dylan</artist>
              <country>USA</country>
              <company>Columbia</company>
              <price>10.90</price>
              <year>1985</year>
         </cd>
    </catalog>
    The result in internet explorer is:
    Bob Dylan USA Columbia 10.90 1985

    All right. I asked because it's unusual to use the ".xml" extension for an XSL file, so I thought it might be an error. But there's nothing wrong with that.
    Next debugging step: is that XSL file actually being used? Insert some debugging code in it so that you can tell.

  • How to include text as HTML elements (see DOMElement)

    I am working with Flash PRO CC v. 14.0.  to convert my Flash website to HTML5 / javascript
    I have converted a file to the HTML5 Canvas
    I am very happy that the new Flash Pro has the feature to convert to HTML5 canvas
    HOWEVER:
    In my original .FLA file project I use only one font: Copperplate Bold.  I use several sizes of that font within the project / scene
    In the original file for all text I use static text, Letter spacing, AntiAlias, AutoKern and single line (Linetype)
    - none of which the HTML5 canvas seem to allow / support?
    How do I maintain the FONT look that I have chosen in my original FLASH project, after I convert to HTML5 canvas?
    Is there a way in the HTML canvas to maintain the FONT look that I want?
    HTML5 canvas will not allow Font embedding
    The device font destroys the LOOK of my Copperplate Bold font.
    How do I include text as HTML elements (see DOMElements)?
    WARNINGS generated when I convert the original file into an HTML Canvas:
    Warnings generated while copying/importing in 140827a HTML test.fla:
    * AntiAlias is not supported in HTML5 Canvas document, and has been converted to DeviceFonts in an instance of Text.
    * AutoKern is not supported in HTML5 Canvas document, and has been removed in an instance of Text.
    * Frame Scripts have been commented
    * LetterSpacing is not supported in HTML5 Canvas document, and has been converted to 0.0 in an instance of Text.
    * LineType is not supported in HTML5 Canvas document, and has been converted to MultiLineNoWrap in an instance of Text.
    * Some artwork contains Hairline stroke, which is not supported in HTML5 Canvas document, and has been converted to Solid.
    * StaticText is not supported in HTML5 Canvas document, and has been converted to DynamicText in an instance of Text.
    New HTML Canvas Document created.
    NOTE:  So far the only way I have been able to maintain the font look is to convert the fonts to .png files
    This is painstaking work that I would like to avoid.
    Even then I still get a WARNING when I test my scene - (no doubt because I left the original FONT text  in guide layers)
    After conversion ON TEST SCENE:
    WARNINGS:
    Frame numbers in EaselJS start at 0 instead of 1. For example, this affects gotoAndStop and gotoAndPlay calls. (18)
    Only circular (not oval) radial gradients are supported. (85)
    Text support is limited. It is generally recommended to include text as HTML elements (see DOMElement). (6)
    Color effects are published as a filter and subject to the same limitations. (4)
    Filters are very expensive and are not updated once applied. Cache as bitmap is automatically enabled when a filter is applied. This can prevent animations from updating. (2)
    Content with both Bitmaps and Buttons may generate local security errors in some browsers if run from the local file system.
    HOW CAN I MAINTAIN the FONT LOOK that I have chosen for my project?
    How do I include text as HTML elements (see DOMElements)?
    ANY HELP will be appreciated
    A good, in depth, tutorial on the subject (FONTS) would be a BIG help to many using the convert to HTML5 canvas features.

    GOOGLE HAS
    https://www.google.com/fonts
    choose a font from above site
    then:
    google generates instructions on how to embed that font
    Montserrat
    3. Add this code to your website:
    <link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
    4. Integrate the fonts into your CSS:
    The Google Fonts API will generate the necessary browser-specific CSS to use the fonts. All you need to do is add the font name to your CSS styles. For example:
    font-family: 'Source Sans Pro', sans-serif;
    font-family: 'Ubuntu', sans-serif;
    font-family: 'Montserrat Alternates', sans-serif;
    font-family: 'Montserrat', sans-serif;
    font-family: 'Open Sans', sans-serif;

Maybe you are looking for