You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2011/01/10 21:46:44 UTC
svn commit: r1057353 -
/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/ajax/AjaxInternalUtils.java
Author: lofwyr
Date: Mon Jan 10 20:46:44 2011
New Revision: 1057353
URL: http://svn.apache.org/viewvc?rev=1057353&view=rev
Log:
fix for the jsf 1.1 version (cast needed, because there is no generics)
Modified:
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/ajax/AjaxInternalUtils.java
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/ajax/AjaxInternalUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/ajax/AjaxInternalUtils.java?rev=1057353&r1=1057352&r2=1057353&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/ajax/AjaxInternalUtils.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/ajax/AjaxInternalUtils.java Mon Jan 10 20:46:44 2011
@@ -78,7 +78,7 @@ public class AjaxInternalUtils {
Map<String, UIComponent> ajaxComponents = new HashMap<String, UIComponent>();
facesContext.getExternalContext().getRequestMap().put(AJAX_COMPONENTS, ajaxComponents);
javax.faces.component.UIViewRoot viewRoot = facesContext.getViewRoot();
- UIComponent page = viewRoot.getChildren().get(0);
+ UIComponent page = (UIComponent) viewRoot.getChildren().get(0);
ajaxComponents.put(page.getClientId(facesContext), page);
}
@@ -100,7 +100,7 @@ public class AjaxInternalUtils {
public static List<String> getMessagesComponentIds(FacesContext facesContext) {
Map parameterMap = facesContext.getExternalContext().getRequestParameterMap();
- UIComponent component = facesContext.getViewRoot().getChildren().get(0);
+ UIComponent component = (UIComponent) facesContext.getViewRoot().getChildren().get(0);
String clientId = component.getClientId(facesContext);
String ids = (String) parameterMap.get(clientId + ComponentUtils.SUB_SEPARATOR + "messagesClientIds");
List<String> list = new ArrayList<String>();