One small observation that I made while using AssociatedRadio is : If no
radio button is selected and you are trying to go to some page which has the
same table as destination table (using goto button) , then it directly jumps
to the first row in the TABLE.
Suppose you are using update/delete buttons then it throws an error saying
radio button needs to be selected , incase none of the radio is selected.
I think this point helps you while using goto button in conjunction with
radio buttons.
Thanks
Venkata Kiran Kumar.
> -----Original Message-----
> From: Henner Kollmann [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 11:46 AM
> To: 'Gianpaolo Barbieri'; [EMAIL PROTECTED]
> Subject: AW: [dbforms] Radio buttons
>
> 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
This message is confidential and may also be legally privileged. If you are not the
intended recipient, please notify [EMAIL PROTECTED] immediately. You should not
copy it or use it for any purpose, nor disclose its contents to any other person. The
views and opinions expressed in this e-mail message are the author's own and may not
reflect the views and opinions of Wilco.
-------------------------------------------------------
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