You can do that with Mabon. That allows you to call MEthods of a backing bean by JavaScript
-M On 1/11/07, Oellien, F (Frank) <[EMAIL PROTECTED]> wrote:
In the end I only want to call functions in my backing beans. For example selecting menuitems in the view menu should call functions in the layoutBean. Or clicking on a start-toolbar-button should call a start method in the workingBean. Usually I do this with the JSF components by using action and actionListener. However in the case of the Dojo menu there are no JSF components to use and I have to implement a way that will call a bean function by using the onClick Javascript method. One way is to embedd a h:inputHidden component which is bind to a bean function, modify it with Javascript by clicking the onClick function in the dojo component and finally sending the form to the server. Is there also an alternative which maybe does not require a JSF component to call the backing bean functions? Currently I do not use ajax functionalities in my application. However, this should happen in the near future, because every action in the page leads to a reload of the page which can take quite long (more precise the layout calculation) depending on the Dojo components implemented. > -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Werner Punz > Sent: Donnerstag, 11. Januar 2007 10:52 > To: [email protected] > Subject: Re: Dojo Menu2 and JSF > > Oellien, F (Frank) schrieb: > > How can I connect onClick Events like in Dojo Menu2 or Dojo > Button to > > my JSF environment. > > At least I want to communicate with my BackingBeans. Is > there a way to > > solve this with Javascript? > > > > I tried to understand the behavior of the JSCookMenu > example but it is > > not very clear to me what happens there. > > > yes there is a way, you can use forceId in the jsf tomahawk > tags to have clearly identifyable ids on the components and > then you can use them as normal html dom tree objects the way > you are used to. > > The rest is dojo javascript scripting. > As for the backing beans what do you want to achieve? The > backing bean values are set and get during page refreshes, > ajax might be the way to go if you want to avoid that or > partial page rendering. > > -------------------------------------- This message, including attachments, is confidential and may be privileged. If you are not an intended recipient, please notify the sender then delete and destroy the original message and all copies. You should not copy, forward and/or disclose this message, in whole or in part, without permission of the sender. --------------------------------------
-- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com

