7 Replies Latest reply on Sep 2, 2011 2:00 AM by akazakov

    Code assist in JBoss Tool HTML Editor for EL in XHTML

    torstenknopp

      Hello!

       

      I use Eclipse 3.7 Indigo for EE-Developers with JBoss tools 3.3.0 M2 plugin and didn't get code assist in xhtml files for EL!

      I work with Apache Myfaces 2.0 implementation.

       

      Here is the managedBean:

      /*

      * customer profile

      */

      @ManagedBean

      @SessionScoped

      public class Customer {

          private String firstName;

          private String lastName;

       

          public String getFirstName() {

              return firstName;

          }

       

          public void setFirstName(String firstName) {

              this.firstName = firstName;

          }

       

          public String getLastName() {

              return lastName;

          }

       

          public void setLastName(String lastName) {

              this.lastName = lastName;

          }

       

          public String save() {

              return "/showCustomer.xhtml";

          }

       

      }

       

      and here is the xhtml-File:

       

       

      <h:inputText id="firstName" value="#{customer.???????? }"/>

       

      When I press Ctrl + space i get: "No JBoss JSF EL proposals"

       

      I read in this forum:

       

      Proposals for XML/JSP/XHTML Expression Language (JSF and/or Seam EL-expressions)

      Some Runtimes allow a user to use Expression Language inside the XML, JSP and XHTML pages. Depending on the Content Type of the page there are different regions where the EL-expressions can be used as:

      • attribute values: in XML, JSP and XHTML files;
      • part of text regions (Default Text): in XML and XHTML files.

       

      The EL-expressions are to be surrounded either by "#{…}", or "${…}"  character sequence. In case of absent EL closing character sequence it will be added to the text automatically after some of EL proposals is applied to the text.


      There are two ways to invoke the CA:

      • Manual: You could place cursor into a text inside a text between the EL opening and closing character sequences and then press Ctrl-Space key combination.
      • Automatic:  You could type one of the CA-auto start characters in inside the EL-expression (in a text or an attribute value region depending on the Content Type). The characters are ".", "[". In this case the CA for tag name proposals will be invoked automatically. Also the CA will be invoked automatically if you type the "{"-character right after the "$"-character or "#"-character.

       

      Any idea what I'm doing wrong?

       

      Thanks!