0 Replies Latest reply on Jul 31, 2008 8:30 AM by a a

    cannot load exadel demo style

    a a Newbie


      Hi

      I tried to load this style but could not succeed.

      http://livedemo.exadel.com/richfaces-demo/richfaces/style.jsf

      I also added the following code in web.xml


      <context-param>
      <param-name>org.richfaces.CONTROL_SKINNING</param-name>
      <param-value>enable</param-value>
      </context-param>
      <context-param>
      <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
      <param-value>enable</param-value>
      </context-param>


      this the login jsp page code



      <%@page contentType="text/html"%>
      <%@page pageEncoding="UTF-8"%>

      <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
      <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
      <%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
      <%@taglib uri="http://richfaces.org/rich" prefix="rich"%>







      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">





      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      WEB Login





      <ui:composition>

      <f:view>
      <a4j:loadStyle src="resource:///rspannel.xcss"/>
      <h:form id="login">

      <h:messages style="color: red"
      showDetail="true"/>

      <rich:separator height="1" style="padding:10px 0" />

      <rich:panel>
      <f:facet name="header">
      <h:outputText value="CAB WEB User Login" />
      </f:facet>

      <h:panelGrid style="padding: 15px" styleClass="rsPanel" width="250" columns="2">
      <h:outputText styleClass="rsLabel"value="Username:" />
      <h:inputText styleClass="rsInput"id="username"
      value="#{usermanager.username}" required="true"/>
      <h:outputText styleClass="rsLabel"value="Password:" />
      <h:inputSecret styleClass="rsInput" id="password"
      value="#{usermanager.password}" required="true"/>
      </h:panelGrid>


      <h:commandButton styleClass="rsButton"
      id="submit"
      type="submit"
      value="Login"
      action="#{usermanager.validateUser}">

      </h:commandButton>
      </rich:panel>

      </h:form>

      </f:view>
      </ui:composition>




      the rspannel.xccs I just copy paste it from the exadel page

      the rspannel is in the same directory as the login.jsp

      Please assist
      Also can you tell me is there anyway I can link one main richface page to all of my webpages like css link command.

      thanks