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 252857 - Tag Handler Wizard: Attribute's rtexprvalue is always created "true" in TLD
Summary: Tag Handler Wizard: Attribute's rtexprvalue is always created "true" in TLD
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-07 14:14 UTC by MackSix
Modified: 2015-07-10 01:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2015-06-07 14:14:19 UTC
1. Create new Web Project.
2. Create new Tag Library Descriptor and accept defaults.
3. Create new source package.
4. Create new Tag Handler and select TLD created in step 2.
5. Create new Attribute and name it newAttribute and select "value evaluated at JSP translation time" and click OK.
6. Notice in table that "Request Time Eval." has value of "false" and click Finish.
7. Look at TLD created in step 2 and notice <rtexprvalue> is "true" but is should be false.

Result: <rtexprvalue>true</rtexprvalue>
Expected: <rtexprvalue>flase</rtexprvalue>


Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b15
System: Windows 7 version 6.1 running on amd64; UTF8; en_US (nb)

Also:

Product Version: NetBeans IDE Dev (Build 201506060001)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b15
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Petr Hejl 2015-07-09 11:20:03 UTC
Fixed in web-main d4de880e709b. Please verify. This actually looks like a bug in JSP 2.1 spec (TLD xsd does not specify minOccurs=0 for rtexprvalue).
Comment 2 Quality Engineering 2015-07-10 01:17:03 UTC
Integrated into 'main-silver', will be available in build *201507100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d4de880e709b
User: Petr Hejl <phejl@netbeans.org>
Log: #252857 - Tag Handler Wizard: Attribute's rtexprvalue is always created "true" in TLD