This one:

https://tapestry.apache.org/component-libraries.html

There are a few issues, if someone has a chance to edit them i'll just list
them here:


1) It says:

You will need to modify the Tapestry release version number ("5.2.0" in the
listing above) to reflect the current version of Tapestry when you create
your component library.

The tapestry version in the example pom is 5.4-beta-28. There are two
problems here - mainly that the text is wrong, but also that i'm not sure
if we should have beta releases in the documentation. I assume that's ok
though which brings about the next issue


2) The @Path annotation is relative to the HappyIcon.class file; it should
be stored in the project under
src/main/resources/org/example/happylib/components.

Whilst this will work, you will then get a log saying that images should be
under the META-INF/assets directory.


3) "This page has not yet been fully updated for Tapestry 5.4. Things are
different and simpler in 5.4 than in previous releases."
This contradicts the pom example a little, I think the documentation should
probably be updated and this removed. It worked mostly (with the above
differences) fine for me on 5.4


4)The example pom points at : http://snapshots.repository.codehaus.org/

I think this is no longer there and neither is the other repo it points at:
http://archiva.openqa.org/repository/releases/

Another quick question - In my project I was using beta 32 from staging
here:

https://repository.apache.org/content/groups/staging/


It then seemed to then be removed and replaced by 33, but when I update to
use 33 I kept getting an issue saying maven could not read the jar file so
I had to go back to beta-26 where it seemed to work again. I'm not sure if
anyone else experienced something similar.

I suppose we shouldn't be using the staging repository for anything other
than testing, where is the actual official repository for full releases? I
always seem to have similar problems. I notice beta 26 is available here:
http://mvnrepository.com/artifact/org.apache.tapestry

5)It would be nice, although perhaps not the focus of the T5 documentation,
to show how this module can be referenced from another project using the
pom.xml. I'm sure many others are looking at this with that in mind,
particularly as many of the examples use mvn.
I found I was able to add this to my other project, and so long as I had
installed the happylib using mvn clean install, I could use:

<dependency>

<groupId>org.example</groupId>

<artifactId>happylib</artifactId>

<version>1.0-SNAPSHOT</version>

</dependency>

Eventually I suppose I am going to need a top level pom which compiles both
of these together. I'm not quite sure about how maven works here, as
ultimately it means for anyone building my project they currently need to
manually build and install happylib first for maven to know about it, but
this detail may not be required for the documentation (I think it's a nice
to have though)

I can't attach the .zip of the project with gmail as it says there is some
security problem, however I have uploaded it here for now in case it can be
attached to the documentation (probably worth checking it first):
www.spindroid.co.uk/shared.zip


Of course now this is set up, to go back to my original issue - I am going
to put the hibernate entities in this happy lib and sort out the naming of
it, then I can reference it from my two web apps. I will need to contribute
something to say where the hibernate entities are but I did see some
documentation about that and it should look a little vur like this:
    public static void
contributeHibernateEntityPackageManager(Configuration<String>
configuration) {
        configuration.add("com.my.package.myentities");
    }

Thanks,

Steve


On 4 Aug 2015 23:14, "Thiago H de Paula Figueiredo" <thiag...@gmail.com>
wrote:

> On Tue, 04 Aug 2015 18:15:20 -0300, Stephen Nutbrown <steves...@gmail.com>
> wrote:
>
> Thanks. I have got the example set up from the documentation for the happy
>> lib.  I found some bits that seemed not quite right along the way.
>>
>
> Which ones? If there's anything wrong on the documentation, we should fix
> it.
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to