struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whichit <neil.horn...@which.co.uk>
Subject styleId attribute in html:form
Date Thu, 11 Oct 2007 14:16:25 GMT

Hello all.

We have a struts form, and we need to have a styleId element (which
translates into a standard HTML id element). When we include it, the page
breaks, with no errors logged, just a blank page. If we leave it out
completely, when the page loads an id element has been included, with the
value set to the name of the form as defined in the struts-config file.
That's not id we need!

So, with the following form declaration the page is fine:

<html:form action="/signup/step1.do">

But with this, our page breaks.

<html:form action="/signup/step1.do" styleId="fm_1">



In the first case, the HTML gets translated as:

<form id="step1Form" method="post" action="/signup/step1.do">
(why did the id get put there automatically?)


Why can't I include my custom styleId?


If I make the form a normal HTML form, everything works fine. What
implications are there for the rest of the struts elements if the form is
declared in this way?


Many thanks!

-- 
View this message in context: http://www.nabble.com/styleId-attribute-in-html%3Aform-tf4607534.html#a13156706
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message