Eclipse JSF content assist complete failure












0















So I have JSF running on a tomcat app server in eclipse, this has been very troublesome so far.



The bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=192393



First, eclipse won't let me install libraries for JSF when adding the facet, so I had to manually download and add as a facet. This works fine after a lot of modification.



But I can not get content assist to work in .xhtml files, I've tried all solutions, none worked. If I rename to JSP it works, so it's not the TLDs. But if I make *.jsp the default faces servlet url pattern, it messes everything up for obvious reasons. I've been developing with 0 content assist, which is fine but I'd rather have it to save time.



I tried all solutions I found online



Eclipse Version: 2018-12 (4.10.0)
Build id: 20181214-0600
JSF: 2.2.9 API + IMPL as custom added facet library using sun.com.faces (majorra)
Tomcat 9
JSTL 1.1



I've tried:



-Changing from JSF facet to maven dependency based.

-Adding *.XHTML to JSP content types

-Adding JSP editor to XHTML content type
-Adding TLDs to web-inf/TLDs

-Adding JSF libs as recource

-Changing from Jaxax.faces to com.sun.faces API/IMPL libraries

-Changing pages to JSPX and JSP from XHTML

-Adding a .XHTML as default file type for JSF in web config



The problem lies in eclipses code assist, It considers XHTML as an HTML file, and HTML does not have any XML content assist, or jsp content assist. I'd like to know if there is a way to "add" code assist proposals to all html files so it acts as if it's JSP.



My other option was to get .xhtml parsed as a jsp file type (but I can't do this, it's all locked in) and I feel this may create the same issue as if I was running a .jsp on a faces servlet.



So does anybody know a workaround to add content assist proposals? Or a better way?



Thank you!










share|improve this question

























  • Which "all solutions" do you mean? Which version of Eclipse is this?

    – nitind
    Jan 1 at 3:08











  • I tried all solutions i found online I added more details to main question

    – nathan h
    Jan 1 at 6:30








  • 1





    The bug you are referring was fixed many years ago. Probably you mean bug 339127, which refers to a blog post with a solution to your problem. I can understand that it is sometimes frustrating when functions are not where you expect them to be. But it does not make sense to tell the open source authors that it's a huge mistake to use their software, from whom you'd like get an answer on how their software works.

    – howlger
    Jan 1 at 9:19











  • My mistake was setting up java ee features in a tomcat app server with eclipse. Tomcat is not a java ee server, and eclipses ee repos are broken. I think we can all agree on this. I love eclipse, i do not love java ee features in tomcat+eclipse. They know the repos are broken. My statement is not for the authors, it is so people dont make the same mistake i did and use a better stack. I would never complain to an open source dev. But in my list i did already attempted this fix, I am already loading with jsp editor. However i will try pulling jars from glassfish as it suggests.

    – nathan h
    Jan 1 at 20:17











  • You can't use java-ee in Tomcat since it is not a java-ee container. I never ever had problems with wildfly and eclipse (and maven) for java-ee projects (but I also always added jboss tools as a great addition). The transition to 'eclipse-ee' might play a role here and that has to iron itself out. Tge 'rant' is indeed not a great incentive to get help

    – Kukeltje
    Jan 4 at 19:08
















0















So I have JSF running on a tomcat app server in eclipse, this has been very troublesome so far.



The bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=192393



First, eclipse won't let me install libraries for JSF when adding the facet, so I had to manually download and add as a facet. This works fine after a lot of modification.



But I can not get content assist to work in .xhtml files, I've tried all solutions, none worked. If I rename to JSP it works, so it's not the TLDs. But if I make *.jsp the default faces servlet url pattern, it messes everything up for obvious reasons. I've been developing with 0 content assist, which is fine but I'd rather have it to save time.



I tried all solutions I found online



Eclipse Version: 2018-12 (4.10.0)
Build id: 20181214-0600
JSF: 2.2.9 API + IMPL as custom added facet library using sun.com.faces (majorra)
Tomcat 9
JSTL 1.1



I've tried:



-Changing from JSF facet to maven dependency based.

-Adding *.XHTML to JSP content types

-Adding JSP editor to XHTML content type
-Adding TLDs to web-inf/TLDs

-Adding JSF libs as recource

-Changing from Jaxax.faces to com.sun.faces API/IMPL libraries

-Changing pages to JSPX and JSP from XHTML

-Adding a .XHTML as default file type for JSF in web config



The problem lies in eclipses code assist, It considers XHTML as an HTML file, and HTML does not have any XML content assist, or jsp content assist. I'd like to know if there is a way to "add" code assist proposals to all html files so it acts as if it's JSP.



My other option was to get .xhtml parsed as a jsp file type (but I can't do this, it's all locked in) and I feel this may create the same issue as if I was running a .jsp on a faces servlet.



So does anybody know a workaround to add content assist proposals? Or a better way?



Thank you!










share|improve this question

























  • Which "all solutions" do you mean? Which version of Eclipse is this?

    – nitind
    Jan 1 at 3:08











  • I tried all solutions i found online I added more details to main question

    – nathan h
    Jan 1 at 6:30








  • 1





    The bug you are referring was fixed many years ago. Probably you mean bug 339127, which refers to a blog post with a solution to your problem. I can understand that it is sometimes frustrating when functions are not where you expect them to be. But it does not make sense to tell the open source authors that it's a huge mistake to use their software, from whom you'd like get an answer on how their software works.

    – howlger
    Jan 1 at 9:19











  • My mistake was setting up java ee features in a tomcat app server with eclipse. Tomcat is not a java ee server, and eclipses ee repos are broken. I think we can all agree on this. I love eclipse, i do not love java ee features in tomcat+eclipse. They know the repos are broken. My statement is not for the authors, it is so people dont make the same mistake i did and use a better stack. I would never complain to an open source dev. But in my list i did already attempted this fix, I am already loading with jsp editor. However i will try pulling jars from glassfish as it suggests.

    – nathan h
    Jan 1 at 20:17











  • You can't use java-ee in Tomcat since it is not a java-ee container. I never ever had problems with wildfly and eclipse (and maven) for java-ee projects (but I also always added jboss tools as a great addition). The transition to 'eclipse-ee' might play a role here and that has to iron itself out. Tge 'rant' is indeed not a great incentive to get help

    – Kukeltje
    Jan 4 at 19:08














0












0








0








So I have JSF running on a tomcat app server in eclipse, this has been very troublesome so far.



The bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=192393



First, eclipse won't let me install libraries for JSF when adding the facet, so I had to manually download and add as a facet. This works fine after a lot of modification.



But I can not get content assist to work in .xhtml files, I've tried all solutions, none worked. If I rename to JSP it works, so it's not the TLDs. But if I make *.jsp the default faces servlet url pattern, it messes everything up for obvious reasons. I've been developing with 0 content assist, which is fine but I'd rather have it to save time.



I tried all solutions I found online



Eclipse Version: 2018-12 (4.10.0)
Build id: 20181214-0600
JSF: 2.2.9 API + IMPL as custom added facet library using sun.com.faces (majorra)
Tomcat 9
JSTL 1.1



I've tried:



-Changing from JSF facet to maven dependency based.

-Adding *.XHTML to JSP content types

-Adding JSP editor to XHTML content type
-Adding TLDs to web-inf/TLDs

-Adding JSF libs as recource

-Changing from Jaxax.faces to com.sun.faces API/IMPL libraries

-Changing pages to JSPX and JSP from XHTML

-Adding a .XHTML as default file type for JSF in web config



The problem lies in eclipses code assist, It considers XHTML as an HTML file, and HTML does not have any XML content assist, or jsp content assist. I'd like to know if there is a way to "add" code assist proposals to all html files so it acts as if it's JSP.



My other option was to get .xhtml parsed as a jsp file type (but I can't do this, it's all locked in) and I feel this may create the same issue as if I was running a .jsp on a faces servlet.



