Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9753

multiple content web roots seem to confuse VPE

    Details

      Description

      import AS 7 quickstarts kitchensink and even though the template files are in the right place it doesn't pick it up.

      See http://screencast.com/t/7FI8I2hZBP

      Example is available here: https://github.com/jbossas/quickstart/tree/master/kitchensink

        Gliffy Diagrams

        1. cannot-reproduce.png
          52 kB
        2. resolved.png
          54 kB
        3. screenshot111.png
          191 kB

          Activity

          Hide
          yradtsevich Yahor Radtsevich added a comment -

          I figured out why I was unable to reproduce this bug. I did not have m2e WTP integration plugins, that is why my project missed WTP natures, that is why getDefaultWebRoot could not be found, and that is why VPE tried to find linked files by itself (successfully).

          Show
          yradtsevich Yahor Radtsevich added a comment - I figured out why I was unable to reproduce this bug. I did not have m2e WTP integration plugins, that is why my project missed WTP natures, that is why getDefaultWebRoot could not be found, and that is why VPE tried to find linked files by itself (successfully).
          Hide
          akazakov Alexey Kazakov added a comment -

          Yahor, you can use org.jboss.tools.jst.web.WebUtils.getWebRootFolders(IProject project) to get the list of root folders. By default this method will eliminate target folders from the result list. If you need such folders anyway then use WebUtils.getWebRootFolders(IProject project, boolean ignoreDerived)

          Show
          akazakov Alexey Kazakov added a comment - Yahor, you can use org.jboss.tools.jst.web.WebUtils.getWebRootFolders(IProject project) to get the list of root folders. By default this method will eliminate target folders from the result list. If you need such folders anyway then use WebUtils.getWebRootFolders(IProject project, boolean ignoreDerived)
          Hide
          yradtsevich Yahor Radtsevich added a comment -

          RESOLVED

          Show
          yradtsevich Yahor Radtsevich added a comment - RESOLVED
          Hide
          yradtsevich Yahor Radtsevich added a comment -

          4QAs:
          To check this issue, you may:

          1. svn co http://anonsvn.jboss.org/repos/jbosstools/trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/ jsf2test
          2. Import the folder jsf2test into Eclipse as existing project
          3. Open jsf2test/WebContent/pages/JBIDE/9753/welcome.xhtml in VPE (it links to /templates/main-web-content2.xhtml which is under /jsf2test/WebContent2)
          4. If anything is OK, you should see:
          Show
          yradtsevich Yahor Radtsevich added a comment - 4QAs: To check this issue, you may: svn co http://anonsvn.jboss.org/repos/jbosstools/trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsf2test/ jsf2test Import the folder jsf2test into Eclipse as existing project Open jsf2test/WebContent/pages/JBIDE/9753/welcome.xhtml in VPE (it links to /templates/main-web-content2.xhtml which is under /jsf2test/WebContent2) If anything is OK, you should see:
          Hide
          vpakan Vlado Pakan added a comment -

          Verified on jbosstools-3.3_stable_branch.aggregate-Update-2011-10-27_16-13-53-H37.

          Show
          vpakan Vlado Pakan added a comment - Verified on jbosstools-3.3_stable_branch.aggregate-Update-2011-10-27_16-13-53-H37.

            People

            • Assignee:
              yradtsevich Yahor Radtsevich
              Reporter:
              maxandersen Max Rydahl Andersen
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development