/** * @author Nick Belaevski Renderer for attachedQueue component */ @JsfRenderer(type = "org.richfaces.AttachQueueRenderer", family = "org.richfaces.AttachQueue") public class AttachQueueRenderer extends QueueRendererBase { @Override protected String getQueueName(FacesContext context, UIComponent comp) { return comp.getClientId(context); } }
/** * @author Nick Belaevski Renderer for attachedQueue component */ @JsfRenderer(type = "org.richfaces.AttachQueueRenderer", family = "org.richfaces.AttachQueue") public class AttachQueueRenderer extends QueueRendererBase { @Override protected String getQueueName(FacesContext context, UIComponent comp) { return comp.getClientId(context); } }
/** * @author Nick Belaevski Renderer for attachedQueue component */ @JsfRenderer(type = "org.richfaces.AttachQueueRenderer", family = "org.richfaces.AttachQueue") public class AttachQueueRenderer extends QueueRendererBase { @Override protected String getQueueName(FacesContext context, UIComponent comp) { return comp.getClientId(context); } }
@JsfRenderer(type="org.jboss.seam.ui.ResourceRenderer", family="org.jboss.seam.ui.ResourceRenderer") public class ResourceRendererBase extends RendererBase { @Override protected Class getComponentClass() { return UIResource.class; } @Override protected void doEncodeBegin(javax.faces.context.ResponseWriter writer, FacesContext ctx, UIComponent component) throws IOException { UIResource resource = (UIResource) component; String url = DocumentStoreUtils.addResourceToDataStore(ctx, resource); ctx.getExternalContext().redirect(url); } }
@JsfRenderer(type="org.jboss.seam.ui.FormattedTextRenderer", family="org.jboss.seam.ui.FormattedTextRenderer") public class FormattedTextRendererBase extends RendererBase { @Override protected Class getComponentClass() { return UIFormattedText.class; } @Override protected void doEncodeBegin(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException { String formattedText = ((UIFormattedText) component).getFormattedText(); if (formattedText != null) { writer.write(formattedText); } } }
/** * @author Nick Belaevski Renderer for queue component */ @JsfRenderer(type = "org.richfaces.QueueRenderer", family = "org.richfaces.Queue") public class QueueRenderer extends QueueRendererBase { private final RendererUtils utils = RendererUtils.getInstance(); protected String getQueueName(FacesContext context, UIComponent comp) { String nameAttributeValue = (String) comp.getAttributes().get(NAME_ATTRIBBUTE); if (nameAttributeValue == null || nameAttributeValue.length() == 0) { UIComponent form = utils.getNestingForm(context, comp); if (form != null) { nameAttributeValue = form.getClientId(context); } else { nameAttributeValue = AbstractQueue.GLOBAL_QUEUE_NAME; } } return nameAttributeValue; } }
@JsfRenderer(type="org.jboss.seam.ui.renderkit.FragmentRendererBase", family="org.jboss.seam.ui.FragmentRenderer") public class FragmentRendererBase extends RendererBase { @Override protected Class getComponentClass() { return UIFragment.class; } @Override public boolean getRendersChildren() { return true; } @Override protected void doEncodeChildren(ResponseWriter writer, FacesContext facesContext, UIComponent component) throws IOException { renderChildren(facesContext, component); } }
/** * @author Nick Belaevski Renderer for queue component */ @JsfRenderer(type = "org.richfaces.QueueRenderer", family = "org.richfaces.Queue") public class QueueRenderer extends QueueRendererBase { private final RendererUtils utils = RendererUtils.getInstance(); protected String getQueueName(FacesContext context, UIComponent comp) { String nameAttributeValue = (String) comp.getAttributes().get(NAME_ATTRIBBUTE); if (nameAttributeValue == null || nameAttributeValue.length() == 0) { UIComponent form = utils.getNestingForm(comp); if (form != null) { nameAttributeValue = form.getClientId(context); } else { nameAttributeValue = AbstractQueue.GLOBAL_QUEUE_NAME; } } return nameAttributeValue; } }
/** * @author Nick Belaevski Renderer for queue component */ @JsfRenderer(type = "org.richfaces.QueueRenderer", family = "org.richfaces.Queue") public class QueueRenderer extends QueueRendererBase { private final RendererUtils utils = RendererUtils.getInstance(); protected String getQueueName(FacesContext context, UIComponent comp) { String nameAttributeValue = (String) comp.getAttributes().get(NAME_ATTRIBBUTE); if (nameAttributeValue == null || nameAttributeValue.length() == 0) { UIComponent form = utils.getNestingForm(context, comp); if (form != null) { nameAttributeValue = form.getClientId(context); } else { nameAttributeValue = AbstractQueue.GLOBAL_QUEUE_NAME; } } return nameAttributeValue; } }
@JsfRenderer(type="org.jboss.seam.ui.DivRenderer", family="org.jboss.seam.ui.DivRenderer") public class DivRendererBase extends StyleRendererBase { @Override protected Class getComponentClass() { return UIStyle.class; } @Override public void endElement(ResponseWriter writer) throws IOException { writer.endElement("div"); } @Override public void startElement(ResponseWriter writer, UIStyle style) throws IOException { writer.startElement("div", style); } }
@JsfRenderer(type="org.jboss.seam.ui.ConversationNameRenderer", family="org.jboss.seam.ui.ConversationNameRenderer") public class ConversationNameRendererBase extends CommandButtonParameterRendererBase
/** * <p>The <rich:menuSeparator> component represents a separating divider in a menu control.</p> */ @JsfComponent(family = AbstractDropDownMenu.COMPONENT_FAMILY, type = AbstractMenuSeparator.COMPONENT_TYPE, renderer = @JsfRenderer(type = MenuSeparatorRendererBase.RENDERER_TYPE), tag = @Tag(name = "menuSeparator")) public abstract class AbstractMenuSeparator extends UIComponentBase { public static final String COMPONENT_TYPE = "org.richfaces.MenuSeparator"; @Attribute(generate = false, hidden = true, readOnly = true) public Object getCssRoot() { return getParent().getAttributes().get("cssRoot"); } }
/** * <p>The <rich:menuSeparator> component represents a separating divider in a menu control.</p> */ @JsfComponent(family = AbstractDropDownMenu.COMPONENT_FAMILY, type = AbstractMenuSeparator.COMPONENT_TYPE, renderer = @JsfRenderer(type = MenuSeparatorRendererBase.RENDERER_TYPE), tag = @Tag(name = "menuSeparator")) public abstract class AbstractMenuSeparator extends UIComponentBase { public static final String COMPONENT_TYPE = "org.richfaces.MenuSeparator"; @Attribute(generate = false, hidden = true, readOnly = true) public Object getCssRoot() { return getParent().getAttributes().get("cssRoot"); } }
/** * <p>The <rich:message> component renders a single FacesMessage message instance added for the component. The * appearance of the message can be customized, and tool-tips can be used for further information about the * message.</p> * * @author asmirnov@exadel.com */ @JsfComponent( generate = "org.richfaces.component.html.HtmlMessage", type = "org.richfaces.Message", tag = @Tag(name = "message"), renderer = @JsfRenderer(template = "message.template.xml", type = "org.richfaces.MessageRenderer")) public abstract class AbstractMessage extends UIMessage implements AjaxOutput, AjaxOutputProps, CoreProps, I18nProps, OutputFormatProps { @Attribute(hidden = true) public abstract boolean isKeepTransient(); @Attribute(hidden = true) public abstract boolean isDisabled(); }
/** * <p> * The <a4j:jsFunction> component performs Ajax requests directly from JavaScript code and retrieves server-side data. * The server-side data is returned in JavaScript Object Notation (JSON) format prior to the execution of any JavaScript * code defined using the "oncomplete" attribute. * </p> * @author asmirnov@exadel.com */ @JsfComponent(renderer = @JsfRenderer(type = "org.richfaces.FunctionRenderer"), tag = @Tag(name = "jsFunction", type = TagType.Facelets)) public abstract class AbstractAjaxFunction extends BasicActionComponent implements AjaxCommandProps, BypassProps { public static final String COMPONENT_FAMILY = "javax.faces.Command"; public static final String COMPONENT_TYPE = "org.richfaces.Function"; /** * The name of the generated javascript function */ @Attribute(required = true) public abstract String getName(); }
/** * <p> * The <a4j:jsFunction> component performs Ajax requests directly from JavaScript code and retrieves server-side data. * The server-side data is returned in JavaScript Object Notation (JSON) format prior to the execution of any JavaScript * code defined using the "oncomplete" attribute. * </p> * @author asmirnov@exadel.com */ @JsfComponent(renderer = @JsfRenderer(type = "org.richfaces.FunctionRenderer"), tag = @Tag(name = "jsFunction", type = TagType.Facelets), attributes = { "ajax-props.xml" }) public abstract class AbstractAjaxFunction extends AbstractActionComponent { public static final String COMPONENT_FAMILY = "javax.faces.Command"; public static final String COMPONENT_TYPE = "org.richfaces.Function"; /** * The name of the generated javascript function */ @Attribute(required = true) public abstract String getName(); }
/** * <p> * The <a4j:jsFunction> component performs Ajax requests directly from JavaScript code and retrieves server-side data. * The server-side data is returned in JavaScript Object Notation (JSON) format prior to the execution of any JavaScript * code defined using the "oncomplete" attribute. * </p> * @author asmirnov@exadel.com */ @JsfComponent(renderer = @JsfRenderer(type = "org.richfaces.FunctionRenderer"), tag = @Tag(name = "jsFunction", type = TagType.Facelets), attributes = { "ajax-props.xml" }) public abstract class AbstractAjaxFunction extends AbstractActionComponent { public static final String COMPONENT_FAMILY = "javax.faces.Command"; public static final String COMPONENT_TYPE = "org.richfaces.Function"; /** * The name of the generated javascript function */ @Attribute(required = true) public abstract String getName(); }
/** * <p> * The non-visual <a4j:repeat> component is used to iterate through a data model. The component renders child content for * every iteration according to the current object data. * </p> * * @author Nick Belaevski */ @JsfComponent(tag = @Tag(name = "repeat", handlerClass = RepeatHandler.class, type = TagType.Facelets), renderer = @JsfRenderer(type = "org.richfaces.RepeatRenderer")) public class UIRepeat extends UISequence implements RowsProps, SequenceProps, IterationProps { public static final String COMPONENT_TYPE = "org.richfaces.Repeat"; public static final String COMPONENT_FAMILY = "javax.faces.Data"; public UIRepeat() { setRendererType("org.richfaces.RepeatRenderer"); } @Override public String getFamily() { return COMPONENT_FAMILY; } }
/** * <p>The <rich:menuSeparator> component represents a separating divider in a menu control.</p> */ @JsfComponent(family = AbstractDropDownMenu.COMPONENT_FAMILY, type = AbstractMenuSeparator.COMPONENT_TYPE, renderer = @JsfRenderer(type = MenuSeparatorRendererBase.RENDERER_TYPE), tag = @Tag(name = "menuSeparator")) public abstract class AbstractMenuSeparator extends UIComponentBase { public static final String COMPONENT_TYPE = "org.richfaces.MenuSeparator"; private AbstractMenuContainer parent; @Attribute(generate = false, hidden = true, readOnly = true) public Object getCssRoot() { return findMenuComponent().getAttributes().get("cssRoot"); } public AbstractMenuContainer findMenuComponent() { if (parent != null) { return parent; } UIComponent c = this; while (c != null && !(c instanceof AbstractMenuContainer)) { c = c.getParent(); } parent = (AbstractMenuContainer) c; return parent; } }
@JsfComponent(tag = @Tag(name = "notifyStack"), type = AbstractNotifyStack.COMPONENT_TYPE, family = AbstractNotifyStack.COMPONENT_FAMILY, renderer = @JsfRenderer(type = "org.richfaces.NotifyStackRenderer")) public abstract class AbstractNotifyStack extends UIComponentBase {