Re: RE : Eclipse IDE and TML code completion

2011-06-09 Thread Mark
TapestryTools is currently being developed as part of GSOS. I don't think
the autocomplete has been implemented yet.

Mark
On Jun 8, 2011 11:34 AM,  wrote:
> Hi
>
> Finally, get it working according to
> http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse . I don't
> know why, but
>
> http://tapestrytools.googlecode.com/svn/trunk/TapestryTools_UpdateSite/just 
> doesn't work for me. :(
>
> Thanks
> John
>
>
> 於 2011/6/9 0:10, onj888-tapes...@yahoo.com.hk 提到:
>> thanks Mark and Laurent,
>>
>> So, I used my previous download helios
>> eclipse-reporting-helios-SR1-win32.zip to make another trial, I use the
>> updatesite
>> http://tapestrytools.googlecode.com/svn/trunk/TapestryTools_UpdateSite/
>> to install the tools, change the content type to add *.tml in jsp. I
>> openned the quick-start index.tml with jsp editor, type > ok, but >
>> Thanks
>> John.
>>
>>
>> 於 2011/6/8 22:00, Guerin Laurent 提到:
>>> Mark is right, you have to use the JSP editor.
>>> So, i have tested with Eclipse Helios and it work for me.
>>>
>>> Laurent.
>>>
>>> -----Message d'origine-
>>> De : Mark [mailto:mark-li...@xeric.net]
>>> Envoyé : mercredi 8 juin 2011 15:49
>>> À : Tapestry users; onj888-tapes...@yahoo.com.hk
>>> Objet : Re: RE : Eclipse IDE and TML code completion
>>>
>>> On Tue, Jun 7, 2011 at 12:04 AM,  wrote:
>>>> it doesn't response when I type >> Make sure you are using the right editor. I can't remember if it is the
xml editor or the jsp editor that you want, but the other editors won't
work.
>>>
>>> Mark
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>


Re: RE : Eclipse IDE and TML code completion

2011-06-08 Thread onj888-tapestry
Hi

Finally, get it working according to
http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse .  I don't
know why, but

http://tapestrytools.googlecode.com/svn/trunk/TapestryTools_UpdateSite/ just 
doesn't work for me. :(

Thanks
John


於 2011/6/9 0:10, onj888-tapes...@yahoo.com.hk 提到:
> thanks Mark and Laurent,
>
> So, I used my previous download helios
> eclipse-reporting-helios-SR1-win32.zip to make another trial, I use the
> updatesite
> http://tapestrytools.googlecode.com/svn/trunk/TapestryTools_UpdateSite/
> to install the tools, change the content type to add *.tml in jsp. I
> openned the quick-start index.tml with jsp editor, type  ok, but 
> Thanks
> John.
>
>
> 於 2011/6/8 22:00, Guerin Laurent 提到:
>> Mark is right, you have to use the JSP editor.
>> So, i have tested with Eclipse Helios  and it work for me.
>>
>> Laurent.
>>
>> -Message d'origine-
>> De : Mark [mailto:mark-li...@xeric.net] 
>> Envoyé : mercredi 8 juin 2011 15:49
>> À : Tapestry users; onj888-tapes...@yahoo.com.hk
>> Objet : Re: RE : Eclipse IDE and TML code completion
>>
>> On Tue, Jun 7, 2011 at 12:04 AM,   wrote:
>>> it doesn't response when I type > Make sure you are using the right editor. I can't remember if it is the xml 
>> editor or the jsp editor that you want, but the other editors won't work.
>>
>> Mark
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: RE : Eclipse IDE and TML code completion

2011-06-08 Thread onj888-tapestry
thanks Mark and Laurent,

So, I used my previous download helios
eclipse-reporting-helios-SR1-win32.zip to make another trial, I use the
updatesite
http://tapestrytools.googlecode.com/svn/trunk/TapestryTools_UpdateSite/
to install the tools, change the content type to add *.tml in jsp. I
openned the quick-start index.tml with jsp editor, type  Mark is right, you have to use the JSP editor.
> So, i have tested with Eclipse Helios  and it work for me.
>
> Laurent.
>
> -Message d'origine-
> De : Mark [mailto:mark-li...@xeric.net] 
> Envoyé : mercredi 8 juin 2011 15:49
> À : Tapestry users; onj888-tapes...@yahoo.com.hk
> Objet : Re: RE : Eclipse IDE and TML code completion
>
> On Tue, Jun 7, 2011 at 12:04 AM,   wrote:
>> it doesn't response when I type  Make sure you are using the right editor. I can't remember if it is the xml 
> editor or the jsp editor that you want, but the other editors won't work.
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



RE: RE : Eclipse IDE and TML code completion

2011-06-08 Thread Guerin Laurent
Mark is right, you have to use the JSP editor.
So, i have tested with Eclipse Helios  and it work for me.

Laurent.

-Message d'origine-
De : Mark [mailto:mark-li...@xeric.net] 
Envoyé : mercredi 8 juin 2011 15:49
À : Tapestry users; onj888-tapes...@yahoo.com.hk
Objet : Re: RE : Eclipse IDE and TML code completion

On Tue, Jun 7, 2011 at 12:04 AM,   wrote:
>it doesn't response when I type 

Re: RE : Eclipse IDE and TML code completion

2011-06-08 Thread Mark
On Tue, Jun 7, 2011 at 12:04 AM,   wrote:
>it doesn't response when I type 

Re: RE : Eclipse IDE and TML code completion

2011-06-06 Thread onj888-tapestry
Thanks Laurent, yes, the temlate is good, I managed to import it in
eclipse, but it doesn't response when I type  Hi,
>
> you're right, the file is broken.
> I have updated the wiki page.
> You can also get the proper version here : 
> https://github.com/downloads/exanpe/tapestry-tldgen/NewTMLTemplate.xml
>
> BTW, you should also look at the WTP Eclipse plugin is being developed by 
> Gavin Lei in the scope of Google Summer of Code 
> (http://code.google.com/p/tapestrytools/).
> This looks very promising.
>
> 
> De : onj888-tapes...@yahoo.com.hk [onj888-tapes...@yahoo.com.hk]
> Date d'envoi : dimanche 5 juin 2011 17:51
> À : Tapestry users; zlau.dream...@gmail.com
> Objet : Re: Eclipse IDE and TML code completion
>
> Hi, I tried to follow the instruction on the page, but I couldn't import
> the template in eclipse.
> Does it support the latest eclipse 3.6.2? or the template from
>  
> https://issues.apache.org/jira/browse/TAP5-120?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aworklog-tabpanel#issue-tabs
> is a broken one?
>
> Thanks
> John
>
> ? 2010/9/22 16:50, Laurent Guerin ??:
>> For those interested in using Eclipse code completion with tml files,
>> EXANPE Team (Julien Maupoux, Katia Aresti and myself) has developped a
>> Maven plugin that allow you to generate a tld describing any Tapestry
>> 5 components library.
>>
>> The plugin uses both Javadoc and @Parameter annotation to perform the
>> generation.
>>
>> Once you have generated your TLD, just to configure Eclipse as
>> described in the Wiki :
>> http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse
>>
>> This plugin has been tested on Tapestry 5.2 itself (see result TLD
>> attachment for test completion with core components).
>>
>> The source code of this plugin is available here :
>> http://github.com/exanpe/tapestry-tldgen
>>
>> Informations, usage and notes available here :
>> http://exanpe.free.fr/tapestry-tldgen/
>>
>>
>> The plugin has been released as alpha version 1.0.0 and promoting into
>> Maven central repository.
>> So, all feedbacks are appreciated (directly on GitHub) !
>>
>> Best regards,
>>
>> Laurent Guerin
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



RE : Eclipse IDE and TML code completion

2011-06-05 Thread Guerin Laurent
Hi,

you're right, the file is broken.
I have updated the wiki page.
You can also get the proper version here : 
https://github.com/downloads/exanpe/tapestry-tldgen/NewTMLTemplate.xml

BTW, you should also look at the WTP Eclipse plugin is being developed by Gavin 
Lei in the scope of Google Summer of Code 
(http://code.google.com/p/tapestrytools/).
This looks very promising.


De : onj888-tapes...@yahoo.com.hk [onj888-tapes...@yahoo.com.hk]
Date d'envoi : dimanche 5 juin 2011 17:51
À : Tapestry users; zlau.dream...@gmail.com
Objet : Re: Eclipse IDE and TML code completion

Hi, I tried to follow the instruction on the page, but I couldn't import
the template in eclipse.
Does it support the latest eclipse 3.6.2? or the template from
 
https://issues.apache.org/jira/browse/TAP5-120?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aworklog-tabpanel#issue-tabs
is a broken one?

Thanks
John

? 2010/9/22 16:50, Laurent Guerin ??:
> For those interested in using Eclipse code completion with tml files,
> EXANPE Team (Julien Maupoux, Katia Aresti and myself) has developped a
> Maven plugin that allow you to generate a tld describing any Tapestry
> 5 components library.
>
> The plugin uses both Javadoc and @Parameter annotation to perform the
> generation.
>
> Once you have generated your TLD, just to configure Eclipse as
> described in the Wiki :
> http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse
>
> This plugin has been tested on Tapestry 5.2 itself (see result TLD
> attachment for test completion with core components).
>
> The source code of this plugin is available here :
> http://github.com/exanpe/tapestry-tldgen
>
> Informations, usage and notes available here :
> http://exanpe.free.fr/tapestry-tldgen/
>
>
> The plugin has been released as alpha version 1.0.0 and promoting into
> Maven central repository.
> So, all feedbacks are appreciated (directly on GitHub) !
>
> Best regards,
>
> Laurent Guerin
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Eclipse IDE and TML code completion

2011-06-05 Thread onj888-tapestry
Hi, I tried to follow the instruction on the page, but I couldn't import
the template in eclipse.
Does it support the latest eclipse 3.6.2? or the template from
 
https://issues.apache.org/jira/browse/TAP5-120?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aworklog-tabpanel#issue-tabs
is a broken one?

Thanks
John

? 2010/9/22 16:50, Laurent Guerin ??:
> For those interested in using Eclipse code completion with tml files,
> EXANPE Team (Julien Maupoux, Katia Aresti and myself) has developped a
> Maven plugin that allow you to generate a tld describing any Tapestry
> 5 components library.
>
> The plugin uses both Javadoc and @Parameter annotation to perform the
> generation.
>
> Once you have generated your TLD, just to configure Eclipse as
> described in the Wiki :
> http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse
>
> This plugin has been tested on Tapestry 5.2 itself (see result TLD
> attachment for test completion with core components).
>
> The source code of this plugin is available here :
> http://github.com/exanpe/tapestry-tldgen
>
> Informations, usage and notes available here :
> http://exanpe.free.fr/tapestry-tldgen/
>
>
> The plugin has been released as alpha version 1.0.0 and promoting into
> Maven central repository.
> So, all feedbacks are appreciated (directly on GitHub) !
>
> Best regards,
>
> Laurent Guerin
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Eclipse IDE and TML code completion

2010-09-22 Thread Katia Aresti Gonzalez
Hi again,

You can simply adapt the plugin's values

${set your tld uri here}
${set your tld defaut namespace here}

Once TLD generated, you can add N user catalogues in Eclipse (one per tld
file) and you will have to explicitly change the URI and short name's values
which are unique.

We have already tested having Tapestry Core tld, TAPX tld and a custom
component TLD and it works.

Tapestry - URI = http://tapestry.apache.org/schema/tapestry_5_1_0.xsd
tapx - URI : tapestry-library:tapx

Our next step will be improving user documentation. :-)

Thanks for your feedback !

Katia

2010/9/22 Alessio Gambi 

> Hi,
>
> I managed (with some pain really) to install the tag library inside
> eclipse,
>
> I followed the tutorial on the "Tapestry5 How Tos" and it works fine for
> installing the t5.tld entry.
>
> But if I repeat the same procedure to install also the tld generated by
> your plugin, then eclipse either stops showing the auto completions or show
> only the last added (the ones belonging to my components).
>
> Then - but this is eclipse - if I remove all the user defined catalogs,
> refresh, clean and update dependencies for the project,  eclipse still shows
> the old auto completion tags.
>
> The only way I managed to show all the tags (basic t5 and my components) is
> to manually merge everything inside one single tls file and then load just
> that one using
> the http://tapestry.apache.org/schema/tapestry_5_1_0.xsd as Key value for
> the XML Catalog Wizard of eclipse.
>
>
> I think that a nice improvement to you plugin is to either merge all the
> tlds together (basic plus all the related components library projects and
> dependencies),
> or to programmatically add the tags definition to eclipse (for example by
> using some kind of eclipse plugin).
>
> -- Alessio
>
>
>
> On Sep 22, 2010, at 3:51 PM, Laurent Guerin wrote:
>
>  Happy to see that you could generate your TLD.
>>
>> The generated XML "tldgen-components-info.xml" is a temporary file used to
>> collect Javadoc informations on components.
>> We are aware about the m2Eclipse issue, it's already referenced in the
>> FAQ.
>>
>> Thank you for your feedback. We will check the classes.jar issue.
>>
>> 2010/9/22 Alessio Gambi 
>>
>>  Hi,
>>>
>>> I am using maven from eclipse (It did not worked) but apparently
>>> launching
>>> it from is fine.
>>>
>>> This is the printout of the tld file:
>>> http://java.sun.com/xml/ns/javaee"; xmlns:xsi="
>>> http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
>>> http://java.sun.com/xml/ns/javaee
>>> http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd";
>>> version="2.1">
>>> 1.0
>>> t
>>>
>>> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd
>>> 
>>>  
>>>  Dialog
>>>
>>> se.pmdit.tutorial.t5gwt.tapestry.components.Dialog
>>>  JSP
>>>  
>>>
>>>entryPoint
>>>true
>>>
>>>  java.lang.String
>>>
>>>  
>>>  
>>>
>>>componentType
>>>true
>>>
>>>  java.lang.String
>>>
>>>  
>>> 
>>> 
>>>  
>>>  GwtEntryPoint
>>>
>>>
>>> se.pmdit.tutorial.t5gwt.tapestry.components.GwtEntryPoint
>>>  JSP
>>>  
>>>
>>>className
>>>true
>>>
>>>  java.lang.String
>>>
>>>  
>>> 
>>> 
>>>  
>>>  GwtComponent
>>>
>>>
>>> se.pmdit.tutorial.t5gwt.tapestry.components.GwtComponent
>>>  JSP
>>>  
>>>
>>>entryPoint
>>>true
>>>
>>>  java.lang.String
>>>
>>>  
>>>  
>>>
>>>componentType
>>>true
>>>
>>>  java.lang.String
>>>
>>>  
>>> 
>>> 
>>>  
>>>  GwtSupport
>>>
>>>
>>> se.pmdit.tutorial.t5gwt.tapestry.components.GwtSupport
>>>  JSP
>>> 
>>> 
>>>
>>>
>>> This is the tldgen-components-info.xml file:
>>> 
>>> 
>>> >> className="se.pmdit.tutorial.t5gwt.tapestry.components.GwtSupport"
>>> superClassName="java.lang.Object">
>>> 
>>> 
>>> 
>>> >> className="se.pmdit.tutorial.t5gwt.tapestry.components.GwtEntryPoint"
>>> superClassName="java.lang.Object">
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> >> className="se.pmdit.tutorial.t5gwt.tapestry.components.GwtComponent"
>>> superClassName="java.lang.Object">
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> >>
>>> superClassName="se.pmdit.tutorial.t5gwt.tapestry.components.GwtComponent">
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>> Hi Alessio,
>>>

 Thanks for your tests.

 which Maven version did you use ?


>>> mvn -version
>>> Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
>>>
>>> Java version: 1.6.0_20
>>> Java home:
>>> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
>>> Default locale: en_US, platform encoding: MacRoman
>>> OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
>>>
>>>
>>> Additionally,
>>> I noticed also a strange behavior using m2eclipse:
>>>
>>> I downloaded the source code for the plugin that you provide
>>> Modified the pom.xml to remove the dependency on tools.jar
>>> The build fails because of a failing test:
>>>
>>>
>>>
>>> -

Re: Eclipse IDE and TML code completion

2010-09-22 Thread Alessio Gambi

Hi,

I managed (with some pain really) to install the tag library inside  
eclipse,


I followed the tutorial on the "Tapestry5 How Tos" and it works fine  
for installing the t5.tld entry.


But if I repeat the same procedure to install also the tld generated  
by your plugin, then eclipse either stops showing the auto completions  
or show only the last added (the ones belonging to my components).


Then - but this is eclipse - if I remove all the user defined  
catalogs, refresh, clean and update dependencies for the project,   
eclipse still shows the old auto completion tags.


The only way I managed to show all the tags (basic t5 and my  
components) is to manually merge everything inside one single tls file  
and then load just that one using
the http://tapestry.apache.org/schema/tapestry_5_1_0.xsd as Key value  
for the XML Catalog Wizard of eclipse.



I think that a nice improvement to you plugin is to either merge all  
the tlds together (basic plus all the related components library  
projects and dependencies),
or to programmatically add the tags definition to eclipse (for example  
by using some kind of eclipse plugin).


-- Alessio


On Sep 22, 2010, at 3:51 PM, Laurent Guerin wrote:


Happy to see that you could generate your TLD.

The generated XML "tldgen-components-info.xml" is a temporary file  
used to

collect Javadoc informations on components.
We are aware about the m2Eclipse issue, it's already referenced in  
the FAQ.


Thank you for your feedback. We will check the classes.jar issue.

2010/9/22 Alessio Gambi 


Hi,

I am using maven from eclipse (It did not worked) but apparently  
launching

it from is fine.

This is the printout of the tld file:
http://java.sun.com/xml/ns/javaee"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd";
version="2.1">
1.0
t

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd

  
  Dialog

se.pmdit.tutorial.t5gwt.tapestry.components.Dialogclass>

  JSP
  

entryPoint
true

  java.lang.String

  
  

componentType
true

  java.lang.String

  


  
  GwtEntryPoint

class>se.pmdit.tutorial.t5gwt.tapestry.components.GwtEntryPointtag-class>

  JSP
  

className
true

  java.lang.String

  


  
  GwtComponent

class>se.pmdit.tutorial.t5gwt.tapestry.components.GwtComponentclass>

  JSP
  

entryPoint
true

  java.lang.String

  
  

componentType
true

  java.lang.String

  


  
  GwtSupport

se.pmdit.tutorial.t5gwt.tapestry.components.GwtSupporttag-class>

  JSP




This is the tldgen-components-info.xml file:

























className="se.pmdit.tutorial.t5gwt.tapestry.components.Dialog"
superClassName 
="se.pmdit.tutorial.t5gwt.tapestry.components.GwtComponent">







Hi Alessio,


Thanks for your tests.

which Maven version did you use ?



mvn -version
Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)

