Re: Javascript in button element

2009-03-26 Thread Glauco P. Gomes
With Trinidad you can "execute" javaScript in client side from the server side, look this code extracted from Matthias Wessendorf blog[1]: ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class); service.addScript(facesContext, "alert

Re: Javascript in button element

2009-03-26 Thread drizzo
is the string identifier for the new page... and before to load the new page i should run a javascript Anton Gavazuk wrote: > > WHat is the result of button execution? New page? > > 2009/3/26 drizzo > >> >> >> No i have an iframe, when the button is clicked must be execute the >> method >

Re: Javascript in button element

2009-03-26 Thread Anton Gavazuk
WHat is the result of button execution? New page? 2009/3/26 drizzo > > > No i have an iframe, when the button is clicked must be execute the method > specified in the action attribute, and after I should call a javascript > function (this is used to notify to a parent page the outcome) > > Than

Re: Javascript in button element

2009-03-26 Thread drizzo
No i have an iframe, when the button is clicked must be execute the method specified in the action attribute, and after I should call a javascript function (this is used to notify to a parent page the outcome) Thanks D. Rafa Pérez wrote: > > Parent page? If you are inside a dialog, then yo

Re: Javascript in button element

2009-03-26 Thread Simon Kitching
Maybe he means that the JSF page is in a popup window? Or maybe it is in an html Frame? Danilo, you need to write your question better. We cannot read your mind and guess what you are really asking about... Rafa Pérez schrieb: > Parent page? If you are inside a dialog, then you can define a > re

Re: Javascript in button element

2009-03-26 Thread Rafa Pérez
Parent page? If you are inside a dialog, then you can define a returnListener method in the opener button to execute some logic when the dialog is closed. HTH, -- Rafa On Thu, Mar 26, 2009 at 2:54 PM, drizzo wrote: > > i should notify to parent page the result of the action. so i need wait the

Re: Javascript in button element

2009-03-26 Thread drizzo
i should notify to parent page the result of the action. so i need wait the action is finished... i don't if is it possible Danilo Simon Kitching wrote: > > For normal command-button usage, the current html page is submitted and > *completely* replaced by a new HTML page. So it makes no sen

Re: Javascript in button element

2009-03-26 Thread Simon Kitching
For normal command-button usage, the current html page is submitted and *completely* replaced by a new HTML page. So it makes no sense to talk about running javascript "after" the action. Are you perhaps using these command-buttons within an AJAX pane, and want some javascript to execute after the

Re: Javascript in button element

2009-03-26 Thread drizzo
but onClick event is triggered after the action tag or before? If is before, there is a way to excute a scritp after the action? Anton Gavazuk wrote: > > Of course use onClick attribute. > > 2009/3/26 drizzo > >> >> Hi everybody, >> >> i have this code: >> >> >action="#{re

Re: Javascript in button element

2009-03-26 Thread Anton Gavazuk
Of course use onClick attribute. 2009/3/26 drizzo > > Hi everybody, > > i have this code: > > action="#{responseMgdBean.rResponse}" >icon="/images/ico_#{responseButton.behaviour}.gif" >binding="#{dealCalculatorMgdBean.buttonAccepted}" >