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 94410 - I18N - Property editor won't allow me to reference a bundle
Summary: I18N - Property editor won't allow me to reference a bundle
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Gregory Murphy
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-02-05 17:20 UTC by bugbridge
Modified: 2007-06-12 22:01 UTC (History)
3 users (show)

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 bugbridge 2007-02-05 17:20:14 UTC
Original status: 5-Cause Known; Suggested Status: NEW

Original Target Release: mako_dev; Suggested Target Milestone : Dev


Description:
DESCRIPTION OF PROBLEM
--------------------------------
After creating a page, I decided to externalize the text prompts to a resource
bundle. I create the bundle and enter the key/value pairs. If I go back to the
page and attempt to change the text property of a lable to 'use binding' and
enter a value like: 
#{msgs['homeolduser']}
When I select the "OK" button, it does not save this value. Instead, the old
text prompt is still there. If I go into the JSP source mode and make the
change, it sticks and the web app behaves appropriately upon deployment.
ERROR MESSAGES
----------------------
None
STEPS TO DUPLICATE
-------------------------
Create a page with a static text lable. Enter some text for the text property,
i.e. "Enter Password:".
Create a new properties bundle, input a key/value for this text string.
Drop a loadBundle component on the page, and establish a variable (i.e. "msgs"). 
Try to change the text property to bind to the bundle.
I do not see the bundle in the list of items to bind to on the tab - should I?
In any even, if I enter a binding that is appropriate, i.e.:
#{msgs['homeolduser']}
When I click OK this is not saved - the old text prompt is saved instead.
WORKAROUNDS
-------------------
Go into the JSP source editor, and change the reference of the text property to
properly reference the appropriate key in the bundle.

Evaluation:
There are two problems:

One, we have no design-time support for the JSF loadBundle tag, which means
messages in bundle files cannot be located by the design time property resolver.

Two, the new ValueBindingPropertyEditor attempts always to show the value of a
property binding in the properties sheet. Since this is null, it shows blank.

Workaround:
Any workaround found by the tester is in the Description field.
Comment 1 Lark Fitzgerald 2007-06-12 22:01:15 UTC
The J2EE 1.4 Sun Web UI Component library based on JSF 1.1 is now under maintenance mode. Only P1/P2 bugs reported on 
these components will be addressed. All current development efforts are being focused on Java EE 5 Project Woodstock 
component library based on JSF 1.2.

This is fixed in woodstock.