[jboss-user] [JBoss Tools (users)] - Re: VPE - is this bug?

krasig do-not-reply at jboss.com
Tue May 12 15:32:42 EDT 2009


Hi again,
Can you try this:

testTemplate.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  | <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:f="http://java.sun.com/jsf/core">
  | 
  | <body>
  | 
  | <div style="background-image: url(${facesContext.externalContext.requestContextPath}/images/#{env.skinPic}) !important;padding-left: 10px">
  | 	
  | </div>
  | 
  | 	<ui:insert name="content>
  | 	<h:commandButton action="" value="Some button" />
  | 	</ui:insert>
  | </body>
  | </html>

testPage.xhtml

  | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  | <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:f="http://java.sun.com/jsf/core">
  | 
  | 	<ui:composition template="testTemplate.xhtml">
  | 	<ui:param name="icon" value="system171.ico" />
  | 		<ui:define name="content">
  | 			<h:commandButton action="" value=button A" />
  | 			<h:inputText value="aaa" />
  | 		</ui:define>
  | 	
  | 	</ui:composition>
  | 
  | </html>

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

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



More information about the jboss-user mailing list