[
https://issues.jboss.org/browse/JBIDE-9807?page=com.atlassian.jira.plugin...
]
Denis Golovin edited comment on JBIDE-9807 at 10/14/11 6:38 PM:
----------------------------------------------------------------
Here is the real problem :) without blaming get method.
The reason method get returns nothing is
{code}visualContainer.appendChild(visualNewNode){code}
which is actually adding a copy of passed node not the node itself.
It means our visual<=>source mapping stores not the nodes added to document but
copies. That's why method get is not working and iterator solution is.
was (Author: dgolovin):
Here is the real problem :) without blaming get method.
The reason method get returns nothing is
{code}visualContainer.appendChild(visualNewNode){code}
which is actually adding copy of passed node not the node itself.
It means our visual<=>source mapping saves not the nodes added to document but
copies. That's why get is not working and iterator solution is.
testForSimpleText & testForElText
---------------------------------
Key: JBIDE-9807
URL:
https://issues.jboss.org/browse/JBIDE-9807
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Affects Versions: 3.3.0.M3
Reporter: Denis Maliarevich
Assignee: Denis Golovin
Priority: Minor
Fix For: 3.3.0.M4
[testForSimpleText
|http://hudson.qa.jboss.com/hudson/job/jbosstools-3.3_trunk.component--jsf/450/testReport/junit/org.jboss.tools.jsf.vpe.jsf.test/JsfAllTests/testForSimpleText/]
&
[
testForElText|http://hudson.qa.jboss.com/hudson/job/jbosstools-3.3_trunk....]
----
java.lang.NullPointerException
at
org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2584Test.testForSimpleText(JBIDE2584Test.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
----
java.lang.NullPointerException
at
org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2584Test.testForElText(JBIDE2584Test.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
----
--
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