[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-2358) JSF proposal replaces wrong part of text when inserted into non-ended attribute value.

Victor Rubezhny (JIRA) jira-events at lists.jboss.org
Tue Jun 17 14:27:37 EDT 2008


JSF proposal replaces wrong part of text when inserted into non-ended attribute value.
--------------------------------------------------------------------------------------

                 Key: JBIDE-2358
                 URL: http://jira.jboss.com/jira/browse/JBIDE-2358
             Project: Tools (JBoss Tools)
          Issue Type: Bug
         Environment: JBDS 3.0 current build
            Reporter: Victor Rubezhny


JSF-prompting proposal replaces wrong part of the text when inserted into non-ended attribute value.

Create a Seam project, open home.xhtml file in JBoss Tools HTML  editor. Type-in the following text:

<h:outputText style="" value="#{a />

Then place the cursor right after "value=#{a" (there shouldn't be a closing quote-char in the attribute value) and press Ctrl-space to invoke the content assistant. Select "applicationScope" from the list and press Enter.

As the result the text will be: <h:outputText style="" value="#{aapplicationScope}"/> (The initial "a"-character was not replaced while the next space characted has eaten by the replacement)

The same result occures if the initial text is somehow longer then one character, for example, if you'll type "<h:outputText style="" value="#{appli />" and then apply the "applicationScope" JSF-proposal, then the result will be exactly the same:  <h:outputText style="" value="#{aapplicationScope}"/>

Test Case: 

EXECUTE: Create a Seam project.
EXECUTE: Open home.xhtml file in JBoss Tools HTML  editor. 
EXECUTE: Type-in the following text: <h:outputText style="" value="#{a />
(Do not close the quotes in the attribute value)
EXECUTE: Press Ctrl-Space to invoke the Content Assistant, select "applicationScope" JSF-proposal from the list and press Enter
ASSERT: the new attribute value is inserted correctly, all the other chars are stood as they were typed-in.


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

        



More information about the jbosstools-issues mailing list