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

Implement openOn for Jsf 2 resources declaration

    XMLWordPrintable

Details

    Description

      Add open on for such jsf 2 resource declaration #

      {resource['LIBRARY_NAME:RESOURCE_NAME']}

      ".
      Test case:
      EXECUTE:
      1. Create JSF 2 Project with following files in resource folder:
      /resources/css/foobar.css
      /resources/images/foobar.gif
      /resources/javascript/foobar.js
      2. Create page.xhtml file:

      <html xmlns:h="http://java.sun.com/jsf/html">
         <head>
            <title>Example</title>
         </head>
         <body>
         		<!-- implemented -->
      		<h:graphicImage library="images" name="foobar.gif"/>
      		<h:outputStylesheet library="css" name="foobar.css"/>
      		<h:outputScript library="javascript" name="foobar.js" target="head"/>
      		
      		<!-- via EL. Need to be done -->
      		<h:graphicImage value="#{resource['images:foobar.jpg']}"/>
      		<h:outputStylesheet value="#{resource['css:foobar.css']}"/>
      		<h:outputScript value="#{resource['javascript:foobar.js']}"/>
      
      	</body>
      </html>
      

      2. Press Ctrl button and click mouse to "foobar.jpg" or "foobar.css" or "foobar.js" in EL part
      ASSERT: Selected file should be opened in editor

      Attachments

        Activity

          People

            jmaury@redhat.com Jeff MAURY
            mareshkau_jira Maxim Areshkau (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: