Facelets jspx <jsp:root> config?

Hey,

I've seen a bit of info on this matter but it seems I can't really make out what I'd do.  I've read some actions, like changing file associations, but it doesn't really seem to work.  On the other hand some other bloke told me that that approach is not recommendend.

But I'm having some doubts on validity of the architecture of the projects I'm supposed to work on, but I have little choice.  Anyway, here's a sample of what I'm trying to get to work.

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> xmlns:jsp="http://java.sun.com/JSP/Page"
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:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich" version="2.0" >

<jsp:root

<ui:composition template="../template.jspx">  
  <ui:param name="title" value="#{msgs['page.title']}"></ui:param>
  <ui:define name="contentwindow">
   Add your page content here
  </ui:define>
</ui:composition>

</jsp:root>

filename is userDetail.jspx

the jsp root tag is marked red as well as the facelets URI.  The others seem to work fine.

Any suggestions, by all means, do

Thanks!

1 comment
Comment actions Permalink

This file is not valid against XML specification.  The doctype declaration
states that root tag should be  сообщил(а) в новостях
следующее:25863610.730681296645977846.JavaMail.devnet@domU-12-31-39-18-36-57.compute-1.internal...

Hey,

>

I've seen a bit of info on this matter but it seems I can't really make
out what I'd do.  I've read some actions, like changing file associations,
but it doesn't really seem to work.  On the other hand some other bloke
told me that that approach is not recommendend.

>

But I'm having some doubts on validity of the architecture of the projects
I'm supposed to work on, but I have little choice.  Anyway, here's a
sample of what I'm trying to get to work.

>

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;><jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page"
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:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich" version="2.0" >
<jsp:root
<ui:composition template="../template.jspx">
  <ui:param name="title" value="#{msgs['page.title']}"></ui:param>
  <ui:define name="contentwindow">
   Add your page content here
  </ui:define>
</ui:composition>
</jsp:root>
filename is userDetail.jspx

>

the jsp root tag is marked red as well as the facelets URI.  The others
seem to work fine.

>

Any suggestions, by all means, do

>

Thanks!

>

---
Original message URL: http://devnet.jetbrains.net/message/5285235#5285235


0

Please sign in to leave a comment.