Author: nbelaevski
Date: 2007-10-12 15:55:36 -0400 (Fri, 12 Oct 2007)
New Revision: 3350
Modified:
branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/component/UITabPanel.java
Log:
http://jira.jboss.com/jira/browse/RF-1047
Modified:
branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/component/UITabPanel.java
===================================================================
---
branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/component/UITabPanel.java 2007-10-12
16:33:57 UTC (rev 3349)
+++
branches/3.1.x/ui/tabPanel/src/main/java/org/richfaces/component/UITabPanel.java 2007-10-12
19:55:36 UTC (rev 3350)
@@ -104,6 +104,24 @@
private transient Object restoredRenderedValue;
+ public void processDecodes(FacesContext context) {
+ if (context == null) {
+ throw new NullPointerException("FacesContext is null!");
+ }
+
+ if (!isRendered()) {
+ return ;
+ }
+
+ //RF-1047 - retry to obtain restoredRenderedValue. Seam conversations are absent on
1st phase thus
+ //value is absent also
+ if (restoredRenderedValue == null) {
+ this.restoredRenderedValue = getRenderedValue();
+ }
+
+ super.processDecodes(context);
+ }
+
public Object saveState(FacesContext context) {
Object[] state = new Object[2];
state[0] = super.saveState(context);