Hi Shalini,
If I use the default "asual.vm", e.g.
<jsp:include page="/news/" />
The calendar is rendered. If I use a different flavor,
If I use flavor=index, the calendar is not rendered.
The content of asual.vm now equals index.vm. Content:
<!-- Entries -->
#parse("asual-header.vm")
<div id="entries">
#set($entryDate = "")
#set($totalEntries = 0)
#foreach($entry in $BLOJSOM_ENTRIES)
#parse("asual-entry.vm")
#end
</div>
<div id="column">
#parse("asual-column.vm")
</div>
Again, if I use flavor=index, I won't see the calendar.
index.vm and asual.vm have the exact same content.
I got it to work as desired, but I cannot explain why
index.vm doesn't
get the calendar in scope.
Garrett
On 5/13/07, Shalini Israni <shaliny.i gmail.com> wrote:
> Hi Garret,
>
> For some reason, your $BLOJSOM_CALENDAR_VTLHELPER
object doesnot seem to
> exist in the Context. Which means, it is not available
to tour velocity
> template. In which case instead of being parsed, the
code is literally
> being printed.
>
> For a good article on Velocity Templates please hit
> http://www.javaworld.com/javaworld/jw-12-2001
/jw-1228-velocity.html
>
> I an not using JSP with blojsom, so i probably don't
know the intricacies,
> but this does not sound right to me :
<jsp:include
> page="/news/?flavor=index" />
>
> the flavor=index part.
>
> Shalini
>
>
> On 5/14/07, Garrett Smith <dhtmlkitchen gmail.com> wrote:
> >
> > Hi,
> >
> > What can cause the content not to be parsed?
> >
> > Everything is fine, except this:
> >
>
$BLOJSOM_CALENDAR_VTLHELPER.getCalendarRow($number)$BLOJSOM_
CALENDAR_VTLHELPER.getCalendarRow($number)$BLOJSOM_CALENDAR_
VTLHELPER.getCalendarRow($number)$BLOJSOM_CALENDAR_VTLHELPER
.getCalendarRow($number)$BLOJSOM_CALENDAR_VTLHELPER.getCalen
darRow($number)$BLOJSOM_CALENDAR_VTLHELPER.getCalendarRow($n
umber)
> >
> > Is it because it is not in scope?
> >
> > I have included blojsom to the index page,
"/"
> >
> > <jsp:include
page="/news/?flavor=index" />
> >
> >
> > Thank you,
> >
> > Garrett
> >
> >
>
------------------------------------------------------------
-------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2
express and take
> > control of your XML. No limits. Just data. Click
to get it now.
> > http://sourcefor
ge.net/powerbar/db2/
> > _______________________________________________
> > Blojsom-users mailing list
> > Blojsom-users lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
> >
>
>
>
> --
> Yesterday I played a blank tape at full blast. The mime
next door went nuts.
> ~
> Shalini
>
> http://www.
theessenceoftech.blogspot.com/
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2
express and take
> control of your XML. No limits. Just data. Click to get
it now.
> http://sourcefor
ge.net/powerbar/db2/
> _______________________________________________
> Blojsom-users mailing list
> Blojsom-users lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
>
>
--
http://dhtmlkitchen.com/
------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|