[
https://issues.jboss.org/browse/RF-10153?page=com.atlassian.jira.plugin.s...
]
Ara Minosian updated RF-10153:
------------------------------
Description:
I try use RichFaces in my own project and panelMenu is looking as most convenient way to
make admin panel for me. Now I can use panel menu just for switching between pages by
links. But I've got some styling issues. I am new in RichFaces, so I decided to do my
project on the basis of RichFaces showcase.
Please, see the code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<ui:composition template="/templates/main-user.xhtml">
<ui:define name="body">
<rich:panel>
<f:facet name="header">
<h:outputText value="Административная панель"/>
</f:facet>
<h:panelGrid columns="2">
<rich:panelMenu style="width:200px" mode="ajax"
groupMode="ajax"
iconExpandedGroup="disc"
iconCollapsedGroup="disc"
iconExpandedTopGroup="chevronUp"
iconGroupTopPosition="right"
iconCollapsedTopGroup="chevronDown"
<rich:panelMenuGroup label="Базы
данных">
<rich:panelMenuItem name="Item_1_1">
<h:link outcome="admin" value="Загрузка
абзацев с сервера"/>
</rich:panelMenuItem>
<rich:panelMenuItem name="Item_1_2">
<h:link outcome="admin" value="Тесты
абзацев"/>
</rich:panelMenuItem>
<rich:panelMenuItem name="Item_1_3">
<h:link outcome="admin" value="Создать
главы"/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
<rich:panelMenuGroup label="Подсказки">
<rich:panelMenuItem name="Item_2_1">
<h:link outcome="admin" value="Загрузка
подсказок с сервера"/>
</rich:panelMenuItem>
<rich:panelMenuItem name="Item_2_2">
<h:link outcome="admin" value="Тесты
подсказок"/>
</rich:panelMenuItem>
<rich:panelMenuItem name="Item_2_3">
<h:link outcome="admin" value="Создать
подсказки"/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
<rich:panelMenuGroup label="Документы">
<rich:panelMenuItem name="Item_3_1">
<h:link outcome="admin" value="Загрузка
документов с сервера"/>
</rich:panelMenuItem>
<rich:panelMenuItem name="Item_3_2">
<h:link outcome="admin" value="Тесты
документов"/>
</rich:panelMenuItem>
<rich:panelMenuItem name="Item_3_3">
<h:link outcome="admin" value="Создать
документы"/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
</rich:panelMenu>
<rich:panel>
<f:facet name="header">
<h:outputText value="Загрузка глав с сервера"/>
</f:facet>
Здесь сегодня будет загрузка глав с локального сервера...
</rich:panel>
</h:panelGrid>
</rich:panel>
</ui:define>
</ui:composition>
</html>
As you can see all panelMenuItem are similar, but picture that I have in browser are in
attachment.
was:
I try use RichFaces in my own project and panelMenu is looking as most convenient way to
make admin panel for me. Now I can use panel menu just for switching between pages by
links. But I've got some styling issues. I am new in RichFaces, so I decided to do my
project on the basis of RichFaces showcase.
Please, see the code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
<ui:composition template="/templates/main-user.xhtml">
<ui:define name="body">
<rich:panel>
<f:facet name="header">
<h:outputText value="Административная панель"/>
</f:facet>
<h:panelGrid columns="2">
<rich:panelMenu style="width:200px" mode="ajax"
groupMode="ajax"
iconExpandedGroup="disc"
iconCollapsedGroup="disc"
iconExpandedTopGroup="chevronUp"
iconGroupTopPosition="right"
iconCollapsedTopGroup="chevronDown"
<rich:panelMenuGroup label="Базы
данных">
<rich:panelMenuItem name="Item_1_1">
<h:link outcome="admin" value="Загрузка
абзацев с сервера"/>
</rich:panelMenuItem>
<rich:panelMenuItem name="Item_1_2">
<h:link outcome="admin" value="Тесты
абзацев"/>
</rich:panelMenuItem>
<rich:panelMenuItem name="Item_1_3">
<h:link outcome="admin" value="Создать
главы"/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
<rich:panelMenuGroup label="Подсказки">
<rich:panelMenuItem name="Item_2_1">
<h:link outcome="admin" value="Загрузка
подсказок с сервера"/>
</rich:panelMenuItem>
<rich:panelMenuItem name="Item_2_2">
<h:link outcome="admin" value="Тесты
подсказок"/>
</rich:panelMenuItem>
<rich:panelMenuItem name="Item_2_3">
<h:link outcome="admin" value="Создать
подсказки"/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
<rich:panelMenuGroup label="Документы">
<rich:panelMenuItem name="Item_3_1">
<h:link outcome="admin" value="Загрузка
документов с сервера"/>
</rich:panelMenuItem>
<rich:panelMenuItem name="Item_3_2">
<h:link outcome="admin" value="Тесты
документов"/>
</rich:panelMenuItem>
<rich:panelMenuItem name="Item_3_3">
<h:link outcome="admin" value="Создать
документы"/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
</rich:panelMenu>
<rich:panel>
<f:facet name="header">
<h:outputText value="Загрузка глав с сервера"/>
</f:facet>
Здесь сегодня будет загрузка глав с локального сервера...
</rich:panel>
</h:panelGrid>
</rich:panel>
</ui:define>
</ui:composition>
</html>
As you can see all panelMenuItem are similar, but picture that I have in browser are in
inclusion.
> rich:panelMenu Strange indention than using as links container
> --------------------------------------------------------------
>
> Key: RF-10153
> URL:
https://issues.jboss.org/browse/RF-10153
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-panels-layout-themes
> Affects Versions: 4.0.0.Milestone4
> Environment: Windows 7-64, GAE 1.4.0, local mode, Java(TM) SE Runtime
Environment (build 1.6.0_22-b04),
> Reporter: Ara Minosian
> Labels: richfaces
> Attachments: screenshot-1.jpg
>
>
> I try use RichFaces in my own project and panelMenu is looking as most convenient way
to make admin panel for me. Now I can use panel menu just for switching between pages by
links. But I've got some styling issues. I am new in RichFaces, so I decided to do my
project on the basis of RichFaces showcase.
> Please, see the code
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html
xmlns="http://www.w3.org/1999/xhtml"
>
xmlns:h="http://java.sun.com/jsf/html"
>
xmlns:f="http://java.sun.com/jsf/core"
>
xmlns:ui="http://java.sun.com/jsf/facelets"
>
xmlns:rich="http://richfaces.org/rich"
>
xmlns:a4j="http://richfaces.org/a4j">
> <ui:composition template="/templates/main-user.xhtml">
> <ui:define name="body">
> <rich:panel>
> <f:facet name="header">
> <h:outputText value="Административная панель"/>
> </f:facet>
> <h:panelGrid columns="2">
> <rich:panelMenu style="width:200px"
mode="ajax" groupMode="ajax"
> iconExpandedGroup="disc"
iconCollapsedGroup="disc"
> iconExpandedTopGroup="chevronUp"
iconGroupTopPosition="right"
> iconCollapsedTopGroup="chevronDown"
>
> <rich:panelMenuGroup
label="Базы данных">
> <rich:panelMenuItem name="Item_1_1">
> <h:link outcome="admin" value="Загрузка
абзацев с сервера"/>
> </rich:panelMenuItem>
> <rich:panelMenuItem name="Item_1_2">
> <h:link outcome="admin" value="Тесты
абзацев"/>
> </rich:panelMenuItem>
> <rich:panelMenuItem name="Item_1_3">
> <h:link outcome="admin" value="Создать
главы"/>
> </rich:panelMenuItem>
> </rich:panelMenuGroup>
> <rich:panelMenuGroup label="Подсказки">
> <rich:panelMenuItem name="Item_2_1">
> <h:link outcome="admin" value="Загрузка
подсказок с сервера"/>
> </rich:panelMenuItem>
> <rich:panelMenuItem name="Item_2_2">
> <h:link outcome="admin" value="Тесты
подсказок"/>
> </rich:panelMenuItem>
> <rich:panelMenuItem name="Item_2_3">
> <h:link outcome="admin" value="Создать
подсказки"/>
> </rich:panelMenuItem>
> </rich:panelMenuGroup>
> <rich:panelMenuGroup label="Документы">
> <rich:panelMenuItem name="Item_3_1">
> <h:link outcome="admin" value="Загрузка
документов с сервера"/>
> </rich:panelMenuItem>
> <rich:panelMenuItem name="Item_3_2">
> <h:link outcome="admin" value="Тесты
документов"/>
> </rich:panelMenuItem>
> <rich:panelMenuItem name="Item_3_3">
> <h:link outcome="admin" value="Создать
документы"/>
> </rich:panelMenuItem>
> </rich:panelMenuGroup>
> </rich:panelMenu>
> <rich:panel>
> <f:facet name="header">
> <h:outputText value="Загрузка глав с
сервера"/>
> </f:facet>
> Здесь сегодня будет загрузка глав с локального сервера...
> </rich:panel>
> </h:panelGrid>
> </rich:panel>
> </ui:define>
> </ui:composition>
> </html>
> As you can see all panelMenuItem are similar, but picture that I have in browser are
in attachment.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira