Breaking Large TLD into separate tag files

I have a custom JSF components project where my TLD has gotten fairly large (7000 lines). I've read the JavaEE tutorial over and over and am trying to follow its unstructions about breaking it into multiple tag files. I have 10 major components, each with multiple subcomponents, and I would like to break it into 10 different tagfiles. Since this will be built into a jar, the tag structure is put in the META-INF folder.
My questions are:
1) does the tagfile need to use the same xmlns as the taglib? What does the tagfile look like?
2) The tutorial mentioned an auto-generated taglib for each directory. Do I need to create a second tld for the tags directory if I am referencing each tagfile directly from the maintaglib.tld?
Here's what I'm trying:
Directory Structure:
/META-INF/maintaglib.tld
/META-INF/tags/compOne.tag
/META-INF/tags/compTwo.tag
/META-INF/tags/compThree.tag
/META-INF/tags/compFour.tag
...Main Taglib:
<?xml version="1.0" encoding="UTF-8"?>
<taglib id="mainTaglib"
        xmlns="http://java.sun.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xi="http://www.w3.org/2001/XInclude"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
        version="2.1">
    <description>This taglib is for use with my components.</description>
    <display-name>My Components Taglib</display-name>
    <tlib-version>1.2</tlib-version>
    <short-name>cust-jsf</short-name>
    <uri>http://www.site.com/jsf</uri>
    <tag-file id="tagfileOne">
        <description>The description</description>
        <display-name>First Tag File</display-name>
        <name>compOneTagfile</name>
        <path>/META-INF/tags/compOne.tag</path>
    </tag-file>
    <tag-file id="tagfileTwo">
        <description>The description</description>
        <display-name>Second Tag File</display-name>
        <name>compTwoTagfile</name>
        <path>/META-INF/tags/compTwo.tag</path>
    </tag-file>
    <tag-file id="tagfileThree">
        <description>The description</description>
        <display-name>Third Tag File</display-name>
        <name>compThreeTagfile</name>
        <path>/META-INF/tags/compThree.tag</path>
    </tag-file>
    <tag-file id="tagfileFour">
        <description>The description</description>
        <display-name>Fourth Tag File</display-name>
        <name>compFourTagfile</name>
        <path>/META-INF/tags/compFour.tag</path>
    </tag-file>
...Example of a tagfile:
<?xml version="1.0" encoding="UTF-8"?>
<tag>
    <description>
        <![CDATA[This tag creates a  Hint object, defining the timing for showing and expiring. To show actual
        hints, you will need to add hint tags as children.]]>
    </description>
    <name>hints</name>
    <tag-class>com.foo.callout.HintsTag</tag-class>
    <body-content>scriptless</body-content>
    <attribute>
        <description><![CDATA[How long to wait before showing the callout on a mouseover.]]></description>
        <name>timerLength</name>
        <required>false</required>
        <deferred-value>
            <type>java.lang.Integer</type>
        </deferred-value>
    </attribute>
...

I think you've got an incorrect understanding of tag files.
Tag files are fragments of markup that are exposed to the page developer in the same fashion as
traditional JSP tag handlers are.
They aren't a mechanism to allow you to modularize your TLD.
If you really want to build an XML document from several well-formed fragments, you may wish to review
this information on [external entity references|http://www.w3.org/TR/REC-xml/#sec-external-ent]

Similar Messages

  • I have an extensive aperture library on my computer's hard drive and I want to break it up into separate smaller libraries on external hard drives.  How do I take projects from one library and add them to another one?

    I have an extensive aperture library on my computer's hard drive and I want to break it up into separate smaller libraries on external hard drives.  How do I take projects from one library and add them to another one?

    Coastal,
    Frank gave you the exact answer to your question. 
    However, I would like to ask if you are indeed asking the right question.  Do you really want different libraries?  The implications are that you have to "switch" libraries to see what's in the others, and so that your searches don't work across all of your pictures?  If so, then you asked the right question.  If not, you may be more interested in relocating your masters to multiple hard drives so your library gets smaller, instead of breaking up the library.
    nathan

  • How to split column wise into separate flat files in ssis

    IN SSIS...
    1.---->I have a sales table country wise regions  like (india, usa, srilanka) ....
    india usa
    srilanka
    a b
    c
    d e
    f
    so i want output like in
    flat file1.txt has india               flat file2.txt has usa             flat file3.txt has srilanka
         a b
    c
         d e
    f
    2.----->i dont know how many regions in my table....dynamically split into separate flat files ....
     pls help me.....thank u

    I think what you can do is this
    1. Do a query based on UNPIVOT to get the data as rows instead of columns
    For that you can use a query like this
    IF OBJECT_ID('temp') IS NOT NULL DROP TABLE temp
    CREATE TABLE temp
    Country varchar(100),
    Val decimal(25,5)
    DECLARE @CountryList varchar(3000),@SQL varchar(max)
    SELECT @CountryList = STUFF((SELECT ',[' + Column_Name + ']' FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '<SalesTableNameHere>' FOR XML PATH('')),1,1,'')
    SET @SQL= 'SELECT * FROM <SalesTableNameHere> t UNPIVOT (Val FOR Country IN (' + @CountryList + '))p'
    INSERT temp
    EXEC (@SQL)
    Once this is done you'll get data unpivoted to table
    Then you can use a execute sql task with query like above
    SELECT DISTINCT Country FROM Temp
    Use resultset option as full resultset and store the result to an object variable
    Then add a ForEach loop container with ADO enumerator and map to the object variable created above. Have variables inside loop to get inidvidual country values out.
    Inside loop place a data flow task. Use a variable to store source query , make EvaluateAsExpression true for it and set Expression as below
    "SELECT Val FROM Temp WHERE Country = " + @[User::LoopVariable]
    Where LoopVariable is variable created inside loop for getting iterated values
    Inside data flow task place a oledb source, choose option as  SQL command from variable and map to the above query variable.
    Link this to flat file destination create a flat file connection manager. Set a dynamic flat file connection using expression builder. Make it based on a variable and set variable to increment based on loop iteration
    The core logic looks similar to this
    http://visakhm.blogspot.ae/2013/09/exporting-sqlserver-data-to-multiple.html
    dynamic file naming can be seen here
    http://jahaines.blogspot.ae/2009/07/ssis-dynamically-naming-destination.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Break photo gallery into separate pages

    I have so many pictures in my iphoto library that I'd like to share on gallery. However; I find that as I upload more and more picture, the gallery takes too longer to load. I am wondering if it is possible that I can break the gallery into smaller segments and put them on separate pages? If so, how ?

    shakur:
    As users we can control how many photos we put in a single gallery but not creating "pages" of galleries. You could create an iWeb page with the galleries on the page like this. But once you bring up any gallery by clicking on it, if you go to the main gallery you're in the same situation waiting for all the items to load.
    But the first visit to the web page would not be dependent on loading the galleries.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Can't separate funds into separate FrameMaker files

    We have an automated process that was internally created in FrameMaker that takes a FrameMaker Book file that contains a large number of individual mutual fund files and breaks out each mutual fund into an individual file using the fund’s unique product code, removes sector tabs, and removes page numbers, then creates a postscript file. The user selects the functionality from a menu choice within an internally created “Marketing” menu on the FrameMaker menu bar. It is not functioning properly.
    Instead it is generating error messages.
    Adobe FrameMaker (Structured): FrameMaker.exe - Application Error:
    The instruction at "0x00cc1940" referenced memory at "0x00000000". The memory could not be "read". Click on OK to terminate the program.
    and
    Error:
    Internal Error 8004, 6343116, 8 483344, 0. FrameMaker has detected a serious problem and must quit.
    A file named "C:\Program Files\Adobe\FrameMaker8\FrameLog_11.10.17_07.52.51.txt" has been generated which contains information that may help Frame development improve the product for future release.
    We have looked at the FrameLog_11.10.17_07.52.51.txt but it is not helping us diagnose the issue.
    Can you help us determine what the problem is and how to resolve it?
    Thanks for your help.

    Well, there's a reply I've never heard before, but I don't mean to make light of this situation, especially if the individual was your friend. In any case, my condolences.
    With the source code, it should be a simple matter to run this process through a debugger to at least identify the point where the memory violation is occurring. In my personal experience, problems are usually caused by a simple mistake and therefore corrected quickly once the errant code is identified. If you don't have someone on staff that could do this, I'd strongly recommend that you get somebody for a few hours or a day to figure this out. Otherwise, you are dealing with a ticking time bomb that will certainly blow up on you again sometime (at the worst possible moment), even if a reinstall or some other trick seems to fix it.
    I don't know that there is much more that I can tell you. There is either a bug with the plugin or FM and I think somebody needs to get into the debugger to find it.
    Russ

  • How do I copy different parts of the page into separate pdf files?

    I have Adobe Acrobat 9 Pro and an assortment of very large pdfs that I want to make into about a thousand individual pdfs.  The pages contain text and I want to be able to copy parts of the page into separate different pdfs.  It would be really nice if I could split up the page into the required sections by highlighting all the different sections on the page and then save each section to individual pdfs all at once.  Acrobat has so many features that I am hoping that it can do something like this.  Thanks  Anewbie282

    With the number of pages you are talking about, there is no real easy solution. However, try extracting the page(s) you want in a new file. After the extracted file exists, try using the object select tool to remove the parts you do not want. You might find using the redaction tool to zero out the parts you don't want might work better. Unfortunately, a PDF is not a word processor type data file and the editing is likely not going to be easy.

  • In Design Data merge into separate pdf files with variable data name

    Hi all, thank you for taking the time to read this.
    Here's what I have.
    I've created a file in indesign using a 65 page document.
    With this document I've set it up to have specific data in certain areas with data merge.  I have that part setup and it works fine. 
    When I go to export PDF it creates one massive pdf document with all the variable data in it.  However here is the scenario I would like.
    1. Indesign to create a separate pdf file for each record.  So in this example it would be 100 different 65 page pdfs since it should have different pdfs for each record and there are 100 records in the csv.
    2. The pdf should be named after each variable record.  For example record one says name "Joe", record 2 name "Frank".  So it should create joe.pdf, frank.pdf etc.
    How can I accomplish this?

    I don't know if this script works in CS4 or not:
    http://indesignsecrets.com/page-exporter-utility-peu-5-script-updated-for-cs3.php

  • Help breaking large project into mods

    Try this another way...I have a large project that has the potential to get out of hand. I want to break it into mods. Have one captivate file that acts like the menu that calls each mod. Whole thing should look like one big program. Is this possible? If so how?

    Hi there,
    If you would like to aggragate HTML 5 projects then that is not possible with Aggregator.
    You can create few different projects link them together.
    The Procedure is :
    For example if you have Lesson 1, Lesson 2 and Lesson 3.
    On the last slide of lesson 1, insert a button with action  or apply an action on the exit of the last slide "to open another project" and select lesson 2.
    and on the last slide of Lesson 2 apply an action to "open another project" and select Lesson 3.
    Then Publish Lesson 1 as HTML 5 (that will have folders :ar, assets, callees, dr, and vr  ) and then at the time of publishing Lesson 2 select the publish loation as Callees folder of Published Lesson 1 and at the time of publishing Lesson 3, select the publish location ad Callees Folder of published Lesson 2.
    Note: You cannot have a backward movement. For example, you can have this order Lesson 1 > Lesson 2 > Lesson 3, but not backward.
    Thanks.

  • Break larger ROI into subsections

    Hello everyone, I have a question. 
    Is it possible to take a ROI (perhaps a polyline or freehand drawn one) and subdivide this ROI into rectangular or semi-rectangular rois (with certain size parameters?) I would like to selectively add or subracted certain features in the large ROI before image acquisition. 
    Thanks,
    D.

    In LabVIEW, the points of a freehand ROI are actually available in ROI Descriptor::Contours::Coordinates. You could try filtering them manually.
    Another option that might work for you is to use "IMAQ ROIToMask 2" to create a binary image, then mask your binary image into the separate rectangular regions you want, and then use "IMAQ LabelToROI" to convert back to an ROI from your masked binary image.
    I think the attache LabVIEW 2010 example should explain this.
    Kevin C.
    Attachments:
    ROI Example.vi ‏79 KB

  • Batch importing Word files into separate InDesign files

    Hi,
    I have what I though would be a fairly common question, but I can't seem to find any information about it in this forum or on the web.
    I have a folder of Word files (over 100, which is why I don't want to do this manually) and one InDesign CS4 file that I'd like to use as a template (basically it's just a couple of pages with some threaded text boxes and a few images). I would like to write a script that will go through the Word files, one by one, and pull each into the text box in the InDesign file before saving it as a new copy (ideally with the same name as the Word file). So, if I have 100 Word files and one InDesign file in a folder, I'd like to be able to run a script and end up with 100 new InDesign files.
    I think I can deal with importing and placing the text, and saving the file again. It's mostly the question of using javascript to go through a folder to find all of the filenames so that I can pass the name to the import file command that is confusing me.
    Oh, I'm on a Mac with OS 10.6 and using InDesign CS4.
    Thanks!

    Before reinstalling (which is most often unneeded) it would be useful to test the way the app behave when it is used in an other User Account.
    If it behave flawlessly, no need to reinstall it.
    If it doesn't, it *_may be useful_* to reinstall it but it's not sure.
    Nothing prove that the problem is really linked to the installed application's files.
    It may be linked to a file built on the fly like preferences or fonts cache…
    Yvan KOENIG (VALLAURIS, France) vendredi 3 décembre 2010 15:55:58

  • How do I break a pdf into smaller pdf files using Pro?

    How do I make a smaller pdf (i.e. pgs 17-22) from a larger pdf file using Adobe Acrobat Pro?

    It would help if you told us what version of Acrobat Pro you have. (The interface changed substantially in Acrobat X Pro.)
    If you're using Acrobat 9 Pro or Acrobat 8 Professional, choose Document > Extract Pages.

  • Split PDF into separate PDF files

    I have a seven page PDF and I want to separate it ino seven individual PDF files.  Is this possible?  If so, how?

    Not possible with Adobe Reader. You can extract pages from a unprotected PDF document with Adobe Acrobat.

  • Make sibclips into separate media files

    what settings should i use in Media Manger to make subclips into they're own media files?

    Select the the subclip, mark it in to out or use NO marks, then open it and all others in media manager and copy, delelt unused media... or use batch export (easier BTW)... Select all subclips, and just choose batch export. Set the settings to "Item settings", make self contained, and set the destination, then click go! If there are in and out points, be sure to turn off the in to out only option in the batch export.
    Jerry

  • How to export the created Pivot table by using Power Pivot into separate excel file in the same format?

    Hi PowerPivot experts,
    I have created more than 60 pivot tables in multiple sheets by using PowerPivot work book. now i want delivery all the pivot table in excel document to my end user by email.
    I want send only the Pivot tables which i created using PowerPivot data model instead of sending the whole model file since its very heavy.
    I have tried with export option in Excel 97-2003, its works fine but not getting exact pivot format which i created and its displays as value.
    My aim to send pivot table that i created format but not whole file with source data.
    I would be really grateful if advise me to fix it out.

    Hi Robert,
    I don't think it is a good idea to deliver all PivotTable report to end user via E-mail, and SQL Server PowerPivot for Excel doesn't support to deliver PivotTable report to end user without PowerPivot data inside in the data model. For example, I suppose
    we create a PivotTable to display the SalesAmount of US in pervious years(eg:2012, 2013, 2014), how can we dynamic show the value based on end user selection without PowerPivot data model data(The PivotTable report don't have data source)?
    So, one workaround that we can create a shared folder to store all of PowerPivot report for all of end user in the domain environment, and then inform end users to copy the PowerPivot reports what they want via E-mail.
    If the end users aren't in domain environment, we can implement the VPN soltion to achieve this.
    Regards,
    Elvis Long
    TechNet Community Support

  • Convert an xml file into separate html files

    hi,
    i've a problem. i have an xml database. i want to create an html file from that database. but the condition is ,after reading a specified number of nodes say(100) it must write the rest in a new html file. how could i do this.
    please help.

    DOM in explorer or java dom will help u i n that

Maybe you are looking for

  • Sharepoint List Retention Policy based on Modified Date

    How do I implement a Sharepoint List Retention Policy that deletes list items that haven't been modified in X days? I've tried to create a retention policy in Sharepoint, but I only get the option to base the policy on: Created Date Declared Record I

  • Custom Values not read back from Active area

    Hello All, Need help/ directions. We have custom fields in UI, which are saved in Custom tables in ECC for reporting purpose. On activation of CR we could save these values in Ztables, but when use open the Material for Mark for Deletion we are getti

  • Computer not recognizing ipod after crash

    My computer crashed and it was wiped clean-so basically I have a new computer. I have itunes on my computer and I was able to recover most of my music. When I plug in my ipod to the computer, itunes says it's not registered to that computer. How can

  • How can I get a small window to open when a link is clicked (AS2)

    Hi i,m developing a HTML site and used one animated flash button(AS2) I want a small sized window to open when a user clicks on a button. The window will contain information that i want to display.It dosnt require a normal 800x600 window to open. I j

  • Query's different versions

    hi All, there are usually three versions of any query - A,M and D A= Active Version M=Modified Version D = ? if i delete A version of any query M version get deleted with it. Right ? is there any other versions available ? What is D version ? why we