Bug 103267 - I18N - err msg not from bundle in faces-cfg.xml
I18N - err msg not from bundle in faces-cfg.xml
Status: RESOLVED WONTFIX
Product: xml
Classification: Unclassified
Component: Code
6.x
All All
: P2 (vote)
: 6.x
Assigned To: Sonali Kochar
issues@xml
: I18N
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-03 17:24 UTC by kaa
Modified: 2007-08-24 17:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments
err msg (99.05 KB, application/octet-stream)
2007-05-03 17:25 UTC, kaa
Details
faces-config.xml (851 bytes, text/xml)
2007-08-23 20:09 UTC, kaa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kaa 2007-05-03 17:24:16 UTC
I'm running in the Japan locale, using a pseudo localized Netbeans.
The message does not come from the pseudo localized jar file.

Steps:
1. Create Web App using wizard
2. Select the JavaServer Faces checkbox and click Finish
3. Expand Configuration Files then open faces-config.xml
4. In the Source Editor add the following bean declaration twice:

<managed-bean>
        <managed-bean-name>UserBean</managed-bean-name>
        <managed-bean-class>astrologer.user.UserBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
</managed-bean>

The Ide reports an error message not from bundle file.
Comment 1 kaa 2007-05-03 17:25:06 UTC
Created attachment 42116 [details]
err msg
Comment 2 Petr Pisl 2007-05-03 18:06:56 UTC
I think this comes from xml editor, where checks are done against the schema.
Reassigning to the xml editor for evaluation.
Comment 3 Sonali Kochar 2007-08-23 02:03:10 UTC
I didnt see this bug after pasting the managed-bean content twice. Since I am not very familiar with JavaServerFaces,
can you please attach your faces-config.xml?
Comment 4 kaa 2007-08-23 20:08:56 UTC
More details:

5. After step 4 choose Validate XML from pop-up menu
The error message appears in Output window not from bundle file:
Duplicate unique value [UserBean] declared for identity constraint of element "faces-config". [17]

6. Double click err link:
Err message will be highlighted in editor with tooltip
Comment 5 kaa 2007-08-23 20:09:52 UTC
Created attachment 47203 [details]
faces-config.xml
Comment 6 Sonali Kochar 2007-08-24 17:54:30 UTC
The code gets an org.xml.sax.SAXParseException. This class is from the J2SE code base. We do
SAXParseException.getLocalizedMessage() and then display the localized message. I looked at SAXParseException source
code and they do not localize the exception message. Since the exception msg is from jdk, there isnt much we can do here.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo