| Author |
Message |
|
|
this is the same problem than http://www.icefaces.org/JForum/posts/list/0/7658.page#32669
|
 |
|
|
I have the same problem.
I used the last revision 16158. It is better but it isn't solved entirely.
If you refresh the .jsp page, the "session.invalidate" causes an exception.
Code:
<html>
<head>
<title></title>
</head>
<body>
<% if(session.getAttribute("LoggedIn")=="true"){ %>
<jsp:forward page="webmail.iface" />
<% }else{
session.invalidate();%>
<jsp:forward page="login.iface" />
<% } %>
</body>
</html>
regards
Bal.
|
 |
|
|
Hi,
With the new build 1.7rc1, the identification system of webmail ICEFaces example project don't work now.
The problem come from here:
index.jsp file of example project
Code:
<html>
<head>
<title></title>
</head>
<body>
<% if(session.getAttribute("LoggedIn")=="true"){ %>
<jsp:forward page="webmail.iface" />
<% }else{
session.invalidate();%>
<jsp:forward page="login.iface" />
<% } %>
</body>
</html>
If I refresh the login page, I get one error because session is invalidated wehereas it was working fine with previous version.
Regards,
Bal.
|
 |
|
|
Hi,
I get navigation problems too after upgrading.
I need to refresh navigator page, for making some redirections working.
Regards,
Bal.
|
 |
