<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 12-02-13 7:14 PM, Lincoln Baxter, III wrote:
    <blockquote
cite="mid:CAEp_U4FKV9B85uVU4_tPR87p38TFC_hs2P7iDtVgTPm75KGoEA@mail.gmail.com"
      type="cite">Marius, you could try sorting on name?<br>
    </blockquote>
    Not sure how I can help here, but I can send a pull request for
    FacesScaffold ...<br>
    <blockquote
cite="mid:CAEp_U4FKV9B85uVU4_tPR87p38TFC_hs2P7iDtVgTPm75KGoEA@mail.gmail.com"
      type="cite"><br>
      <div class="gmail_quote">On Mon, Feb 13, 2012 at 7:14 PM, Lincoln
        Baxter, III <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">Are we
          certain that this is the source of the ordering issues?<br>
          <br>
          ~Lincoln
          <div>
            <div class="h5"><br>
              <br>
              <div class="gmail_quote">
                On Mon, Feb 13, 2012 at 6:26 PM, Richard Kennard <span
                  dir="ltr">&lt;<a moz-do-not-send="true"
                    href="mailto:richard@kennardconsulting.com"
                    target="_blank">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">My
                  apologies. It looks like I am misunderstanding the
                  API. The code in question does this
                  (FacesScaffold.java:691):<br>
                  <br>
                  for (Resource&lt;?&gt; resource :
                  web.getWebResource("scaffold").listResources())<br>
                  {<br>
                  HtmlOutcomeTargetLink outcomeTargetLink = new
                  HtmlOutcomeTargetLink();<br>
                  outcomeTargetLink.putAttribute("outcome", "/scaffold/"
                  + resource.getName() + "/search");<br>
outcomeTargetLink.setValue(StringUtils.uncamelCase(resource.getName()));<br>
                  <br>
                  HtmlTag listItem = new HtmlTag("li");<br>
                  listItem.getChildren().add(outcomeTargetLink);<br>
                  unorderedList.getChildren().add(listItem);<br>
                  }<br>
                  <br>
                  So I am relying on .listResources to return a
                  consistent ordering. It returns a List, not a Set, so
                  I thought it would be a defined ordering? And in all
                  my<br>
                  tests it seemed to come out alphabetically.<br>
                  <br>
                  But I guess I am wrong and I apologise. Lincoln can
                  you confirm and wrap this code in something to sort
                  the list?<br>
                  <br>
                  Regards,<br>
                  <br>
                  Richard.<br>
                  <br>
                  P.S. Marius thanks for debugging!<br>
                  <div>
                    <div><br>
                      On 14/02/2012 8:03 AM, Marius Bogoevici wrote:<br>
                      &gt;<br>
                      &gt; &nbsp; &nbsp; The main reason behind the different
                      build experiences seems to be that the navigation
                      content in FacesScaffoldTest is not generated
                      consistently<br>
                      &gt; &nbsp; &nbsp; across systems:<br>
                      &gt;<br>
                      &gt; &nbsp; &nbsp; - the test expects:<br>
                      &gt;<br>
                      &gt; &nbsp; &nbsp; [code]<br>
                      &gt; &nbsp; &nbsp; &lt;ul&gt;<br>
                      &gt; &nbsp; &nbsp; &lt;li&gt;<br>
                      &gt; &nbsp; &nbsp; &lt;h:link
                      outcome="/scaffold/customer/search"
                      value="Customer"/&gt;<br>
                      &gt; &nbsp; &nbsp; &lt;/li&gt;<br>
                      &gt; &nbsp; &nbsp; &lt;li&gt;<br>
                      &gt; &nbsp; &nbsp; &lt;h:link
                      outcome="/scaffold/employer/search"
                      value="Employer"/&gt;<br>
                      &gt; &nbsp; &nbsp; &lt;/li&gt;<br>
                      &gt; &nbsp; &nbsp; [/code]<br>
                      &gt;<br>
                      &gt; &nbsp; &nbsp; - on failure, the scaffold generates:<br>
                      &gt;<br>
                      &gt; &nbsp; &nbsp; [code]<br>
                      &gt; &nbsp; &nbsp; &lt;ul&gt;<br>
                      &gt; &nbsp; &nbsp; &lt;li&gt;<br>
                      &gt; &nbsp; &nbsp; &lt;h:link
                      outcome="/scaffold/employer/search"
                      value="Employer"/&gt;<br>
                      &gt; &nbsp; &nbsp; &lt;/li&gt;<br>
                      &gt; &nbsp; &nbsp; &lt;li&gt;<br>
                      &gt; &nbsp; &nbsp; &lt;h:link
                      outcome="/scaffold/customer/search"
                      value="Customer"/&gt;<br>
                      &gt; &nbsp; &nbsp; &lt;/li&gt;<br>
                      &gt; &nbsp; &nbsp; [/code]<br>
                      &gt;<br>
                      &gt; &nbsp; &nbsp; For some reason, the links are not
                      generated always in the same order, but I am not
                      sure what part in the scaffold or metawidget is
                      responsible for that.<br>
                      &gt;<br>
                      &gt;<br>
                      &gt;<br>
                      &gt;<br>
                      &gt; On 12-02-13 01:23 PM, Ryan Bradley wrote:<br>
                      &gt;&gt; Looks like I'm getting the same errors
                      that Marius was. I nuked my Maven repository, ran
                      a 'mvn clean install', and the following tests
                      failed:<br>
                      &gt;&gt;<br>
                      &gt;&gt;
testGenerateManyToOneEntity(org.jboss.forge.scaffold.faces.FacesScaffoldTest)<br>
                      &gt;&gt;
testGenerateOneToManyEntity(org.jboss.forge.scaffold.faces.FacesScaffoldTest)<br>
                      &gt;&gt;<br>
                      &gt;&gt; I've put the stack trace in a Pastebin: <a
                        moz-do-not-send="true"
                        href="http://pastebin.com/qXafYDg4"
                        target="_blank">http://pastebin.com/qXafYDg4</a>.<br>
                      &gt;&gt;<br>
                      &gt;&gt; Cheers,<br>
                      &gt;&gt; Ryan<br>
                      &gt;&gt;<br>
                      &gt;&gt; P.S. I am running 64-bit Fedora 15 on my
                      machine.<br>
                      &gt;&gt;<br>
                      &gt;&gt; On 02/13/2012 11:18 AM, Koen Aers wrote:<br>
                      &gt;&gt;&gt; Yes it does here&#8230;<br>
                      &gt;&gt;&gt; I only tried on OSX though.<br>
                      &gt;&gt;&gt;<br>
                      &gt;&gt;&gt; Cheers,<br>
                      &gt;&gt;&gt; Koen<br>
                      &gt;&gt;&gt;<br>
                      &gt;&gt;&gt; Op 13-feb.-2012, om 17:06 heeft
                      Lincoln Baxter, III het volgende geschreven:<br>
                      &gt;&gt;&gt;<br>
                      &gt;&gt;&gt;&gt; So the build is working for
                      folks? I nuked my repo and build succeeded :)<br>
                      &gt;&gt;&gt;&gt;<br>
                      &gt;&gt;&gt;&gt; ~Lincoln<br>
                      &gt;&gt;&gt;&gt;<br>
                    </div>
                  </div>
                  <div>&gt;&gt;&gt;&gt; On Mon, Feb 13, 2012 at 3:19 AM,
                    Koen Aers &lt;<a moz-do-not-send="true"
                      href="mailto:koen.aers@gmail.com" target="_blank">koen.aers@gmail.com</a>
                    &lt;mailto:<a moz-do-not-send="true"
                      href="mailto:koen.aers@gmail.com" target="_blank">koen.aers@gmail.com</a>&gt;&gt;
                    wrote:<br>
                    &gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt; &nbsp; &nbsp; Nuking the Maven repo also did
                    the trick on my machine.<br>
                    &gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt; &nbsp; &nbsp; Thanks Marius!<br>
                    &gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt; &nbsp; &nbsp; Cheers,<br>
                    &gt;&gt;&gt;&gt; &nbsp; &nbsp; Koen<br>
                    &gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt; &nbsp; &nbsp; Op 13-feb.-2012, om 02:08 heeft
                    Marius Bogoevici het volgende geschreven:<br>
                    &gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; My build failed
                    consistently in
                    FacesScaffoldTest.testGenerateOneToManyEntity() and
                    FacesScaffoldTest.testGenerateOneToManyEntity until
                    I nuked<br>
                    &gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; my local Maven repo. Then
                    it didn't.<br>
                    &gt;&gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; On 12-02-10 3:24 PM,
                    Lincoln Baxter, III wrote:<br>
                    &gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; Just a sanity check.
                    Thanks!<br>
                    &gt;&gt;&gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; <a
                      moz-do-not-send="true"
                      href="https://github.com/forge/core"
                      target="_blank">https://github.com/forge/core</a><br>
                    &gt;&gt;&gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; --<br>
                    &gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; Lincoln Baxter, III<br>
                  </div>
                  <div>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; <a
                      moz-do-not-send="true" href="http://ocpsoft.com"
                      target="_blank">http://ocpsoft.com</a> &lt;<a
                      moz-do-not-send="true" href="http://ocpsoft.com/"
                      target="_blank">http://ocpsoft.com/</a>&gt;<br>
                    &gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; <a
                      moz-do-not-send="true"
                      href="http://scrumshark.com" target="_blank">http://scrumshark.com</a>
                    &lt;<a moz-do-not-send="true"
                      href="http://scrumshark.com/" target="_blank">http://scrumshark.com/</a>&gt;<br>
                  </div>
                  <div>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; "Keep it Simple"<br>
                    &gt;&gt;&gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp;
                    _______________________________________________<br>
                    &gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; forge-dev mailing list<br>
                  </div>
                  &gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; <a
                    moz-do-not-send="true"
                    href="mailto:forge-dev@lists.jboss.org"
                    target="_blank">forge-dev@lists.jboss.org</a>
                  &nbsp;&lt;mailto:<a moz-do-not-send="true"
                    href="mailto:forge-dev@lists.jboss.org"
                    target="_blank">forge-dev@lists.jboss.org</a>&gt;<br>
                  <div>&gt;&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; <a
                      moz-do-not-send="true"
                      href="https://lists.jboss.org/mailman/listinfo/forge-dev"
                      target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
                    &gt;&gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp;
                    _______________________________________________<br>
                    &gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; forge-dev mailing list<br>
                  </div>
                  &gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; <a moz-do-not-send="true"
                    href="mailto:forge-dev@lists.jboss.org"
                    target="_blank">forge-dev@lists.jboss.org</a>
                  &lt;mailto:<a moz-do-not-send="true"
                    href="mailto:forge-dev@lists.jboss.org"
                    target="_blank">forge-dev@lists.jboss.org</a>&gt;<br>
                  <div>&gt;&gt;&gt;&gt;&gt; &nbsp; &nbsp; <a
                      moz-do-not-send="true"
                      href="https://lists.jboss.org/mailman/listinfo/forge-dev"
                      target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
                    &gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt; &nbsp; &nbsp;
                    _______________________________________________<br>
                    &gt;&gt;&gt;&gt; &nbsp; &nbsp; forge-dev mailing list<br>
                  </div>
                  &gt;&gt;&gt;&gt; &nbsp; &nbsp; <a moz-do-not-send="true"
                    href="mailto:forge-dev@lists.jboss.org"
                    target="_blank">forge-dev@lists.jboss.org</a>
                  &lt;mailto:<a moz-do-not-send="true"
                    href="mailto:forge-dev@lists.jboss.org"
                    target="_blank">forge-dev@lists.jboss.org</a>&gt;<br>
                  <div>&gt;&gt;&gt;&gt; &nbsp; &nbsp; <a moz-do-not-send="true"
                      href="https://lists.jboss.org/mailman/listinfo/forge-dev"
                      target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
                    &gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt;<br>
                    &gt;&gt;&gt;&gt; --<br>
                    &gt;&gt;&gt;&gt; Lincoln Baxter, III<br>
                  </div>
                  <div>&gt;&gt;&gt;&gt; <a moz-do-not-send="true"
                      href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a>
                    &lt;<a moz-do-not-send="true"
                      href="http://ocpsoft.com/" target="_blank">http://ocpsoft.com/</a>&gt;<br>
                    &gt;&gt;&gt;&gt; <a moz-do-not-send="true"
                      href="http://scrumshark.com" target="_blank">http://scrumshark.com</a>
                    &lt;<a moz-do-not-send="true"
                      href="http://scrumshark.com/" target="_blank">http://scrumshark.com/</a>&gt;<br>
                  </div>
                  <div>&gt;&gt;&gt;&gt; "Keep it Simple"<br>
                    &gt;&gt;&gt;&gt;
                    _______________________________________________<br>
                    &gt;&gt;&gt;&gt; forge-dev mailing list<br>
                  </div>
                  &gt;&gt;&gt;&gt; <a moz-do-not-send="true"
                    href="mailto:forge-dev@lists.jboss.org"
                    target="_blank">forge-dev@lists.jboss.org</a>
                  &lt;mailto:<a moz-do-not-send="true"
                    href="mailto:forge-dev@lists.jboss.org"
                    target="_blank">forge-dev@lists.jboss.org</a>&gt;<br>
                  <div>
                    <div>&gt;&gt;&gt;&gt; <a moz-do-not-send="true"
                        href="https://lists.jboss.org/mailman/listinfo/forge-dev"
                        target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
                      &gt;&gt;&gt;<br>
                      &gt;&gt;&gt;<br>
                      &gt;&gt;&gt;<br>
                      &gt;&gt;&gt;
                      _______________________________________________<br>
                      &gt;&gt;&gt; forge-dev mailing list<br>
                      &gt;&gt;&gt; <a moz-do-not-send="true"
                        href="mailto:forge-dev@lists.jboss.org"
                        target="_blank">forge-dev@lists.jboss.org</a><br>
                      &gt;&gt;&gt; <a moz-do-not-send="true"
                        href="https://lists.jboss.org/mailman/listinfo/forge-dev"
                        target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
                      &gt;&gt;<br>
                      &gt;&gt;<br>
                      &gt;&gt;<br>
                      &gt;&gt;
                      _______________________________________________<br>
                      &gt;&gt; forge-dev mailing list<br>
                      &gt;&gt; <a moz-do-not-send="true"
                        href="mailto:forge-dev@lists.jboss.org"
                        target="_blank">forge-dev@lists.jboss.org</a><br>
                      &gt;&gt; <a moz-do-not-send="true"
                        href="https://lists.jboss.org/mailman/listinfo/forge-dev"
                        target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
                      &gt;<br>
                      &gt;<br>
                      &gt;<br>
                      &gt;<br>
                      &gt;
                      _______________________________________________<br>
                      &gt; forge-dev mailing list<br>
                      &gt; <a moz-do-not-send="true"
                        href="mailto:forge-dev@lists.jboss.org"
                        target="_blank">forge-dev@lists.jboss.org</a><br>
                      &gt; <a moz-do-not-send="true"
                        href="https://lists.jboss.org/mailman/listinfo/forge-dev"
                        target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
                      <br>
                      _______________________________________________<br>
                      forge-dev mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:forge-dev@lists.jboss.org"
                        target="_blank">forge-dev@lists.jboss.org</a><br>
                      <a moz-do-not-send="true"
                        href="https://lists.jboss.org/mailman/listinfo/forge-dev"
                        target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
                    </div>
                  </div>
                </blockquote>
              </div>
              <br>
              <br clear="all">
              <br>
              -- <br>
              Lincoln Baxter, III<br>
              <a moz-do-not-send="true" href="http://ocpsoft.com"
                target="_blank">http://ocpsoft.com</a><br>
            </div>
          </div>
          <a moz-do-not-send="true" href="http://scrumshark.com"
            target="_blank">http://scrumshark.com</a><br>
          "Keep it Simple"<br>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      Lincoln Baxter, III<br>
      <a moz-do-not-send="true" href="http://ocpsoft.com">http://ocpsoft.com</a><br>
      <a moz-do-not-send="true" href="http://scrumshark.com">http://scrumshark.com</a><br>
      "Keep it Simple"<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
forge-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/forge-dev">https://lists.jboss.org/mailman/listinfo/forge-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>