I have been trying to get this simple form working but am having difficulty:
The form is fine when the xforms:secret element is turned into an xforms:input element however fails without a helpful error message otherwise. I would much appreciate any hints with regards to the xforms:secret element. Thankyou for your time, Ross. --------------------------------------------------------------------------------------- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd "> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xml:lang="en-GB"> <head> <title>XForms Login</title> <xforms:model> <xforms:instance> <user> <username/> <password/> </user> </xforms:instance> <xforms:bind nodeset="/user/username" required="true()"/> <xforms:bind nodeset="/user/password" required="true()" constraint="string-length(.) >= 6"/> <xforms:submission id="loginSubmission" method="post" action="/Class/Set/Service/login" indent="true"/> </xforms:model> </head> <body> <div class="form"> <xforms:group ref="/user"> <div class="collection"> <fieldset> <legend>login details</legend> <div class="field"> <xforms:input ref="username"> <xforms:label>username</xforms:label> </xforms:input> </div> <div class="field"> <xforms:secret ref="password"> <!-- Here!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!--> <xforms:label>password</xforms:label> </xforms:secret> <!-- Here!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!--> </div> </fieldset> </div> <div class="submit"> <xforms:submit submission="loginSubmission"> <xforms:label>login</xforms:label> </xforms:submit> </div> </xforms:group> </div> </body> </html> --------------------------------------------------------------------------- -- telephones 07921 906 453 (mobile) 07879 052 143 (alternative mobile) 01573 225 400 (Kelso) address 1 Tweedsyde Park Kelso Roxburghshire TD5 7RF -- 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 |
Appologies for ignoring the default namespace advice this morning.
On 03/03/06, Ross Horne <[hidden email]> wrote: I have been trying to get this simple form working but am having difficulty: -- telephones 07921 906 453 (mobile) 07879 052 143 (alternative mobile) 01573 225 400 (Kelso) address 1 Tweedsyde Park Kelso Roxburghshire TD5 7RF -- 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 |
Free forum by Nabble | Edit this page |