In a similar fashion to my previous blog, the next release of Metawidget (v1.10) will add support for the PrimeFaces TabView component.I have updated the AddressBook Example included in the distribution to demonstrate swapping in PrimeFaces support. So now you can add...
<metawidget>
...
<layout>
<tabViewLayoutDecorator xmlns="java:org.metawidget.faces.component.html.layout.primefaces"
config="org.metawidget.layout.decorator.LayoutDecoratorConfig">
<layout>
<simpleLayout xmlns="java:org.metawidget.faces.component.layout"/>
</layout>
</tabViewLayoutDecorator>
</layout>
</metawidget>
...
<layout>
<tabViewLayoutDecorator xmlns="java:org.metawidget.faces.component.html.layout.primefaces"
config="org.metawidget.layout.decorator.LayoutDecoratorConfig">
<layout>
<simpleLayout xmlns="java:org.metawidget.faces.component.layout"/>
</layout>
</tabViewLayoutDecorator>
</layout>
</metawidget>
...and you auto-magically get (note the PrimeFaces TabView and the PrimeFaces Slider)...

Early access code now available in SVN.

2 comments:
Hello, it looks very interesting. but I can not be displayed with primefaces components
There is an integration test /integration-tests/faces/myfaces2-primefaces that tests this. It seems to work okay.
Can you please describe in detail
what error/problem you're seeing?
Post a Comment