voyent
Messages posted by: venu_dvmr  XML
Profile for venu_dvmr -> Messages posted by venu_dvmr [56] Go to Page: Previous  1, 2, 3, 4
Author Message
How does this work Ice.onAsynchronousReceive(id, callback)? Can some one provide a sample or an example. when I try the below code it throws as js error in 1E7 "Object does not support this property or method". I did not test it in other browsers.

ICEfaces 1.8.0
Build number: 12
Revision: 18727



Code:
<body id="document:body">
 <script type="text/javascript">
 Ice.onAsynchronousReceive('document:body', function() {
 alert('onAsynchronousReceive Callback!');
 });
 </script>
panelConfirmation is working fine if we call if form a sigle action when it calls the same panelConfirmation over and over it does not work. In the below sample first command button inside header works where as in body command button it does not work. Is this a bug or expected behavior.

Code:
<ice:panelGroup>
 			<ice:panelGrid columns="2" rowClasses="iceDatTblRow1" width="100%">
 				<f:facet name="header">
 					<ice:panelGrid columns="1" style="vertical-align: left;">
 						[b]<ice:commandButton value="Attach Documents"
 							action="#{fileUploadPopupController.openPopup}" panelConfirmation="deleteConfirmation" tabindex="35"/>[/b]
 						<ice:panelConfirmation id="deleteConfirmation" acceptLabel="OK" 
 							autoCentre="ture" 
 							cancelLabel="abort" displayAtMouse="true" draggable="true"
 							message="Are you sure?" title="Warning" type="normal" />
 					</ice:panelGrid>
 				</f:facet>
 				<ice:panelGroup>
 					<ice:dataTable value="#{agencyRequestController.requestDocTypes}"
 						var="requestDocTypes" width="100%"
 						binding="#{agencyRequestController.requestDocTypesTable}"
 						columnWidths="5%,20%,10%,20%,40%">
 						<ice:column style="">
 							<f:facet name="header">
 								<ice:outputText value="Action" />
 							</f:facet>
 							<h:outputLink value="fileDownload?id=#{requestDocTypes.docId}"
 								target="_blank" rendered="#{requestDocTypes.docId != 0}" title="Download #{requestDocTypes.fileName}">
 								<h:graphicImage id="image" title="Download #{requestDocTypes.fileName}"
 									url="images/#{requestDocTypes.imgIcon}.gif" style="border-style: none"/>
 							</h:outputLink>
 							[i]<ice:commandButton image="images/icon_delete.gif" panelConfirmation="deleteConfirmation"
 								actionListener="#{agencyRequestController.deleteDocument}"
 								rendered="#{requestDocTypes.docId != 0}"  title="Delete #{requestDocTypes.fileName}"/>[/i]
 						</ice:column>
 						<ice:column>
 							<f:facet name="header">
 								<ice:outputText value="Document Type" />
 							</f:facet>
 							<ice:outputText value="#{requestDocTypes.docName}" />
 						</ice:column>
 						<ice:column>
 							<f:facet name="header">
 								<ice:outputText value="Upload Date" />
 							</f:facet>
 							<ice:outputText value="#{requestDocTypes.uploadDate}" />
 						</ice:column>
 						<ice:column>
 							<f:facet name="header">
 								<ice:outputText value="File Name" />
 							</f:facet>
 							<ice:outputText value="#{requestDocTypes.fileName}" />
 						</ice:column>
 						<ice:column>
 							<f:facet name="header">
 								<ice:outputText value="Description" />
 							</f:facet>
 							<ice:outputText value="#{requestDocTypes.docDesc}" />
 						</ice:column>
 
 					</ice:dataTable>
 				</ice:panelGroup>
 			</ice:panelGrid>
 			
 		</ice:panelGroup>
 
Is it required to load the files before the page load If we use outputResources?

Can it load the file on demand when user clicks on the file.

Example would be helpful.
JavaScript AOP works like a charm with iceSubmitPartial function. Below is what I have done.

1. Download the js file from http://___.constantology.com/observe_method/
2. Include the JS files in Backing Bean using JavascriptContext.includeLib()
Code:
 JavascriptContext.includeLib("js/observemethod.js", FacesContext.getCurrentInstance());
 

3. Register Event.observeMethod() in jspx page as below
Code:
  Event.observeMethod( window, 'iceSubmitPartial', test, Event.AFTER ); 
 


Now javascript function test is called after every iceSubmitPartial function.

Thanks

Onload of the page I am registering events on some input elements in a form to use mask for currency.
It works fine if there is no partial submits in the form. How do I re-register events after partial submits?

I tried to use JavascriptContext.addJavascriptCall(); it did not work.
Code:
 <script type="text/javascript">
 Event.observe(window, 'load', function(){
   registerInputMask();
 });
 
 function registerInputMask(){
   var numberParser = new NumberParser(2, ".", ",", true);
   var numMask = new NumberMask(numberParser, "form0:_id62:0:create_req:_id193", 3, false, null, null, null, null, null, true);
 }
 </script>
 
 
 public void stateChanged(ValueChangeEvent event) {
   JavascriptContext.addJavascriptCall(FacesContext.getCurrentInstance(), "registerInputMask();");
 }
 


Any Ideas? Help ??

Try using prototypejs window observer function. I am not sure if icefaces 1.5 comes with prototypejs pre-bundled.

Is this issue resolved? I am having similar problem with combination of PanelTabSet have an include on selectInputDate element.

I agree that selectnputDate should have partialSubmit attribute. So what alternatives do we have?
I am using ice:panelTabSet and each tab content is a jsp include (I cannot use facelets as our server is not supproting). In one of the include files I have a ice:selectInputDate. Selecting the date submits the page and shows the first tab data on the page. Am I doing some thing wrong?

How can I disable Partial Submit for selectInputDate when clicking on the calender icon? I have set partialSubmit = false for form and also for panalTabSet.



Do we have any working example?
I just deployed in OC4J 10.1.2.0.2 without any issues.

ICEsoft Technologies, Inc.
ICEfaces 1.7.1
Build number: 6
Revision: 16923

If I try to deploy ice-facelets I am getting below issue. Did any one had this issue before?

SEVERE: Missing Built-in Tag Libraries! Make sure they are included within the META-INF directory of Facelets' Jar


Help is greatly appreciated.
Were you able to deploy it on OC4J 10.1.2? What changes did you have to do for it to deploy successfully?




 
Profile for venu_dvmr -> Messages posted by venu_dvmr [56] Go to Page: Previous  1, 2, 3, 4
Go to:   
Powered by JForum 2.1.7ice © JForum Team