nobby wrote:
Richard Frovarp wrote:
Maybe we can find a way to use the same code for BXE and FCKeditor,
maybe by extracting some parts of the file to a separate JX template?
-- Andreas
Yeah, this should be done. All three are identical except for three
lines that contain the editor's name. I think I see how it can be done
relatively easily. Is there a way to get the usecase module inside of
a jx template? I could do a substring on usecase.getName. Just looking
to see if there is a shortcut and I don't see anything grepping
through the code or looking at the Usecase interface. Or maybe that is
something to be added to the Usecase interface?
Richard
I've figured out how to do this. The question is do we want
usecase.getModule? Otherwise what is needed is this:
usecase.getName().substring(0,usecase.getName().indexOf('.'))
Why don't we just pass a parameter to the usecase?
<component-instance name="bxe.edit">
...
<parameter name="editor" value="bxe"/>
...
</component-instance>
<jx:out value="${usecase.getParameter('editor')}"/>
-- Andreas
Didn't think of that. That is what I've done.
Thanks,
Richard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]