Issue is related to Tapestry 4 validation issue. HTML : <input jwcid="hotelName@TextField" value="ognl:hotelsFormBean.hotelName" size="30"/>
where this PaymentSelection is component, that renders the html dynamically that consist of code as text field. Validation Java Code : FormBean bean = this.getHotelsFormBean(); IValidationDelegate delegate = this.getValidationDelegate(); boolean isValid = super.validateForm(bean, delegate); try { if(Utils.isNullOrEmpty(bean.getHotelName())) { String message = this.getMessages().getMessage("bb_ERR5"); this.error(delegate, (IFormComponent) this.getComponent("hotelName"), message, ValidationConstraint.REQUIRED); isValid = false; } message = this.getMessage("valid", new String[] { "cardnum" }); this.error(delegate, (IFormComponent) this.getComponent("paymentSelectionComponent").getComponent("code"), message, ValidationConstraint.REQUIRED); this.getComponent("paymentSelectionComponent").getComponent("code") : this says as component out of the particular page. but it doesn't bind the error to the component. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-access-a-component-any-text-field-from-custom-component-tp5718802.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org