do i need to use velocity for nicetabs feature?

View: New views
4 Messages — Rating Filter:   Alert me  

do i need to use velocity for nicetabs feature?

by robinbajaj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,
I have a working TabbedMenu version in my webapp as shown on this link:
link#1 - http://demo.raibledesigns.com/struts-menu/tabbedMenu.jsp?People

I want to incorporate the nicetabs version shown on this page
link#2 - http://demo.raibledesigns.com/struts-menu/velocity-nicetabs.jsp?People

a) Do I have to use Velocity Templates for it,
b) or can I simply replace my original  .css,.js (and image) files (that I got from link#1) and replace them with the ones from link#2.

I gave (b) a quick try and it doesn't seem to work.. just wanted to confirm before spending any more time in this, i.e VelocityTemplates are required for sure, then I might as well learn how to integrate them etc.
Any helpful pointers will be highly appreciated,
thanks,
robin






Re: do i need to use velocity for nicetabs feature?

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you look at the templates for tabs and nicetabs - they're the same:

http://demo.raibledesigns.com/struts-menu/templates/tabs.html.src
http://demo.raibledesigns.com/struts-menu/templates/nicetabs.html.src

So yes, you should be able to just change the JavaScript and CSS. You
said you've tried this. When you said it "doesn't seem to work" -
what's the issue you're experiencing?

Matt

On 8/26/07, robinbajaj <robinbajaj@...> wrote:

>
> Hi there,
> I have a working TabbedMenu version in my webapp as shown on this link:
> link#1 - http://demo.raibledesigns.com/struts-menu/tabbedMenu.jsp?People
>
> I want to incorporate the nicetabs version shown on this page
> link#2 -
> http://demo.raibledesigns.com/struts-menu/velocity-nicetabs.jsp?People
>
> a) Do I have to use Velocity Templates for it,
> b) or can I simply replace my original  .css,.js (and image) files (that I
> got from link#1) and replace them with the ones from link#2.
>
> I gave (b) a quick try and it doesn't seem to work.. just wanted to confirm
> before spending any more time in this, i.e VelocityTemplates are required
> for sure, then I might as well learn how to integrate them etc.
> Any helpful pointers will be highly appreciated,
> thanks,
> robin
>
>
>
>
>
>
> --
> View this message in context: http://www.nabble.com/do-i-need-to-use-velocity-for-nicetabs-feature--tf4332647.html#a12339528
> Sent from the struts-menu-user mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user@...
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>


--
http://raibledesigns.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
struts-menu-user mailing list
struts-menu-user@...
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Re: do i need to use velocity for nicetabs feature?

by robinbajaj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Matt,
This is how the struts-menu displays in I.E when using the regular tabbedMenu example.


When i replace the CSS and Javascript , I get the following menu..
  (note: the submenu is in the top-left corner of the screen, and tab pics are not displaying..this is what i meant, when I said "not working")

When I click on the links the tab contents do change just fine.. so I can tell that javascript is working fine.

Seems like either my jsp is not picking up the css (which it should since its picking the regular tabs.css without problem) OR the CSS is just not picking up the styles properly .. (especially the background image one and the one that displays the sub-tabs..this is where i will need someone's help to figure out why not..?)

my css is in WebRoot/css directory
, my javascript is in Webroot/scripts directory, I simply changed my tabbedMenu.jsp to point to my new .css and .js files like this
================================
<link rel="stylesheet" type="text/css" media="screen" href="http://localhost:8082/oBCTS5_jboss/css/nicetabs.css" />    

    <script type="text/javascript" src="http://localhost:8082/oBCTS5_jboss/scripts/nicetabs.js"></script>
================================

it was originally working with simple tabbed Menu with this code..
================================
<head>
    <title>Expandable List Menu Example, using DHTML</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" media="screen" href="http://localhost:8082/oBCTS5_jboss/css/global.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="http://localhost:8082/oBCTS5_jboss/css/tabs.css" />    
    <script type="text/javascript" src="http://localhost:8082/oBCTS5_jboss/scripts/tabs.js"></script>
</head>
================================

Just to make sure the images do get picked up by .css file, I have moved the images in the same directory as the css files (for debugging this issue) and accessing them as (which should be fine too..)
=================================
  background:#DAE0D2 url('bg.gif') repeat-x bottom;
  background:url('left_both.gif') no-repeat left top;
  background:url('right_both.gif') no-repeat right top;
=================================

but the problem is still there..
Can you please help me with this issue,
thanks,
robin
mraible wrote:
If you look at the templates for tabs and nicetabs - they're the same:

http://demo.raibledesigns.com/struts-menu/templates/tabs.html.src
http://demo.raibledesigns.com/struts-menu/templates/nicetabs.html.src

So yes, you should be able to just change the JavaScript and CSS. You
said you've tried this. When you said it "doesn't seem to work" -
what's the issue you're experiencing?

Matt

On 8/26/07, robinbajaj <robinbajaj@gmail.com> wrote:
>
> Hi there,
> I have a working TabbedMenu version in my webapp as shown on this link:
> link#1 - http://demo.raibledesigns.com/struts-menu/tabbedMenu.jsp?People
>
> I want to incorporate the nicetabs version shown on this page
> link#2 -
> http://demo.raibledesigns.com/struts-menu/velocity-nicetabs.jsp?People
>
> a) Do I have to use Velocity Templates for it,
> b) or can I simply replace my original  .css,.js (and image) files (that I
> got from link#1) and replace them with the ones from link#2.
>
> I gave (b) a quick try and it doesn't seem to work.. just wanted to confirm
> before spending any more time in this, i.e VelocityTemplates are required
> for sure, then I might as well learn how to integrate them etc.
> Any helpful pointers will be highly appreciated,
> thanks,
> robin
>
>
>
>
>
>
> --
> View this message in context: http://www.nabble.com/do-i-need-to-use-velocity-for-nicetabs-feature--tf4332647.html#a12339528
> Sent from the struts-menu-user mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>


--
http://raibledesigns.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
struts-menu-user mailing list
struts-menu-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Re: do i need to use velocity for nicetabs feature?

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, I don't know if a solution. If you believe this is a bug in
Struts Menu, please enter an issue in JIRA:

http://issues.appfuse.org/browse/SM

If you have any issues creating an account, please let me know.

Matt

On 8/28/07, robinbajaj <robinbajaj@...> wrote:

>
> Hi Matt,
> This is how the struts-menu displays in I.E when using the regular
> tabbedMenu example.
> http://www.nabble.com/file/p12367028/image073.gif
>
> When i replace the CSS and Javascript , I get the following menu..
> http://www.nabble.com/file/p12367028/image072.gif   (note: the submenu is in
> the top-left corner of the screen, and tab pics are not displaying..this is
> what i meant, when I said "not working")
>
> When I click on the links the tab contents do change just fine.. so I can
> tell that javascript is working fine.
>
> Seems like either my jsp is not picking up the css (which it should since
> its picking the regular tabs.css without problem) OR the CSS is just not
> picking up the styles properly .. (especially the background image one and
> the one that displays the sub-tabs..this is where i will need someone's help
> to figure out why not..?)
>
> my css is in WebRoot/css directory
> , my javascript is in Webroot/scripts directory, I simply changed my
> tabbedMenu.jsp to point to my new .css and .js files like this
> ================================
> <link rel="stylesheet" type="text/css" media="screen"
> href="http://localhost:8082/oBCTS5_jboss/css/nicetabs.css" />
>
>     <script type="text/javascript"
> src="http://localhost:8082/oBCTS5_jboss/scripts/nicetabs.js"></script>
> ================================
>
> it was originally working with simple tabbed Menu with this code..
> ================================
> <head>
>     <title>Expandable List Menu Example, using DHTML</title>
>     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>     <link rel="stylesheet" type="text/css" media="screen"
> href="http://localhost:8082/oBCTS5_jboss/css/global.css" />
>     <link rel="stylesheet" type="text/css" media="screen"
> href="http://localhost:8082/oBCTS5_jboss/css/tabs.css" />
>     <script type="text/javascript"
> src="http://localhost:8082/oBCTS5_jboss/scripts/tabs.js"></script>
> </head>
> ================================
>
> Just to make sure the images do get picked up by .css file, I have moved the
> images in the same directory as the css files (for debugging this issue) and
> accessing them as (which should be fine too..)
> =================================
>   background:#DAE0D2 url('bg.gif') repeat-x bottom;
>   background:url('left_both.gif') no-repeat left top;
>   background:url('right_both.gif') no-repeat right top;
> =================================
>
> but the problem is still there..
> Can you please help me with this issue,
> thanks,
> robin
>
> mraible wrote:
> >
> > If you look at the templates for tabs and nicetabs - they're the same:
> >
> > http://demo.raibledesigns.com/struts-menu/templates/tabs.html.src
> > http://demo.raibledesigns.com/struts-menu/templates/nicetabs.html.src
> >
> > So yes, you should be able to just change the JavaScript and CSS. You
> > said you've tried this. When you said it "doesn't seem to work" -
> > what's the issue you're experiencing?
> >
> > Matt
> >
> > On 8/26/07, robinbajaj <robinbajaj@...> wrote:
> >>
> >> Hi there,
> >> I have a working TabbedMenu version in my webapp as shown on this link:
> >> link#1 - http://demo.raibledesigns.com/struts-menu/tabbedMenu.jsp?People
> >>
> >> I want to incorporate the nicetabs version shown on this page
> >> link#2 -
> >> http://demo.raibledesigns.com/struts-menu/velocity-nicetabs.jsp?People
> >>
> >> a) Do I have to use Velocity Templates for it,
> >> b) or can I simply replace my original  .css,.js (and image) files (that
> >> I
> >> got from link#1) and replace them with the ones from link#2.
> >>
> >> I gave (b) a quick try and it doesn't seem to work.. just wanted to
> >> confirm
> >> before spending any more time in this, i.e VelocityTemplates are required
> >> for sure, then I might as well learn how to integrate them etc.
> >> Any helpful pointers will be highly appreciated,
> >> thanks,
> >> robin
> >>
> >>
> >>
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/do-i-need-to-use-velocity-for-nicetabs-feature--tf4332647.html#a12339528
> >> Sent from the struts-menu-user mailing list archive at Nabble.com.
> >>
> >>
> >> -------------------------------------------------------------------------
> >> This SF.net email is sponsored by: Splunk Inc.
> >> Still grepping through log files to find problems?  Stop.
> >> Now Search log events and configuration files using AJAX and a browser.
> >> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> >> _______________________________________________
> >> struts-menu-user mailing list
> >> struts-menu-user@...
> >> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> >>
> >
> >
> > --
> > http://raibledesigns.com
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > _______________________________________________
> > struts-menu-user mailing list
> > struts-menu-user@...
> > https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> >
> >
>
> --
> View this message in context: http://www.nabble.com/do-i-need-to-use-velocity-for-nicetabs-feature--tf4332647.html#a12367028
> Sent from the struts-menu-user mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user@...
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>


--
http://raibledesigns.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
struts-menu-user mailing list
struts-menu-user@...
https://lists.sourceforge.net/lists/listinfo/struts-menu-user
LightInTheBox - Buy quality products at wholesale price