You are on page 1of 1

RichFaces Showcase

Pgina 1 de 1

Project Site Project Wiki

User Forum Tag Library Docs Download

Source

Select Skin:

wine

ruby

japanCherry

emeraldTown

deepMarine

classic

blueSky

Ajax Action
a4j:ajax a4j:commandButton a4j:commandLink a4j:actionListener a4j:jsFunction a4j:poll a4j:push a4j:param Ajax Queue Ajax Output/Containers Validation Data Iteration Trees Output/Panels Menus Inputs Selects Drag and Drop Miscellaneous

Command Link Simple The a4j:commandLink combines the standard h:commandLink with our own a4j:ajax. This not only reduces typing, but also inherits all a4j:ajax special options. Name: Hello ! Hide Source
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
? <!DOCTYPEhtmlPUBLIC"//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1 <ui:composition 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"> <h:outputStylesheet> .outhello{ fontweight:bold; } </h:outputStylesheet> <h:form> <h:panelGrid columns="3"> <h:outputText value="Name:" /> <h:inputText value="#{userBean.name}" /> <a4j:commandLink value="SayHello" render="out" execute="@form" /> </h:panelGrid> </h:form> <br /> <a4j:outputPanel id="out"> <h:outputText value="Hello#{userBean.name}!" styleClass="outhello" /> </a4j:outputPanel> </ui:composition>

Say Hello

Hide Source

RichFaces Core Implementation by JBoss by Red Hat, version v.4.2.2.Final

http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=commandLink&... 12/10/2012

You might also like