they would be ignored ... If you want your module to be more generic, you
should use the bean validation API (JSR 303) instead of @Valid.

Le jeu. 16 avr. 2015 à 16:10, Poggenpohl, Daniel <
daniel.poggenp...@isst.fraunhofer.de> a écrit :

> Hello again,
>
> I think I understand now.
>
> The only problem I see at the moment is that once I split the app into
> model and tapestry app, I can't use e.g. @NonVisual  or @Validate anymore
> because those are Tapestry-specific. Or could I add a dependency to the
> annotation packages? If the model would be used in a non-Tapestry
> application, the annotations would be ignored, wouldn't they?
>
> Regards,
> Daniel P.
>
> -----Ursprüngliche Nachricht-----
> Von: Dmitry Gusev [mailto:dmitry.gu...@gmail.com]
> Gesendet: Donnerstag, 16. April 2015 12:29
> An: Tapestry users
> Betreff: Re: Splitting a tapestry web app into modules
>
> Hi,
>
> Java doesn't know anything about projects & modules. It works with
> classpath.
>
> Just make sure all your packages & entities on the same classpath and you
> should be good.
>
> On Thu, Apr 16, 2015 at 1:10 PM, Poggenpohl, Daniel <
> daniel.poggenp...@isst.fraunhofer.de> wrote:
>
> > Hi,
> >
> > I'm not sure I get how you do it.
> > Reading up on
> > http://tapestry.apache.org/ioc.html
> > http://tapestry.apache.org/starting-the-ioc-registry.html
> > http://tapestry.apache.org/registry-startup.html
> > I'm not connecting what is described with my problem yet.
> >
> > Perhaps using an example would help me.
> > Let's say I have two Eclipse projects, "webui" and "model".
> > model contains a package model.entities for the DB entities.
> > webui contains, for the sake of simplicity, the rest of the Tapestry
> > application.
> >
> > It seems that I have to configure the application to register the
> > model project or the package...?
> > Probably in AppModule, but how?
> >
> > Regards,
> > Daniel P.
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Charlouze [mailto:m...@charlouze.com]
> > Gesendet: Donnerstag, 16. April 2015 10:43
> > An: Tapestry users
> > Betreff: Re: Splitting a tapestry web app into modules
> >
> > Sure you can ... You just have to make sure that the module is used
> > upon registry configuration.
> >
> > Le jeu. 16 avr. 2015 à 10:41, Poggenpohl, Daniel <
> > daniel.poggenp...@isst.fraunhofer.de> a écrit :
> >
> > > Hi,
> > >
> > > I'm using tapestry-jpa.
> > > I've found a reference to JpaEntityPackageManager. I can contribute
> > > package names, but can I contribute packages in other projects?
> > >
> > > Regards,
> > > Daniel P.
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Charlouze [mailto:m...@charlouze.com]
> > > Gesendet: Donnerstag, 16. April 2015 10:36
> > > An: users@tapestry.apache.org
> > > Betreff: Re: Splitting a tapestry web app into modules
> > >
> > > Hey
> > >
> > > Are you using JPA or Hibernate ?
> > >
> > > Charles
> > >
> > > Le jeu. 16 avr. 2015 à 10:21, Poggenpohl, Daniel <
> > > daniel.poggenp...@isst.fraunhofer.de> a écrit :
> > >
> > > > Hello everyone,
> > > >
> > > > I'm trying to enable reuse for our projects by splitting our
> > > > application into separate modules for the data model and the web
> > > > ui, among others. When starting a Tapestry application, it looks
> > > > for the entities in the entities package of the same project. Is
> > > > it even possible that I put the entities for the application in a
> > > > different
> > > Maven project?
> > > >
> > > > Regards,
> > > > Daniel P.
> > > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
>
>
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>

Reply via email to