Failure reading parameter 'product' of component shop/Product: productpopupzone.questionform: Could not find a coercion from type java.lang.String to type ru.kupivip.service.shop.model.ProductDesc

2012-02-17 Thread m!g
Hi, I've got strange error. Here is example: Component code: On page rendering I'm getting error: org.apache.tapestry5.ioc.internal.util.TapestryException: Failure reading parameter 'value' of component shop/Product:productpopupzone.questionform.feedbacksubject: Failure reading parameter 'prod

Re: Antwort: Tapestry 5 error "Caused by: java.lang.RuntimeException: Literal values are not updateable"

2011-02-11 Thread m!g
Hi, there is a lot of place in my project where this situation occurs. There is one of them (I removed unnecessary code): Main template with parameter / property "title" (the title meant to be displaed in head section): public class MainTemplate { @Parameter(defaultPrefix="literal")

Re: Antwort: Tapestry 5 error "Caused by: java.lang.RuntimeException: Literal values are not updateable"

2011-02-07 Thread m!g
I made only page just for simplicity. OK, Here is component with parameter: public class TestPage { @Component(parameters={"test=false"}) private Test test; } http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xml:space="preserve"> public class Test { @Paramete

Tapestry 5 error "Caused by: java.lang.RuntimeException: Literal values are not updateable"

2011-02-07 Thread m!g
Hi everyone. Here is a simple test application: public class Test { @Parameter(value="false") @Property private boolean test; @Component private Form form; @Inject private Request request; Object onSubmitFromForm() {

Re: Tapestry 5.2 Disable element id autogeneration

2011-01-19 Thread m!g
I've made a little fix in Form component: /** * Id parameter */ @Parameter private String id; void beginRender(MarkupWriter writer) { if (null != id && !"".equals(id.trim())) { clientId = id; } else { clientId = javascriptSupport.alloca

Re: Tapestry 5.2 Disable element id autogeneration

2011-01-19 Thread m!g
Entire form is inside the zone component, including submit button. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-Disable-element-id-autogeneration-tp3347539p3347955.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Tapestry 5.2 Disable element id autogeneration

2011-01-19 Thread m!g
Hi everyone. How can I disable autogeneration of form ids? I have a form which is located inside zone. JAVA: @Component(parameters = { "id=literal:registrationFormZone", "update=show" }) private Zone registrationFormZone; @Component(id="registrationForm", parameters = { "id=literal:regis