Got a few questions/queries (unrelated to each other) about TagLibs.

------

Firstly, are taglibs supposed to create a new instance of the corresponding 
class for a tag each time a tag is encountered? A problem I'm having is 
suppose I have a taglib which outputs 'Hello World' unless a NAME property 
is set in which case it says hello to the name.

<test:hello />
<test:hello name="Joe" />
<test:hello name="Someone" />
<test:hello />

Output with Orion:
        Hello World
        Hello Joe
        Hello Someone
        Hello Someone          <--- wrong (should say Hello World)

I can't figure out a way around this. Is there a method that is called when 
a new instance of the tag is called (before the properties are set) so the 
default value can be reset?

------

Secondly, I have a few taglibs which are used on most JSP pages I have. Is 
there a way to automatically imply the <%@ taglib %> tag for all pages in a 
web-application without having to use the tag at the top of each page?

------

Finally, I've used the EJB taglib that came with the demo news-app quite 
extensively, but when I upgraded from 0.8.2 to 0.8.3, all my JSP pages only 
outputted data until the first encounter of an <ejb:iterate> tag and then 
just stopped.

The site.log shows this Exception:

java.lang.NoSuchMethodError
        at com.evermind.ejb.taglib.IterateTag.doAfterBody(IterateTag.java:48)
        at com.evermind.ejb.taglib.IterateTag.doStartTag(IterateTag.java:33)
        at __jspPage0._jspService(__jspPage0.java:58)
        at com.evermind.server.http.EvermindHttpJspPage.service(JAX)
        at com.evermind.server.http.HttpApplication.nl(JAX)
        at com.evermind.server.http.JSPServlet.service(JAX)
        at cr.kb(JAX)
        at cr.forward(JAX)
        at c2.ma(JAX)
        at c.run(JAX)

I noticed that I'm not the only one having this problem. Can anyone shed 
any light? I downloaded the full zip file containing 0.8.2, but then just 
downloaded orion.jar to upgrade. Are there any other files I should have 
included?

------

Thanks in advance.

-Joe Walnes

Reply via email to