RayDeCampo
2014-10-09 20:59:53 UTC
I have a project I am migrating from IntelliJ. In IntelliJ I could use an @elvariable comment to tell the IDE about the type of EL variables it could not determine itself. E.g.
Code:
<!--@elvariable id="plan" type="com.example.model.Plan"-->
<t:dataTable id="planTable" var="plan" forceIdIndexFormula="#{plan.id}"
value="#{plansDataModel}" rowStyleClass="row style#{plan.status}" renderedIfEmpty="false">
<h:column>
<h:outputText value="#{plan.planNumber}"/>
</h:column>
</t:dataTable>
Here the IDE cannot determine the type of the variable plan in the dataTable. NetBeans warns me with 'Unknown Property' on every use of the plan variable. However, IntelliJ is able to determine that the properties are correct because it interprets the @elvariable comment and knows that the type is com.example.model.Plan.
Is there an equivalent to this for NetBeans? I am using NetBeans 8.0.1.
Code:
<!--@elvariable id="plan" type="com.example.model.Plan"-->
<t:dataTable id="planTable" var="plan" forceIdIndexFormula="#{plan.id}"
value="#{plansDataModel}" rowStyleClass="row style#{plan.status}" renderedIfEmpty="false">
<h:column>
<h:outputText value="#{plan.planNumber}"/>
</h:column>
</t:dataTable>
Here the IDE cannot determine the type of the variable plan in the dataTable. NetBeans warns me with 'Unknown Property' on every use of the plan variable. However, IntelliJ is able to determine that the properties are correct because it interprets the @elvariable comment and knows that the type is com.example.model.Plan.
Is there an equivalent to this for NetBeans? I am using NetBeans 8.0.1.