Custom Tags starting with $: lots of problems

I'm building an extension for MovableType template tags.
Those tags can be delimited in several ways: <MTNameOfTheTag>
or <$MTNameOfTheTag> or even <$MTNameOfTheTag$>. Since
the dollar sign is not allowed as tag name, i put a
prefix="&lt;$" in tag definition, but now i have some problems:
1. even if in tag chooser i can see the dollar-prefixed tags,
i cannot see them in code hints (I mean "automatic" code hints,
those floating menus automatically made for every tag/every
attribute/every enumerated attriboption in library).
2. I tried to manually code tags in codehints.xml file with
the "&lt;$ pattern (so i can change the icon associated to my
custom tags, too. That's will be very elegant) but I loose "child"
codehints menus: the first codehints menu (the one i manually made)
comes up, but those for attributes and attributes values don't.
3. With the solution in point 2 not only i loose "automatic"
codehints, but i have to write THREE files for every tag
(taglibrary, codehins, third party tags file). Lot of time :/
4. Dollar signs, in both start and end, are NOT part of the
name, but part of the tag, like a prefix or a suffix. With an
attribute i should have:
<$MTBlogName donald="goofie"$>
and not:
<$NTBlogName$ donald="goofie">
as actually i have
so, as i said...a lot of problems! i hope someone can help
me...its really an hard sunday, today! :/
tnx in advance

I think you might be moving into creating your own server
model.
Just a thought.

Similar Messages

  • Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - Problem: Can't tab from one entry field to the next; Hitting tab instead hides all palettes; Is there a fix? This didn't happen in Adobe Indesign CC

    Adobe InDesign CC 2014 Custom Panel Built With Extension Builder - Problem: Can't tab from one entry field to the next; Hitting tab instead hides all palettes; Is there a fix? This didn't happen in Adobe Indesign CC

    This is planned to be fixed in the next release.

  • Good morning , I bought my mac pro 13 ' in 2011 (OX 10.10) , in March 2014 I had to replace the video card , fortunately under warranty. Today, after only eight months starting with the same problems ! I read online that some mac products in 2011 wer

    Good morning , I bought my mac pro 13 ' in 2011 (OX 10.10) , in March 2014 I had to replace the video card , fortunately under warranty.
    Today, after only eight months starting with the same problems !
    I read online that some mac products in 2011 were put on the market defective , you can get a warranty extension or even a replacement mac?

    dubem747 wrote:
    It looks like your phone has a some virus, use your computer to scan and remove it.
    not possible for it to have a virus and a PC would not know how to scan the OS as its protected
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Custom tag lib with output parameter

    Hi,
    I need a tag libray that gives me a specific element of a Vector.
    Here there is the line I have in my jsp.
    <ct:partizione tronco="${contenitoreCentralineTronco}" indice="index" partizione="tmpPartizione"/>
    ...-contenitoreCentralineTronco is an Object that contains a Vector of other specif objects.
    -indice is the vector index of the specif instance I need.
    -partizione should be the output instance.
    This is part of my tld file:
        <tag>
             <name>partizione</name>
            <tagclass>ss.aspi.classi.centraline.grafica.tagSupport.Partizione</tagclass>
            <bodycontent>empty</bodycontent>
            <info>Estrae una partizione da un vettore di partizioni dato l'indice</info>
            <attribute>
                <name>tronco</name>
                <required>true</required>
                <rtexprvalue>true</rtexprvalue>
            </attribute>
            <attribute>
                <name>indice</name>
                <required>true</required>
            </attribute>
            <attribute>
                <name>partizione</name>
                <required>false</required>
            </attribute>
         </tag>
    ...this is part of the class called by the tag:
         private ContenitoreTroncoBean tronco;
         private Integer indice;
         private ContenitorePartizioneBean partizione;
         public int doStartTag() throws JspException {
              try {
                   Vector<ContenitorePartizioneBean> partizioni = tronco.getPartizioniBean();
                   partizione = partizioni.get(indice);
              }catch (Exception e) {
                   log.error("Errore nell'estrazione della Partizione "+indice);
                   e.printStackTrace();
              return TagSupport.SKIP_BODY;
         //All getter and setter functionsWhen I run the application I get this exception:
    jsp.error.beans.property.conversion
    looking deeper in the class code jenerated from the jsp, I noted that the problem refers to the third attribute of the tag <ct:partizione>.
    It seems It trys to set the attribute "partizione" with the value "tmpPartizione", but partizioni should be an output attribut non input. The varible tmpPartizione doesn't exist... the tag should create it.
    I realized I didn't get how I should create a tag with output parameters.
    Anyone can explane me it?
    Thanks.

    One suggestion: Take a closer look at the EL (expression language)
    It has an excellent syntax for accessing collections/maps
    ${contenitoreCentralineTronco[index]} would exactly what you want, without having to write a custom tag for it.
    If you REALLY want to do this as a custom tag, then you need to treat the input attribute as a String (the name of the variable you are going to create?) Right now your tag declares the attribute partizione as being of type ContenitorePartizioneBean which is probably the cause of the problem - you are passing it a String.
    Cheers,
    evnafets

  • Custom Tag Error with Weblogic SP9

              Hi
              I seem to be having a problem with a custom tag that I wrote. When I run the JSP
              on WLS (without a service pack), the generated java code uses the weblogic.utils.StringUtils
              class to interprete jsp expressions that are passed into the custom tag's attribute
              (on the JSP). The method called on this StringUtils class is valueOf(). This method
              in essence makes sure that the result of the expression is not null and then subsequently
              calls a toString() on the value. Note that if the value is null it simply returns
              an empty string.
              The problem is that when we go to service pack 9, this method is not called (StringUtils.valueOf()).
              Now the problem arises if first of all the result of the expression statement
              in the custom tag definintion (on the JSP) is null. Secondly, it will also error
              out when the setter method is called within the custom tag, if the object returned
              from the expression does not match the one that is expected by the tag... in our
              case a String.
              Here's a sample usage of the tag:
              <wescombop:selectTag
              selectName="buildingNumber"
              selectedItem="<%= buildingJB.getBuildingNumber()%>"
              trimSelectedItem="true"
              selectTagDataName="buildingNumberDataAttribute" />
              Note: buildingJB.getBuildingNumber() returns BigDecimal
              Here's a snipett of the line generated java:
              * Without the service pack
              comwestfieldgrp_wescom_bop_view_tag_SelectTag_1.setSelectedItem(weblogic.utils.StringUtils.valueOf(buildingJB.getBuildingNumber()));
              *With Service Pack 9
              comwestfieldgrp_wescom_bop_view_tag_SelectTag_1.setSelectedItem(buildingJB.getBuildingNumber());
              Note: The setSelectedItem() method expects a String object as a parameter, so
              the code with service pack 9 will result in a compilation error, since buildingJB.getBuildingNumber()
              returns a BigDecimal.
              Let me know if you need more explanation.
              Has anyone experience this problem before... Any help would be deeply appreciated.
              Thanks all.
              Niran
              

              Modify the <cewolf:param> tag.
              <cewolf:chart id="confchart" title="Reports" type="bar3d" yaxislabel="Time"> <cewolf:data>
              <cewolf:producer id="report"> <cewolf:param name="type" value="all" > </cewolf:param>
              </cewolf:producer> </cewolf:data> </cewolf:chart>
              "Balakrishnan" <[email protected]> wrote:
              >
              >We are using cewolf charting library in weblogic 7.0. The charting library
              >is implemented
              >as custom jsp tag library module.
              >
              >However, when the use the tag for displaying the chart, weblogic is producing
              >this compiler error.
              >
              >/reports/reportsView.jsp(108): no corresponding open tag for tag extension
              >close:
              >//[ null; Line: 108]
              >
              >Here's the corresponding source of the jsp file:
              >
              > <cewolf:chart id="confchart" title="Reports" type="bar3d" yaxislabel="Time">
              > <cewolf:data>
              > <cewolf:producer id="report">
              > <cewolf:param name="type" value="all" /> (<-- Error occurs
              >here.
              >Line no: 108)
              > </cewolf:producer>
              > </cewolf:data>
              > </cewolf:chart>
              >
              >I've also checked the corresponding tld file and it is in place.
              >
              >The same code without any modifications is working fine in tomcat. Can
              >you please
              >let me know what needs to be corrected to make this work?
              

  • Are XML Tags starting with '_' underscore valid with XML DB?

    Dear Experts,
    I am importing an XML data file into an XMLType field in a table, then extracting data within a tag. I am using Oracle Database version 10.2.0.2.0
    The data file I am using looks like:
    <?xml version="1.0" ?>
    <_PARENT>
    <_EXAMPLES>
    <_ITEM_NO>1</_ITEM_NO>
    <_PAX_NO>1</_PAX_NO>
    ....etc.
    If I then extract it using the command:
    SELECT extractValue(e.XML_INVOICE_DATA, '/_PARENT/_EXAMPLES/_ITEM_NO')      
    FROM XXIBO_XML_STAGE_TABLE      e
    I get the error:
    SQL Error: ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in: '/_PARENT/_EXAMPLES/_ITEM_NO'
    31011. 00000 - "XML parsing failed"
    *Cause:    XML parser returned an error while trying to parse the document.
    *Action:   Check if the document to be parsed is valid.
    If I take out the '_' underscores prefixing the XML tab names e.g:
    <?xml version="1.0" ?>
    <PARENT>
    <EXAMPLES>
    <ITEM_NO>1</ITEM_NO>
    <PAX_NO>1</PAX_NO>
    ....etc.
    and run:
    SELECT extractValue(e.XML_INVOICE_DATA, '/PARENT/EXAMPLES/ITEM_NO')
    FROM XXIBO_XML_STAGE_TABLE      e
    This query works, which leads me to my origional question - is it invalid to have XML tags that are named starting with an underscore, when manipulating it in an XMLType object?
    Many thanks for your time,
    Mark

    Ants - thanks very much for that, has been useful.
    Mark

  • How to use the JRun Custom tag library with Weblogic 5.1?

    Hello,
              is it possible to use the JRUN Tag Library with Bea Weblogic 5.1? We
              got an error message like:
              weblogic.servlet.jsp.JspException: (line -1): Error in tag library at:
              'jrun': T
              here is no setter method for property 'code', for Tag class
              'allaire.taglib.Serv
              letTag'
              Thank you for any info!
              Stefan
              

    Hi Joe,
    I don't know, however someone that follows the JSP newsgroup [1] may be
    able to help. Could you try your post there.
    Thanks,
    Bruce
    [1]
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.jsp
    Joe Kamenar wrote:
    >
    I have a question. I need to do a sort on news articles in our database, sorting
    by the date they were posted. I then want to take only the top 6 articles. We
    are using Weblogic 5.1. When I use the following statement, 6 articles are taken
    from the database, then sorted, which ends up leaving out the most recent articles:
    <cm:select contentHome="com.beasys.commerce.axiom.document.Document" query="<%=contentQuery%>"
    sortby = "creationDate DESC, headlineDate DESC" max="6" id="contentList" />
    I need to get ALL the articles for the sort, then just take the most recent 6.
    So, I know that I can use the following code and monitor the counter variable,
    "i". But, how do i do this to only display the top 6 items?
    <es:foreachinarray id="content" array="contentList" type="com.beasys.commerce.axiom.content.Content"
    counterId="i">
    <% myStr=content.getIdentifier(); %>
    <% if (i<6) {
    %>
    <div class="marginText">
    <cm:printproperty id="content" name="title" encode="html" />  
    <a href="<%=new String(news_display.jsp?id="+myStr)%">">more</a>
    </div>
    <% } %>
    </es:foreachinarray>
    However, when I run this, no results show up. What is the correct way to do this?
    - Joe</a>

  • C6 model seems to be defective with lot of problem...

    Dear NOKIA,
    Though you are the world leader in Mobile Telephony, the services to customers indicate NOKIA  seems the worst. As a user of C6 handset purchased at a high cost of Rs.12600 on March 11,  started facing problems right from day one as this was not supporting 3G enabled services especially browsing.Now I have surrendered the handset to Bangalore Jayanagar 3rd block NOKIA care centre and I am seeking full refund or replacement with another model. I do not want the defective and useless handset back at any cost. The care centre tells the handset has been sent to Delhi for testing purposes and will take 15-20 days to get back the handset. How a new handset can go so bad? What sort of quality check and systems there in NOKIA? Why such horrible services and treatment to customers at NOKIA care centres? Why they do not even reply and give updates on my claim for full refund of Rs.12600? Every time they tell 48 hours to resolve but only good for nothing auto replies only but no action worth the name of NOKIA. Clearly they are taking customers for granted under the banner 'world leader" and in reality they seem to be the world's worst. NOKIA at this rate may spoil their image if they do not immediately improve the quality of handsets and also the quality of customer services. Where as I was using Samsung, sony ericson handsets so long and there was no need to visit a service centre at all during the entire life of such handsets

    Have you went to Twitter's support site?

  • Problem with custom tag

    I have written a custom tag that I am having problems with. It works on some machines, but not on others. I have a page that uses many 'standard' tags. I have correctly set the URI etc, because all of my other tags work. However, on some machines, my custom tag gives me an error:
    attribute does not support request time values
    I'm assuming that I have the correct versions of standard.jar etc because all of the regular jstl 1.1 tags work. It is just my custom tag that throws an error.
    here is the .tld for my tag:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
         <tlib-version>1.1.2</tlib-version>
         <jsp-version>1.2</jsp-version>
         <short-name>My custom tag</short-name>
         <uri>http://my.custom/tags</uri>
         <tag>
              <name>breadcrumb</name>
              <tag-class>tag.BreadcrumbTag</tag-class>
              <body-content>JSP</body-content>
              <attribute>
                   <name>breadcrumbs</name>
                   <required>true</required>
                   <rtexprvalue>false</rtexprvalue>
                   <description>Pass in the list of Breadcrumbs containing the actual information
    about what tags need to be rendered on the page.</description>
              </attribute>
         </tag>
    </taglib>
    Any thoughts/help greatly appreciated...

    I encountered the same problem in our environment. I did the same thing as
              James. Simply re-initialize all variables in the do end tag.
              Also, with the nested tags you use you may also need to implement cloneable
              in the inner tag if the outer tag keeps references to all the inner tag
              instances.
              For instance if the outer tag kept a vector of references to the inner tag,
              then you would need to use clone() on the inner tag before adding it to the
              vector.
              "James Lynn" <[email protected]> wrote in message
              news:3af05d29$[email protected]..
              > > But
              > > with WL 6.0, the cell tag handler reuse the same instance each time the
              > cell tag
              > > is called and the member field is not reset
              >
              > I had the same problem. As a work around, I reinitialize everything in my
              > doEndTag() method and it works.
              >
              >
              > --
              > James Lynn - Lead Software Architect
              > Oakscape - Java Powered eBusiness Solutions <http://www.oakscape.com/>
              >
              >
              

  • For your reference: A real life AppleScript script regarding custom tags

    I'm working through a collection of photographs from iPhoto. One problem I have is that I have more than one set of the photographs and trying to eradicate duplicates and identify the true original images is rather difficult.
    One thing that can help is referring to the complete EXIF data from the image file. Unfortunately, Aperture doesn't give us the complete EXIF set, only a subset. In addition, Aperture doesn't allow us to see the File date/time; only the Image date/time.
    So I wrote this script. Before running the script, I batch renamed all of the images in my subject project using '<counter 4>—<Master Name>' to be sure that every image had a unique name. I then exported the masters from the subject project using '<Version Name>', the reason being that Aperture doesn't allow access to the file name via AppleScript. GraphicConverter will read the EXIF data from this exported set and the script will write most of the EXIF data back to the image in Aperture via custom tags.
    One caveat: Aperture is *slow*. It requires almost 4 seconds to write each custom tag. With 6000+ images in my subject project, this script will take a while to complete.
    The script:
    tell application "Aperture"
    activate
    tell project "untitled Project" of folder ""
    -- set theImages to every image version
    -- move through the images one by one, deleting and creating the appropriate
    -- custom tags from exif text obtained from exported versions via GraphicConverter.
    repeat with i from 1 to theImages's length
    tell theImages's item i
    -- tell image version id "++s5iIgRT1uKC8lrxd5bMg" -- test image
    delete (every custom tag whose name begins with "GC–")
    set exifdata to getEXIF(name) of me
    repeat with i from 1 to exifdata's length
    copy ("GC– " & exifdata's item i's first item) to tName
    copy (exifdata's item i's second item) to tValue
    make new custom tag with properties {name:tName, value:tValue}
    end repeat
    end tell
    end repeat
    end tell
    end tell
    return
    property exportedImagesFolder : alias "Bulbul:- exported from Aperture -:Canon IXUS 2:"
    property exifTagsToIgnore : {"Make", ¬
    "Model", ¬
    "Resolution unit", ¬
    "Y and C positioning", ¬
    "Exposure time", ¬
    "F number", ¬
    "Exif version", ¬
    "Meaning of each component", ¬
    "Shutter speed", ¬
    "Aperture", ¬
    "Exposure bias", ¬
    "Maximum lens aperture", ¬
    "Metering mode", ¬
    "Flash", ¬
    "Lens focal length", ¬
    "Unknown tag (1)", ¬
    "Owner Name", ¬
    "Color Space", ¬
    "Interoperability Index", ¬
    "Focal plane resolution unit", ¬
    "White balance", ¬
    "Resolution unit", ¬
    "Offset to JPEG SOI", ¬
    "Bytes of JPEG data"}
    to getEXIF(vName)
    copy alias ((exportedImagesFolder as string) & vName & ".jpg") to vFile
    tell application "GraphicConverter"
    copy (get file exif of vFile) to theEXIF
    end tell
    set AppleScript's text item delimiters to ","
    repeat with i from 1 to theEXIF's length
    set theEXIF's item i to ¬
    {text item 3 of theEXIF's item i, text from text item 4 to -1 of theEXIF's item i}
    end repeat
    set AppleScript's text item delimiters to ""
    set newEXIF to {}
    set fileDate to ""
    set imageDate to ""
    repeat with i from 1 to theEXIF's length
    copy theEXIF's item i's first item to tName
    if tName is not in exifTagsToIgnore and ¬
    tName does not start with "Unknown" then
    set end of newEXIF to theEXIF's item i
    if tName begins with "File date and time" then
    set fileDate to date (theEXIF's item i's second item)
    else if tName begins with "Date and time of original" then
    set imageDate to date (theEXIF's item i's second item)
    end if
    end if
    end repeat
    if fileDate is not "" and imageDate is not "" then
    if fileDate is less than (imageDate + 24 * 60 * 60) then
    set end of newEXIF to {"File & Image Same Date", "True"}
    else
    set end of newEXIF to {"File & Image Same Date", "False"}
    end if
    end if
    return newEXIF
    end getEXIF

    Correction 1:
    please uncomment the line near the top of the script that reads:
    -- set theImages to every image version
    Correction 2:
    writing the custom tags via AppleScript gets faster after Aperture's done it a few times.

  • Custom Tag doubt

    I am trying to use custom tags in my JSP. I have illustrated the simplified version of my problem below. Can anyone tell me how to go about doing it?
    Problem definition:
    I have a JSP in which I retrieve a hashtable from request object using request.getAttribute() method. I need to display the commodity details present in the Hashtable using custom tags.
    Input Hashtable contents(given in Key: Value format)
    "Commodity.length": "2"
    "Commodity[0].Weight": "34"
    "Commodity[1].Weight": "43"
    Please note that the above keys are not Java arrays, they are just strings
    Required JSP format
    <gan:array name = "Commodity">
    <table>
      <tr>
      <input type='text'
             name='<gan:getFullNameForItem name="Weight" />'
             value='<gan:getValueForItem name="Weight" />'   />
      </tr>
    </table>
    </gan:array>
    Desired HTML output:
    <table>
      <tr>
      <input type='text'
             name='Commodity[0].Weight'
             value='34'  />
      <input type='text'
             name='Commodity[1].Weight'
             value='43'  />
      </tr>
    </table>
    My question:
    How can I go about implementing the tags starting with "gan:"?
    Please note that there can be nested gan:array tags.

    Check out the following few resources for a quick reference which you may find useful:
    1)http://developer.java.sun.com/developer/technicalArticles/xml/WebAppDev3/
    2)http://java.sun.com/webservices/docs/ea1/tutorial/doc/JSPTags6.html#66793
    3)http://www-106.ibm.com/developerworks/library/j-taglib/
    Rommel Sharma.

  • All custom tags fail in JBoss3.2.3/Tomcat 5.0.16 (works in Tomcat 4.x)

    All pages that contain a custom tag fail with the following exception: HTTP Status 500 -
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:153)
         uploadQS1_jsp._jspx_meth_strutshtml_hidden_0(uploadQS1_jsp.java:225)
         uploadQS1_jsp._jspService(uploadQS1_jsp.java:100)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    note The full stack trace of the root cause is available in the Tomcat logs.Even a simple <struts-html: hidden ... /> tag causes this exception. As long as the page has no custom tags, it is served fine. The same web-app works as expected in JBoss3.2.3/Tomcat4.x.
    It almost looks as if Tomcat is looking in a object pool for a custom tag object reference and when it fails to find one, throws a null-pointer instead of instantiating a new one to work with. (This is pure speculation on my part).
    Did the TLD's req's change, or the setup for Tomcat? It's not my tags, even Struts tags fail. Any ideas why my tags aren't "resolving"?

    Has anyone had any luck getting this to run or run into this problem? It fails even with a fresh JBoss install using tomcat 5.0.16.

  • Confusing execution sequence in Custom tag

    I have a custom tag file with the name make_red.cfm that
    makes a text passed to it to the color red.
    The calling code looks like this:
    Main page<br>
    <cf_make_red result="myVar">
    Dont mess with the Zohan!!!
    </cf_make_red>
    back to the main page<br>
    The code in make_red.cfm looks something like this:
    <cfoutput>
    <hr>
    ThisTag.ExecutionMode is #ThisTag.ExecutionMode#<br>
    ThisTag.GeneratedContent is
    #ThisTag.GeneratedContent#<br>
    <hr>
    <cfif ThisTag.ExecutionMode IS "Start">
    Tag start<br>
    <cfif structkeyexists(attributes,"result")>
    <cfset evaluate("caller.#attributes.result# =
    ""CUSTOM_TAG_COMPLETED""")>
    </cfif>
    Tag processing<br>
    <cfelseif ThisTag.ExecutionMode IS "End">
    Tag processed<br>
    <cfset ThisTag.GeneratedContent = "<font
    color=""red"">"&ThisTag.GeneratedContent&"</font><br>">
    The tag ends here<br>
    </cfif>
    </cfoutput>
    The output looks like this:
    Main page
    ThisTag.ExecutionMode is start
    ThisTag.GeneratedContent is
    Tag start
    Tag processing
    Dont mess with the Zohan!!!
    ThisTag.ExecutionMode is end
    ThisTag.GeneratedContent is Dont mess with the Zohan!!!
    Tag processed
    The tag ends here
    back to main page
    My question is this:
    As per the sequence of the statements in the custom tag code,
    the text that appears in the beginning of tag file will be printed
    after which the processing for the end tag happens in the
    <cfif>. The text passed between the <cf_make_red> and
    </cf_make_red> i.e. "Dont mess with the Zohan!!!" appears to
    be printing before the end tag executes.
    Shouldnt the text passed between the <cf_make_red> and
    </cf_make_red> come after the end tag is processed? Because
    thats where i am making the text red.
    Could someone please explain this?

    Doing a little more experimentation, I discovered that pageContext is null in the constructor, but not null in the otherDoStartTagOperations() method (called by the doStartTag() method of the tag's class... it's something Forte forces you to do).
    Is this normal? I was under the impression that pageContext is supposed to be defined EVERYWHERE in any class that extends BodyTagSupport... including the class' own constructor.
    On a related topic, is there documentation somewhere as to what, exactly, Forte is doing behind the scenes when it's managing a taglib (how it keeps track of them, where it puts config files, how the entries it makes in them are different or extended from the normal layout, etc.)? At the moment, I suspect that half of the grief I'm having with writing taglibs is caused by Forte itself forcing me to do things in a roundabout way that bears little resemblance to the ways shown in different books on the topic (and in fact all but ensures that nearly every published example will fail and require major rewriting because of the way it forces tag classes to be structured), but I don't see any easy way to let Forte handle compiling the classes and testing them with its embedded Tomcat, but do the config file housekeeping myself I can be in control of it.

  • Applescript for custom tags

    hi there,
    has anyone had any experience with applescript and custom tags? i've gotten so far as to display the name of custom tags i've added, but i want to find a way to batch erase some i've added on several thousand pictures. any hints?
    j
    here's a snippet of the code i'm trying out. there must be some way to delete the tag, but i'm not fluent in applescript. the logic of the script has been copied off another one i've found somewhere on the net. the author is Steven Banick (http://banick.com)
    repeat with countOfPhotos from 1 to the count of selectedPhotos
    -- Get the photo's properties for the operation
    set currentPhoto to item countOfPhotos of selectedPhotos
    tell currentPhoto
    -- Reset the variables in the loop
    set the photoCustomTags to ""
    -- Retrieve the Photo Metadata
    set the photoCustomTags to the name of custom tags
    -- Scan the individual custom Tags from the assigned Custom tags
    repeat with currentcustomTag from 1 to count of photoCustomTags
    set currentcustomTag to item currentcustomTag of photoCustomTags
    -- ver quais são as custom tags e tentar apagá-las
    if currentcustomTag = CustomTagName1 then
    -- display dialog currentcustomTag
    delete the item currentcustomTag

    I'm not sure if you can delete tags, but you can certainly empty them:
    tell application "Aperture"
    set selectedImages to the selection
    repeat with i from 1 to number of items in selectedImages
    set this_item to item i of selectedImages
    try
    set value of custom tag "Image ID" of this_item to ""
    end try
    end repeat
    end tell
    Just change "Image ID" to the name of your custom tag, and make sure that you only use it on the correct images...
    Ian

  • Problem with custom tag attribute types

    Hi,
    I try to figure out how to pass an attribute to a custom tag that is of a type other than "String"?
    In my case, I should pass an attribute with a type of "java.util.ResourceBundle".
    My tag looks like this:
    <tt:cs sel="ab" ce="<%= java.util.ResourceBundle.getBundle("de", Application.getApp().getLocale())%>" />
    I always get the message that the attribute ce is empty.
    Isn't it possible to have attirbutes that are of an other type than string? How could I solve this problem?
    Thanks a lot!
    Regards Patrick

    In JSP 1.2, in the Tag Library Descriptor, you can specify a tagt attribute as
    <attribute>
       <name>attr1</name>
       <required>true|false|yes|no</required>
       <rtexprvalue>true|false|yes|no</rtexprvalue>
       <type>fully-qualified_type</type>
    </attribute> Notice the XML element <type>fully-qualified_type</type>
    Not sure if you can do this in JSP 1.1

Maybe you are looking for

  • PXE boot and video mode

    Hello all, I posted about this problem a while ago but now I have more information. 6.5 SP2 IR1. The problem: Booting from CD results in a video mode with far more lines and column than booting PXE. PXE is always 80x25, on many different hardware typ

  • When will Schoolsfirst federal credit union card be added?

    I Have a Master card ATM card from Schoolsfirst federal credit union and want to know if and when it will be added to Apple Pay. I would be nice to have a list of Banks Apple is currently working with or a sign up page for our banks.

  • Price conditions selection

    Hello, I just want to read some price conditions from SD. I see that there is FM RV_T681_SELECT_AND_GENERATE that geenrates (if needed) a dynamic standard program for data selection, I see in this generated program that some subroutines are for exter

  • Satellite L650-12P - Alternative driver for stereo mix

    Hi I wonder if someone could help me. I just purchsed this wonderfull toshiba laptop which I am genrally very satisfied with but just one thing I would like to see which is not present and that is a function for stereo mix because I would like to pla

  • How to get this skin effect on a black model?

    hello everyone!!! i was wondering if anyone knows how to get this final effect on a picture with a black model?