You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Christian Couvez (Updated) (JIRA)" <ji...@apache.org> on 2012/01/02 16:14:30 UTC

[jira] [Updated] (TAP5-1811) Package name changed in last page of the tutorial.

     [ https://issues.apache.org/jira/browse/TAP5-1811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Couvez updated TAP5-1811:
-----------------------------------

    Description: 
Hello,


And Happy New Year to every members !


There is a little problem in last page of the Tutorial:
http://tapestry.apache.org/using-tapestry-with-hibernate.html


I tried the current version of the tutorial,
and had the same problem discribed on this thread of the mailling list:
http://tapestry.1045711.n5.nabble.com/Problems-and-suggestions-on-Tapestry-5-Tutorial-tt4984111.html

There are not so many problems in this version of the tutorial,
but it's true that even quite simple problems can discourage a beginner.

I haven't found an issue about this problem.
(Axel didn't filed it)


The problem is that the package name changed,
compared with previous pages of the tutorial,
and according to the choice made during the maven creation command.

So, instead of :
src/main/java/org/apache/tapestry5/tutorial/pages/address/CreateAddress.java
The path for the file should be:
src/main/java/com/example/tutorial/pages/address/CreateAddress.java
(according to the choice of the package name, at the beginning)

Thus, the package name should be :
package com.example.tutorial.pages.address;

And two import statements become :
import com.example.tutorial.entities.Address;
import com.example.tutorial.pages.Index;


But any good IDE should show it.


There is the same problem in this page, with the path of the "Index.java" file :
src/main/java/org/apache/tapestry5/tutorial/pages/Index.java (partial)
Should be:
src/main/java/com/example/tutorial/pages/Index.java (partial)


Regards,

Christian

  was:
Hello,


And Happy New Year to every members !


There is a little problem in last page of the Tutorial:
http://tapestry.apache.org/using-tapestry-with-hibernate.html


I tried the current version of the tutorial,
and had the same problem discribed on this thread of the mailling list:
http://tapestry.1045711.n5.nabble.com/Problems-and-suggestions-on-Tapestry-5-Tutorial-tt4984111.html

There are not so many problems in this version of the tutorial,
but it's true that even quite simple problems can discourage a beginner.

I haven't found an issue about this problem.
(Axel didn't filed it)


The problem is that the package name changed,
compared with previous pages of the tutorial,
and according to the choice made during the maven creation command.

So, instead of :
src/main/java/org/apache/tapestry5/tutorial/pages/address/CreateAddress.java
The path for the file should be:
src/main/java/com/example/tutorial/entities/Address.java
(according to the choice of the package name, at the beginning)

Thus, the package name should be :
package com.example.tutorial.pages.address;

And two import statements become :
import com.example.tutorial.entities.Address;
import com.example.tutorial.pages.Index;


But any good IDE should show it.


There is the same problem in this page, with the path of the "Index.java" file :
src/main/java/org/apache/tapestry5/tutorial/pages/Index.java (partial)
Should be:
src/main/java/com/example/tutorial/pages/Index.java (partial)


Regards,

Christian

    
> Package name changed in last page of the tutorial.
> --------------------------------------------------
>
>                 Key: TAP5-1811
>                 URL: https://issues.apache.org/jira/browse/TAP5-1811
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: documentation
>    Affects Versions: 5.3.1
>            Reporter: Christian Couvez
>            Priority: Minor
>              Labels: documentation
>
> Hello,
> And Happy New Year to every members !
> There is a little problem in last page of the Tutorial:
> http://tapestry.apache.org/using-tapestry-with-hibernate.html
> I tried the current version of the tutorial,
> and had the same problem discribed on this thread of the mailling list:
> http://tapestry.1045711.n5.nabble.com/Problems-and-suggestions-on-Tapestry-5-Tutorial-tt4984111.html
> There are not so many problems in this version of the tutorial,
> but it's true that even quite simple problems can discourage a beginner.
> I haven't found an issue about this problem.
> (Axel didn't filed it)
> The problem is that the package name changed,
> compared with previous pages of the tutorial,
> and according to the choice made during the maven creation command.
> So, instead of :
> src/main/java/org/apache/tapestry5/tutorial/pages/address/CreateAddress.java
> The path for the file should be:
> src/main/java/com/example/tutorial/pages/address/CreateAddress.java
> (according to the choice of the package name, at the beginning)
> Thus, the package name should be :
> package com.example.tutorial.pages.address;
> And two import statements become :
> import com.example.tutorial.entities.Address;
> import com.example.tutorial.pages.Index;
> But any good IDE should show it.
> There is the same problem in this page, with the path of the "Index.java" file :
> src/main/java/org/apache/tapestry5/tutorial/pages/Index.java (partial)
> Should be:
> src/main/java/com/example/tutorial/pages/Index.java (partial)
> Regards,
> Christian

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira