[jboss-user] [JBoss Seam] - Re: Seam Component as Richfaces Binding bean???

xinhua do-not-reply at jboss.com
Tue Nov 13 07:54:05 EST 2007


hi,

xhtml: 


  | <html xmlns="http://www.w3.org/1999/xhtml"
  | 	xmlns:ui="http://java.sun.com/jsf/facelets"
  | 	xmlns:h="http://java.sun.com/jsf/html"
  | 	xmlns:s="http://jboss.com/products/seam/taglib"
  | 	xmlns:f="http://java.sun.com/jsf/core"
  | 	xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
  | 	xmlns:rich="http://richfaces.ajax4jsf.org/rich">
  | 
  | <ui:composition template="../#{theme.template}">
  | 
  | 
  | <ui:define name="body">
  | 
  | <rich:modalPanel id="Fenster" minHeight="600" minWidth="600" zindex="2000" binding="#{window.panel}">
  | 	<f:facet name="header">
  | 		<h:outputText value="Neu Fenster" />
  | 	</f:facet>
  | 	<f:facet name="controls">
  | 		<h:graphicImage value="../images/default/modal/close.png"	style="cursor:pointer" onclick="Richfaces.hideModalPanel('Fenster')" />
  | 	</f:facet>
  | 	
  | </rich:modalPanel>
  | 
  | </ui:define>
  | </ui:composition>
  | </html>
  | 

binding bean:


  | 
  | @Name("window")
  | public class MsgMBean {
  | 
  | @Logger Log log;
  | private UIModalPanel panel;
  | 
  | 	public UIModalPanel getPanel() {
  |                 log.info("-----------> Panel kommt");
  | 		return panel;
  | 	}
  | 
  | 	public void setPanel(UIModalPanel panel) {
  | 		this.panel = panel;
  | 	}
  | 
  | }

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104092#4104092

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104092



More information about the jboss-user mailing list