Only if you change the taglib classes:

In DbAssociatedRadioTag.java change:

public int doEndTag() throws javax.servlet.jsp.JspException {

        try {

          StringBuffer tagBuf = new StringBuffer("<input type=\"radio\"
name=\"");
          tagBuf.append(name);
          tagBuf.append("\" value=\"");
          tagBuf.append(parentForm.getTable().getId());
          tagBuf.append("_");
          tagBuf.append(parentForm.getPositionPath());
          tagBuf.append("\"");
          // 20020705-HKK: Set defaultChecked for first row!  
          if ( parentForm.getCurrentCount() == 0 )
             tagBuf.append(" checked=\"true\"");
          tagBuf.append(">");
          pageContext.getOut().write(tagBuf.toString());
        } catch(java.io.IOException ioe) {
          throw new JspException("IO Error: "+ioe.getMessage());
        }

                return EVAL_PAGE;
  }  

Regards,
Henner Kollmann

> How can i render a group of radio buttons where there is one 
> checked by default?



-------------------------------------------------------
Sponsored by: AMD - Your access to the experts on Hammer Technology! 
Open Source & Linux Developers, register now for the AMD Developer 
Symposium. Code: EX8664 http://www.developwithamd.com/developerlab
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to