Java version: 1.6.0_20
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/ 
1.6.0/Home

Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"


Additionally,
I noticed also a strange behavior using m2eclipse:

I downloaded the source code for the plugin that you provide
Modified the pom.xml to remove the dependency on tools.jar
The build fails because of a failing test:


--
Test set:  
fr.exanpe.tapestry.tldgen.taglib.builder.StructureBuilderTest


---
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:  
0.065 sec

<<< FAILURE!
testHeritage 
(fr.exanpe.tapestry.tldgen.taglib.builder.StructureBuilderTest)

Time elapsed: 0.048 sec  <<< FAILURE!
junit.framework.AssertionFailedError: expected:<3> but was:<0>
  at junit.framework.Assert.fail(Assert.java:47)
  at junit.framework.Assert.failNotEquals(Assert.java:282)
  at junit.framework.Assert.assertEquals(Assert.java:64)
  at junit.framework.Assert.assertEquals(Assert.java:201)
  at junit.framework.Assert.assertEquals(Assert.java:207)
  at
fr 
.exanpe 
.tapestry 
.tldgen 
.taglib 
.builder 
.StructureBuilderTest.testHeritage(StructureBuilderTest.java:49)


It seems that attributes of class SubSubComponent are not present.

However,  THE SAME TEST CLASS passes THE SAME TEST when launched  
using

