From: Stephanie Hall (TT) <[hidden email]>
To: [hidden email]
Sent: Wed, September 29, 2010 9:52:52 AM
Subject: [ops-users] RE: Re: RE: Re: Textarea to handle a nodeset
Erik,
We have a lot of those "file" fields, split into 2 inputs which are bound to filename and createdBy. Some projects can have a great many of these, like 50 or so, and there are multiple, semi-related projects. It is tedious for the user to update all of the inputs, if something like the path name changes (so the folder that contains the files). So they would like to put them into a textarea so they can be edited all at once using copy/paste,etc. Since it seems the textarea is fine at displaying the contents of the
<files> nodeset, I was hoping there would be a way that updates in the textarea would be reflected in the instance's nodeset. The user would also like to be able to press a trigger to put the files BACK into the inputs from the textarea as well. I am trying to figure out a good, clean and efficient way to make all this happen.
I hope that answered your question...
Thanks,
Stephanie
-----Original Message-----
From:
[hidden email] [mailto:
[hidden email]] On Behalf Of Erik Bruchez
Sent: Tuesday, September 28, 2010 4:45 PM
To:
[hidden email]Subject: [ops-users] Re: RE: Re: Textarea to handle a nodeset
Stephanie,
Just trying to understand the use case
here.
What you are doing in this example is pointing to so-called complex content, i.e. an element containing "stuff" other than just text.
Right now, XForms disallows that: you can only point to elements without nested content, or attributes.
So the question is: what do you do with that content, both ways:
* when reading from the instance to the control
* when writing to the instance from the control
What's your algorithm for those operations?
-Erik
On Tue, Sep 28, 2010 at 2:31 PM, Stephanie Hall (TT) <
[hidden email]> wrote:
> Hold data from an instance? I'm sorry, I don't know exactly what you're looking for. Right now if you bind a nodeset to a textarea, it will display all of the contents of the nodeset, but I want, upon changes to the nodeset
in the textarea, that the appropriate node be updated in the instance. That doesn't happen now - it just gets reset to the original instance's data.
>
> So if I have
>
> <instance id="myinstance">
> <project>
> <files>
> <file>
> <filename>name1</filename>
> <createdBy>steve</createdBy>
> </file>
>
<file>
> <filename>name2</filename>
> <createdBy>bob</createdBy>
> </file>
> </files>
> </project>
> </instance>
>
> I would see (if I do ref="instance('myInstance')/files" in the
> xforms:textarea)
>
> Name1
> Steve
>
> Name2
> Bob
>
> In the textarea. And then if I make changes in the textarea, like bob becomes Ted, I want it to update the instance to be:
>
> <instance
id="myinstance">
> <project>
> <files>
> <file>
> <filename>name1</filename>
> <createdBy>steve</createdBy>
> </file>
> <file>
> <filename>name2</filename>
>
<createdBy>Ted</createdBy>
> </file>
> </files>
> </project>
> </instance>
>
> It has to be displayed in a textarea, also (or something that looks
> like one to the normal user at least) :)
>
> Thanks,
> Stephanie
>
>
>
> -----Original Message-----
> From:
[hidden email] [mailto:
[hidden email]] On Behalf Of Erik
> Bruchez
> Sent: Tuesday, September 28, 2010 4:22 PM
> To:
[hidden email]> Subject: [ops-users] Re: Textarea to handle a nodeset
>
> Stephanie,
>
> What would the nodeset do?
>
> -Erik
>
> On Tue, Sep 28, 2010 at 10:10 AM, Stephanie Hall (TT) <
[hidden email]> wrote:
>> Hi all,
>>
>>
>>
>> Is there support anywhere for a textarea to handle a nodeset? Or,
>> would it be difficult to extend the existing textarea component to
>> support this via XBL?
>>
>>
>>
>> Thanks,
>>
>> Stephanie
>>
>> --
>> You receive this message as a subscriber of the
[hidden email] >> mailing list.
>> To unsubscribe: mailto:
[hidden email]>> For general help: mailto:
[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
>
> --
> You receive this message as a subscriber of the
[hidden email] mailing list.
> To unsubscribe: mailto:
[hidden email]> For general help: mailto:
[hidden email]?subject=help
> OW2 mailing
lists service home page:
http://www.ow2.org/wws>
>