-
1. Components not working properly, project config issue?
ilya_shaikovsky Apr 11, 2011 9:26 AM (in response to jmiazga)please attach pages.
-
2. Components not working properly, project config issue?
nbelaevski Apr 11, 2011 9:27 AM (in response to jmiazga)Hi,
Please post related page/bean code.
-
3. Re: Components not working properly, project config issue?
jmiazga Apr 11, 2011 9:41 AM (in response to jmiazga){code}
<ui:component xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:it="http://richfaces.org/iteration"
xmlns:cc="http://java.sun.com/jsf/composite"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<cc:interface>
<cc:attribute name="list" />
<cc:attribute name="currentView" />
<cc:attribute name="cssLib" default="css/components" />
<cc:attribute name="cssFile" default="toolbar.css" />
</cc:interface>
<cc:implementation>
<h:outputStylesheet library="#{cc.attrs.cssLib}"
name="#{cc.attrs.cssFile}" />
<h:form styleClass="toolbar">
<rich:toolbar height="20" itemSeparator="line">
<rich:toolbarGroup>
<h:graphicImage library="img/icons" name="include.png" />
<h:graphicImage library="img/icons" name="undo.png" />
</rich:toolbarGroup>
<rich:toolbarGroup>
<rich:select
valueChangeListener="#{bean.changeListener}"
value="#{cc.attrs.currentView}">
<f:selectItems value="#{cc.attrs.list}" />
</rich:select>
</rich:toolbarGroup>
</rich:toolbar>
</h:form>
</cc:implementation>
</ui:component>
{code}
{code}
public class Bean{
public Bean() {
}
public void changeListener(ValueChangeEvent event) {
String selectedDataView = event.getNewValue().toString();
.
.
.
}
}
{code}