So does anybody know a workaround to add content assist proposals? Or a better way?



Thank you!










share|improve this question
















So I have JSF running on a tomcat app server in eclipse, this has been very troublesome so far.



The bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=192393



First, eclipse won't let me install libraries for JSF when adding the facet, so I had to manually download and add as a facet. This works fine after a lot of modification.



But I can not get content assist to work in .xhtml files, I've tried all solutions, none worked. If I rename to JSP it works, so it's not the TLDs. But if I make *.jsp the default faces servlet url pattern, it messes everything up for obvious reasons. I've been developing with 0 content assist, which is fine but I'd rather have it to save time.



I tried all solutions I found online



Eclipse Version: 2018-12 (4.10.0)
Build id: 20181214-0600
JSF: 2.2.9 API + IMPL as custom added facet library using sun.com.faces (majorra)
Tomcat 9
JSTL 1.1



I've tried:



-Changing from JSF facet to maven dependency based.

-Adding *.XHTML to JSP content types

-Adding JSP editor to XHTML content type
-Adding TLDs to web-inf/TLDs

-Adding JSF libs as recource

-Changing from Jaxax.faces to com.sun.faces API/IMPL libraries

-Changing pages to JSPX and JSP from XHTML

-Adding a .XHTML as default file type for JSF in web config



The problem lies in eclipses code assist, It considers XHTML as an HTML file, and HTML does not have any XML content assist, or jsp content assist. I'd like to know if there is a way to "add" code assist proposals to all html files so it acts as if it's JSP.



My other option was to get .xhtml parsed as a jsp file type (but I can't do this, it's all locked in) and I feel this may create the same issue as if I was running a .jsp on a faces servlet.



So does anybody know a workaround to add content assist proposals? Or a better way?



Thank you!







java eclipse jsp jsf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 4 at 16:28









Puck

1,4111224




1,4111224










asked Dec 31 '18 at 20:39









nathan hnathan h

32




32













  • Which "all solutions" do you mean? Which version of Eclipse is this?

    – nitind
    Jan 1 at 3:08











  • I tried all solutions i found online I added more details to main question

    – nathan h
    Jan 1 at 6:30








  • 1





    The bug you are referring was fixed many years ago. Probably you mean bug 339127, which refers to a blog post with a solution to your problem. I can understand that it is sometimes frustrating when functions are not where you expect them to be. But it does not make sense to tell the open source authors that it's a huge mistake to use their software, from whom you'd like get an answer on how their software works.

    – howlger
    Jan 1 at 9:19











  • My mistake was setting up java ee features in a tomcat app server with eclipse. Tomcat is not a java ee server, and eclipses ee repos are broken. I think we can all agree on this. I love eclipse, i do not love java ee features in tomcat+eclipse. They know the repos are broken. My statement is not for the authors, it is so people dont make the same mistake i did and use a better stack. I would never complain to an open source dev. But in my list i did already attempted this fix, I am already loading with jsp editor. However i will try pulling jars from glassfish as it suggests.

    – nathan h
    Jan 1 at 20:17











  • You can't use java-ee in Tomcat since it is not a java-ee container. I never ever had problems with wildfly and eclipse (and maven) for java-ee projects (but I also always added jboss tools as a great addition). The transition to 'eclipse-ee' might play a role here and that has to iron itself out. Tge 'rant' is indeed not a great incentive to get help

    – Kukeltje
    Jan 4 at 19:08



















  • Which "all solutions" do you mean? Which version of Eclipse is this?

    – nitind
    Jan 1 at 3:08











  • I tried all solutions i found online I added more details to main question

    – nathan h
    Jan 1 at 6:30








  • 1





    The bug you are referring was fixed many years ago. Probably you mean bug 339127, which refers to a blog post with a solution to your problem. I can understand that it is sometimes frustrating when functions are not where you expect them to be. But it does not make sense to tell the open source authors that it's a huge mistake to use their software, from whom you'd like get an answer on how their software works.

    – howlger
    Jan 1 at 9:19











  • My mistake was setting up java ee features in a tomcat app server with eclipse. Tomcat is not a java ee server, and eclipses ee repos are broken. I think we can all agree on this. I love eclipse, i do not love java ee features in tomcat+eclipse. They know the repos are broken. My statement is not for the authors, it is so people dont make the same mistake i did and use a better stack. I would never complain to an open source dev. But in my list i did already attempted this fix, I am already loading with jsp editor. However i will try pulling jars from glassfish as it suggests.

    – nathan h
    Jan 1 at 20:17











  • You can't use java-ee in Tomcat since it is not a java-ee container. I never ever had problems with wildfly and eclipse (and maven) for java-ee projects (but I also always added jboss tools as a great addition). The transition to 'eclipse-ee' might play a role here and that has to iron itself out. Tge 'rant' is indeed not a great incentive to get help

    – Kukeltje
    Jan 4 at 19:08

















Which "all solutions" do you mean? Which version of Eclipse is this?

– nitind
Jan 1 at 3:08





Which "all solutions" do you mean? Which version of Eclipse is this?

– nitind
Jan 1 at 3:08













I tried all solutions i found online I added more details to main question

– nathan h
Jan 1 at 6:30







I tried all solutions i found online I added more details to main question

– nathan h
Jan 1 at 6:30






1




1





The bug you are referring was fixed many years ago. Probably you mean bug 339127, which refers to a blog post with a solution to your problem. I can understand that it is sometimes frustrating when functions are not where you expect them to be. But it does not make sense to tell the open source authors that it's a huge mistake to use their software, from whom you'd like get an answer on how their software works.

– howlger
Jan 1 at 9:19





The bug you are referring was fixed many years ago. Probably you mean bug 339127, which refers to a blog post with a solution to your problem. I can understand that it is sometimes frustrating when functions are not where you expect them to be. But it does not make sense to tell the open source authors that it's a huge mistake to use their software, from whom you'd like get an answer on how their software works.

– howlger
Jan 1 at 9:19













My mistake was setting up java ee features in a tomcat app server with eclipse. Tomcat is not a java ee server, and eclipses ee repos are broken. I think we can all agree on this. I love eclipse, i do not love java ee features in tomcat+eclipse. They know the repos are broken. My statement is not for the authors, it is so people dont make the same mistake i did and use a better stack. I would never complain to an open source dev. But in my list i did already attempted this fix, I am already loading with jsp editor. However i will try pulling jars from glassfish as it suggests.

– nathan h
Jan 1 at 20:17





My mistake was setting up java ee features in a tomcat app server with eclipse. Tomcat is not a java ee server, and eclipses ee repos are broken. I think we can all agree on this. I love eclipse, i do not love java ee features in tomcat+eclipse. They know the repos are broken. My statement is not for the authors, it is so people dont make the same mistake i did and use a better stack. I would never complain to an open source dev. But in my list i did already attempted this fix, I am already loading with jsp editor. However i will try pulling jars from glassfish as it suggests.

– nathan h
Jan 1 at 20:17













You can't use java-ee in Tomcat since it is not a java-ee container. I never ever had problems with wildfly and eclipse (and maven) for java-ee projects (but I also always added jboss tools as a great addition). The transition to 'eclipse-ee' might play a role here and that has to iron itself out. Tge 'rant' is indeed not a great incentive to get help

– Kukeltje
Jan 4 at 19:08





You can't use java-ee in Tomcat since it is not a java-ee container. I never ever had problems with wildfly and eclipse (and maven) for java-ee projects (but I also always added jboss tools as a great addition). The transition to 'eclipse-ee' might play a role here and that has to iron itself out. Tge 'rant' is indeed not a great incentive to get help

– Kukeltje
Jan 4 at 19:08












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53991246%2feclipse-jsf-content-assist-complete-failure%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53991246%2feclipse-jsf-content-assist-complete-failure%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Mossoró

Error while reading .h5 file using the rhdf5 package in R

Pushsharp Apns notification error: 'InvalidToken'