[
https://issues.jboss.org/browse/JBIDE-9414?page=com.atlassian.jira.plugin...
]
Vlado Pakan closed JBIDE-9414.
------------------------------
Verified with JBT 3.3.0.v20120403-0225-H4468-Beta3.
CA incorrectly inserts a long-named properties from resource bundles
--------------------------------------------------------------------
Key: JBIDE-9414
URL:
https://issues.jboss.org/browse/JBIDE-9414
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jsp/jsf/xml source editing
Affects Versions: 3.3.0.M3
Reporter: Victor Rubezhny
Assignee: Victor Rubezhny
Fix For: 3.3.0.M4
Attachments: XmlELCompletionProposalComputer.java-jbide-9414.patch
CA, when invoked after a '<bundle name>.' (whether automatically or
manually) and applied, inserts a long-named property surrounded by square brackets right
after existing '.'-character (must replace that character)
Steps to reproduce:
==================
EXECUTE: Create JSF/Seam or CDI project
EXECUTE: Find/create a resource bundle and add a long-named property like
'org.jboss.long.named.Property'
EXECUTE: Open some xhtml or jsp page and add an EL expression like '#{<bundle
variable name>.'
ASSERT: Content Assist window appeared automatically (If it didn't try to invoke CA
manually by pressing Ctrl-Space when text cursor is placed right after '.'
(dot)-char). There is a property named as
'['org.jboss.long.named.Property']' within the proposals
EXECUTE: Select '['org.jboss.long.named.Property']' property proposal and
apply it.
ASSERT: The text in editor is replaced by: '#{<bundle variable
name>['org.jboss.long.named.Property']}' ('.' (dot)-char has
disappeared and property name surrounded by square brackets and quotes is added)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira