voyent
IceFaces Portlet  XML
Forum Index -> Portals & Portlets
Author Message
wolfateh

Joined: 31/Aug/2012 14:35:49
Messages: 4
Offline


HI All
i have RichFaces portlet and i want it to upgrade to IceFaces
i am new with icefaces and i need some help please
how i can Convert the following components of this code to IceFaces components


<a4j:outputPanel id="cou_pan_id" rendered="#{courseLibraryBean.viewMode}">
<a4j:commandButton value="#{lang.new_course}" reRender="app_form_id" action="#{courseLibraryBean.onNewCourse}"/>
<rich:panel header="#{lang.courses}">
<rich:dataTable id="co_tab_id" value="#{courseLibraryBean.courses}" var="course" width="100%">
<rich:column>
<f:facet name="header">
<h:outputText value="#{lang.course_name}" />
</f:facet>
<h:outputText value="#{course.courseName}"/>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{lang.course_code}" />
</f:facet>
<h:outputText value="#{course.courseCode}"/>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{lang.edit}"/>
</f:facet>
<a4j:commandLink value="#{lang.edit}" action="#{courseLibraryBean.onEditCourse}"
reRender="app_form_id">
<f:setPropertyActionListener value="#{course}" target="#{courseLibraryBean.currentEntity}" />
</a4j:commandLink>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="#{lang.delete}"/>
</f:facet>
<a4j:commandLink value="#{lang.delete}" action="#{courseLibraryBean.onRemoveCourse}"
reRender="co_tab_id">
<f:setPropertyActionListener value="#{course}" target="#{courseLibraryBean.currentEntity}" />
</a4j:commandLink>
</rich:column>
</rich:dataTable>
</rich:panel>
</a4j:outputPanel>


what is the Synonym of this components in IceFaces
thanks in advance
nils.lundquist

Joined: 31/Aug/2010 11:18:29
Messages: 198
Offline


With the exception of outputPanel, the comparable components in ICEfaces are named very similarly:
a4j:commandButton -> ace:commandButton
a4j:commandLink -> ace:commandLink
rich:panel -> ace:panel
rich:dataTable -> ace:dataTable
rich:column -> ace:column

However, outputPanel is a legacy artifact of the RichFaces Ajax4JSF functionality, an Ajax implementation that predates the advent of the JSF 2.0 f:ajax mechanisms. There is no directly comparable component. The way to accomplish similar functionality would be to use the JSF 2.0 f:ajax (and our companion ace:ajax) update mechanisms to rerender the ace:panel when desired.
wolfateh

Joined: 31/Aug/2012 14:35:49
Messages: 4
Offline


thanks alot for your quick replay
wolfateh

Joined: 31/Aug/2012 14:35:49
Messages: 4
Offline


in <ace > i can't find the commandButton
ps. i use portletFsces to build my portlet
and this is the jar list what i add
is it correct list ?

commons-fileupload-1.2.2.jar
commons-io-1.3.2.jar
icefaces-3.1.0.jar
icefaces-ace-3.1.0.jar
icefaces-compat-3.1.0.jar
jboss-el-2.0.0.GA.jar
jsf-api-2.1.3-b02.jar
jsf-impl-2.1.3-b02.jar
liferay-faces-alloy-3.0.0-ga1.jar
liferay-faces-bridge-api-3.0.0-ga1.jar
liferay-faces-bridge-impl-3.0.0-ga1.jar
liferay-faces-portal-3.0.0-ga1.jar
liferay-faces-util-3.0.0-ga1.jar
dsinotte

Joined: 14/Nov/2006 00:00:00
Messages: 33
Offline


You probably want ace:pushButton or h:commandButton.

The library list looks pretty good. Some of the them are optional in that you only need them if you are using certain features.

For example, if you are only using ace: components (and not the older ice: components) then you may not need icefaces-compat-3.1.0.jar.

Also liferay-faces-alloy and liferay-faces-portal are not required unless you are using features. Basic ICEfaces portlet support only requires liferay-faces-bridge-api, liferay-faces-bridge-impl, and liferay-faces-bridge-util.
wolfateh

Joined: 31/Aug/2012 14:35:49
Messages: 4
Offline


thanks for replay
one more question please because i am new to iceFaces could you tell me what the Similar or
equivalent components in ICEFaces for the following components :
<a4j:outputPanel
<a4j:support
abd this part of my code what i need to change to ICeFaces

<a4j:outputPanel id="fil_ed_id" rendered="#{courseLibraryBean.editFile}">
<h:outputLabel value="#{courseLibraryBean.msg}" id="msg_id"/>
<h:panelGrid columns="2">
#{lang.course_name}
<h:selectOneMenu value="#{courseLibraryBean.selectedCourseId}" style="width: 100%">
<f:selectItems value="#{courseLibraryBean.courseItems}" />
<a4j:support action="#{courseLibraryBean.onChangeCourse}" event="onchange" reRender="fil_ed_id,fil_tab_id"/>
</h:selectOneMenu>
#{lang.folder_name}
<h:selectOneMenu id="fil_fol_id" value="#{courseLibraryBean.fileParentId}" style="width: 100%">
<f:selectItems value="#{courseLibraryBean.fileFolderItems}" />
<a4j:support action="#{courseLibraryBean.onChangeFolder}" event="onchange" reRender="fil_ed_id,fil_tab_id"/>
</h:selectOneMenu>
</h:panelGrid>
</a4j:outputPanel>

 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team