Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.1
-
Fix Version/s: 3.1.0.BETA1, 3.1
-
Component/s: Bridge, ICE-Components
-
Labels:None
-
Environment:Liferay 6, Portlet developed using Icefaces 2.0 + JSF 2.0, Windows XP
-
Assignee Priority:P2
-
ICEsoft Forum Reference:
Description
To give a little background, what we are trying to achieve is create a portlet using icefaces 2.0(portletfaces bridge 2.0), deploy the same in Liferay 6 portal server. And achieve Interportlet communication using publish-supported-publishing-event and supported-processing-event elements(which is supported by the bridge only if the view is completely in JSF, and works like a charm).
Raised the issue with portletfaces. Pl find here what Neil Griffin has to say:
http://www.portletfaces.org/community/forums/-/message_boards/message/56588
Problem Description more in context of icefaces:
To give a brief idea on my view:
a.xhtml - i require icefaces components
a.xhtml includes b.xhtml using ui:include
in b.xhtml again i require some of ice components but this is something i'm willing to change to all JSF components.
b.xhtml contains <icecore:config render="false"/>
When i do not include b.xhtml, then all is well, a.xhtml renders.
But fails the moment a.xhtml is incuded because it does not find a renderer for icefaces components.
Obtained error is:
14:41:34,200 SEVERE [DOMContext] ICEfaces rendering required by icefaces-compat.jar components. Enable via <icecore:config render="true" />.
14:41:34,200 SEVERE [application] Error Rendering View[/xhtml/patientsearch/patientSearch.xhtml]
java.lang.UnsupportedOperationException: ICEfaces rendering required.
at com.icesoft.faces.context.DOMContext.getDOMContext(DOMContext.java:235)
Raised the issue with portletfaces. Pl find here what Neil Griffin has to say:
http://www.portletfaces.org/community/forums/-/message_boards/message/56588
Problem Description more in context of icefaces:
To give a brief idea on my view:
a.xhtml - i require icefaces components
a.xhtml includes b.xhtml using ui:include
in b.xhtml again i require some of ice components but this is something i'm willing to change to all JSF components.
b.xhtml contains <icecore:config render="false"/>
When i do not include b.xhtml, then all is well, a.xhtml renders.
But fails the moment a.xhtml is incuded because it does not find a renderer for icefaces components.
Obtained error is:
14:41:34,200 SEVERE [DOMContext] ICEfaces rendering required by icefaces-compat.jar components. Enable via <icecore:config render="true" />.
14:41:34,200 SEVERE [application] Error Rendering View[/xhtml/patientsearch/patientSearch.xhtml]
java.lang.UnsupportedOperationException: ICEfaces rendering required.
at com.icesoft.faces.context.DOMContext.getDOMContext(DOMContext.java:235)
I have similar problem. In portal environment standard command components rendered by IceFaces (e.g. h:commandLink, h:CommandButton) generate portlet ResourceRequest's and ResourceResponse's (AJAX request/response). But sometimes there is a need to have ActionRequest, ActionResponse objects, for example when portlet mode or portlet window state must be changed. Standard components rendered by default JSF HTML render kit generate such request/response (non AJAX). The possibility of disabling IceFaces rendering for whole page (<icecore:config render="false"/> ) is not good enaugh, because when ActionRequest/ActionResponse is needed there must not be any IceFaces component on the page - if components are present "ICEfaces rendering required" exception is thrown.
In my opinion standard JSF component rendering (e.g. h:commandLink) should be delegated to standard JSF HTML renderer and IceFaces components (e.g. ice:commandLink) should be rendered by IceFaces DOM renderer kit. Developer decides what behaviour is expected.
Rashmi, have you found any solution or workaround for problem you have described?