JSF Tomahawk Dynamic Menu jsCookMenu Param Passing Question .. Help Please!

Hello everyone,
Thank you again for your help. Let me explain what my issue is.
I am currently developing a JSF 1.2 application using WDSC 7 (RAD 7). I am trying to
develop a shopping cart application. The part I am stuck on is the menu.
I need to draw a menu with drop downs with multiple levels. The first level is the category
and the second level is the item name. The menu must be dynamically built from a Database table.
After searching high and low I came across jsCookMenu component which requires Tomahawk to be installed.
I installed this ontop of my IBM JSF implementation and it seems to be working fine.
I currently have a MenuBean which calls a database and populates a NavigationMenuItems array and passes
that to the jsCookMenu component which then renders that to the client.
This works fine.
Here is my question. When the user selects the first level of the menu, I want to call a page called
GetCategory.jsp?catID=num num being the category id selected. When they select the second level of the
menu, I want it to then call GetItem.jsp?itemID=num. I know I can use the action attribute of the menu
item or a direct URL (which pops it up in a new window).
Basically, I need to pass a parameter to an action (again I am somewhat new to JSF) or I need
to call the page directly passing the request parameter.
Am I going about this the wrong way, and if so, what way should I be going?
Secondly, is there a better, cleaner implementation or component I can use instead.
I'm using Tomahawk just for the one component.. That's it.
Any help anyone can provide I would greatly appreciate it.
Thanks so much!
Matt

That is correct.
I have the menu populating dynamically built from a JavaBean.
It works beautifully.
Level 1 is the Category - the action is DisplayCategory
Level 2 is the Item - the action is DisplayItem
Level 3 is the Style - the action is DisplayStyle
My problem is, on each page, DisplayCategory/DisplayItem/etc how do I know which menu item was clicked?
Anyone have any idea?
Thanks,
Matt

