Giter VIP home page Giter VIP logo

admin-template's People

Contributors

axl8713 avatar benkard avatar ghazyami avatar jomu78 avatar larsgrefer avatar maxusoltsev avatar persapiens avatar rmpestano avatar tmsanchez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

admin-template's Issues

Mojarra 2.3.4 issues

Issue Overview

Admin Boot does not work with mojarra 2.3.4.
Please look discussion here about how to solve it.

Current Behaviour
Submitting button does not work. Ajax fails.
Expected Behaviour
Ajax does not work.
How to reproduce
  • run project with java -jar target/admin-boot-3.1.2-SNAPSHOT.jar
  • access http://localhost:8080
  • type your name and press button
Additional Information
  • AdminFaces version: 1.0.0-RC13
  • PrimeFaces version: 6.2
  • JoinFaces version: 3.2.0-SNAPSHOT

Warning about p:autoUpdate being deprecated

Issue Overview

Since the PrimeFaces Update to Version 6.2 the autoUpdate attributes of components are deprecated. The new tag <p:autoUpdate> should be used.

Current Behaviour

Annoying warnings in the logs on each partial update:

INFO  [org.primefaces.component.messages.MessagesRenderer] (default task-50) autoUpdate attribute is deprecated and will be removed in a future version, use p:autoUpdate component instead.
Expected Behaviour

Correct usage of <p:autoUpdate> tag without info message.

How to reproduce

Fire any kind of partial update to the page, resulting in the <p:messages> tag inside admin.xhtml or admin-top.xhtml being executed.

A sample project or code may help. Can it be reproduced in admin-starter?

Additional Information
  • Affected version: 1.0.0.RC13-SNAPSHOT

Wrong footer size when going to 403 in ajax call

Issue Overview

When going to access denied page using ajax, e.g:

<p:commandButton value="Ajax Submit" id="ajax" update="growl" ignoreAutoUpdate="true"
                                         actionListener="#{buttonMB.buttonAction}" styleClass="btn-default btn-block"/>

Bean call:

 public void buttonAction(ActionEvent actionEvent) {
        if(1==1) {
            throw new AccessDeniedException("access denied");
        }
        addMessage("Welcome to AdminFaces!!");
    }

Then page footer is bigger than usual:

access-denied-bug

Additional Information
  • Affected version: 1.0.0-RC11

Make template skin configurable

Issue Overview

Currently the template skin is fixed as blue and changing it involves setting a property in a bean on application startup.

Expected Behaviour

Default skin should be confugured via properties files.

Additional Information
  • Affected version
    1.0.0-RC6
  • Browser version
    Any

Allow customize header and sidebar using admin-template

Issue Overview

I need customize header and sidebar or remove that in same pages.

Current Behaviour

Today admin-template let insert code before and after but not replace all code of menu and sidebar.

Expected Behaviour

I expected remove thats parts and insert any other code to customize.

Additional Information
  • Affected version: 1.0.0-RC11

Working with shiro filter

I am trying the template. It seems to be a promising thing. I am stuck on how to make it work with shiro filter which is already configured. I want authorisation with roles. If it can work without shiro its okay as long as I can allow designated pages according to roles without configuring anything on the sever

Collapsed left menu not showing on hover

Currently the left menu is not showing on hover when colapsed, see gif:

menu-hover

The expected behavior is to show menu itens on hover:

colapsed-menu

The below css rule works as a workaround:

body ul.sidebar-menu>li {
overflow:visible;
} 

It was changed to overflow hidden in newer versions because of ripple/waves effect integration.

Allow "public" pages

Issue Overview

In some cases a user don't need to be logged in to access a page, e.g a registration page.

Current Behaviour

Currently to achieve such behavior we need to detect which pages user is accessing and then tell AdminSession that user is logged in, example:

@Named
@SessionScoped
@Specializes
public class LogonMB extends AdminSession implements Serializable {

