org.codehaus.groovy.grails.web.taglib
Class RenderInputTag

java.lang.Object
  extended by org.codehaus.groovy.grails.web.taglib.RequestContextTag
      extended by org.codehaus.groovy.grails.web.taglib.RenderInputTag
All Implemented Interfaces:
GrailsTag

public class RenderInputTag
extends RequestContextTag

A tag that attempts to render an input for a bean property into an appropriate component based on the type. It uses the templates defined in "grails-app/views/scaffolding" to achieve this by looking up the template by type. Example: Produces for Example (unless customised):

Since:
12-Jan-2006

Field Summary
static java.lang.String PATH_PREFIX
           
static java.lang.String PATH_SUFFIX
           
static java.lang.String TAG_NAME
           
 
Fields inherited from class org.codehaus.groovy.grails.web.taglib.RequestContextTag
applicationContext, attributes, contextPath, grailsApplication, out, registry, request, response, servletContext, urlPathHelper
 
Constructor Summary
protected RenderInputTag()
           
 
Method Summary
protected  void doEndTagInternal()
           
protected  void doStartTagInternal()
           
 java.lang.String findUriForType(java.lang.Class<?> type)
           
 java.lang.Object getBean()
           
 java.lang.String getProperty()
           
 boolean isDynamicAttribute(java.lang.String attr)
           
 void setBean(java.lang.Object bean)
           
 void setProperty(java.lang.String property)
           
 
Methods inherited from class org.codehaus.groovy.grails.web.taglib.RequestContextTag
doEndTag, doStartTag, getName, getRegistry, init, setAttribute, setAttributes, setWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_PREFIX

public static final java.lang.String PATH_PREFIX
See Also:
Constant Field Values

PATH_SUFFIX

public static final java.lang.String PATH_SUFFIX
See Also:
Constant Field Values

TAG_NAME

public static final java.lang.String TAG_NAME
See Also:
Constant Field Values
Constructor Detail

RenderInputTag

protected RenderInputTag()
Method Detail

doStartTagInternal

protected void doStartTagInternal()
Specified by:
doStartTagInternal in class RequestContextTag

doEndTagInternal

protected void doEndTagInternal()
Specified by:
doEndTagInternal in class RequestContextTag

isDynamicAttribute

public boolean isDynamicAttribute(java.lang.String attr)

getBean

public java.lang.Object getBean()

setBean

public void setBean(java.lang.Object bean)

getProperty

public java.lang.String getProperty()

setProperty

public void setProperty(java.lang.String property)

findUriForType

public java.lang.String findUriForType(java.lang.Class<?> type)
                                throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException