[JBoss JIRA] Created: (RF-7457) rich:layout renderes a line-seperator this shows a empty white line in IE
by Andreas Höhmann (JIRA)
rich:layout renderes a line-seperator this shows a empty white line in IE
-------------------------------------------------------------------------
Key: RF-7457
URL: https://jira.jboss.org/jira/browse/RF-7457
Project: RichFaces
Issue Type: Bug
Components: component
Affects Versions: 3.3.2.GA
Environment: 3.3.2-SNAPSHOT
Reporter: Andreas Höhmann
Priority: Minor
The org.richfaces.renderkit.html.LayoutRenderer contains at line 71 the following code
// line separator.
writer.startElement(HTML.DIV_ELEM, layout);
writer.writeAttribute(HTML.style_ATTRIBUTE, "display: block; height: 0; clear: both; visibility: hidden;", null);
writer.writeText(".", null);
writer.endElement(HTML.DIV_ELEM);
i define a layout like this:
<rich:layout id="treeLayout">
<rich:layoutPanel id="treeHeader" position="top" width="100%" style="background-color:green;">
<h:panelGrid cellpadding="0" cellspacing="5" width="100%" headerClass="secondaryNavigation">
<f:facet name="header">
<h:outputText value="#{bundle['components.tree.header']}" style="padding-left: 5px;" />
</f:facet>
</h:panelGrid>
</rich:layoutPanel>
<rich:layoutPanel id="treeComponent" position="bottom" width="100%" style="background-color:red;">
<div style="margin: 0px 0px 0px 5px;">
<a4j:outputPanel id="componenTreeContainer" layout="block"
styleClass="treeContainer" style="overflow: auto; width: 100%;">
<a4j:form>
<rich:tree id="softwareCategoryTree" switchType="ajax" .../>
</rich:tree>
</a4j:form>
</a4j:outputPanel>
</div>
</rich:layoutPanel>
</rich:layout>
this will produce html like this:
<div style="float: left; width: 29.11%;" width="30%">
<div id="treeLayout" style="">
<div id="treeHeader" style="background-color: green;" width="100%">
<table width="100%" cellspacing="5" cellpadding="0">
.... header here ....
</table>
</div>
<div style="display: block; height: 0pt; clear: both; visibility: hidden;">.</div>
<div id="treeComponent" style="background-color: red;" width="100%">
<div style="margin: 0px 0px 0px 5px;">
<div id="componenTreeContainer" class="treeContainer" style="overflow: auto; width: 100%;">
... tree here ...
</div>
</div>
</div>
</div>
</div>
The middle div with "." content is shown in IE6 as empty white line ... FF looks good.
I guess the "." will break the IE layout ?!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months
[JBoss JIRA] Created: (RF-7581) panelMenu: selected state not always applied correctly on ajax expansion
by Ilya Shaikovsky (JIRA)
panelMenu: selected state not always applied correctly on ajax expansion
------------------------------------------------------------------------
Key: RF-7581
URL: https://jira.jboss.org/jira/browse/RF-7581
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Reporter: Ilya Shaikovsky
Assignee: Nick Belaevski
1) page code to open attached.
2) click first menu Item
3) click menuGroup1
result - First MenuItem no more highlighted on hover.
Happens only if 1 item clicked updates menu (in this case full page render) and the second clicked - not.
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<style>
.rich-pmenu {
}
/* Realign menu items */
.rich-pmenu td {
padding-left: 0.25em;
vertical-align: middle;
height: 1.8em;
}
/* Menu Top Group */
.rich-pmenu-top-group {
background-color: #fffcbe;
background-color: inherit;
background-image: none;
}
td.rich-pmenu-top-group-self-icon {
padding-left: 0.2em;
}
td.rich-pmenu-top-group-self-label {
padding-left: 0.25em;
}
/* Surrounding DIV of top menu group */
.rich-pmenu-top-group-div {
border: 0;
margin: 0;
}
/* Menu Group (nested groups) */
.rich-pmenu-group {
font-weight: normal;
border-top: 1px solid #fff;
}
/* Menu Item */
.rich-pmenu-item {
background-color: #fffcbe;
border-top: 1px solid #fff;
}
/* Selected item in menu (works for top group, group, item) */
.rich-pmenu-selected-element,.rich-pmenu-hovered-element {
background-color: #f9f300;
font-style: normal;
font-weight: normal;
}
.rich-pmenu-selected-element table tr:hover {
background-color: blue;
}
</style>
<rich:panelMenu
iconCollapsedGroup="resources/styles/rips/images/menuclosedS.gif"
iconExpandedGroup="resources/styles/rips/images/menuopenS.gif"
iconTopItem="resources/styles/rips/images/menuclosedS.gif"
iconItem="resources/styles/rips/images/menuclosedS.gif"
expandMode="ajax" mode="server" id="pmenu"
selectedChild="#{navigationContext.selectedItem}">
<rich:panelMenuItem label="MenuItem 1" id="item1"
actionListener="#{navigationContext.doListenSelectItem}"
action="#{navigationPoints.getIndex}" />
<rich:panelMenuGroup label="MenuGroup 1" id="group1" reRender="pmenu"
value="#{navigationContext.groupState['group1']}">
<rich:panelMenuGroup label="MenuGroup 2" id="group2" reRender="pmenu"
value="#{navigationContext.groupState['group2']}">
<rich:panelMenuItem label="MenuItem 211" id="item211"
actionListener="#{navigationContext.doListenSelectItem}"
action="#{navigationPoints.getClientSearchRedirect}" />
<rich:panelMenuItem label="MenuItem 212" id="item212"
actionListener="#{navigationContext.doListenSelectItem}"
action="#{navigationPoints.getClientSearchRedirect}" />
</rich:panelMenuGroup>
<rich:panelMenuItem label="MenuItem 22" id="item22"
actionListener="#{navigationContext.doListenSelectItem}"
action="#{navigationPoints.getClientSearchRedirect}" />
</rich:panelMenuGroup>
<rich:panelMenuItem label="MenuItem 3" id="item3"
actionListener="#{navigationContext.doListenSelectItem}"
action="#{navigationPoints.getClientSearchRedirect}" />
</rich:panelMenu>
</ui:composition>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months