Spring Roo
  1. Spring Roo
  2. ROO-3282

WidgetVar should different from Id on Dialogs to avoid errors with Primefaces 3.2+

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.2.RELEASE
    • Fix Version/s: 1.2.3.RELEASE
    • Component/s: JSF
    • Labels:
      None
    • Environment:
      Primefaces 3.4

      Description

      After upgrading Primefaces to 3.4 version I started to experience javascript errors (Object #<HTMLDivElement> has no method 'refresh' ) on Chrome and IE, and the dialogs would only open on Firefox.

      On Primefaces forums, I found that starting at version 3.2, component id and widgetVar cannot have the same name:

      http://forum.primefaces.org/viewtopic.php?f=3&t=18830

      Indeed, after changing the dialog's widgetVar, the Roo generated application worked fine.

      Suggested improvement: use a widgetVar different from the id on create, edit and view dialogs.

      This will make upgrade to Primefaces easier.

        Activity

        Hide
        Murilo Rodrigues added a comment -

        The attached file is a possible fix. I still need to take some time and try to provide it in a patch format.

        Show
        Murilo Rodrigues added a comment - The attached file is a possible fix. I still need to take some time and try to provide it in a patch format.
        Hide
        Murilo Rodrigues added a comment -

        Fix provided in patch format. My previous fix suggestion was incomplete, as I need to also change not only "content-template.xhtml" but also "JsfManagedBeanMetadata.java"

        Show
        Murilo Rodrigues added a comment - Fix provided in patch format. My previous fix suggestion was incomplete, as I need to also change not only "content-template.xhtml" but also "JsfManagedBeanMetadata.java"
        Hide
        Alan Stewart added a comment -

        Resolved in Git ID 03449bcc5b5fb96b73a6567aff34ccb4f9eff53d

        Show
        Alan Stewart added a comment - Resolved in Git ID 03449bcc5b5fb96b73a6567aff34ccb4f9eff53d

          People

          • Assignee:
            Alan Stewart
            Reporter:
            Murilo Rodrigues
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: