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 174945 - f:viewParam doesn't recognize the name attribute as its own
Summary: f:viewParam doesn't recognize the name attribute as its own
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-10-20 01:03 UTC by cayhorstmann
Modified: 2009-10-28 11:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The correct tld for facelets. (81.29 KB, text/xml)
2009-10-23 02:53 UTC, edburns
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cayhorstmann 2009-10-20 01:03:29 UTC
Provide a facelets page such as

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
   <f:metadata>
      <f:viewParam name="score" value="#{quizBean.score}"/>
   </f:metadata>
   ...
</html>

and name gets a wiggly underline and an error "the attribute name is not defined in the component's interface".
Comment 1 Marek Fukala 2009-10-22 09:17:09 UTC
Apparently the TLD file for the http://java.sun.com/jsf/core namespace claims there isn't such attribute. Jim or Ed, is
it correct or another bug in the tlds?
Comment 2 edburns 2009-10-23 02:14:23 UTC
Cay, you are correct, this is a bug in the TLD.

Thanks for catching this.

Ed
Comment 3 edburns 2009-10-23 02:15:40 UTC
Filed issue <https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=656> to track the JSF side of this.
Comment 4 edburns 2009-10-23 02:53:19 UTC
Created attachment 89945 [details]
The correct tld for facelets.
Comment 5 Marek Fukala 2009-10-23 10:22:41 UTC
Thanks Ed for the file, but this one I take from mojarra, so I need to wait for the fix to appear in glassfish.
Comment 6 edburns 2009-10-23 19:40:09 UTC
Is there any way you can update just the file?  We're not planning to do another integration into Glassfish.
Comment 7 Marek Fukala 2009-10-23 21:19:54 UTC
Yes, I can take it from the bundled jsf 2.0 library. I'll do that.
Comment 8 Marek Fukala 2009-10-27 20:26:17 UTC
I have copied all the TLDs from the Mojarra's source (version 2.0.1) to the netbeans repository since some of the files
are not in the runtime jar and moreover some fixes which doesn't seem to be in the 2.0.1 version are necessary.

Ed, are you sure https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=656 is in the 2.0.1??? It
doesn't seem so.

One more thing - what it means there two TLDs for the same URL - facelets_jsf_core.tld and jsf_core.tld?

fixed in web-main#9a2ae760f670
Comment 9 Quality Engineering 2009-10-28 11:40:06 UTC
Integrated into 'main-golden', will be available in build *200910280201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9a2ae760f670
User: Marek Fukala <mfukala@netbeans.org>
Log: #174945 - f:viewParam doesn't recognize the name attribute as its own