Messages posted by ppronzola
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: ppronzola  XML
Profile for ppronzola -> Messages posted by ppronzola [29] Go to Page: 1, 2 Next 
Author Message
Yes you can bind the paginator.
But u cant bind the page index property.
Still no workaround for that very annoying behaviour?

Unlike tabs and selected index, paginator selected page cant be binded, so it is lost after refresh.
In the 1.8 release, the datapaginator reset itself to first page when you hit the browser refresh/reload button.
Did you pay for a commercial support?
I'd recommand to use eclipselink.
I found it more suitable to use than hibernate in ajax applications.
No more object/session attach/detach headache on read operations.
I swear that the 1000000th was me!
You can implement a session scoped DisposableBean to do the work.
Here is my test case,

Bean.java

Code:
 package test;
 
 import javax.faces.event.ActionEvent;
 
 public class Bean {
 	private String textValue;
 	private boolean showMessage;
 
 	public String getTextValue() {
 		return textValue;
 	}
 
 	public void setTextValue(String textValue) {
 		if(textValue != null) {
 			textValue = textValue.toUpperCase();
 		}
 		
 		this.textValue = textValue;
 	
 		try {
 			Thread.sleep(2000);
 		}
 		catch(Exception e) {}
 	}
 	
 	public boolean isShowMessage() {
 		return showMessage;
 	}
 
 	public void setShowMessage(boolean showMessage) {
 		this.showMessage = showMessage;
 	}
 
 	public void clickOnButtonActionPerformed(ActionEvent ae) {
 		showMessage = !showMessage;
 		
 		try {
 			Thread.sleep(4000);
 		}
 		catch(Exception e) {}
 	}
 	
 }
 


test.iface:

Code:
 <f:view xmlns:f="http://java.sun.com/jsf/core"
 	xmlns:h="http://java.sun.com/jsf/html"
 	xmlns:ice="http://www.icesoft.com/icefaces/component"
 	xmlns:ui="http://java.sun.com/jsf/facelets"
 	xmlns:c="http://java.sun.com/jstl/core"
 	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
 	contentType="text/html">
 
 	<html>
 
 	<head>
 	<title>TEST ICEFACES</title>
 	<ice:outputStyle href="xmlhttp/css/xp/xp.css" />
 
 	</head>
 	<body>
 	<ice:form>
 		<ice:panelGrid columns="1">
 			<ice:outputConnectionStatus />
 			<ice:inputText value="${bean.textValue}" partialSubmit="true" />
 			<ice:commandButton value="CLICK ME"
 				actionListener="${bean.clickOnButtonActionPerformed}" />
 			<ice:outputText value="This message is visible"
 				rendered="${bean.showMessage}" />
 		</ice:panelGrid>
 	</ice:form>
 	</body>
 	</html>
 </f:view>
 


mircea.toma wrote:
The issue is now tracked here: http://jira.icefaces.org/browse/ICE-3765 .
Thank you for reporting it. 


Thks for your quick answer.
I have tested the fix that u commited under revision #17887
Unfortunatly it works only the first time:

put focus on field, then click on button --> ok
reput focus on field, then click on the button ---> ko

Regards.
A quick workaround i found is to add a pendindRequestCount in the Application object

Code:
 This.Application = Object.subclass({
      initialize: function(configuration, container) {
           var sessionID = configuration.session;
           var pendindRequestCount = 0;
           ...
      }
 
      ...
 
      var dispose = function() {
            pendindRequestCount = 0;
            dispose = Function.NOOP;
            connection.shutdown();
      }
 
       ...
 
 
       connection.onSend(function() {
                 Ice.Focus.userInterupt = false;
                 pendindRequestCount ++;
                 statusManager.busy.on();
       });
 
        
 
         connection.onReceive(function(response) {
 	       pendindRequestCount --;
                if(pendindRequestCount == 0) {
                     statusManager.busy.off();
                }
                ....
         }
 
 }
 
http://jira.icefaces.org/browse/ICE-3016
for wich version?
three components:
- a connection status indicator
- a popup calendar (with an inputtext in wich u can type the date directly)
- a submit button to execute the query with the selected date


The user type a date directly into the inputtext field (instead of using the date chooser popup)

when he click on the submit button, the 'onblur' method of the date-inputtext field send a partial submit which switch on the connection status indicator.

While that request is processed by the server the submit button send a request too (that may take long time to complete).

While the second request is still processed by the server, the first one terminate and switch off the connection status indicator.

BUG: the connection status should not be switched off until the second request is terminated.

This (bug) is applicable to any input with partial submit

This is very disturbing from an end user point of view who think his search is already terminated while it is not in fact.
I have the same issue:

http://www.icefaces.org/JForum/posts/list/10161.page
In 1.7.1 when i am on a view and i reload the page with the browser refresh button i keep on the same view.

In 1.7.2 i get navigated to my application index file.

Same behaviour with the back navigation button.
 
Profile for ppronzola -> Messages posted by ppronzola [29] Go to Page: 1, 2 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team