shale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Gilette (JIRA)" <j...@apache.org>
Subject [jira] Created: (SHALE-255) Subview doing processDecode on beginEncode
Date Tue, 15 Aug 2006 03:48:21 GMT
Subview doing processDecode on beginEncode
------------------------------------------

                 Key: SHALE-255
                 URL: http://issues.apache.org/struts/browse/SHALE-255
             Project: Shale
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.0.3-SNAPSHOT
            Reporter: Andrew Gilette


inputText components within a shale:subview are giving the following warning "There should
always be a submitted value for an input if it is rendered, its form is submitted, and it
is not disabled or read-only" when the components are first created(When navigating to a new
page the components on the new page are giving the error).

I believe it is because of the following code in org.apache.shale.component.Subview

public void encodeBegin(FacesContext context) {

        Object vc = getViewController(context, false);
        if (vc != null) {
            try {
                getViewControllerCallbacks(context).prerender(vc);
            } catch (Exception e) {
                handleException(context, e);
            }
        }
        super.processDecodes(context);

    }

Shouldn't it  be....

public void encodeBegin(FacesContext context) throws IOException{

        Object vc = getViewController(context, false);
        if (vc != null) {
            try {
                getViewControllerCallbacks(context).prerender(vc);
            } catch (Exception e) {
                handleException(context, e);
            }
        }
        super.encodeBegin(context);

    }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message