You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Gentry, Michael (Contractor)" <mi...@fanniemae.com> on 2005/12/22 17:17:27 UTC

Attribute "expression" must be declared for element type "binding".

I'm starting to convert something written in T3 to T4 and keep getting
these types of error messages:

Unable to read context:/WEB-INF/Home.page: Attribute "expression" must
be declared for element type "binding".

context:/WEB-INF/Home.page, line 23, column 49

21	 <component id="isLoggedIn" type="Conditional">
22	 <binding name="condition" value="visit.isLoggedIn"/>
23	 <binding name="element" expression="'div'"/>
24	 </component>

When I replace "expression" with "value" the message goes away.

A) I'm assuming "value" is the proper attribute name now,
B) The error message is incorrect/misleading (since I obviously had
"expression" there in the first place).

Can anyone confirm my assumptions?

Thanks!

/dev/mrg

PS. This isn't mentioned in
http://jakarta.apache.org/tapestry/UsersGuide/upgrade.html

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


Re: Attribute "expression" must be declared for element type "binding".

Posted by Ron Piterman <rp...@gmx.net>.
replace "expression" with value.


Gentry, Michael (Contractor) wrote:
> I'm starting to convert something written in T3 to T4 and keep getting
> these types of error messages:
> 
> Unable to read context:/WEB-INF/Home.page: Attribute "expression" must
> be declared for element type "binding".
> 
> context:/WEB-INF/Home.page, line 23, column 49
> 
> 21	 <component id="isLoggedIn" type="Conditional">
> 22	 <binding name="condition" value="visit.isLoggedIn"/>
> 23	 <binding name="element" expression="'div'"/>
> 24	 </component>
> 
> When I replace "expression" with "value" the message goes away.
> 
> A) I'm assuming "value" is the proper attribute name now,
> B) The error message is incorrect/misleading (since I obviously had
> "expression" there in the first place).
> 
> Can anyone confirm my assumptions?
> 
> Thanks!
> 
> /dev/mrg
> 
> PS. This isn't mentioned in
> http://jakarta.apache.org/tapestry/UsersGuide/upgrade.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


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


Re: Attribute "expression" must be declared for element type "binding".

Posted by Ron Piterman <rp...@gmx.net>.
try again:
its a normal sax parser error message, which means, the attribute 
"expression" must be declaired in the dtd, and it is not.
not a tapestry thing - if you misspell your hibernate or anyother app 
xml file you get the same error message.

Gentry, Michael (Contractor) wrote:
> I'm starting to convert something written in T3 to T4 and keep getting
> these types of error messages:
> 
> Unable to read context:/WEB-INF/Home.page: Attribute "expression" must
> be declared for element type "binding".
> 
> context:/WEB-INF/Home.page, line 23, column 49
> 
> 21	 <component id="isLoggedIn" type="Conditional">
> 22	 <binding name="condition" value="visit.isLoggedIn"/>
> 23	 <binding name="element" expression="'div'"/>
> 24	 </component>
> 
> When I replace "expression" with "value" the message goes away.
> 
> A) I'm assuming "value" is the proper attribute name now,
> B) The error message is incorrect/misleading (since I obviously had
> "expression" there in the first place).
> 
> Can anyone confirm my assumptions?
> 
> Thanks!
> 
> /dev/mrg
> 
> PS. This isn't mentioned in
> http://jakarta.apache.org/tapestry/UsersGuide/upgrade.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


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