Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
shookie10
Post subject: ICEfaces dataTable problem  PostPosted: Nov 07, 2007 - 04:11 PM
Veteran Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
alejandro.arango.nieto
Post subject:   PostPosted: Nov 08, 2007 - 05:49 PM
Registered Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
shookie10
Post subject:   PostPosted: Nov 08, 2007 - 05:56 PM
Veteran Member
Veteran Member


Joined: Mar 04, 2005
Posts: 8

Thanks for your response. I am using MyEclipse 6.0.1 GA.
 
 View user's profile Send private message  
Reply with quote Back to top
OldSchool
Post subject:   PostPosted: Jan 29, 2008 - 08:56 PM
Registered Member
Registered Member


Joined: Apr 23, 2007
Posts: 6

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)
 
 View user's profile Send private message  
Reply with quote Back to top
cmcbrien
Post subject: Same validation problem in ME 6.5  PostPosted: Aug 27, 2008 - 11:06 PM
Veteran Member
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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits