Hello,

 

I’ve got two problems with the CForms binding. First a likely simple one:

 

How can I add a new node to an existing xml file? I’ve got something like:

 

<userdata>

<role></role>

<name></name>

<password></password>

</userdata>

<userdata>

<role></role>

<name></name>

<password></password>

</userdata>

 

And I’ll get an other ‘name’ and ‘password’ out of my form, that simply should be put into a ‘userdata’ element attached at the end of the ‘userdata’ list.

 

The other problem/question is: Can I bind a JS Bean as load and a XML file for save?

 

What I want to do is:

-          Load some variables from a JS bean into a CForm (for example ‘role’ - that works fine)

-          After submitting the form everything should be saved as a new node (see first question) in the XML file.

 

I looked at the samples in the CForms section and but I couldn’t find a solution for my problem. Thanks for your help!

 

Best regards - Claus

 

__________________________________________

 

Claus Straube

Franc�strasse 31

80997 M�nchen

+49 (089) 14 16 682

 

Reply via email to