[
https://issues.jboss.org/browse/JBIDE-12824?page=com.atlassian.jira.plugi...
]
Victor Rubezhny edited comment on JBIDE-12824 at 10/30/12 11:24 AM:
--------------------------------------------------------------------
I see the only two possible solutions here:
1). Do not insert a full tag here, but replace the only name of an existing tag with the
name of proposed tag. For example:
was:
{code}<ui:compo|site
template="templateDir/template.xhtml">...</ui:composite>{code}
let's put the cursor right after "<ui:compo", then press Ctrl-Space and
select "ui:component Tag Proposal.
Then, in case of replacing the only name of the tag with a proposed one we'll get the
following:
{code}<ui:component|
template="templateDir/template.xhtml">...</ui:composite>{code}
Syntax is correct, but the document format is still broken because: a) there is no closing
tag for "ui:component" and b) tag "ui:component" has no
"template" attribute but it's in the text
1). Do not replace an existing tag, but add a new tag (applied from proposals) before the
existing tag. For example:
was:
{code}<ui:compo|site
template="templateDir/template.xhtml">...</ui:composite>{code}
let's put the cursor right after "<ui:compo", then press Ctrl-Space and
select "ui:component Tag Proposal.
Then, in case of no replacing the current tag we'll get the following:
{code}<ui:component>|</ui:component><ui:composite
template="templateDir/template.xhtml">...</ui:composite>{code}
Syntax is correct, no problem with existing attributes... But not 'a fully
predictable' behaviour.
Alexey, WDYT?
was (Author: vrubezhny):
I see the only two possibilities to fix this:
1) Do not insert a full tag here, but replace the only name of an existing tag with the
name of proposed tag. For example:
was:
{code}<ui:composite
template="templateDir/template.xhtml">...</ui:composite>{code}
Content Assist breaks the format of JSP/XHTML/XML document
----------------------------------------------------------
Key: JBIDE-12824
URL:
https://issues.jboss.org/browse/JBIDE-12824
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jsp/jsf/xml source editing
Affects Versions: 4.0.0.Beta1
Reporter: Daniel Azarov
Assignee: Victor Rubezhny
Fix For: 4.1.x
Test case:
EXECUTE:
1. Create JSF 1.2 Kick Start project
2. Open inputUserName.jsp page in Visual Page Editor
3. Put cursor to tag <h:form id="greetingForm"> just after
"f:form" then press Ctrl+Space
FAIL:
tag changed to "<h:form></h:form> id="greetingForm">"
and problem marker "Missing start tag for "h:form"" appears on second
end tag "</h:form>"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira