Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.07 KB | None | 0 0
  1. <?xml version='1.0' encoding='UTF-8' ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4.      xmlns:h="http://java.sun.com/jsf/html"
  5.      xmlns:rich="http://richfaces.org/rich"
  6.      xmlns:a4j="http://richfaces.org/a4j"
  7.      xmlns:f="http://java.sun.com/jsf/core">
  8.     <h:head>
  9.  
  10.     </h:head>
  11.     <h:body>
  12.         <a4j:outputPanel id="testPanel" >
  13.             <h:form>
  14.                 <h:panelGrid columns="3" cellpadding="30">
  15.                     <h:outputText value="selected value"/>
  16.                     <h:outputText value="#{TestBean.selectedValue}"/>
  17.                     <rich:inplaceSelect value="#{TestBean.selectedValue}">
  18.                         <a4j:ajax event="change" listener="#{TestBean.invokeListener()}" execute="@form"/>
  19.                         <f:selectItems value="#{TestBean.options}"/>
  20.                     </rich:inplaceSelect>
  21.                 </h:panelGrid>
  22.             </h:form>
  23.         </a4j:outputPanel>
  24.     </h:body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement