Static footer and header pasted into all pages - the only way with JSF?

Hello!
What are the known patterns to deal with the use case in the subject ? Every tutorial I've seen suggest to copy and paste the header and footer into different views. Even if it is only the include statement that is being copied, I would not want to do this. I would rather do a single page with the single footer and single header and dynamically include the dynamic view. However, to achieve this, it seems the only way is to hard code all of the possible include statements for the views at compile time, using an EL's if then. This is also not a lot of fun, if one has hundreds of different views to include. Also, using this approach one would basically have to give up the JSF's navigation, which is based on the name of the jsp file. And since there will be only one main jsp file the JSF navigation will be restricted to a single one page - many outcomes navigation node. Won't be able to do anything more complex than that. Bad too.
Any inputs would be appreciated.
p.s. I am new to JSF, but to call it an MVC framework seems to be a stretch: navigation should happen in the controller part not in the view - and that is what is happening by virtue of describing the navigation in terms of the raw jsp-files - the view. Can anybody argue with this?

Check out facelets, which adds useful templating and other nice features to JSF. You are still stuck with navigation-by-XML, which I agree is silly.
These links might be useful:
http://hookom.blogspot.com/2005/05/facelets-templating.html
http://blog.exadel.com/?p=12
http://members.capmac.org/~orb/blog.cgi/tech/java/Facelets_makes_JSF_.html
http://www.jsfcentral.com/articles/facelets_1.html (and the followup article)
The project homepage is https://facelets.dev.java.net/.