JUnit.

I think one of the problem could be the fact that classes.jar (that  
is a

super set, i.e. contains more classes, of tools.jar) has
"AccessRestrictions" ... unfortunately, I do not know how to deal  
with this.




Re: Eclipse IDE and TML code completion

2010-09-22 Thread Laurent Guerin
Happy to see that you could generate your TLD.

The generated XML "tldgen-components-info.xml" is a temporary file used to
collect Javadoc informations on components.
We are aware about the m2Eclipse issue, it's already referenced in the FAQ.

Thank you for your feedback. We will check the classes.jar issue.

2010/9/22 Alessio Gambi 

> Hi,
>
> I am using maven from eclipse (It did not worked) but apparently launching
> it from is fine.
>
> This is the printout of the tld file:
> http://java.sun.com/xml/ns/javaee"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
> http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd";
> version="2.1">
>  1.0
>  t
>
>  http://tapestry.apache.org/schema/tapestry_5_0_0.xsd
>  
>
>Dialog
>
>  se.pmdit.tutorial.t5gwt.tapestry.components.Dialog
>JSP
>
>  
>  entryPoint
>  true
>  
>java.lang.String
>  
>
>
>  
>  componentType
>  true
>  
>java.lang.String
>  
>
>  
>  
>
>GwtEntryPoint
>
>  
> se.pmdit.tutorial.t5gwt.tapestry.components.GwtEntryPoint
>JSP
>
>  
>  className
>  true
>  
>java.lang.String
>  
>
>  
>  
>
>GwtComponent
>
>  
> se.pmdit.tutorial.t5gwt.tapestry.components.GwtComponent
>JSP
>
>  
>  entryPoint
>  true
>  
>java.lang.String
>  
>
>
>  
>  componentType
>  true
>  
>java.lang.String
>  
>
>  
>  
>
>GwtSupport
>
>  se.pmdit.tutorial.t5gwt.tapestry.components.GwtSupport
>JSP
>  
> 
>
>
> This is the tldgen-components-info.xml file:
> 
> 
>  className="se.pmdit.tutorial.t5gwt.tapestry.components.GwtSupport"
> superClassName="java.lang.Object">
> 
> 
> 
>  className="se.pmdit.tutorial.t5gwt.tapestry.components.GwtEntryPoint"
> superClassName="java.lang.Object">
> 
> 
> 
> 
> 
> 
> 
>  className="se.pmdit.tutorial.t5gwt.tapestry.components.GwtComponent"
> superClassName="java.lang.Object">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  superClassName="se.pmdit.tutorial.t5gwt.tapestry.components.GwtComponent">
> 
> 
> 
> 
>
>
>  Hi Alessio,
>>
>> Thanks for your tests.
>>
>> which Maven version did you use ?
>>
>
> mvn -version
> Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
>
> Java version: 1.6.0_20
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
>
>
> Additionally,
> I noticed also a strange behavior using m2eclipse:
>
> I downloaded the source code for the plugin that you provide
> Modified the pom.xml to remove the dependency on tools.jar
> The build fails because of a failing test:
>
>
> --
> Test set: fr.exanpe.tapestry.tldgen.taglib.builder.StructureBuilderTest
>
> ---
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.065 sec
> <<< FAILURE!
> testHeritage(fr.exanpe.tapestry.tldgen.taglib.builder.StructureBuilderTest)
>  Time elapsed: 0.048 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<3> but was:<0>
>at junit.framework.Assert.fail(Assert.java:47)
>at junit.framework.Assert.failNotEquals(Assert.java:282)
>at junit.framework.Assert.assertEquals(Assert.java:64)
>at junit.framework.Assert.assertEquals(Assert.java:201)
>at junit.framework.Assert.assertEquals(Assert.java:207)
>at
> fr.exanpe.tapestry.tldgen.taglib.builder.StructureBuilderTest.testHeritage(StructureBuilderTest.java:49)
>
> It seems that attributes of class SubSubComponent are not present.
>
> However,  THE SAME TEST CLASS passes THE SAME TEST when launched using
> JUnit.
>
> I think one of the problem could be the fact that classes.jar (that is a
> super set, i.e. contains more classes, of tools.jar) has
> "AccessRestrictions" ... unfortunately, I do not know how to deal with this.


Re: Eclipse IDE and TML code completion

2010-09-22 Thread Alessio Gambi

Hi,

I am using maven from eclipse (It did not worked) but apparently  
launching it from is fine.


This is the printout of the tld file:
http://java.sun.com/xml/ns/javaee 
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";  
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd 
" version="2.1">

  1.0
  t
  http://tapestry.apache.org/schema/tapestry_5_0_0.xsd
  

Dialog
se.pmdit.tutorial.t5gwt.tapestry.components.Dialogtag-class>

JSP

  
  entryPoint
  true
  
java.lang.String
  


  
  componentType
  true
  
java.lang.String
  

  
  

GwtEntryPoint
class>se.pmdit.tutorial.t5gwt.tapestry.components.GwtEntryPointclass>

JSP

  
  className
  true
  
java.lang.String
  

  
  

GwtComponent
class>se.pmdit.tutorial.t5gwt.tapestry.components.GwtComponentclass>

JSP

  
  entryPoint
  true
  
java.lang.String
  


  
  componentType
  true
  
java.lang.String
  

  
  

GwtSupport
class>se.pmdit.tutorial.t5gwt.tapestry.components.GwtSupport

JSP
  



This is the tldgen-components-info.xml file:


className="se.pmdit.tutorial.t5gwt.tapestry.components.GwtSupport"  
superClassName="java.lang.Object">




className="se.pmdit.tutorial.t5gwt.tapestry.components.GwtEntryPoint"  
superClassName="java.lang.Object">








className="se.pmdit.tutorial.t5gwt.tapestry.components.GwtComponent"  
superClassName="java.lang.Object">











className="se.pmdit.tutorial.t5gwt.tapestry.components.Dialog"  
superClassName 
="se.pmdit.tutorial.t5gwt.tapestry.components.GwtComponent">







Hi Alessio,

Thanks for your tests.

which Maven version did you use ?


mvn -version
Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
Java version: 1.6.0_20
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/ 
Home

Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"


Additionally,
I noticed also a strange behavior using m2eclipse:

I downloaded the source code for the plugin that you provide
Modified the pom.xml to remove the dependency on tools.jar
The build fails because of a failing test:

--
Test set: fr.exanpe.tapestry.tldgen.taglib.builder.StructureBuilderTest
---
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.065  
sec <<< FAILURE!
testHeritage 
(fr.exanpe.tapestry.tldgen.taglib.builder.StructureBuilderTest)  Time  
elapsed: 0.048 sec  <<< FAILURE!

junit.framework.AssertionFailedError: expected:<3> but was:<0>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:201)
at junit.framework.Assert.assertEquals(Assert.java:207)
	at  
fr 
.exanpe 
.tapestry 
.tldgen 
.taglib 
.builder.StructureBuilderTest.testHeritage(StructureBuilderTest.java:49)


It seems that attributes of class SubSubComponent are not present.

However,  THE SAME TEST CLASS passes THE SAME TEST when launched using  
JUnit.


I think one of the problem could be the fact that classes.jar (that is  
a super set, i.e. contains more classes, of tools.jar) has  
"AccessRestrictions" ... unfortunately, I do not know how to deal with  
this.

Re: Eclipse IDE and TML code completion

2010-09-22 Thread Laurent Guerin
Hi Alessio,

Thanks for your tests.

which Maven version did you use ?
We have only tested the plugin with versions 2.0.10 and 2.2.1 and only on
Windows and Linux OS.

We will try to make some tests on Mac as soon as possible.

Laurent.

2010/9/22 Alessio Gambi 

> Hi,
>
> you had a very good idea with this plugin!
>
> I tried to install and use the plugin but I got a NullPointerException (see
> the stack) as explained in the web page.
>
> Maybe I set the plugin wrongly...
> (BTW I did not this: "Carefully javadoc your component classes and their
> attributes annotated with @Parameter" )
>
>
> Hope this helps.
>
> -- Alessio
>
> Configuration:
> Mac Os X
> 1.5.8
>
> Java
> java -version
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-9M3165)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
>
>
> Eclipse Platform
> Version: 3.5.2.R35x_v20100210-0800-9hEiFzmFst-TiEn9hNYgDWg1XN8ulH_JvCNGB
> Build id: M20100211-1343
>
> pom.xml snippet:
>
>fr.exanpe
>tapestry-tldgen
>1.0.0
>
>
>
>com.sun
>
>  tools
>1.5.0
>system
>
>
>  
> /System/Library/Frameworks/JavaVM.framework/Classes/classes.jar
>
>
>
>
>
>
>  tld-generate
>
>
>  process-classes
>
>
>
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd
>
>
>  se.pmdit.tutorial.t5gwt.tapestry
>
>
>
>
>
>
>
>
> Console Output by running mvn with -X option
>
> [INFO] --- tapestry-tldgen:1.0.0:tld-generate (default) @ t5gwt ---
> [DEBUG] Created new class realm plugin>fr.exanpe:tapestry-tldgen:1.0.0
> [DEBUG] Populating class realm plugin>fr.exanpe:tapestry-tldgen:1.0.0
> [DEBUG]   Included: fr.exanpe:tapestry-tldgen:maven-plugin:1.0.0
> [DEBUG]   Included: com.sun:tools:jar:1.5.0
> [DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:2.0.5
> [DEBUG]   Included: junit:junit:jar:3.8.1
> [DEBUG]   Included: commons-lang:commons-lang:jar:2.3
> [DEBUG]   Included: org.reflections:reflections:jar:0.9.5-RC2
> [DEBUG]   Included: com.google.collections:google-collections:jar:1.0
> [DEBUG]   Included: javassist:javassist:jar:3.8.0.GA
> [DEBUG]   Included: org.slf4j:slf4j-api:jar:1.5.6
> [DEBUG]   Included: ch.qos.logback:logback-classic:jar:0.9.9
> [DEBUG]   Included: ch.qos.logback:logback-core:jar:0.9.9
> [DEBUG]   Included: dom4j:dom4j:jar:1.6
> [DEBUG]   Included: xml-apis:xml-apis:jar:1.0.b2
> [DEBUG]   Included: com.google.code.gson:gson:jar:1.4
> [DEBUG]   Included: javax.servlet:servlet-api:jar:2.5
> [DEBUG]   Included: commons-digester:commons-digester:jar:2.0
> [DEBUG]   Included: commons-beanutils:commons-beanutils:jar:1.8.0
> [DEBUG]   Included: commons-logging:commons-logging:jar:1.1.1
> [DEBUG]   Included: com.thoughtworks.xstream:xstream:jar:1.3.1
> [DEBUG]   Included: xpp3:xpp3_min:jar:1.1.4c
> [DEBUG]   Excluded: org.apache.maven:maven-settings:jar:2.0.5
> [DEBUG]   Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.5
> [DEBUG]   Excluded: classworlds:classworlds:jar:1.1-alpha-2
> [DEBUG]   Excluded:
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9
> [DEBUG]   Excluded: org.apache.maven:maven-project:jar:2.0.5
> [DEBUG]   Excluded: org.apache.maven:maven-model:jar:2.0.5
> [DEBUG]   Excluded: org.apache.maven:maven-plugin-api:jar:2.0
> [DEBUG]   Excluded:
> org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2
> [DEBUG]   Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.5
> [DEBUG]   Excluded: org.apache.maven:maven-artifact:jar:2.0.5
> [DEBUG]   Excluded: org.apache.maven:maven-profile:jar:2.0.5
> [DEBUG] Configuring mojo 'fr.exanpe:tapestry-tldgen:1.0.0:tld-generate'
> with include-project-dependencies configurator -->
>
> this is repeated almost 1000 times ;)
>
>
> java.lang.reflect.InvocationTargetExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.reflect.InvocationTargetException
>at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
>at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   

