I will post code as soon as I can.
I set the tooltip in a java code in my jsp page (in the jsp there is the
code that generates the menu).
I get the values from a .proprties file.

here is a portion of the java code in my jsp:
..........
Iterator<Nodo> i = lista.iterator();
while (i.hasNext()) {
        Nodo n = i.next();
        MenuComponent mc = new MenuComponent();
        if(n.getNodoPadre() == null && n.getRaggr().equals(Boolean.TRUE)){
                mc.setName(n.getDesRaggr());
                mc.setTitle(n.getDesRaggr());
                mc.setToolTip("message2");
                repository.addMenu(mc);
        } else {
                mc.setName(n.getDesRaggr());
                mc.setTitle(n.getDesRaggr());
                mc.setToolTip("message2");
                repository.addMenu(mc);
        }
}
..........

my problem is to get the tooltip value in a dynamic way, "open" if menu is
closed "close" if the menu is opened. passing values from javascript
(menuExpandable.js) to the code above.

Thank you so!


Matt Raible-3 wrote:
> 
> Are you setting the tooltip in menu-config.xml or some other way?  
> Currently, I don't understand your problem well enough to help you  
> solve it. Posting code and screenshots usually helps a lot.
> 
> Matt
> 
> On Jan 21, 2009, at 1:56 PM, stevieray81 wrote:
> 
>>
>> I can't post it at the moment.
>> I'm using ListMenuDisplayer with menuExpandable.js and I had to set  
>> the
>> tooltip in a java code in a jsp page.
>> Thank you
>>
>>
>> Matt Raible-3 wrote:
>>>
>>> Can you post you project to a URL I can look at? What displayer/menu
>>> are you using?
>>>
>>> Matt
>>>
>>> On Jan 21, 2009, at 11:43 AM, stevieray81 <azzarone.and...@gmail.com>
>>> wrote:
>>>
>>>>
>>>> Thank you.
>>>> baut I see that tooltip is setted in the code in jsp page, how can I
>>>> get
>>>> informations from javascript to my java code?
>>>> sorry, I don't understand.
>>>>
>>>>
>>>> Matt Raible-3 wrote:
>>>>>
>>>>> You should be able to use JavaScript to do this. It's all HTML, CSS
>>>>> and JavaScript in the end.
>>>>>
>>>>> Matt
>>>>>
>>>>> On Jan 21, 2009, at 11:25 AM, stevieray81 wrote:
>>>>>
>>>>>>
>>>>>> Hello,
>>>>>> I'm working on an existing prject.
>>>>>> There's a javascript file that perform open and close menu actions
>>>>>> (struts-menu).
>>>>>> I have to change menu tooltip in "CLOSE" if the menu is opened and
>>>>>> "OPEN" if
>>>>>> the menu is closed.
>>>>>> The code that creates menu and set the tooltips is included in a
>>>>>> scriptlet
>>>>>> in a jsp page.
>>>>>> How can I retrieve the information on menu status (open or close)
>>>>>> and use it
>>>>>> to set the tooltip in my java code?
>>>>>>
>>>>>> Thank you very much.
>>>>>>
>>>>>> p.s.
>>>>>> sorry but english is not my first language
>>>>>> -- 
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/struts-menu-tooltip-tp21589154p21589154.html
>>>>>> Sent from the struts-menu-user mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---
>>>>>> ---
>>>>>> ---
>>>>>> ---
>>>>>> ------------------------------------------------------------------
>>>>>> This SF.net email is sponsored by:
>>>>>> SourcForge Community
>>>>>> SourceForge wants to tell your story.
>>>>>> http://p.sf.net/sfu/sf-spreadtheword
>>>>>> _______________________________________________
>>>>>> struts-menu-user mailing list
>>>>>> struts-menu-user@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>>>>>
>>>>>
>>>>> ---
>>>>> ---
>>>>> ---
>>>>> ---------------------------------------------------------------------
>>>>> This SF.net email is sponsored by:
>>>>> SourcForge Community
>>>>> SourceForge wants to tell your story.
>>>>> http://p.sf.net/sfu/sf-spreadtheword
>>>>> _______________________________________________
>>>>> struts-menu-user mailing list
>>>>> struts-menu-user@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>>>>>
>>>>>
>>>>
>>>> -- 
>>>> View this message in context:
>>>> http://www.nabble.com/struts-menu-tooltip-tp21589154p21589540.html
>>>> Sent from the struts-menu-user mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---
>>>> ---
>>>> ---
>>>> ---------------------------------------------------------------------
>>>> This SF.net email is sponsored by:
>>>> SourcForge Community
>>>> SourceForge wants to tell your story.
>>>> http://p.sf.net/sfu/sf-spreadtheword
>>>> _______________________________________________
>>>> struts-menu-user mailing list
>>>> struts-menu-user@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>>>
>>> ------------------------------------------------------------------------------
>>> This SF.net email is sponsored by:
>>> SourcForge Community
>>> SourceForge wants to tell your story.
>>> http://p.sf.net/sfu/sf-spreadtheword
>>> _______________________________________________
>>> struts-menu-user mailing list
>>> struts-menu-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/struts-menu-tooltip-tp21589154p21591991.html
>> Sent from the struts-menu-user mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> SourcForge Community
>> SourceForge wants to tell your story.
>> http://p.sf.net/sfu/sf-spreadtheword
>> _______________________________________________
>> struts-menu-user mailing list
>> struts-menu-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> struts-menu-user mailing list
> struts-menu-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts-menu-tooltip-tp21589154p21593618.html
Sent from the struts-menu-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
struts-menu-user mailing list
struts-menu-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to