Ok, thanks for this solution.. it works, with one exception:
when i try to generate ths in xsp:
<fd:item value="Jan"/>
with this logic:
<xsp:content>
<xsp:element name="fd:item">
<xsp:attribute
name="value"><xsp:expr>varName</xsp:expr></xsp:attribute>
</xsp:element>
</xsp:content>
Then i get the next exception:
java.lang.RuntimeException: java.lang.RuntimeException:
[<xsp:element name="fd:item">]
Name can not contain ':'. If you want to create namespaced
element, specify 'uri' and 'prefix'.
What can i do? i have found nothing like xsp:prefix or something like that?
thanks your your time and advice
jan
from belgium
Niels van Kampenhout wrote:
>
> Hi,
>
> jantje wrote:
>> I have a form definition (of a cocoon form).
>> I also have an xsp -file, which generates a form template:
>
> <snip/>
>
>> Ok, and here is the problem:
>> Can I define the "selection-list" in the FORM TEMPLATE (thus in the
>> xsp)?
>> It would be very nice, because in the xsp I can search a database and
>> find
>> the names I want in my "selection-list"
>>
>> If you think this is not possible, than maybe this would be a solution:
>> I ALSO generate the form definition.. .. .. BUT only the flow script uses
>> the form definition:
>> var identificationForm = new Form("formDefinition/identification.xml");
>> So, does someone know how I can generate the form definition? (only if
>> you
>> think it is not possible to define the "selection-list" in my xsp)
>
> You can use something like:
>
> var identificationForm = new
> Form("cocoon:/formDefinition/identification.xml");
>
> Better still, generate only the selection list with a pipeline, and
> reference it in your form definition like this:
>
> <fd:selection-list src="cocoon:/mychoices.xml"/>
>
> See [1] for more information on selection lists.
>
> Regards,
> Niels
>
> [1]
> http://cocoon.apache.org/2.1/userdocs/widgetconcepts/selectionlists.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
View this message in context:
http://www.nabble.com/xsp-produces-a-form-template-tf2265170.html#a6302345
Sent from the Cocoon - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]