-
1. Re: JBoss Tools 3.1 autocomplete not working properly
laixer Mar 13, 2010 9:03 PM (in response to laixer)I found the archive downloads...
CR2 - Same problem
CR1 - Works
Seems related to the introduction of the ability to complete EL expressions w/o the EL prefix.
-
2. Re: JBoss Tools 3.1 autocomplete not working properly
akazakov Mar 14, 2010 3:45 AM (in response to laixer)I can't reproduce it.
Do you have any exceptions in Eclipse log?
-
3. Re: JBoss Tools 3.1 autocomplete not working properly
laixer Mar 14, 2010 3:58 AM (in response to akazakov)Reinstalled 3.1...
No exceptions in the log file when opening the project or doing completion.
I do get an NPE in the log when trying to refactor a method, but that seems unrelated (there's an issue filed on it, resolved by you =).
-
4. Re: JBoss Tools 3.1 autocomplete not working properly
laixer Mar 14, 2010 4:03 AM (in response to laixer)I created a new Seam project using JBoss Tools and this problem doesn't occur in this case... -
5. Re: JBoss Tools 3.1 autocomplete not working properly
laixer Mar 14, 2010 4:15 AM (in response to laixer)Okay I figured out why but I'm not sure if this is right...
This problem went away once I added the JSF facet to the project... but yet completion without the #{ prefix works just fine without it.
-
6. Re: JBoss Tools 3.1 autocomplete not working properly
akazakov Mar 14, 2010 4:45 AM (in response to laixer)Ok. I've reproudced the issue in a project created via seam-gen.
When you open Visual Page Editor you must see a warning that the project doesn't have JSF nature and VPE won't work properly until you add it. You can do it in "Right click on the project"->Configure->Add JSF Capability. And code completion will start working.
However I've created https://jira.jboss.org/jira/browse/JBIDE-6055 to figure out if EL code completion can work properly for Seam beans without JSF capabilities installed.
-
7. Re: JBoss Tools 3.1 autocomplete not working properly
akazakov Mar 14, 2010 4:47 AM (in response to laixer)Didn't notice your last message -
8. Re: JBoss Tools 3.1 autocomplete not working properly
laixer Mar 14, 2010 4:56 AM (in response to akazakov)Yes I did get the warning, but the "Add JSF Capabilities" is confusing for a seam-gen project so I gave up on trying to configure it and just permanently dismissed the dialog.
e.g.
There is no "Web Root" per se because it's a combination of multiple source folders, so I don't know what the correct value to put here.
There's two source folders, so what's the correct value for "source folder"?
Which folder should be specified for "classes" folder?
Adding the JSF facet is not any better because it requires adding the Dynamic Web Module which doesn't really jive with the seam-gen folder layout. It keeps generating a WEB-INF folder in the view directory...
I'm not really sure what to do.
I guess the easiest way would be to make the layout a bit more Dynamic Web Module friendly (e.g. combine view/ and resources/WEB-INF) and just add the JSF facet...
Any ideas? I'm all out...
-
9. Re: JBoss Tools 3.1 autocomplete not working properly
laixer Mar 14, 2010 6:29 AM (in response to laixer)I gave "Add JSF capatibility' a shot but this didn't succeed either...
I used the following values:
web.xml: resources/WEB-INF/web.xml
Web Root: resources
Source Folder: src/main
Classes Folder: classes/main
Lib Folder: lib
It seems to succeed, but I do get one error:
"Timeout expired for registering project P/ProjectName in server. Please check the project and try context menu action."
(I'm guessing because this is not a WST project...)
At this point, EL completion works fine. However if I close the project and reopen it I'm back to square one.
There's an exception in the log:
!ENTRY org.jboss.tools.common.model 2 0 2010-03-14 06:19:15.726
!MESSAGE Project P/ProjectName has corrupted nature: org.jboss.tools.jsf.jsfnatureIf I go to configure, I once again have the option to "Add JSF Capability..."
Is this because my project doesn't have the Dynamic Web Module facet?
-
10. Re: JBoss Tools 3.1 autocomplete not working properly
laixer Mar 14, 2010 4:29 PM (in response to laixer)I had no choice but to revert to CR1 and I guess I'll be staying there unless I can use EL completion w/o adding JSF capability or if there are instructions on how to enable JSF capability for a seam-gen generated project because it's just not working for my project. -
11. Re: JBoss Tools 3.1 autocomplete not working properly
akazakov Mar 14, 2010 7:22 PM (in response to laixer)Yes, "Add JSF capabilities" wizard is quite old and not perfect. We are going to refacotor it. But so far you can use it to make your seam-gen project into Dynamic Web Project. See http://screencast.com/t/NWQ3NjFiNmEt
-
12. Re: JBoss Tools 3.1 autocomplete not working properly
laixer Mar 14, 2010 8:11 PM (in response to akazakov)Thanks for the screencast... Unfortunately, the end result is the same as when I tried it myself.
It works until I close and reopen the project.
I get this mysterious message in the Eclipse log with no additional information:
!ENTRY org.jboss.tools.common.model 2 0 2010-03-14 20:08:45.434
!MESSAGE Project P/ProjectName has corrupted nature: org.jboss.tools.jsf.jsfnature -
13. Re: JBoss Tools 3.1 autocomplete not working properly
laixer Mar 14, 2010 8:14 PM (in response to laixer)