开发者

h:panelgroup seems to inherit the `dir` tag but doesn't support it. How Do I define `dir` per panelGroup?

开发者 https://www.devze.com 2023-02-19 20:46 出处:网络
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.

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".

0

精彩评论

暂无评论...
验证码 换一张
取 消