How can a custom tag write multiple fragments in the response ?

I have a custom tag that needs to write at least 2 html/xhtml fragments into the response in order to be html compliant. The custom tag outputs a script that must be located in the head section and other elements that refers to the script.
Events handlers of html input elements follow this pattern. The handler may need to refer to script functions defined in the head section of the document.
Is it possible with the custom tag architecture to handle this scenario ?

I don't think so, unless the tag wraps the entire page, but that's harder to do. Maybe a tag could wrap the whole page and you could have another inner tag that acts as a marker of where to put things (kinda like Jakarta Commons Tiles tags).
Otherwise, you could use 2 tags and share data put in the request scope by the header tag in the subsequent body tags.
Or since you are writing Javascripts with the one tag, you don't strictly need to put the JS in the head. Although I'm not sure about that restriction in XHTML.

Similar Messages

  • How can I get rid of multiple pictures at the same time?

    how can I get rid of multiple pictures at the same time?

    Adobe Bridge, lightroom and your file browser (windows explorer or Mac Finder) can select multiple pictures at once and then delete. If you are looking for more than that for information, you will need to be more specific at what your doing, what OS you have, and version of software your using. If necessary post screen shots so we can see what your doing. The more information we have the more detailed of an explaination can can give back to you.

  • How can I get rid of multiple versions of the iTunes Folder

    I am using Windows 7 and iTunes 12.1.1.4.  Multiple iTunes folders have been created on my computer (on both my C: drive and my D: drive under Users and My Documents) and they all have different content.  Some albums show up in one instance of the iTunes\iTunes media\music folder and some show up in another.  How do I get all the content synched up?  Can I simply drag and drop all these iTunes folders into D:\My Documents\My music\iTunes (the D: drive being where I store all my documents and photos) and then delete the rest of the iTunes instances?

    Several remedies may apply:
    For media files that are correctly linked from your iTunes Library, i.e., they will play without reporting something like this:
    you can make sure that everything is contained within your main iTunes folders by selecting File > Library > Organize Library... and when you get this prompt:
    check the Consolidate files box and, if not greyed out, the Reorganize files ... box and then click OK.  This will move any media files that are in other locations to the folders under the setting in Edit > Preferences > Advanced:
    This is the location of your media folder.  By default, this will be C:\Users\username\Music\iTunes\iTunes Media, where your iTunes database (the iTunes Library.itl file) is stored in C:\Users\username\Music\iTunes.  In general that relationship between the database and the media folders should be preserved - in the example above the complete library is stored on a external drive, with the database in K:\iTunes and the media folder location being K:\iTunes\iTunes Media.  Note that this setting doesn't tell iTunes where to find media files (that info is embedded in the database); rather, this setting determines where new media is placed within the media folders.
    Checking this causes iTunes to automatically place media in folders, and (re)name media files, based on the metadata associated with the files.  For music this means that everything will be in folders following the pattern iTunes Media\Music\artist_name\album_title and files to be named using the disc number (if present), track number and song name.
    Checking this makes iTunes copy all new media into the media folders, independent of the method of adding it.
    Second case ...
    For songs that are listed in your library but you do get the "missing file" error, right-click on one of these songs - there will be a "(!)" symbol next to its name, right-click > Get Info.  When you get this prompt:
    click No (there's a bug in iTunes 12 such that you actually have to click No twice).  Then go to the File tab and look for the Location information - sometimes you have to scroll down or expand the editor window to see it.  You'll see something like this:
    The "file://localhost/" prefix indicates that iTunes can't locate the file.  The rest of the entry is the path to the file that iTunes holds in its database, i.e., where iTunes "thinks" the file is.  This may be enough of a clue to determine where it actually is - close the editor, right-click > Get Info again, but when you the "... cannot be located ..." prompt click Yes then navigate to and select the correct media file.  In many cases iTunes will then be able to adjust its location info for other songs.  Otherwise there are a number of techniques that you can use to track down and repair these broken links - often using scripts running against the iTunes database.
    ... and the third case:
    If you have folders that are labeled as "iTunes" but their content doesn't appear in your library within iTunes itself, add these to the library by any of these methods:
    select File > Add Folder to Library... then navigate to and select the folder(s) containing the "missing" albums/songs
    drag and drop these folders from Windows Explorer into iTunes
    copy these folders into iTunes' Automatically Add to iTunes folder
    Once you've been through these steps its probably worth running the Consolidate Library process again to make sure everything's in the right place.  Once you've checked that to be the case, you can delete any stray "iTunes" folders that are outside the hierarchy rooted in the folder where your database and your standard iTunes Media files are located.
    Two final points:
    Moving files and folders around yourself never fixes anything in iTunes - in most cases it'll only make things worse by creating (more) broken links
    A couple of turingtest2's valuable user tips also apply here:
    Make a split library portable describes the optimal layout for an iTunes library, easing the processes of moving it between computers and maintaining a backup of it, as well as the steps needed to bring a library into that shape
    Backup your iTunes for Windows library with SyncToy describes a suitable/recommended method to create and maintain a backup ... when you've gone through the effort to make your library just exactly perfect you don't want to lose it all as the result of a virus, hard disc crash, or other fatal failure!

  • How can I control Read/Write for BegBalance under the same Scenario in different Years?

    As we know, we can set 'Start Year/Period' and 'End Year/Period' on a scenario member, e.g. Budget, to control whether planners can input data under this scenario.
    However, we can only choose years and month from Jan to Dec. BegBalance can't be chosen.
    Assuming a form putting Year dimension as a page, Scenario and BegBalance, Jan to Dec as column, Account as row.
    If planner chooses budget year in the page, every column from BegBalance to Dec is writable.
    The problem is, when planner chooses current year in the page, Jan to Dec is read-only, but BegBalance is still writable.
    This will make the planner confusion and put the data in a dangerous position.
    Is there any idea to avoid this situation?
    Thanks.

    You can disable (write) BegBalance for that Scenario by unchecking "Include BegBalance".
    Regards
    Celvin
    http://www.orahyplabs.com

  • How can I download eBooks to multiple iPads using same apple ID?

    How can I download eBooks to multiple iPads using the same apple ID?

    Those are called iBooks. On the devices go to iTunes app and then to the Purchased section in bottom row and find the media and tap install

  • How can I  custom my date  in OBIEE.

    How can I custom my date in OBIEE.I want to see date in my user friendly format for Date Format MM/DD/YYYY to filter with
    leading zero(number) eg (01.21.2008) and not M/D/YYYY (1.21.2008) that i am seeing.I would appreciate it if you could give me a step by step process on how to do it in RPD.I know how to change the data format in my column propeties since i have more that 5000 columns that need changed.I am looking for a localised area
    that can take care of business.
    Thanks

    Edit the following parameters in OracleBI\web\config\localedefinitions.xml
    - Search for the locale that you want to customize by looking for the tag *<localeDefinition name="en">*
    - Customize the following tags as you require
    <property name="dateShortFormat">MM/DD/YYYY</property>
    <property name="dateLongFormat">dddd, MMMM dd, yyyy</property>
    - Restart the presentation server

  • In ADF how can i insert data in multiple table if they have foreign key

    I have started working on ADF and can anybody inform me in ADF how can i insert data in multiple table if they have foreign key,please?
    Thnak you very much.

    Hello,
    Still no luck.I am surely doing silly mistakes.Anyway,Here are my workings-
    1> student_mst (id(pk),studentname) and student_guard_mst(id(fk),guardianname)
    2> created EO from both of the tables,made id in both EO as DBSequence and an association was also generated.
    3> i made that association composite by clicking the checkbox
    4> i created 2 VO from 2 EO.
    5> put those VO in Application Module.
    6> dragged and dropped 2 VO on my jspx page and dropped them as ADF Form.
    Now what to do please?

  • HT1495 how can i sync aps on multiple devices on one computer

    Trying to use multiple devices on same computer but don't want the devices to have all the same aps.  how can i seperate that without having to check the aps i want each time a sync?

    Assuming the photos are in an iPhoto Library on the Air and you want to import them into your iPhoto Library on your Powermac there is an application that can copy all photos in the Air library that are not in your Powermac library into your Powermac library.  However, no keywords or other metadeata willl be brought over with them and they will come over in a new event each time you run it. Take a look at: Sync iPhoto libraries | SyncPhotos (formerly iPhotoSync) | Haystack Software.
    There's another application,  iPhoto Library Manager, that will let you copy events or albums from the Air library to the Powermac library. However, you will have to select the events/albums you want to copy. It's not automatic.  This method will copy keywords and other metadata along with the photos.
    OT

  • I need to back up and sync multiple iPhones to a single iMac.  Each iPhone has a separate Apple ID and the data from each iPhone needs to be backed up separately from the others.  How can I do this without getting all of the contacts, etc. mixed? Tnx

    I need to back up and sync multiple iPhones to a single iMac.  Each iPhone has a separate Apple ID and the data from each iPhone needs to be backed up separately from the others.  How can I do this without getting all of the contacts, etc. mixed? Tnx

    This might help: http://support.apple.com/kb/HT1495.

  • How can we get  tag of XML file using SAX

    Hi ,
    I'm parsing one SAX parser , I'have almost done this parsing. i have faced problem for one case, i'e how can we get tag from XML file using SAX parser?
    XML file is
    <DFProperties>
    <AccessType>
    <Get/>
    </AccessType> <Description>
    gdhhd
    </Description>
    <DFFormat>
    <chr/>
    </DFFormat>
    <Scope>
    <Permanent/>
    </Scope>
    <DFTitle>gsgd</DFTitle>
    <DFType>
    <MIME>text/plain</MIME>
    </DFType>
    </DFProperties>
    I want out like GET and Permanent... means this one tag which is present inside of another tag.
    Handler class like
    public void startElement(String namespaceURI, String localName,
                   String qName, Attributes atts) throws SAXException {
    if(_ACCESSTYPE.equals(localName)){
                   accessTypeElement=ACCESSTYPE;
    public void characters(char[] ch, int start, int length)
                   throws SAXException {
    if (_ACCESSTYPE.equals(_accessTypeElement)) {
                   String strValue = new String(ch, start, length);
                   System.out.println("Accestype-----------------------------> " + strValue);
                   //System.out.println(" " + strValue);
    public void endElement(String namespaceURI, String localName, String qName)
                   throws SAXException {
    if (_ACCESSTYPE.equals(localName)) {
                   _accessTypeElement = "";
    . please any body help me

    Hi ,
    I have one problem,Please help me.
    1. How can I'll identify where exactly my Node is ended,means how how can we find corresponding nodename? in partcular place
    <Node> .............starttag1
    <NodeName>Test</NodeName>
    <Node>................starttag2
    <nodeName>test1</NodeName>
    </Node>..................endtag2
    <Node>.....................starttag3
    <NodeName><NodeName>
    <Node> .........................starttag4
    <NodeName>test4</NodeName>
    </Node>.......enddtag4
    </Node>...........end tag3
    </Node>............endtag1
    my code is below
    private final String _NODENAME = "NodeName";
    private final String _NODE = "Node";
    private String _nodeElement = "";
         private String _NodeNameElement = "";
    public void startElement(String namespaceURI, String localName,
                   String qName, Attributes atts) throws SAXException {
    if (_NODENAME.equals(localName)) {
                   NodeNameElement = NODENAME;
    if(_NODE.equals(localName)){
         System.out.println("start");
         if (_NODENAME.equals(localName)) {
                   NodeNameElement = NODENAME;
    public void characters(char[] ch, int start, int length)
                   throws SAXException {
    if (_NODENAME.equals(_NodeNameElement)) {
                   String strValue = new String(ch, start, length);
                   String sttt=strValue;
                   System.out.println("NODENAME: ************* " + strValue);
    if(_NODE.equals(_nodeElement)){
                   if (_NODENAME.equals(_NodeNameElement)) {
                        String strValue = new String(ch, start, length);
                        String sttt=strValue;
                        System.out.println("nodevalue********** " + strValue);
    public void endElement(String namespaceURI, String localName, String qName)
                   throws SAXException {
    if (_NODENAME.equals(localName)) {
                   _NodeNameElement = "";
    if(_NODE.equals(localName)){
                   System.out.println("NODENAME: %%%%%%%%%");
    please help me. How can I figure node ending for particular nodename

  • How to use custome tag lib in the JSP page?

    How to use custome tag lib in the JSP page?...with JDeveloper

    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtTopicFile.working_with_jsp_pages%7Cjsp_ptagsregistering~html/

  • How to use custom tag in jsp

    sir
    plz tell me how to use custom tag in jsp.plz describe it.
    i will be thankful to u

    Do you want to use taglibs or develop custom tags? Either way take a look at these:
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags.html
    http://www.stardeveloper.com/articles/display.html?article=2001081301&page=1
    http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html
    http://jakarta.apache.org/taglibs/tutorial.html
    http://www.ibm.com/developerworks/edu/j-dw-java-custom-i.html
    http://www.herongyang.com/jsp/tag.html

  • How can I read and write text in rings that are inside an array?

    Hello All!!!
    How can I read and write text in rings that are inside an array?
    Regards and thanks in advance.

    Use a Property Node linked to the Ring inside the array.
    Of course, all elements in the array will have the same text values.
    B-)
    Message Edited by LabViewGuruWannabe on 12-13-2007 09:47 AM
    Message Edited by LabViewGuruWannabe on 12-13-2007 09:48 AM
    Message Edited by LabViewGuruWannabe on 12-13-2007 09:49 AM
    Attachments:
    Strings-BD.PNG ‏17 KB
    Strings-FP1.PNG ‏23 KB

  • How can our customer edit our Captivate 6 content with Captivate 5?

    Our company has decided to dive into the e-learning business and create e-learnings.  We just purchased a Captivate 6 subscription, unfortunately before finding out our customer uses Captivate 5.  He would like to edit our files once in a while when he needs to if he doesn't have enough time to have us do it.   Is there anyway he can edit content produced in Captivate 6 with his Captivate 5.  Can I export files of a certain type that he can in turn import and add to his Captivate 5 and edit himself?  In other words, what kind of files can I export from Captivate 6 than he can import with Captivate 5 and make small changes to?
      Vielen Dank,
                 Ryan

    Thank you.  I see that I can export content as an .xml file.  Isn’t this something he can upload with Captivate 5?    Thanks for bearing with my naivety. : )
    Von: RodWard [email protected]
    Gesendet: Mittwoch, 1. August 2012 14:25
    An: Scharfer, Ryan
    Betreff: How can our customer edit our Captivate 6 content with Captivate 5?
    Re: How can our customer edit our Captivate 6 content with Captivate 5?
    created by RodWard<http://forums.adobe.com/people/RodWard> in Adobe Captivate - View the full discussion<http://forums.adobe.com/message/4591371#4591371

  • HT5361 How can I forward mail to multiple recipients?  When I try to add an address, it replaces the previous address

    How can I forward mail to multiple recipients?  When I add an address, it replaces the previous address.

    Using the + button helped--should have been obvious, but I haven't been using it.  It works but seems very cumbersome to add one at a time.  I had another list of addresses that I could hold down the command button while selecting as many as desired, then click on BCC and double-click on just one of the addresses, and BCC would autofill with all of them.  Unfortunately, when I installed the latest Mac system update, I lost that multiple address capability--it's always something!

Maybe you are looking for

  • Photoshop CS6 extremely slow after changing text engine to Middle Eastern

    Hello, I'm using PS CS6 13.0.5 x64 on Snow Leopard (iMac 27" late 2012) I tried to change the text engine to Middle Eastern, but after I restart PS, the program is nearly non-responsive, and it takes forever to edit text. Changing it back to East Asi

  • UPGRADE REQUEST ACROBAT X1 standard 10.1.6 to 11.x

    A week ago I just bought a new laptop with Acrobat X1 Standard 10.1.6 installed (OEM). I'd like to upgrade to 11.x. How can this be done? The laptop came with the 10.1.6 version pre-installed and the install CD was not included, just the "certificate

  • Logotype and Current Date in PDF - Web Applications

    Is possible to insert an image (company logotype) and a text (title and date) in PDF generate through “Printed Version” functionality? The generated PDF only contains result table of the report. By the way, how can I insert current date in a web appl

  • Pop-up and Reminders in SAP

    Hi, We are implementing SAP and in this we require various reminders / Pop-up when some of the Annual rate contract expires, RFQ on over due, Material not received after its due date etc. Regards, Bhaskar, SPIC Tuticorin

  • Letters are not turned by copy to Corel Draw

    Hello, I made with Visio 2013 a drawing with dimensioning. In some parts of the drawing the text of the dimensioning is turned to 90 grade. If I copy this drawing to Corel Draw, the letters of this text are not turned and they are now one below the o