[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Content replace with macros?  XML
Forum Index -> Development
Author Message
hilka

Power User

Joined: 23/11/2007 09:00:08
Messages: 191
Offline

Hi everyone,

we use a dynamic content replace for including jsp. I tried to introduce the macro mechanism to those beans, but it seems that this content replace is not executed for macro definitons.

Is it possible to use dynamic content replace and the macro mechanism together?

Thanks for your help.

Tobias
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Yes, this is possible. The sequence is:

(1) first the content replacements are done
(2) then the macro execution is done

Maybe it's the same problem as in your parallel post...? The macro definition must be part of the application's web application, not the editor's one.

Björn

Björn Müller, CaptainCasa GmbH
hilka

Power User

Joined: 23/11/2007 09:00:08
Messages: 191
Offline

I know (as in my other post) that the macro has to be in my web application. It works fine.

The problem was that in my macro definition, I handed over the bean definition as 'd.myBean' and not 'd.myBean.'. But in my content replace, I gave the bean expression with the trailing '.'. After adding this '.', everything worked fine.

So, everything is fine (besides my other post), it works perfectly fine.

Tobias
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team