Frank Moss created NETBEANS-1772:
------------------------------------

             Summary: Xhtml Autocomplete not working with some backing beans
                 Key: NETBEANS-1772
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1772
             Project: NetBeans
          Issue Type: Bug
          Components: ide - Code
    Affects Versions: 9.0, 8.2
            Reporter: Frank Moss


I came across this issue when moving from Netbeans 7.3 to 7.4+ (yes all after 
7.3)
  
 +*xhtml code*+
 Value = "#{Sample.Something.{color:#d04437}blahblah\{color}}"
  
 {color:#333333}The IDE said the "blahblah" was an unknown property, but when 
running the project, everything worked just fine.{color}
{color:#333333}  {color}
{color:#333333} This makes autocomplete not work. This same project worked with 
Netbeans 7.3, and the IDE reported no errors. Autocomplete worked in 7.3.{color}
{color:#333333}  {color}
{color:#333333} I was able to find the issue. Actually simple but very well 
hidden.{color}
{color:#333333}  {color}
{color:#333333} "Getters and Setters"{color}
{color:#333333}  {color}
{color:#333333} Some files had the Setter above the Getter, and the IDE hit the 
Setter when trying to autocomplete.{color}
{color:#333333}  {color}
{color:#333333} public void setSomething(SomethingBean someThing) 
{{color}{color}
 {color:#333333} this.someThing = someThing;{color}
 {color:#333333} }{color}
  
 public SomethingBean getSomething()

{ return someThing; }

therefore, nothing in the SomethingBean was accessible.
  
 Simply putting the Getter above the Setter fixed the problem.
  
 This isn't an issue in 7.3 and isn't an issue for the program running. Perhaps 
the code needs adjustment so it isn't an issue for autocomplete.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to