You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Zsolt <zk...@intland.com> on 2005/10/23 17:54:10 UTC
Need good tab control for JSP.
Hi,
I need a good tab control for JSP. I have tried struts-layout and
http://209.61.157.8:8080/taglibs/?orgDitchnetTabPaneId=overview.
Struts-layout doesn't seem to work. Ditchnet seems to be very good however
we cannot switch tomcat-5.5 into servlet mode 2.3.
Can you provide me some alternatives?
Zsolt
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Need good tab control for JSP.
Posted by Wendy Smoak <ja...@wendysmoak.com>.
From: "Zsolt" <zk...@intland.com>
> I need a good tab control for JSP. I have tried struts-layout and
> http://209.61.157.8:8080/taglibs/?orgDitchnetTabPaneId=overview.
>
> Struts-layout doesn't seem to work. Ditchnet seems to be very good however
> we cannot switch tomcat-5.5 into servlet mode 2.3.
Have you looked at Struts Menu?
http://demo.raibledesigns.com/struts-menu/index.jsp
--
Wendy Smoak
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Need good tab control for JSP.
Posted by Laurie Harper <la...@holoweb.net>.
Christian Bollmeyer wrote:
> Laurie Harper schrieb:
>
> Nope. You can't, for it has set rtexprvalue to false :-) Minor
Ugh; <jsp:attribute/> might still work...
> thing, you can change that if you grab the tld file from the jar.
> For resolving the other issues, you have to alter the code. Hm.
> The source distribution doesn't contain the resources, but you
> can get them from the jar (META-INF and /lib directories, IIRC).
> The 'wrong links' issue stems from the use of getRequestURL()
> throughout which is a rather common issue. This should easily be
Ah, right, yeah, that'd be a pain.
> overridable by adding an "url" attribute or s/th. Same is true
> for the listener (resources location) which should also be
> configurable IMHO. Generally, the Java part is not overly complex,
> but I'm a little bit short of time currently, and taglib develop-
> ment is not exactly my main field of expertise. Perhaps someone
> should contact the author :-)
Heh, yeah, and move further discussion on this thread to the appropriate
list too ;-)
> Experimented some more, being able to rebuild the library from
> the sources and packaging everything to a .jar file now. Wow,
> with rtexprvalue set to true, I can dynamically generate the
> tabTitle via EL (tabTitle="${somebean.someproperty}"). Still,
> I can't say something like tabTitle="<fmt:message key='tab.title'/>";
> might be a JDeveloper 10.1.3 EA restriction with nested tags
> or generally illegal, I forgot.
Generally illegal, JSP doesn't allow custom tags withing custom tag
attributes.
L.
>
> -- Chris.
>
>> That one, I think, can be dispelled: tab titles are set with the
>> tabTitle attribute, so you can just pass in a value retrieved from
>> your message resources. Admittedly it'd be nice if it was 'Struts
>> aware' and supported a tabTitleKey attribute, though.
>>
>> L.
>>
>> Christian Bollmeyer wrote:
>>
>>> Ah, another important issue I forgot: the tab titles are 'fixed'
>>> and therefore not i18n-capable, neither via resource bundles
>>> nor <fmt:message>.
>>>
>>> -- Ch.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Need good tab control for JSP.
Posted by Christian Bollmeyer <ja...@christianbollmeyer.de>.
Laurie Harper schrieb:
Nope. You can't, for it has set rtexprvalue to false :-) Minor
thing, you can change that if you grab the tld file from the jar.
For resolving the other issues, you have to alter the code. Hm.
The source distribution doesn't contain the resources, but you
can get them from the jar (META-INF and /lib directories, IIRC).
The 'wrong links' issue stems from the use of getRequestURL()
throughout which is a rather common issue. This should easily be
overridable by adding an "url" attribute or s/th. Same is true
for the listener (resources location) which should also be
configurable IMHO. Generally, the Java part is not overly complex,
but I'm a little bit short of time currently, and taglib develop-
ment is not exactly my main field of expertise. Perhaps someone
should contact the author :-)
Experimented some more, being able to rebuild the library from
the sources and packaging everything to a .jar file now. Wow,
with rtexprvalue set to true, I can dynamically generate the
tabTitle via EL (tabTitle="${somebean.someproperty}"). Still,
I can't say something like tabTitle="<fmt:message key='tab.title'/>";
might be a JDeveloper 10.1.3 EA restriction with nested tags
or generally illegal, I forgot.
-- Chris.
> That one, I think, can be dispelled: tab titles are set with the
> tabTitle attribute, so you can just pass in a value retrieved from your
> message resources. Admittedly it'd be nice if it was 'Struts aware' and
> supported a tabTitleKey attribute, though.
>
> L.
>
> Christian Bollmeyer wrote:
>
>> Ah, another important issue I forgot: the tab titles are 'fixed'
>> and therefore not i18n-capable, neither via resource bundles
>> nor <fmt:message>.
>>
>> -- Ch.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Need good tab control for JSP.
Posted by Laurie Harper <la...@holoweb.net>.
That one, I think, can be dispelled: tab titles are set with the
tabTitle attribute, so you can just pass in a value retrieved from your
message resources. Admittedly it'd be nice if it was 'Struts aware' and
supported a tabTitleKey attribute, though.
L.
Christian Bollmeyer wrote:
> Ah, another important issue I forgot: the tab titles are 'fixed'
> and therefore not i18n-capable, neither via resource bundles
> nor <fmt:message>.
>
> -- Ch.
>
> Laurie Harper schrieb:
>
>> Christian Bollmeyer wrote:
>>
>>> This component is quite good, but requires JSP 2.0 (SimpleTag) and
>>> has issues with Tiles (switch off JavaScript and see for yourself).
>>
>>
>>
>> Damn, I was thinking this looked pretty promising 'til I read that...
>> Can you expand at all? I only use Tiles fairly lightly so maybe it's
>> something I could route around?
>>
>> L.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Need good tab control for JSP.
Posted by Christian Bollmeyer <ja...@christianbollmeyer.de>.
Ah, another important issue I forgot: the tab titles are 'fixed'
and therefore not i18n-capable, neither via resource bundles
nor <fmt:message>.
-- Ch.
Laurie Harper schrieb:
> Christian Bollmeyer wrote:
>
>> This component is quite good, but requires JSP 2.0 (SimpleTag) and
>> has issues with Tiles (switch off JavaScript and see for yourself).
>
>
> Damn, I was thinking this looked pretty promising 'til I read that...
> Can you expand at all? I only use Tiles fairly lightly so maybe it's
> something I could route around?
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Need good tab control for JSP.
Posted by Laurie Harper <la...@holoweb.net>.
Christian Bollmeyer wrote:
> If you switch off JavaScript, the component is said to still work
> via 'traditional' links. Unfortunately, at least with Tiles (didn't
> test without), this ends up in a 404 error, as the component
> seems to look for the physical JSP 'master' file instead of the
> Tiles definition. Just re-checked if this behaviour also happens
> in Tomcat 5.5 and not only in OC4J (the one that ships with
Ah, right, so the URLs aren't setup right. Hmm, shouldn't be too hard to
fix that.
> JDeveloper 10.1.3 EA), and it does. Other issues are that
> a page that has the <tab> tags in it cannot be recompiled
> in OC4J, but this may be an Oracle problem (it says some-
> thing about a java.lang.NoSuchMethodError on top of a
> lengthy stack trace).
That sounds like a library version disparity, but I'm not using OC4J so
I won't worry about it ;-)
> Indeed, it looks quite promising, in particular as it's really
> easy to use an looks sexy, but as things stand, it's just
> not ready for production use yet (the author says so, too).
Well, thanks for the heads-up on issues you've had, it'll help direct my
evaluation if I do decide to give it a closer look.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Need good tab control for JSP.
Posted by Christian Bollmeyer <ja...@christianbollmeyer.de>.
Laurie Harper wrote:
> Christian Bollmeyer wrote:
Hi,
>> This component is quite good, but requires JSP 2.0 (SimpleTag) and
>> has issues with Tiles (switch off JavaScript and see for yourself).
>
>
> Damn, I was thinking this looked pretty promising 'til I read that...
> Can you expand at all? I only use Tiles fairly lightly so maybe it's
> something I could route around?
If you switch off JavaScript, the component is said to still work
via 'traditional' links. Unfortunately, at least with Tiles (didn't
test without), this ends up in a 404 error, as the component
seems to look for the physical JSP 'master' file instead of the
Tiles definition. Just re-checked if this behaviour also happens
in Tomcat 5.5 and not only in OC4J (the one that ships with
JDeveloper 10.1.3 EA), and it does. Other issues are that
a page that has the <tab> tags in it cannot be recompiled
in OC4J, but this may be an Oracle problem (it says some-
thing about a java.lang.NoSuchMethodError on top of a
lengthy stack trace).
Indeed, it looks quite promising, in particular as it's really
easy to use an looks sexy, but as things stand, it's just
not ready for production use yet (the author says so, too).
> L.
-- Chris.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Need good tab control for JSP.
Posted by Laurie Harper <la...@holoweb.net>.
Christian Bollmeyer wrote:
> This component is quite good, but requires JSP 2.0 (SimpleTag) and
> has issues with Tiles (switch off JavaScript and see for yourself).
Damn, I was thinking this looked pretty promising 'til I read that...
Can you expand at all? I only use Tiles fairly lightly so maybe it's
something I could route around?
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Need good tab control for JSP.
Posted by Christian Bollmeyer <ja...@christianbollmeyer.de>.
Zsolt schrieb:
> Hi,
Hi,
> I need a good tab control for JSP. I have tried struts-layout and
> http://209.61.157.8:8080/taglibs/?orgDitchnetTabPaneId=overview.
This component is quite good, but requires JSP 2.0 (SimpleTag) and
has issues with Tiles (switch off JavaScript and see for yourself).
Furthermore, its config tag stubbornly creates its resources in
a directory named org.ditchnet right underneath context root, and
you can't change that without touching the code. Its main advanta-
ge is the expert usage of JavaScript and DHTML you won't find
in other components that soon. So there's still room to improve,
but the author obviously has a lot of other projects going on and
therefore might not find the time to bring this component from
current version 0.81 to final anytime soon (enough). My guess.
It just hangs there for at least two months now.
> Struts-layout doesn't seem to work. Ditchnet seems to be very good however
> we cannot switch tomcat-5.5 into servlet mode 2.3.
The main obstacle with Struts-layout IMHO is not so much that
the tags may not work, but that they don't come clear about
their licensing policy for commercial projects on their site
once and for all. No, I won't call or send a mail, but buy
something else in the meantime. Evaluation itself usually
costs much more than license fees. Therefore, I just won't
evaluate something I may have to drop later for license or
other reasons.
> Can you provide me some alternatives?
If you had asked for Tree or DataGrids components, there
would be a real abundance of choices nowadays. But the
relatively simple TabSheet component still seems to be
kind of an orphan to TagLib developers. Still, there are
some options. IMHO the best may be *Struts-Menu* which has
already been mentioned. There is another component in an
(abandonware) suite named ninebits-taglib, IIRC, available
from SF and released under the GPL (not LGPL or Apache, so
an instant goodbye for commercial projects here). There's
another tag available that seems to have been free once,
but costs around USD 25 now, if you search the net long
enough; I forgot both its name and the URL. Then, there's
the ColdTag suite, of course, which also sports a relati-
vely simple Tab tag, but costs money for commercial use,
as all Coldsuite tags do. If Struts-Menu won't suffice
(its good) and as the taglib land seems to be more of an
endless plain with very few water spots if your needs
are more advanced, this could be one of the few ocasions
where one may also look for commercial implementations.
My personal favorite in this direction is the common-controls
suite (check Google). Pricing seems to be moderate, and even
if I hate the term 'runtime license', you also get some
quite good standard controls (Tree, TabSheet, Datagrid
an so on) which may spare you a lot of work otherwise.
> Zsolt
HTH,
-- Chris
NB. There must have been reasons why <x:tabbedPane> is
one of the standard controls in Apache MyFaces.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org