Re: Simple HelloWorld example app question
Re: Simple HelloWorld example app question
- Subject: Re: Simple HelloWorld example app question
- From: Chuck Hill <email@hidden>
- Date: Wed, 2 Jan 2008 18:14:33 -0800
On Jan 2, 2008, at 6:03 PM, Ren, Kevin wrote:
<snip>
[2008-01-03 14:46:42 NZDT] <main> Waiting for requests…
Everything is fine, after app is deploied. If I did not setup
<Webobject name=myForm> ….</Webobject> in hello.html I can see the
first page.
But if I setup myForm tag, after I copy/past the URL to browser I
got error, detail like below.
[2008-01-03 14:46:49 NZDT] <WorkerThread15>
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException
[com.webobjects.appserver._private.WODeclarationFormatException]
<WOHTMLTemplateParser> no declaration for dynamic element (or
component) named myForm:
<com.webobjects.appserver._private.WOComponentDefinition: Error
parsing template for Component : 'file:/home/kevin/Apple/Local/
Library/WebObjects/Applications/HelloWorld.woa/Contents/Resources/
English.lproj/Main.wo/':
com.webobjects.appserver._private.WODeclarationFormatException:
<WOHTMLTemplateParser> no declaration for dynamic element (or
component) named myForm
[2008-01-03 14:46:49 NZDT] <WorkerThread15>
com.webobjects.foundation.NSForwardException for
com.webobjects.appserver._private.WODeclarationFormatException:
<WOHTMLTemplateParser> no declaration for dynamic element (or
component) named myForm
Do I need give some values for WOForm in WO5.3?
Yes, if you are using that syntax in the HTML file.
I just gave empty in the code like
myForm:WOForm{
}
The same result in the development-mode which is I setup in Ubuntu,
do I lost some framework?
No. It sounds like you are have a difference in case (MyForm vs
myForm), or you are adding this to the wrong .wod file. It needs to
go in Resources/English.lproj/Main.wo/Main.wod
Chuck
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden