Toro portlets titles

1 view
Skip to first unread message

pete

unread,
Oct 17, 2007, 10:51:54 AM10/17/07
to Toro Projects
Hi All
Is it possible to remove the 2 extra titles that the toro gateway sso
portlet puts inside the portlet?
I could leave them blank in the config files, what would that do to
the portlet? would it still leave the space or would it collapse?

thanks
Pete

Andrew Wills

unread,
Oct 17, 2007, 1:10:05 PM10/17/07
to toro-p...@googlegroups.com
Pete,

I believe it would leave blank space. Take a look at this file:

http://toro-portlets.googlecode.com/svn/trunk/academus-apps/rendering/screens/gateway/gateway_main.xml

About a quarter of the way down, the <layout> begins. At the top of
that, there's a <section> of type="header" -- you could remove this
section all together, or you could try the following...

Convert it to a <template> and use a <call-template> element to
include it in the output. After that, just remove the <title> element
from the config in cases where you don't want the extra title.

drew

pete

unread,
Oct 26, 2007, 8:40:15 AM10/26/07
to Toro Projects
Hi Drew,
I tried to remove the area you suggested and it throws an error.
here's what I did:
1. dupe the file (just in case) gateway_main.xml to gateway_main-
orig.xml
2. then edit gateway_main.xml
3. restart tomcat

here's my edits:
ERROR [Thread-61] [/AcademusApps].[WebMailPop].[] Oct/26 08:21:43 -
Allocate exception for servlet WebMailPop
java.lang.IllegalArgumentException: Handle must be unique in context.
Duplicate handle: gateway_main

i tried removing everything :
<section type="header" cols="1">....</section>
and just:
<h2>.....</h2>

and still the same error.
I'm not sure if it's a problem withe have the two files closely named
but I can't see why it would return Duplicate handle: gateway_main

Pete

pete

unread,
Oct 26, 2007, 9:30:37 AM10/26/07
to Toro Projects
i figured it out it wasn't the edits it was the gateway_main-orig.xml
file it doesn't want to of the same files in the directory.
once i took it out it worked.
Pete

Reply all
Reply to author
Forward
0 new messages