Hey James,

Thanks for the feedback. I found the problem elsewhere. I was creating a 
context for the tag before I executed it and I did not set the old 
context to be the parent of the new context. So the attribute 'value' 
could not find a variable called 'name'. Hence no value in 'value'. 
Sorry for the waste of bandwidth.

>Both approaches should work. If you have a setter method
>
>public class EjbParamTag {
>    public void setValue(Object value);
>}
>
>then the expression ${name} would be evaluated first, then the result of the
>expression would be passed in to your tag. Many existing Jelly tags work
>like this so that their values can be set via expressions.
>
>Though if you actually wanted an Expression instance, so that you could
>coerce the result somewhat (such as to call Expression.evaluateAsIterator()
>for example) then just use a setter method of type Expression.
>
>public class EjbParamTag {
>    public void setValue(Expression expr);
>}
>
>
>This is how several tags work (such as the <x:forEach> tag, iterating over
>XPath expressions).
>  
>
That's a great explanation, thanks. I think it would be a good addition 
to the faq.

>I'm just wondering if you Tag code is confusing the bean introspector maybe?
>Do you have any methods called isValue() or getValue() of wierd return
>
Yea I could see that being a problem, fortunately I do not have that one.

>types? Any chance you could post an example tag that doesn't work - I could
>then add it as a JellyUnit test case...
>
Sorry no unit test for my stupidity :)

>  
>
Thanks,
Kurt

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to