Hi,

Sorry if this is a bit of a cross post with user but I figured dev is a
better place for this.  Is there any reason why the text area tag wasn't
included in the indexed tag patch?

We've just implemented this (copied from BaseFieldTag) in the TextAreaTag as
a workaround. 
Good idea? bad idea? already done and I don't know where to find up to date
code?

    public int doStartTag() throws JspException {

        // Create an appropriate "input" element based on our parameters
        StringBuffer results = new StringBuffer("<textarea");
        results.append(" name=\"");

        if ("true".equals(indexed))
    public int doStartTag() throws JspException {

        // Create an appropriate "input" element based on our parameters
        StringBuffer results = new StringBuffer("<textarea");
        results.append(" name=\"");
        if ("true".equals(indexed))
        {
           // look for outer iterate tag
           IterateTag iterateTag = (IterateTag) findAncestorWithClass(this,
IterateTag.class);
           if (iterateTag == null)
           {
              // this tag should only be nested in iteratetag, if it's not,
don't do anything
              return EVAL_PAGE;
           }
        
           results.append(getName());
           results.append("[");
           results.append(iterateTag.getIndex());
           results.append("].");
        }

        results.append(property);
        results.append("\"");

        ................
        ........ as before

Cheers
Nathan


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

Reply via email to