Re: Eclipse IDE and TML code completion

2010-09-22 Thread Katia Aresti Gonzalez
I meant to dire "executing" maven ... ^_^

2010/9/22 Katia Aresti Gonzalez 

> Hi !
>
> Thanks for testing ! Are you lancing maven with an eclipse plugin, from the
> console or another way ?
> We found some problems with eclipse m2 plugin.
>
> Katia
>
> 2010/9/22 Alessio Gambi 
>
> Forgot to say I am using tapestry 5.1.0.5
>>
>>
>>
>> On Sep 22, 2010, at 10:50 AM, Laurent Guerin wrote:
>>
>>  For those interested in using Eclipse code completion with tml files,
>>> EXANPE Team (Julien Maupoux, Katia Aresti and myself) has developped a
>>> Maven plugin that allow you to generate a tld describing any Tapestry 5
>>> components library.
>>>
>>> The plugin uses both Javadoc and @Parameter annotation to perform the
>>> generation.
>>>
>>> Once you have generated your TLD, just to configure Eclipse as described
>>> in the Wiki :
>>> http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse
>>>
>>> This plugin has been tested on Tapestry 5.2 itself (see result TLD
>>> attachment for test completion with core components).
>>>
>>> The source code of this plugin is available here :
>>> http://github.com/exanpe/tapestry-tldgen
>>>
>>> Informations, usage and notes available here :
>>> http://exanpe.free.fr/tapestry-tldgen/
>>>
>>>
>>> The plugin has been released as alpha version 1.0.0 and promoting into
>>> Maven central repository.
>>> So, all feedbacks are appreciated (directly on GitHub) !
>>>
>>> Best regards,
>>>
>>> Laurent Guerin
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>
>>
>


Re: Eclipse IDE and TML code completion

2010-09-22 Thread Katia Aresti Gonzalez
Hi !

Thanks for testing ! Are you lancing maven with an eclipse plugin, from the
console or another way ?
We found some problems with eclipse m2 plugin.

Katia

2010/9/22 Alessio Gambi 

> Forgot to say I am using tapestry 5.1.0.5
>
>
>
> On Sep 22, 2010, at 10:50 AM, Laurent Guerin wrote:
>
>  For those interested in using Eclipse code completion with tml files,
>> EXANPE Team (Julien Maupoux, Katia Aresti and myself) has developped a
>> Maven plugin that allow you to generate a tld describing any Tapestry 5
>> components library.
>>
>> The plugin uses both Javadoc and @Parameter annotation to perform the
>> generation.
>>
>> Once you have generated your TLD, just to configure Eclipse as described
>> in the Wiki :
>> http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse
>>
>> This plugin has been tested on Tapestry 5.2 itself (see result TLD
>> attachment for test completion with core components).
>>
>> The source code of this plugin is available here :
>> http://github.com/exanpe/tapestry-tldgen
>>
>> Informations, usage and notes available here :
>> http://exanpe.free.fr/tapestry-tldgen/
>>
>>
>> The plugin has been released as alpha version 1.0.0 and promoting into
>> Maven central repository.
>> So, all feedbacks are appreciated (directly on GitHub) !
>>
>> Best regards,
>>
>> Laurent Guerin
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>
>


Re: Eclipse IDE and TML code completion

2010-09-22 Thread Alessio Gambi

Forgot to say I am using tapestry 5.1.0.5


On Sep 22, 2010, at 10:50 AM, Laurent Guerin wrote:


For those interested in using Eclipse code completion with tml files,
EXANPE Team (Julien Maupoux, Katia Aresti and myself) has developped  
a Maven plugin that allow you to generate a tld describing any  
Tapestry 5 components library.


The plugin uses both Javadoc and @Parameter annotation to perform  
the generation.


Once you have generated your TLD, just to configure Eclipse as  
described in the Wiki :

http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse

This plugin has been tested on Tapestry 5.2 itself (see result TLD  
attachment for test completion with core components).


The source code of this plugin is available here :
http://github.com/exanpe/tapestry-tldgen

Informations, usage and notes available here :
http://exanpe.free.fr/tapestry-tldgen/


The plugin has been released as alpha version 1.0.0 and promoting  
into Maven central repository.

So, all feedbacks are appreciated (directly on GitHub) !

Best regards,

Laurent Guerin

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




Re: Eclipse IDE and TML code completion

2010-09-22 Thread Alessio Gambi

Hi,

you had a very good idea with this plugin!

I tried to install and use the plugin but I got a NullPointerException  
(see the stack) as explained in the web page.


Maybe I set the plugin wrongly...
(BTW I did not this: "Carefully javadoc your component classes and  
their attributes annotated with @Parameter" )



Hope this helps.

-- Alessio

Configuration:
Mac Os X
1.5.8

Java
java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-9M3165)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)


Eclipse Platform
Version: 3.5.2.R35x_v20100210-0800-9hEiFzmFst-TiEn9hNYgDWg1XN8ulH_JvCNGB
Build id: M20100211-1343

pom.xml snippet:

fr.exanpe
tapestry-tldgen
1.0.0




com.sun
tools
1.5.0
system
		
		/System/Library/Frameworks/JavaVM.framework/Classes/ 
classes.jar







tld-generate

process-classes

			


http://tapestry.apache.org/schema/tapestry_5_0_0.xsd
			


se.pmdit.tutorial.t5gwt.tapestry








Console Output by running mvn with -X option

[INFO] --- tapestry-tldgen:1.0.0:tld-generate (default) @ t5gwt ---
[DEBUG] Created new class realm plugin>fr.exanpe:tapestry-tldgen:1.0.0
[DEBUG] Populating class realm plugin>fr.exanpe:tapestry-tldgen:1.0.0
[DEBUG]   Included: fr.exanpe:tapestry-tldgen:maven-plugin:1.0.0
[DEBUG]   Included: com.sun:tools:jar:1.5.0
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:2.0.5
[DEBUG]   Included: junit:junit:jar:3.8.1
[DEBUG]   Included: commons-lang:commons-lang:jar:2.3
[DEBUG]   Included: org.reflections:reflections:jar:0.9.5-RC2
[DEBUG]   Included: com.google.collections:google-collections:jar:1.0
[DEBUG]   Included: javassist:javassist:jar:3.8.0.GA
[DEBUG]   Included: org.slf4j:slf4j-api:jar:1.5.6
[DEBUG]   Included: ch.qos.logback:logback-classic:jar:0.9.9
[DEBUG]   Included: ch.qos.logback:logback-core:jar:0.9.9
[DEBUG]   Included: dom4j:dom4j:jar:1.6
[DEBUG]   Included: xml-apis:xml-apis:jar:1.0.b2
[DEBUG]   Included: com.google.code.gson:gson:jar:1.4
[DEBUG]   Included: javax.servlet:servlet-api:jar:2.5
[DEBUG]   Included: commons-digester:commons-digester:jar:2.0
[DEBUG]   Included: commons-beanutils:commons-beanutils:jar:1.8.0
[DEBUG]   Included: commons-logging:commons-logging:jar:1.1.1
[DEBUG]   Included: com.thoughtworks.xstream:xstream:jar:1.3.1
[DEBUG]   Included: xpp3:xpp3_min:jar:1.1.4c
[DEBUG]   Excluded: org.apache.maven:maven-settings:jar:2.0.5
[DEBUG]   Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.5
[DEBUG]   Excluded: classworlds:classworlds:jar:1.1-alpha-2
[DEBUG]   Excluded: org.codehaus.plexus:plexus-container-default:jar: 
1.0-alpha-9

[DEBUG]   Excluded: org.apache.maven:maven-project:jar:2.0.5
[DEBUG]   Excluded: org.apache.maven:maven-model:jar:2.0.5
[DEBUG]   Excluded: org.apache.maven:maven-plugin-api:jar:2.0
[DEBUG]   Excluded: org.apache.maven.wagon:wagon-provider-api:jar:1.0- 
beta-2

[DEBUG]   Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.5
[DEBUG]   Excluded: org.apache.maven:maven-artifact:jar:2.0.5
[DEBUG]   Excluded: org.apache.maven:maven-profile:jar:2.0.5
[DEBUG] Configuring mojo 'fr.exanpe:tapestry-tldgen:1.0.0:tld- 
generate' with include-project-dependencies configurator -->


this is repeated almost 1000 times ;)

java 
.lang 
.reflect 
.InvocationTargetExceptionjava 
.lang 
.reflect 
.InvocationTargetExceptionjava.lang.reflect.InvocationTargetException

at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)

at java.lang.reflect.Method.invoke(Method.java:592)
	at  
org 
.codehaus 
.plexus 
.component 
.configurator 
.AbstractComponentConfigurator 
.configureComponent(AbstractComponentConfigurator.java:88)

at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)


DEBUG] -- end configuration --
[WARNING] encoding parameter has not been set. Using plateform  
encoding fo