|
Andrew,
I don't know if I clearly
understood your problem. I try to answer to the question nr 1.
What I understood in CForms is that
you need 2 files, one for definition & one as a template so for istance I
use a defLogin.xml file for the definition
<?xml version="1.0"
encoding="ISO-8859-1"?>
<fd:form xmlns:fd="http://apache.org/cocoon/forms/1.0#definition">
<fd:widgets> <fd:field
id="txtNome" required="true">
<fd:label>Nome:</fd:label> <fd:datatype base="string"/> <fd:validation> <fd:length min="2"/> </fd:validation> </fd:field> <fd:field
id="txtPassword" required="true">
<fd:label>Password:</fd:label> <fd:datatype base="string"/> <fd:validation> <fd:length min="5" max="20"/> </fd:validation> </fd:field>
</fd:widgets>
</fd:form> And the template ... (just a
snippet)
<p class="label"><ft:widget-label
id="txtNome" /></p>
<ft:widget id="txtNome"> <fi:styling class="txt"/> </ft:widget> <p class="label"><ft:widget-label
id="txtPassword"/></p>
<ft:widget id="txtPassword"> <fi:styling type="password"/> <fi:styling class="txtPwd"/> </ft:widget> & then I use the .css file to
format the output.
.txt{
font-family:"Verdana", Helvetica, sans-serif; color:#000077; background:#FFCC00; text-align:left; cursor:text; width:170px; border : 1px #aaaaaa solid } In this case I can have the size of
the field how long as I want.
In your example, you declare a
widget with "username" id, but then you refer to an input called "password", so
Im a little confused...
Since Im a newbie, I don't know
about question nr.2 & 3, sorry.
Hope that I could help
you.
Ciao
Roberto
----- Original Message -----
|
