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.
Summary: | 'targetAttributeName' not defined in the component attribute | ||
---|---|---|---|
Product: | javaee | Reporter: | hink084 |
Component: | JSF | Assignee: | Martin Fousek <marfous> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Bug as shown in Netbeans
Attributes picked up by Intellisense Composite Tag Library Changes Re-bundled JAR w/ Fixes |
Description
hink084
2015-11-19 23:01:13 UTC
Created attachment 157423 [details]
Attributes picked up by Intellisense
Created attachment 158350 [details]
Composite Tag Library Changes
This should probably be submitted as a patch, but I'm not familiar enough with the Netbeans source code or Mercurial.
The attached XML file is located within the Netbeans installation directory here:
enterprise\modules\ext\jsf-2_2\javax.faces.jar\com\sun\faces\metadata\taglib
I've made the following additions to the attached XML file to resolve this issue.
+ Lines [1063-1099]
<attribute>
<description><![CDATA[
<div class="changed_added_2_1">
<p>This attribute allows the name of the attribute exposed to
the using page to differ from the one actually used in the
implementation. For example, consider a composite component that
contains two buttons, one that means "submit" and one that
means "cancel". It is natural to want to declare two composite
component attributes to allow these buttons to be customized,
for example, "submitAction" and "cancelAction". For both of
these buttons, the method expression should be retargeted to the
inner button's "action" attribute. This scenario would be
expressed as follows.</p>
<p><code>
<cc:interface><br/>
<cc:attribute name="submitAction" targetAttributeName="action"<br/>
method-signature="java.lang.Object action()"/><br/>
<cc:attribute name="cancelAction" targetAttributeName="action"<br/>
method-signature="java.lang.Object action()"/><br/>
<cc:actionSource name="submitAction"/><br/>
<cc:actionSource name="cancelAction"/><br/>
</cc:interface><br/>
<cc:implementation><br/>
<h:commandButton id="submitAction" value="submit" /><br/>
<h:commandButton id="cancelAction" value="cancel" /><br/>
</cc:implementation>
</code></p></div>
]]></description>
<name>targetAttributeName</name>
<required>false</required>
<type>java.lang.String</type>
</attribute>
Created attachment 158351 [details]
Re-bundled JAR w/ Fixes
Attached is the re-bundled JAR file containing the Composite Tag Library Changes to be used with Netbeans 8.1.
This JAR file should replace the existing JAR file located here:
enterprise\modules\ext\jsf-2_2\javax.faces.jar
Of course...make a back up just in case.
|