|
|
Here is an example of history of firebug when webApp is deployed on "/"
[window.stateMon] Checking [0] monitors icefaces-d2d.js (ligne 1306)
[window.stateMon] Rebuilding Monitors [0] icefaces-d2d.js (ligne 1306)
[window.stateMon] Rebuilding Monitors [0] icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection] asynchronous mode icefaces-d2d.js (ligne 1308)
[window.ZrSr#1] bridge loaded! icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection.heartbeat] heartbeat started icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection] closing previous connection... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection] connect... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection.heartbeat] heartbeat stopped icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection.heartbeat] heartbeat started icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection] closing previous connection... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection] connect... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection.heartbeat] heartbeat stopped icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection.heartbeat] heartbeat started icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection] closing previous connection... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection] connect... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection.heartbeat] heartbeat stopped icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection.heartbeat] heartbeat started icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection] closing previous connection... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection] connect... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection.heartbeat] heartbeat stopped icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection.heartbeat] heartbeat started icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection] closing previous connection... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection] connect... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection.heartbeat] heartbeat stopped icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection.heartbeat] heartbeat started icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection] closing previous connection... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection] connect... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection.heartbeat] heartbeat stopped icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection.heartbeat] heartbeat started icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection] closing previous connection... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection] connect... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection.heartbeat] heartbeat stopped icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection.heartbeat] heartbeat started icefaces-d2d.js (ligne 1308)
[window.ZrSr#1.async-connection] closing previous connection... icefaces-d2d.js (ligne 1306)
[window.ZrSr#1.async-connection] connect... icefaces-d2d.js (ligne 1306)
And the same application deployed on "/webApp/"
[window.stateMon] Checking [0] monitors icefaces-d2d.js (ligne 1306)
[window.stateMon] Rebuilding Monitors [0] icefaces-d2d.js (ligne 1306)
[window.stateMon] Rebuilding Monitors [0]icefaces-d2d.js (ligne 1306)
[window.K_ak#1.async-connection] asynchronous mode icefaces-d2d.js (ligne 1308)
[window.K_ak#1] bridge loaded! icefaces-d2d.js (ligne 1308)
[window.K_ak#1.async-connection.heartbeat] heartbeat started icefaces-d2d.js (ligne 1308)
[window.K_ak#1.async-connection] closing previous connection... icefaces-d2d.js (ligne 1306)
[window.K_ak#1.async-connection] connect... icefaces-d2d.js (ligne 1306)
[window.K_ak#1.async-connection.blocking] [3948825] : send asynchronous POST icefaces-d2d.js (ligne 1306)
POST http://localhost:8080/webApp/block/receive-updated-views (21046 ms) icefaces-d2d.js (ligne 1444)
[window.K_ak#1.async-connection.heartbeat] ping icefaces-d2d.js (ligne 1308)
[window.K_ak#1.async-connection.ui] [6100193] : send asynchronous POST icefaces-d2d.js (ligne 1306)
POST http://localhost:8080/webApp/block/ping (1045 ms) icefaces-d2d.js (ligne 1444)
[window.K_ak#1.async-connection.blocking] [3948825] : receive [200] OK icefaces-d2d.js (ligne 1306)
[window.synchronizer] mark document as modified icefaces-d2d.js (ligne 1306)
[window.K_ak#1.async-connection.ui] [6100193] : receive [200] OK icefaces-d2d.js (ligne 1306)
[window.K_ak#1.async-connection] closing previous connection... icefaces-d2d.js (ligne 1306)
[window.K_ak#1.async-connection.blocking] [3948825] : connection closed icefaces-d2d.js (ligne 1306)
[window.K_ak#1.async-connection] connect... icefaces-d2d.js (ligne 1306)
[window.K_ak#1.async-connection.blocking] [9750504] : send asynchronous POST icefaces-d2d.js (ligne 1306)
POST http://localhost:8080/webApp/block/receive-updated-views icefaces-d2d.js (ligne 1444)
[window.K_ak#1.async-connection.ui] [6058787] : send asynchronous POST icefaces-d2d.js (ligne 1306)
POST http://localhost:8080/webApp/block/receive-updates (36 ms) icefaces-d2d.js (ligne 1444)
[window.K_ak#1.async-connection.ui] [6058787] : receive [200] OK icefaces-d2d.js (ligne 1306)
[window.K_ak#1.async-connection.heartbeat] pong icefaces-d2d.js (ligne 1308)
[window.K_ak#1.async-connection.ui] [6058787] : connection closed icefaces-d2d.js (ligne 1306)
|
 |
|
|
Hi all,
I can't make working the heartbeat system when my ICEFaces webApplication is deployed on the root of my application server http://localhost:8080/ (on JBOSS 4.2.2)
With firebug plugin I can see unsuccess attempts every seconds wehereas it is working fine when the webapp is deployed into a subfolder like http://localhost:8080/myWebApp/
You can test it easyly by adding the following jboss-web.xml file into the WEB-INF directory of your webApp.
<jboss-web>
<context-root>/</context-root>
</jboss-web>
How can I solve this problem ?
thanks for your help
regards
Bal.
|
 |
|
|
Hi,
I have get a charset encoding problem.
On our UTF-8 servers, our ICEFaces applications are working fine.
On one other server encoded in: ISO-8859-15 => (Latin9;euro), menuitems of our application are doubled randomly ...
regards
Bal.
|
 |
|
|
Hi,
you just need to add this lines into your web.xml, in order to redirect on the login page when session is broken:
<context-param>
<param-name>
com.icesoft.faces.connectionLostRedirectURI
</param-name>
<param-value>'/index.jsp'</param-value>
</context-param>
regards
Bal.
|
 |
|
|
Hi,
It works perfectly!
Thanks again
regards
Chris
|
 |
|
|
Hi Mark,
Thanks a lot for your work and help (Yig Ng too ;) ).
I will test it from svn as soon as possible!
regards,
Chris
|
 |
|
|
YAISSSEEE !!
Hi Mark!
Thanks for your help!
Sorry but I had done the project example too quickly... :(
You are perfectly right. I'm sorry.
So I corrected my example demo with the "e.getNewValue()" and I found the root of problem! :-D
In fact the bug is here with the folowing attribute: layout="pageDirection"
Please see my attached myeclipse project and you will see the bug in action.
If you remove the "layout" attribute, it is perfectly working ! But with it, partial submit don't work...
thanks for your helps !
regards
Bal.
|
 |
|
|
Hi,
Here is a little example project that bugs on JBOSS 4.2.2.
It is a myEclipse project.
regards
Bal.
|
 |
|
|
Re yip.ng>
I have done your simple example under JBOSS 4.2.2 and ICEFaces 1.7.0 DR3 and I get the same problem.
I don't understand why you don't have it.. :(
|
 |
|
|
For information: we are using jboss 4.2.2. Not facelets nor seam.
Controls are on a modal popup panel on this example but we have the problem too on a non modal panel with checkboxes.
When we debug the application with myEclipse. We don't go into the valuechangelistener function ??
Here is a part of our backing bean
package com.test;
import java.util.ArrayList;
import java.util.List;
import javax.faces.event.ActionEvent;
import javax.faces.event.ValueChangeEvent;
import javax.faces.model.SelectItem;
import com.test.Controller;
import com.test.ejb.uc.manageApplication.ApplicationVO;
import com.test.ejb.uc.manageDataModel.DataModelEntityVO;
import com.test.ejb.uc.manageDataModel.DataModelVO;
import com.test.ejb.uc.manageDataSource.DataSourceVO;
import com.test.ejb.wizard.formBase.WizardTableProperties;
import com.test.jsf.manageDataSource.ManageDataSourceBusinessDelegate;
import com.test.jsf.GeneralWebDesignerController;
import com.test.jsf.manageApplication.ManageApplicationBusinessDelegate;
import com.test.jsf.manageDataModel.ManageDataModelBusinessDelegate;
public class WizardFormBaseController extends Controller
{
private boolean showWizard = false;
private String contentPanel = "page1";
private GeneralWebDesignerController generalWebDesignerController;
private ApplicationVO application;
private DataModelVO dataModel;
private List<DataSourceVO> listDataSource;
private List<DataModelVO> listDataModel;
private String selectedSource;
private List<SelectItem> dataItems = new ArrayList<SelectItem>();
private String selectedData;
private List<WizardTableProperties> listWizardTableProperties = new ArrayList<WizardTableProperties>();
public void refresh()
{
}
private void clear()
{
this.contentPanel = "page1";
this.showWizard = false;
this.application = null;
this.dataModel = null;
this.dataItems = new ArrayList<SelectItem>();
this.selectedData = null;
this.selectedSource = "DataSource";
this.listWizardTableProperties = new ArrayList<WizardTableProperties>();
}
public void launchFormBaseWizard(ApplicationVO application)
{
this.showWizard = true;
this.contentPanel = "page1";
this.application = application;
this.selectedSource = "DataSource";
this.listDataSource = ManageDataSourceBusinessDelegate.getInstance().getDataSourceList();
SelectItem item0 = new SelectItem();
item0.setLabel("");
item0.setValue(null);
this.dataItems.add(item0);
for (DataSourceVO ds : this.listDataSource)
{
SelectItem item = new SelectItem();
item.setLabel(ds.getTitle());
item.setValue(ds.getId());
this.dataItems.add(item);
}
}
public void onSourceTypeValueChange(ValueChangeEvent e)
{
this.dataItems.clear();
SelectItem item0 = new SelectItem();
item0.setLabel("");
item0.setValue(null);
this.dataItems.add(item0);
if (e.getNewValue().toString().equals("DataSource"))
{
this.listDataSource = ManageDataSourceBusinessDelegate.getInstance().getDataSourceList();
for (DataSourceVO ds : this.listDataSource)
{
SelectItem item = new SelectItem();
item.setLabel(ds.getTitle());
item.setValue(ds.getId());
this.dataItems.add(item);
}
}
else if (e.getNewValue().toString().equals("DataModel"))
{
this.listDataModel = ManageDataModelBusinessDelegate.getInstance().getDataModelListWithEntityAttribute();
for (DataModelVO ds : this.listDataModel)
{
SelectItem item = new SelectItem();
item.setLabel(ds.getTitle());
item.setValue(ds.getId());
this.dataItems.add(item);
}
}
}
public void cancelActionListener(ActionEvent e)
{
clear();
}
public boolean isShowWizard()
{
return showWizard;
}
public void setShowWizard(boolean showWizard)
{
this.showWizard = showWizard;
}
public String getContentPanel()
{
return contentPanel;
}
public void setContentPanel(String contentPanel)
{
this.contentPanel = contentPanel;
}
public GeneralWebDesignerController getGeneralWebDesignerController()
{
return generalWebDesignerController;
}
public void setGeneralWebDesignerController(GeneralWebDesignerController generalWebDesignerController)
{
this.generalWebDesignerController = generalWebDesignerController;
}
public String getSelectedSource()
{
return selectedSource;
}
public void setSelectedSource(String selectedSource)
{
this.selectedSource = selectedSource;
}
public String getSelectedData()
{
return selectedData;
}
public void setSelectedData(String selectedData)
{
this.selectedData = selectedData;
}
public List<SelectItem> getDataItems()
{
return dataItems;
}
public void setDataItems(List<SelectItem> dataItems)
{
this.dataItems = dataItems;
}
public List<WizardTableProperties> getListWizardTableProperties()
{
return listWizardTableProperties;
}
public void setListWizardTableProperties(List<WizardTableProperties> listWizardTableProperties)
{
this.listWizardTableProperties = listWizardTableProperties;
}
}
regards,
Bal
|
 |
|
|
Hi,
thanks a lot for your help.
I will give you the code of backing bean.
First, see this little demo to see exactly the bug in situation: Bug Demo
|
 |
|
|