Hi people. I am going nuts with a problem that I am having. I have
just installed the CF on Wheels Framework and I've been enjoying some
very nice screen-casts on the official site of Wheels. I just love
Wheels as a Framework, but unfortunately I came across a problem.
Here is the problem I am having. Under there's the explanation, but if
you prefer a better layout, then check out the original post:
http://www.dreamincode.net/forums/topic/186929-wheels-problem-with-formatting-forms/
I am trying to format some text fields in a form, as explained in this
screencast:
http://cfwheels.org/screencasts/view/7
I do everything exactly as the instructor in the video says: in the
config/settings.cfm file I write this:
<cfset set(functionName="textField", labelPlacement="before",
prependToLabel="<div>", append = "</div>", appendToLabel = "<br />")>
But when I refresh the website and check the HTML code "under the
hood", it looks like that:
<div><label for="user-firstName" placement="before">First Name<input
id="user-firstName" type="text" value="" name="user[firstName]" /></
div></label><br />
Do you notice the where the problem is? The tags </label><br /> should
have been automatically placed right after the label text "First
Name"! Instead they are being placed right at the end of the code
(behind the </div> tag)! Also I am not sure what is the
placement="before" option doing within the <label> tag!
The result I should get is this (like in the screencast, on time
2:50):
<div><label for="user-firstName">First Name</label><br /><input
id="user-firstName" type="text" value="" name="user[firstName]" /></
div>
Does anyone have a clue of what is wrong here?
Thank you so much in advance for your help.