Similar Messages

  • When I use safari I keep getting a small coloured circular icon which in turn does not allow me to navigate at all.  the only way I can get rid of it is to shut down and reboot.  Can anyone help?

    When I use safari I keep getting a small coloured circular icon which in turn does not allow me to navigate at all.  the only way I can get rid of it is to shut down and reboot.  Can anyone help?

    Start here.

  • I got a new hard drive and my iMovie was deleted. is the only way to get it back is to buy it?

    I got a new hard drive and my iMovie was deleted. is the only way to get it back is to buy it?

    Satellite C650D-02V (PSC0YC-02V026) 
    When i run the disk i get an error saying that some files can't be read from file or disk..
    You can obtain new recovery discs for that Canadian model from Toshiba by calling 800-663-0378.
    -Jerry

  • My ipod is disabled and it says connect to itunes. the only way i found to fix it is to restore it but i dont want to loose all my data. what should i do?

    My iPod is disabled and it says connect to iTunes. The only way i found to fix it is to restore it but i don't want to loose all my data. What should i do?

    You must restore it, losing anything you have failed to backup or store on your computer or cloud service.

  • I am trying to use a Futek load sensor example and am running into all sorts of weird issues with the coding.

    Eons ago, when I took the Labview I & II courses, I remember the instructor stating that correct VI's had to have error line.  I downloaded this VI example from Futek's website and the code doesn't  use it. I am trying to utilize it for some data collection rather than have to pay for their software that goes with the sensor.  When I first try to run the VI I get an error, and if I replace the formula they use, then undo the replacement it appears to work. The engineer that I am trying to help out is basically wanting to be able to read and also write a file during test, and I am running into all sorts of problems.  
    If anyone could help me I would greatly appreciate it. 
    Attachments:
    FUTEK LabVIEW 10 Example 2.3.2003.3.vi ‏645 KB

    The first error when I start to run the VI, is states that I need to insert disc 1 of Labview.
    I can usually hit stop and run, stop and run, and then it will start "working".
    Then I get the Formula: Library version is incompatible with XNode version.
    If I replace the fomula, and then undo replace it will correct the broken start arrow.....
    I took the labview 1 and 2 courses 5 years ago, and haven't been a regular user so I am what you would call extremely rusty. 
    I have an engineer here that is wanting to use the sensor for some testing and can't really understand why I am having so many issues.
    Do you know if NI has someone that might be able to work through this with me, or even if there is some Labview consultant that can be paid to help out?
    Thanks,
    Josh

  • Mid-2010 iMac randomly freezing after last Windows 7 update.  Help!  I am a teacher and have 50 computers all behaving the same way.

    I am a teacher and have 50 mid-2010 iMacs running Windows 7 in my classroom.  The computers did a Windows 7 automatic update on or around April 15, 2014.  After that, each computer randomly freezes.  Some are worse than others.  Most of the computers freeze when a USB drive is plugged in and also when a pop-up shows up on the screen - especially the Java update.  I have installed the most current Bootcamp drivers and run several anti-virus program searches.  I've also tried the Microsoft Fix-it program and almost everything.  Uninstalling the updates did not help.  Can anyone help me out?

    based on what you wrote this  doesn't make sense
    use system restore to rollback the machine prior to this update
    LChappelear wrote:
    Uninstalling the updates did not help.  Can anyone help me out?

  • Itunes stops working after say half hour of use and will not play next song, the only way to get it working again is to close and reopen, then it works fine till next time, but the problem keeps returning

    itunes stops working after say half hour of use and will not play next song, I have to close and reopen, it works fine till next time, it keeps happening on a regular basis, HP pavilion laptop, g6 series,
    Window 7 64 bit

    Hello davewood26,
    The following article provides steps that can help get iTunes stabilized.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/TS1717
    Cheers,
    Allen

  • I am creating an I-Web webpage.  When I add pages, the only way to navigate throught the pages is with the menu bar on the left.  How do I navigate to each page on the actual website?

    I am creating a website using i-web.  When I add pages, they appear at the top of the webpage, but I cannot navigate to each page in the navigation bar.  I can only navigate in the menu bar located on the left side of the program.
    How do I navigate thru the website?

    You don't unfortunately, iWeb though great does not allow that funtion.
    If it is a deal breaker for you I would suggest SandVox or RapidWeaver.
    I personal like SandVox
    How ever my website is WordPress, you have to understand a little code, but a lot more freedom
    LearnFromLee
    I may receive some form of compensation, financial or otherwise, from my recommendation or link. <Edited by Host>

  • I was updating my iPhone 4 to iOS 7 and while updating there was an error and the only way toturn it back on is restoring it. is that the only way?

    I was updating my iPhone 4 to iOS 7 today and before I did, I backed my phone up into iCloud. Then while it was updating an error occured and now itunes is telling me the only way to power up my phone is to restore the whole device. Is it possible to power up my phone without restoring the whole device? Or without loosing everything?

    Not if the error says to restore in iTunes. You should have made a backup before the update, so you should be able to restore to that backup. But with the device in recovery mode as it is, there is no way to backup anything at this time. If you did not make a backup before updating then you can only restore to your latest backup, whenever that was. If no backup at all, then you will have to restore the device as new, losing everything.

  • I purchased an album and didn't receive all of the cuts.  I have Itunes 9.2.1 so I can't use the new  "download past purchases" feature.  How do I get the rest of the songs?

    I purchased an album and didn't receive all of the songs.  I have iTunes 9.2.1 so I can't use the new 'Downloading past purchases" feature. How do I get the other songs?  Using an Iphone 3Gs

    Look under the Store menu in iTunes on your computer for the "Check for available downloads" command and run that. You may find the tracks there to be downloaded.
    If not, contact the iTunes Store Customer Service department from their Support page (select the category and subcategory closest to the issue you're reporting and you'll find either an "Express Lane" button - just follow the instructions to get to the contact form, or an "Email Us" button) and explain the problem to them.
    Regards.

  • Dynamic Tables in PDF - repeating Header row in all pages

    Hi ,
          I have created a dynamic table in PDF, When I add rows, the table is spanning to next page, and I should get the header row in all pages. But, I am getting the header row only for the 2nd page(In Header row properties, I have choosed the header row to be displayed in all pages). I need the Header row to be displayed in all pages.
        To see the previous thread, Click [here|Dynamic Table -  same data repeating in all rows;.
    Thanks and Regards,
    Prabhakar.

    Hi Prabhakar,
    Try out with following step
    Header Row -> Binding -> Select the check box
    Repeat Row for each Data item (Min Count 1)
    Please let me know if this is working or not.
    Cheers
    Satya

  • How to repreat only Group Header #2b in all pages?

    Hi
    Is there any way to repreat only Group Header #2b in all pages?
    When I select repeat group header in all pages, it repeating Group Header #2a & Group Header #2b.
    how to repeat only Group Header #2b?
    Thank you

    You can conditionally suppress group headers.
    Set the headers to repeat on each page, and then to have group header 2a only printed once while group header2b repeats on all pages then contionally suppress group header 2a with
    inrepeatedgroupheader  // suppresses repeated headers
    Note you can also suppress a header the first time header is printed with
    not(inrepeatedgroupheader)  //suppresses the first time
    Edited by: Debi Herbert on Mar 17, 2011 3:59 PM

  • Hey, can i clone my Macbook Pro internal hard drive and then paste it all onto a formated external hard drive, then make the Mac use the external as the primary hard drive?

    hey, can i clone my Macbook Pro internal hard drive and then paste it all onto a formated external hard drive, then make the Mac use the external as the primary hard drive? please help for i only have around 618mb left out of 189GB!!!!!!!!!!!!!!!!

    If what doesn't work?
    If cloning your internal drive to the external drive is not successful, I expect CCC will tell you so. Assuming that doesn't happen, you will have a bootable replica of the internal drive on the external drive once CCC has finished.
    You can then do any of several things:
    1. Replace your internal drive with a much larger one (320GB or 500GB, or even larger), and clone the external drive's contents onto the new drive so you'll have all your data in one place. Note that if you do this, you'll also need to buy an external drive that's large enough to back the new internal drive up on.
    2. Boot from the external drive as a temporary measure while you clear at least 30-40GB of data off the internal drive, allowing you to keep using it and saving small amounts of data to it. The external drive will then contain the only copies of the files you've deleted from the internal drive, so you'll need a seond external drive large enough to back both the other drives up on.
    If you can't comfortably clear a minimum of 30GB off the internal drive, you really need a larger internal drive right now, and you shouldn't bother fooling around with the inadequate one you have — you'll just quickly overfill it again.
    3. Replace the optical drive in your MBP with a large conventional hard drive, giving you two hard drives inside the machine. You will then need one or more external drives large enough to back up both of the internal drives.
    If you sense a theme here — back up, back up, back up — you are correct. It's flat-out foolhardy to own or use a computer without maintaining complete, up-to-date backups of everything at all times.

  • HT3384 How do I change margins and header footers on a pages document?

    Hi can anyone help me on how do I change margins and header / footers on a pages document?
    Many thanks

    Oddly, when one enters text that is a paragraph string longer than the width of the the page, the text doesn't wrap. There seems to be something a bit wonky with the margins, but perhaps it's something else. I fiddled with styles to see if I could control it, but to no avail. I'm giving up and boing back to '09. Each time I think I'll switch to iWork 5, I encounter some other restrictive feature that sends me scurrying back to '09.

  • I want to sort all my bookmarks alphabetically but can't. You only let me drop a bookmark into an already-existing folder. And if that is the only way, how can I create new folders?

    Question
    I want to sort all my bookmarks alphabetically but can't. You only let me drop a bookmark into an already-existing folder. And if that is the only way, how can I create new folders so that I can try to create meaningful folders?

    With the iPod connected to the computer go to the Music pane for the iPod in iTunes and check the box that says sync only checked songs. The check the songs you want synced and click on Sync. For more info see:
    iTunes: Syncing media content to iOS devices and iPod

Maybe you are looking for