Messages posted by Baleyba
[Logo]
Forums for ICEfaces and ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Messages posted by: Baleyba  XML
Profile for Baleyba -> Messages posted by Baleyba [110] Go to Page: Previous  1, 2, 3, 4, 5, 6, 7, 8 Next 
Author Message
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
Hi, sorry for my late ...
I will try to explain the problem.
It is not easy :-)


In fact it is working fine in the component-showcase because it doesn't use the valuechangeListener for the ice:selectOneRadio tag.


To test it, you can try this little code.

Code:
 
 <ice:panelGrid id="wizardBody1" styleClass="wizardBody" cellspacing="10">
 
 	<ice:selectOneRadio id="radiosources" layout="pageDirection"
 		partialSubmit="true"
 		value="#{wizardFormBaseController.selectedSource}"
 		valueChangeListener="#{wizardFormBaseController.onSourceTypeValueChange}">
 		<f:selectItem id="DataSource"
 			itemLabel="value1"
 			itemValue="value1" />
 		<f:selectItem id="DataModel"
 			itemLabel="value2"
 			itemValue="value2" />
 	</ice:selectOneRadio>
 
 
 	<ice:selectOneMenu id="selection" styleClass="selectTagMenu"
 		partialSubmit="false" value="#{wizardFormBaseController.selectedData}"
 		required="true">
 		<f:selectItems value="#{wizardFormBaseController.dataItems}"
 			id="selectItemData" />
 	</ice:selectOneMenu>
 
 	<ice:message for="selection" style="color: red;" />
 
 </ice:panelGrid>
 
 



On this page, "normally", when we select one radio button, it must refresh the values list into the second list.

In the 1.7.0.DR2 it was working fine.

Now it doesn't work because the valueChangeListener isn't called at the good time.

In fact I checked that the valueChangeListener of ice:selectOneRadio tag was called after the partialsubmit execution of the value selection into the ice:selectOneMenu tag.

We get the same problem with the ice:selectMultiCheckbox tag

I hope you will succeed in reproduce it because this bug disallows us to use the 1.7.0DR3 release of IceFaces library... :-(

Please keep me informed ;)

regards,

Bal.
Hi,

I get too this problem between these 2 versions :(

Bal.
the second screen capture that shows one kind of bug under jboss under linux...
Hi,

I have a bug with menu component.
I'm using JBOSS 4.2.2 or 4.0.5 (Problem is the same)
When I launch JBOSS under windows XP OS there is no problem

The problem only appears under linux OS ???

I have attached 2 screenshots menu1.jpg and Menu2.jpg that are showing one sort of example of bug.

I have attached a little myEclipse project example.
The menu links don't work. Of course it is just for the example...

The problem is the following:

After I have changed the ".iface" page, the menu bug. => Some menuItems are doubled randomly. I don't understand why.
If I refresh the page, the bug disappears.

The menu is generated dynamically and all id are set (I think).

Do you have ideas about this problem ?
thanks
regards
Bal.
Hi all,

Ok the problem is soved with JBOSS 4.2.2 instead of 4.0.5...

Bal.
Hi,

I have news...


I have done some tests. And the problem comes from the binding attribute.

I get problem every time I'm changing pages with navigation rules described into the faces-config.xml and when I have a binding attached to a tabset.

Sometimes it doubles icefaces tags into the tabset and is generating exception ..

regards
Bal.
Hi all!

Anyone tested my little example and have solution ? :)

regards
Bal.
Hi,

It seems to be the same problem that I reported.

does someone know if it exists a solution for keeping the binding ?

thanks for your help
regards

Bal.
Hi all,

I have done a little example: This is a MyEclipse project.

You have 2 pages and 3 beans:
- beanPage1 that manage page1
- beanPage2 that manage page2
- popupBean that manage popup

You can see that if you open first the popup on the first page, we don't see popup panelTabSet on the second and etc.. It disappears...


I have also try to use a "bean mediator" in order to keep beans references like on the webmail icefaces demo but it doesn't work too.

I hope this would help us.

regards
Bal.
Hi all,

thanks for your answers.
Sorry for my late. I'm trying to do a little example.

patrick.corless> I'm using binding to have only one object to manage whereas having a lot of parameters into my bean.
Pages are very complex and have a lot of components.

aberrant80> Yes I think I'm using the same instance because I defined a link between the bean and a "central" bean into my faces-config.xml file.

I'm doing a small example to show you the problem.

thanks again

regards
Bal.
 
Profile for Baleyba -> Messages posted by Baleyba [110] Go to Page: Previous  1, 2, 3, 4, 5, 6, 7, 8 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team