Reputation: 423
in one of my projects I have to use JSF with a Spring backend. I use the org.springframework.web.jsf.el.SpringBeanFacesELResolver
to resolve the el-expressions in JSF to the Spring beans. Everything works fine except that Intellij 13 does not link the el-expressions to my beans. There is also no autocompletion available. It is really annoying if you have to type or copy/paste all the keys into your JSF pages.
Does someone know a solution for my problem?
Upvotes: 2
Views: 415
Reputation: 680
Using the @elvariable
tag in JSF forces Intellij to resolve the classes used:
<!--@elvariable id="model" type="com.package.Model"-->
<!--@elvariable id="item" type="com.package.entity.Item"-->
<rich:dataTable value="#{model}" var="item">
...
</rich:dataTable>
This gives you autocomplete and warnings when methods aren't available.
Upvotes: 1