Working with interdependent listboxes: A tutorial.

Working with interdependent listboxes in Creator.
I have an application with several listboxes that are interdepoendant of one another. That is to say, that when one entry gets selected, the value on one or more other listboxes gets updated.
When I first coded up a solution for this, I was having trouble with some errors thrown internally to the components. After a lot of digging and with the help of Sun, I was able to cure this problem, so I am writing up this brief tutorial to help others do something similar.
Let me tart of with what the application looks like:
The GUI
In this application we have three listboxes and some 2D and 3D images that get loaded based on the values selected in those listboxes.
When the first listbox is changed, then the second and third listboxes automatically get changed based on the value selected in the first. In other words, the value selected in listbox1 will be retrieved and then that value will be used to retrieve data (in my case from a database) to be used in populating the second and third listboxes.
Let�s also say that we want to automatically select the listbox entry if only one item exists.
What Creator Does Today
In Creator 1, when you drop a listbox on a page a defaultListboxItems list gets created for you in the backing page bean. This is what you would normally expect to add items to fill your listbox.
Of course, this data gets reset for every refresh of that page. In our case, when we select an item on on of the listboxes the page will be refreshed (Submitted). Because of this, you might place a list in the session bean and retrieve it in the page bean�s constructor (which of course gets called for each page refresh) and use that list to rebuild your defaultListboxItems list.
That however, as I found out, is probably not the best way to do it.
The �Right� Way
As mentioned above, we need a way to keep the values of the listboxes saved off in between page refreshes.
The way to do this is to place that into the session bean and only there. In other words, you will not be using the defaultListboxItem list that Creator set up for you inside the page bean. Instead, you will create your own which will look something like this (again, this code will go inside of the session bean):
    private DefaultSelectItemsArray defaultListbox1Items = new DefaultSelectItemsArray();
    private DefaultSelectItemsArray defaultListbox2Items = new DefaultSelectItemsArray();
    private DefaultSelectItemsArray defaultListbox3Items = new DefaultSelectItemsArray();You will also want to create lists that hold the raw data like this:
private List listbox1;
private List listbox2;
private List listbox3;In addition, you want to save the currently selected index so:
private String list1SelectedIndex;
private String list2SelectedIndex;
private String list3SelectedIndex;You will then use the �setters� to these lists to fill your default items doing any conversion you need to perform. For example:
public void setList1(List list1)
        //Build the defaultPatientListboxItems entries
        defaultListbox1tems.clear();
        Iterator listIterator = list1.iterator();
        while (list1Iterator.hasNext())
            String entry = (String)list1Iterator.next();
            SelectItem selectItem = new SelectItem(entry, entry);
            defaultListbox1Items.add(selectItem);
        this.list1 = list1;
    }Now to let JSF know that you are using the session bean to hold your data rather than the default list that Creator built, we will need to go in and modify the JSP (note that I think this step is being included in Creator 2�s IDE as something you will no longer have to code by hand).
Here is example of how that will look:
<h:selectOneListbox binding="#{PageName.listbox1}" id="listbox1" immediate="true" onchange="this.form.submit();"
                                size="5" style="height: 184px; width: 234px" styleClass="centeredPageStyle" value="#{SessionBean1.listbox1SelectedIndex}" valueChangeListener="#{PageName.listbox1_processValueChange}">
                                <f:selectItems binding="#{PageName.listbox1SelectItems}" id="listbox1SelectItems" value="#{SessionBean1.defaultListbox1Items}"/> Note in particular the value = SessionBean1.listbox1SelectedIndex and the value = SessionBean1.defaultListbox1Items.
The first one is saying what the current selected entry is and the other is saying that the list that backs the listbox is called.
Remember when I said that we wanted to autoselect an entry if only one entry existed inside of the listbox? Well, that is why we set the value = SessinBean1.listbox1SelectedIndex. Along with this, we need to modify a �getter� in our session bean to look something like this:
public String getListbox1SelectedIndex()
        if(list1 != null && list1.size() == 1)
     //DO ANY CONVERSION NEEDED HERE
//IN OTHER WORDS, IF YOUR LIST DOES NOT
//HOLD STRINGS, THEN READ THEN OBJECT
//FROM THE LIST AND GET THE STRING VALUE
//FROM THAT OBJECT YOU USED TO ENTER
//INTO THE LISTBOX
            ImageSet imageset = (ImageSet)list1.get(0);
            return imageset.getSetName();
        return this.list1SelectedIndex;
    }Now we have all of the data we need stored off, all we need to do is make sure that when the page bean�s constructor gets called, we �prime� the pump to make sure everything gets auto-selected.
We can do that with something like this (placed inside of the page bean�s constructor):
List listbox1List = sessionBean1.getPatientList();
if (listbox1List != null && listbox1List.size() == 1)
               String listbox1Value = (String)listbox1List.get(0);
               sessionBean1.setListbox1SelectedIndex(listbox1Value);  //This does it
               processListbox1Change();  //Do whatever you need to do in this case here
}Well, that's all there is to it. Hope this helps!

Hi Darrin,
This is fantastic!!!
A sample application by name "CoordinatedDropdowns" is also available. I am sure the sample application and your tutorial will be of great help to many Creator users.
Cheers
Giri

Similar Messages

  • FCE HD 3.5, the training DVD has no media to work with. Is it normal?

    Hi, I've bought the Final Cut Express HD 3.5 package (the upgrade version) at an Apple Store here in Tokyo.
    I gave a look at the Training DVD that ships with it, and it seems good, but I wasn't able to find any of the media files the "speaker" is talking about (she speaks about a folder called "Wind_Skating", that should to contain all the files to work with).
    Is this tutorial DVD really without any demo project files? Am I missing something? Is my DVD defective?
    Another strange thing, is that this "Tutorial DVD" had no reason to be put on DVD because it's actually smaller than a 600 Mb CD-rom.
    I need someone to confirm me that the tutorial is really this bad (as a tutorial without media files can be).
    Thank you!
    ERNESTO
    iMac G5   Mac OS X (10.4.7)  

    There is no tutorial media with that disc. It's only
    an instruction demonstration, not a hands-on program.
    Thank you, mr. Wolsky.
    I suspected that.
    Maybe it's just me, but if something is called "Training DVD" I think it should be something different from just a demonstration DVD. Also, if in the demonstration the speaker is saying "Let's take the file called "X" and put it here, then we take the file "y" and try to adjust etc etc…" it would be useful to have those files to work with. I don't think it would have been expensive to add those files to the DVD...
    Thank you!
    ERNESTO

  • Ares don't work with windows7

    Ares doesn't work on my notebook centrino2, 4mb, windows7 32bit, firefox 3.5.6, 1366x768 px, virtual-box & mojo-sdk installed, emulator working.
    After logging in, ares loads but stops before the page is ready and blocks firefox totally.
    On my xp pro 32bit pc with 1960x1366 px there's no problem.
    Any help is appreciated.
    Post relates to: Pre p100ueu (O2)

    I'm longtime user of firefox and have the newest version 3.5.6 on all my computers. From my desktop-pc I had no problems to access and work with ares (running the tutorial, creating a new app and running this on the 1.3.1 emulator).
    My notebook is in the same net, is quite new technology intel core2 duo u9300 windows7 professional, sdk and emulator 1.3.1 working well, java is activated, the browser maximized with a free height of about 680 px, but loading of ares isn't completed...
    ps. I wanted to upload a screenshot, but seems to be discarded

  • Working with DataProvider - tutorial

    I created a page following the instructions in the 'Working with Data Provider' tutorial - for page2. i.e., I created a page with some fields bound to a data provider (at page level) whose rowset is in session bean. The page has commit and reset buttons too.
    It works fine if browser back / refresh buttons are not pressed. If I press the browser back button, change some data and press commit... it changes some other record. The same is true with refresh.
    I tried some common technics like, preventing page caching or using redirect... but no success so far.

    There are some known issue with JSF 1.1 and back button. Creator 2 is based on JSF 1.1. Most of these issues are addressed in JSF 1.2. Future version of Creator will use JSF 1.2
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • Use listbox to work with strings

    Hello guys,
    I am struggling looking for a way to work with strings using a listbox. I think the problem is quite simple, but I don´t know how to implement it using labview.
    I have an array of N elements (N is different everytime I run the program), and each element is a string (actually each element is a command). I would like load this array, and then if I select an element (by double-clicking or something similar), I would like to get a translation of the command.
    In fact, I only need a way of loading the array, selecting an element, and then put it into a variable that would be translated with a SubVI that I have already implemented.
    Do you have any clue of doing this? I have tried with the multicolumn listbox, but I cannot connect any array of strings to it, and I am starting to have a lack of new ideas...
    Many thanks for your help

    Maybe this helps you:
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Where do I find the movie with which the FCE tutorial wants you to work?

    I'm trying to work with the Final Cut Express HD tutorial and it wants you to open a movie called 'wind_sk" (that's all you can see on the screen). The movie is not on the tutorial disk and it's not part of the FCE installation.
    So where can I find it? The tutorial makes more sense if you can follow it closely and without this movie, I'm lost.
    Thanks for your help.

    It's not a bad tutorial but it covers a lot of ground in 3 complex apps very quickly.
    I would advise you to forget the fancy stuff to begin with and concentrate on capturing your video, cutting out the unnecessary bits of each clip using In and Out points in the Viewer (I never thought I would see myself writing that last statement!), putting it into the Timeline and adding the odd transition or effect just to get the hang of them.
    You could play the tutorial and stop to make notes - possibly easier than playing it and trying to actually follow it in FCE.

  • Working with OLAP Workbooks Tutorial

    Hi all!
    I'm new to BI and I'm learning BI discoverer at the moment. I have installed Sales History schema (though with problems and I had to create and fill some tables additionally). I have completed the Working with Relational Workbooks successfully but now I have a problem with starting the Working with OLAP Workbooks Tutorial. The thing is, there is no objects found in any of the Discoverer Workbooks folders, so there is no Corporate Profitability workbook. Can these be because of the installation problems I had or are there just some privileges missing for SCOTT user? It is in Oracle Discoverer Catalog Selected Users/Roles group.
    Can somebody please tell me what could be wrong? Or maybe a list what objects should exists in database so I can check if the installation created them successfully.
    Thanks!
    Bye

    I think the workbooks created with OLAP are stored in catalog. Is it ok to export and import the catalog.
    thanka
    kiran

  • Anyone recommend a good tutorial for 'working with video' in Logic?

    I've worked with video a fair amount, but only ever skimmed the surface and found odd workarounds to get things to happen how I want them.
    The manual is scant when it comes to features such as SMPTE locking and beat mapping scenes to bar lengths and all sorts of other tricks I'm probably unaware of.
    The only Macprovideo I can find is from 2005 and whilst I'm sure has some common features, is perhaps not up to date enough. And this http://www.soundonsound.com/sos/jul07/articles/logictech_0707.htm is ok for a quick overview but I'd like to see some of it in action (or at least have more detailed exercises).
    Does anyone know any tutorials they'd recommend? Cheers

    canon pixma 6200 series works

  • Multiple Apple Remotes no longer work with Apple TV!

    I've been using Apple TVs since the minute Steve Jobs introduced them in 2007. I bought the 2nd and 3rd Generation Apple TVs the minute each of them were introduced. I've been watching every Apple Keynote Address since they were available online or on CDs from the early 1990s, on my HDTV via my latest Apple TV when that was possible. I watch far more TV through my Apple TV than via my Cable Box, much of it music and music videos from iTunes on my 2006 Mac Pro! But as of YESTERDAY I am seriously thinking of getting another, ANY OTHER manufacturer's similar internet streaming box!!!
    WHY??? Because YESTERDAY, for no apparent reason except some programmer's or software engineer's stupidity, my Apple TV stopped working with all but ONE of my Apple REMOTES!!!
    Why is that stupid? Because, in my household there are three people who use Apple TV all day, and each of them have an aluminum Apple Remote which they all use to control what the Apple TV is streaming. We have two other Apple Remotes lying around in case one of us misplaces his or her Apple Remote, which happens occasionally. ALL FIVE of the Apple Remotes, just like the beige plastic Apple Remotes that they replaced, always worked with all three of my Apple TVs! Then yesterday, suddenly, only the LAST Apple Remote that was paired with this 3rd Generation Apple TV is able to control it.
    I've spent HOURS trying to fix this. This wasn't caused by an Automatic Update to the Apple TV's iOS; there has been no update in recent days. I've got Automatic Update turned on, just as I, a good Apple citizen, have my Apple TV set up to automatically send back Usage Data to Apple. I've rebooted my Apple TV. I've put brand new 2032 button batteries into my Apple Remotes. I pulled the power cord out of my Apple TV for 15 seconds and again for five minutes and then restarted it. As per instructions, I have Unpaired and re-Paired each and all of my 5 Apple Remotes. All to no avail. Only the last Apple Remote that was paired with the Apple TV works! Horrible. And STUPID, if it was a deliberate programming decision and it was introduced in a minor automatic update.
    Worse, I've been using the Remote app on my 5th Generation iPod touch to replace ONE of the unusable Apple Remotes, and as of a couple of minutes ago even THAT stopped working with my Apple TV! Well, I was able to fix that fairly easily by pairing the iPod touch Remote app with my Mac Pro and then pairing it again with my Apple TV. But I don't think that solution would be so easy for many non-technologically-inclined users. I also don't think that a $200 or $300 iPod touch is a very acceptable replacement for a $20 Apple Remote, especially since everyone buys iPod touches for totally different uses (I use mine primarily for taking notes using voice-activated audio or video -- it is by far the best device for that purpose out there -- police departments should take note).
    I'm hoping that this multiple Apple Remote problem somehow resolves itself, unless it is a hardware problem with my Apple TV. If so, I can hold out until Apple's media event next week, which I HOPE will premiere a new 4th Generation Apple TV, hopefully which will once again allow my five Apple Remotes to all control my Apple TV interdependently, without having to Unpair and Pair each one each time you wanted to use it, requiring you to quit whichever Apple TV app you were using each time, or alternatively to use Sneaker-Net to deliver the one working Apple Remote to each person who wants to use it, which can be difficult since at least one of the users is very ill! (Whew! A long sentence. But I hope you get the point.)
    Two days ago, I could never have imagined myself getting a Roku or an Amazon, Sony, Microsoft or some other streaming device. It just proves how fast a stupid little decision (if it was deliberate) can turn EVERYTHING around!

    People have a misconception with remote pairing (as does the description on this page -> Pairing your Apple Remote with your computer - Apple Support).
    The 1st paragraph is incorrect.
    The 2nd paragraph is correct.
    "If you have several Mac computers or an Apple TV that use the Apple remote, or other devices with integrated infrared ("IR") receivers in one room, you can "pair" your Apple Remote with a specific Apple device so it doesn't interfere with other Apple devices or IR devices nearby.
    Pairing allows you to set the receiving Apple device so that only it can be controlled by one remote. Learn how to pair your Apple Remote"
    Pairing sets the device to read only a specific remote.
    It does not set a specific remote to work only with a specific device. ie. if you point th remote at another Apple device (that is not paired) it will control it.

  • After upgrading to Lion internal mic does not work with Facetime

    After upgrading to Lion internal mic does not work with Facetime.  The mic is picking up sound as noted in System Prefs.  This was working just fine before the updgrade.  Facetime works OK on my iPod. 

    you have in french a tutorial to recreate your partition here
    Rebuild partition with Recovery HD lion after upgrade to 10.7.2
    i tested, it's work !
    For your wifi problem:
    Try to change your setup of wifi, look this table given by apple:
    I changed my wifi setup wep to wpa and it's work !

  • Is there a way to make an audio clip not cover the whole project? I want to add audio clip or song and let it start at a certain point in the project. I'm working with iMovie on IPad!

    Is there a way to make an audio clip not cover the whole project in iMovie? I want to add audio clip or song and let it start at a certain point in the project. Whenever I add audio or song it covers the whole project. I'm working with iMovie on IPad!

    Thank you for your reply Karsten but unfortunately this didn't help me so far. Or maybe I'm missing something?
    First the link is a tutorial for iMovie on a Mac. I'm using iMovie on iPad so the steps are inapplicable.
    Second it is only possible for me to manipulate the end part of the sound clip to whichever duration I want. But I can't do the same with the 'beginning' of the sound clip.
    I simply want to place some photos in the beginning of my video with no sound in the background then after like 2 secs I want to start the music clip. For some reason that is not possible! Cause every time I drop the music clip unto my project timeline it automatically place it self along with the first frame in the project! And consequently the photos and music are forced to start together.
    Hope I'm making sense...

  • How to work with an EXISTING wordpress site in side DW CS5 (yahoo hosted)

    Have and existing  Wordpress site that is hosted by Yahoo.  Recently upgraded to  Dreamweaver CS5. Was really excited about working with my Wordpress  files inside of DW CS5 with all of it's new capabilities, bells and  wistles.  I can't seem to get it set up right.
    Is Dreamweaver CS5 ABLE to display existing wordpress sites with dynamic content? And can anyone please help me figure out how.
    I have been thru several lynda.com video tutorials including:
    Dreamweaver CS5 and Wordpress 3 by Joseph Lowery (over the last month)
    Dreamweaver CS5 with PHP and MySQL by David Gassner (over the last month)
    PHP with MySQL essetial training by Kevin Skoglund (about a year ago when trying to learn php)
    Self-hosting a Wordpress site (about a year ago when I set up the site)
    I have also been scouring this forum and the web trying to find the answer to what seems to be a very common problem.
    Using Mac OSX 10.6.6
    MAMP
    Dreamweaver CS5
    Wordpress 3
    Yahoo web hosting
    Everything works fine with the exercise files but as soon as I try my existing site files it gives me one of several errors
         cannot establish a connection to the database
    I set up my site thur the DW site manager with the
    Local Site Folder set to: /applications/MAMP/htdocs/nate
    server set to:
    name: testing
    connection using: local/network
    server folder:  /applications/MAMP/htdocs/nate
    web url: http://localhost/nate
    under the advanced tab i have set the server model to: php mysql
    and have the testing box checked in the site set up dialog box
    I also set a remote server:
    name: remote
    connect using: ftp
    ftp address: ftp.MY_SITE_NAME.com
    username: myusername@MY_SITE_NAME.com
    password:  mypassword
    under the advanced tab i have the server model set to: php mysql
    and have the remote box checked in the site set up dialog box
    when tested connection was made.  I also downloaded all of my site files using this connections (it took hours).
    I installed MAMP and set the ports to the defauls (80, 3306) host: localhost username: root password: root
    If i change the database settings in the wordpress wp-config.php file  to: localhost, root, root it works and displays my page as I would  expect in live view or browser but without the main content area or  posts - displays a 404 error where the content should beI have exported my wp database and imported back into my local testing server thru phpmyadmin.
    I have also gotten this error at various tries in the set ups: "dynamically-related files could not be resolved because of an internal server error"
    I am currently getting this error: "Dynamically related files could not be resolved because the site definition is not correct for this server"
    It is not asking me if I want to save files to the server when I hit live view.
    Everything  works fine with the lynda.com exercise files and with the generic wordpress files.  I can open any page -  live view or view in browser  - can access and modify the imported  database thur dreamweaver and phpmyadmin. I am only having these problems with my existing site files. I have done the complete set up at least 5 times from scratch going thru the videos and various tutorials step by step.  I dont want to use the starter files that come with wordpress installations I want to use my highly modified pages/themes/database

    DW does not work with a WP installation that has anything other than the default (numeric) permalinks. Apparently no-one ever tested this case during the development and prerelease phase, which is a shame, because very few WP installations use default permalinks. It's a point that Joseph Lowery doesn't touch in his tutorial, and of course the tutorial WP installation works perfectly.
    Hope that helps, although it may disappoint (as it did me, and a lot of other folks). Here's hoping this is addressed in a dot release.
    Alan

  • FAQ: Will Photoshop Elements work with my camera, or Why won't my raw files open?

    What is a raw file?
      A raw file is the unprocessed light data that was captured by your camera sensor. The only settings on your camera that apply to this file are aperture, shutter speed, and ISO. This means that any settings you may have applied to the file, such as white balance, or black and white effects, have no effect. Because this sensor data is raw, it must be processed or baked into an actual image file, that's where the Adobe Camera Raw (ACR) plug-in comes in.
    What is Adobe Camera Raw?
      ACR interprets the raw data and makes image information out of it. But every camera has a unique sensor and thus has a unique form of raw file. Even though camera manufactures may use the same file extension each time (e.g. Nikon raw files are always .NEF), each camera model has a different way of storing information. Because of this, we must continually update ACR for new cameras. As we add new cameras to the list (over 300 now) we update our published list of supported cameras. Additionally, with the changes to ACR, newer releases will not always be compatible with older versions of Photoshop Elements.
    So, will the my raw files work with Photoshop Elements?
      So if you are wondering if your camera is supported by ACR or will work in Photoshop Elements, first check this list:
    Camera Raw plug-in | Supported cameras
      Once you know whether your camera is supported by ACR and by which version, check this list to see whether your version of Photoshop Elements supports that version of ACR or later:
    Camera Raw-compatible Adobe applications
      If your version of Photoshop Elements should open raw files from your camera, make sure you have the latest version of ACR installed. Go to Help > Updates to install the latest ACR release.
      You can also manually download and install ACR updates:
    Macintosh
    Windows
    What if my camera is not compatible with my version of Photoshop Elements?
    Supposing you have a camera that came out after the release of a newer version of Photoshop Elements, so that your version of Elements is no longer recieving updates, you have two basic options:
    Purchase the latest version of Photoshop Elements that supports your camera.
    Use the latest version of the free DNG Converter (for Macintosh or Windows)
    You can convert your files to the universaly compatible DNG format (the files will work with any version of the Camera Raw plug-in). See In depth : Digital Negative (DNG) for more information.
    Where are all of the tools and options that I've seen available in tutorial books and videos?
    Photoshop Elements has fewer tools and options than it's parent Photoshop. These differences are documented here:
    Adobe Camera Raw differences between Photoshop and Photoshop Elements
    Additional resources
      For more inforamtion on Adobe Camera Raw, please check these links:
    Troubleshoot Camera Raw
    Why doesn’t my version of Photoshop or Lightroom support my camera?
    In depth: Camera Raw
    Julieanne Kost's Camera Raw video tutorials
    Adobe Camera Raw turns 10

    Hi Joshua ,
    I would like to know few things before I assist you any further.
    Which version of Android are you using?
    What kind of PDF file it is?
    Try uninstalling the app once and they try to reinstall .
    See what happens.
    Regards
    Sukrit Dhingra

  • Why is working with Adobe so frustrating?

    I am trying to import RAW CR2 files into Photoshop Elements 10. I have downloaded the DNG converter vs 7.1, which tells me that I need the Application manager to install.  I download the manager, only to be told there is a problem with it, download it again.
    I have now been going round in circles for an hour, and am no closer to being able to import and work on my RAW files than I was at breakfast time.
    Any help appreciated.  In an age when computer software is increasinly intuituve, I am finding working with Adobe extremely frustrating.

    It’s not clear. Do you wish to import your CR2 files or convert them to DNG. PSE10 will support all Canon cameras, except the 60DA provided you have updated to the latest camera raw plug in (From the Editor click Help >> Updates)
    So your options are (1) Update PSE 10. (2) Download, unzip and extract, and install the free Adobe DNG converter to convert your CR2 files to the Adobe Raw format and the files will open in all versions of PSE and other Adobe applications (keep your original CR2’s as backup or for use in Canon software) see the latest links below:
    Windows download click here DNG Converter 7.1
    Mac download click here DNG Converter 7.1
    You can convert a whole folder of CR2 images in one click. See this quick video tutorial:
    You Tube click here for DNG Converter tutorial

  • JSP include directive not working with Tomcat 5.0

    Hi.
    I'm developing a small JSF webapp under Tomcat 5.0. My idea was to use the include directive to display a navigation panel on every JSP page.
    I took the code straight from the Java Web Services Tutorial; the resulting page looks like this:
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
           version="2.0">
    <jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
    <%@ include file="/jsp/panelpage_header.inc" %>
         <h:outputText value="Welcome!"/>
    <%@ include file="/jsp/panelpage_footer.inc" %>
    </jsp:root>However, when I try to load the page, a compilation error occurrs:
    org.apache.jasper.JasperException: /trias/welcome2.jsp(11,2) The content of elements must consist of well-formed character data or markup.
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
    ...I checked the path to the included files, and it seems to be okay. The files themselves contain the JSF tags for the view, html-head, html-body etc. The compiler doesn't even care if the files exist or not because it aborts immediately when it reaches the first include-statement.
    Did anyone see this kind of error before?

    Ok, the solution with jsp:directive.include works,
    if header.inc and footer.inc themselves are well
    formed too. If I understood the concept right this is
    because header and footer are processed during
    request time and therefore interpreted as
    'standalone' pages.This isn't true. The include directive (<jsp:directive.include>) is run a Compile Time. The code is inserted directly into the surrounding JSP (unlike <jsp:include> which forwards the request at runtime). The finished JSP, after the include, is then processed and needs to be well-formed XML.
    >
    But: What can I do when these two files define a tag
    that should enclose my current page (for example,
    header opens a panelGrid-Tag, and footer closes it).
    For this case I thought the use of the
    @include-directive would be neccessary to combine the
    three pages during compilation. By this the resulting
    page would be well-formed although header and footer
    are not.It should be, as long as you are using <jsp:directive.include>, and the rest of the included pages are also well formed (no <% %> tags, nothing else out of place...).
    Honestly, I haven't done much work with JSP documents, so I haven't run into this problem. But I do believe everything I said is correct.
    What I would do is double check the correctness of the rest of the included pages and see if your error isn't something else.

Maybe you are looking for

  • I have tried everything....please hellp.

    I have been working for the past few hours on getting my Itunes to work. Ever since I installed Itunes 6....I cannot open Itunes. I have tried the following items (I have a Dell PC and run Windows XP): 1. Uninstall and reinstall (did this several tim

  • Help in inserting rows into a table

    I have a table called acct_fact, I need to insert rows in the table using a script but the problem is there's a column called seq_nbr which has random seq nbr of 14character length like 'ZWX98MGD9MVAD6J','ZWX98MG67RVAD6J' etc., While inserting rows I

  • Applying color to picture boxes with siloed images

    I have picture boxes that contain photos that were siloed in photoshop. When I place in InDesign, I want to put a color in back of the image. When I try the color sits on top of the image as well as filling the background please advise. thanks

  • I am in the middle of an xcode project. Can I get back to summary?

    I am in the middle of an xcode project. Can I get back to summary?

  • Unable to install xacf.exe

    Hello experts, I am trying to install xacf.exe however getting an error without message and after clicking on ok installation gets stopped. I have already installed adobe livecycle designer ES2. Please advice do i need to uninstall it and install xac