-
1. On rerender, screen components are getting rearranged
boy18nj Jan 21, 2011 3:44 PM (in response to narvava)Which browser you are using, can you try in Firefox, Chrome to see if it works correct?
-
2. On rerender, screen components are getting rearranged
ilya40umov Jan 21, 2011 4:27 PM (in response to boy18nj)Please post your code and some screenshots to show what's happening.
-
3. On rerender, screen components are getting rearranged
narvava Jan 21, 2011 11:09 PM (in response to ilya40umov)Hi Aman,
Yes you are right. This is working fine with firefox. But could you guide, how to fix the same with IE.
Naresh.
-
4. On rerender, screen components are getting rearranged
narvava Jan 21, 2011 11:23 PM (in response to ilya40umov)<h:panelGrid columns="12" width="100%">
<rich:spacer width="10px" />
<h:outputText value="Group :" style="font-weight:bold" /><rich:spacer width="5px" />
<rich:comboBox id="groupname" value="#{sdlRegdetails.grpName}"
defaultLabel="Select Group" required="true">
<f:selectItems value="#{scheduleAction.grpNames}" />
<a4j:support event="onchange" ajaxSingle="true"
BypassUpdates="false" reRender="coveragemonth" id="comboAjax">
<f:setPropertyActionListener value="one"
target="#{sdlRegdetails.enableCoverageMonth}" />
</a4j:support>
</rich:comboBox>
<h:outputText value="Coverage Month :" style="font-weight:bold;" />
<h:selectOneRadio value="#{sdlRegdetails.coverageMonth}"
id="coveragemonth"
disabled="#{!sdlRegdetails.coverageMonthEnable}"
style="width:100%;">
<f:selectItem id="currentmonth"
itemLabel="#{dateUtil.currentMonth}" style="font-weight:bold"
itemValue="currentmonth">
</f:selectItem>
<f:selectItem id="nextmonth" itemLabel="#{dateUtil.nextMonth}"
style="font-weight:bold" itemValue="nextmonth">
</f:selectItem>
<f:selectItem id="nexttonextmonth"
itemLabel="#{dateUtil.nexttoNextMonth}"
style="font-weight:bold;width:100px"
itemValue="nexttonextmonth">
</f:selectItem>
<a4j:support event="onclick" id="selectAjax"
action="#{scheduleAction.displayOCTSchedulePanel}"
ajaxSingle="true"
reRender="daysoftheweekpanelwrapper,daysoftheweekpanel,oncallpersonpanelwrapper,oncallpersonpanel">
</a4j:support>
</h:selectOneRadio>
</h:panelGrid>
Code from action beanpublic void setEnableCoverageMonth(String enableCoverageMonth) {
logger.debug("Setting enabling value......");
if (enableCoverageMonth.trim().length() != 0
&& enableCoverageMonth.trim().equals("one")) {
setCoverageMonthEnable(true);
logger.debug("Setting enabling value......as false "
+ isCoverageMonthEnable());
} else {
setCoverageMonthEnable(false);
logger.debug("Setting enabling value......as true"
+ isCoverageMonthEnable());
}// this.enableCoverageMonth = enableCoverageMonth;
this.enableCoverageMonth = enableCoverageMonth;
}On selecting the value from combo box , rerendering the radio button. Values are properly getting set.
Before rerendering 3 radio buttons are alligned horizontally, getting rearranged to zigzag shape.
-
5. Re: On rerender, screen components are getting rearranged
boy18nj Jan 23, 2011 2:35 PM (in response to narvava)Hi Naresh,
There are a couple of options to resolve this issue, you need to play with them to find most suitable for you...
1) if the radio buttons get in ziz-zag shape, try to maximize or increase/decrease the browser window length if it resolves your issue.
2) Remove the style="width:100%;" or you can increase or decrease the value of width to find out if it works for you.
<h:selectOneRadio value="#{sdlRegdetails.coverageMonth}"
id="coveragemonth"
disabled="#{!sdlRegdetails.coverageMonthEnable}"
style="width:100%;">
3) check if your internet explorer is running in quirk mode, if it is disable the quirk mode. This site can also help you to find out if you are running quirks/standard mode- http://www.satzansatz.de/cssd/quirksmode.html