display fields inside <jato: content>
This doesn't make any sense, but it seems to be what I'm seeing:
If I have a <jato: content> tag and some display fields inside of it,
and if the beginDisplay event for the <jato: content> tag returns
false, then none of the display fields inside <jato: content> are
displayed. However, the beginDisplay/endDisplay for those fields are
still being called.
Can this be right?
[469 byte] By [
Guest] at [2007-11-25 9:28:57]

Hi Mark--
You guys have JATO 1.2, in which this bug is fixed, but since that version
requires changes to event signatures, you probably don't want to upgrade
just yet.
Since I know you guys have a custom JATO package structure, it's easier to
just tell you what to change rather than do a full patch and have you
regenerate and recompile JATO.
The change is exceedingly simple. In /jato/taglib/ContentTag.java, change
line 78 from:
return EVAL_BODY_TAG;
to:
if (displayed)
return EVAL_BODY_TAG;
else
return SKIP_BODY;
Todd
--
Todd Fast
Senior Engineer
Sun/Netscape Alliance
<a href="/group/SunONE-JATO/post?protectID=189233080150035131169232031248229077000 048234051197">todd.fast@s...</a>
-- Original Message --
From: <<a href="/group/SunONE-JATO/post?protectID=174166091163159191130171186101229144026 098131198043123114199021239115076086020224">Mark_Dubinsky@p...</a>>
Sent: Monday, October 15, 2001 6:21 AM
Subject: [iPlanet-JATO] Re: display fields inside <jato: content>
> This workaround is what I did for a couple of fields that were causing
> problems. We do rely on this logic quite a bit, and we've taken great
> pains to remove the "repeated of 1" tiled views to turn them into
> content tags. It made our code more manageable. In most cases we've
> not run into this bug, but now I'm wondering if it's just a matter of
> time. I'm not really looking forward to adding a new "if" statement
> into all those fields, particularly since it won't be necessary in the
> future. Maybe an easier way would be to just apply a patch in 1.1 to
> the one jato file that fixes this issue. Could you make such a file
> for us?
>
> In <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166136 158139046209">iPlanet-JATO@y...</a>, "Todd Fast" <<a href="/group/SunONE-JATO/post?protectID=101233080150035167169232031248066208071 048">Todd.Fast@S...</a>> wrote:
> > Hi Mark--
> >
> > This appears to have been an oversight in JATO 1.1. I've verified
> that it
> > has been addressed in JATO 1.2.
> >
> > An easy workaround until you begin using JATO 1.2 is to set a
> condition
> > variable in your content tag's beginDisplay event handler, and use
> it to
> > conditionally execute the logic inside each of the container display
> fields'
> > display event handlers. Unless you have a large number of display
> events,
> > this should be pretty easy and JATO 1.2 compatible.
> >
> > Todd
> >
> > --
> > Todd Fast
> > Senior Engineer
> > Sun/Netscape Alliance
> > <a href="/group/SunONE-JATO/post?protectID=189233080150035131169232031248229208071 048">todd.fast@s...</a>
> >
> > -- Original Message --
> > From: <<a href="/group/SunONE-JATO/post?protectID=174166091163159191130171186101229144026 098131046209130">Mark_Dubinsky@p...</a>>
> > Sent: Friday, October 12, 2001 3:24 PM
> > Subject: [iPlanet-JATO] display fields inside <jato: content>
> >
> >
> > > This doesn't make any sense, but it seems to be what I'm seeing:
> > >
> > > If I have a <jato: content> tag and some display fields inside of
> it,
> > > and if the beginDisplay event for the <jato: content> tag returns
> > > false, then none of the display fields inside <jato: content> are
> > > displayed. However, the beginDisplay/endDisplay for those fields
> are
> > > still being called.
> > >
> > > Can this be right?
> > >
> > >
> > >
> > > <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>
> > >
> > >
> > >
> > >
> > >
> > >
>
>
>
> <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>
>
>
>
>
>
>
Guest at 2007-7-1 16:34:44 >
