[jboss-user] [JBoss Tools] - Code assist in JBoss Tool HTML Editor for EL in XHTML

Torsten Knopp do-not-reply at jboss.com
Wed Aug 31 06:33:56 EDT 2011

Torsten Knopp [http://community.jboss.org/people/TorstenKnopp] created the discussion

"Code assist in JBoss Tool HTML Editor for EL in XHTML"

To view the discussion, visit: http://community.jboss.org/message/623968#623968


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
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:

h2. 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?


Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110831/5f4b20b7/attachment.html 

More information about the jboss-user mailing list