Hi,
Sorry if this has been already answered, but I am not able to find any answer (probably due to the fact that 'number' is a quite common word :-)) According with the W3C documentation, the xf:repeat element has an optional attribute 'number': http://www.w3.org/TR/xforms11/#ui-repeat
Thanks a lot Isi -- 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 |
Administrator
|
Hi,
No, Orbeon Forms doesn't support this attribute. Note that we have a higher-level datatable component that supports paging: http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/datatable -Erik 2010/5/31 Legido Martínez, Isidoro <[hidden email]>: > Hi, > > Sorry if this has been already answered, but I am not able to find any > answer (probably due to the fact that 'number' is a quite common word :-)) > > According with the W3C documentation, the xf:repeat element has an optional > attribute 'number': > > http://www.w3.org/TR/xforms11/#ui-repeat > number: Author-optional hint to the XForms Processor as to how many elements > from the collection to display. So, does Orbeon support it? I have tried it, > but it seems nothing happens after I have created more items that 'number' > (I would expect some kind of 'Next' 'Previous' links). > > Thanks a lot > > Isi > > > -- > 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 |
Hi Erik,
Thanks for the reply, I will take a look to that component, but I'm not sure that it fits in my needs. In my case, the structure that is repeated is a complex node, so it can not be displayed as a tabular table. By the way, do yo expect to support the 'number' attribute in the near future? Thanks a lot Isi On 31 May 2010 20:10, Erik Bruchez <[hidden email]> wrote: Hi, -- 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 |
Administrator
|
Isi,
We don't have immedicate plans to support this, but it would be interesting to know what you think the behavior of @number attribute should be. In the XForms spec this is pretty vague at the moment. Also, you could write your own XBL component to handle something like this. E.g.: <isi:repeat number="..." ...> could provide some behavior without modifying the XForms engine. In fact, that's how the datatable is implemented. -Erik 2010/5/31 Legido Martínez, Isidoro <[hidden email]>: > Hi Erik, > > Thanks for the reply, I will take a look to that component, but I'm not sure > that it fits in my needs. In my case, the structure that is repeated is a > complex node, so it can not be displayed as a tabular table. By the way, do > yo expect to support the 'number' attribute in the near future? > > Thanks a lot > > Isi > > > On 31 May 2010 20:10, Erik Bruchez <[hidden email]> wrote: >> >> Hi, >> >> No, Orbeon Forms doesn't support this attribute. >> >> Note that we have a higher-level datatable component that supports paging: >> >> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/datatable >> >> -Erik >> >> 2010/5/31 Legido Martínez, Isidoro <[hidden email]>: >> > Hi, >> > >> > Sorry if this has been already answered, but I am not able to find any >> > answer (probably due to the fact that 'number' is a quite common word >> > :-)) >> > >> > According with the W3C documentation, the xf:repeat element has an >> > optional >> > attribute 'number': >> > >> > http://www.w3.org/TR/xforms11/#ui-repeat >> > number: Author-optional hint to the XForms Processor as to how many >> > elements >> > from the collection to display. So, does Orbeon support it? I have tried >> > it, >> > but it seems nothing happens after I have created more items that >> > 'number' >> > (I would expect some kind of 'Next' 'Previous' links). >> > >> > Thanks a lot >> > >> > Isi >> > >> > >> > -- >> > 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 |
Well, I would expect that only 'number' items are shown and, if the total of itmes exceed numbers lins 'Next' and 'Previous' are provided. Probably the simplest implementation could be done with a switch/case, where each case has a number (the index) and only those that are in range are shown.
Concerning the xbl component, that will be the next think I will take a look at :-) Thanks a lot Isi
On 4 June 2010 05:37, Erik Bruchez <[hidden email]> wrote: Isi, -- 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 |
Administrator
|
I think a component along of the lines of fr:datatable, but maybe a
bit simpler, could work. -Erik 2010/6/3 Legido Martínez, Isidoro <[hidden email]>: > Well, I would expect that only 'number' items are shown and, if the total of > itmes exceed numbers lins 'Next' and 'Previous' are provided. Probably the > simplest implementation could be done with a switch/case, where each case > has a number (the index) and only those that are in range are shown. > Concerning the xbl component, that will be the next think I will take a look > at :-) > Thanks a lot > Isi > > On 4 June 2010 05:37, Erik Bruchez <[hidden email]> wrote: >> >> Isi, >> >> We don't have immedicate plans to support this, but it would be >> interesting to know what you think the behavior of @number attribute >> should be. In the XForms spec this is pretty vague at the moment. >> >> Also, you could write your own XBL component to handle something like >> this. E.g.: >> >> <isi:repeat number="..." ...> >> >> could provide some behavior without modifying the XForms engine. In >> fact, that's how the datatable is implemented. >> >> -Erik >> >> 2010/5/31 Legido Martínez, Isidoro <[hidden email]>: >> > Hi Erik, >> > >> > Thanks for the reply, I will take a look to that component, but I'm not >> > sure >> > that it fits in my needs. In my case, the structure that is repeated is >> > a >> > complex node, so it can not be displayed as a tabular table. By the way, >> > do >> > yo expect to support the 'number' attribute in the near future? >> > >> > Thanks a lot >> > >> > Isi >> > >> > >> > On 31 May 2010 20:10, Erik Bruchez <[hidden email]> wrote: >> >> >> >> Hi, >> >> >> >> No, Orbeon Forms doesn't support this attribute. >> >> >> >> Note that we have a higher-level datatable component that supports >> >> paging: >> >> >> >> >> >> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/datatable >> >> >> >> -Erik >> >> >> >> 2010/5/31 Legido Martínez, Isidoro <[hidden email]>: >> >> > Hi, >> >> > >> >> > Sorry if this has been already answered, but I am not able to find >> >> > any >> >> > answer (probably due to the fact that 'number' is a quite common word >> >> > :-)) >> >> > >> >> > According with the W3C documentation, the xf:repeat element has an >> >> > optional >> >> > attribute 'number': >> >> > >> >> > http://www.w3.org/TR/xforms11/#ui-repeat >> >> > number: Author-optional hint to the XForms Processor as to how many >> >> > elements >> >> > from the collection to display. So, does Orbeon support it? I have >> >> > tried >> >> > it, >> >> > but it seems nothing happens after I have created more items that >> >> > 'number' >> >> > (I would expect some kind of 'Next' 'Previous' links). >> >> > >> >> > Thanks a lot >> >> > >> >> > Isi >> >> > >> >> > >> >> > -- >> >> > 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 > > -- 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 |
Free forum by Nabble | Edit this page |