customtags

How can I make a block of code in a custom tag only run the first time the tag is called?

I'm creating a set of ColdFusion custom tags designed to make reusing certain layout elements easy. I'll be using them in a manner similar to the following: <cfimport prefix="layout" taglib="commonfunctions/layouttags"> <layout:fadingbox> This text will fade in and out </layout:fadingbox> <layout:stockticker> This text will scr...

Problem in interpreting dynamic attributes in Jsp

Hi, I'm trying to process dynamic attributes in Jsp, but I'm getting display nothing in response. Here's the JSP code: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="mine" uri="DiceFunctions" %> <html><body> <mine:advice suggest="yo haa haa" > </mine:advice> </body></html> The TLD file, whic...

How to Implement Custom tags

How do I create custom tags or implement a tag-handler class? Can you provide an explanation with a simple example? ...

Get content from JSPWriter

I would like to be able to extract the content already written to the JSPWriter in a custom tag (using the new SimpleTagSupport). Then I want to manipulate that content and then write it back out to the JSPWriter. In my company we are creating a set of custom tags that will encapsulate all html for a page - so we can be assured of corr...

Why doesn't railo read the customtag path like cfmx 6.1 does?

Hello, i am trying to migrate from cfmx61 to railo 3.1. I have customtags in this directory for cfmx61 C:\cfusionmx\customtags\myapp i copied the directory to {railo-web}/customtags/ and added this mapping through the railo administrator and also enabled the "Search subdirectories" setting. I get this error the moment i try to a...

Is there a way with rails form helper to produce a button tag for submit

I am trying to create buttons ala Wufoo (Rediscovering the button element) I would like to write the following code like the following: <%form_tag search_path, :method => :get, :class => 'search' do %> <%=text_field_tag :search, params[:search] -%> <%=button_tag 'search', :name => nil-%> <%end%> To generate the following HTML (in...