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

Similar Messages

  • 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>

  • How do you remove those yellow tags following the cursor all the time?

    You know those yellow tags with information about the words your cursor is on.
    Some times they cover the things you are reading and get really annoying.
    Any input?

    I thought there was something to remove all filters right?
    Not unless you applied the Filters as Smart Filters or duplicated the Layer prior to Filtering.
    That’s why working non-destructively is so highly advised.
    What kind and number of Filters are you talking about anyway?
    Could you post a full-res segment of the image?

  • How do you programmatically select TabBar VC within the MORE section?

    Can anyone help me figure out how to programmatically select a view controller that is beyond the main 4 tabs in a TabBarController? Usually you can use:
    tabBarController.selectedIndex = NSUInteger;
    but once you have more than 5 Tabs, you get the "More" tab as #5 and the others go into their own TableView. If you try to change selectedIndex to any # > 4 you get an NSRange error.
    I have tried the following workaround unsuccessfully:
    UIViewController *desiredVC = [[tabBarController.viewControllers] objectAtIndex:5];
    tabBarController.selectedViewController = desiredVC;
    where tabBarController is a UITabBarController;
    Still no go. Any help would be greatly appreciated.

    I came up with this solution:
    [self.tabBarController.moreNavigationController popToRootViewControllerAnimated:NO];
    [self.tabBarController setSelectedIndex:4];
    [self performSelector:@selector(selectMore:) withObject:newViewController afterDelay:0.1f];
    - (void) selectMore:(UIViewController *)controller
    [self.tabBarController.moreNavigationController pushViewController:controller animated:NO];
    It's does the job, but the "More..." list is shortly displayed before the newViewController is displayed.
    Is there another way to handle this problem?

  • 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 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 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 to clear the custom tags in the phonebook?

    some time create a label on the agenda of the phone contacts, your name is "profile", but now I want to delete because it is no longer useful, but not how to delete this custom tag.
    I want to know how can i delete this custom tag?

    Hi,
    We need to use FREE statement.
    please do this way:
    For
    form exit_program .
      call method cc1->free.
      call method cc2->free.
      call method cc3->free.
      call method cc4->free.
      call method cl_gui_cfw=>flush.
      if sy-subrc <> 0.
        call function 'POPUP_TO_INFORM'
          exporting
            titel = lv_repid
            txt1  = 'Error in Flush'(500)
            txt2  = sy-subrc.
      endif.
    endform.                    " exit_program
    module user_command_0100 input.
      case sy-ucomm.
        when 'BACK'.
          perform exit_program.
          set screen '0'.
        when 'EXIT' or 'CANC'.
          perform exit_program.
          leave program.
      endcase.
    endmodule.                 " USER_COMMAND_0100  INPUT
    thanx.

  • 5.1 SP10 How do you programmatically make a datasource from a dynamically created Pool?

    How do you programmatically make a data source from a dynamically created Pool?
    I can make the Pool OK but can not find any classes the return a datasource
    given a JDBC Pool.
    Thanks in advance

    Hi John,
    weblogic 5.1 doesn't have API allowing dynamic creation
    of datasources. 6.1 does.
    Regards,
    Slava Imeshev
    How do you programmatically make a data source from a dynamically createdPool?
    >
    I can make the Pool OK but can not find any classes the return adatasource
    given a JDBC Pool.
    Thanks in advance

  • HT4946 How can you reset a lost password in the itunes backup and restore? Not the apple id and password.

    How do you reset a lost password in the backup and restore section of ITUNES?

    Contact the iTunes Store customer support department through the form at the bottom of their web page and explain the problem to them.

  • How do you reset apple ID password when the safety email address is no longer active?

    How do you resent Apple ID password when the safety email address is no longer active?

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • How can you get an applet to obey the CSS z-index attribute?

    How can you get an applet to obey the CSS z-index attribute?
    I have a DHMTL page with a panel that I want to slide back and forth. But another part of the requirement is to have the panel look like it is sliding under another panel.
    The problem is that an applet is on the panel that slides. When the sliding panel move under the stationary panel the applet does not go under the stationary panel, but the reset of the sliding panel does render looking like it is sliding under.
    See below.
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~           #############***************           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #############^**************           ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    ~ has a z-index of 1
    # and * have a z-index 2
    # shows above ~ and below ^
    ^ has a z-index of 3What I am getting with the applet on the panel with a z-index of 2 is the following
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~           #############***************           ^ -
    - ~           #            ^             *           ^ -
    - ~           #  @@@@@@@@@@@@@@@@@@@@    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @                  @    *           ^ -
    - ~           #  @@@@@@@@@@@@@@@@@@@@    *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #            ^             *           ^ -
    - ~           #############^**************           ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~                      ~ ^                         ^ -
    - ~~~~~~~~~~~~~~~~~~~~~~~~ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -
    --------------------------------------------------------Where @ is the applet. Notice how the applet is on top of the ^ but the panel under it, ^, is under like it should be. All the panels are 1x1 tables with a border. So how can I get the applet on the drawing shown with # and * to follow the rendering of the z-index of 2?

    Hi,
    I have the same problem, and don't know how to solve it, So, i had tried to put my applet in a div tag wih z-index=0, but it still hide my other Dhtml divs with bigger Z-index (z-index =1000)
    Have you any idea to solve this.
    Thanks
    Hakim

  • How do you get PSE12 to stop opening the keyword menu at the top of the screen

    How do you get PSE12 to stop opening the keyword menu at the top of the screen when you want to isolate tagged photos?????????????
    it takes up 1/4 of the screen. This is so stupid. PSE10 had it done right, just a click box and boom all the photos tagged would be there!
    This makes NO sense the way it is done now.
    How do you turn it off, please . I am ready to send this back to amazon and go back to 10.

    Ceslaus1234 wrote:
    I'm sorry but what difference does it make if I post here or in Elements Village?
    None,
    But giving the link is easier for me than typing a new answer...
    Sorry for being so lazy .

Maybe you are looking for