containsExpression will parse the string and indicate if it contains an expression or not. It doesn't try to evaluate the expression. I would guess, that you don't have an action form in your example. Are you sure that you have an action form available? (Is your tag inside a <netui:form> tag?)
On 10/31/05, V.Gnanasegaran (JIRA) <[email protected]> wrote: > > netui taglibrary api > -------------------- > > Key: BEEHIVE-989 > URL: http://issues.apache.org/jira/browse/BEEHIVE-989 > Project: Beehive > Type: Test > Components: NetUI > Versions: V1 > Environment: Windows XP sp2, tomcat 5.5.9, Mysql 4.1 > Reporter: V.Gnanasegaran > > > I am developing a tag library in my project using netui api. > > In the public int doStartTag() method I am calling > ExpressionHandling eh = new ExpressionHandling(this); > boolean ok = ee.containsExpression({actionForm.personList}) returns true. > > when I call Object object = ee.evaluateStrict( {actionForm.personList}, > pageContext.getVariableResolver() ); > > object gets value as null; > > I checkced personList in the controller form and personList consists > value. I did the checking before entering the > tag. I wounder why "ok" returns true but evaluateStrict(...) returns null. > I tried the same functionality using > > ExpressionHandling eh = new ExpressionHandling(this); > Object o = eh.evaluateExpression({actionForm.personList}, "element", > this.pageContext); > > I get the same results o = null; > > Can you figure out the cause for the problem. Thanking you. > > > > > > -- > 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 > >
