stay tuned for the happiness!

in JSF1.2, there will be no need for using this work around anymore ;))

regards,

Martin

On 7/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Thanks for the responses.
> 
> I got around it in the end by using this library:
> http://jsftutorials.net/htmLib/
> 
> I would have liked to use plain html mixed with the jsf but it seems
> that there is simply no practical way to do this in a subview using
> the jsp xml syntax.
> 
> Gianni
> 
> 
> On 06/lug/05, at 21:49, Martin Marinschek wrote:
> 
> > Yes, that is the reason...
> >
> > of course, in XML the syntax needs to be followed correctly, and you
> > cannot have opening tags without an according closing tag.
> >
> > Sylvain proposed to have an html tag which would render out the
> > provided html code out - is this already included? If yes, you could
> > use this approach...
> >
> > Additionally, my last suggestion should also work.
> >
> > regards,
> >
> > Martin
> >
> > On 7/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >> Yep standard Tomcat 5.5.9
> >>
> >> Could the fact I'm using xml syntax for the pages have something to
> >> do with it?
> >> Here are the relevant files:
> >>
> >> ------- topLayout.jsp --------
> >>
> >> <jsp:root version="2.0"
> >>    xmlns:jsp="http://java.sun.com/JSP/Page";
> >>    xmlns:f="http://java.sun.com/jsf/core";
> >>    xmlns:h="http://java.sun.com/jsf/html";
> >>    xmlns:x="http://myfaces.apache.org/extensions";
> >>    xmlns:tiles="http://jakarta.apache.org/struts/tags-tiles";>
> >>    <f:view>
> >>
> >>      <jsp:output doctype-root-element="html"
> >>         doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
> >>         doctype-system="http://www.w3c.org/TR/xhtml1/DTD/xhtml1-
> >> transitional.dtd"/>
> >>      <jsp:directive.page contentType="text/html"
> >> pageEncoding="UTF-8"/>
> >>      <html xmlns="http://www.w3.org/1999/xhtml";>
> >> ---cut---
> >>        <x:div forceId="true" id="page-footer">
> >>          <f:subview id="footer">
> >>            <tiles:insert definition="page.footer" flush="false"/>
> >>          </f:subview>
> >>        </x:div>
> >> ---cut---
> >>        </body>
> >>      </html>
> >>    </f:view>
> >> </jsp:root>
> >>
> >> ------- END topLayout.jsp --------
> >>
> >>
> >> ------- footer.jsp --------
> >>
> >> <jsp:root version="2.0"
> >>    xmlns:jsp="http://java.sun.com/JSP/Page";
> >>    xmlns:f="http://java.sun.com/jsf/core";
> >>    xmlns:h="http://java.sun.com/jsf/html";
> >>    xmlns:x="http://myfaces.apache.org/extensions";
> >>
> >>>
> >>>
> >>
> >> <f:verbatim>
> >> <h4>
> >> </f:verbatim>
> >> <h:outputText value="My heading"/>
> >> <f:verbatim>
> >> </h4>
> >> </f:verbatim>
> >>
> >> </jsp:root>
> >>
> >> ------- END footer.jsp --------
> >>
> >>
> >> Thanks
> >> Gianni
> >>
> >>
> >>
> >> On 06/lug/05, at 21:33, Martin Marinschek wrote:
> >>
> >>
> >>> Sorry, I looked only at the first part...
> >>>
> >>> my fault..
> >>>
> >>> strange, I am always mixing content like that - never had a problem
> >>> so far.
> >>>
> >>> are you using a standard tomcat server?
> >>>
> >>> regards,
> >>>
> >>> Martin
> >>>
> >>> On 7/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>> As explained in my original post I've already tried that and I get:
> >>>>
> >>>> org.apache.jasper.JasperException: /WEB-INF/templates/footer.jsp
> >>>> (10,3)
> >>>> The element type "h4" must be terminated by the matching end-tag
> >>>> "</
> >>>> h4>".
> >>>>
> >>>> In fact this is what I assumed should work as I have seen other
> >>>> examples using this format.
> >>>>
> >>>> Gianni
> >>>>
> >>>>
> >>>> On 06/lug/05, at 21:14, Martin Marinschek wrote:
> >>>>
> >>>>
> >>>>
> >>>>> do that:
> >>>>>
> >>>>> <f:verbatim>
> >>>>> <h4>
> >>>>> </f:verbatim>
> >>>>> <h:outputText value="My heading"/>
> >>>>> <f:verbatim>
> >>>>> </h4>
> >>>>> </f:verbatim>
> >>>>>
> >>>>> and you should be all set!
> >>>>>
> >>>>> regards,
> >>>>>
> >>>>> Martin
> >>>>>
> >>>>> p.s.: variant: do what bruno told you, but do not use the <h4> in
> >>>>> the
> >>>>> attribute directly, but get the value from a backing bean with a
> >>>>> valuebinding.
> >>>>>
> >>>>>
> >>>>> On 7/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Sorry my response got truncated, the full error is :
> >>>>>>
> >>>>>> org.apache.jasper.JasperException: /WEB-INF/templates/footer.jsp
> >>>>>> (8,22) The value of attribute "value" associated with an element
> >>>>>> type
> >>>>>> "h:outputText" must not contain the '<' character.
> >>>>>>
> >>>>>> Gianni
> >>>>>>
> >>>>>>
> >>>>>> On 06/lug/05, at 19:35, [EMAIL PROTECTED] wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> I get an error:
> >>>>>>>
> >>>>>>> [ServletException in:/WEB-INF/templates/footer.jsp] /WEB-INF/
> >>>>>>> templates/footer.jsp(8,22)
> >>>>>>> The value of attribute "value" associated with an element type
> >>>>>>> "h:outputText" must not contain the '
> >>>>>>>
> >>>>>>>
> >>>>>>> On 06/lug/05, at 19:29, Bruno Aranda wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> And if you do this?
> >>>>>>>>
> >>>>>>>> <h:outputText value="<h4>My heading</h4>" escape="false"/>
> >>>>>>>>
> >>>>>>>> Regards,
> >>>>>>>>
> >>>>>>>> Bruno
> >>>>>>>>
> >>>>>>>> 2005/7/6, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> Hi
> >>>>>>>>> I'm trying to use a combination of html and jsf in a tiles
> >>>>>>>>> included
> >>>>>>>>> subview.
> >>>>>>>>> This isn't the actual code but serves to illustrate the
> >>>>>>>>> problem.
> >>>>>>>>>
> >>>>>>>>> If I do this:
> >>>>>>>>>
> >>>>>>>>> <f:verbatim>
> >>>>>>>>> <h4>
> >>>>>>>>> <h:outputText value="My heading"/>
> >>>>>>>>> </h4>
> >>>>>>>>> </f:verbatim>
> >>>>>>>>>
> >>>>>>>>> the jsf output appears before the html:
> >>>>>>>>>
> >>>>>>>>> My heading<h4></h4>
> >>>>>>>>>
> >>>>>>>>> However if I do this:
> >>>>>>>>>
> >>>>>>>>> <f:verbatim><h4></f:verbatim>
> >>>>>>>>> <h:outputText value="My heading"/>
> >>>>>>>>> <f:verbatim></h4></f:verbatim>
> >>>>>>>>>
> >>>>>>>>> I get a mismatched tag exception:
> >>>>>>>>>
> >>>>>>>>> [ServletException in:/WEB-INF/templates/footer.jsp] /WEB-INF/
> >>>>>>>>> templates/footer.jsp(9,19)
> >>>>>>>>> The element type "h4" must be terminated by the matching end-
> >>>>>>>>> tag "
> >>>>>>>>>
> >>>>>>>>> I appreciate some suggestions it's really driving me crazy, I
> >>>>>>>>> need to
> >>>>>>>>> mix html and jsf but can find no practical way of doing so.
> >>>>>>>>> Thanks
> >>>>>>>>> Gianni
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >
> 
>

Reply via email to