You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Matthias Weßendorf (JIRA)" <ad...@incubator.apache.org> on 2007/03/16 08:37:18 UTC

[jira] Updated: (ADFFACES-12) af:tree Need better error message for missing form tag

     [ https://issues.apache.org/jira/browse/ADFFACES-12?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Weßendorf updated ADFFACES-12:
---------------------------------------

        Fix Version/s: 1.0.0-incubating-core
    Affects Version/s: 1.0.0-incubating-core

> af:tree Need better error message for missing form tag
> ------------------------------------------------------
>
>                 Key: ADFFACES-12
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-12
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>    Affects Versions: 1.0.0-incubating-core
>            Reporter: Stephen Friedrich
>         Assigned To: Adam Winer
>             Fix For: 1.0.0-incubating-core
>
>
> When an input component is used, but is not nested inside a <af:form> tag, ADF-Faces throws a NPE without any hint to the actual mistake.
> This situation should be detected, and an exception with a proper description should be thrown.
> Little issues like this one can cause hours of work for the beginning user like me or the other guy on the mailing list who posted this code:
> {code}
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
> <f:view>
>    <af:document>
>        <f:facet name="metaContainer">
>            <f:verbatim>
>                <meta http-equiv="expires" content="0" />
>                <meta http-equiv="pragma" content="no-cache" />
>                <meta http-equiv="cache-control" content="no-cache, must-revalidate" />
>            </f:verbatim>
>        </f:facet>
>        <af:tree var="node" value="#{treeModel.model}">
>          
>     <f:facet name="nodeStamp">
>            <af:outputText value="#{node.name}"/>
>      </f:facet>
>        </af:tree>
>    </af:document>
> </f:view>{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.