You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Rich Feit (JIRA)" <be...@incubator.apache.org> on 2005/05/19 10:12:56 UTC

[jira] Created: (BEEHIVE-749) No way to pass a nullable value through netui-data:callPageFlow

No way to pass a nullable value through netui-data:callPageFlow
---------------------------------------------------------------

         Key: BEEHIVE-749
         URL: http://issues.apache.org/jira/browse/BEEHIVE-749
     Project: Beehive
        Type: Improvement
  Components: NetUI  
    Versions: V1    
    Reporter: Rich Feit
 Assigned to: Eddie O'Neil 
    Priority: Minor
     Fix For: TBD


I've got the following in a JSP, where "${requestScope.mayNotExist}" may evaluate to null:

        <netui-data:callPageFlow method="doit" resultId="result">
            <netui-data:methodParameter value="${requestScope.mayNotExist}"/>
        </netui-data:callPageFlow>

This produces the following tag error when the value is null:
    "The MethodParameter tag must have either the isNull attribute set to true or the value attribute set to a valid value."

That's OK, but since null is a valid value for the argument to 'doit', I want to do this:

        <netui-data:methodParameter value="${requestScope.mayNotExist}" null="${requestScope.mayNotExist==null}"/>

This violates the 'databindable' flag on that attribute ("According to TLD or attribute directive in tag file, attribute null does not accept any expressions").  Seems like there's no easy way to pass a nullable value to a method...?

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