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
Layout options freezes most functions #4
Comments
Yes, also ajax call are not triggered anymore, no javascript errors thou. I need to investigate further as it doesn't happen on other starters (tomcat/javaee/javaee-security). Thanks for reporting. |
Hi @chrisfperes, can you try the fix below? |
Forget it, it only fixes the control sidebar opening issue but the ajax calls and left hamburger menu still not working. |
Alright, now I think I got it working. Had to update OmniFaces (and weld) to v3.0, take a look at this branch: https://github.com/adminfaces/admin-starter-springboot/blob/omnifaces3/pom.xml and compare with your pom.xml to configure omnifaces 3. If you want to test locally just clone omnifaces3 branch:
if you already have cloned the starter just do a I hope it helps. |
It's working fine now, thanks for helping! |
hi @chrisfperes and @rmpestano Which application server do you use to run I look forward your answer. |
Hi @persapiens, I'm just using If it still doesn't work for you, try attached zip: |
From the logs it is using embedded tomcat:
|
Hi guys, Thanks to @persapiens PR this issue is almost fixed. We're still facing the very same issue when As before it doesn't happen on omnifaces3 branch, JavaEE admin-starter or admin-starter-tomcat. @persapiens, can you have a look? the skin changing was moved to admin-base, (for details see adminfaces/admin-template#140). PS: I'm watting to release vRC20 so this fix gets included. |
hi @rmpestano ,
<p:commandLink id="btn-skin-purple" styleClass="skin-link clearfix #{skinMB.skin eq 'skin-purple' ? '':'full-opacity-hover'}"
oncomplete="replaceSkinWith('skin-purple');updateSkinPurple()"
process="@none" update="@none" global="false" partialSubmit="true">
<div>
<span style="display:block; width: 20%; float: left; height: 7px;" class="bg-purple-active"></span>
<span class="bg-purple" style="display:block; width: 80%; float: left; height: 7px;"></span>
</div>
<div>
<span style="display:block; width: 20%; float: left; height: 20px; background: #222d32"></span>
<span style="display:block; width: 80%; float: left; height: 20px; background: #f4f5f7"></span>
</div>
</p:commandLink>
<p:remoteCommand name="updateSkinPurple" action="#{skinMB.changeSkin('skin-purple')}" process="@this" update="@none" global="false"/> It is strange that if I remove |
Hi @persapiens,
Yes, it is probably not recognizing AdminSession specialization on LoginMB because the AdminFilter is active but is considering user is always logged in which is the default behaviour. LoginMB is responsible for telling AdminFaces that user is not logged in.
For some reason when using java -jar SpringBoot uses omnifaces1 and that's probably why it's not working with java -jar:
The controlsidebar is a bit complex component because it uses LocalStorage for persisting user preferences (see here, the |
When I run
|
You're right, I was running against an old war file on target. Same thing for me here, the login is not working with java -jar on the other hand using mvn spring-boot:run the login page is skipped and looks like LoginMB is not being used on this case. |
Guys, I think I got it working with OmniFaces1, can you try on the master branch of this repo? |
It works. Great work. |
RC20 was released, I'll close the issue. Thank you very much guys for your help here! |
When some of the options in lateral layout options menu are toggle, both lateral menus stop working, this only fixes when I clean the browser caches. I tested it on Chrome.
The text was updated successfully, but these errors were encountered: