This content has been marked as final.
Show 3 replies
-
1. Re: Layout is blinking on Firefox
ilya_shaikovsky Mar 25, 2010 8:11 AM (in response to radu321)sorry but could not reproduce. any more details?
-
2. Re: Layout is blinking on Firefox
radu321 Mar 25, 2010 9:49 AM (in response to ilya_shaikovsky)Thank you very much for your reply.
This is a part of the code:
<a4j:outputPanel layout="block" styleClass="scrollHeight"> <h:panelGrid columns="1" cellspacing="0" cellpadding="0" styleClass="introduction"> <h:outputText value="appears only one here as introduction for next toggles" /> </h:panelGrid> <rich:spacer styleClass="distanceBetweenToggles" /> <rich:toggleControl for="myToggle"> <h:panelGrid columns="2" cellspacing="0" cellpadding="0" styleClass="formatToggle" columnClasses="col1, col2" id="panelId"> <h:outputText value="my data" /> <h:graphicImage value="#{myBean2.value ? mes.up : mes.down}" <a4j:support event="onclick" reRender="panelId" immediate="true"> <a4j:actionparam name="paramName" value="#{myBean1.value}" assignTo="#{myBean2.value}" /> </a4j:support> </h:panelGrid> </rich:toggleControl> <rich:togglePanel stateOrder="opened, empty" switchType="client" id="myToggle"> <f:facet name="empty"> <h:panelGroup /> </f:facet> <f:facet name="opened"> <h:panelGrid columns="2" cellspacing="0" cellpadding="0" styleClass="panelGrid1" columnClasses="col1"> <rich:spacer /> //content .... </rich:togglePanel> <rich:spacer styleClass="distanceBetweenToggles" /> //another toggle and so on </a4j:outputPanel>
Also first toggle from page does not cause this behavior, only clicking those after it when this is expanded causes this behavior. (their is scroll on page).
All toggles have above model, only content is different from one to another.
This is happening on Firefox 3.6.2 and Rich Faces 3.3.2 .
Regards,
Radu
-
3. Re: Layout is blinking on Firefox
radu321 Mar 30, 2010 4:12 AM (in response to radu321)I solved the issue.
I put each
rich:toggleControl into a panel grid and layout stops blinking.
In code having something like this:
<h:panelGrid columns="1" styleClass="myGrid" cellpadding="0" cellspacing="0"> <rich:toggleControl for="myToggle1"> .... </rich:toggleControlo> </h:panelGrid> <rich:togglePanel stateOrder="opened, empty" switchType="client" id="myToggle1"> ... </rich:togglePanel> <h:panelGrid columns="1" styleClass="myGrid" cellpadding="0" cellspacing="0"> <rich:toggleControl for="myToggle2"> .... </rich:toggleControlo> </h:panelGrid> <rich:togglePanel stateOrder="opened, empty" switchType="client" id="myToggle2"> ... </rich:togglePanel>
and so on with all next toggles.
Regards,
Radu