Hi Geert, Yes, I do get an exception (and I agree, it should just work):
(Delete.java:21 is the processEmbeddedElement line)
com.uwyn.rife.engine.exceptions.EmbeddedElementNotFoundException: The embedded
element with id 'EmbedImage' couldn't be found in the template.
at
com.uwyn.rife.engine.ElementContext.processEmbeddedElement(ElementContext.java:3952)
at
com.uwyn.rife.engine.ElementSupport.processEmbeddedElement(ElementSupport.java:6917)
at uk.co.tangency.gallery.Delete.processElement(Delete.java:21)
at com.uwyn.rife.engine.ElementContext.processContext(ElementContext.java:587)
at com.uwyn.rife.engine.RequestState.service(RequestState.java:212)
at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:422)
at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:240)
at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:112)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
at org.mortbay.http.HttpServer.service(HttpServer.java:954)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
On Mon, Jan 09, 2006 at 04:15:09PM +0100, Geert Bevin wrote:
> Hi Stephane,
>
> this template value should still be available to process the embedded
> element into. Do you get any exception or so when you try to do what
> you want? What you describe here should just work.
>
> Best regards,
>
> Geert
>
> On 9-jan-06, at 16:06, S. Meslin-Weber wrote:
>
> >Hi Everyone,
> >
> >I've got a small issue with an embedded element. Here's some snippet
> >code and I'll describe what happens below:
> >
> >Embedding Element snippet:
> > public void processElement() throws EngineException {
> > processEmbeddedElement(template, "EmbedImage", getInput("id"));
> > print(template);
> > }
> >
> >Embedding Template snippet:
> ><div>[!V 'ELEMENT:EmbedImage'/]</div>
> >
> >Now, when RIFE gets to the embedding element's processElement, the
> >template has already resolved and embedded the output of the embedded
> >element EmbedImage... and so it can't find that ELEMENT:EmbedImage
> >value
> >anymore. Unfortunately, I need to set/override the embedded element's
> >inputs during the embedding element's processElement execution and I
> >can't figure out how I'd go about resolving this.
> >
> >Thanks,
> >
> >Steph
> >
> >--
> >================================================================
> >Stephane Meslin-Weber Email: [EMAIL PROTECTED]
> >Senior Software Engineer Web: http://odonata.tangency.co.uk
> >================================================================
> >_______________________________________________
> >Rife-users mailing list
> >[email protected]
> >http://www.uwyn.com/mailman/listinfo/rife-users
>
> --
> Geert Bevin Uwyn bvba
> "Use what you need" Avenue de Scailmont 34
> http://www.uwyn.com 7170 Manage, Belgium
> gbevin[remove] at uwyn dot com Tel +32 64 84 80 03
>
> PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
> Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
>
>
> _______________________________________________
> Rife-users mailing list
> [email protected]
> http://www.uwyn.com/mailman/listinfo/rife-users
--
================================================================
Stephane Meslin-Weber Email: [EMAIL PROTECTED]
Senior Software Engineer Web: http://odonata.tangency.co.uk
================================================================
signature.asc
Description: Digital signature
_______________________________________________ Rife-users mailing list [email protected] http://www.uwyn.com/mailman/listinfo/rife-users
