| CODENOTIFIER | HelpYou are not signed inSign in |
Project: ICEFaces
Revision: 17503
Author: mircea.toma
Date: 04 Sep 2008 14:18:08
Changes:ICE-3476 Set display: none on hidden fields DIV.
Files:| ... | ...@@ -171,7 +171,6 @@ | |
| 171 | 171 | |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | ||
| 175 | 174 | //String contextClass = facesContext.getClass().toString(); |
| 176 | 175 | //root.setAttribute("context_type", contextClass); |
| 177 | 176 | |
| ... | ...@@ -208,16 +207,16 @@ | |
| 208 | 207 | DOMContext.getDOMContext(facesContext, uiComponent); |
| 209 | 208 | // set static class variable for support of myfaces command link |
| 210 | 209 | renderCommandLinkHiddenFields(facesContext, uiComponent); |
| 211 | ||
| 210 | ||
| 212 | 211 | //check if the messages renderer asked to be rendered later, |
| 213 | 212 | //if yes, then re-render it |
| 214 | if (uiComponent.getAttributes().get("$ice-msgs$") != null) { | |
| 215 | UIComponent messages = (UIComponent)uiComponent.getAttributes().get("$ice-msgs$"); | |
| 213 | if (uiComponent.getAttributes().get("$ice-msgs$") != null) { | |
| 214 | UIComponent messages = (UIComponent) uiComponent.getAttributes().get("$ice-msgs$"); | |
| 216 | 215 | messages.encodeBegin(facesContext); |
| 217 | 216 | messages.encodeChildren(facesContext); |
| 218 | 217 | messages.encodeEnd(facesContext); |
| 219 | 218 | } |
| 220 | ||
| 219 | ||
| 221 | 220 | domContext.stepOver(); |
| 222 | 221 | domContext.endNode(facesContext, uiComponent, domContext.getRootNode()); |
| 223 | 222 | } |
| ... | ...@@ -274,8 +273,9 @@ | |
| 274 | 273 | Element root = (Element) domContext.getRootNode(); |
| 275 | 274 | Element hiddenFieldsDiv = domContext.createElement(HTML.DIV_ELEM); |
| 276 | 275 | hiddenFieldsDiv.setAttribute(HTML.ID_ATTR, uiComponent.getClientId(facesContext) + "hdnFldsDiv"); |
| 276 | hiddenFieldsDiv.setAttribute(HTML.STYLE_ATTR, "display:none;"); | |
| 277 | 277 | root.appendChild(hiddenFieldsDiv); |
| 278 | ||
| 278 | ||
| 279 | 279 | Iterator commandLinkFields = map.entrySet().iterator(); |
| 280 | 280 | while (commandLinkFields.hasNext()) { |
| 281 | 281 | Map.Entry nextField = (Map.Entry) commandLinkFields.next(); |