Re: html:form not generating name="" attribute
On Saturday at 9:36am, DB=>Don Brown <[EMAIL PROTECTED]> wrote: DB> Ok, I looked at the 1.2.7 source, and indeed, it doesn't generate an DB> "id" or"name" if xhtml mode is on. You are correct, the styleId is a DB> good workaround, especially if you use the commons-validator checked DB> out from trunk. DB> DB> Don This is fixed in subverion: http://issues.apache.org/bugzilla/show_bug.cgi?id=35127 and needs to be used with commons validator (latest subversion as well). -- Haroon Rafique <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:form not generating name="" attribute
Ok, I looked at the 1.2.7 source, and indeed, it doesn't generate an "id" or"name" if xhtml mode is on. You are correct, the styleId is a good workaround, especially if you use the commons-validator checked out from trunk. Don On 8/20/05, Morris Jones <[EMAIL PROTECTED]> wrote: > Don Brown wrote: > > You probably enabled xhtml output rendering, which renders an "id" > > attribute instead. Unfortunately, client-side validation in xhtml is > > currently broken in Struts 1.2.7, so you can either checkout and build > > commons-validator or wait until the next release. > > Thanks Don, yes I enabled xhtml. Interestingly, it's not generating an > id attribute either, so there must be another trigger, like having an > entry for the from in the validation.xml file (which I don't have). > Perhaps I can use the styleId attribute on to get a handle > on a form. > > Today my app is failing at startup when the Validation plug-in reads its > config xml files, "unexpected end of file." Yet the XML files have > nothing in them at this point -- they're just copied from struts-blank. > So something odd is going on. > > Just another odd puzzle ... > > I probably will checkout and build commons-validator. > > Cheers, > Mojo > -- > Morris Jones > Monrovia, CA > http://www.whiteoaks.com > Old Town Astronomers: http://www.otastro.org > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:form not generating name="" attribute
Don Brown wrote: > You probably enabled xhtml output rendering, which renders an "id" > attribute instead. Unfortunately, client-side validation in xhtml is > currently broken in Struts 1.2.7, so you can either checkout and build > commons-validator or wait until the next release. Thanks Don, yes I enabled xhtml. Interestingly, it's not generating an id attribute either, so there must be another trigger, like having an entry for the from in the validation.xml file (which I don't have). Perhaps I can use the styleId attribute on to get a handle on a form. Today my app is failing at startup when the Validation plug-in reads its config xml files, "unexpected end of file." Yet the XML files have nothing in them at this point -- they're just copied from struts-blank. So something odd is going on. Just another odd puzzle ... I probably will checkout and build commons-validator. Cheers, Mojo -- Morris Jones Monrovia, CA http://www.whiteoaks.com Old Town Astronomers: http://www.otastro.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:form not generating name="" attribute
You probably enabled xhtml output rendering, which renders an "id" attribute instead. Unfortunately, client-side validation in xhtml is currently broken in Struts 1.2.7, so you can either checkout and build commons-validator or wait until the next release. Don On 8/19/05, Morris Jones <[EMAIL PROTECTED]> wrote: > This is an odd problem I haven't run into before ... > > The tags in my HTML are coming out without a name="formName" > attribute. > > I haven't yet looked at the source code for the tag to see > what might cause the name attribute to be excluded, but I've triple > checked my struts-config to be sure there's a name="..." attribute in > the action element, and that the path and the tags all match. > > I hadn't needed to reference a form until I'd written several forms in > this current app. All my other forms are working fine, but none of my > forms have the name="" attribute in the element of the HTML. > > This is my first application mapped by path instead of extension, if > that makes a difference. I found it odd that extension mapping had to > use the form but in the path mapping, I > don't use . Something seems disconnected > here. > > Thoughts very much appreciated! > > Mojo > -- > Morris Jones > Monrovia, CA > http://www.whiteoaks.com > Old Town Astronomers: http://www.otastro.org > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]