-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootsfaces components not rendering. #636
Comments
Just to be sure: the error occurs only when you've activated Shiro? Does removing Shiro solve the bug, even in your new Login.xhtml you've posted above? |
You could also help us by telling us how to integrated Shiro in your project (web.xhtml, shiro.ini, pom.xml etc.). I'm not familiar with this framework. All I know is that it's popular and that many folks say it's good. |
This happened when I implemented the Shiro components. Which consisted of the Shiro jars, an ini file and some custom java classes. Then I removed those components, cleared all the cache and ran the project again and the Bootsfaces components rendered again. Next I added a backing bean. This bean interacts with an ejb to retrieve data from the database. This backing bean does not interact with Shiro. At this point there were no Shiro components in the project. When I ran the project in Netbeans after adding the bean the problem reoccurred and the Bootsfaces Components were not being rendered. I also took the war file and deployed it on a separate Glassfish server and Bootsfaces was not rendering there either. I originally had a project that I had been working on the past few weeks. As I worked with it everything would seem fine. Bootsfaces would work as it should. Then at a certain point the components would just stop rendering. I haven't been able to isolate exactly when this happens. Bootsfaces has run with the two features I mentioned above. Shiro and the Backing bean in this project but at a certain point through the course of development work it would just disappear. The other components of the project such as Primefaces would still render. However at that point Bootsfaces would not. So I decided to create the project all over again and see when Bootsfaces stopped working as I added the different components. As I mentioned it stopped working when I separately added the Shiro components and the backing bean to this new project. Though it has worked in the other project in Netbeans with these components in the past. One last element of this problem is I often see the scenario where the Bootsfaces components will render in Netbeans. Then I deploy the war on a server running glassfish and when I run the application Bootsfaces is not rendering. So when I say it is working, it can work in Netbeans and not as depolyed on the server. Then again I see the scenario where it stops working in Netbeans as well. The login.xhtml file that I showed as an example yesterday was run without Shiro. I had made it the welcome page of the new project I created at that point. This did have the backing bean as part of the project at that point. |
One last thing just to reiterate, is this problem happens without Shiro in the project at all. It happens with the presence of just the backing bean. |
It's good to know it's not a Shiro problem. That would have made me very nervous :). But I know of at least one project using BootsFaces and Shiro successfully, so it seems unlikely. I have three ideas:
If everything fails: can you send me us a copy of the source code of a broken version? If copyright allows, I'd prefer you to create a public or private GitHub repository and to send us the link. |
FYI, I use Shiro in combination with BootsFaces on Payara without any problems. |
Thanks for the feedback. I took a closer look at the build as you said. There was one source of caching that Gradle uses that I was not aware of. This appears under the users home directory in the path .gradle\caches. I deleted the contents of this folder and this seems to resolve the problem. I had been running Bootsfaces in Netbeans when I encountered the problem. So I deleted the contents of the gradle cache. I also deleted some of the other cache sources, such as the glassfish osgi cache, netbeans cache and undeployed the application. When I ran the application again in Netbeans the bootsfaces components were rendering again. I took the war file and deployed it on a separate server and this worked correctly as well. I had also been having this problem on another computer that I had been working on. When I cleared the gradle cache on this machine everything worked correctly as well. So it appears that the problem is related to how Gradle is performing caching. |
I had the same problem. I downloaded Payara today. Maybe is a problem with Payara 171 release. |
Hello, I believe you can close this issue. It seems to be related to the caching and not to Bootsfaces. I occasionally get this error while performing development work. I just remove the different cache sources and the next time I build the project everything works fine. Thanks so much for your help. |
@tg47 Thanks for reporting back! I suspected something like that - caching, or whatever. The problem is I couldn't tell exactly what "whatever" means. Caching sounds like a likely cause of problems. So I'll follow your recommendation to close the bug. |
Hello friend , I had this problem with GlassFish 4.2.0 , but downloaded new 5.0 and added this parameter to glassfish-web.xml : <parameter-encoding default-charset="UTF-8"/> Put it inside - and Bootsfaces will nice render!! |
Tengo el mismo problema. Proyecto Original Copia de Proyecto
|
I’ve encountered a problem with Bootsfaces and it seems like it could either be a bug or a configuration issue that I am missing.
I’ve been developing a web application that uses Bootsfaces components (Version 1.0.2). At times the Bootsfaces components are not being rendered. Everything else in the application renders except for Bootsfaces. Originally I thought this may be due to an incompatibility with PrimeFaces. I had a few of these components in the application as well. So I went and created an entirely new web application that didn’t include Primefaces. This application was developed using Netbeans (version 8.2), built using Gradle and Deployed on the Payara Server (version 4.1.1). I also tested the war by deploying it on a separate Glassfish server (version 4.1.1).
Initially this web application worked fine and the Bootsfaces components were being rendered as they should. Eventually I plugged in some Shiro components and the next time I deployed the project the Bootsfaces components wouldn’t render. So I removed the Shiro components and deployed the project again and the Bootsfaces components did appear again. I next added a backing bean and deployed the project. This caused the Bootsfaces components not to render again.
I have a simple login screen, login.xhtml, to show what is happening. This is the code for the page.
You can see that there are 3 Bootsfaces components in this page.
When the page is displayed these components are missing from the page source in the browser. This occurs in IE, Firefox and Chrome. This is what the page source shows for this div block:
However these components are in the component tree of the page:
So for some reason, BootsFaces is not rendering correctly even though the components are present in the component tree. I’ve tried removing the different caches associated with the project and that has helped at times. However is does not consistently resolve the problem.
The text was updated successfully, but these errors were encountered: