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>

Similar Messages

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

  • How to eliminate empty node space from tree when rendered property is false

    Hi
    I have created a menu Tree for my ADF BC application while working in JDev 10.1.3.3.
    I have tried two methods, first is by creating a menu model as discussed in example in ADF Developers Guide Book Section 19.2.1. Second by creating two view objects and creating the menu tree from my database table.
    Depending on the logged in user I want to decide whether to show or not to show a menu tree option to the user. For this purpose I have implemented a function in a managed bean that calls a pl/sql stored procedure to decide if the user has access to a certain component. In first case I have set the rendered property of the menu item to #{menuTree.shown}, where shown is an attribute in the menu model whose value is properly set using java functions that call pl/sql function in turn. In second method, I have also tried to set the rendered property and calling a function that returns true or false based on if the user has access to the menu option.
    Problem
    When rendered property is returned as false, although the menu option is not displayed but an empty space is displayed in my tree and remaining nodes and/or menu options are displayed with an ugly gap.
    How I can remove this unwanted gap, is there a way?
    Regards,
    Amir
    1st option:
    My menu tree:
    <af:menuTree var="menuTree" value="#{menuModel.model}">
    <f:facet name="nodeStamp">
    <af:commandMenuItem text="#{menuTree.label}"
    action="#{menuTree.getOutcome}"
    _rendered="#{menuTree.shown}_"/>
    </f:facet>
    </af:menuTree>
    2nd option:
    <af:tree value="#{bindings.MainMenuView.treeModel}" var="node">
    <f:facet name="nodeStamp">
    <af:switcher facetName="#{node.hierType.name}">
    <f:facet name="MainMenuViewNode">
    <af:outputText value="#{node.Name}" _rendered="#{userInfo.mainNodeOk}"_ />
    </f:facet>
    <f:facet name="SubMenuViewNode">
    <af:commandLink text="#{node.Name}" _rendered="#{userInfo.mainNodeOk}_">
    <af:setActionListener from="#{node.destinationUrl}"
    to="#{menuTree.getOutcome}"/>
    </af:commandLink>
    </f:facet>
    </af:switcher>
    Edited by: Amir Khan on Jan 12, 2009 8:54 PM

    Hi,
    if this reproduces in JDeveloper 10.1.3.4 then this sounds like a bug that you should file
    Frank

  • Initial Rendered = false cause date not to be queried...

    Hi,
    I am trying to have two table on my page...
    When I set the initial state of each table to Rendered = false when the query runs there is no date. But, if I set the initial state of each table to Rendered = true.
    I can query the VO and switch on and off each table as needed...
    My question is how can I set Rendered = false on the initial page rendering...so no table are shown with empty data. And then be able to run my query so when the data is queried it can be loaded into the table?
    thanks

    If you want to query up data and set the rendered flag based on whether no data exists or data exists you can do that in processRequest itself. But if your initial query returns no data and you hide it then you want to show the table if your query returns data in processFormRequest then you need to redirect to the same page in your PFR, retainAM to Y, check the rowCount in PR and set rendered property of the table to true.

  • Help!! idvd freezing when rendering audio

    PLEASE..I need help!! I make a movie for my students at the end of the school year. I put together a movie in imovie and then sent it to idvd. When I finished with the idvd part and went to burn it, my idvd would stop responding after about an hour when it came to the final part when rendering the audio. I find I have to force quit the program and start over. I've tried it 4 times and it happens every time in the same spot. I never had this happen before. Thanks for any help you can give me!!

    Like I said!
    This question is frequently asked!
    iDVD is probably not 'hanging'. Disregard any messages that iDVD is not responding. It is. Do not force quit.
    Encoding audio is the slowest part of rendering, and can take many hours. Great patience, even an intermittent alternative hobby, is called for.
    Make sure no other application is running, make sure you have not set the hard disk to go to sleep and that the screen saver will not come on. Leave it overnight, or have a 36 hole game of golf.
    Sooner or later iDVD will finish!

  • IMovie audio issues. Fine in timeline, but when rendering to iTunes or Media Browser, audio from certain portions of movie files are heard in places where it shouldn't be !

    iMovie 11  audio issues. Fine in timeline, but when rendering to iTunes or Media Browser, audio from certain portions of movie files are heard in places where it shouldn't be !
    I have created a project where I have a montage of photos and video clips edited together with music under. Some audio portions of the video files are being muted in some areas and those portions are being heard in another part of the project. This is not for all video clips only certain ones.
    The project plays fine in the timeline, but when I render the project thru iTunes or Media Browser, this is when the project goes corrupt.
    I tried detaching the Audio from the video clips and this somewhat worked, but the original problem still exists with certain audio still being heard where it's not supposed to be.

    I have a fix - or rather, a workaround.
    WARNING: It is lengthy, but still far better than starting a new project from scratch.
    I had this same issue and none of my transitions/clips were at custom speeds, nor did I have anything else weird going on. Unfortunately there is nothing you can do within iMovie to fix this, at least there wasn't for me. iMovie is BY FAR the buggiest software I have ever used and if you haven't already spent hours slaving away on a project, you are so much better off using just about anything else to edit your video.
    ...But let's assume you have already spent many hours working on your project and you don't want to start all over. Well then, you have at least one option.
    It's a pain in the neck, but it's infinitely better than restarting your project from scratch.
    This will require:
    A software called Soundflower (which is free) and some kind of audio editing software (I use Logic, but really any should work).
    1.) You're going to need to export your video with the messed up audio. Typically if you're audio is messing up, you're video is at least usually working just fine (at least it always does for me).
    2.) You're going to need to open that video in your audio software and import only the audio. If your software doesn't give you this option, then you're going to need to record the audio from your video using the audio software and Soundflower. You can find tutorials on how to do this, but it's honestly pretty straightforward once you start playing around with you Mac's audio I/O settings. Remember to have your computer's volume all the way up when doing this.
    3.) Watch/listen to your video and make notes of where the audio errors occur. I HIGHLY RECOMMEND writing down times too,  as they will be extremely helpful later.
    4.) Now were going to rip some working audio from the iMovie project itself. Go back into your iMovie project and only play back audio while in the edit window for this step. Do NOT play your project back in full screen.
    This part is key: if you try to play back your project from the beginning the audio will usually still mess up. So, what you're gonna have to do is go back on your edit window timeline right before these errors occur and play that specific clip back while recording this working audio with Soundflower and your audio software. Essentially we're only recording the parts of the audio where these errors occur, so try to do this in order if you can. Try to leave several seconds of audio in before the error - that way we can use it as reference when we construct our new audio track.
    5.) Now in your audio software you should have your original error-filled audio track and the new clips that we just captured. This part can be painstaking if you're not familiar with audio editing softwares, but as you'll learn, it's really not that hard.
    You're going to look at your original audio track and compare it to your new working audio clips. You should be able to notice where those new clips are supposed to go by looking at the identical (or close to identical) waveform shapes in your original audio track. The two should correspond with one another. If you don't understand what I mean right now, you will when you start playing around with the audio. This is why marking times is very important.
    Take your new clips and split them up if you haven't already, that way you can drag them around and edit them separately from one another. Essentially your going to line these new clips up with original and then replace the original parts with new ones.
    We need to get this as precise as possible, so start off by getting them as close as you can with your naked eye, and then use a zoom tool to zoom in as much as possible so that you can get them lined up PERFECTLY, or at least extremely close. In some softwares you can just drag these new clips on top of the old track, but most of the time you will need to actually cut out the old piece and replace it with the new one. In doing this, zoom in and make sure that you are NOT cutting out a bigger space than your new clip will fill - otherwise you will have small gaps in your audio.
    VERY IMPORTANT: Also make sure that this new audio track starts at the EXACT SAME time as your original - otherwise your new audio will be out of sync.
    I know this part can really suck if you're not used to audio editing, but at this point, there is little other choice.
    6.) Once you are done with this, export your newly pieced together audio track.
    7.) Now open iMovie and create a NEW project. Re-import the video that you exported earlier that has the messed up audio. This might take a while, so just be patient.
    8.) Then right click the clip and select "Detach Audio". This will do just that - allowing you to edit the audio separately from the video. Now delete this audio.
    9.) Now, import the new, perfect audio track that we just made and make sure that it starts at the start of the project. Make sure it's in sync and that everything works.
    Now just export your new video with the working audio and you should be done. Since we have given iMovie the audio with no editing actually being done in iMovie, it does not have to generate its own audio now and you should have absolutely no errors now - unless there is some that you forgot to take out earlier.
    YOU'RE FINALLY DONE!!!
    I know this entire process *****, but if you're that far into your project, there is little else that you can do. Now you've learned your lesson:
    DON'T USE IMOVIE EVER AGAIN.
    I hope this helped!

  • AE CC 2014 Corrupted and Glitched frames when rendering to Quicktime

    Ever since upgrading to the newest version of After Effects, I've been getting corrupted and glitched frames when rendering videos with a Quicktime holder.  My normal workflow is rendering the video straight out of AE, but it also happens when rendering with Adobe Media Encoder, or even while using the "BG Renderer" script for AE that renders from the terminal.  It happens whether I have multiprocessing enabled or not.
    The corruption differs depending on what codec I'm using, but in the Cineform Codec it shows up as green frames:
    On DNxHD they show up as Red frames (don't have a screencap of this one but you get the idea).
    Using the QT Animation Codec they show up as static or distortion:
    I have not found a codec that does not become corrupted when encased in the QT holder.  Image sequences render out fine, and Cineform with an AVI holder renders out fine.
    Even more strangely, I can fix the problem if I link the AE composition to Premiere, then render the QT file out through Premiere itself.  The fact that Premiere calls and renders the Comp fine but AE does not, makes me think this is a bug in AE's treatment of Quicktime rather then a driver/system incompatibility on my end.  But I'm certainly willing to try any suggestions the community might have for me =]
    Specs:
    Windows 7 64-bit
    AMD Firepro V7800
    AMD Phenom II X6 1090T
    16 GB RAM
    Rendering to a local drive
    Fully Updated AE
    Latest version of Quicktime

    solutions for problems with QuickTime files in After Effects CC (12.0) because of conflict with DVCPROHDVideoOutput Quic…

  • Timewarp effect not applied when rendered from Media encoder CC

    The timewarp effect (enabled using console veiw in PPRO CC) does nothing to footage when rendered through Media encoder...
    It does however render when not sending it to the queue, and rendering straight from PPRO.

    Fair enough,
    Just hoping to raise attention of this...as I believe this should be a normal supported feature of PP as it once was back in CS3 days.....
    Normal frame blending interpolation doesn't really cut it, and round tripping to AE is overkill for something already built into PPro....
    But at least it's in there in some form

  • After Effects: Windows 7: QT32 Server.exe Crashing When Rendering H264

    Hi,
    I am encountering After Effects on Windows 7 SP1 outputting an "Output Module Failed" when rendering any comp to the desktop as a QT H264(even a new project w/ a comp w/ just a single solid & no effects) in both After Effects 12.1/2 and Media Encoder(of a AE comp). I have already done the following:
    Removed Preferences
    Cleared Cache
    Turned Off Firewall
    Reinstalled QT 7
    Restarted Machine
    Other discussions/posts regarding QT32 Server and AE seem to be focused on OS X. I've checked QT's component folders to find no components. Not sure if I should be looking elsewhere. There are no third party codecs installed. I have encountered this at two different studios I do IT for. Beyond uninstalling CC and running the Cleaner, is there anything I can do?
    Thanks,
    Anthony

    Do you have a computer with a lot of processor cores? The Apple H.264 encoder used for QuickTime has a severe bug when used on a system with 24 or more processor cores (so, a 12-core computer with hyperthreading enabled).
    Why are you creating a QuickTime movie with H.264? QuickTime is generally a good container, and H.264 is a good codec, but H.264 in QuickTime is a mess. What, exactly, are you going to do with this file? How are you determining your delivery specifications?

  • My new iMac with FCPX crashes when rendering complex templates and crashes when exporting with Motion 5

    My new iMac with FCPX crashes when rendering complex templates and crashes when exporting with Motion 5
    Using Motion 5.0.6 and Final Cut Pro X 10.0.7 on New iMac (December 2012)  Mountain Lion,
    Intel Core i7 quad-core a 3,4GHz, Turbo Boost fino a 3,9GHz
    32GB di SDRAM DDR3 a 1600MHz - 4 x 8GB
    Fusion Drive da 3TB
    NVIDIA GeForce GTX 680MX 2GB GDDR5
    During the rendering of complex FCPX mac crashes and I have to force a restart.
    I also happens when I try to export movies with Motion 5.
    Does anyone have the same problem with my new iMac?

    Problems such as yours are sometimes caused by files that should belong to you but are locked or have wrong permissions. This procedure will check for such files. It makes no changes and therefore will not, in itself, solve your problem.
    First, empty the Trash.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Triple-click anywhere in the line below to select it, then drag or copy it — do not type — into the Terminal window:
    find . $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 -o -acl \) 2> /dev/null | wc -l
    Press return. The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    The output of this command, on a line directly below what you entered, will be a number such as "35." Please post it in a reply.

  • "File Error" and "Out of Memory" when rendering FCE

    Dear all,
    I imported a 2 hour holiday video into FCE.
    When rendering the video, a message appears that the rendering process will last about 15 minutes to complete.
    However, frequently I am warned by the following message:
    "File Error: The specified file is open and in use by this or another application"
    When activating Rendering again, the render time is now increased to about 45 minutes.
    I now either receive a couple of times the message: "File Error: The specified file is open and in use by this or another application" >>or even worse: "Out of memory"<<.
    Today I purchased an addition 2GB of memory to increase my memory form 750 MB to 2.5GB !!!
    Can anyone please tell me what could be the cause of these messages and how to solve them?
    BTW, no other programs are running while I use FCE.
    Thanks in advance,
    Hans E.<br>
    PowerMac G5-Dual 1.8GHz, Memory 2.5GB, iMac G3-600MHz, Airport, Airport Express Mac OS X (10.3.9)
    PowerMac G5-Dual 1.8GHz, Memory 2.5GB, iMac G3-600MHz, Airport, Airport Express Mac OS X (10.3.9)
    PowerMac G5-Dual 1.8GHz, Memory 2.5GB, iMac G3-600MHz, Airport, Airport Express   Mac OS X (10.3.9)  

    Is it happening when you're rendering, or exporting?
    The error message means FCE is trying to rewrite a file that it is currently using. It could be mistakenly trying to save a render file, if you're only rendering, or if you're trying to re-export a file, you'll get that message.
    Try dumping all your render files, restarting FCE and trying again.
    The Out of Memory error almost always points toward a corrupt file. Could be a source file, could be a render file. Again, dump your render files and try again.
    If these don't work, you need to close FCE, take all your source media offline, then open FCE. Now, reconnect each clip one by one until you find the corrupt clip. Keep going, there may be more than one. Re-capture the corrupt clips and you should be good to go.

  • Error when rendering a page having a dvt:lineGraph

    I have a page containing a line graph with the following structure:
    <dvt:lineGraph id="trndgrp"
    tabularData="#{pageFlowScope.myBean.trendChartData}"
    dynamicResize="DYNAMIC_SIZE" imageFormat="HTML5" inlineStyle="border-width:0px;"
    threeDEffect="false"
    timeAxisType="TAT_IRREGULAR"
    timeRangeMode="TRM_EXPLICIT"
    timeAxisInterval="CTAI_MONTH"
    markerTooltipType="MTT_VALUES_TEXT">
    <dvt:timeAxisDateFormat quarterFormat="QUARTER_SHORT" yearFormat="YEAR_SHORT_WITH_APOSTROPHE" dayFormat="DAY_OF_MONTH" monthFormat="MONTH_SHORT"/>
    <dvt:o1Axis scrolling="on"/>
    <dvt:timeSelector mode="EXPLICIT"/>
    <dvt:y1Title text="#{pageFlowScope.myBean.currentDrillDown.uiName}"/>
    <dvt:seriesSet seriesMap="#{pageFlowScope.myBean.trendChartSeriesMap}"/>
    <dvt:legendArea rendered="false"/>
    <dvt:o1Title id="o1Title1"
    rendered="false"/>
    <dvt:y1TickLabel>
    <af:convertNumber integerOnly="true" maxFractionDigits="0"/>
    </dvt:y1TickLabel>
    </dvt:lineGraph>
    At runtime I get the following error:
    Caused by: oracle.jsp.parse.JspParseException:
    ....myBean.jsff: Line # 206, <dvt:lineGraph dynamicResize="DYNAMIC_SIZE" id="trndgrp" imageFormat="HTML5" inlineStyle="border-width:0px;" markerTooltipType="MTT_VALUES_TEXT" private_x1axismaxautoexist="false" private_x1axisminautoexist="false" tabularData="#{pageFlowScope.myBean.trendChartData}" threeDEffect="false" timeAxisInterval="CTAI_MONTH" timeAxisType="TAT_IRREGULAR" timeRangeMode="0">
    Error: "private_x1axismaxautoexist" is not a valid attribute name.
    at oracle.jsp.parse.OpenJspTagHandler.processAttributeValue(OpenJspTagHandler.java:378)
    at oracle.jsp.parse.JspParseTag.parseXMLSrc(JspParseTag.java:1565)
    at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:1610)
    at oracle.jsp.parse.OpenJspTagHandler.parse(OpenJspTagHandler.java:846)
    at oracle.jsp.parse.JspParseTag.genXMLSrcTag(JspParseTag.java:923)
    I use ADF 11.1.1.7.
    Any ideas on what can cause this error?

    Most probably you are using the wrong Jdev and keep in mind that 10G versions are only for R12.
    Check the metalink Note 416708.1 - How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • When rendered, still images appear in low quality

    Hello everyone.
    I'm facing an interesting dilemna with Adobe Premiere Elements 8. It usually works fine for me, and with time I have learned to fix most of the details that usually bother unexperienced users such as me.
    What happens is that I'm importing still images (JPEG) to my video, and when rendered they're final quality appears to be so low. I mean, you can see the pixels very large, square-like, you know... as if I had a small image and had it stretched out a lot, but that was not the case at all.
    I never had this problem before, and I can't recall anything different on my part in this new video.
    Any ideas as to how to fix this?
    Thanks everyone.

    Hi everybody,
    It is a bit late to join this discussion but for vacation reasons I didn't follow the PE-Forum for a while.
     I think I have a comparable problem like fmrees: Since a couple of days the resolution of the Preview in PE8 is rather poor. Unfortunately I can't say exactly when it startet. Maybe it begun after I rendered the project.
    After having read this issue I deleted the rendered files, looked at the preview: still the same. Re-rendering didn't improve the result.
    The difference between the problem of fmrees and mine is: I do not use at all still images. The only video sources are AVI-Files from MiniDV.
    I looked at other PE-projects I didn't touch for several week: I have the same problem! So probably it is something in the PE- or project-settings, but I have no idea what it could be (I am rather a newbee in PE).
    My Hard-/Software:
    Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz 2.80 Hz
    RAM 8.00 GB
    OS
    Windows 7 Home Premium
    Video:
    NVIDIA GeForce GTX 260
    Philips 244E
    Audio:
    AVerMedia H789 PCI-E DVB-T
    Realtek High Definition Audio
    Premiere Elements V8.0

  • Quality when Rendering a PhotoShop in FCE (and example of..)

    I work at a Birkenstock store. My boss asked me to make some "slides" for a TV commercial. I made them in Photoshop 300dpi and imported to FCE.
    It looks great FCE but then as soon as I render the sequence it looks terrible.
    I put an example of both on a page on our website:
    http://theshoehousestores.com/birko1/beforeafterproblem.html
    My plan was to upload the FCE fie and the assets to the TV station and let them ouput it.
    How can I get the image to not render so badly?
    Jeff

    Yes both on a video monitor and my LCD monitor that came with the computer. Both are the same.
    The only reason I did them so big was because when I made them smaller they seemed even worse. When I import the big ones they fit without any need to resize (the smaller ones too).
    I'll read up on the info you offered in the link and let you know what I learn.
    What I get most of all from your posts and the others you have tried to help is that this is a fixable problem and it should not be so "muddy" when rendered and in the final output. Am I correct?
    I really do appreciate your help so far.. Thank you
    Jeff

  • Graphics loosing quality when rendering

    I´m importing some graphics rendered in AFX to Premiere CS3, and when I run in Premiere they are OK, but after I edit them in the sequence and render, they loose quality. For example, I have some text (orange color) over black background. When I render them in the sequence, the text looses quality, the text definition and the color degrade and it seems that there are two colors in the text. And some weird things are happening with fields too. When I import some footage rendered lower field first in AFX, they run smooth in the source monitor, but when I edit them in a sequence and render, the field order seems to be wrong.
    I cannot figure out what´s happening.

    In AFX I rendered using QuickTime animation codec
    In Premiere CS3 I´m working with NTSC DV
    Like I said, chances are your AE export is higher quality than your Premiere project, hence when rendered, the quality goes down.  The Quicktime Animation codec is comparable to Uncompressed.  When you compress it to DV by rendering, quality can suffer.

Maybe you are looking for