我正在使用jsf 2.2 primefaces 6.0 adminLTE2模板,而且我试图定位" imageSwitch"网页中间的组件。以下是界面概述: overview of the interface
这里是Xhtml代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:jsf="http://xmlns.jcp.org/jsf"
xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
xmlns:p="http://primefaces.org/ui"
template="/facelets/templateLogin.xhtml">
<ui:define name="pageTitle">Please login ...</ui:define>
<ui:define name="content">
<div id="login-box" class="login-box visible widget-box no-border">
<div class="widget-body">
<div class="widget-main">
<h4 class="header blue lighter bigger">
<p:imageSwitch effect="shuffle">
<ui:repeat value="#{imagesView.images}" var="image">
<p:graphicImage value="http://localhost:18080/openCars/images/sopra/#{image}" width="500" height="313" />
</ui:repeat>
</p:imageSwitch>
<i class="fa fa-sign-in"></i> Entrer vos informations
</h4>
<div class="space-6"></div>
<div class="space-6"></div>
<div class="space-6"></div>
<h:form id="loginFormId">
<h:panelGrid id="grid" cellpadding="5">
<p:messages id="messages" showDetail="true" autoUpdate="true"
closable="true" />
<fieldset>
<label class="block clearfix"> <span
class="block input-icon input-icon-right"> <h:inputText
id="Matricule" value="#{identity.user.matricule}"
class="form-control" pt:placeholder="Matricule" /><i
class="ace-icon fa fa-user" /> <h:message for="Matricule" />
</span>
</label> <label class="block clearfix"> <span
class="block input-icon input-icon-right"> <h:inputSecret
id="password" pt:placeholder="Mot de passe"
value="#{identity.user.password}" styleClass="form-control" />
<h:message for="password"></h:message> <i
class="ace-icon fa fa-lock"></i>
</span>
</label>
<div class="space"></div>
<div class="clearfix">
<!--
<h:commandButton id="loginResetId"
styleClass=" width-35 pull-right btn btn-sm
btn-primary bigger-110"
value="Logout" action="#{auth.doLogOut()}">
</h:commandButton>
-->
<button type="submit" jsf:action="#{identity.doLogin()}"
class="width-35 pull-right btn btn-sm btn-primary">
<i class="ace-icon fa fa-key"></i> <span class="bigger-110">S'identifier</span>
</button>
<br></br> <br></br>
<h:panelGrid
rendered="#{not empty authentificationBean.message}">
<div class="alert alert-danger">
#{authentificationBean.message} <br />
</div>
</h:panelGrid>
</div>
<div class="space-4"></div>
</fieldset>
</h:panelGrid>
</h:form>
<!--
<div class="social-or-login center">
<span class="bigger-110">Or Login Using</span>
</div>
<div class="space-6"></div>
<div class="social-login center">
<a class="btn btn-primary"> <i class="ace-icon fa fa-facebook"></i>
</a> <a class="btn btn-info"> <i class="ace-icon fa fa-twitter"></i>
</a> <a class="btn btn-danger"> <i
class="ace-icon fa fa-google-plus"></i>
</a>
</div>
-->
</div>
<!-- /.widget-main -->
<h:form id="loginNavId">
<div class="toolbar clearfix">
<div></div>
</div>
</h:form>
</div>
<!-- /.widget-body -->
</div>
<!-- /.login-box -->
</ui:define>
</ui:composition>