[JBoss JIRA] Created: (RF-3738) simpleTogglePanel ajax broken if filter is NONE -- body tag is missing
by Mike Hanafey (JIRA)
simpleTogglePanel ajax broken if filter is NONE -- body tag is missing
----------------------------------------------------------------------
Key: RF-3738
URL: http://jira.jboss.com/jira/browse/RF-3738
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: JDK 1.6, Facelets 1.14, JSF-RI 1.2_08
Reporter: Mike Hanafey
When:
<context-param>
<param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
<param-value>NONE</param-value>
</context-param>
the following trivial page generates an AJAX response that does not have a body element that encloses the actual body content (using 3.2.1.GA):
<?xml version="1.0" encoding="UTF-8"?>
<!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: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">
<body>
<a4j:log hotkey="M"/>
<h:form id="theForm">
<rich:simpleTogglePanel id="tog" switchType="ajax" opened="true" label="Toggle Label"
immediate="true" ajaxSingle="true">
<h:panelGroup rendered="true">
<a4j:commandButton id="addKeywordButton" value="Add" title="Add a new keyword" reRender="tog"/>
</h:panelGroup>
</rich:simpleTogglePanel>
</h:form>
</body>
</html>
With Firefox 2, the XML parsing still works, but with Firefox 3 there is an XML parsing error, so pages that actually are supposed to do something on the AJAX response appear to be dead. NOTE: In this trivial test case even Firefox 3 does not generate the parsing error, but in the real example this was derived from where the body content is more complex, then the parsing error happens. But even in the trivial test case, the <body> tag is missing.
I know the filter issue has come up many times before. It seems like a very good idea if the RichFaces developers would always run with the NONE setting so that these problems would be caught early.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 9 months
[JBoss JIRA] Created: (RF-3419) contextMenu doesn't appears after specified event
by Ilya Shaikovsky (JIRA)
contextMenu doesn't appears after specified event
-------------------------------------------------
Key: RF-3419
URL: http://jira.jboss.com/jira/browse/RF-3419
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Reporter: Ilya Shaikovsky
Assigned To: Nick Belaevski
If you using demosite page without modifications - works ok.
But after I've added some components to page:
<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>
.cent {
text-align: center;
}
.rich-menu-item {
text-align: left;
}
.rich-menu-group {
text-align: left;
}
</style>
<h:form>
<h:panelGrid columns="1" columnClasses="cent">
<h:panelGroup id="picture">
<h:graphicImage value="/richfaces/jQuery/images/pic1.jpg" id="pic"
style="border : 5px solid #E4EAEF" />
<rich:contextMenu event="oncontextmenu" attachTo="pic"
submitMode="none">
<rich:menuItem value="Zoom In" onclick="enlarge();" id="zin"></rich:menuItem>
<rich:menuItem value="Zoom Out" onclick="decrease();" id="zout"></rich:menuItem>
</rich:contextMenu>
</h:panelGroup>
</h:panelGrid>
<script type="text/javascript">
function enlarge(){
document.getElementById('pic').width=document.getElementById('pic').width*1.1;
document.getElementById('pic').height=document.getElementById('pic').height*1.1;
}
function decrease(){
document.getElementById('pic').width=document.getElementById('pic').width*0.9;
document.getElementById('pic').height=document.getElementById('pic').height*0.9;
}
</script>
<rich:panel id="panel">
<h:outputText value="panel" />
</rich:panel>
<rich:contextMenu attached="true" attachTo="panel" event="onclick">
<rich:menuItem value="Item 1" />
</rich:contextMenu>
</h:form>
</ui:composition>
second menu appears ok. But the first menu for pic appears only after double right click and doesn't appears after single right click anymore.
If you'll remove last panel and menu for this panel - first menu will works ok again.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 9 months
[JBoss JIRA] Created: (RF-3484) DropDownMenu rendered bad inside a Tab panel with 3.2.0.SR1 (works with 3.2.0.GA and lower)
by Adrian Boici (JIRA)
DropDownMenu rendered bad inside a Tab panel with 3.2.0.SR1 (works with 3.2.0.GA and lower)
---------------------------------------------------------------------------------------------
Key: RF-3484
URL: http://jira.jboss.com/jira/browse/RF-3484
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0.SR1
Environment: Windows XP, Internet Explorer 7
Reporter: Adrian Boici
I have one tabPanel with rwo Tabs (TAB1 and TAB2). TAB1 has defined a dropDownMenu. When first time click on dropDownMenu, the things are ok. Then click on TAB2, then again on TAB1. Now click dropDownMenu and move over its content. It is bad rendered. It is working with version 3.2.0GA and lower but not with 3.2.0.SP1. See example:
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
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"
xmlns:chart="http://sourceforge.net/projects/jsf-comp"
template="/templates/main.xhtml">
<ui:define name="title">Interface Explorer</ui:define>
<ui:define name="body">
<h:form>
<rich:tabPanel switchType="ajax" >
<rich:tab>
<f:facet name="label">
<h:panelGrid columns="2">
<h:graphicImage value="/images/isactivity.gif"/>
<h:outputText value="TAB1" />
</h:panelGrid>
</f:facet>
<h:panelGrid>
<rich:dropDownMenu>
<f:facet name="label">
<h:graphicImage value="/images/menu1.gif"/>
</f:facet>
<rich:menuGroup value="Property On Left">
<rich:menuItem submitMode="ajax" value="InOctets" >
<f:facet name="icon">
<h:graphicImage value="/images/explorer.gif"/>
</f:facet>
</rich:menuItem>
<rich:menuItem submitMode="ajax" value="InDiscards" >
<f:facet name="icon">
<h:graphicImage value="/images/explorer.gif"/>
</f:facet>
</rich:menuItem>
</rich:menuGroup>
<rich:menuGroup value="Property On Right">
<rich:menuItem submitMode="ajax" value="InOctets" >
<f:facet name="icon">
<h:graphicImage value="/images/explorer.gif"/>
</f:facet>
</rich:menuItem>
<rich:menuItem submitMode="ajax" value="InDiscards">
<f:facet name="icon">
<h:graphicImage value="/images/explorer.gif"/>
</f:facet>
</rich:menuItem>
</rich:menuGroup>
<rich:menuItem submitMode="ajax" value="800x600 Chart" ajaxSingle="true"/>
</rich:dropDownMenu>
</h:panelGrid>
</rich:tab>
<rich:tab>
<f:facet name="label">
<h:panelGrid columns="2">
<h:graphicImage value="/images/device16t3.gif"/>
<h:outputText value="TAB2" />
</h:panelGrid>
</f:facet>
</rich:tab>
</rich:tabPanel>
</h:form>
</ui:define>
</ui:composition>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 9 months
[JBoss JIRA] Created: (RF-3535) Add messages to all scripts/styles unit tests
by Nick Belaevski (JIRA)
Add messages to all scripts/styles unit tests
---------------------------------------------
Key: RF-3535
URL: http://jira.jboss.com/jira/browse/RF-3535
Project: RichFaces
Issue Type: Sub-task
Reporter: Nick Belaevski
Add messages with information about resource being processed to all applicable asserts:
public void testRenderScript() throws Exception {
HtmlPage view = renderView();
assertNotNull(view);
List<HtmlScript> scripts = view.getDocumentHtmlElement().getHtmlElementsByTagName(HTML.SCRIPT_ELEM);
int foundCount = 0;
for (Iterator<HtmlScript> it = scripts.iterator(); it.hasNext();) {
HtmlScript item = it.next();
String srcAttr = item.getSrcAttribute();
if (StringUtils.isNotBlank(srcAttr)) {
boolean found = false;
for (Iterator<String> srcIt = javaScripts.iterator(); srcIt.hasNext();) {
String src = (String) srcIt.next();
found = srcAttr.contains(src);
if (found) {
foundCount++;
String uri = "http:" + srcAttr;
Page page = webClient.getPage(uri);
assertNotNull(page);
assertTrue(page.getWebResponse().getStatusCode() == HttpServletResponse.SC_OK);
break;
}
}
assertTrue(found);
}
}
assertEquals(javaScripts.size(), foundCount);
}
E.g.:
assertTrue(found); -> assertTrue(srcAttr, found);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 9 months