This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 171891 - When opening files from Scrum Toys they are full of errors
Summary: When opening files from Scrum Toys they are full of errors
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-10 10:09 UTC by Vitezslav Stejskal
Modified: 2009-09-14 10:28 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Unexpected errors in the editor (280.89 KB, image/png)
2009-09-10 10:10 UTC, Vitezslav Stejskal
Details
Unexpected errors in the editor (139.25 KB, image/png)
2009-09-10 10:10 UTC, Vitezslav Stejskal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitezslav Stejskal 2009-09-10 10:09:15 UTC
See ${subj} and attached images.
Comment 1 Vitezslav Stejskal 2009-09-10 10:10:06 UTC
Created attachment 87416 [details]
Unexpected errors in the editor
Comment 2 Vitezslav Stejskal 2009-09-10 10:10:42 UTC
Created attachment 87418 [details]
Unexpected errors in the editor
Comment 3 Petr Jiricka 2009-09-11 15:46:50 UTC
The sample bundled in NetBeans contains old sources of this project, a much newer and reworked version is now available:
https://mojarra.dev.java.net/svn/mojarra/trunk/jsf-demo/scrumtoys2009/eclipseProject/
However, even the new version contains many (false?) warnings in the source, e.g.:

1. Error 'Unknown resource bunde key "]".' on this line:
<h:commandButton id="btnEditUpdate" action="#{projectManager.save}" value="#{i18n['project.edit.button.update']}"
styleClass="botaoPostIt" />

2. Error 'The attribute name is not defined in the component's interface' on this line:
<f:viewParam name="skin" value="#{skinUrlManager.skin}" />

3. Error 'The attribute value is not defined in the component's interface' on this line:
<ui:param name="postitText" value="#{task.name}"></ui:param>


Marek, Denis, whose area is this?
Comment 4 Denis Anisimov 2009-09-11 16:53:06 UTC
The first warning is mine .
It relates to recently implemented functionality for EL hints.
This is false warning definitely .
Issue should be filed against this warning.
Comment 5 Marek Fukala 2009-09-14 09:42:54 UTC
#2 and #3 are mine. I'll doublecheck all the files in the project. 

#1 has been filed and assigned to Denis in the issue #172143

The html strucure checks complaining about some html elements is a problem described in issue #167968
Comment 6 Marek Fukala 2009-09-14 10:26:39 UTC
1) many files contains unused namespaces declarations, the warinings are correct

2) ui:insert's name attribute is marked and unknown - fixed by updating to the freshest ui.tlf from mojarra sources -
web-main#360ede2c1502

3) ui:param value attribute marked as unknown - a bug in ui.tld from mojarra. Fixed in the nb copy -
web-main#a0c4df3f9bb5 and filed an issue agains mojarra - https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1301

4) the error for "http://java.sun.com/jstl/core" namespace - also correct, the right namespace is
xmlns:f="http://java.sun.com/jsp/jsf/core. BTW, the example is already fixed in the latest mojarra's sources.

Since the html structure checks are already described in the issue #167968 and the EL checks problem in issue #172143, I
am closing this issue as fixed.

Thanks for the report.
Comment 7 Marek Fukala 2009-09-14 10:28:48 UTC
correction of item #4 :  ...also correct, the right namespace is
"http://java.sun.com/jsp/jstl/core" ...