How do you reference a custom tag?

I just wrote a set of custom tags (for the first time). I have a strange problem:
I need to call some tag methods while inside of the tag like this:
          <JSP:SearchResult id="result">
               <%= (result.getResultNumber()+" "+result.getResultField("summary") %>
          </JSP:SearchResult>The problem comes when i execute this code, i get this error:
org.apache.jasper.JasperException: /result.jsp(21,2) Unable to find setter method for attribute: id
any sugestions?
Here is the relevant part of my TDL:
<tag>
     <name>SearchResult</name>
     <tagclass>com.bsci.app.searchengine.SearchResultTag</tagclass>
     <bodycontent>tagdependent</bodycontent>
     <info>
          returns seach results
     </info>
     <attribute>
          <name>id</name>
          <required>true</required>
          <rtexprvalue>true</rtexprvalue>
     </attribute>
     </tag>

You are right.
Maybe this is a good time to leave work.
One last question then.
It seems like i cant exectute the following code no matter what value i use in the TDL in each tag's <bodycontent> fields.
setting bodycontent to JSP does not work for simpleTags, and this isnt scriptless/empty either.
It seems to me like the only correct solution would be to write to "stdout" in the java code of the tags, but that limits me in what i would like to output which is a bummer.
<JSP:SearchContainer indexDir="C:/temp2" query="<%= query %>" startPage="0" resultsPerPage="5">
     <JSP:SearchHeader id="header">
          <%= header.header %>
     </JSP:SearchHeader>
     <JSP:SearchResult id="result">
          <%= (result.getResultNumber()+" "+result.getResultField("summary") %>
     </JSP:SearchResult>
     <JSP:SearchFooter id="footer">
          <%= header.nextPage %>
     </JSP:SearchFooter>
</JSP:SearchContainer>

Similar Messages

  • How do you programmatically register custom tags through the adminapi?

    Hello,
    I am not able to find much documentation out on the net on how to write codes to programmatically register custom tags through the adminapi (extensions.cfc). The only examples I have been seeing involve setting up datasources. Any advice you can provide is appreciated. Thanks.
    Best regards,
    C. Lee

    Short answer:
    The problem is that the login method is a bit goofy in that it requires the password first and the username second. Assuming you are using a valid password (and not the string "password" you are showing), reversing them should solve your problem.
    Long answer:
    As background for those interested, in order to call any method in any of the Admin API CFCs, one does have to log in programmatically, providing a valid CF Admin password, or password/username combination if you have enabled multiple user logins for the CF Admin. (Multiple user logins in the Admin is an optional feature since CF 8.)
    If one does not setup multiple user names, then you only need to pass a password to the login method (just as on the login page of the CF Admin). Technically, the default username in that case is "admin", and you can specify it if you want to, but again it has to be password then username, on this login method. (The Admin API was added in CF 7, before the multiple usernames feature was added, so it looks like they just added it as a new argument.)
    You can learn more about multiple user logins in the CF Admin (and an option to change or remove the default "admin" username) an Adobe DevCenter article linked to from http://www.carehart.org/articles/#2009_1.
    Note finally that the username/password field values are case-sensitive, even on Windows, and the default username really is "admin" not "Admin".
    This discussion of needing to login is documented on the page that Adam pointed to (see the "using" and "examples" sections of the page). There's even a comment from someone pointing out the need to put them in password/username order (because it's not mentioned in the docs). I also just added a comment there about the case sensitivity, either of which could bite someone. Let's hope they update the docs in the next release to clarify both these points.
    /charlie

  • How do you reference a custom command in XAML?

    This is a ridiculously easy thing to do in WPF, but I can't find the analog in Metro. I have several buttons on my frame window. One of the buttons is a toggle to change the view from thumbnails to details.  The commands are global to the application
    and live in a class called 'GlobalCommands'.  Note that the Global Commands are consumed by other classes so there's no way that creating an instance of a command in XAML is going to work.  In WPF, the button would look like this:
    <AppBarButton Command="{x:Static local:GlobalCommands.ChangeView}"
    CommandParameter="Thumbnail"
    Label="Switch View"/>
    However, in Metro, there's no x:Static, no TypeConverters, and IValueConverters only work on bindings, so I'm stumped.  How do you place buttons in applications that have very specific (that is, not derived from the view model) commands?

    I am afraid you cannot bind to static properties in Windows Store Apps. It is simply not supported.
    You could create a proxy class that exposes the static command property and bind to this property of an instance of the proxy object:
    http://stackoverflow.com/questions/14186175/bind-to-a-static-field-in-windows-8-xaml
    http://stackoverflow.com/questions/4708711/how-can-i-use-the-xstatic-extension-for-phone7-silverlight-apps
    You will of course have to create an instance of the proxy object. There is no way around this.
    Please remember to mark helpful posts as answer to close your threads and then start a new thread if you have a new question.

  • How to create a new custom tag in JSF 1.2

    Hi there,
    In JSF 1.2, all the classes (CommandButtonTag, CommandLinkTag, DataTableTag,...) in package com.sun.faces.taglib.html_basic are defined as final class. In JSF 1.1, we can create a custom tag that extends the tag in JSF taglib; it save us lots of time.
    Could anybody know how to create a new custom tag in JSF 1.2?
    Many thanks,
    Emily

    If I recall, it was done because how tags were to be handled in 1.2 was very different from 1.1 and it was felt that developers shouldn't rely on implementation specific classes (unless they were SPI) for several other reasons (application portability being the big one here).
    If it's felt that this was the wrong decision, please feel free to log an issue [1] against the RI (to date, no one has).
    As to the 'borked' dependency URLs, please log an issue [1] if you find these. We have nightly builds going that work from a clean workspace and checking today's result, it seems ok.
    [1] https://javaserverfaces.dev.java.net/issues

  • How do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the onli

    how do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the online photoshop, and I really want to create my own customized url and post photos to my gallery and share them with the world, family, and friends, but i need help because i can't figure how to do any of this, would really appreciate feedback and assistance, thanks, - claire conlon

    To add to sig's reply, "calibrating" does not calibrate Lithiu-Ion batteries, it calibrates the charge reporting circuitry.  If you look at the effect of deep discharging Lithium-Ion batteries in the data from the independent test group, Battery University, you will see that doing so shortens the life of the battery significantly. It looks like an optimum balance between use and life is at a discharge level of 50%.

  • How do you add a voice tag to a contact

    how do you add a voice tag to a contact i phone5

    You don't need to add any sort of tags to call by voice. It's built into the system. Go to Settings>General>Siri and make sure it's set to On.
    To use Siri, press and hold the Home button. When the microphone icon pops up and there is a beep, say, "Call <name from your contacts>"
    Consult the manual for more information on Siri.

  • How do you add a custom label to dates in contacts.....

    How do you add a custom label to dates in contacts- I have multiple birthdays in contact group and want to change label through customise to add additional birthday- unless another way to add second birthday to contacts and identify each one?????? or way to link contacts with same address phone number etc but id birthdays?????

    You have some contacts with more than one birthday?
    To add a custom label for a date, select Edit for an existing contact. Select Add Field. Select Date. Scroll up with the Info window above the date selection and select Other for the new date selection. Select Add Custom Label and then select this label for the new date field for the contact.
    As far as linking dates with multiple contacts, the answer is no to that.

  • How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go??? Last week I was on holiday in HK,  and  from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!  Why THIS WEEK, can't I use my HS

    Apple_ID_card_declined_for_this_country
    How can you expect the customer to have a LOCAL/COUNTRY Based Credit Card every where we go???
    Last week I was on holiday in HK,
    and
    from my Hotel I was able to use m VN Credit Card with my Apple ID and purchase online!
    Why THIS WEEK, can't I use my HSBC Platinum Credit Card from Vietnam,
    for my Singapore Apple ID account ,
    while working here in Vietnam???

    Unfortunately, this is a problem that is driven by the DRM Dictatorship.  Despite the proliferation of mobile devices and the fact that there are many of us who do a lot of international travel, content providers don't want you to have access to their products outside of your homeland.  The Balkanized mentality of the DRM Dictatorship is way out of touch with the modern world.
    At least Apple, to its credit, allows you to use your accounts outside of your homeland as long as you have the proper credentials for them.  Most other services use the more Draconian geolocation filtering which does require you to be physically present in your homeland.  For the most part, you are not allowed to leave home if you want access to your favorite entertainment!

  • How do you reference a Formular Object on a Crystal Report using Java

    Hi all,
    I am trying to reference an object on my report which contains a Formula field.
    I have read the following 2 threads, but they refer to textObjects:
    [How do you reference a textObject on a Crystal report using Java|Re: How do you reference a textObject on a Crystal report using Java?]
    [Changing the text of ITextObject programatically|Re: Changing the text of ITextObject programatically]
    But I cannot even get those to work. I can reference a object which refers to a database field but as soon as I try
    reference a textObject or reportObject I just get a NULL variable.
    Below is the code I am useing
    IReportObject dbField = reportClientDocument.getReportDefController().findObjectByName("BOB1");
    IReportObject textBob = reportClientDocument.getReportDefController().findObjectByName("BOB2");
    "BOB1" is the name of my DB field Object, and "BOB2" can be a Text box or a Formula item and I just get nothing.
    I have just tested it with a FieldHeadingObject and that returns a valid object, so clearly I am going about this the wrong way
    for objects I place on the reports which are not driven by the database items.
    Ultimately what I want to do is reference an object in the Report Footer which will contain the RecordCount of the number of
    records contained in the report, which I am them going to use to determine if the report holds data,
    if it does I will print it, else ignore it and move on the the next report. I am doing this so that I can at an extra filter to split
    a report up into groups and produce a sinlge PDF for each group instead of one massive PDF containing all the groups.
    So if someone has a solution to any of my problems I would be very greatful, and I dont mind being told Im an idiot and should
    rather do it another way, as long as you supply that other way
    Thanks for the help
    Darren
    Edited by: Darren Jackson on Dec 16, 2009 7:29 PM
    Forgot to add am using CR4Ev2 SP3

    Right I have made some headway.
    Firstly, Im an idiot. I was making changes and setting up test fields on my report, but then when running the app, I had it looking at
    the backup report, which would explain why all the new textbox fields were not being found.
    The stupiditity did force me to delve deep and work out a fair bit of how the reports work, so cant complain too much. BUT, I am still
    not able to return values of Formula fields and formulas extra. Could someone tell me if this is even possible. I get retrieve the formula field
    name, and properties but not its value once the report has been populated. Am I wasting my time?
    Well I will continue dismantling my reports till I find the answer, or someone points me in the right direction.
    If any one is interested this is the code I used to drill down to my text boxes:
    IReportObject recCount = reportClientDocument.getReportDefController().findObjectByName("TB1");
    ITextObject obj_RecCount = (ITextObject) recCount;
    System.out.println(obj_RecCount.getName());
    Paragraphs objP = obj_RecCount.getParagraphs();
    for (int i = 0; i < objP.size(); i++){
         ParagraphElements pE = objP.getParagraph(i).getParagraphElements();
         for (int j = 0;j < pE.size(); j++){
              IParagraphTextElement pEE = (ParagraphTextElement) pE.getParagraphElement(j);
              System.out.println(pEE.getText());
    Cheers

  • How do you produce both Customs Export & Import documentation in an STO?

    Hello All -
    How do you produce both Customs Export & Import documentation in an STO scenario? For instance, if a company would like to create a STO in SAP to move materials from one plant to another and would like to produce both the Export & Import paperwork in GTS, what documents would be needed in R/3 to make this possible?
    Would the following be needed, or is there some other way?
    - STO
    - Outbound Delivery & F8 Invoice to generate the Customs Shipment in GTS for the Export documentation
    - Inbound Delivery to generate the Customs Declaration in GTS for the Import documentation

    Thanks Sameer -
    Yes, for the Import documentation, I think we will be declaring prior to Goods Receipt, so we will first use the Inbound delivery, and then the GR document later on once the materials have been received. (I believe you and I were talking about some of this in another thread actually.) Thank you for confirming this.
    As for the Note, I have also seen this - but thought that this was to more or less give visibility to the sending plant up-front at STO of what export licenses might be needed. (According to the note, currently they would only be able to check if licenses were needed at the outbound delivery, and not on the PO)
    Per the note: "Given a Stock Transport Purchase Order scenario: Plant A in Germany issues a STO PO against vendor plant US10 in the US. GTS looks at the PO in terms of importing from the US (departure country) coming into Plant A in Germany and performs compliance checks. Meanwhile, exporting plant US10 only has visibility at outbound delivery creation to see if am Export License is needed. Exporting plant US10 may want to know if they need a license to the country of destination, in this case Germany, at STO PO creation."
    However with the proper country-level export/import activation of the legal regulations, I believe that you can still have the STO check export-related licenses even though it is mapped to GTS as IMPORD. I have done some testing on this and it appears to work (you just need to ensure that you are activating the relevant countries for export/import properly in the legal regulation, and you can have both export & import documents check the same legal regulation and deliver the correct license determination). I was just wondering if you had any experience with this that was contrary to what I have found, or if there is something you think I am missing..
    Thanks

  • How do you invoke the customer satisfaction guarantee on HP photo paper?

    OK, perhaps this is a silly question, but I can't find anything on the HP site or forums that addresses this.  How does one invoke the customer satisfaction guarantee on HP photo paper?  The instructions in the box (and website) tell me to call HP customer care.  I did that, and spent 25 minutes having a technician tell me it was a problem with my printer (HP Photosmart C6180), my printer was out of warranty, and I would need to exchange it and pay a fee to upgrade to a newer model with a 1 year warranty.  She seemed not to care or know anything about the customer satisfaction guarantee for paper; she was only trained to tell you the problem was most surely with the printer.
    In case anyone here can help, I have the HP Premium Plus 4x6 glossy paper, and whenever I use it the picture quality is extremely poor--not at all what I expected from the paper.  It appears the ink has "balled" up, and it looks very splotchy.  I am setting the paper type appropriately when printing, and I use original HP 02 inks.  When I use other photo paper to print photos, they come out perfectly.  Having wasted quite a bit of ink and paper trying different things, I'm just not satisfied and would like to discuss this further with HP.

    The only numbers available (I've just reached over and picked up a box of premium plus 4X6 from my supply shelves to look) are on the bottom end back of the box.  They are directly under their corresponding bar codes; the Product Number (for 4X6 premium plus it's Q1978AC) and what looks like the SKU (on my box, ignoring the small 8 and 5 at either end, that reads 0873654213).  Additionally, there is a "Lot Number" (printed in white dot printing on a gray box background) directly above the product number (which should have "US" in the upper left, and a string below that...mine is US00204805).  There is no number on the back of the paper, just the HP logo and a string of 6 small dots under it in a diagonal pattern spread across it.
    So, I expect they want all three; Product Number, SKU, and Lot Number...the last likely so that that can pull a lot sample from their QA inventory and attempt to reproduce the issue back at the lab.
    Hope that helps.
    H
    Message Edited by HLansing on 08-14-2009 06:15 AM

  • How do you specify a "custom data retrieval program" for a query ?

    I may have to rebuild an old SQ01 query in ECC 5.0 to get rid of some hyphens in structure field names.
    The query gets its data from a custom retrieval program.
    How do I specify the custom retrieval program when (and if) I redo the query?
    Thanks
    Dave

    When you go to SQ02, ente the infoset name and click the change button,  then on the next screen,  click Go To,  Global Properties,  notice here is the same dialog when you create the infoset, notice the radibuttons, notice the one for   data retreival by program,  I think this is what you are looking for, but as you can see here you will not be able to change it.  I think you may have to re-create the infoset as well if you want to change this.
    Regards,
    Rich Heilman

  • How do you create a custom Photograph folder

    If you have a webcam configured to PhotoBooth then you have a 'PhotoBooth' folder which is in the file system (under the current users 'Pictures' folder) and is visible in iMovie.
    Now if I create a folder on the same level as the 'PhotoBooth' folder (ie again under the active users Pictures folder) then iMovie cannot see it but if I create a folder within the 'PhotoBooth' folder then iMovie can see it... I hope this makes sense.
    So my question is, how do you create a folder in the file system which is visible from iMovie? or how do you add custom folders to the Photographs window in iMovie?
    Sadie.

    If you have a webcam configured to PhotoBooth then you have a 'PhotoBooth' folder which is in the file system (under the current users 'Pictures' folder) and is visible in iMovie.
    Now if I create a folder on the same level as the 'PhotoBooth' folder (ie again under the active users Pictures folder) then iMovie cannot see it but if I create a folder within the 'PhotoBooth' folder then iMovie can see it... I hope this makes sense.
    So my question is, how do you create a folder in the file system which is visible from iMovie? or how do you add custom folders to the Photographs window in iMovie?
    Sadie.

  • How do you make a customized template?? When I customize an original template it does not apply it to the whole document! How do you apply style changes permanently to your document???

    When one customize text styles or spacing between paragraphs. How do you apply settings permanently to a document???
    Should you create a new template???

    Happily, when you edit a document created by a given template, the changes aren't stored in the template.
    If you want to get a template embedding your changes, you need to use :
    File > Save as Template
    then use the newly created custom template as starting point.
    Yvan KOENIG (VALLAURIS, France) dimanche 22 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • How do you Confirm a Facebook tag?

    Hey all,
    Just wondering how you "confirm" a facebook tag. I'm wonder as I'm trying to not have to go back and manually input an email address for every person i've already got.
    Thanks

    Here is a workflow I found to work for me:
    STEP 1 - Use FACES to name someone in iPhoto.
    STEP 2 - Publish the photo/album to facebook.
    STEP 3 - In facebook look at your album. You may notice that the person is tagged in facebook, but the name is not linked. This could be for two reasons. 1) The person is not one of your facebook friends; 2) you need to "link" the relationship between facebook and iPhoto. If the person is, in fact, one of your facebook friends but their name is not "linked" (highlighted in blue -- linked to their profile page) within facebook you should re-tag them in facebook and then delete the original link. Now, go back to your iPhoto album (the facebook album) and click the icon to the right of the album name to "refresh" or "resync" it. It will pull the NEW tag from facebook that you created and understand that it's the same person/name and it will finally start tagging that person correctly from that point forward.
    STEP 4 - If you created NEW tags for people in facebook you may notice that they appear in your iPhoto ablums with the NAME of the person and a "f" blue facebook icon next to it. Simply click the "f" facebook icon to accept this tag as being correct. This will also link iPhoto's database listing for that person with facebook's so you should have correct links moving forward.

Maybe you are looking for