   @Override
    public boolean isLoggedIn() {
        return currentUser != null || Faces.getViewId().endsWith("registration.xhtml");
    }

Note that when isLoggedIn is true adminfaces will NOT redirect user to logon page.

Expected Behaviour

When a pages is under APP-CONTEXT/public/ directory AdminFilter will NOT try to redirect user to logon page.

Additional Information
  • Affected version: 1.0.0-RC9

Add LogoutServlet

Currently we have a LogoutMB but a servlet would be easier to call, for example admin-starter-shiro uses this logout servlet, as it is generic we could put it in admin-template.

Use /admin-logout as pattern to avoid conflict issues.

Additional Information
  • Affected version: RC12

Parametrize loading image

Users may specify loading image in admin-config.properties:

admin.loadingImage=ajaxloadingbar.gif
  • Affected version: RC12

Breadcrumb navigation breaks extensionless URLs when not using link attribute

Issue Overview

Using extensionless URLs results in the suffix .xhtml being appended to links generated by the breadcrumb navigation when the link attribute is not used. This is due to the usage of the viewId from JSFs view root.

Current Behaviour

When using extensionless URLs (using OmniFaces or OCPSoft Rewrite) the Breadcrumb navigation will use the viewId (before it has been rewritten) including the configured extension (such as .xhtml). For example, if the URL /dashboard was accessed, and after that the url /otherDashboard the breadcrumb navigation will contain a link to dashboard.xhtml.

Expected Behaviour

The suffix .xhtml is not automatically appended when using the Breadcrumb navigation and no link attribute is given (for example using a new config property automatically removing the .xhtml extension).

How to reproduce

Configure extensionless URLs using OmniFaces or OCPSoft Rewrite rules, so that the JSF pages are reachable without .jsf or .xhtml extensions.

A sample project or code may help. Can it be reproduced in admin-starter?

Additional Information
  • Affected version: 1.0.0.RC12 / 1.0.0.RC13-SNAPSHOT
Workaround

Provide explicit links using the link attribute.

span p:selectCheckboxMenu

A seta do combo não fica legal quando uso "p:selectCheckboxMenu"
image

<h:form prependId="false" id="formTarefas">
	<div class="ui-g ui-fluid">
		<div class="ui-g-3">
			<h:outputLabel for="usuarioFiltro" value="Usuários:" />
			<p:selectCheckboxMenu id="usuarioFiltro"
				value="#{tarefaPortalBean.userSelecionado}" label="Usuários"
				multiple="true" filter="true" filterMatchMode="startsWith"
				panelStyle="width:250px"
				converter="omnifaces.SelectItemsConverter">
				<f:selectItems value="#{tarefaPortalBean.usuarios}" var="u"
					itemLabel="#{u.name}" itemValue="#{u}" />
			</p:selectCheckboxMenu>
		</div>
	</div>
</form>

Outra coisa que acontece é quando marco alguns itens e depois desmarco todos
image

No bean, nos valores seleionados fica vazio, mas visualmente não limpa a seleção

Slidout menu stop working after clicking page content

Issue Overview

When on mobile device/small screen and side menu is open and user clicks on page body the menu is collapsed. After that menu slideout stop working.

Additional Information
  • Affected version: 1.0.0-RC7
  • Browser version: Any

Support rendering breadcrumb title from page title

Issue Overview

It would be great to minimize the effort for creating breadcrumbs if the title of the page equals the title of the breadcrumb and the title is not a complex mixture of HTML elements.

Current Behaviour

Specify the title of the page using <ui:define name="title">My title</ui:define> and specify the title of the breadcrumb via <adm:breadcrumb title="My title" />.

Expected Behaviour

Specify the title of the page using a generic param <ui:param name="title" value="My title" /> that is both used for the page title and the breadcrumb title.

This should be configurable using an admin configuration.

Side menu must be fixed when user scrolls page down

Issue Overview

When user scrolls page down and slides left menu out then menu items become inaccessible because its position is relative.

Current Behaviour

sidebar-before

Expected Behaviour

sidebar-after

Additional Information
  • Affected version: 1.0.0-RC7
  • Browser version: any

Make it possible to disable slideMenu per page

Issue Overview

Currently we can only disable slideout integration for the whole application, make it possible to disable via ui:param, example:

<ui:define name="head-end">
        <ui:param name="enableSlideMenu" value="false"/>
</ui:define>

If used with security-constraint in web.xml, all redirects after login goes to 403.xhtml

Issue Overview

I have configured a realm and a security constraint in web.xml, in conjunction with AdminSession specialization bean. But the template saves the 403.xhml page as redirect url after login.

Current Behaviour

after login, redirects to 403.xhtml if the requested url is protected under a security-constraint

Expected Behaviour

after login, must redirect to the correct requested url.

How to reproduce

A sample xhtml code may help, ex:

web.xml

  <security-constraint>
    <display-name>all</display-name>
    <web-resource-collection>
      <web-resource-name>Config</web-resource-name>
      <url-pattern>/config/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
      <description/>
      <role-name>admin</role-name>
    </auth-constraint>
  </security-constraint>

LoginManager

@Named("loginManager")
@SessionScoped
@Specializes
public class AdminSessionImpl extends AdminSession implements Serializable {

  private String username;

  private String password;

  private boolean loggedIn = false;

  @Override
  public boolean isLoggedIn() {
    return loggedIn;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public void login() throws IOException {
    ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
    HttpServletRequest request = (HttpServletRequest) externalContext.getRequest();
    try {
      request.login(username, password);
      loggedIn = true;
      Faces.redirect("index.xhtml");
    }
    catch (ServletException e) {
      loggedIn = false;
      String loginErrorMessage = e.getLocalizedMessage();
      FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(loginErrorMessage));
    }
    finally {
      password = null;
    }
  }

  public void logout() throws IOException {
    ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
    externalContext.invalidateSession();
    Faces.redirect("login.xhtml");
  }

}
Additional Information
  • Affected version: I am using com.github.adminfaces:admin-theme:1.0.0-RC9
  • Browser version: N/A

DateFormat config should take JVM format by default

Users can set date format in admin-config which sets the format for error page, by default it uses US format:

admin.dateFormat=MM/dd/yyyy HH:mm:ss

change default to blank:

admin.dateFormat=

and when no format is provided then use JVM defaults.

  • Affected version:

RC12

Side menu disappears when resize window to minimum

Moved issue from starter project:

Hello, first of all, nice job! It's really useful!

Side menu items simply disappears when browser is resized to minimum width:

image

You can test it resizing browser until menu gets in hiden state.

Additional Information
  • Affected version: 1.0.0-RC6
  • Browser version: any

Buttons with icons have too much right padding

Issue Overview

Tell us briefly what the problem is about.

Current Behaviour

image

image

Expected Behaviour

Less padding

How to reproduce

https://github.com/adminfaces/admin-starter/blob/master/src/main/webapp/car-form.xhtml#L25

                        <p:commandButton value="Save" action="#{carFormMB.save}" update="@form"
                                         icon="fa fa-check" styleClass="btn-primary"/>
                        <p:spacer width="5" rendered="#{carFormMB.isNew()}"/>
                        <p:commandButton value="Clear" action="#{carFormMB.clear}" process="@this"
                                         icon="fa fa-refresh" styleClass="btn-success"
update="@form" rendered="#{carFormMB.isNew()}" resetValues="true"/>```

OneMenu hover seems tot be not working

Issue Overview

Mouse hover over oneMenu items not visually shown.

Current Behaviour

When hover with your mouse over an oneMenu the entry is not highlighted.

Expected Behaviour

When hover with your mouse over an oneMenu the entry should be highlighted.

reference https://www.primefaces.org/showcase/ui/input/oneMenu.xhtml

How to reproduce

https://adminfaces-rpestano.rhcloud.com/showcase/pages/form/forms.xhtml

see https://webmshare.com/1MoqV

Additional Information
  • Affected version: 1.0.0-RC9
  • Browser version: Tested with Chrome 60.0.3112.78 and Firefox 54.0.1

Page title should not be rendered on error page

Issue Overview

With the addition of title ui:param to automatically render breadCrumb and page title (see #50) now the title is being rendered on error page

Current Behaviour

error-page-title

Expected Behaviour

No title in error page.

How to reproduce

Create a page with title param:

  <ui:define name="body-begin">
        <ui:param name="title" value="Car listing"/> <!-- Automatic create breadCrumb and page title when param 'title' is provided. --> 
    </ui:define>

And throw an unexpected exception (a non catched exception) on this page.

Additional Information
  • AdminFaces version: RC13
  • PrimeFaces version: 6.2

Wrong redirect after Session expired

Issue Overview

Hi!

I have opened the following page.
https://localhost:8443/gebaeude/pages/gebaeude_list. xhtml
If the session dropped, I will be redirected to the login page. The last current page is saved to be redirected after login. Unfortunately, the URL is stored incorrectly if there is a subfolder
I will be redirected to the following URL.

URL at login.
https://localhost:8443/gebaeude/login.xhtml?page=%2Fpages_list. xhtml

URL after login.
https://localhost:8443/gebaeude/pages_list. xhtml

Expected Behaviour

Redirect to the correct page after a login.
https://localhost:8443/gebaeude/pages/gebaeude_list.xhtml

Additional Information
  • Affected version: I am using com.github.adminfaces:admin-theme:1.0.0-RC9
  • Browser version: N/A

directory

Add support for spring boot

I have tried running the project from a Spring boot application using JoinFaces and I am getting:

java.lang.ExceptionInInitializerError: null
at org.omnifaces.application.OmniApplication.(OmniApplication.java:69) ~[omnifaces-2.1.jar:2.1]
at org.omnifaces.application.OmniApplicationFactory.createOmniApplication(OmniApplicationFactory.java:89) ~[omnifaces-2.1.jar:2.1]
at org.omnifaces.application.OmniApplicationFactory.getApplication(OmniApplicationFactory.java:54) ~[omnifaces-2.1.jar:2.1]
at com.sun.faces.application.InjectionApplicationFactory.getApplication(InjectionApplicationFactory.java:93) ~[javax.faces-2.2.14.jar:2.2.14]
at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:142) ~[javax.faces-2.2.14.jar:2.2.14]
at com.sun.faces.lifecycle.ClientWindowFactoryImpl.(ClientWindowFactoryImpl.java:62) ~[javax.faces-2.2.14.jar:2.2.14]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_112]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_112]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_112]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_112]
at java.lang.Class.newInstance(Class.java:442) ~[na:1.8.0_112]
at javax.faces.FactoryFinderInstance.getImplGivenPreviousImpl(FactoryFinderInstance.java:405) ~[javax.faces-2.2.14.jar:2.2.14]
at javax.faces.FactoryFinderInstance.getImplementationInstance(FactoryFinderInstance.java:251) ~[javax.faces-2.2.14.jar:2.2.14]
at javax.faces.FactoryFinderInstance.getFactory(FactoryFinderInstance.java:543) ~[javax.faces-2.2.14.jar:2.2.14]
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:283) ~[javax.faces-2.2.14.jar:2.2.14]
at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:328) ~[javax.faces-2.2.14.jar:2.2.14]
at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:236) ~[javax.faces-2.2.14.jar:2.2.14]
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:439) ~[javax.faces-2.2.14.jar:2.2.14]
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:227) ~[javax.faces-2.2.14.jar:2.2.14]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4743) [tomcat-embed-core-8.5.14.jar:8.5.14]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207) [tomcat-embed-core-8.5.14.jar:8.5.14]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-embed-core-8.5.14.jar:8.5.14]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) [tomcat-embed-core-8.5.14.jar:8.5.14]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) [tomcat-embed-core-8.5.14.jar:8.5.14]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_112]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_112]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_112]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_112]
Caused by: java.lang.IllegalStateException: CDI BeanManager instance is not available in JNDI.
at org.omnifaces.config.BeanManager.(BeanManager.java:99) ~[omnifaces-2.1.jar:2.1]
at org.omnifaces.config.BeanManager.(BeanManager.java:49) ~[omnifaces-2.1.jar:2.1]
... 28 common frames omitted
Caused by: java.lang.IllegalStateException: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at org.omnifaces.util.JNDI.lookup(JNDI.java:92) ~[omnifaces-2.1.jar:2.1]
at org.omnifaces.config.BeanManager.(BeanManager.java:92) ~[omnifaces-2.1.jar:2.1]
... 29 common frames omitted
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662) ~[na:1.8.0_112]
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313) ~[na:1.8.0_112]
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:350) ~[na:1.8.0_112]
at javax.naming.InitialContext.lookup(InitialContext.java:417) ~[na:1.8.0_112]
at org.omnifaces.util.JNDI.lookup(JNDI.java:88) ~[omnifaces-2.1.jar:2.1]
... 30 common frames omitted

The menus keep auto closing after a Ajax call in Glassfish 5

##### Issue Overview

The expanded menus in the left side keep auto closing after using an ajax call from Primefaces.

Current Behaviour

Everytime I call an Ajax from PrimeFaces the Menus in the left side start to close everytime I try to open then. (The command p:ajax and p:poll are causing the problem.)

Version: RC9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.