Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-jsf-dev] Warnings and errors in jsf files when importing from 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


Back to the top