Or use a converter? Because it seems that is what you are doing?
On 5/7/08, Eyal Golan <[EMAIL PROTECTED]> wrote:
> Hi all,
> I have this in several components:
> @Override
> protected void onComponentTagBody(MarkupStream markupStream,
> ComponentTag openTag) {
> String value;
> if (getModel() != null) {
> value = getModelValue();
> } else {
> value = "";
> }
> replaceComponentTagBody(markupStream, openTag,
> Consts.getTableBody(getMarkupId(),
> value));
> }
>
> I want to put it in one location such as in an AbstractBehavior.
> Unfortunately, this behavior doesn't have this (or something like this)
> method.
>
> Is there a way for creating a behavior for the onComponentTagBody or
> replaceComponentTagBody?
>
> thanks
>
> --
> Eyal Golan
> [EMAIL PROTECTED]
>
> Visit: http://jvdrums.sourceforge.net/
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]