Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 62

Thread: RichFaces/Ajax4JSF integration now available

  1. #11
    Join Date
    Mar 2008
    Posts
    170

    Default

    Quote Originally Posted by jeremyg484 View Post
    Those of you that are having problems, are you using the latest version of RichFaces? (3.1.4GA, as I recall.)

    -Jeremy
    Yes
    - Peter

  2. #12
    Join Date
    Mar 2008
    Posts
    21

    Default

    Quote Originally Posted by jeremyg484 View Post
    Those of you that are having problems, are you using the latest version of RichFaces? (3.1.4GA, as I recall.)

    -Jeremy
    Yes, it's the Richfaces 3.1.4GA with Facelets 1.1.14 and JSF RI (or MyFaces)

  3. #13
    Join Date
    Mar 2008
    Posts
    170

    Default

    After testing more RichFaces components I would like to share some information regarding the update problem.

    I looks to me that on the server side everything goes fine, the only difference I have seen so far in the log is how actions are invoked:

    Myfaces:
    Code:
    DEBUG: org.springframework.faces.webflow.FlowActionListener - Invoking action javax.faces.component._MethodExpressionToMethodBinding@b6c3b9
    RichFaces :
    Code:
    DEBUG: org.springframework.faces.webflow.FlowActionListener - Invoking action com.sun.facelets.el.LegacyMethodBinding@db440a
    The fact that after a manual refresh everything looks fine supports the assumption that everything goes fine on the server side.

    On the client side I have seen that different scripts are invoked to perform the update of the DOM.

    Myfaces:
    dojo.js

    Myfaces URL:
    Code:
    http://localhost:8080/BD/spring/enter-metadata-admin-flow?execution=c2v2
    RichFaces script:
    a4j_3_1_4.GAorg.ajax4jsf.javascript.AjaxScript

    RichFaces URL:
    Code:
    http://localhost:8080/BD/spring/enter-metadata-admin-flow?execution=c2v1&javax.portlet.faces.DirectLink=true
    I guess for some reason the RichFaces Ajax script does not trigger the refresh correctly.

    I have installed FireBug to view the requestes and the DOM. In case somebody can recommend a more appropriate tool to view DOM changes (I do not find a search funtion in this one) please share a link

    - Peter
    Last edited by iwtolall; Mar 28th, 2008 at 04:25 AM. Reason: URLs added

  4. #14
    Join Date
    Mar 2008
    Posts
    170

    Default

    Btw. this thread should not debar somebody from using RichFaces and SWF together. I'm playing around since a week and (for me) everything works fine except the re-rendering of fragments does not work (I currently use the reRender feature of RichFaces).

    - Peter

  5. #15
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    All,

    I am still having trouble reproducing the issues reported in this thread. In order to help things along, I have attached my RichFaces version of the booking sample to the corresponding JIRA issue:

    http://jira.springframework.org/browse/SWF-462

    This sample includes a maven pom with Jetty configuration so all you should have to do to test it out is 'mvn jetty:run' and point your browser to http://localhost:7001/swf-booking-richfaces/ It is set up to run against last night's build of the webflow artifacts.

    One thing to note in the sample that I failed to point out before is that to get things working correctly, I had to use the <a4j: outputPanel> tag in place of where we use the Facelets <ui:fragment> tag in the standard sample.

    If those of you that are having trouble could take a moment to compare my version of the sample with what you are trying to do locally and help me isolate any issues by reproducing them in the sample, that would be a fantastic help.

    Thanks again for all the feedback!
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  6. #16
    Join Date
    Jul 2006
    Location
    London
    Posts
    500

    Default

    After running your command:

    Code:
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.
    
    Missing:
    ----------
    1) org.springframework.security:spring-security-core:jar:2.0-M2
    
      Try downloading the file manually from the project website.
    
      Then, install it using the command:
          mvn install:install-file -DgroupId=org.springframework.security -DartifactId=spring-security-core -Dversion=2.0-M2 -Dpackaging=jar -Df
    ile=/path/to/file
    
      Alternatively, if you host your own repository you can deploy the file there:
          mvn deploy:deploy-file -DgroupId=org.springframework.security -DartifactId=spring-security-core -Dversion=2.0-M2 -Dpackaging=jar -Dfil
    e=/path/to/file -Durl=[url] -DrepositoryId=[id]
    
      Path to dependency:
            1) org.springframework:swf-booking-richfaces:war:2.0-rc1-SNAPSHOT
            2) org.springframework.security:spring-security-core:jar:2.0-M2
    
    ----------
    1 required artifact is missing.
    Regards,
    James

  7. #17
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    Ahh, sorry about that. Must've still had M2 in my local cache. I've updated it to use spring-security RC1 and attached a new version of the zip.
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  8. #18
    Join Date
    Jul 2006
    Location
    London
    Posts
    500

    Default

    Your example works for me.

    Haven't tested RC1 yet, so cant add any value with regards to the previous posts.
    Regards,
    James

  9. #19
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    Thanks, James. RC1 is not final, but the provided sample is pointing to the latest nightly build of what will become RC1.
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  10. #20
    Join Date
    Mar 2008
    Posts
    170

    Default

    Quote Originally Posted by jeremyg484 View Post
    All,

    One thing to note in the sample that I failed to point out before is that to get things working correctly, I had to use the <a4j: outputPanel> tag in place of where we use the Facelets <ui:fragment> tag in the standard sample.
    I thought it has to work with the <ui:fragment>. After wrapping an <a4j: outputPanel> around the fragment (with the same id) it works fine.

    - Peter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •