Xform Repeat problem

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

Xform Repeat problem

Marc.Benimeli
Hi all,

I have some problems with nested repeat.
See the sample attached.

The 'Field occurrence' seems to work the right way (add and delete)

With the 'Groupfield occurrence' you can 'add' but the 'delete' doesn't
work. The model seems to be ok but not what is displayed. When you play
with 'add', 'delete'('identification') and then change of selected
element on the left('identification numbers'), the part that have to be
deleted appear at the end.

I hope I'm as clear as possible. ;-)

These problems occur with "Pre-warning" builds(20,21,22... july) and
also with the last one.
I give a try with the sandbox with the same results.

I also found that the HTML with the textarea does not work for me.

Marc


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

test.xhtml (46K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Xform Repeat problem

Alessandro  Vernet
Administrator
Hi Marc,

At this point your example throws an NPE in the sandbox. So we'll come
back to this when this NPE is fixed. For tracking, here is the
reference to the bug entry:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=305844&group_id=168&atid=350207

Alex

On 7/26/06, [hidden email] <[hidden email]> wrote:

> Hi all,
>
> I have some problems with nested repeat.
> See the sample attached.
>
> The 'Field occurrence' seems to work the right way (add and delete)
>
> With the 'Groupfield occurrence' you can 'add' but the 'delete' doesn't
> work. The model seems to be ok but not what is displayed. When you play
> with 'add', 'delete'('identification') and then change of selected
> element on the left('identification numbers'), the part that have to be
> deleted appear at the end.
>
> I hope I'm as clear as possible. ;-)
>
> These problems occur with "Pre-warning" builds(20,21,22... july) and
> also with the last one.
> I give a try with the sandbox with the same results.
>
> I also found that the HTML with the textarea does not work for me.
>
> Marc
>
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Setting up maxlength for input box

Joseph Lawrence
Alex,
    How can I limit the maximum number of characters that can be entered into an input box.
    I tried working out the following but it doesn't work, though it works with the secret box.
 
<xforms:input ref="instance('main')/data" xhtml:maxlength="5"/>
 
Thanks
Joseph


Groups are talking. We´re listening. Check out the handy changes to Yahoo! Groups.

--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Setting up maxlength for input box

Ryan Puddephatt
You could use a xforms:bind/@constraint="string-len(.) le 5" I think thats the right xpath function, although you'd best check
 
Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

 


From: joseph lawrence [mailto:[hidden email]]
Sent: 28 July 2006 06:36
To: [hidden email]
Subject: [ops-users] Setting up maxlength for input box

Alex,
    How can I limit the maximum number of characters that can be entered into an input box.
    I tried working out the following but it doesn't work, though it works with the secret box.
 
<xforms:input ref="instance('main')/data" xhtml:maxlength="5"/>
 
Thanks
Joseph


Groups are talking. We´re listening. Check out the handy changes to Yahoo! Groups.


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Setting up maxlength for input box

Erik Bruchez
Administrator
You should certainly do that for validation purposes. In addition, you
can add xxforms:size="5" on xforms:input.

-Erik

Ryan Puddephatt wrote:

> You could use a xforms:bind/@constraint="string-len(.) le 5" I think
> thats the right xpath function, although you'd best check
>  
> Ryan
>
> Ryan Puddephatt
> Software Engineer
>  
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>  
> e> [hidden email] <mailto:[hidden email]>
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
> w> www.teleflex.com <http://www.teleflex.com/>
>
>  
>
>     ------------------------------------------------------------------------
>     *From:* joseph lawrence [mailto:[hidden email]]
>     *Sent:* 28 July 2006 06:36
>     *To:* [hidden email]
>     *Subject:* [ops-users] Setting up maxlength for input box
>
>     Alex,
>         How can I limit the maximum number of characters that can be
>     entered into an input box.
>         I tried working out the following but it doesn't work, though it
>     works with the secret box.
>      
>     <xforms:input ref="instance('main')/data" xhtml:maxlength="5"/>
>      
>     Thanks
>     Joseph
>
>     ------------------------------------------------------------------------
>     Groups are talking. We´re listening. Check out the handy changes to
>     Yahoo! Groups.
>     <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=41144/*http://groups.yahoo.com/local/newemail.html>
>

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws