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 94733 - I18N - labels of component not updated at runtime if value is specified as i18n value from bundle
Summary: I18N - labels of component not updated at runtime if value is specified as i...
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Winston Prakash
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-02-06 19:55 UTC by bugbridge
Modified: 2007-06-27 16:37 UTC (History)
4 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-06 19:55:32 UTC
Original status: 1-Dispatched; Suggested Status: NEW

Original Target Release: mako_dev; Suggested Target Milestone : Dev


Original submitter: sjangity

Description:
Based on Alexander and my recent interaction with customer -

labels of components are not updated at runtime if the value is
specified as i18n value from a resource bundle.

testcase:
- create an app with a resource bundle (<f:loadBundle
basename="mybundle" var="messages"/>). the resource bundle should
contain the key "mykey"
- create a page
- add a text field to the page. specify the label of the text field as
"#{messages.mykey}"
- add a static text to the page. specify the text of the field as
"#{messages.mykey}"
- add the ability to change the language of the app (as described in
various tutorials, for example at
http://bookshelf.sfbay/jets/Rave/Tutorials/tutorials/13_internationalizatio
n/demonstrating_i18n.html

now the test:
- start the app. the label for the text field and the static text should
display the same value
- change the language of the app with the dropdown
-> result: the text in the static text changes, but the label of the
text field does not (but it should IMHO)
*** (#1 of 1): 2006-05-02 14:32:58 PDT xxx@xxxx

Evaluation:
This is not a component bug. 
It is related to the way creator simulates the JSF lifecycle.
If the JSP page is not parsed then bundles are not loaded.
Other comments have indicated that this is fixed in mako
Comment 1 Winston Prakash 2007-04-30 19:22:34 UTC
Looks like a very old bug. Earlier evaluation says it may be fixed. So marking
it as fixed for verification
Comment 2 Ken Frank 2007-05-30 17:34:07 UTC
Sandeep,

can you see if this one is fixed now in nb6 ?  I saw that you had been submitter
of this when it was in bt.

Thanks - Ken

ken.frank@sun.com
Comment 3 Lark Fitzgerald 2007-06-27 16:37:44 UTC
This is fixed.  It was fixed for VWP 5.5.
NetBeans 6.0 200706260050
Woodstock 4.1 200706221216