Hi,
I deployed ops in tomcat and tried, for starters, to drop the `Hello World XForms' example into the XForms Sandbox. Initially this led to a NullPointerException somewhere deep. Adding "xmlns="http://www.w3.org/1999/xhtml"" to the HTML element made the NullPointerException go away, but now I get a page with "Please enter your first name:", but no input field. Looking at the source of the generated page, there is an input box: <span id="xforms-element-3" class="xforms-control xforms-input xforms-disabled xforms-incremental"> <span class="xforms-date-display"></span> <input type="text" name="$portlet$p1.xforms-element-3" value="" class="xforms-input-input xforms-type-string"> <span class="xforms-showcalendar xforms-type-string"></span> </span> <label class="xforms-alert xforms-alert-active" for="xforms-element-3"></label> What do I need to do to make the input visible? Kind regards, Arnout -- 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 |
Administrator
|
Arnout,
Where did you get that "Hello World XForms" example? Can you send that file so we can have a look at it? -Erik Arnout Engelen wrote: > Hi, > > I deployed ops in tomcat and tried, for starters, to drop the `Hello > World XForms' example into the XForms Sandbox. > > Initially this led to a NullPointerException somewhere deep. Adding > "xmlns="http://www.w3.org/1999/xhtml"" to the HTML element made the > NullPointerException go away, but now I get a page with "Please enter > your first name:", but no input field. > > Looking at the source of the generated page, there is an input box: > > <span id="xforms-element-3" class="xforms-control xforms-input > xforms-disabled xforms-incremental"> > <span class="xforms-date-display"></span> > <input type="text" name="$portlet$p1.xforms-element-3" value="" > class="xforms-input-input xforms-type-string"> > <span class="xforms-showcalendar xforms-type-string"></span> > </span> > <label class="xforms-alert xforms-alert-active" > for="xforms-element-3"></label> > > > What do I need to do to make the input visible? > > > Kind regards, > > Arnout 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 |
Erik Bruchez schreef:
> Where did you get that "Hello World XForms" example? Can you send that > file so we can have a look at it? I clicked 'view source' on http://localhost:8080/ops/goto-example/tutorial-hello3 (which is a deployment of ops-3.0.1.200602032326) . I fiddled with it some more, comparing to the source on the filesystem (which, surprisingly, is different). The trick seems to be the xmlns="" attribute for first-name. http://www.orbeon.com/ops/goto-example/tutorial-hello3 also shows the correct source. Arnout (attached the file anyway fyi) > Arnout Engelen wrote: >> Hi, >> >> I deployed ops in tomcat and tried, for starters, to drop the `Hello >> World XForms' example into the XForms Sandbox. >> >> Initially this led to a NullPointerException somewhere deep. Adding >> "xmlns="http://www.w3.org/1999/xhtml"" to the HTML element made the >> NullPointerException go away, but now I get a page with "Please enter >> your first name:", but no input field. >> >> Looking at the source of the generated page, there is an input box: >> >> <span id="xforms-element-3" class="xforms-control xforms-input >> xforms-disabled xforms-incremental"> >> <span class="xforms-date-display"></span> >> <input type="text" name="$portlet$p1.xforms-element-3" value="" >> class="xforms-input-input xforms-type-string"> >> <span class="xforms-showcalendar xforms-type-string"></span> >> </span> >> <label class="xforms-alert xforms-alert-active" >> for="xforms-element-3"></label> >> >> >> What do I need to do to make the input visible? >> >> >> Kind regards, >> >> Arnout > > ------------------------------------------------------------------------ > > > -- > 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 > -- 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 opshello.xhtml (906 bytes) Download Attachment |
Administrator
|
Arnout,
Yes, the source code viewer you looked at has two modes: one where you see the formatted XML, and one where you see the source as text. The former reformats the XML and tends to lose information such as certain namespace declarations. The latter however shows the source as is, and that's the one you should use. Maybe the issue is that you are using 3.0.1 which by now is pretty old. Without checking, I don't remember if the newer source code viewer was in place as of 3.0.1. -Erik Arnout Engelen wrote: > Erik Bruchez schreef: >> Where did you get that "Hello World XForms" example? Can you send that >> file so we can have a look at it? > I clicked 'view source' on > http://localhost:8080/ops/goto-example/tutorial-hello3 (which is a > deployment of ops-3.0.1.200602032326) . > > I fiddled with it some more, comparing to the source on the filesystem > (which, surprisingly, is different). The trick seems to be the xmlns="" > attribute for first-name. > > http://www.orbeon.com/ops/goto-example/tutorial-hello3 also shows the > correct source. > > > Arnout > (attached the file anyway fyi) >> Arnout Engelen wrote: >>> Hi, >>> >>> I deployed ops in tomcat and tried, for starters, to drop the `Hello >>> World XForms' example into the XForms Sandbox. >>> >>> Initially this led to a NullPointerException somewhere deep. Adding >>> "xmlns="http://www.w3.org/1999/xhtml"" to the HTML element made the >>> NullPointerException go away, but now I get a page with "Please enter >>> your first name:", but no input field. >>> >>> Looking at the source of the generated page, there is an input box: >>> >>> <span id="xforms-element-3" class="xforms-control xforms-input >>> xforms-disabled xforms-incremental"> >>> <span class="xforms-date-display"></span> >>> <input type="text" name="$portlet$p1.xforms-element-3" value="" >>> class="xforms-input-input xforms-type-string"> >>> <span class="xforms-showcalendar xforms-type-string"></span> >>> </span> >>> <label class="xforms-alert xforms-alert-active" >>> for="xforms-element-3"></label> >>> >>> >>> What do I need to do to make the input visible? >>> >>> >>> Kind regards, >>> >>> Arnout >> >> ------------------------------------------------------------------------ >> >> >> -- >> 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 >> > > > ------------------------------------------------------------------------ > > > -- > 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 -- 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 |
Free forum by Nabble | Edit this page |