Textarea to handle a nodeset

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Textarea to handle a nodeset

Stephanie Hall (TT)

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
Reply | Threaded
Open this post in threaded view
|

Re: Textarea to handle a nodeset

Erik Bruchez
Administrator
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
Reply | Threaded
Open this post in threaded view
|

RE: Re: Textarea to handle a nodeset

Stephanie Hall (TT)
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
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: Textarea to handle a nodeset

Erik Bruchez
Administrator
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
>
>


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: RE: Re: Textarea to handle a nodeset

bsteuhl
I have recently done this in textArea control and it took me the whole weekend to figure out the complexities when dealing with styling as well and escaping tags using nothing but xform extensions and xpath.  Pretty complex but I can preload a textarea with a template and have controls change data in the textarea as well as have users change data in the textarea keeping things in synch.
 

Brian Steuhl
website: http://BTMSoftwareSolutions.com
business email: [hidden email]
cell: 908-421-0742

home office: 732-961-3187
RSS Feed To My Blog:

Business Process Modeling - BTMSoftwareSolutions.com




From: Erik Bruchez <[hidden email]>
To: [hidden email]
Sent: Tue, September 28, 2010 5:45:03 PM
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
>
>



--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: RE: Re: Textarea to handle a nodeset

cray99
Hi, I'm thinking of migrating my xforms to orbeon, so I've been
following this list to see what issues I might be facing, but quite
frankly, this one confuses me unless I just don't get the picture--and
it is an important issue for me.

In mozilla, when you have a textarea bound to a node and you make
changes to that textarea the node is instantaneously updated. For
example, if you put an xf:output next to your xf:textarea, both bound to
the same node, you can see the changes to the output as you type if you
have the textarea incremental attribute  set to "true", and even if not,
you can see an immediate update when you click anywhere outside the
textarea and the instance gets updated (refreshed?).

Is this not the case in Orbeon? This is important to me because I have
an entire bulletin board application built on this very concept.

Or if you are talking about a different use case, could you describe it
more from the user's point of view?  Are you talking about updating the
instance from somewhere else in the form besides the textarea? like an
xforms-select or something and you want the textarea to reflect that
update? Is this not automatic?

This is really important to my application and my decision to migrate so
any clarification would be appreciated.

Carl Ray, Jr., Ed.D.
Cheng Shiu University, Taiwan



Brian Steuhl wrote:

> I have recently done this in textArea control and it took me the whole
> weekend to figure out the complexities when dealing with styling as
> well and escaping tags using nothing but xform extensions and xpath.  
> Pretty complex but I can preload a textarea with a template and have
> controls change data in the textarea as well as have users change data
> in the textarea keeping things in synch.
>  
>
> Brian Steuhl
> website: http://BTMSoftwareSolutions.com
> business email: [hidden email]
> cell: 908-421-0742
>
> home office: 732-961-3187
> RSS Feed To My Blog:
>
> Business Process Modeling - BTMSoftwareSolutions.com
> <http://feeds.feedburner.com/%7Er/blogspot/Blxz/%7E6/4>
>
>
>
> ------------------------------------------------------------------------
> *From:* Erik Bruchez <[hidden email]>
> *To:* [hidden email]
> *Sent:* Tue, September 28, 2010 5:45:03 PM
> *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]
> <mailto:[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]>
> [mailto:[hidden email] <mailto:[hidden email]>] On Behalf Of
> Erik Bruchez
> > Sent: Tuesday, September 28, 2010 4:22 PM
> > To: [hidden email] <mailto:[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]
> <mailto:[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]
> <mailto:[hidden email]>
> >> mailing list.
> >> To unsubscribe: mailto:[hidden email]
> <mailto:[hidden email]>
> >> For general help: mailto:[hidden email]
> <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]
> <mailto:[hidden email]> mailing list.
> > To unsubscribe: mailto:[hidden email]
> <mailto:[hidden email]>
> > For general help: mailto:[hidden email]
> <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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: RE: Re: Textarea to handle a nodeset

cray99
Okay, I get it now.
Taking a closer look, we are talking nodeset, not node, ignore my
previous email.

Carl Ray, Jr., Ed.D.
Cheng Shiu University, Taiwan



cray99 wrote:

> Hi, I'm thinking of migrating my xforms to orbeon, so I've been
> following this list to see what issues I might be facing, but quite
> frankly, this one confuses me unless I just don't get the picture--and
> it is an important issue for me.
>
> In mozilla, when you have a textarea bound to a node and you make
> changes to that textarea the node is instantaneously updated. For
> example, if you put an xf:output next to your xf:textarea, both bound
> to the same node, you can see the changes to the output as you type if
> you have the textarea incremental attribute  set to "true", and even
> if not, you can see an immediate update when you click anywhere
> outside the textarea and the instance gets updated (refreshed?).
>
> Is this not the case in Orbeon? This is important to me because I have
> an entire bulletin board application built on this very concept.
>
> Or if you are talking about a different use case, could you describe
> it more from the user's point of view?  Are you talking about updating
> the instance from somewhere else in the form besides the textarea?
> like an xforms-select or something and you want the textarea to
> reflect that update? Is this not automatic?
>
> This is really important to my application and my decision to migrate
> so any clarification would be appreciated.
>
> Carl Ray, Jr., Ed.D.
> Cheng Shiu University, Taiwan
>
>
>
> Brian Steuhl wrote:
>> I have recently done this in textArea control and it took me the
>> whole weekend to figure out the complexities when dealing with
>> styling as well and escaping tags using nothing but xform extensions
>> and xpath.  Pretty complex but I can preload a textarea with a
>> template and have controls change data in the textarea as well as
>> have users change data in the textarea keeping things in synch.
>>  
>>
>> Brian Steuhl
>> website: http://BTMSoftwareSolutions.com
>> business email: [hidden email]
>> cell: 908-421-0742
>>
>> home office: 732-961-3187
>> RSS Feed To My Blog:
>>
>> Business Process Modeling - BTMSoftwareSolutions.com
>> <http://feeds.feedburner.com/%7Er/blogspot/Blxz/%7E6/4>
>>
>>
>>
>> ------------------------------------------------------------------------
>> *From:* Erik Bruchez <[hidden email]>
>> *To:* [hidden email]
>> *Sent:* Tue, September 28, 2010 5:45:03 PM
>> *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]
>> <mailto:[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]>
>> [mailto:[hidden email] <mailto:[hidden email]>] On Behalf Of
>> Erik Bruchez
>> > Sent: Tuesday, September 28, 2010 4:22 PM
>> > To: [hidden email] <mailto:[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]
>> <mailto:[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]
>> <mailto:[hidden email]>
>> >> mailing list.
>> >> To unsubscribe: mailto:[hidden email]
>> <mailto:[hidden email]>
>> >> For general help: mailto:[hidden email]
>> <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]
>> <mailto:[hidden email]> mailing list.
>> > To unsubscribe: mailto:[hidden email]
>> <mailto:[hidden email]>
>> > For general help: mailto:[hidden email]
>> <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
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Re: Textarea to handle a nodeset

Stephanie Hall (TT)
In reply to this post by Erik Bruchez
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
>
>


--
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
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: RE: Re: Textarea to handle a nodeset

bsteuhl
I have coded an xForm that allows a textarea control to update input controls as well as input controls update the textarea control.  I will put a demo screencast on my website in about an hour or so.
 

Brian Steuhl
website: http://BTMSoftwareSolutions.com
business email: [hidden email]
cell: 908-421-0742

home office: 732-961-3187
RSS Feed To My Blog:

Business Process Modeling - BTMSoftwareSolutions.com




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
>
>



--
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
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: RE: Re: Textarea to handle a nodeset

bsteuhl
In reply to this post by Stephanie Hall (TT)
Here is link to screen cast http://btmsoftwaresolutions.com/screencast.aspx showing textarea control being updated from other controls and still being able to apply formatting and changing text in textarea while at same time updating input controls from textarea.  Sorry for the video quality.  When I have time I will redo.
 

Brian Steuhl
website: http://BTMSoftwareSolutions.com
business email: [hidden email]
cell: 908-421-0742

home office: 732-961-3187
RSS Feed To My Blog:

Business Process Modeling - BTMSoftwareSolutions.com




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
>
>



--
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
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Re: RE: Re: Textarea to handle a nodeset

Stephanie Hall (TT)

Hi Brian,

 

That looks to be along the same lines as what I am trying to do.  Would you mind sharing a bit how you were able to do it?  Also, are you using the standard orbeon textarea, or are you using a different one? 

 

Thanks,

Stephanie

 

From: Brian Steuhl [mailto:[hidden email]]
Sent: Wednesday, September 29, 2010 11:25 AM
To: [hidden email]
Subject: [ops-users] Re: RE: Re: RE: Re: Textarea to handle a nodeset

 

Here is link to screen cast http://btmsoftwaresolutions.com/screencast.aspx showing textarea control being updated from other controls and still being able to apply formatting and changing text in textarea while at same time updating input controls from textarea.  Sorry for the video quality.  When I have time I will redo.
 

Brian Steuhl
website: http://BTMSoftwareSolutions.com
business email: [hidden email]
cell: 908-421-0742

home office: 732-961-3187
RSS Feed To My Blog:

Image removed by sender. Business Process Modeling - BTMSoftwareSolutions.com

 

 


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
>
>

 



--
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
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: RE: Re: Textarea to handle a nodeset

Erik Bruchez
Administrator
In reply to this post by Stephanie Hall (TT)
Yes it does.

Why not bind the textarea to a node (not your "file" fields). Then
upon xforms-value-changed, parse the value and set the bits into your
actual "file" fields?

-Erik

On Wed, Sep 29, 2010 at 6:52 AM, Stephanie Hall (TT)
<[hidden email]> wrote:

> 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
>>
>>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: RE: Re: Textarea to handle a nodeset

Erik Bruchez
Administrator
In reply to this post by cray99
Carl,

(This topic is not related to the original thread.)

In Orbeon Forms, updates go through the server. Updates like the ones
you mention work but there is typically some latency, unlike with a
100% client-side implementation.

-Erik

On Tue, Sep 28, 2010 at 8:00 PM, cray99 <[hidden email]> wrote:

> Hi, I'm thinking of migrating my xforms to orbeon, so I've been following
> this list to see what issues I might be facing, but quite frankly, this one
> confuses me unless I just don't get the picture--and it is an important
> issue for me.
>
> In mozilla, when you have a textarea bound to a node and you make changes to
> that textarea the node is instantaneously updated. For example, if you put
> an xf:output next to your xf:textarea, both bound to the same node, you can
> see the changes to the output as you type if you have the textarea
> incremental attribute  set to "true", and even if not, you can see an
> immediate update when you click anywhere outside the textarea and the
> instance gets updated (refreshed?).
>
> Is this not the case in Orbeon? This is important to me because I have an
> entire bulletin board application built on this very concept.
>
> Or if you are talking about a different use case, could you describe it more
> from the user's point of view?  Are you talking about updating the instance
> from somewhere else in the form besides the textarea? like an xforms-select
> or something and you want the textarea to reflect that update? Is this not
> automatic?
>
> This is really important to my application and my decision to migrate so any
> clarification would be appreciated.
>
> Carl Ray, Jr., Ed.D.
> Cheng Shiu University, Taiwan
>
>
>
> Brian Steuhl wrote:
>>
>> I have recently done this in textArea control and it took me the whole
>> weekend to figure out the complexities when dealing with styling as well and
>> escaping tags using nothing but xform extensions and xpath.  Pretty complex
>> but I can preload a textarea with a template and have controls change data
>> in the textarea as well as have users change data in the textarea keeping
>> things in synch.
>>
>> Brian Steuhl
>> website: http://BTMSoftwareSolutions.com
>> business email: [hidden email]
>> cell: 908-421-0742
>>
>> home office: 732-961-3187
>> RSS Feed To My Blog:
>>
>> Business Process Modeling - BTMSoftwareSolutions.com
>> <http://feeds.feedburner.com/%7Er/blogspot/Blxz/%7E6/4>
>>
>>
>>
>> ------------------------------------------------------------------------
>> *From:* Erik Bruchez <[hidden email]>
>> *To:* [hidden email]
>> *Sent:* Tue, September 28, 2010 5:45:03 PM
>> *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]
>> <mailto:[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]>
>> > [mailto:[hidden email] <mailto:[hidden email]>] On Behalf Of Erik
>> > Bruchez
>> > Sent: Tuesday, September 28, 2010 4:22 PM
>> > To: [hidden email] <mailto:[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]
>> > <mailto:[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]
>> >> <mailto:[hidden email]>
>> >> mailing list.
>> >> To unsubscribe: mailto:[hidden email]
>> >> <mailto:[hidden email]>
>> >> For general help: mailto:[hidden email]
>> >> <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]
>> > <mailto:[hidden email]> mailing list.
>> > To unsubscribe: mailto:[hidden email]
>> > <mailto:[hidden email]>
>> > For general help: mailto:[hidden email]
>> > <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
>
>


--
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
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Re: RE: Re: Textarea to handle a nodeset

Stephanie Hall (TT)
In reply to this post by Erik Bruchez
So you're suggesting binding the textarea to some temporary node, right? Then then somehow parsing all the data under <files> into it? And then, upon xforms-value-changed, parse the stuff back into the <files><file> fields?

The only problem I see with that is having to have a temporary instance to bind to the textarea.  Since this display can have technically an unlimited amount of projects and each project can have a ton of different file sets in its files node, it would really clutter up the design to have to create possibly 50 or so temporary instances, especially on the fly.

Thanks,
Stephanie

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Thursday, October 07, 2010 10:32 PM
To: [hidden email]
Subject: [ops-users] Re: RE: Re: RE: Re: Textarea to handle a nodeset

Yes it does.

Why not bind the textarea to a node (not your "file" fields). Then upon xforms-value-changed, parse the value and set the bits into your actual "file" fields?

-Erik

On Wed, Sep 29, 2010 at 6:52 AM, Stephanie Hall (TT) <[hidden email]> wrote:

> 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
>>
>>
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: RE: Re: RE: Re: Textarea to handle a nodeset

Erik Bruchez
Administrator
Stephanie,

That's right. So this would be best encapsulated in an XBL component,
which support local models. See:

http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components-guide

-Erik

On Mon, Oct 11, 2010 at 6:50 AM, Stephanie Hall (TT)
<[hidden email]> wrote:

> So you're suggesting binding the textarea to some temporary node, right? Then then somehow parsing all the data under <files> into it? And then, upon xforms-value-changed, parse the stuff back into the <files><file> fields?
>
> The only problem I see with that is having to have a temporary instance to bind to the textarea.  Since this display can have technically an unlimited amount of projects and each project can have a ton of different file sets in its files node, it would really clutter up the design to have to create possibly 50 or so temporary instances, especially on the fly.
>
> Thanks,
> Stephanie
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez
> Sent: Thursday, October 07, 2010 10:32 PM
> To: [hidden email]
> Subject: [ops-users] Re: RE: Re: RE: Re: Textarea to handle a nodeset
>
> Yes it does.
>
> Why not bind the textarea to a node (not your "file" fields). Then upon xforms-value-changed, parse the value and set the bits into your actual "file" fields?
>
> -Erik
>
> On Wed, Sep 29, 2010 at 6:52 AM, Stephanie Hall (TT) <[hidden email]> wrote:
>> 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
>>>
>>>
>>
>>
>> --
>> 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
>
>


--
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