Re: Integrating Agrest in Tapestry app

2021-08-16 Thread Alejandro Scandroli
Hi all In case you want to follow the topic I posted some comments on the issue that Tim reported on GitHub. https://github.com/tynamo/tapestry-resteasy/issues/19 Cheers! Alejandro. On Sat, Aug 7, 2021 at 2:57 AM D Tim Cummings wrote: > > Thanks for your help Ben. I guess I don't need to use

Re: Integrating Agrest in Tapestry app

2021-08-06 Thread D Tim Cummings
Thanks for your help Ben. I guess I don't need to use agrest. I can use tapestry-resteasy with cayenne persistence. Cheers Tim On 6/8/21 23:03, Ben Weidig wrote: > Hi Tim, > > your code looks fine to me, but it seems like this is a limitation of > tapestry-resteasy. > > The project wraps the con

Re: Integrating Agrest in Tapestry app

2021-08-06 Thread Ben Weidig
Hi Tim, your code looks fine to me, but it seems like this is a limitation of tapestry-resteasy. The project wraps the configuration of RESTEasy to make it easier to use with Tapestry. The method https://github.com/tynamo/tapestry-resteasy/blob/0111a37e842a67e49b47752de85d738676c179e9/src/main/ja

Re: Integrating Agrest in Tapestry app

2021-08-06 Thread D Tim Cummings
Hi Ben I followed your suggestions and was able to get rest working with tapestry-resteasy without using persistence. However when I added agrest tapestry resteasy threw an exception unknown class type: io.agrest.runtime.AgRuntime. My code is as follows. I am using a simple data model from https:/

Re: Integrating Agrest in Tapestry app

2021-08-05 Thread D Tim Cummings
Thanks Thiago and Ben for your great responses. I am working through these suggestions at the moment. I thought I would build a fresh tapestry app based on the quickstart and introduce tapestry-resteasy and agrest. Tim On 6/8/21 02:14, Thiago H. de Paula Figueiredo wrote: > Ouch, I should have c

Re: Integrating Agrest in Tapestry app

2021-08-05 Thread Thiago H. de Paula Figueiredo
Ouch, I should have checked Ben's brilliant response before I wrote my own, inferior one. On Thu, Aug 5, 2021 at 1:12 PM Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, Aug 3, 2021 at 8:12 AM D Tim Cummings > wrote: > >> I had a look at tapestry-resteasy but it seems to rely

Re: Integrating Agrest in Tapestry app

2021-08-05 Thread Thiago H. de Paula Figueiredo
On Tue, Aug 3, 2021 at 8:12 AM D Tim Cummings wrote: > I had a look at tapestry-resteasy but it seems to rely on hibernate or > jpa and I am using cayenne. tapestry-resteasy doesn't rely on either Hibernate or JPA nor any other ORM: https://repo1.maven.org/maven2/org/tynamo/tapestry-resteasy/0.

Re: Integrating Agrest in Tapestry app

2021-08-03 Thread Ben Weidig
tapestry-resteasy is just bringing RESTEasy to Tapestry. There's no dependency to JPA/Hibernate. Do you mean the PersistenceService in the example on the page under "Code your singleton resource"? That's not a necessity, just an example for a Rest resource. In your case, you would use Agrest instea

Re: Integrating Agrest in Tapestry app

2021-08-03 Thread D Tim Cummings
Thanks for this very detailed reply. I will work through what you have suggested and see how I go. I had a look at tapestry-resteasy but it seems to rely on hibernate or jpa and I am using cayenne. I am not sure what is required for org.tynamo.services.PersistenceService. Also tapestry-resteasy sa

Re: Integrating Agrest in Tapestry app

2021-08-03 Thread Ben Weidig
Hi Tim, full disclosure: I haven't used Cayenne or Agrest, but I checked out their documentation. I don't think there's anything Tapestry-specific needed to get it up and running except setting up Rest. They say in their docs that you still have to write your JAX-RS endpoints and do security your

Integrating Agrest in Tapestry app

2021-08-02 Thread D Tim Cummings
Does anyone have experience integrating Agrest (https://agrest.io/) into a Tapestry app? My Tapestry app uses Cayenne ORM and it looks like Agrest works well with Cayenne to produce REST functionality. It would be helpful to see some sample code. Thanks in advance Tim OpenPGP_signature Descr