Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
After all not a RichFaces/Glassfish problem. Improved title and tagging so that it can better be found by search
Link
BalusC
  • 1.1m
  • 377
  • 3.7k
  • 3.6k

Page Forward Request XML or text declaration not at start of entity

added 281 characters in body
Source Link
Chris
  • 712
  • 4
  • 16
  • 40
<?xml<h:head>  version='1.0' encoding='UTF-8' ?>  <!DOCTYPE<meta htmlhttp-equiv="Content-Type" PUBLICcontent="text/html; "charset=UTF-//W3C/8" /DTD>  XHTML 1.0 Transitional//EN" "http<h://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <htmloutputStylesheet xmlns="http:/name="css/www.w3default.org/1999css"/xhtml">   xmlns:ui="http<h:/outputStylesheet name="css/java.suncssLayout.com/jsfcss"/facelets">  <title>  xmlns:f="http://java.sun.com/jsf/core"  xmlns:h="http<h://java.sun.com/jsf/html" outputText value="Partner Tapestry - " /> xmlns:rich="http<ui://richfaces.orginsert name="title">Browser Title</rich"> ui:insert> <h</title> </h:head>   <h:body>  <meta http-equiv="Content-Type" content="text/html;<div charset=UTF-8"id="top" />   <h<ui:outputStylesheetinsert name="css/default.css"name="top">Top Default</>ui:insert> </div>  <h:outputStylesheet<div name="css/cssLayout.css"/> id="messages"> <title><rich:messages id="messagePanel" ajaxRendered="true"/> </div>  <div id="content">  <h:outputText value="Hello - " /> <ui:insert name="title">Browsername="content">Content Title<Default</ui:insert>   </title>div>  </h:head>body> 

File using the template

<ui:composition template="/resources/masterLayout.xhtml"  <h:body>  <h:panelGroup layout="block" id="top" > xmlns="http://www.w3.org/1999/xhtml" <ui:insert name="top">Top Default</ui xmlns:insert>ui="http://java.sun.com/jsf/facelets" </h:panelGroup>  <hxmlns:panelGrouph="http://java.sun.com/jsf/html"  layout="block" id="messages">  <rich:messages id="messagePanel" ajaxRendered="true">xmlns:f="http://java.sun.com/jsf/core" <!--xmlns:rich="http://richfaces.org/rich"  Message panel for all error and success messages --> xmlns:a4j="http://richfaces.org/a4j">  <ui:define name="title">  <h:outputText value="#{bundle.EditActivityTitle}"></h:outputText> </richui:messages>define> <ui:define name="top">   <ui:include src="#{userController.roleMenuPath}"/>  </hui:panelGroup>define> <ui:define name="content">  <h <rich:panelGrouppanel layout="block"header="Edit id="content">Activity" styleClass="center_content"> <ui<h:insertform name="content">Contentid="activity_edit_form">  Default< ... </uih:insert>form> </hrich:panelGroup>panel> </hui:body>define> </html>ui:composition> 
<?xml version='1.0' encoding='UTF-8' ?>  <!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:f="http://java.sun.com/jsf/core"  xmlns:h="http://java.sun.com/jsf/html"  xmlns:rich="http://richfaces.org/rich">  <h:head>   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />   <h:outputStylesheet name="css/default.css"/> <h:outputStylesheet name="css/cssLayout.css"/>  <title> <h:outputText value="Hello - " /> <ui:insert name="title">Browser Title</ui:insert>   </title>  </h:head> <h:body>  <h:panelGroup layout="block" id="top" > <ui:insert name="top">Top Default</ui:insert> </h:panelGroup>  <h:panelGroup layout="block" id="messages">  <rich:messages id="messagePanel" ajaxRendered="true"> <!-- Message panel for all error and success messages --> </rich:messages> </h:panelGroup> <h:panelGroup layout="block" id="content"> <ui:insert name="content">Content Default</ui:insert> </h:panelGroup> </h:body> </html> 
<h:head>  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  <h:outputStylesheet name="css/default.css"/> <h:outputStylesheet name="css/cssLayout.css"/>  <title>  <h:outputText value="Partner Tapestry - " /> <ui:insert name="title">Browser Title</ui:insert> </title> </h:head>  <h:body>  <div id="top" > <ui:insert name="top">Top Default</ui:insert> </div>  <div id="messages"> <rich:messages id="messagePanel" ajaxRendered="true"/> </div>  <div id="content">  <ui:insert name="content">Content Default</ui:insert> </div> </h:body> 

File using the template

<ui:composition template="/resources/masterLayout.xhtml"   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" xmlns:rich="http://richfaces.org/rich"   xmlns:a4j="http://richfaces.org/a4j">  <ui:define name="title">  <h:outputText value="#{bundle.EditActivityTitle}"></h:outputText> </ui:define> <ui:define name="top">   <ui:include src="#{userController.roleMenuPath}"/>  </ui:define> <ui:define name="content">   <rich:panel header="Edit Activity" styleClass="center_content"> <h:form id="activity_edit_form">   ... </h:form> </rich:panel> </ui:define> </ui:composition> 
fixed formatting (always prefix code block with blank new line)
Source Link
BalusC
  • 1.1m
  • 377
  • 3.7k
  • 3.6k
<?xml version='1.0' encoding='UTF-8' ?> <!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:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich">  <h:head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <h:outputStylesheet name="css/default.css"/> <h:outputStylesheet name="css/cssLayout.css"/> <title> <h:outputText value="Hello - " /> <ui:insert name="title">Browser Title</ui:insert> </title> </h:head> <h:body> <h:panelGroup layout="block" id="top" > <ui:insert name="top">Top Default</ui:insert> </h:panelGroup> <h:panelGroup layout="block" id="messages"> <rich:messages id="messagePanel" ajaxRendered="true"> <!-- Message panel for all error and success messages --> </rich:messages> </h:panelGroup> <h:panelGroup layout="block" id="content"> <ui:insert name="content">Content Default</ui:insert> </h:panelGroup> </h:body> </html> 
 <h:head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <h:outputStylesheet name="css/default.css"/> <h:outputStylesheet name="css/cssLayout.css"/> <title> <h:outputText value="Hello - " /> <ui:insert name="title">Browser Title</ui:insert> </title> </h:head> <h:body> <h:panelGroup layout="block" id="top" > <ui:insert name="top">Top Default</ui:insert> </h:panelGroup> <h:panelGroup layout="block" id="messages"> <rich:messages id="messagePanel" ajaxRendered="true"> <!-- Message panel for all error and success messages --> </rich:messages> </h:panelGroup> <h:panelGroup layout="block" id="content"> <ui:insert name="content">Content Default</ui:insert> </h:panelGroup> </h:body> </html> 
<?xml version='1.0' encoding='UTF-8' ?> <!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:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:rich="http://richfaces.org/rich">  <h:head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <h:outputStylesheet name="css/default.css"/> <h:outputStylesheet name="css/cssLayout.css"/> <title> <h:outputText value="Hello - " /> <ui:insert name="title">Browser Title</ui:insert> </title> </h:head> <h:body> <h:panelGroup layout="block" id="top" > <ui:insert name="top">Top Default</ui:insert> </h:panelGroup> <h:panelGroup layout="block" id="messages"> <rich:messages id="messagePanel" ajaxRendered="true"> <!-- Message panel for all error and success messages --> </rich:messages> </h:panelGroup> <h:panelGroup layout="block" id="content"> <ui:insert name="content">Content Default</ui:insert> </h:panelGroup> </h:body> </html> 
added 1489 characters in body
Source Link
Chris
  • 712
  • 4
  • 16
  • 40
Loading
added 486 characters in body
Source Link
Chris
  • 712
  • 4
  • 16
  • 40
Loading
added 486 characters in body
Source Link
Chris
  • 712
  • 4
  • 16
  • 40
Loading
Source Link
Chris
  • 712
  • 4
  • 16
  • 40
Loading