| Author |
Message |
|
|
Post subject: ICEfaces dataTable problem
Posted: Nov 07, 2007 - 04:11 PM
|
|
Veteran Member


Joined: Mar 04, 2005
Posts: 8
|
|
Hi Folks,
I'm new to ICEfaces and relatively new to MyEclipse. Hopefully the answer to my problem isn't too obvious. I have the following code in a JSP page:
<ice:dataTable border="1" var="name" value="#{PDCBean.names}">
<ice:column id="column1">
<f:facet name="header">
<ice:outputText value="column1"></ice:outputText>
</f:facet>
<ice:outputText value="#{name.last}"></ice:outputText>
</ice:column>
<ice:column id="column2">
<f:facet name="header">
<ice:outputText value="column2"></ice:outputText>
</f:facet>
<ice:outputText value="#{name.first}"></ice:outputText>
</ice:column>
</ice:dataTable>
The problem is that in these two lines the editor is underlining the "name" text and saying that "name cannot be resolved":
<ice:outputText value="#{name.last}"></ice:outputText>
<ice:outputText value="#{name.first}"></ice:outputText>
But I specified var="name" in the first line:
<ice:dataTable border="1" var="name" value="#{PDCBean.names}">
Why won't the outputText recognize "name"?
Thanks,
Glenn |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2007 - 05:49 PM
|
|
Registered Member

Joined: Oct 26, 2007
Posts: 1
|
|
First of all please check your MyEclipse version
In 5.5 the errors is show and is expected since MyEclipse does not validate correctly the var value. Upon release notes from MyEclipse, this issue is fixed in 6.1.
If you this issue in MyEclipse 6.1 it might be a bug.
Thank you |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 08, 2007 - 05:56 PM
|
|
Veteran Member


Joined: Mar 04, 2005
Posts: 8
|
|
| Thanks for your response. I am using MyEclipse 6.0.1 GA. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 29, 2008 - 08:56 PM
|
|
Registered Member


Joined: Apr 23, 2007
Posts: 7
|
|
| I'm experiencing the same issue in MyEclipse 6.0.1 GA. All uses of the values for the var property of the IceFaces datatables are generating a warning (122 at last count). Is there a workaround like/unlike the java annotations that can disable compiler warnings in java code? If not, any idea when we can expect 6.1 to be released? I'm one of those ornery obsessive developers who can't stand validation messages of any kind, warning, or otherwise. So this is driving me crazy! ;O) |
|
|
| |
|
|
|
 |
|
|
Post subject: Same validation problem in ME 6.5
Posted: Aug 27, 2008 - 11:06 PM
|
|
Veteran Member


Joined: Aug 10, 2003
Posts: 24
|
|
I'm running ME 6.5 on windows and get the very same problem.
I have a ice:dataTable with var="row". Everywhere I use '#{row...' within the scope of the datatable ME shows a validation problem.
"row cannot be resolved"
But it runs ok. Just hate those validation problems. |
|
|
| |
|
|
|
 |
|
|