Fórum

IceFaces styling

Rico D'Amore, modificado 12 Anos atrás.

IceFaces styling

New Member Postagens: 13 Data de Entrada: 29/03/12 Postagens Recentes
Hi,

I'm having trouble with the <ice:outputStyle> tag in my .xhtml page in a simple portlet.

I've reviewed the existing threads on the issue but the solution isn't working for me. Below is my .xhtml page:

<?xml version="1.0" encoding="UTF-8"?>

<ui:composition
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:icecore="http://www.icefaces.org/icefaces/core"
xmlns:liferay-ui="http://portletfaces.org/liferayfaces/liferay-ui"
xmlns:liferay-util="http://portletfaces.org/liferayfaces/liferay-util"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:aui="http://portletfaces.org/alloyfaces/aui"
>

<aui:layout>
<ice:outputStyle href="/xmlhttp/css/rime/rime-portlet.css"/>

<h:form>
<h2>Welcome to the xxxxxxxx website!</h2>
</h:form>
<h:form>
<ice:commandButton id="login" value="Login"></ice:commandButton>
<ice:commandButton id="join" value="Join"></ice:commandButton>
</h:form>
</aui:layout>
</ui:composition>

I also have the speed-filters-enabled=false property set in liferay-plugin-package.properties

I've also takend the rime-portlet resources out of the icefaces-compat-2.0.2.jar and placed them in my local /css directory (hoping that would work)
All of the above solutions failed to have any effect on my .xhtml page styling.

I'm totally scratching my head on this one. Can anyone lend a hand?
thumbnail
Neil Griffin, modificado 12 Anos atrás.

RE: IceFaces styling

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
I recommend giving this a try:

<link href="#{request.contextPath}/xmlhttp/css/rime/rime-portlet.css" rel="stylesheet" type="text/css">
Rico D'Amore, modificado 12 Anos atrás.

RE: IceFaces styling

New Member Postagens: 13 Data de Entrada: 29/03/12 Postagens Recentes
I added the link that was posted, and redeployed. there was no change to the styling of the .xhtml page.

<?xml version="1.0" encoding="UTF-8"?>

<ui:composition
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:icecore="http://www.icefaces.org/icefaces/core"
xmlns:liferay-ui="http://portletfaces.org/liferayfaces/liferay-ui"
xmlns:liferay-util="http://portletfaces.org/liferayfaces/liferay-util"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:aui="http://portletfaces.org/alloyfaces/aui"
>

<aui:layout>
<link href="#{request.contextPath}/xmlhttp/css/rime/rime-portlet.css" rel="stylesheet" type="text/css"/>
<h:form>
<h2>Welcome to the TagMyVideo website!</h2>
</h:form>
<h:form>
<ice:commandButton id="login" value="Login"></ice:commandButton>
<ice:commandButton id="join" value="Join"></ice:commandButton>
</h:form>
</aui:layout>
</ui:composition>

here is my web.xml:

<?xml version="1.0"?>

<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
</context-param>
<context-param>
<param-name>org.icefaces.uniqueResourceURLs</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
<param-value>true</param-value>
</context-param>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>

<context-param>
<param-name>
com.icesoft.faces.portlet.renderStyles
</param-name>
<param-value>false</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>ICEfaces Compatibility Resource Servlet</servlet-name>
<servlet-class>com.icesoft.faces.webapp.CompatResourceServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/icefaces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ICEfaces Compatibility Resource Servlet</servlet-name>
<url-pattern>/xmlhttp/*</url-pattern>
</servlet-mapping>
</web-app>

any further things I could consider to get this working, or should i just go the theme route to change my appearances and be happy with that. I really can't find anything else that will change the appearance of the .xhtml page.

thank you.
thumbnail
Neil Griffin, modificado 12 Anos atrás.

RE: IceFaces styling

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
Please download the icefaces3-compat-portlet and see if that works. I tried it on my local machine and the styling for the ice:selectInputDate component rendered nicely.
Rico D'Amore, modificado 12 Anos atrás.

RE: IceFaces styling

New Member Postagens: 13 Data de Entrada: 29/03/12 Postagens Recentes
I've noticed that the demo is using liferay 6.0. I'm using 6.1.

Is there known issues with icefaces and 6.1. In other words should I just be using 6.1?
thumbnail
Neil Griffin, modificado 12 Anos atrás.

RE: IceFaces styling

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
Right, the download link indicates that version 3.0.0-BETA1 is for "Liferay 6.0.x" but the icefaces3-compat-portlet will work in Liferay 6.1.x as well. So you can stick with Liferay 6.1.

BTW, we just created a 3.0.x branch in Git and we're switching over the master branch to compile against the Liferay 6.1.0 API. We're thinking about doing a 3.1.0-BETA1 release as well, but we might wait to do a 3.1.0-RC1 release instead.
Rico D'Amore, modificado 12 Anos atrás.

RE: IceFaces styling

New Member Postagens: 13 Data de Entrada: 29/03/12 Postagens Recentes
I followed the formatting with the link you provided and: Success!

Thank you very much.

Also:
Is there anyway to explicitly set navigation within the jsf page? MyFaces allows for: action="Join_page" and it will navigate to the Join_page.xhtml without any navigation rules. Does IceFaces support this?

I would also like to say that the constant trolling of your community forums is to be lauded. I've never seen this kind of support from an open-source project!

Thanks for your help!
thumbnail
Neil Griffin, modificado 12 Anos atrás.

RE: IceFaces styling

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
Thanks Rico. We aim to please here at Liferay. emoticon

Regarding your question, yes ICEfaces supports JSF 2 implicit navigation. The demo you downloaded has a view named confirmation.xhtml that tests this:
<!-- Test JSF 2 implicit navigation -->
<ice:commandbutton action="/views/portletViewMode.xhtml" value="#{i18n['submit-another-application']}" />