Victor Martinez
Victor Martinez

Reputation: 1112

Is there any difference between ui:fragment and s:fragment?

What's the difference between <ui:fragment> and <s:fragment> ? I use these two tag libraries interchangeably for conditional rendering (using the rendered attribute although I can't find any documentation that states "rendered" is a valid attribute for ui:fragment)

Thanks

Upvotes: 2

Views: 2090

Answers (2)

Greg Charles
Greg Charles

Reputation: 2000

Sorry to be late to the party. I agree with Shervin. The "rendered" attribute on ui:fragment isn't documented, but seems to work. I'm using JSF 1.2 on JBoss 4.2.3.

I think you should use the Seam tag if you're using Seam. I'm just working with plain JSF though, so I don't have a choice.

Upvotes: 1

Shervin Asgari
Shervin Asgari

Reputation: 24507

Yes rendered is the only difference.

Upvotes: 2

Related Questions