FAQ
Author: bommel
Date: Thu Jan 4 12:16:30 2007
New Revision: 492717

URL: http://svn.apache.org/viewvc?view=rev&rev=492717
Log:
activate popup if validation failed

Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIPopup.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIPopup.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIPopup.java?view=diff&rev=492717&r1=492716&r2=492717
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIPopup.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UIPopup.java Thu Jan 4 12:16:30 2007
@@ -45,8 +45,6 @@
addToPage();
}

-
-
public void processDecodes(FacesContext facesContext) {
if (isSubmitted()) {
for (Iterator it = getFacetsAndChildren(); it.hasNext();) {
@@ -100,8 +98,11 @@
UIComponent childOrFacet = (UIComponent) it.next();
childOrFacet.processValidators(context);
}
- }
- //TODO: check if validation has faild and reset rendered if needed
+ //TODO: check if validation has faild and reset rendered if needed
+ if (context.getRenderResponse()||context.getRenderResponse()) {
+ setActivated(true);
+ }
+ }
}

public void processUpdates(FacesContext context) {
@@ -180,12 +181,10 @@
}
}

-
public void encodeEnd(FacesContext context) throws IOException {
super.encodeEnd(context);
activated = false;
}
-

public void encodeAjax(FacesContext facesContext) throws IOException {
super.encodeAjax(facesContext);

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categoriesmyfaces
postedJan 4, '07 at 8:17p
activeJan 4, '07 at 8:17p
posts1
users1
websitemyfaces.apache.org

1 user in discussion

Bommel: 1 post

People

Translate

site design / logo © 2019 Grokbase