Thanks Adam. I have two follow up questions: - How does JSP 2.1/JSF 1.2 solve this issue? - What would be the pros and cons of choosing JSP 2.1/JSF 1.2 vs. Facelets?
Thanks. Naresh -----Original Message----- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Sunday, October 08, 2006 2:01 AM To: [email protected] Subject: Re: How to add HTML markup to a page? On 10/7/06, Naresh Bhatia <[EMAIL PROTECTED]> wrote: > > Just to be clear, what would be legal syntax in facelets? Something like > this? > > <h2> > <h:outputText value="#{messages['Measure.Home']}" /> > </h2> Yes. Also in JSP 2.1/JSF 1.2, I see that I am running into this problem only if this code is inside > the <tr:document> tag. If so, why is this tag so restrictive? It is > making the page very unreadable. Would be nice to have some context > behind this design. It's not at all specific to tr:document. It's specific to any JSF tag that controls rendering of its children. For example, h:panelGroup. Most Trinidad tags control child rendering (for PPR support, for one). -- Adam Thanks. > Naresh > > -----Original Message----- > From: Adam Winer [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 07, 2006 4:01 PM > To: [email protected] > Subject: Re: How to add HTML markup to a page? > > Facelets is well worth the effort! > > -- Adam > > > On 10/7/06, Naresh Bhatia <[EMAIL PROTECTED]> wrote: > > > > Hmmm... I was avoiding facelets just because it would be one more > thing > > to learn to get everything going :-). Anyway, if facelets can clean up > > the markup, it may be worth the effort! > > > > Thanks. > > Naresh > > > > -----Original Message----- > > From: Andrew Robinson [mailto:[EMAIL PROTECTED] > > Sent: Saturday, October 07, 2006 1:13 PM > > To: [email protected] > > Subject: Re: How to add HTML markup to a page? > > > > Use facelets. Verbatim is required if you use JSP > > > > On 10/7/06, Naresh Bhatia <[EMAIL PROTECTED]> wrote: > > > What is the preferred way of adding HTML markup to a page? So far, I > > > have found that only the following approach works (i.e. using > > > <f:verbatim>). Looks kind of verbose just to add <h2></h2>! > > > > > > > > > > > > <f:verbatim><h2></f:verbatim> > > > > > > <h:outputText value="#{messages['Measure.Home']}" /> > > > > > > <f:verbatim></h2></f:verbatim> > > > > > > > > > > > > Thanks. > > > > > > Naresh > > > > > > > > > > > >
