You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Christoph Jaeger <ch...@derwald.at> on 2008/03/14 22:23:13 UTC

[T5] BeanEditForm & Validation / Translate

Hi,

I have problems using validation in BeanEditForm. I can not inject 
fields into my page using

@Component(id = "userid")
private TextField userIdField;

(error message: Component test/PersonBeanEditForm does not contain an 
embedded component with id 'userid')

unless there is a separate block like this in my .tml file:
<t:Parameter name="userid">
  <t:Label for="userid" />
  <t:TextField t:id="userid" value="person.userid"/>
</t:Parameter>

Also my

void onValidateFromUserId(String userId)  throws ValidationException

method in the page is only called if the <t:Parameter> block above is 
defined. Without this block, the html looks fine (an input field with 
id="userId" is created), but the onValidateFrom... method is not called 
(the same is true for onParseClientFromUserId(String input) and String 
onToClientFromUserId() methods).

I use Tapestry 5.0.10.

Do I miss something here, or should I file a JIRA?

Best Regards,

Christoph






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