You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Elad Messing <El...@sphera.com> on 2004/02/10 15:46:47 UTC

- Its out of the DTD ?

Hi all
	I am trying to get a string out of the property file and into my
component HTML.
	I tried this in the jwc file - but got an exception :

<component-specification class="org.apache.tapestry.BaseComponent"
allow-body="yes" allow-informal-parameters="yes">    
	<component id="insertTitle" type="Insert" >
		<string-binding name="value"
key="PleaseWaitWindow.title"/>
	</component>
</component-specification>



Is <string-binding> out of the DTD ? What is the proper why of doing
this ? I thought I am following the documentation... 
	

Elad Messing

Sphera Tech. LTD
 
<http://www.sphera.com/demosite/index.htm>



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: - Its out of the DTD ?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Feb 10, 2004, at 10:04 AM, Erik Hatcher wrote:
> On Feb 10, 2004, at 9:46 AM, Elad Messing wrote:
>> Is <string-binding> out of the DTD ? What is the proper why of doing
>> this ? I thought I am following the documentation...
>
> Use <message-binding> instead, for what you were trying to do (get a 
> string from the message resources).  Or <static-binding> for a fixed 
> string.

On a related note, be sure to use an environment that validates your 
XML files either within your IDE or as part of your build process.  
IDEA IntelliJ ties beautifully to the DTD allowing me to very rapidly 
add new elements - probably as quickly or moreso than I could do with a 
tool.  With Ant you can use the <xmlvalidate> task before building your 
WAR files, making the process fail if a file is invalid.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: - Its out of the DTD ?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Feb 10, 2004, at 9:46 AM, Elad Messing wrote:
> Is <string-binding> out of the DTD ? What is the proper why of doing
> this ? I thought I am following the documentation...

Use <message-binding> instead, for what you were trying to do (get a 
string from the message resources).  Or <static-binding> for a fixed 
string.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org