Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: SV: [wtp-jsf-dev] Warnings and errors in jsf files when importing from SUN Java Studio Enterpise 8

Fredrik,

According to the JSF specification, 

"If the action property is specified, it must be a MethodBinding expression
that identifies an Application Action method (see Section 7.3 "Application
Actions") that takes no parameters and returns a String."

It appears that Sun's product is more forgiving during the action property validation than we are.   Although JSF specifies that the method must return a String, it may be that the actual implementation will be OK with the void return.   

Regards,
Gerry Kessler
WTP JSF Tools Team

-----Original Message-----
From: wtp-jsf-dev-bounces@xxxxxxxxxxx
[mailto:wtp-jsf-dev-bounces@xxxxxxxxxxx]On Behalf Of Sköldheimer Fredrik
Sent: Sunday, August 13, 2006 11:28 PM
To: Java Server Faces Tools developer discussion
Subject: SV: [wtp-jsf-dev] Warnings and errors in jsf files
whenimportingfrom SUN Java Studio Enterpise 8


Hello
Thank you for the detailed answer to my questions. To answer your'e question:

--------
 > And now a Error message that occurs in several places in my jsf files:
 > <h:commandButton type="submit" action="#{TestBean.save}" value="Save" 
id="saveTestBean" />
 > The error message goes like this:
 > EL expression does not evaluate to expected types for this attribute

What is the method signature for TestBean.save() ?
-------

The save method looks like this:

----- 8< ----------------------
public void save() {
  ...
  ...
  ...
}
-------------------------------

I'm look forward to following this project.

/Fredrik









-----Ursprungligt meddelande-----
Från: Cameron Bateman [mailto:cameron.bateman@xxxxxxxxxx] 
Skickat: den 11 augusti 2006 18:53
Till: Java Server Faces Tools developer discussion
Ämne: Re: [wtp-jsf-dev] Warnings and errors in jsf files when importingfrom SUN Java Studio Enterpise 8

Hi Fredrik,

The current version of the JSF tooling for Eclipse is still early in its 
development and you have hit upon some of our bugs/limitation.  If these 
limitations become too much of nuisance (more noise than signal), you 
can go to Windows->Preferences->Web and XML->JSF Validation and turn off 
EL validation.

Below I willl address each issue with a link to the bugzilla entry for 
it.  You can "CC" yourself on the bugs, both to be informed by e-mail 
when they are fixed and to informally "vote" for a fix (number of people 
CC'd is one way we measure the importance of our bugs):

 > <h:dataTable value="#{CreateSurveyTemplateBean.questionList}" 
var="question" border="1">
 > ...
 > This generates a warning like this:
 > question cannot be resolved

This is limitation that arises from the fact that we don't yet support 
variable declarations on dataTable's.  There is an extension mechanism 
that is currently used to declare var's based on the loadBundle tag, but 
dataTables aren't implemented yet.   The bugzilla entry is:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=145939

 > public boolean isNameSelected() {
 >  return nameSelected;
 > This generates a warning like this:
 > nameSelected cannot be resolved as a member of TestBean. This worked 
fine in SUNs IDE.

This one is likely due to bug: 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=149221

This bug has been fixed at HEAD and will be available in future 0.5.1 
maintenance releases.

 > And now a Error message that occurs in several places in my jsf files:
 > <h:commandButton type="submit" action="#{TestBean.save}" value="Save" 
id="saveTestBean" />
 > The error message goes like this:
 > EL expression does not evaluate to expected types for this attribute

What is the method signature for TestBean.save() ?


--Cam
_______________________________________________
wtp-jsf-dev mailing list
wtp-jsf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-jsf-dev


_______________________________________________
wtp-jsf-dev mailing list
wtp-jsf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-jsf-dev



Back to the top