[forge-commits] [forge/scaffold-html5] e903ff: Working prototype with Metawidget inspectors.

Vineet Reynolds Vineet.Reynolds at gmail.com
Tue Feb 5 05:53:48 EST 2013


  Branch: refs/heads/master
  Home:   https://github.com/forge/scaffold-html5
  Commit: e903fff86f3c4380e4d0983e03e502f14ac3a31e
      https://github.com/forge/scaffold-html5/commit/e903fff86f3c4380e4d0983e03e502f14ac3a31e
  Author: Vineet Reynolds <Vineet.Reynolds at gmail.com>
  Date:   2013-01-29 (Tue, 29 Jan 2013)

  Changed paths:
    M pom.xml
    M src/main/java/org/jboss/forge/scaffold/html5/Html5Scaffold.java
    A src/main/java/org/jboss/forge/scaffold/html5/metawidget/inspector/ForgeInspectionResultConstants.java
    A src/main/java/org/jboss/forge/scaffold/html5/metawidget/inspector/ForgeInspector.java
    A src/main/java/org/jboss/forge/scaffold/html5/metawidget/inspector/propertystyle/ForgePropertyStyle.java
    A src/main/java/org/jboss/forge/scaffold/html5/metawidget/inspector/propertystyle/ForgePropertyStyleConfig.java
    M src/main/resources/scaffold/angularjs/partials/detail.html.ftl
    M src/main/resources/scaffold/angularjs/partials/search.html.ftl
    M src/main/resources/scaffold/angularjs/scripts/entityModule.js.ftl

  Log Message:
  -----------
  Working prototype with Metawidget inspectors.

Reused the ForgeInspector from the scaffold-aerogear project.

Wired in a CompositeInspector that produces a org.w3c.dom.Element instance that is further parsed before feeding to the FreeMarker templates.


  Commit: 01322b56d588b43e3440f5e56b0f0bfd5e4994f9
      https://github.com/forge/scaffold-html5/commit/01322b56d588b43e3440f5e56b0f0bfd5e4994f9
  Author: Vineet Reynolds <Vineet.Reynolds at gmail.com>
  Date:   2013-01-30 (Wed, 30 Jan 2013)

  Changed paths:
    M src/main/resources/scaffold/angularjs/partials/detail.html.ftl

  Log Message:
  -----------
  Fixed the generation of the required attribute in HTML5 forms.


  Commit: 1cce775ed6c91ea75babab218a533fce3cb190bb
      https://github.com/forge/scaffold-html5/commit/1cce775ed6c91ea75babab218a533fce3cb190bb
  Author: Vineet Reynolds <Vineet.Reynolds at gmail.com>
  Date:   2013-01-30 (Wed, 30 Jan 2013)

  Changed paths:
    M src/main/java/org/jboss/forge/scaffold/html5/Html5Scaffold.java
    M src/main/resources/scaffold/angularjs/partials/detail.html.ftl

  Log Message:
  -----------
  Added logic to the detail-entity FTL for date and number types.

Specialized HTML5 input type attributes like type="date", type="datetime" etc. are now generated and used for display when creating or editing entities.


  Commit: 61962c59b2f35c733425e889c219db1c0988540d
      https://github.com/forge/scaffold-html5/commit/61962c59b2f35c733425e889c219db1c0988540d
  Author: Vineet Reynolds <Vineet.Reynolds at gmail.com>
  Date:   2013-01-30 (Wed, 30 Jan 2013)

  Changed paths:
    M src/main/resources/scaffold/angularjs/partials/detail.html.ftl

  Log Message:
  -----------
  Refactored the logic for displaying input types.


  Commit: ef3ffeefb740c326f3d1948167e32fe0eb3f4037
      https://github.com/forge/scaffold-html5/commit/ef3ffeefb740c326f3d1948167e32fe0eb3f4037
  Author: Vineet Reynolds <Vineet.Reynolds at gmail.com>
  Date:   2013-02-03 (Sun, 03 Feb 2013)

  Changed paths:
    M src/main/resources/scaffold/angularjs/index.html.ftl

  Log Message:
  -----------
  Enabled Twitter Bootstrap responsive feature.


  Commit: 9c7abd7931f5b17adfcd5976a8a44b4085302296
      https://github.com/forge/scaffold-html5/commit/9c7abd7931f5b17adfcd5976a8a44b4085302296
  Author: Vineet Reynolds <Vineet.Reynolds at gmail.com>
  Date:   2013-02-05 (Tue, 05 Feb 2013)

  Changed paths:
    M src/main/java/org/jboss/forge/scaffold/html5/Html5Scaffold.java
    M src/main/resources/scaffold/angularjs/index.html.ftl
    M src/main/resources/scaffold/angularjs/partials/detail.html.ftl
    M src/main/resources/scaffold/angularjs/partials/search.html.ftl
    M src/main/resources/scaffold/angularjs/scripts/controllers.js.ftl
    M src/main/resources/scaffold/angularjs/scripts/entityModule.js.ftl

  Log Message:
  -----------
  Added support for M:1 relationships in the generated scaffold


  Commit: d76982fd507f05af7ef60e482fd68ec74c365c68
      https://github.com/forge/scaffold-html5/commit/d76982fd507f05af7ef60e482fd68ec74c365c68
  Author: Vineet Reynolds <Vineet.Reynolds at gmail.com>
  Date:   2013-02-05 (Tue, 05 Feb 2013)

  Changed paths:
    M src/main/resources/scaffold/angularjs/scripts/controllers.js.ftl

  Log Message:
  -----------
  Fixed issue involving display of relationship references.

The generated scaffold now contains code to replace a JSON object reference in an AngularJS Resource, with a reference to a Resource object present in a Resource collection. This is done to pass the object identity (===) comparison test used by AngularJS for HTML5 select elements. AngularJS requires that the ngModel bound to a select, should also be present in the ngOptions array/collection, failing which it does not display the bound model element. When a Resource with a JSON object is originally obtained, the JSON object is not equal (===) to any element in the Resource array/collection used by ngOptions; hence the need to replace the JSON object with an actual element from the array/collection.


Compare: https://github.com/forge/scaffold-html5/compare/b5a51074b4c4...d76982fd507f


More information about the forge-commits mailing list