Hi,

I 've tried to dynamically change the t:type attribute of an input
textfield by doing this:

<input t:type="prop:elementType"

the page class has a getElementType() method which returns a String with
the name of the desired type.

and I obtained this error:

    Processing of request failed with uncaught exception: Exception
assembling root component of page ivr/CallLogic: Unable to resolve
'prop:elementType' ...


The default binding prefix of t:type for TextField is LITERAL, so I thought
that I could use prop: to change it to PROPERTY but tapestry is still
treating the value as a LITERAL as you can see it looks for a type with
name prop:elementType.

Is that the correct behaviour?

Perhaps this can't be done..., I will use a different approach to do waht I
needed here, but just wanted to ask you why the t:type parameter has that
special behaviour of not accepting other binding prefixes rather than the
LITERAL default.

thank you.


Nicolás.-

Reply via email to