>From what I can tell - the Aerogear scaffold is not being picked up as a ScaffoldProvider, which is odd... <br><br>Ryan, have you actually tried running your scaffold provider in a real forge runtime? Does it get picked up when you run <b>scaffold setup --scaffoldType xxxxx </b>?<br>
<br>~Lincoln<br><br><div class="gmail_quote">On Tue, Feb 28, 2012 at 4:23 PM, Richard Kennard <span dir="ltr">&lt;<a href="mailto:richard@kennardconsulting.com">richard@kennardconsulting.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Pete: could you try running with VERBOSE set to true?<br>
<br>
Lincoln: could you take a look at this? I actually can&#39;t get plugins working on my Windows machine (see earlier post), so I&#39;ve just been building via unit tests this whole time (see <a href="https://github.com/forge/scaffold-aerogear/blob/master/src/test/java/org/jboss/forge/scaffold/aerogear/scenario/employeedatabase/AeroGearScaffoldEmployeeDatabaseTest.java" target="_blank">https://github.com/forge/<u></u>scaffold-aerogear/blob/master/<u></u>src/test/java/org/jboss/forge/<u></u>scaffold/aerogear/scenario/<u></u>employeedatabase/<u></u>AeroGearScaffoldEmployeeDataba<u></u>seTest.java</a>).<br>

<br>
On 29/02/2012 1:19 AM, Pete Muir wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Getting there, now get an error running scaffold:<br>
<br>
***SUCCESS*** Installed from [git://<a href="http://github.com/forge/scaffold-aerogear.git" target="_blank">github.com/forge/<u></u>scaffold-aerogear.git</a>] successfully.<br>
Wrote /Users/pmuir/.forge/plugins/<u></u>org/jboss<br>
Wrote /Users/pmuir/.forge/plugins/<u></u>org/jboss/forge<br>
Wrote /Users/pmuir/.forge/plugins/<u></u>org/jboss/forge/plugins<br>
Wrote /Users/pmuir/.forge/plugins/<u></u>org/jboss/forge/plugins/<u></u>aerogear<br>
Wrote /Users/pmuir/.forge/plugins/<u></u>org/jboss/forge/plugins/<u></u>aerogear/plugin-scaffold-<u></u>aerogear<br>
Wrote /Users/pmuir/.forge/plugins/<u></u>org/jboss/forge/plugins/<u></u>aerogear/plugin-scaffold-<u></u>aerogear/1.0.0-SNAPSHOT-<u></u>979983d6-c420-45db-960a-<u></u>6a0b37ea8ed1<br>
Wrote /Users/pmuir/.forge/plugins/<u></u>org/jboss/forge/plugins/<u></u>aerogear/plugin-scaffold-<u></u>aerogear/1.0.0-SNAPSHOT-<u></u>979983d6-c420-45db-960a-<u></u>6a0b37ea8ed1/plugin-scaffold-<u></u>aerogear.jar<br>
Wrote /Users/pmuir/.forge/plugins/<u></u>org/jboss/forge/plugins/<u></u>aerogear/plugin-scaffold-<u></u>aerogear/1.0.0-SNAPSHOT-<u></u>979983d6-c420-45db-960a-<u></u>6a0b37ea8ed1/module.xml<br>
Wrote /Users/pmuir/.forge/plugins/<u></u>org/jboss/forge/plugins/<u></u>aerogear/plugin-scaffold-<u></u>aerogear/dependencies<br>
Wrote /Users/pmuir/.forge/plugins/<u></u>org/jboss/forge/plugins/<u></u>aerogear/plugin-scaffold-<u></u>aerogear/dependencies/1.0.0-<u></u>SNAPSHOT-979983d6-c420-45db-<u></u>960a-6a0b37ea8ed1<br>
Wrote /Users/pmuir/.forge/plugins/<u></u>org/jboss/forge/plugins/<u></u>aerogear/plugin-scaffold-<u></u>aerogear/dependencies/1.0.0-<u></u>SNAPSHOT-979983d6-c420-45db-<u></u>960a-6a0b37ea8ed1/metawidget-<u></u>all-2.1-SNAPSHOT.jar<br>

Wrote /Users/pmuir/.forge/plugins/<u></u>org/jboss/forge/plugins/<u></u>aerogear/plugin-scaffold-<u></u>aerogear/dependencies/1.0.0-<u></u>SNAPSHOT-979983d6-c420-45db-<u></u>960a-6a0b37ea8ed1/module.xml<br>
[no project] workspace $ new-project --named test --topLevelPackage com.test --type war<br>
  ? Use [/Users/pmuir/workspace/test] as project directory? [Y/n]<br>
***SUCCESS*** Created project [test] in new working directory [/Users/pmuir/workspace/test]<br>
Wrote /Users/pmuir/workspace/test<br>
Wrote /Users/pmuir/workspace/test/<u></u>pom.xml<br>
Wrote /Users/pmuir/workspace/test/<u></u>src/main/java<br>
Wrote /Users/pmuir/workspace/test/<u></u>src/test/java<br>
Wrote /Users/pmuir/workspace/test/<u></u>src/main/webapp<br>
Wrote /Users/pmuir/workspace/test/<u></u>src/main/resources<br>
Wrote /Users/pmuir/workspace/test/<u></u>src/test/resources<br>
Wrote /Users/pmuir/workspace/test/<u></u>src/main/resources/META-INF/<u></u>forge.xml<br>
[test] test $ persistence setup<br>
  ? [provider=ARG (of type org.jboss.forge.spec.javaee.<u></u>jpa.api.JPAProvider)]:<br>
  ? [provider=ARG (of type org.jboss.forge.spec.javaee.<u></u>jpa.api.JPAProvider)]: HIBERNATE<br>
  ? [container=ARG (of type org.jboss.forge.spec.javaee.<u></u>jpa.api.JPAContainer)]: JBOSS_AS<br>
JBOSS_AS6    JBOSS_AS7<br>
  ? [container=ARG (of type org.jboss.forge.spec.javaee.<u></u>jpa.api.JPAContainer)]: JBOSS_AS7<br>
Warning:  The encoding &#39;UTF-8&#39; is not supported by the Java runtime.<br>
***SUCCESS*** Installed [forge.spec.jpa] successfully.<br>
***INFO*** Setting transaction-type=&quot;JTA&quot;<br>
***INFO*** Using example data source [java:jboss/datasources/<u></u>ExampleDS]<br>
Warning:  The encoding &#39;UTF-8&#39; is not supported by the Java runtime.<br>
  ? The JPA provider [HIBERNATE], also supplies extended APIs. Install these as well? [y/N]<br>
***SUCCESS*** Persistence (JPA) is installed.<br>
Wrote /Users/pmuir/workspace/test/<u></u>src/main/resources/META-INF/<u></u>persistence.xml<br>
Wrote /Users/pmuir/workspace/test/<u></u>pom.xml<br>
[test] test $ scaffold setup --scaffoldType aerogear<br>
***ERROR*** [scaffold setup] null<br>
[test] test $ scaffold setup --scaffoldType aerogear<br>
***ERROR*** [scaffold setup] null<br>
[test] test $<br>
<br>
<br>
On 28 Feb 2012, at 00:21, Richard Kennard wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Apologies. I forgot to update the Metawidget 2.1-SNAPSHOT in the JBoss repo. Please try again now? Or, at a pinch, the blog entry contains a link to the generated project.<br>
<br>
Regards,<br>
<br>
Richard.<br>
<br>
On 28/02/2012 12:01 AM, Pete Muir wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I get an error when trying to install the plugin:<br>
<br>
[no project] development $ forge git-plugin git://<a href="http://github.com/forge/scaffold-aerogear.git" target="_blank">github.com/forge/<u></u>scaffold-aerogear.git</a><br>
***INFO*** Checking out plugin source files to [/var/folders/ph/<u></u>8l1qbzzj23x7r628rqg5fqq00000gn<u></u>/T/<u></u>forgetemp2637555117540383425/<u></u>repo] via &#39;git&#39;<br>
***WARNING*** Could not find a Ref matching the current Forge version [1.0.0.CR2], building Plugin from HEAD.<br>
***INFO*** Invoking build with underlying build system.<br>
[INFO] Scanning for projects...<br>
[INFO]<br>
[INFO] ------------------------------<u></u>------------------------------<u></u>------------<br>
[INFO] Building plugin-scaffold-aerogear 1.0.0-SNAPSHOT<br>
[INFO] ------------------------------<u></u>------------------------------<u></u>------------<br>
[INFO]<br>
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ plugin-scaffold-aerogear ---<br>
[INFO]<br>
[INFO] --- maven-resources-plugin:2.5:<u></u>resources (default-resources) @ plugin-scaffold-aerogear ---<br>
[debug] execute contextualize<br>
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!<br>
[INFO] Copying 21 resources<br>
[INFO]<br>
[INFO] --- maven-compiler-plugin:2.3.2:<u></u>compile (default-compile) @ plugin-scaffold-aerogear ---<br>
[WARNING] File encoding has not been set, using platform encoding MacRoman, i.e. build is platform dependent!<br>
[INFO] Compiling 12 source files to /private/var/folders/ph/<u></u>8l1qbzzj23x7r628rqg5fqq00000gn<u></u>/T/<u></u>forgetemp2637555117540383425/<u></u>repo/target/classes<br>
[INFO] ------------------------------<u></u>------------------------------<u></u>-<br>
[ERROR] COMPILATION ERROR :<br>
[INFO] ------------------------------<u></u>------------------------------<u></u>-<br>
[ERROR] /private/var/folders/ph/<u></u>8l1qbzzj23x7r628rqg5fqq00000gn<u></u>/T/<u></u>forgetemp2637555117540383425/<u></u>repo/src/main/java/org/jboss/<u></u>forge/scaffold/aerogear/<u></u>metawidget/layout/<u></u>HtmlDivLayout.java:[48,18] cannot find symbol<br>

symbol  : method getWidgetId(org.metawidget.<u></u>statically.StaticXmlWidget)<br>
location: class org.jboss.forge.scaffold.<u></u>aerogear.metawidget.layout.<u></u>HtmlDivLayout<br>
[ERROR] /private/var/folders/ph/<u></u>8l1qbzzj23x7r628rqg5fqq00000gn<u></u>/T/<u></u>forgetemp2637555117540383425/<u></u>repo/src/main/java/org/jboss/<u></u>forge/scaffold/aerogear/<u></u>metawidget/layout/<u></u>HtmlDivLayout.java:[44,3] method does not override or implement a method from a supertype<br>

[INFO] 2 errors<br>
[INFO] ------------------------------<u></u>------------------------------<u></u>-<br>
[INFO] ------------------------------<u></u>------------------------------<u></u>------------<br>
[INFO] BUILD FAILURE<br>
[INFO] ------------------------------<u></u>------------------------------<u></u>------------<br>
[INFO] Total time: 6.255s<br>
[INFO] Finished at: Mon Feb 27 12:59:37 GMT 2012<br>
[INFO] Final Memory: 14M/125M<br>
[INFO] ------------------------------<u></u>------------------------------<u></u>------------<br>
[ERROR] Failed to execute goal org.apache.maven.plugins:<u></u>maven-compiler-plugin:2.3.2:<u></u>compile (default-compile) on project plugin-scaffold-aerogear: Compilation failure: Compilation failure:<br>
[ERROR] /private/var/folders/ph/<u></u>8l1qbzzj23x7r628rqg5fqq00000gn<u></u>/T/<u></u>forgetemp2637555117540383425/<u></u>repo/src/main/java/org/jboss/<u></u>forge/scaffold/aerogear/<u></u>metawidget/layout/<u></u>HtmlDivLayout.java:[48,18] cannot find symbol<br>

[ERROR] symbol  : method getWidgetId(org.metawidget.<u></u>statically.StaticXmlWidget)<br>
[ERROR] location: class org.jboss.forge.scaffold.<u></u>aerogear.metawidget.layout.<u></u>HtmlDivLayout<br>
[ERROR] /private/var/folders/ph/<u></u>8l1qbzzj23x7r628rqg5fqq00000gn<u></u>/T/<u></u>forgetemp2637555117540383425/<u></u>repo/src/main/java/org/jboss/<u></u>forge/scaffold/aerogear/<u></u>metawidget/layout/<u></u>HtmlDivLayout.java:[44,3] method does not override or implement a method from a supertype<br>

[ERROR] -&gt;   [Help 1]<br>
[ERROR]<br>
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.<br>
[ERROR] Re-run Maven using the -X switch to enable full debug logging.<br>
[ERROR]<br>
[ERROR] For more information about the errors and possible solutions, please read the following articles:<br>
[ERROR] [Help 1] <a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException" target="_blank">http://cwiki.apache.org/<u></u>confluence/display/MAVEN/<u></u>MojoFailureException</a><br>
***ERROR*** [forge git-plugin] Build failed.<br>
[no project] development $ version<br>
JBoss Forge, version [ 1.0.0.CR2 ] - JBoss, by Red Hat, Inc. [ <a href="http://jboss.org/forge" target="_blank">http://jboss.org/forge</a> ]<br>
[no project] development $<br>
<br>
On 24 Feb 2012, at 20:44, Richard Kennard wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Pete, Jay, Rodney,<br>
<br>
The work I have checked in to GitHub...<br>
<br>
    <a href="https://github.com/forge/scaffold-aerogear" target="_blank">https://github.com/forge/<u></u>scaffold-aerogear</a><br>
<br>
...and the blog entry I have documented...<br>
<br>
    <a href="https://community.jboss.org/thread/195877" target="_blank">https://community.jboss.org/<u></u>thread/195877</a><br>
<br>
...brings me to 240 hours (well, a little over, but I won&#39;t complicate things :). So I guess that concludes the contract we first discussed last October, the deliverables being &#39;A statically generated, extend-able [JSF] UI scaffold framework for Forge&#39; and &#39;Investigation of use of Metawidget in Mobile&#39;.<br>

<br>
Thank you for giving me this opportunity. I have enjoyed the work immensely, have learnt a lot, and everybody has been very helpful and supportive. I hope what I&#39;ve produced has met your expectations.<br>
<br>
I look forward to hearing from Jay regarding the AeroGear proof of concept, and to our contract meeting on 1st March.<br>
<br>
Thanks again,<br>
<br>
Richard.<br>
<br>
On 17/02/2012 10:57 PM, Jay Balunas wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Feb 17, 2012, at 1:52 AM, Richard Kennard&lt;<a href="mailto:richard@kennardconsulting.com" target="_blank">richard@<u></u>kennardconsulting.com</a>&gt;    wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jay,<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
look forward to seeing what you are planning, and working on.<br>
</blockquote>
Yes, sorry to be leaving you in the dark. Progress was slow at the start (I&#39;ve never used JQuery or JSON or HTML 5), but is now coming together nicely. I&#39;m 32 hours in with 31 hours left in the contact. I should be able to do another 15 hours or so before March 1st, by which time I should have something to show you.<br>

</blockquote>
Excellent!<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regards,<br>
<br>
Richard.<br>
<br>
On 16/02/2012 1:00 PM, Jay Balunas wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Feb 15, 2012, at 8:58 PM, Richard Kennard wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jay,<br>
<br>
Okay great. There is a meeting on 1st March with Pete, Rodney and myself to discuss The Future. You may want to attend, or talk to them before that?<br>
</blockquote>
Absolutely!  I&#39;ll touch base with them about that, and look forward to seeing what you are planning, and working on.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regards,<br>
<br>
Richard.<br>
<br>
On 16/02/2012 12:12 PM, Jay Balunas wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Feb 15, 2012, at 6:49 PM, Richard Kennard&lt;<a href="mailto:richard@kennardconsulting.com" target="_blank">richard@<u></u>kennardconsulting.com</a>&gt;      wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jay,<br>
<br>
By runtime generation, you mean JavaScript generating HTML widgets dynamically in response to inspecting/reflecting incoming metadata?<br>
</blockquote>
+1<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The current POC is focussed on *static* generation of HTML widgets (at &#39;Forge time&#39;). So you are talking about the work beyond that?<br>
</blockquote>
Understood, and yes this would be something additional.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For an example, please see the &#39;GWT Client Side&#39; demo in the Metawidget examples distribution. This is written using GWT compiled to JavaScript. Are you are asking for something similar, but a POH5 version?<br>
</blockquote>
The GWT solution could be very interesting, both the approach and the possible implication with poh5 (not mutually exclusive)<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regards,<br>
<br>
Richard.<br>
<br>
On 16/02/2012 2:22 AM, Jay Balunas wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Richard,<br>
<br>
I wanted to follow up on this, I know you only work Fridays on the JBoss stuff, so I wanted to catch you before that.<br>
<br>
There may also be pressure to get some of the POH5 runtime generation in place for JBoss World, so I wanted to discuss you expected availability between now and then.<br>
<br>
I&#39;d like to see your contract extended, but wanted to check with you first.<br>
<br>
Thoughts?<br>
<br>
-Jay<br>
<br>
On Feb 10, 2012, at 7:50 AM, Marius Bogoevici wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The convention is to use different URLs for Create/Update, e.g.<br>
<br>
POST /members -&gt;       create<br>
<br>
PUT /members/1 (or POST /members/1 take that, oppressive RESTful conventional wisdom  ;) ) UPDATE<br>
<br>
To me, it&#39;s not inconceivable that clients of such a service will perform ad-hoc updates (i.e. not part of a GET data/UPDATE data cycle), so assuming that there&#39;s a conversation going on won&#39;t help too much.<br>

<br>
I believe that such a service (especially if scaffolded with Forge) should use JSON throughout (rather than form data), and I *believe* this is what the Forge JAX-RS plugin does too, but I would have to check on that. In a more elaborate context like Forge, we could pair that with Backbone.js (or something else that Jay&amp;co love, but I think Bb.js was the belle of the ball) and use fetch()/save()/destroy() capabilities to streamline CRUD. IMO.<br>

<br>
<br>
On 12-02-10 5:43 AM, Pete Muir wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Adding Marius.<br>
<br>
BTW Richard, I&#39;m sure you know this but Lincoln added JAX-RS scaffold to Forge. Whatever we do here should be well integrated with that...<br>
<br>
On 10 Feb 2012, at 04:40, Richard Kennard wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jay,<br>
<br>
(please advise if there is an aerogear group I should be posting this to).<br>
<br>
As a first step towards a Forge/Metawidget/AeroGear/POH5 scaffolding, I am working on a POH5 CRUD app. The &#39;jboss-html5-mobile-archetype&#39; has given me a great head start, but there is some way to go.<br>
<br>
The first significant roadblock I have hit is *updating* existing entities. The archetype doesn&#39;t really cover this, but it sets a direction when it does...<br>
<br>
   @POST<br>
   @Consumes(MediaType.<u></u>APPLICATION_FORM_URLENCODED)<br>
   @Produces(MediaType.<u></u>APPLICATION_JSON)<br>
   public Response createMember(@FormParam(&quot;name&quot;<u></u>) String name ...<br>
<br>
A simple approach would be to simply add...<br>
<br>
   @POST<br>
   @Consumes(MediaType.<u></u>APPLICATION_FORM_URLENCODED)<br>
   @Produces(MediaType.<u></u>APPLICATION_JSON)<br>
   public Response createMember(@FormParam(&quot;id&quot;) String id, @FormParam(&quot;name&quot;) String name ...<br>
<br>
However this would make the cardinal mistake of &#39;trusting the client&#39; (to send back the original id). Instead, I think we need to keep a copy of any hidden data on the server, in a ConversationScope, just as we do with JSF.<br>

<br>
Unfortunately RESTEasy doesn&#39;t seem to play well with ConversationScope? The documentation for resteasy-cdi is unclear, but Jason Porter has investigated and concluded conversations are not supported (as REST does not convey any kind of session, let alone a conversation). So where to from here?<br>

<br>
1. Ignore this security problem and continue passing hidden data to/from the client<br>
2. Look at encrypting the data passed between client/server (rather like an encrypted view state)<br>
3. Work with Pete/Jozef to get ConversationScopes working between jQuery/RESTEasy/CDI<br>
4. Something else?<br>
<br>
Regards,<br>
<br>
Richard.<br>
</blockquote></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote>
<br>
</blockquote></blockquote>
<br>
<br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>&quot;Keep it Simple&quot;<br>