You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Des qsdqsd <de...@yahoo.fr> on 2007/03/19 16:55:41 UTC

Re : f:verbatim question

Yes, I tried that ... the exact same thing happens ... for some reason (as I said, I suspect the building of jsf components) this takes forever to be rendered what the htmlcontent of the bean is large ...

----- Message d'origine ----
De : Volker Weber <v....@inexso.de>
À : MyFaces Discussion <us...@myfaces.apache.org>
Envoyé le : Lundi, 19 Mars 2007, 16h47mn 01s
Objet : Re: f:verbatim question

Hi,

have you tryed a simple

<h:outputText escape="false" value="#{mybean.htmlcontent}"/>

instead of the f:verbatim construct?

Regards,
  Volker

2007/3/19, Des qsdqsd <de...@yahoo.fr>:
>
> Hi,
>
>     I've a question with the tag f:verbatim in myfaces (using it within
> tomcat/jboss4):
>
>     I've a jsf page that gets part of its html content from legacy html
> pages :
>
> *** mypage ***
> <div>
>   <f:verbatim>
>        #{mybean.htmlcontent}
>   </f:verbatim>
> </div>
> *** /mypage ***
>
>     The problem is : if the mybean.htmlcontent is large (lots of spans and
> divs), tomcat's uses all the cpu during 50sec before serving the page.
>     If I comment out the content retrieved from the bean the content is in
> the page (inside html comments) and it does not eat all the cpu ...
> *** mypage ***
>  <div>
>    <f:verbatim>
>        <!--
>         #{mybean.htmlcontent}
>        -->
>    </f:verbatim>
>  </div>
>  *** /mypage ***
>
>    Any hints about what I'm doing wrong or an alternate solution ? I think
> that the building of the corresponding jsf components tree is responsible
> for the problem ... is there a way not to build those components ? Just to
> include the html ?
>
>   Thanks for any help,
>
> --
> Desnos
>
>  ________________________________
>  Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
> ! Profitez des connaissances, des opinions et des expériences des
> internautes sur Yahoo! Questions/Réponses.







	

	
		
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Re: Re : f:verbatim question

Posted by Mike Kienenberger <mk...@gmail.com>.
As you noted, the problem is inside the logic for mybean.getHtmlcontent().
That's where you need to optimize your performance.
You haven't provided any information on how mybean.getHtmlcontent()
works, so there's little advice we can give you.


On 3/19/07, Des qsdqsd <de...@yahoo.fr> wrote:
>
> Yes, I tried that ... the exact same thing happens ... for some reason (as I
> said, I suspect the building of jsf components) this takes forever to be
> rendered what the htmlcontent of the bean is large ...
>
> ----- Message d'origine ----
> De : Volker Weber <v....@inexso.de>
> À : MyFaces Discussion <us...@myfaces.apache.org>
> Envoyé le : Lundi, 19 Mars 2007, 16h47mn 01s
> Objet : Re: f:verbatim question
>
>
> Hi,
>
> have you tryed a simple
>
> <h:outputText escape="false" value="#{mybean.htmlcontent}"/>
>
> instead of the f:verbatim construct?
>
> Regards,
>   Volker
>
> 2007/3/19, Des qsdqsd <de...@yahoo.fr>:
> >
> > Hi,
> >
> >     I've a question with the tag f:verbatim in myfaces (using it within
> > tomcat/jboss4):
> >
> >     I've a jsf page that gets part of its html content from legacy html
> > pages :
> >
> > *** mypage ***
> > <div>
> >   <f:verbatim>
> >        #{mybean.htmlcontent}
> >   </f:verbatim>
> > </div>
> > *** /mypage ***
> >
> >     The problem is : if the mybean.htmlcontent is large (lots of spans and
> > divs), tomcat's uses all the cpu during 50sec before serving the page.
> >     If I comment out the content retrieved from the bean the content is in
> > the page (inside html comments) and it does not eat all the cpu ...
> > *** mypage ***
> >  <div>
> >    <f:verbatim>
> >        <!--
> >         #{mybean.htmlcontent}
> >        -->
> >    </f:verbatim>
> >  </div>
> >  *** /mypage ***
> >
> >    Any hints about what I'm doing wrong or an alternate solution ? I think
> > that the building of the corresponding jsf components tree is responsible
> > for the problem ... is there a way not to build those components ? Just to
> > include the html ?
> >
> >   Thanks for any help,
> >
> > --
> > Desnos
> >
> >  ________________________________
> >  Découvrez une nouvelle façon d'obtenir des réponses à toutes vos
> questions
> > ! Profitez des connaissances, des opinions et des expériences des
> > internautes sur Yahoo! Questions/Réponses.
>
>
>  ________________________________
>  Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
> ! Profitez des connaissances, des opinions et des expériences des
> internautes sur Yahoo! Questions/Réponses.