users@glassfish.java.net

Re: JSF Facelets Whitespace trimming

From: Florent Blondeau <fblondeau_at_pingwy.com>
Date: Fri, 22 Feb 2008 15:16:19 +0100

Hi,

there's at this moment the same discussion on the facelets' mailing list
(which would be a better location to post that kind of message, I think)
see here <http://www.nabble.com/space-is-triped--to15518124.html#a15518124>

Hope that helps

Florent

Pingwy
27, rue des arènes
49100 Angers



glassfish_at_javadesktop.org a écrit :
> Hi all,
>
> I'm new to JSF/Facelets and I'm having trouble with my application stripping the whitespaces from the code causing unexpected formatting. I understand that because the files are parsed as XML and therefore the whitespace is trimmed, but is there a workaround?
>
> i.e.
> The .xhtml file would read:
> [code]Welcome <h:outputText rendered="#{userSession.user != null}">#{userSession.user.person.nickname}</h:outputText>[/code]
> Would be rendered as:
> [code]Welcomefoo[/code]
>
> This is very frustrating so any help you could give would be a great help!
>
> Thanks,
>
> Dan
> [Message sent by forum member 'dansiviter' (dansiviter)]
>
> http://forums.java.net/jive/thread.jspa?messageID=260419
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>