I have a page that's direction oriented and so I usually define the dir
tag for an entire form.
I have a few h:panelgroup
objects who are supposed to group some components in a row in a table.
Problem is, some of these h:panelGroup
components are supposed to remain in ltr direction no matter what they inherit but the h:panelGroup
component doesn't support the dir
tag.
I can use a h:panelGrid
with more columns than components to resolve this, but it seems 开发者_JAVA百科odd that there is no cleaner solution...
Thanks!
Add styleClass attribute, and use the css direction property.
.ltr {
direction: ltr;
}
.rtl {
direction: rtl;
}
So you can use styleClass="rtl"
, and styleClass="ltr"
.
精彩评论