attribute « Tag « JSF Q&A





2. Custom Tag won't display the attributes    coderanch.com

Quick summary: I can't refer to the attributes passed in to by custom tag. I have a .jsf page that is passing two strings. One is from the backingBean and the other is hardcoded. <%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@taglib prefix="c" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@taglib prefix="p" tagdir="/WEB-INF/tags"%> ---- ...

3. rerender losing attributes of a tag    coderanch.com

I recently wrote my first tag library and everything is working great except when I attempt to rerender a panel that contains tags from my tag library. What happens is any tag attribute that is not supplied by a backing bean reverts to the default value instead of what I have supplied in the code. eg

7. Can't Pass object to custom tag attribute    coderanch.com

Hi, I get this error when i try to pass an object in the custom tags attribute. [show] /signmodule/campaign/signsList.jsp:14: expected '<%= ... %>' at '#{signsBean.folderTreeDataModel}' for tag attribute setter 'setDataModel(com.jscape.framework.galileo.components.treemodel.BaseTreeDataModel)'. Tag attributes which can't be converted from strings must use a runtime attribute expression. 12: 13: 14: 15: 16: Here's my Code JSP <%@ ...