Hello,
I have spent a couple of days trying to figure this one out, and I think either the project is getting set up wrong or I am doing something weird. I first set up a project with Spring, Hibernate and JSF got everything working in Hibernate and returning rows but in JSF, I was setting a datatable and named the var. When I tried to use this with outputtext and value it can’t see the var from the datatable.
So I thought its me, I did another project only importing jsf and followed the tutorial for login, after importing the bundle, I can’t see that var either. It says can’t be found and ctrl space doesn’t show vars only beans
Here is my jsp from the tutorial
<body>
<f:view>
<h:form>
<f:loadBundle basename=”com.sempra.message.MessageBundle” var=”bundle”/>
<h:dataTable id=”data”
var=”atom”
value=”#{LoginUser.bob}”
>
<h:column>
<f:facet name=”header”>
<f:verbatim>ID</f:verbatim>
</f:facet>
<h:outputText value=”#{atom.crap1}”></h:outputText>
<h:outputText value=”#{bundle}”></h:outputText>
</h:column>
</h:dataTable>
</h:form>
</f:view>
</body>
</html>
I also put in a list from a bean and cant see that var either, can anyone help me?
Cheers
Devlin