[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-814) Resource bundle completion works for <f:loadBundle> but doesn't work for <a4j:loadBundle>

Victor Rubezhny (JIRA) jira-events at lists.jboss.org
Thu Mar 26 14:41:24 EDT 2009


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

Victor Rubezhny commented on JBIDE-814:
---------------------------------------

This is not a bag, but a wrong testcase:


> EXECUTE: Add <h:outputText value="|" /> and call CA 
> ASSERT: mess2 is present in the list 

The CA will not be succeeded here (and espessially for EL) because there is nothing to propose here.
If you want to see the CA for messages (as for other suggestions) then you need to add at least the openning chars for the EL (These chars are "#{").  

>EXECUTE: <h:outputText value="mess2.{CA}" /> 
>FAILURE: There are no values in the list from property file. 

It's not a failure. The CA is to be shown here (the reason is the same as I noted above)

The correct test case should be the following:

EXECUTE: Seam web project 
EXECUTE: Open any xhtml file 
EXECUTE: Ensure that the root tag (f.e., ui:composition) has following attribute xmlns:a4j="https://ajax4jsf.dev.java.net/ajax". If not add the attribute.
EXECUTE: Ensure that the "message_en.properties" resource bundle exists in the project and this bundle contains at least one property value defined.
EXECUTE: Add <a4j:loadBundle basename="message_en" var="mess2"/> 
EXECUTE: Add <h:outputText value="#{|" /> and call CA  (Actually the CA must be automatically invoked after a user typed "{" character)
ASSERT: mess2 is present in the list 
EXECUTE: <h:outputText value="#{mess2.{CA}" /> 
ASSERT: The "message_en.properties" resource bundle vaues are shown in the CA.

And this testcase works properly in my environment.




> Resource bundle completion works for <f:loadBundle> but doesn't work for <a4j:loadBundle>
> -----------------------------------------------------------------------------------------
>
>                 Key: JBIDE-814
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-814
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 2.0.0.Beta3, 3.0.0.GA
>         Environment: rhds beta1, jdk 1.5_0.12, windows XP
>            Reporter: Adrian Mitev
>            Assignee: Victor Rubezhny
>             Fix For: 3.1.0
>
>         Attachments: a4jLoadBundle.PNG, bundle.jpg
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list