Skip to main content

Problem mixing JSF tablibs with JSP taglibs

1 reply [Last post]
moritzthielcke
Offline
Joined: 2009-06-19

Hello,

i had some problems mixing older taglibs with the brand new jsf 2.0 taglibs.
I have to say that im new to JSF and starting directly with the 2.0 may wasnt the best idea.
Anyway may somebody can help me out, clearing some confusions.

I had problems mixing the "http://java.sun.com/jsf/facelets" with the "http://java.sun.com/jsp/jstl/core" library.
Im using Glassfish 2.1 (newest) and the nightly build from the mojarra 2.0 implementation.

[Example]

${empty entety.bundle}

returns: true true false.
but should return only: true true (cause of the if-statement)
it works totaly fine , using only the jsp lib:

${empty entety.bundle}"

So my question is simple:
- is this normal that u cant mix it like that?
or bug?
or feature?:)
or simple a wrong thought on my side?

Thanks in advance,
Moritz Thielcke

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ryan Lubke

On 7/1/09 2:00 AM, webtier@javadesktop.org wrote:
> Hello,
>
> i had some problems mixing older taglibs with the brand new jsf 2.0 taglibs.
> I have to say that im new to JSF and starting directly with the 2.0 may wasnt the best idea.
> Anyway may somebody can help me out, clearing some confusions.
>
> I had problems mixing the "http://java.sun.com/jsf/facelets" with the "http://java.sun.com/jsp/jstl/core" library.
> Im using Glassfish 2.1 (newest) and the nightly build from the mojarra 2.0 implementation.
>
> [Example]
>
>
>
> ${empty entety.bundle}
>

>

>
The problem is a difference between actions that only execute when the
tree is created
(like c:forEach or c:if) and those tags that use UIComponents and thus
operate during the
standard JSF lifecycle (like ui:repeat).

There is a good write-up [1] by Roger Keayes that describes the differences.

[1] http://www.ilikespam.com/blog/c:foreach-vs-ui:repeat-in-facelets
> returns: true true false.
> but should return only: true true (cause of the if-statement)
> it works totaly fine , using only the jsp lib:
>
>
>
> ${empty entety.bundle}"
>

>

>
> So my question is simple:
> - is this normal that u cant mix it like that?
> or bug?
> or feature?:)
> or simple a wrong thought on my side?
>
>
> Thanks in advance,
> Moritz Thielcke
> [Message sent by forum member 'moritzthielcke' (moritzthielcke)]
>
> http://forums.java.net/jive/thread.jspa?messageID=353722
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net