Here is the code from the documentation:
<p>
#radioButton(objectName="user", property="gender", tagValue="m", label="Male")#<br />
#radioButton(objectName="user", property="gender", tagValue="f", label="Female")#
</p>
Here is the code from the scaffolding plugin:
<p><label>Gender</label> <br />
#textField(objectName='user', property='gender')#</p>
I am curious as to why the scaffolding plugin wouldn't follow the documentation example? I would assume that the documentation example would be the best practice?
Granted I know the bottom one is a text field and the top is a radio button, but the scaffolding plugin actually put in the html rather than using the label attribute as the example did.
Is one way better than the other?
Thanks!
Randy