Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ol> <li><p>Install <a href="http://jboss.org/tools">JBoss tools</a>. Then by adding <code>&lt;nature&gt;org.jboss.tools.jsf.jsfnature&lt;/nature&gt;</code> to the <code>natures</code> section of the <code>.project</code> file, the support improved in my Eclipse J2EE Helios edition. (This step is probably equal to <code>Configure-&gt;Add JSF Capabilities</code> in the project settings.) The context completion then works for <code>cc.attrs.&lt;ctrl-space&gt;</code> when building component compositions, but sadly still not for any <code>@ManagedBean</code>s. </p></li> <li><p>Switch from ManagedBeans to CDI: I changed all <code>@ManagedBean</code>s to <code>@javax.inject.Named</code> and the scopes to <code>@javax.enterprise.context.*Scoped</code> etc. I also enable CDI Support in the project settings. Then I get context completion on beans in <code>.xhtml</code>!</p></li> </ol> <p>First limitation: It only works when the EL is part of an attribute value. It does not work if you just use <code>#{EL}</code> somewhere else on the <code>.xhtml</code> page.</p> <p>Second limitation: If you define the name of your bean via a constant, it is not recognized for context competion: Does not work: <code>@Named(value = MyBean.BEANNAME)</code>. You have to set the name as a String, like: <code>@Named(value = "myBean")</code></p> <p>Third limitation: If you use parameterised method calls (e.g. with Tomcat7 or Glassfish), this is not supported by autocomplete. The autocomplete only shows get/set/is properties of the bean.</p> <p>Note: It works out of the box in Netbeans 7.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload