留言板
Liferay Sign In
We are using liferay 7 ga 3, on both our dev hosts and on Linux boxes. Click sign in the screen often just greys out and no pop up form for logging in appears. What is going wrong?
It seem its our portlet that preventing login, can log in from a blank page.
Is anything we're including in our page import causing problem, this is our page header:
Is there some problem using jquery or bootstrap with liferay?
Is anything we're including in our page import causing problem, this is our page header:
<%@ page contentType="text/html" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>
<portlet:defineobjects />
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<!-- Bootstrap minified 3.3.7 -->
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link type="text/css" href="<%=renderRequest.getContextPath()%>/css/clientconfiggeneration.css" rel="stylesheet">
Is there some problem using jquery or bootstrap with liferay?
As you say that this is your page header: Do you embed this in a <head> element? Because a portlet must not contain such a section. Also, imagine what would happen to your load times if every single portlet would load its own jquery and bootstrap code - you probably don't want this, and it might well render some built-in components useless as they might require both to be available and initialized properly.