Problem solved by manually create everything from scratch rather than
copy/past existing html, wod code from Examples dir.

Thanks,

kevin 
-----Original Message-----
From: Chuck Hill [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 3 January 2008 3:15 p.m.
To: Ren, Kevin
Cc: [email protected]
Subject: Re: Simple HelloWorld example app question


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






"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to