Repeat working in XML but not in GUI

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

Repeat working in XML but not in GUI

Stephanie Hall (TT)

Hi,

 

I’m trying to get my form to do a repeat of some nested elements, specifically, sourceItems.  It appears the repeat is working properly in the logs, but nothing is happening onscreen.  I have the debugging output turned on so I can see when the new sourceItems are added to the XML, but from the screen it would appear it is not working.   There is a message in the logs that might give a clue as to what is happening: “refresh skipping sending of UI events because no listener was found”.  I’ve attached a sample JSP file so you can run it in the sandbox if desired – there is no java code in it.

 

Any help would be much appreciated.  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

example.jsp (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Repeat working in XML but not in GUI

Alessandro  Vernet
Administrator
Stephanie,

On Mon, Oct 26, 2009 at 9:28 AM, Stephanie Hall (TT)
<[hidden email]> wrote:
> I’m trying to get my form to do a repeat of some nested elements,
> specifically, sourceItems.  It appears the repeat is working properly in the
> logs, but nothing is happening onscreen.  I have the debugging output turned
> on so I can see when the new sourceItems are added to the XML, but from the
> screen it would appear it is not working.   There is a message in the logs
> that might give a clue as to what is happening: “refresh skipping sending of
> UI events because no listener was found”.  I’ve attached a sample JSP file
> so you can run it in the sandbox if desired – there is no java code in it.

In the repeat, you're just missing a "source" in the nodeset
expression. It work with:

<xforms:repeat nodeset="source/sourceItem" id="repeatSourceItems">

Full source: http://pastie.org/671082

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet