Great! It works!!! Davor many many thanks !
:clap:
I've created an interface ITestInterface
at it.sailingweb.framework.web level with the getTf() method,
that my component SailingInput now implements,
and now everything works fine!
I can not understand exactly why my embedded TextField don't
I'm still unsure why it happens,
can you try following:
etract an interface with method getTf();
na put it outside components package
for example:
it.sailingweb.framework.web.InputWrapper
Tapestry instruments classes in components,base,pages packages,
and holds them in a separate ClassLoader...
Hi Davor,
we are developing an application with our own component,
and we are trying to validate a textfield like embedded component of our
component.
Our own component is like that
Sample.tml
In SailingInput.tml a simple tamplate like that
http://tapestry.apache.org/schema/tapestry_5_0_0.xs
Class cast exceptions happen
if you have non component classes inside components or pages packages...
post some code and say what packages are those classes in...
Davor Hrg
On Jan 23, 2008 10:12 AM, riccaruf
<[EMAIL PROTECTED]> wrote:
>
> Hi Dave thank you very mutch for your reply!! Oops..what
Hi Dave thank you very mutch for your reply!! Oops..what I dummy I am! I miss
something in the post preview :-(( , and
Yes yes my test was exactly in the way you write
if (field instanceof MyInput)
But it doesn't work!
The log messages show me that the instance tapestry pass me as p
I think your test is wrong. Don't you want
if (field instanceof MyInput){
?
Dave
We must begin not just to act, but to think, for there is no better slave
than the one who believes his slavery to be freedom, and we are in
no greater peril than when we cannot see the chai