Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-3965

Integration with WTP JSF Tools

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.6.2.RELEASE
    • Fix Version/s: None
    • Component/s: EDITING
    • Labels:
      None

      Description

      If you have an Eclipse WTP Dynamic Web Project with the Java Server Faces project Facet, when you have managed classes (either listed in faces-config.xml or annotated with @ManagedBean) and you edit a facelet (.xhtml file with JSF markup), the facelet editor provides you with code assist on managed bean names and attributes.

      For instance:

      MyBean.java
      @ManagedBean
      public class MyBean {
        private String foobar;
        // getter and setter...
      }
      
      myFacelet.xhtml
      [...]
      <h:outputText value="#{myBean.foo|}" />
      [...]
      

      If you invoke code assist at "|", the editor will complete with foobar.

      Now, suppose your faces-config.xml declares the use of SpringBeanFacesELResolver, because you want to handle managed beans with Spring:

      faces-config.xml
      <?xml version='1.0' encoding='UTF-8'?>
      <faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd"
        version="2.2">
        <application
          <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
        </application>
        <!-- [...] -->
      </faces-config>
      

      In this case it would be extremely useful if the facelet editor could provide me with the same code assist functionality against Spring beans.
      Refactoring support would also be a great plus.

      Adding the Spring Nature to your project would be a perfectly reasonable requirement. In this case STS already knows the whole Spring Beans model, so it shouldn't be too hard to make this work (if the facelet editor is enough extensible).

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mauromol Mauro Molinari
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: