You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dimitri Taranov <dt...@silverpointcapital.com> on 2006/05/23 19:10:23 UTC
annotations
I am trying to use annotations. To start, I deleted a very simple
component specification and instead added an annotation @ComponentClass.
Do I just add annotations compile and deploy or do I have to compile
with Apt? When going with the first approach I get "Component not
found". When trying to Apt I get:
"warning: No annotation processors found but annotations present."
These jars are in my classpath:
commons-codec-1.3.jar ognl-2.6.7.jar
commons-fileupload-1.1.jar oro-2.0.8.jar
commons-io-1.1.jar tapestry-4.0.1.jar
commons-logging-api-1.0.4.jar tapestry-annotations-4.0.1.jar
hivemind-1.1.1.jar tapestry-contrib-4.0.1.jar
hivemind-lib-1.1.1.jar tapestry-portlet-4.0.1.jar
javassist-3.0.jar
I can't find any additional info on the topic. Do I need some other
jars?
Dimitri
Re: annotations
Posted by Andrei Chiritescu <an...@paragon-software.ro>.
Ok ... I kinda fixed part of the problem. My class extended a base class
which also had the @ComponentClass annotation so it was looking for a
template with that base class name.
Now there is another problem ... what if I want to extend an existing
component class, how can I make it use my new template?
Regards,
Andrei Chiritescu
James Carman wrote:
> Where did you have your html file? What did you have in your .application
> file? And, what was the fully-qualified name of the component class?
>
>
>
> -----Original Message-----
> From: Andrei Chiritescu [mailto:andrei@paragon-software.ro]
> Sent: Friday, May 26, 2006 11:55 AM
> To: Tapestry users
> Subject: Re: annotations
>
> I also tried to use a component that didn't have a jwc file and it seems
> that it cannot find the html template.
> With the following error : Could not find template for component
> SomeComponent in locale en.
>
> Does anyone know why or how can I specify the place template ?
>
> Thanks,
> Andrei Chiritescu
>
> James Carman wrote:
>
>> You don't need an empty spec, but you do need to tell tapestry where to
>>
> find
>
>> your page/component classes. In your application file:
>>
>> <DEFANGED_application>
>> <DEFANGED_meta key="org.apache.tapestry.page-class-packages"
>> value="com.myco.web.page"/>
>> <DEFANGED_meta key="org.apache.tapestry.component-class-packages"
>> value="com.myco.web.component"/>
>> </application>
>>
>> So, tapestry will look in those packages for pages/components. Hope that
>> helps.
>>
>> James
>>
>> -----Original Message-----
>> From: Alex Kartashev [mailto:alex.kartashev@gmail.com]
>> Sent: Friday, May 26, 2006 9:41 AM
>> To: Tapestry users
>> Subject: Re: annotations
>>
>> I believe you still you need to have a component spec, albeit an empty
>>
> one.
>
>> -Alex
>>
>> Dimitri Taranov wrote:
>>
>>
>>
>>> I am trying to use annotations. To start, I deleted a very simple
>>> component specification and instead added an annotation @ComponentClass.
>>> Do I just add annotations compile and deploy or do I have to compile
>>> with Apt? When going with the first approach I get "Component not
>>> found". When trying to Apt I get:
>>>
>>> "warning: No annotation processors found but annotations present."
>>>
>>>
>>>
>>> These jars are in my classpath:
>>>
>>> commons-codec-1.3.jar ognl-2.6.7.jar
>>>
>>> commons-fileupload-1.1.jar oro-2.0.8.jar
>>>
>>> commons-io-1.1.jar tapestry-4.0.1.jar
>>>
>>> commons-logging-api-1.0.4.jar tapestry-annotations-4.0.1.jar
>>>
>>> hivemind-1.1.1.jar tapestry-contrib-4.0.1.jar
>>>
>>> hivemind-lib-1.1.1.jar tapestry-portlet-4.0.1.jar
>>>
>>> javassist-3.0.jar
>>>
>>>
>>>
>>> I can't find any additional info on the topic. Do I need some other
>>> jars?
>>>
>>>
>>>
>>> Dimitri
>>>
>>>
>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: annotations
Posted by James Carman <ja...@carmanconsulting.com>.
Where did you have your html file? What did you have in your .application
file? And, what was the fully-qualified name of the component class?
-----Original Message-----
From: Andrei Chiritescu [mailto:andrei@paragon-software.ro]
Sent: Friday, May 26, 2006 11:55 AM
To: Tapestry users
Subject: Re: annotations
I also tried to use a component that didn't have a jwc file and it seems
that it cannot find the html template.
With the following error : Could not find template for component
SomeComponent in locale en.
Does anyone know why or how can I specify the place template ?
Thanks,
Andrei Chiritescu
James Carman wrote:
> You don't need an empty spec, but you do need to tell tapestry where to
find
> your page/component classes. In your application file:
>
> <DEFANGED_application>
> <DEFANGED_meta key="org.apache.tapestry.page-class-packages"
> value="com.myco.web.page"/>
> <DEFANGED_meta key="org.apache.tapestry.component-class-packages"
> value="com.myco.web.component"/>
> </application>
>
> So, tapestry will look in those packages for pages/components. Hope that
> helps.
>
> James
>
> -----Original Message-----
> From: Alex Kartashev [mailto:alex.kartashev@gmail.com]
> Sent: Friday, May 26, 2006 9:41 AM
> To: Tapestry users
> Subject: Re: annotations
>
> I believe you still you need to have a component spec, albeit an empty
one.
>
> -Alex
>
> Dimitri Taranov wrote:
>
>
>> I am trying to use annotations. To start, I deleted a very simple
>> component specification and instead added an annotation @ComponentClass.
>> Do I just add annotations compile and deploy or do I have to compile
>> with Apt? When going with the first approach I get "Component not
>> found". When trying to Apt I get:
>>
>> "warning: No annotation processors found but annotations present."
>>
>>
>>
>> These jars are in my classpath:
>>
>> commons-codec-1.3.jar ognl-2.6.7.jar
>>
>> commons-fileupload-1.1.jar oro-2.0.8.jar
>>
>> commons-io-1.1.jar tapestry-4.0.1.jar
>>
>> commons-logging-api-1.0.4.jar tapestry-annotations-4.0.1.jar
>>
>> hivemind-1.1.1.jar tapestry-contrib-4.0.1.jar
>>
>> hivemind-lib-1.1.1.jar tapestry-portlet-4.0.1.jar
>>
>> javassist-3.0.jar
>>
>>
>>
>> I can't find any additional info on the topic. Do I need some other
>> jars?
>>
>>
>>
>> Dimitri
>>
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: annotations
Posted by Andrei Chiritescu <an...@paragon-software.ro>.
I also tried to use a component that didn't have a jwc file and it seems
that it cannot find the html template.
With the following error : Could not find template for component
SomeComponent in locale en.
Does anyone know why or how can I specify the place template ?
Thanks,
Andrei Chiritescu
James Carman wrote:
> You don't need an empty spec, but you do need to tell tapestry where to find
> your page/component classes. In your application file:
>
> <application>
> <meta key="org.apache.tapestry.page-class-packages"
> value="com.myco.web.page"/>
> <meta key="org.apache.tapestry.component-class-packages"
> value="com.myco.web.component"/>
> </application>
>
> So, tapestry will look in those packages for pages/components. Hope that
> helps.
>
> James
>
> -----Original Message-----
> From: Alex Kartashev [mailto:alex.kartashev@gmail.com]
> Sent: Friday, May 26, 2006 9:41 AM
> To: Tapestry users
> Subject: Re: annotations
>
> I believe you still you need to have a component spec, albeit an empty one.
>
> -Alex
>
> Dimitri Taranov wrote:
>
>
>> I am trying to use annotations. To start, I deleted a very simple
>> component specification and instead added an annotation @ComponentClass.
>> Do I just add annotations compile and deploy or do I have to compile
>> with Apt? When going with the first approach I get "Component not
>> found". When trying to Apt I get:
>>
>> "warning: No annotation processors found but annotations present."
>>
>>
>>
>> These jars are in my classpath:
>>
>> commons-codec-1.3.jar ognl-2.6.7.jar
>>
>> commons-fileupload-1.1.jar oro-2.0.8.jar
>>
>> commons-io-1.1.jar tapestry-4.0.1.jar
>>
>> commons-logging-api-1.0.4.jar tapestry-annotations-4.0.1.jar
>>
>> hivemind-1.1.1.jar tapestry-contrib-4.0.1.jar
>>
>> hivemind-lib-1.1.1.jar tapestry-portlet-4.0.1.jar
>>
>> javassist-3.0.jar
>>
>>
>>
>> I can't find any additional info on the topic. Do I need some other
>> jars?
>>
>>
>>
>> Dimitri
>>
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: annotations
Posted by James Carman <ja...@carmanconsulting.com>.
You don't need an empty spec, but you do need to tell tapestry where to find
your page/component classes. In your application file:
<application>
<meta key="org.apache.tapestry.page-class-packages"
value="com.myco.web.page"/>
<meta key="org.apache.tapestry.component-class-packages"
value="com.myco.web.component"/>
</application>
So, tapestry will look in those packages for pages/components. Hope that
helps.
James
-----Original Message-----
From: Alex Kartashev [mailto:alex.kartashev@gmail.com]
Sent: Friday, May 26, 2006 9:41 AM
To: Tapestry users
Subject: Re: annotations
I believe you still you need to have a component spec, albeit an empty one.
-Alex
Dimitri Taranov wrote:
>I am trying to use annotations. To start, I deleted a very simple
>component specification and instead added an annotation @ComponentClass.
>Do I just add annotations compile and deploy or do I have to compile
>with Apt? When going with the first approach I get "Component not
>found". When trying to Apt I get:
>
>"warning: No annotation processors found but annotations present."
>
>
>
>These jars are in my classpath:
>
>commons-codec-1.3.jar ognl-2.6.7.jar
>
>commons-fileupload-1.1.jar oro-2.0.8.jar
>
>commons-io-1.1.jar tapestry-4.0.1.jar
>
>commons-logging-api-1.0.4.jar tapestry-annotations-4.0.1.jar
>
>hivemind-1.1.1.jar tapestry-contrib-4.0.1.jar
>
>hivemind-lib-1.1.1.jar tapestry-portlet-4.0.1.jar
>
>javassist-3.0.jar
>
>
>
>I can't find any additional info on the topic. Do I need some other
>jars?
>
>
>
>Dimitri
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: annotations
Posted by Alex Kartashev <al...@gmail.com>.
I believe you still you need to have a component spec, albeit an empty one.
-Alex
Dimitri Taranov wrote:
>I am trying to use annotations. To start, I deleted a very simple
>component specification and instead added an annotation @ComponentClass.
>Do I just add annotations compile and deploy or do I have to compile
>with Apt? When going with the first approach I get "Component not
>found". When trying to Apt I get:
>
>"warning: No annotation processors found but annotations present."
>
>
>
>These jars are in my classpath:
>
>commons-codec-1.3.jar ognl-2.6.7.jar
>
>commons-fileupload-1.1.jar oro-2.0.8.jar
>
>commons-io-1.1.jar tapestry-4.0.1.jar
>
>commons-logging-api-1.0.4.jar tapestry-annotations-4.0.1.jar
>
>hivemind-1.1.1.jar tapestry-contrib-4.0.1.jar
>
>hivemind-lib-1.1.1.jar tapestry-portlet-4.0.1.jar
>
>javassist-3.0.jar
>
>
>
>I can't find any additional info on the topic. Do I need some other
>jars?
>
>
>
>Dimitri
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org