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 249840 - Default value in JSF composite component attribute can't contain a semicolon
Summary: Default value in JSF composite component attribute can't contain a semicolon
Status: RESOLVED DUPLICATE of bug 249847
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-15 20:52 UTC by nicolary
Modified: 2015-01-16 08:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
jsf composite component showing bug (575 bytes, application/xhtml+xml)
2015-01-15 20:52 UTC, nicolary
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nicolary 2015-01-15 20:52:00 UTC
Created attachment 151531 [details]
jsf composite component showing bug

When you create a JSF composite component - if an interface attribute's default value contains a semicolon the attribute list is empty in the UI when you hit ctrl-space.

Drop the attached file in a JSF project dir: META-INF/resources/components/test

Create a JSF file with the following:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:t="http://java.sun.com/jsf/composite/components/test">
    <t:tester 
</ui:composition>

If you hit crtl-space after the tester tag it says: No Suggestions.

Remove the semicolon in the default attribute value and the same action yields a proper attribute list.

Discovered this when trying to set a default value to a css style string: color:red;
Comment 1 Vladimir Riha 2015-01-16 08:38:11 UTC
Thank you for reporting, it actually throws exception (you can check IDE log). Marking as dupl. 249847.

*** This bug has been marked as a duplicate of bug 249847 ***