Salut à tous, je veux ajouter (ou remplacer) la propriété disabled=false au composant richfaces (bien sûr que j'ai fait un test d'applicabilité de cette propriété).
La problème est que la method put de la Map des attributs genère "IllegalArgumentException" , malgré que cette propriété existe (applicable):

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
public void parcoursElements() throws RemoteException, ServiceException {
		FacesContext ctx = FacesContext.getCurrentInstance();
		UIComponent root = (UIComponent) ctx.getViewRoot();
		parcoursSousElements(root);
	}

	
	public void parcoursSousElements(UIComponent root) throws RemoteException,
			ServiceException {
		List<UIComponent> listComposants = root.getChildren();
			if (root.getAttributes().get("disabled")!=null && verifVisibility(root))
			{	
				System.out.println("Avant: "+root.getAttributes().get("disabled"));
				root.getAttributes().put("disabled", "disabled");				
			}
			else
			{
				System.out.println("disabled no");
			}
			System.out.println();
			System.out.println();
		
		for (int i = 0; i < listComposants.size(); i++) {
			parcoursSousElements(listComposants.get(i));
		}
	}

	
	private boolean verifVisibility(String id, List actionapos) {

		return true;
	}