voyent
Calendar popup  XML
Forum Index -> Components
Author Message
pbk97030

Joined: 04/Oct/2007 00:00:00
Messages: 17
Offline


Hello everyone,

I have one issue regarding calendar popup.

I click calendar popup and it works fine, but selectOneMenu is always repainted in IE6.

I attach screen image at the time of clicking popup calendar.

There must be some ways to prevent this issue.
If anyone knows how to fix it, please help me.


[These are log traces when I click the calendar]

127.0.0.1 - - [15/Nov/2007:10:34:56 -0500] "POST /dataTable-style-tutorial/block/send-receive-updates HTTP/1.1" 200 247
127.0.0.1 - - [15/Nov/2007:10:34:57 -0500] "POST /dataTable-style-tutorial/block/send-receive-updates HTTP/1.1" 200 190565
127.0.0.1 - - [15/Nov/2007:10:34:57 -0500] "GET /dataTable-style-tutorial/xmlhttp/blank HTTP/1.1" 200 39


According to log traces, browser receves only updates from server side.
But, why another compoent is repainted?...

Code:
<ice:selectOneMenu styleClass="basicSelect" partialSubmit="true"
      accesskey="T"
      value="#{inventoryList.container.reportType.value}"
      binding="#{inventoryList.meteringReconFormProcessor.selectReportType}"              
 valueChangeListener="#{inventoryList.meteringReconFormProcessor.reportTypeChanged}"
 immediate="true"
 >
 <f:selectItems value="#{inventoryList.container.reportType.types}" />
 </ice:selectOneMenu>
 




Code:
  					
 <ice:panelGroup styleClass="calBorderHighlight">
       <!-- Calendar Component -->
 <ice:selectInputDate id="date2" value="#{dateSelect.date2}" renderAsPopup="true" partialSubmit="true"
 			                       highlightClass="weekend"
          						   highlightUnit="DAY_OF_WEEK"
          						   highlightValue="1,7"			                       
 >
 <f:convertDateTime pattern="MM/dd/yyyy" timeZone="#{dateSelect.timeZone}"/>
 </ice:selectInputDate>
 <ice:messages/>
 </ice:panelGroup>  
 
 Filename calendar_issue.bmp [Disk] Download
 Description This is screen shot after I click calendar popup and right before calendar is rendered.
 Filesize 572 Kbytes
 Downloaded:  206 time(s)

pbk97030

Joined: 04/Oct/2007 00:00:00
Messages: 17
Offline


In order to help other people who might have the same issues, I want to give you what I found.

if select object is part of the same form as the calendar, every time you click calendar, then select is being repainted.

So, if you don't want it to be repainted, you have to separate them with different forms.

Code:
 <ice:form partialSubmit="true">
 <ice:selectOneMenu styleClass="basicSelect" 
 value="#{inventoryList.container.reportType.value}"
 binding="#{inventoryList.meteringReconFormProcessor.selectReportType}"
 
 valueChangeListener="#inventoryList.meteringReconFormProcessor.reportTypeChanged}"
 immediate="true"
 partialSubmit="true"
 <f:selectItems value="#{inventoryList.container.reportType.types}" />
 </ice:selectOneMenu>
 </ice:form>
 
 <ice:form partialSubmit="true">
 <ice:panelGroup styleClass="calBorderHighlight">
 <!-- Calendar Component -->
 <ice:selectInputDate id="endDate" value="#{dateSelect.date2}" renderAsPopup="true" partialSubmit="true"
 highlightClass="weekend"
 highlightUnit="DAY_OF_WEEK"
 highlightValue="1,7"			                       
 >
  <f:convertDateTime pattern="MM/dd/yyyy" timeZone="#{dateSelect.timeZone}"/>
 </ice:selectInputDate>
 <ice:messages/>
 </ice:panelGroup>
 </ice:form>
 


If you separate them with different forms, then you no longer see it repainted.

Hope it helps.
Thanks,
radu.jakab

Joined: 31/Oct/2007 00:00:00
Messages: 240
Offline


Thanks mate, was looking for something like this
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team