[jbosstools-issues] [JBoss JIRA] (JBIDE-20668) No code completion with resource-bundle content

Viacheslav Kabanovich (JIRA) issues at jboss.org
Mon Sep 14 15:35:00 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-20668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108426#comment-13108426 ] 

Viacheslav Kabanovich commented on JBIDE-20668:
-----------------------------------------------

Trying to reproduce this issue, I did these steps:
1. Create JSF project
Assert: .project has 
  <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
  <nature>org.jboss.tools.jsf.jsfnature</nature>
Assert: file .settings/org.eclipse.wst.common.component has a line like
  <wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
whehe 'source-path' references web content of the project, including WEB-INF/faces-config.xml and pages. 
2. Create file portal.properties in package com.xyz.portal.text in Java source folder of the project. Add property 'profil_anrede' to the file.
3. Add to faces-config.xml inside <application></application> node
    <resource-bundle>
        <base-name>com.xyz.portal.text.portal</base-name>
        <var>msgs</var>
    </resource-bundle>
Assert: Ctrl+mouse click on com.xyz.portal.text.portal opens portal.properties in JBoss Tools Properties editor.
4. In a *.xhtml page file with namespace xmlns:h="http://java.sun.com/jsf/html", add line
  <h:outputText value="#{}"/> 
5. Put cursor after #{ and invoke content assist with Ctrl+Space
Assert: proposal 'msgs' is in the proposal list.
6. Select and insert msgs, type '.' and in
   <h:outputText value="#{msgs.}"/>
invoke content assist after the dot.
Assert: proposal 'profil_anrede' is available.
7. Select and insert 'profil_anrede'
Assert: Ctrl+mouse click on 'profil_anrede' opens portal.properties in JBoss Tools Properties editor and selects 'profil_anrede' in it.

[~Coldarion], could you please check if your project has something different from the described usecase.
It will be of help, if you attach a sample project that reproduces the issue.


> No code completion with resource-bundle content
> -----------------------------------------------
>
>                 Key: JBIDE-20668
>                 URL: https://issues.jboss.org/browse/JBIDE-20668
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jsf
>    Affects Versions: 4.3.0.Beta2
>         Environment: - Eclipse Mars
> - JBoss Tools 4.3.0 Beta 2
> - Java EE 6 project currently running on Glasfish 4 
>            Reporter: Thomas Kernstock
>            Assignee: Viacheslav Kabanovich
>             Fix For: 4.3.x
>
>
> I moved from Eclipse Kelper to Mars today, installing the latest JBoss Tools 4.3.0 Beta 2. When I open a JSF page with the VisualPage Editor I perfectly get code completion for all my cdi beans - as in Kepler.
> When it comes to the message-bundle, there is no code completion anymore.
> I configure in faces-config.xml:
> <resource-bundle>
>    <base-name>com.xyz.portal.text.portal</base-name>
>    <var>msgs</var>
> </resource-bundle>
> and have an xml line like this:
> <h:outputLabel for="anrede" value="#{msgs.profil_anrede} :" />
> When I press <crtl>-space after value="#{ I see all cdi beans listed, but not msgs. This worked fine under Eclipse Kepler.
> BTW - CodeRecommenders code completion is switched off.
>  
> Thomas



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list