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
해결책
Yes rendered
is the only difference.
다른 팁
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.
제휴하지 않습니다 StackOverflow