Similar Messages

  • New/Additional phone line question- help please!

    Hi
    I am after some advice, and every time I call BT I get passed around as I am not 100% on what to ask for, or who I should speak to.
    Basically, we have 2 phone lines coming into the house.  One line/number + broadband signal goes via a repeater to the office which is a separate building across the garden (approx 300m but I am not sure on the actual distance).  The signal is not great, for the broadband particularly - often drops out etc.  To solve this we would like a new physical line installed in the office building to give us a separate phone and broadband package to that of the main house, but ideally keeping the same number as we currently use in the office.  The office is used everyday for working from home and so is important to us.
    Does that make sense?  I fully expect that an engineer will need to look at the site, and there will be a (significant) charge for the line to be installed (underground pipe work for cables already exists from house to office building and so this could be utilised).  Do I just place an order for a new line online, and wait for an engineer's visit?  Can I deal with changing the number at a later date if that is easier for the system to deal with?  Last time I rang BT, I was told I needed to speak to the exceptions team, when I was put through to them she told me all I needed to do was speak to customer services, customer services thought I was trying to move home and then didn't seem to understand what I needed (but it was probably how I was explaining it!).
    I would be so grateful if someone could point me in the right direction, or give me tips on what to ask for.  My main worry is keeping the same phone number as it would be so much easier.
    Thanks in advance
    MPA

    this link may help http://www.openreach.co.uk/orpg/home/network/whoar​eyou/selfbuild/selfbuild.do
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • Dynamic strings from stringtokenizer..any help please?

    basically u hav a jsp search page...and on the page is a textbox where a user can type in information they want to match.
    now they hav to type it in a way so that the criteria is separated by 'AND' i.e. search greg AND ching
    and this should be taken from the textbox...passed into a process javabean...broken up into separate strings
    i.e.
    String one = greg
    String two = ching
    and then i will input this into an sql statement to search the database.
    my question is what i have done so far is this...
    String searchCriteria = request.getParameter("searchArea");
    String target = "";
    String nextTarget = "";
    StringTokenizer token = new StringTokenizer(searchCriteria,"AND");
    while(token.hasMoreTokens()) {
    target = token.nextToken();
    out.println(target);
    which basically gets the data from the textbox...separates the criteria when it sees AND and then saves it in a string called target
    so at the moment the String target will be = greg ching
    is there anyway i can separate the criteria via AND (like above) and save it in separate String variables rather than just one?
    bare in mind that if they enter 3 criteria....like greg AND ching AND struggling then it should make 3 strings and save it in them respectively
    thanks a lot...im sure its a minor thing butu see im really really thick :o(

    Sure... a couple of ways you could do it..
    StringTokenizer token = new StringTokenizer(searchCriteria,"AND");
    String[] criteria = new String[token.countTokens()];
    int j=0;
    while(token.hasMoreTokens())
      criteria[j] = token.nextToken();
    /* OR  */
    StringTokenizer token = new StringTokenizer(searchCriteria,"AND");
    ArrayList criteria = new ArrayList();
    while(token.hasMoreTokens())
      criteria.add(token.nextToken());

  • Memory Question Help Please

    Alright ive never really been to smart on memory and how it runs and all that. The Question is I have a gig of ram on my mac book but right now it says only 30 mb is free
    wired: 221mb
    active: 524mb
    inactive: 247 mb
    used: 993mb
    now is that normal cause i mean im hardly using anything im using like safari, aim, and itunes. seems like more memory should be free and crap.

    Hi,
    here is link toe help you understand better:
    http://docs.info.apple.com/article.html?artnum=107918
    Good Luck

  • IPAD and UPdate to Airprint Printer question Help Please?

    I have an HP 6500 printer that I utilize with my MacbookPro (from 2007) and it operates just fine wirelessly using WiFi at home. I did note  though that my iPod cannot print to the printer as the printer IS NOT AIRPRINT equipped.
    MY QUESTION?
    I am considering purchasing an IPAD MINI (RETINA)equipped with KeyNote, Pages, etc., and am wondering If I invest in an AIRPRINT equipped printer in order to enable printing from the IPAD MINI, will I also still be able to print from my Macbook Pro (2007) which is not equipped with anything that interfaces with AIRPRINT to my new AIRPRINT printer? In other words, is this reversed engineered to allow printing from an older laptop to a brand new AIRPRINT printer?
    Hope you can help, so I don't waste money on a new printer and an IPAD only to find out I can no longer use my LapTop (MacbookPro) to print.
    Thanks you for any help.
    Charles

    Thanks, Jim.
    Going to give it a try, Now, after reading all the reviews on the various HP and Epson model all-in-one printers, my next chore will be to make the actual selection. It seems that there as many people who love each unit as there are who hate each unit. Confusing, but I will digest it over the next several days and make a choice.
    Thanks again,
    Charles

  • CS3 Questions, Help please?

    I've been gone for a while and I used to know this stuff backwards and forwards. Now that I have come back, I just can't seem to remember some things re. InDesign and shortcuts and keys. I've tried going to help but these don't come up in help and I did not get a book with CS3. I set my shortcut prefs to shortcuts for Quark 4 as in past.
    1. Is there a way to get the display preference to default to high quality display so it is there all the time?
    2. Where is the default for copy and then the paste going in front instead of pasting in back.
    3. I can use my shift/command/> to increase font size (and where is the preference for changing it by 1 point instead of 2 please) but the shift/command/< is not working at all.
    4. I have some documents that when I try to increase the leading by 1 point, the leading is increasing drastically almost as if there is a lock to some grid on but all the lock to grids and lock to baseline are not selected. I don't know who created these documents but I cannot find where they appear to be locked to grids. Any ideas.
    Thank you in advance for any help. I've been going thru tutorials but can't find the answers to these and I used to know these so well.

    Ann, I responded to your other query too, but are you sure you don't have "Paste Remembers Layers" turned on? If stuff you copy is on a layer that is behind something else, it will still be behind it after pasting because it will paste to the layer behind.
    Check your Layers flyout menu to see if this is the case.

  • Can't remember my security questions help please

    Can't remember security question

    The Three Best Alternatives for Security Questions and Rescue Mail
         If you do not have success with one, then try another:
            1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
            2.  Call Apple Support in your country: Customer Service: Contact Apple support.
            3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • Newbie audio question--help please...

    I recently recorded/captured video from Canon HV30 and unfortunately found that only Left audio channel was recorded..Right channel in non-existant. How do I duplicate the audio track from Left to Right so that both tracks are played in sync?
    I appreciate your help on this newbie question!

    When the left channel is filled you use the Fill Left effect
    The Fill Left effect duplicates the left channel information of the audio clip and places it in the right channel, discarding the original clip’s right channel information.
    Instead of putting the effect on each clip use the Audio Mixer.

  • Some start up questions (help please)

    Hello everyone. My name is Tom and its very nice to meet everyone.
    I have been, historically, using harware sequencers for my music (Korg M series, Korg O series, and most recently a Fantom X7).
    I have decided that I want to go the DAW route for my music for various reasons. At any rate here is what I'll be ordering next week....
    MacBookPro 2Ghz 15" (1 gig of ram to start 2x 512)
    Logic Pro
    M-Audio Keystation Pro 88 (my main instrument is piano)
    M-Audio Oxygen 8 v2 (I'll use this for synth sounds, strings, brass, triggers, etc)
    Presonus Firebox (portability)
    SIIG FireWire 800 1-Port ExpressCard/34 (the MBP only has 1 Firewire port)
    My Book Pro Edition 500 GB Ext HD (will connect to the FW 800 expresscard)
    Pair of Behringer Truths B2031a (I listened to these in a local store and I was really impressed.)
    I have various other instruments that I will use (guitars, bass, steel, etc) during recording but those arent the focus of these questions.
    To the point...
    1. Should I connect both Midi In and Out for the Keystation Pro?? (The midi thing is somewhat new since I'm coming from the hw sequencers and I never midi'd my boards together) I understand that I'll go from the midi out to the s/pdif cable in but will it be necessary for information to be returned to the ks pro?
    2. On the Presonus Firebox, is the s/pdif cable included with the interface??
    3. Any general impressions with my initial setup?? Please keep in mind that I will do all the music by myself... one track and one instrument at a time. (Which is why I thought the firebox would be sufficient for my needs) Any concerns with my ideas for setting it up?? KS Pro midi'd to presonus. presonus FW 400 to Mac. Oxygen 8 USB'd to Mac. My Book hard drive FW 800 through expresscard expansion. Will I have any compatibility issues or conflicts?
    Thanks so very much for any help and guidance.
    Tom

    Hi Tom
    Welcome to the forum!
    1) your keystation and Oxygen 8 will send and receive midi to Logic thru your usb connection. You can connect any other midi devices thru the keystation or using the Oxygen or Firebox midi ins & outs. Logic will recognize all of your midi connections. you just need to assign which midi keyboard or other outboard device is connected to which midi port in Logic's environment
    2) yes the spdif cable is included
    3) Your setup sounds nice. I personally don't like the firebox, I had one for a short time and got rid of it, but I know a few guys here use one and like them.
    Have fun
    Don

  • New to Solaris question help please

    Just successfully installed Solaris 10 on VMWare ESXi and assigned it 50GB of HDD space. When I type df -h I see that 79% of my disk is used and the rest of the storage is nowhere to be found.
    I'm new to Solaris is this because the rest of the drive hasn't been partitioned? Some help would be greatly appreciate so that I can take advantage of the rest of my volume...
    Thanks!
    Filesystem size used avail capacity Mounted on
    /dev/dsk/c0d0s0 7.9G 6.1G 1.7G 79% /
    /devices 0K 0K 0K 0% /devices
    ctfs 0K 0K 0K 0% /system/contract
    proc 0K 0K 0K 0% /proc
    mnttab 0K 0K 0K 0% /etc/mnttab
    swap 1.5G 880K 1.5G 1% /etc/svc/volatile
    objfs 0K 0K 0K 0% /system/object
    /usr/lib/libc/libc_hwcap1.so.1
    7.9G 6.1G 1.7G 79% /lib/libc.so.1
    fd 0K 0K 0K 0% /dev/fd
    swap 1.5G 2.2M 1.5G 1% /tmp
    swap 1.6G 84M 1.5G 6% /var/run
    /dev/dsk/c0d0s7 7.9G 8.0M 7.8G 1% /export/home
    /dev/dsk/c0d0s6 6.8G 7.0M 6.8G 1% /export/software
    /hgfs 16G 4.0M 16G 1% /hgfs
    /tmp/VMwareDnD 0K 0K 0K 0% /var/run/vmblock

    I don't recall allocating anything during installation.Which means that you did a default installation with no customization. Looking over your file system layout confirms this.
    I have an update df -h listing as well (I installed on a different system)
    # df -h
    Filesystem size used avail capacity Mounted on
    /dev/dsk/c1t0d0s0 4.6G 4.0G 596M 88% /
    /devices 0K 0K 0K 0% /devices
    ctfs 0K 0K 0K 0% /system/contract
    proc 0K 0K 0K 0% /proc
    mnttab 0K 0K 0K 0% /etc/mnttab
    swap 1.7G 868K 1.7G 1% /etc/svc/volatile
    objfs 0K 0K 0K 0% /system/object
    /usr/lib/libc/libc_hwcap1.so.1
    4.6G 4.0G 596M 88% /lib/libc.so.1
    fd 0K 0K 0K 0% /dev/fd
    swap 1.7G 120K 1.7G 1% /tmp
    swap 1.7G 24K 1.7G 1% /var/run
    /dev/dsk/c1t0d0s7 44G 245M 43G 1% /export/home
    From this, I understand that /dev/dsk/c1t0d0s0 has a size 4.6GB (assuming the OS is installed here) when I download items to the desktop, it appears they are placed in this "disk"?Depends on where you told Firefox to place them by default. You could just as easily configure it, Edit, Preferences, Main, Downloads, tell it to place the downloads somewhere else.
    > Also, /dev/dsk/c1t0d0s7 is where 44GB of free storage resides, I believe this is located in /export/home (as a folder with 44GB of space available) as far as my knowledge of Solaris is concerned.
    Correct. Solaris is a multi-user system that leaves plenty of space for user home directories which default to /export/home. IMNSHO the space that is leaves behind for / is usually small enough to make the system unusable after applying only a few patches. If you switch to OpenSolaris 2008.11 you can ZFS which will mitigate most of these problems.
    Just a little confusing to a newbie, coming from a Microsoft background (forgive me!) I am used to seeing volumes as icons in My Computer.The Windows tool for managing disks is nice and graphical.
    What's your advice for managing volumes, formating to ZFS, maybe some visual method of understanding volumes?If you haven't done much with the system then you might consider switching to OpenSolaris with the caveat that some parts of Solaris are not available in OpenSolaris because of licensing issues. However, for someone who's just starting out you won't miss them.
    For understanding, http://www.docs.sun.com / Solaris / Administration and then look for the two books on Disk Management. One is for ZFS and the other is for UFS. ZFS and Volume Manager Administration
    alan

  • Simple java question, help please

    please help
    -i am just starting out in java and im havin an early problem. Im trying to run a small java script from a commant prompt but im getting the following error after i enter this command at my prompt
    c:\javatest>javac HelloARP.java
    javac is not as an internal or external command, operable program or batch file.
    when i enter
    c:\java -version
    i get the following message: registry key software\javasoft\java runtime enviornment\current version has value of 1.1 but 1.4 is requiured
    error: could not find java.dll
    error: could not find java 2 runtime enviornment
    -im sure this is a simple error on my part. all im trying to do is run my first lil program that i saved in notepad, its only 5 lines long. here is the lil test program im trying to execute
    class HelloARP {
    public static void main (String[] arguments) {
    System.out.println("What's good ARP?");
    - all responses and help are welcomed. Thank you ahead of time for anyone that can help me get started.

    Hi
    First of all uninstall your current JDK installation, if you can get to the registry delete the registry entries for the old version of java which was there on your machine.
    Now do a fresh install of your j2sdk1.4.1, make sure that you will install the JRE with the J2SDK1.4.1.
    Once you are done, set your classpath in autoexec.bat if you are using Windows 95/98
    or set your environment variables if you are using Win NT/2000/XP.
    If using solaris or other unix flavors see the included installation instructions provided.
    Let me if you face the same problem.
    Thanks
    Swaraj

  • Burning software on Macbook Pro -- easy question, help please!

    Hi,
    sorry to sound like a bit of a retard....
    I am about to get a Macbook Pro (I am a mac virgin, switching from PC) and i was just wondering if Macbook Pro comes with a burning program included? and if so, what it is called?
    Thanks very much,
    Ani

    Yes, the MacBook Pro comes with a program called "Disk Utility". It can burn CDs and DVDs. You can do it also via the Finder, the Mac OS X "explorer" - in Windows world it's called Windows Explorer.
    Don't forget you can also install Windows on your MacBook Pro, and use PC burning software.
    Hope this helps.

  • DOWNGRADE PLAN + REMOVE LINES--question/help please

    On December 17, 2009, I signed up for the Nationwide Talk & Text 700 Plan; I have my 1 phone, plus 2 additional phones on this contract/plan (this is a TWO YEAR contract, with contract end date of December 17, 2011).
    On July 27, 2011, I broke my phone and had to purchase a new one (no issues/changes with the other 2 phones).  So now, the contract end date on my 1 new phone is July 27, 2013.
    On December 17, 2011, I would like to KEEP my 1 phone, but get rid of the 2 additional phones I have on my plan.  THEN, I want to change my plan to an individual, single-line plan.
    Will Verizon let me do this?  Will I have to pay a penalty?  I'm a little bit confused about my contract end date since I purchased a new phone before my original contract end date.
    Also, will the people that currently have the phone numbers for the 2 lines that I'm about to drop off my account, be able to keep those phone numbers?  I don't think they plan on staying with Verizon Wireless when they go to get their own calling plans.
    Thanks,
    Marie

    They can transfer their lines when the contract expires and you won't have a penalty. If you do it before the contract expires then there will be an ETF. You can switch to a normal plan from a family plan without any costs to you.

  • Upgrading Multiple Systems to Snow Leopard Question, HELP PLEASE

    Hey guys,
    I have 2 macs in my house, 1 that is running leopard, and 1 that is running tiger. I want to upgrade both of them to snow leopard, and I saw that in order for me to upgrade the one on tiger to snow leopard I must buy the box set. If I were to buy the Mac Box Set Family Edition for $229, would I be able to put the iwork and snowleopard on both my computers, the tiger one as well as the one on leopard? Or should I buy one box set for the tiger one, and the 29 dollar upgrade for the leopard one I got, is Iwork worth buying the family set for?
    -Adam

    If you get the box set family pack, you can upgrade both machines to Snow Leopard with iLife '09 and iWork '09. If you instead get the Snow Leopard Box Set and the Upgrade, you cannot, per the license, upgrade iLife and iWork to the '09 machines on the system that is currently running Leopard.
    Hence, the former solution is probably recommended.

  • Sound Blaster Z headphone gain and other questions, Help Please

    Hello all, I recently installed a Sound Blaster Z on my msi z77a-gd65 board running windows 8.1 and using the latest driver.
    I want to use the sound card for gaming via my headphones, but am running into several issues.
    1.The first is that it appears that my Headphone gain is set to high. I cannot set lower volumes correctly via headphone as it appears to go from very quiet to very loud and its only on 10 in windows. Ive looked through the Sound blaster control panel but have not found a setting to remedy this.
    Any help or tips with this problem will be appreciated.
    2.Also I use TeamSpeak 3 while gaming and it appears the surround effects are being applied to this voip program making people very difficult to hear.
    Is there a setting or a way to avoid this?
    3. Since I have to setup my speakers to 5.1 surround for the surround effects to take while in headphone the problem arises that while im back using the desktop speakers I will have to set the speakers back to stereo to get proper sound.
    Is there a way around this?
    Any help with any of these issues woukd be greatly appreciated.
    Thanks to all.

    Originally Posted by Anarion
    This card is loud as hell. I have to use line out at 10% and then use ACM at around 66% if I want to keep my hearing. Headphone out is basically unusable. What makes this annoying is that they do no allow putting card in headphone mode and output the sound through line out so I can't use headphone mode but I'm still using headphones.
    You haven't found a way to change this?
    The sad part is that I really like the sound it makes through my headphones, its just to ****ed loud. Its really defeating the whole porpoise of purchasing tis audio card in the first place.

Maybe you are looking for