thanks for that information it worked fine. I am experiencing another problem now. I have declared my widget styling as:
<ft:widget id="username">
<fi:styling size="30" class="keyinbox"/>
</ft:widget>
So I want the input box to have a size of 30 but the size in the html is 5:
<input name="password" id="password" value="" title="" type="password" size="5" class="keyinbox"><span class="forms-field-required"> * </span>
1. How do I make the size of the box 30?
2. How do I keep the field required but not display <span class="forms-field-required"> * </span> in the html? I have designed my own images which sit at the end of the input box.
3. In the form declaration line:
<ft:form-template action="${cocoon.continuation.id}.kont" name="Form1" method="POST">
if I remove the action so i have:
<ft:form-template name="Form1" method="POST">
I get the following error:
cause: java.lang.ArrayIndexOutOfBoundsException: Attempt to modify attribute at illegal index: -1
full exception chain stacktrace[hide]
Original Exception: java.lang.ArrayIndexOutOfBoundsException: Attempt to modify attribute at illegal index: -1
at org.xml.sax.helpers.AttributesImpl.badIndex(Unknown Source)
at org.xml.sax.helpers.AttributesImpl.setValue(Unknown Source)
at org.apache.cocoon.forms.transformation.EffectWidgetReplacingPipe.translateAttributes(EffectWidgetReplacingPipe.java:755)
at org.apache.cocoon.forms.transformation.EffectWidgetReplacingPipe.access$200(EffectWidgetReplacingPipe.java:63)
at org.apache.cocoon.forms.transformation.EffectWidgetReplacingPipe$FormHandler.process(EffectWidgetReplacingPipe.java:319)
at org.apache.cocoon.forms.transformation.EffectPipe.startElement(EffectPipe.java:412)
at org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator.java:3660)
at org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator.java:3445)
at org.apache.cocoon.generation.JXTemplateGenerator.performGeneration(JXTemplateGenerator.java:2979)
at org.apache.cocoon.generation.JXTemplateGenerator.generate(JXTemplateGenerator.java:2970)
..............
Why is this error being caused. My intention was to have the continuation id hidden from the url.
regards
Andrew</x-tad-bigger>
On 15 Nov 2004, at 07:35, Roberto wrote:
The widget are not displayed could be because you need to add this to your pipeline:
�
����� <map:transform type="forms"/>
������� <map:transform src="style/xsl/cforms/forms-field-styling.xsl"/>
try to have a look of this page http://cocoon.apache.org/2.1/userdocs/forms/xslt.html�maybe can help you.
�
Ciao
Roberto
�
