Non compatible component declaration in tml and java class not firing an
exception
----------------------------------------------------------------------------------
Key: TAP5-1667
URL: https://issues.apache.org/jira/browse/TAP5-1667
Project: Tapestry 5
Issue Type: Improvement
Reporter: Muhammad Gelbana
Priority: Minor
I by mistake, declared a "select" component in my .tml and declared a component
in the java class as TextField using @Component annotation. This is wrong as
Thiago pointed out but tapestry didn't throw an exception and just showed a
text field in the html shown to the user.
=============
*Index.tml*
<t:select model="literal:a,b,c" value="select" t:id="select"/>
*Index.page*
@Property
private String select;
@Component(id="select")
private *TextField* select
===============
Which is wrong. But shouldn't this fire an exception ?
Please refer to this thread for some detailed description:
http://mail-archives.apache.org/mod_mbox/tapestry-users/201109.mbox/%3CCAOjiMm5kJL+4p=zPt3OgoaA5e0VRVgmgg=ktrp2jq5mtirw...@mail.gmail.com%3E
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira