composite-component

javax.el.PropertyNotFoundException with CompositeComponent?

▼魔方 西西 提交于 2019-12-19 10:17:38
问题 I'm currently trying to build a composite component, and this is how i make use of my component : Include it with xmlns:albert="http://java.sun.com/jsf/composite/albert" And here's the usage example <albert:infoButton infoId="infoSingleRecord" params="transDateFrom transDateTo" mappingMethod="#{tBrowseBean_ConfirmedRPB.mapSendInfoSingleRecord}" /> And this is the component which is put in resources/albert/infoButton.xhtml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C/

h:dataTable composite component, cc.attrs.var, IllegalArgumentException

时光总嘲笑我的痴心妄想 提交于 2019-12-19 09:43:28
问题 I'm trying to create my own dataTable like the primefaces one. The problem is that cc.attrs.var when used throws a IllegalArgumentException. So I'm wondering how I can have the var attribute like Primefaces. <cc:interface> <cc:attribute name="value"/> <cc:attribute name="var"/> <cc:attribute name="styleClass"/> </cc:interface> <cc:implementation> <div>Previous</div> <div>Next</div> <h:dataTable value="#{cc.attrs.value}" var="#{cc.attrs.var}" styleClass="#{cc.attrs.styleClass}"> <ui:insert/> <

h:dataTable composite component, cc.attrs.var, IllegalArgumentException

不问归期 提交于 2019-12-19 09:43:19
问题 I'm trying to create my own dataTable like the primefaces one. The problem is that cc.attrs.var when used throws a IllegalArgumentException. So I'm wondering how I can have the var attribute like Primefaces. <cc:interface> <cc:attribute name="value"/> <cc:attribute name="var"/> <cc:attribute name="styleClass"/> </cc:interface> <cc:implementation> <div>Previous</div> <div>Next</div> <h:dataTable value="#{cc.attrs.value}" var="#{cc.attrs.var}" styleClass="#{cc.attrs.styleClass}"> <ui:insert/> <

Evaluating if MethodExpression attribute is set (getting PropertyNotFoundException)

假装没事ソ 提交于 2019-12-19 07:23:20
问题 I have a UI component with a MethodExpression attribute changeListener : <composite:interface> <composite:attribute name="changeListener" required="false" method-signature="void actionListener(javax.faces.event.ActionEvent)" /> .. </composite:interface> <composite:implementation> <p:remoteCommand name="ajaxOnChange" update="#{cc.attrs.onChangeUpdate}" oncomplete="#{cc.attrs.onchange}" actionListener="#{cc.attrs.changeListener}" /> .. </composite:implementation> This changeListener attribute

How to attach ajax event to composite component?

点点圈 提交于 2019-12-19 02:06:45
问题 I have the following composite component (<v2:inputText2>) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:composite="http://java.sun.com/jsf/composite" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:rich="http://richfaces.org/rich"> <!-- INTERFACE --> <composite:interface> <composite:attribute name="baseId" required="true" />

How to pass a action string into a JSF 2 composite component?

☆樱花仙子☆ 提交于 2019-12-18 11:54:10
问题 I'm creating a simple menuing composite component in JSF 2. However, I am unable to pass a String attribute into the composite component to use in the action attribute of the <h:commandLink>. My component looks like: <composite:interface> <composite:attribute name="title" required="true" type="java.lang.String"/> <composite:attribute name="view" required="true" /> </composite:interface> <!--implementation--> <composite:implementation> <li><h:commandLink action="#{cc.attrs.view}" value="#{cc

Composite component with custom backing component breaks strangely when nested inside ui:repeat

倖福魔咒の 提交于 2019-12-18 09:04:56
问题 My problem in brief is that I have a composite component with a componentType specified. When I use the composite component alone on a page, it works fine. When I nest it inside another composite component (also inside a ui:repeat), I get an exception trying to find the properties I've defined on componentType class inside a UINamingContainer--which is the wrong class. I have found I can solve that problem by replacing cc.whatever with component.parent.parent.parent.whatever but I find that a

JSF2 composite component throws PropertyNotFoundException for action method

▼魔方 西西 提交于 2019-12-18 08:53:54
问题 I have a composite component: <composite:interface> <composite:attribute name="actionMethod" method-signature="java.lang.String action()" required="true" /> </composite:interface> <composite:implementation> <h:form> <h:commandButton id="captureButton" value="#{msgs.capture}" action="#{cc.attrs.actionMethod}" /> </h:form> </composite:implementation> and a page which is calling that composite component: <ezcomp:captureTitle actionMethod="#{saveDecisionsBean.captureTitle}" /> and a bean which

Properties of new tags using composite component are not displayed by Eclipse auto complete shortcurt

吃可爱长大的小学妹 提交于 2019-12-18 07:45:49
问题 I have developed composite components using JSF 2.0 in Eclipse. I've been putting my XHTML tag files inside resources folder. When I hit ctrl + space in keyboard, the property of the tag are not displayed. I found some tips told to install "Jboss tools" but didn't work. <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:cc="http:/

JSF composite component - weird behavior when trying to save state

◇◆丶佛笑我妖孽 提交于 2019-12-18 07:05:25
问题 I'm using Glassfish 3.2.2 and JSF 2.1.11 I'm trying to create a composite component that will take as parameters a string and a max number of characters and then will show only the max amount of characters, but it will have a "more" link next to it, that when clicked will expand the text to the full length and will then have a "less" link next to it to take it back to the max number of characters. I'm seeing some weird behavior, so I'm wondering if I'm doing something wrong. Here is my