Quantcast

processable in StructureHandler.replaceWith

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

processable in StructureHandler.replaceWith

remi128
Hey,

i am currently working on a dialect, where i am replacing an element through a new element, from which the children must be parsed again. Therefor i am using the:

structureHandler.replaceWith(content, true);

Unformtunately this is not working. Am i doing something wrong there?

tia, Michael
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: processable in StructureHandler.replaceWith

danielfernandez
Administrator
Could you please provide more detail. Note the "processable" flag does not mean the content you specify will be parsed, but processed. This means if you specify a String, that will be considered a Text (not parsed for tags inside it), but any inlining inside it will be processed.

If you need to actually create an IModel (i.e. actually parse some template code), you should be applying one of the parsing methods at the Model Factory (context.getModelFactory()), and then specifying the resulting IModel as the content passed to the other version of structureHandler.replaceWith (the one receiving an IModel argument).

Regards,
Daniel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: processable in StructureHandler.replaceWith

remi128
yes, sorry, i did not close that. I found out in the meantime that it was a misunderstanding.

thank you,
Michael
Loading...