Hi

I also had this error message some time back when I created a non
default constructor in my page/component and forgot to create a PUBLIC
default constructor. The scope of constructor is important here.


On Tue, Aug 2, 2011 at 9:46 PM, ERNESTO ARROYO RON <earroyo...@gmail.com> wrote:
> I am on holidays, and trying to use some Tapestry awesome features, as the 
> inyection.
>
> But I do not understand some issues, and cannot find the answer in the wiki 
> or somewhere, to the info is not enough clear for me, sorry.
>
> This is very simple. In the Java part of a page I want to inject the DAO, so 
> I use this code:
>
> @Inject
> private IAplicacionesDAO appDAO;
>
> To have this code running I need to add the service implementation via 
> AppModule and bind:
>
> public static void bind(ServiceBinder binder)
>    {
>        binder.bind(IAplicacionesDAO.class,AplicacionesDAO.class);
>
> Two questions:
>
> a) if I add a constructor to the first class, I have an error:
> Class com.earroyoron.pages.VerAplicaciones was not transformed for use as a 
> component; this can happen if it is an interface, or was not in a package 
> subject to component transformation
> and in the documentation I read the constructor was needed! But without it 
> works and with it I have an error….
>
> b) Cannot Tapestry find the service without the bind? The infection in the 
> DAO to use Hibernate does not need to say nothing to Tapestry, it works 
> without any extra configuration in module.
>
>
> Thank you in advance, when I learn I promise to help the newbies!
> :O)
>
>



-- 

regards

Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com

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

Reply via email to