-
1. rich:popupPanel not 'popping up' in IE
pradeep_nayak Feb 21, 2011 5:32 AM (in response to cmathrusse)Hi I also got the same issue
I noticed that when I have <ui:composition > tag in the page pop up gets displayed at the end of the page.
If I change this tag to <html> then it executes properly.
-
2. rich:popupPanel not 'popping up' in IE
ilya_shaikovsky Feb 21, 2011 5:51 AM (in response to pradeep_nayak)guys, sombody attach please complete pages code(with templates).
-
3. rich:popupPanel not 'popping up' in IE
pradeep_nayak Feb 21, 2011 6:44 AM (in response to ilya_shaikovsky)<!DOCTYPE html 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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<f:view>
<h:head>
</h:head>
<h:body>
<h:form>
<h:panelGrid >
<a4j:commandButton execute="@this" render="@none"
oncomplete="#{rich:component('confirmPane')}.show()" value="click">
</a4j:commandButton>
<rich:popupPanel id="confirmPane" autosized="true">
popup
<a4j:commandButton value="Cancel"
onclick="#{rich:component('confirmPane')}.hide(); return false;" />
</rich:popupPanel>
</h:panelGrid>
</h:form>
</h:body>
</f:view>
</ui:composition>
Execute the above page. Click on the button on the page. Popup gets displayed at the bottom of the page
Change the </ui:composition> to <html> and it works properly. Page given below works properly
<!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:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<f:view>
<h:head>
</h:head>
<h:body>
<h:form>
<h:panelGrid >
<a4j:commandButton execute="@this" render="@none"
oncomplete="#{rich:component('confirmPane')}.show()" value="click">
</a4j:commandButton>
<rich:popupPanel id="confirmPane" autosized="true">
popup
<a4j:commandButton value="Cancel"
onclick="#{rich:component('confirmPane')}.hide(); return false;" />
</rich:popupPanel>
</h:panelGrid>
</h:form>
</h:body>
</f:view>
</html>
-
4. rich:popupPanel not 'popping up' in IE
ilya_shaikovsky Feb 21, 2011 6:58 AM (in response to pradeep_nayak)if that page is your main template - you have to start it from HTML declaration. (thought that it not worked for some template child)
-
5. Re: rich:popupPanel not 'popping up' in IE
pradeep_nayak Feb 21, 2011 8:47 AM (in response to ilya_shaikovsky)Yes . you are right.
But after starting from html also , if I have <ui:composition> anywhere in the page pop up i sgetting displayed at the bottom.
This problem is only in IE . It works in mozilla.
-
6. Re: rich:popupPanel not 'popping up' in IE
pradeep_nayak Feb 22, 2011 3:40 AM (in response to ilya_shaikovsky)Is it a defect in rich faces ?
-
7. Re: rich:popupPanel not 'popping up' in IE
ilya_shaikovsky Feb 22, 2011 3:58 AM (in response to pradeep_nayak)I re-checked. richfaces-showcase demos are uses composition and included into main template. And it works fine for me at popup panel pages.
-
8. Re: rich:popupPanel not 'popping up' in IE
pradeep_nayak Feb 23, 2011 5:47 AM (in response to ilya_shaikovsky)I tried the pages in the demo tour also.
I locally executed the pages. Still n o luck
I'm getting the pop up at the bottom of the page.
-
9. Re: rich:popupPanel not 'popping up' in IE
ilya_shaikovsky Feb 23, 2011 6:06 AM (in response to pradeep_nayak)which IE used?
still can't confirm locally with demo code.
-
10. Re: rich:popupPanel not 'popping up' in IE
pradeep_nayak Feb 23, 2011 7:35 AM (in response to ilya_shaikovsky)IE 7.
complete version is - 7.0 5730.13
Can you please run above given pages. this will give a clear idea where the error is.
-
11. Re: rich:popupPanel not 'popping up' in IE
pradeep_nayak Mar 2, 2011 9:08 AM (in response to pradeep_nayak)Finally solved the issue
my page did not have following dtd at the begining.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
After I put the dtd popup appears properly.
One thing to note here is , page should start with <html >. If its started with <ui:composition> then all the tags above <ui:composition> are removed. when source is generated.
-
12. Re: rich:popupPanel not 'popping up' in IE
cmathrusse Mar 2, 2011 10:06 PM (in response to pradeep_nayak)That didn't resolve it for me. I went through all of my xhtml pages and modified them to be the following:
<!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:composite="http://java.sun.com/jsf/composite"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<ui:composition template="/include/layout.xhtml"
xmlns:components="http://java.sun.com/jsf/composite/components"
xmlns:iii="http://java.sun.com/jsf/composite/components/mycustomns">
And even after adding this to each of my pages the popup appears below all other content (only in IE).
-
13. Re: rich:popupPanel not 'popping up' in IE
pradeep_nayak Mar 3, 2011 1:08 AM (in response to cmathrusse)You still have <ui:composition> tags in your code. When you put this tag all the code above that is removed and rest of the code is added into the template.
So eventually its as good as not having the dtd information.Remove the <ui:composition> tags. For using the template you can use <ui:insert> tag instead of <ui:composition>.
ex:
<ui:insert name="layout">
<ui:include src="/layout.xhtml" />
</ui:insert>
If this doesnt work , once your page gets rendered , using view source option in browser check the generated source. If you dont find the dtd and the html tag then you might still have some <ui:composition> tags in your xhtml code.
Do let me know the result.
-
14. rich:popupPanel not 'popping up' in IE
cmathrusse Mar 30, 2011 3:36 PM (in response to pradeep_nayak)I did as you recommended, removed the <ui:composition> tag and replaced it with simply <html>, and it did resolve the issue. The popup now appears as expected with IE. But this seems like a huge issue from my perspective. I no longer can define my templates as <ui:composition> and I cannot include the parent layout template. This seems as if we loose the reusability of facelets just to get the popup to work correctly in IE.
Isn't there another way?