You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Hugo Palma <hp...@digitalis.pt> on 2005/05/17 20:54:56 UTC
Not able to inject state object
I'm trying to inject the visit object in a component specification using
the following declaration:
<inject-state property="visit" object="visit"/>
My IDE validates ok with the DTD and i checked the DTD myself just to
make sure and it's correct. But when i run the application i get an
exception:
Unable to read
classpath:/pt/digitalis/siges/view/components/border/Border.jwc: Element
type "inject-state" must be declared.
In the documentation it says that we should use:
<inject name="visit" type="state" object="visit"/>
but i also get an error on this because the inject element doesn't have
a type attribute(i again checked the DTD and this it is right, it
doesn't have the attribute)
Any ideas on this ? Is it a bug ?
Cheers
Hugo
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
Re: Not able to inject state object
Posted by Geoff Longman <gl...@gmail.com>.
Sounds like a mismatch in the DTD you are using for validation as
<inject-state> was dropped in alpha-3 in favour of just using <inject>
Geoff
On 5/17/05, Hugo Palma <hp...@digitalis.pt> wrote:
> I'm trying to inject the visit object in a component specification using
> the following declaration:
>
> <inject-state property="visit" object="visit"/>
>
> My IDE validates ok with the DTD and i checked the DTD myself just to
> make sure and it's correct. But when i run the application i get an
> exception:
>
> Unable to read
> classpath:/pt/digitalis/siges/view/components/border/Border.jwc: Element
> type "inject-state" must be declared.
>
> In the documentation it says that we should use:
>
> <inject name="visit" type="state" object="visit"/>
>
> but i also get an error on this because the inject element doesn't have
> a type attribute(i again checked the DTD and this it is right, it
> doesn't have the attribute)
>
> Any ideas on this ? Is it a bug ?
>
> Cheers
>
> Hugo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
Re: Not able to inject state object
Posted by Hugo Palma <hp...@digitalis.pt>.
Thanks, i'll the one in CVS meanwhile.
Cheers
Hugo
Howard Lewis Ship wrote:
> The DTD on the web site is out of date. I can correct it shortly. This is a
> very recent change.
>
> On 5/17/05, Hugo Palma <hp...@digitalis.pt> wrote:
>
>>I'm trying to inject the visit object in a component specification using
>>the following declaration:
>>
>><inject-state property="visit" object="visit"/>
>>
>>My IDE validates ok with the DTD and i checked the DTD myself just to
>>make sure and it's correct. But when i run the application i get an
>>exception:
>>
>>Unable to read
>>classpath:/pt/digitalis/siges/view/components/border/Border.jwc: Element
>>type "inject-state" must be declared.
>>
>>In the documentation it says that we should use:
>>
>><inject name="visit" type="state" object="visit"/>
>>
>>but i also get an error on this because the inject element doesn't have
>>a type attribute(i again checked the DTD and this it is right, it
>>doesn't have the attribute)
>>
>>Any ideas on this ? Is it a bug ?
>>
>>Cheers
>>
>>Hugo
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>>
>>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
Re: Not able to inject state object
Posted by Howard Lewis Ship <hl...@gmail.com>.
The DTD on the web site is out of date. I can correct it shortly. This is a
very recent change.
On 5/17/05, Hugo Palma <hp...@digitalis.pt> wrote:
>
> I'm trying to inject the visit object in a component specification using
> the following declaration:
>
> <inject-state property="visit" object="visit"/>
>
> My IDE validates ok with the DTD and i checked the DTD myself just to
> make sure and it's correct. But when i run the application i get an
> exception:
>
> Unable to read
> classpath:/pt/digitalis/siges/view/components/border/Border.jwc: Element
> type "inject-state" must be declared.
>
> In the documentation it says that we should use:
>
> <inject name="visit" type="state" object="visit"/>
>
> but i also get an error on this because the inject element doesn't have
> a type attribute(i again checked the DTD and this it is right, it
> doesn't have the attribute)
>
> Any ideas on this ? Is it a bug ?
>
> Cheers
>
> Hugo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>
>
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com