OK, further to this... I had a hunch that (from some refactoring I did a while ago for some other requirement) the wicket viewer might actually already be compatible with the restfulobjects viewer... and it turns out that it is. At least, it seems to be from the limited testing I've just done....
What I'll do is to push out a new version of the quickstart_wicket_restful_jdo-archetype that reflects this. I've raised ticket ISIS-289 for this. In the meantime though, if you grab the latest source, then load up the example/application/quickstart_wicket_restful_jdo application, you'll see a new viewer-webapp submodule. If you run the app with this module, it'll run the wicket viewer under http://localhost:8080/wicket, while the restfulobjects viewer should be accessible at http://localhost:8080/ (ie the root url). Since the archetype is basically just a copy of this example app, you hopefully should be able to use this as a new basis for your own app (just replace the dom and objstore-jdo projects with your own, and tweak isis.properties as required). Let us know how you get on, Dan On 30 December 2012 18:03, Dan Haywood <[email protected]> wrote: > Hi Mark, > > Currently the wicket viewer isn't compatible with the restfulobjects > (json) viewer, and so there are two separate "viewer" projects, each of > which generates a WAR file. If you configure both to point to the same > database (assuming you aren't using an in-memory HSQLDB database) then > changes made through one viewer should appear in the other. > > I do intend to make the wicket viewer compatible with the restfulobjects > viewer, but I wanted to push v1.0.0 out of the door first. > > By all means raise a JIRA ticket to request this change. > > Dan > > PS: I had a look at your repo - you still seem to be on v0.3.1-SNAPSHOT. > You probably ought to update to the released v1.0.0. > > > On 30 December 2012 13:58, Mark Wood-Patrick <[email protected]>wrote: > >> I tried that but it still only appears to support the REST interface. >> >> My current code version is: >> >> https://github.com/mwoodpatrick/quickstart_wicket_restful_jdo >> >> command line: >> >> mvn clean package -o >> java -jar >> >> ./viewer-restfulobjects/target/quickstart_wicket_restful_jdo-viewer-restfulo >> bjects-0.3.1-SNAPSHOT-jetty-console.war >> >> Mark >> >> -----Original Message----- >> From: Adam Howard [mailto:[email protected]] >> Sent: Saturday, December 29, 2012 2:29 PM >> To: [email protected] >> Subject: Re: HTML & JSON in same app >> >> More info. You should just need to look at the pom.xml and web.xml files >> in >> the webapp project. That should show you what you need to add to the >> restfulobjects project created by the current archetype to add the HTML >> viewer. >> >> >> On Sat, Dec 29, 2012 at 4:11 PM, Adam Howard <[email protected]> >> wrote: >> >> > That is what the quickstart archetype used to create. You can try >> > creating a project from from the 0.2.1 version of the quickstart >> > archetype to see how it's set up. It should still work. >> > >> > -- Adam >> > >> > On Dec 29, 2012, at 3:21 PM, MARK <[email protected]> wrote: >> > >> > > Is there a way to include both json & html support within a single >> > > isis >> > based app which I can deploy to a tomcat or glassfish instance or do I >> > have to deploy two separate apps >> > > >> > > Sent from my ASUS Pad >> > > >> > > Dan Haywood <[email protected]> wrote: >> > > >> > >> good-o! >> > >> >> > >> >> > >> On 29 December 2012 15:48, Mark Wood-Patrick >> > >> <[email protected]> >> > wrote: >> > >> >> > >>> Yes that was the problem >> > >>> >> > >>> Many thanks >> > >>> >> > >>> Mark >> > >>> >> > >>> >> > >> >> >
