Custom Tag Feature

All:
I have ran into an issue that seems to need some
extensibility.
I have created a custom tag that my users are allowed to
enter when editing HTML documents. I have added my custom tag to
the tag library and also added it to the validator so there would
be no issues when validating. (it does not matter that it is not
valid HTML)
So my problem is this:
When users enter the custom tag into their document i would
like the inner text to change color when viewing in design view.
(for example: the way an H1 tag would render)
some notes:
- Users are only editing independent HTML files and the files
are in various directories and are not associated with any web
sites. We use DW as a stand alone HTML editor.
- I do not want any user interaction. Meaning i do not want
the user to have to enter any CSS info or attach/create any
Design-Time CSS.
Some thoughts on how I would like to accomplish this:
- Possibly inject some CSS code when the file is being
opened. So the CSS is already in place when the file is open in DW.
I am not sure how or where to put any code to intercept the opening
of the file.
- Attach some kind of default CSS or Design-Time CSS to the
DW application, so everytime a file is opened in DW this CSS is
somehow associated with it.
Anyone have any ideas or thoughts?
Thanks,
kscap

quote:
Originally posted by:
Newsgroup User
You can do this with a translator, see the extending
dreamweaver docs for
details.
Kevin Marshall
WebXeL.com Ltd
http://www.webxel.com
ASP.NET Dreamweaver Extensions
http://www.webxel-dw.co.uk
"kscap" <[email protected]> wrote in message
news:erfi1t$43f$[email protected]..
> All:
>
> I have ran into an issue that seems to need some
extensibility.
>
> I have created a custom tag that my users are allowed to
enter when
> editing
> HTML documents. I have added my custom tag to the tag
library and also
> added it
> to the validator so there would be no issues when
validating. (it does not
> matter that it is not valid HTML)
>
> So my problem is this:
> When users enter the custom tag into their document i
would like the inner
> text to change color when viewing in design view. (for
example: the way an
> H1
> tag would render)
>
> some notes:
> - Users are only editing independent HTML files and the
files are in
> various
> directories and are not associated with any web sites.
We use DW as a
> stand
> alone HTML editor.
> - I do not want any user interaction. Meaning i do not
want the user to
> have
> to enter any CSS info or attach/create any Design-Time
CSS.
>
> Some thoughts on how I would like to accomplish this:
> - Possibly inject some CSS code when the file is being
opened. So the CSS
> is
> already in place when the file is open in DW. I am not
sure how or where
> to put
> any code to intercept the opening of the file.
> - Attach some kind of default CSS or Design-Time CSS to
the DW
> application, so
> everytime a file is opened in DW this CSS is somehow
associated with it.
>
> Anyone have any ideas or thoughts?
>
> Thanks,
> kscap
>
thanks. i will take a look in the docs, in the meantime is
this something that will transparent to the user? I can't have the
user add any info or attributes to the tag itself.
kscap

Similar Messages

  • How to prepare Custom tag with scope as  session  like Struts tag

    Hi
    All Struts tags having the feature of Automatic Scoping.
    Automatic Scoping: Struts tags check all contexts (namely page, request, session, application) and use the first instance found. Developers do not have to explicitly "retrieve" objects from a particular scope. They may, however, specify a context.
    same as like struts tag I want to preapre 'select custom tag'.which will retrieve its previous selected value automatically and display.And one important thing is I dont want to set the selected value of custom tag in session expicitly.I mean the custom tag it self should take care to set the session vale and retrieve the sesion value and display like Struts tag . For struts select tag we wont set any selected value in session though it will retrieve the previous value and display when scope of form = session
    regards
    jagan

    Hi
    All Struts tags having the feature of Automatic Scoping.
    Automatic Scoping: Struts tags check all contexts (namely page, request, session, application) and use the first instance found. Developers do not have to explicitly "retrieve" objects from a particular scope. They may, however, specify a context.
    same as like struts tag I want to preapre 'select custom tag'.which will retrieve its previous selected value automatically and display.And one important thing is I dont want to set the selected value of custom tag in session expicitly.I mean the custom tag it self should take care to set the session vale and retrieve the sesion value and display like Struts tag . For struts select tag we wont set any selected value in session though it will retrieve the previous value and display when scope of form = session
    regards
    jagan

  • Add customized tags on shared review comments

    Hi,
    We have been using shared review to do our document review heavily. Recently I got a request from our stakeholder to add customized tags so we can assign comments in different categories.
    Is it doable with some customization effort? I did some research online and found out Acrobat XI supports customization Wizard and for earlier version (we are on Pro 9), you can do customization using JavaScript, but it's not clear to me if these customization efforts can be applied on shared review PDF, or it's just on regular PDF.
    Does anyone have experience on Acrobat customization? Any thought or information will be appreciated.
    Thanks,
    -Yunju

    Hi Ajlan,
    Thanks for the answer. I also found out about the customization wizard later. Now I'm researching how to use the wizard and deploy the customization feature we desire.
    Here are the things we want to do:
    -  Creating customized menu so we can assign comments to different categories, something like set the comment status
    -  Modify the workflow. Instead of asking reviewer to "connect" or "cancel" when they first open the PDF, we can to only show "connect"
    I also have couple of questions about the wizard:
    1. Are the features I describe above can be done through wizard?
    2. If we deploy the changes using Acrobat 9 + wizard, will users with all version Acrobat/Reader see the same end result and preform regular shared review operations without problem?
    Thanks for the answer.
    -Yunju

  • Design view for jsp custom tags.

    when we drag-and-drop custom tag control in the source of jsp page, when we switch to the design view of jsp we should be able to view controls as desired.
    Observation: 1) Eclipse 3.2 doesn't have design view for jsp pages.
    2) which software uses the design view. we need to extend eclipse core framework and we do not find any technical approach document to proceed further on this.
    3) RAD 6.0 we can see a JSP in design view.
    I'm searching for any technical approach document to create plugin that can intercept the custom tags and provide a design view.
    Will any one suggest the plugin for that.

    Jeff,
    I have checked with engineering and found that JSP Design View support on
    Linux is a planned feature for the next release. I don't think we will have
    this feature as part of a Service Pack for 8.1
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "Jeff Cassanvoa" <[email protected]> wrote in message
    news:3f4df04e$[email protected]..
    >
    Raj,
    Thanks for the information!! Any timeframe when it might be supportedon Linux
    Thanks,
    Jeff
    "Raj Alagumalai" <[email protected]> wrote:
    Jess,
    Unfortunately, the JSP design view is currently not supported on Linux.
    Workshop does allow to do remote development where the IDE is running
    on a
    Windows machine and connects to a server running on Linux/Solaris.
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "Jeff Cassanova" <[email protected]> wrote in message
    news:[email protected]..
    Does anybody else who is running the Linux version of Workshop 8.1have
    troubling
    getting the Design View of JSP files to come up. All I see is thesource,
    with
    no tabs at the bottom to switch to/from the Design View. When I bootover
    to
    Windows and run 8.1 Workshop, I see both tabs and I am able to useboth
    views.
    Is it something I have set in Preferences somewhere that disablesthe
    Design
    View ???
    Thanks,
    Jeff

  • Custom Tag not evaluating expression in attribute

    I have a custom tag that needs to take dynamic values in the attributes, but I can't seem to get the values "interpreted" correctly. I have the <rtexprvalue> tag set to "true" in my .tld file, which I thought was the only thing that was needed in order to accomplish what I am trying to do. However, that does not seem to be the case.
    I am using WebLogic (8.1.4) and their <netui> tags, along with JSTL tags (1.0).
    An example of what my code looks like is the following:
    <test:myTag id="1" idx="<netui:content value='{container.index}' />">
        <netui:select ... />
    </test:myTag>and
    <c:set var="myIdx" value="<netui:content value='{container.index}' />" />
    <test:myTag id="1" idx="<c:out value='${myIdx}' />">
        <netui:select ... />
    </test:myTag>Neither of the above approaches has worked. In my code for my Tag.java file, I get the literal string values of <netui:content value='{container.index}' /> and <c:out value='${myIdx}' />, respectively, in my idx property.
    Can someone give me any hints as to what I may be doing wrong?
    Thanks.

    Shouldnt that be
    <netui:content value='${container.index}' />Actually, weblogic does not use the '$' prefix before
    their expressions. Fine. Which in turn means weblogic has some custom expression evaluator.
    Note weblogic 8.1
    as a container doesnt implicitly supportexpressions
    and you have to build in that feature into yourtag
    library.Are you referring to the 'isELIgnored' attribute when
    you mentioned the above statement? If not, can you
    explain what you meant by "build that feature into
    your tag library"?
    It's like this - expression language is supported by default in all containers that implement the j2ee 1.4 spec (servlet 2.4/jsp 2.0). Additionally you should also declare your web application to adhere to the 2.4 standards (through the schema definition in web.xml). In applications that refer to the 2.3 dtd but are run on a 2.4 compliant container you can set the 'isELIgnored' attribute to false and use EL. This works because your container anyways supports it.
    If your container doesnt provide support for EL (outside the jstl tags) as is the case with weblogic 8.1, then you can still use expressions by using something like the [url http://jakarta.apache.org/commons/el/]apache common evaluator  package. The difference being that you will have to call the evaluator classes to evaluate the attribute.
    Are there any alternatives that I could use to
    accomplish what I am trying to do?Did the above answer your question?
    ram.

  • Custom tag attribute case insensitive??

    We ran in to an interesting "feature" of custom tags: The attributes in the
              tags seem to be case insensitive.
              For example, if you play with the "tagext/quote" example provided with the
              WebLogic server installation, you can change the line in showcode.jsp to be
              like:
              <quote:code quoteColor="blue" COMMENTCOLOR="purple"
              defaultFont="face=Helvetica color=gray">
              and the generated java servlet code will still call the "setCommentColor()"
              method in the CodeTag class. Almost like it searches for a matching
              "attribute" in the .tld file and uses it. If you put multiple entries in
              the .tld file for different cases, it still picks the first one it finds and
              ignores the case differences.
              The J2EE/JSP spec indicates that custom tags are case sensitive, I assumed
              that is supposed to include their attributes.
              It bit us because we want to have attributes which differ by case only
              (don't ask).
              -Greg
              Check out my WebLogic 6.1 Workbook for O'Reilly EJB Third Edition
              www.oreilly.com/catalog/entjbeans3 or www.titan-books.com
              

    I had the same problem in a design a couple of months ago and could not get around it so I switched the functionality into code and out of the tag lib.
    I take it you are trying to do something like this?
    <%
    String value="hiworld";
    %>
    <mytaglib:saysomething value="<%=value%>"/>

  • Output proper special characters in JSTL custom tag

    I've written a custom JSTL Tag and want to output proper encoded special characters, like the c:out tag does (example: > to >). Do I have to parse that manually or is there a method within the jsp-api?

    Custom JSTL tag ?????Oops. Custom tag, of course.
    In custom tags, you have to manually parse it AFAIK.Somehow I can't imagine that such a frequently needed feature has do be done manually. Almost every tag that has to output data, has to convert special characters, otherwise cross-side-scripting would be possible.

  • Finding the custom tag name from inside the tag handler

    Hello,
    I searched the forum, but couldnt find the answer (or in the API). In my custom tag handler, I want to know what the name of the custom tag was. Is this possible?
    Thanks in advance.
    Chris
    ps. Without parsing the .tld file... :)

    Hmm, that's unfortunate. Thanks a lot for your work. I had a feeling since it wasn't in the API that it wasn't possible. Here's why, and maybe they will add this feature later...
    We are making our own tags for buttons on our app (the button will be an HTML table, with a clickable background, that looks like an image, but isnt).
    The HTML designers want tags they can drag and drop to the screen in DreamWeaver, including visual feedback on what they dragged and dropped. So the tag <fast:blueButton>Continue</fast:blueButton> will show a blue button image in dreamWeaver with "Continue" as the text. There are a lot of parameters to set for each button, like height, width, border, etc. that will be configured in an XML config file for each button.
    It would be nice if all the buttons we invent in the tld point to the same generic button class, and when the generic button class runs, sees which button called it, and gets its config from an XML file.
    This way the designer could add more buttons with the tld and XML config, and no more java classes are needed. However, if a generic button is sent with a type param: <fast:button type="blue">Continue</fast:button> then there is no visual feedback in the tool (in the first case we could have set the fast:blueButton to be the image of a blue button) and it cant be picked from a list in the tool (the designer needs to remember which types exist). It seems not important to programmers, but for designers it is important.
    Oh well, I will see if there is another way to NOT have tons of Java classes to support.
    Thanks,
    Chris

  • How to use Custom Tags for Theme and Base Map Definitions

    In Mapviewer documentation I've found the following new feature:
    The XML definition of a theme or base map now supports application-specific
    attribute tags. You can use the Custom Tags option in the theme definition in Map
    Builder to specify tags and their values, which can be interpreted by your application
    but are ignored by MapViewer itself.
    I'm able to define a custom tag in Mapbuilder, but how can I use it in my Application?
    Thanks.

    As he said, you have to use as Platform service to create adapter in OIM.
    tcUserOperationsIntf service = Platform.getService(Thor.API.Operations.tcUserOperationsIntf.class);
    HashMap<String,String> searchmap=new HashMap<String,String>();
    searchmap.put("Users.User ID", userID);
    tcResultSet searchset=service.findAllUsers(searchmap);

  • Custom tag cloud webpart based on keywords from a Term Set in the Term Store .

    Hi Guys
    Does anyone have developed a custom Tag Cloud webpart in SharePoint 2010? I'm
    looking for a custom Tag cloud based on keywords from a Term Set in the Term Store.
    Unfortunately
    out of the box Tag Cloud Web Part only reference the Social Tags from the User.
    in my case editors have created pages and tagged a page using terms from the Term store.
    What I would like to see is a web part which could display “Top Keywords”, and the output is something like this:
    http://electronicdiscovery.info/what-additional-features-would-you-like-to-see-in-sharepoint-word-cloud-survey-electronic-discovery/
    Thanks In advance
    Tanaji Chavan

    Hi  Ramakrishnaraja ,
    Thanks for sharing the links , i tried using web part in second link but that’s not working , have also gone through the code of that web part seems like it is referring to some list like
    "Categories" and "Posts"
    however I'm looking for a custom Tag cloud based on keywords from a Term Set in the Term Store .
    Thanks 

  • JSP in custom tag attributes...

    Sirs,
              A very nice feature from a development perspective, would be the ability
              to use JSP code within custom tags. Say I have a page on which I wish
              to give all the information on a widget. Say further that I have
              implemented a tag that writes out all the info of a widget as HTML
              table. I would like to write something like this:
              <mytaglib:widgetTag widgetID="<%=request.getParameter("widget_id")%>"
              />
              As far as I know, in the current implementation of custom taglibs this
              does not seem to be possible. Instead you end up writing something like
              this:
              <mytaglib:widgetTag>
              <mytaglib:getWidget><%=request.getParameter("widget_id")%>"</mytaglib:getWidget>
              <mytaglib:displayWidget />
              </mytaglib:widgetTag>
              Which is much more like a scripting language than a heirarchical XML .
              Now, I could always just use the request object within the tag helper
              classes, but this gives up flexibility and can introduce security
              issues, and it also makes the tags much more difficult to work with...
              In short, we should push for JSP evaluation of tag attributes. Weblogic
              could leap ahead of other app servers in this area (making up for the
              custom tag performance issues, to be solve in sp6) and Sun would, once
              again, follow Weblogic's lead and rewrite the standard to include this
              functionality.
              Regards,
              Carson Gross
              

    Carson,
              Perhaps the problem is that you are treating custom tags like one would
              construct an imperative language. I have never had to put Java or use beans
              or %= or even parameters to tags into a JSP because of custom tags.
              The real problem is writing/packaging/maintaining all those tags; sure could
              use a tool that did just that ;-)
              Peace,
              Cameron Purdy
              [email protected]
              http://www.tangosol.com
              WebLogic Consulting Available
              "Carson Gross" <[email protected]> wrote in message
              news:[email protected]...
              > Sirs,
              >
              > A very nice feature from a development perspective, would be the ability
              > to use JSP code within custom tags. Say I have a page on which I wish
              > to give all the information on a widget. Say further that I have
              > implemented a tag that writes out all the info of a widget as HTML
              > table. I would like to write something like this:
              >
              > <mytaglib:widgetTag widgetID="<%=request.getParameter("widget_id")%>"
              > />
              >
              > As far as I know, in the current implementation of custom taglibs this
              > does not seem to be possible. Instead you end up writing something like
              > this:
              >
              > <mytaglib:widgetTag>
              >
              >
              <mytaglib:getWidget><%=request.getParameter("widget_id")%>"</mytaglib:getWid
              get>
              >
              > <mytaglib:displayWidget />
              > </mytaglib:widgetTag>
              >
              > Which is much more like a scripting language than a heirarchical XML .
              > Now, I could always just use the request object within the tag helper
              > classes, but this gives up flexibility and can introduce security
              > issues, and it also makes the tags much more difficult to work with...
              >
              > In short, we should push for JSP evaluation of tag attributes. Weblogic
              > could leap ahead of other app servers in this area (making up for the
              > custom tag performance issues, to be solve in sp6) and Sun would, once
              > again, follow Weblogic's lead and rewrite the standard to include this
              > functionality.
              >
              > Regards,
              > Carson Gross
              >
              

  • Custom tags

    Hi there,
              Our site is running on Weblogis server 5.0. We are using EJBs, JSPs. We
              have several JSP custom tags. but, one of those is raising an exception
              quite often:
              Tue Jul 25 21:37:19 EDT 2000:<E> <ServletContext-abracat> exception
              raised on '/abc/search/animals/index.jsp'
              javax.servlet.ServletException: runtime failure in custom tag
              'dynamicpage'
              at java.lang.Throwable.fillInStackTrace(Native Method)
              at java.lang.Throwable.fillInStackTrace(Compiled Code)
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Exception.<init>(Compiled Code)
              at javax.servlet.ServletException.<init>(Compiled Code)
              at jsp_servlet._search._animals._index._jspService(Compiled Code)
              at weblogic.servlet.jsp.JspBase.service(Compiled Code)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled
              Code)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              Code)
              at weblogic.servlet.JSPServlet.service(Compiled Code)
              at javax.servlet.http.HttpServlet.service(Compiled Code)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled
              Code)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              Code)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              Code)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
              Code)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
              at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
              at weblogic.kernel.ExecuteThread.run(Compiled Code)
              Can someone please suggest what must be the reason? And what is the
              possible way of solving this problem.
              Thanks in advance,
              Priya
              

    Oddly, load-on-startup is not mentioned in the text of the servlet-2.2
              specification but it is
              defined in the web-jar.dtd. I have filed an change request against it and
              we will get confirmation
              from the specification people that it actually is a feature that should be
              included in the
              implementation.
              Sam
              "kevinx" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I'm having same type of exceptions running struts example on weblogic 5.1
              with sp 5. I think it has something to do with initialization at server
              startup. The web.xml for the application specified one of the servlet as
              follows...
              >
              > <servlet>
              > <servlet-name>action</servlet-name>
              > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
              > ......
              > <load-on-startup>2</load-on-startup>
              > </servlet>
              >
              > and there were logs showing something was loaded at startup for Tomcat 3.1
              but not for Webligic 5.1
              >
              > Here are the exceptions ...
              >
              > javax.servlet.ServletException: runtime failure in custom tag 'message'
              > at jsp_servlet._index._jspService(_index.java:91)
              > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :105)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :123)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:742)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:686)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:247)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              >
              > Fri Sep 08 16:05:19 CDT 2000:<E> <ServletContext-struts> root cause of
              ServletException
              > java.lang.NullPointerException:
              > at
              weblogic.servlet.jsp.PageContextImpl.getAttribute(PageContextImpl.java:156)
              > at org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:358)
              > at jsp_servlet._index._jspService(_index.java:83)
              > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :105)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :123)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:742)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:686)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:247)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              > at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              >
              >
              

  • Custom Tag Paths in CF8

    Hi
    In CF8 it's not possible to use unc path for "Custom Tag
    Paths"? In CF7 this
    work! New feature? bug? possible workarounds?
    Thanks,
    Allan

    Mark Mongeau wrote:
    > I have serveral CF servers running. Is it possible to
    map to custom tags on one
    > server from another server without a share between the
    servers?
    > Or even with shared drives?
    > What are the security issues if you create a share?
    > Thanks
    > Mark
    >
    It would be possible but both servers would have to be able
    to read a
    common network/file location. Either a shared drive on one CF
    server or
    the other or a common directory on a file server that both cf
    servers
    can read. For any of this to work one or both of the cf
    servers will
    have to be configured to run under a user (localsystem by
    default on a
    windows box) that has the required permissions to read the
    desired
    remote resource.
    Once the required permissions are granted, one just needs to
    put the
    UNC/Mapped drive path to the shared custom tag directory in
    the
    appropriate server setting.
    The risk is the same with granting any user permission to a
    common file
    location. They have the granted permissions to do what they
    are allowed
    to do at that location. With intelligent consideration of
    what
    permissions to give the user designated to run CF under this
    can be
    easily mitigated to a low risk issue. Don't use an
    administrator/super
    user account that can do anything anywhere. Create a CF user
    and only
    give it the required permissions to do what you need CF to
    do.

  • No setter method found - custom tag

              Hi Guys
              When I attempt to access a .jsp that is making use of a custom tag library that
              I've written I'm seeing the following message:
              "weblogic.servlet.jsp.JspException: (line 1): Error in using tag library uri='/WEB-INF/LSTreeControl.tld'
              prefix='tree':
              There is no setter method for property 'colIndex', for Tag class 'com.levelseas.core.web.tag.treecontrol.LSSubmitParamTag"
              The method has a signature of:
              "public void setColIndex(String index) throws JspTagException"
              and the Class has a number of sets defined on it and this is the only one that
              is being complained about. If I remove this attribute then no complaint!
              I'm new to bea but have been around jsp for a while so I'm wondering if this is
              a feature of wls 6.1 and would love to know a way around it.
              Any help appreciated
              J
              

              Hi Guys
              Problem is almost certainly because I've gone and defined the get as returning
              an int, (hence no property!)
              Apols
              J
              

  • 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

Maybe you are looking for

  • New Print Challenges: Same Old Thing . . . Plus Some New One!

    In general, I liked my Photosmart 7520 a lot. Yes, it was annoying that it didn't print now and then. I've discovered on my own that it was the print Que that indicated it was offline. And that was when it was wired in. But I never changed anything.

  • Hidden Field Value

    I want to import a value from a visible field to a hidden field. The data will be sent to a mySQL DB via php. I've tried changing the php script to obtain the results I want unsuccessfully. A hidden field should also do the trick but I'm not sure how

  • How does client invoke an operating system command in the Server machine.?

    Guys, Is there any way that a client could trigger an operating system command on the Oracle Server machine? I've a VB scipt file in the server machine.My requirement is to execute that VB file on the server machine.(The script would essentially crea

  • Can't place CSS in the portal area

    I have a situation here where I don't have much freedom of creativity here. In the portal area, I can only place HTML code. But, with only HTML code, I can't I don't know how to create professional dropdown menu Navbar. How do I create a professional

  • Writing an A4 document to A4 pdf

    Each time I try writing my A4 document to A4 pdf, I end up with Letter (8.5" x 11"). When I click ctrl + P, I choose Printer Properties and in the Adobe PDF Settings tab of the ADobe PDF Document Properties window, I am choosing A4 under Adobe PDF Pa