[Trinidad] How to detect that we are in a dialog?

2009-03-26 Thread Rafa Pérez
Hi all, we have several pages that can be opened either in the normal flow of the application or as dialogs. Is it possible to programmattically know if a window is opened as a dialog? Thanks in advance, -- Rafa PS: We are using Trinidad 1.0.10 and MyFaces 1.1.6

[Trinidad] FacesMessage's and partialSubmit

2009-03-26 Thread Adme Admirolas
Hello, I'm trying to create form with partialSubmit, and having problems displaying FacesMessage's. My jsp is: h:panelGroup tr:messages partialTriggers=login logout/tr:messages tr:form partialTriggers=login logout rendered=#{!loginBean.logged} tr:inputText value=#{loginBean.login}

Javascript in button element

2009-03-26 Thread drizzo
Hi everybody, i have this code: tr:commandButton id=responseButton action=#{responseMgdBean.rResponse} icon=/images/ico_#{responseButton.behaviour}.gif binding=#{dealCalculatorMgdBean.buttonAccepted} text=#{responseButton.label}

Re: Javascript in button element

2009-03-26 Thread Anton Gavazuk
Of course use onClick attribute. 2009/3/26 drizzo danilo.ri...@accenture.com Hi everybody, i have this code: tr:commandButton id=responseButton action=#{responseMgdBean.rResponse} icon=/images/ico_#{responseButton.behaviour}.gif

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 danilo.ri...@accenture.com Hi everybody, i have this code: tr:commandButton

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: [Trinidad] How to detect that we are in a dialog?

2009-03-26 Thread Walter Mourão
Not sure if it is possible per si, but you can set a flag in the pageFlowScope to be checked inside the (supposed) dialog page, like: tr:commandButton ... tr:setActionListener from=#{row} to=#{pageFlowScope.dialogFlag} / /tr:commandButton Cheers, Walter Mourão http://waltermourao.com.br

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 sense

[Tomahawk] pannelTabbedPane

2009-03-26 Thread SANTINI, Rafael
Hi, In the action bean, how can I determine what is the selected tab? Thanks, Rafael Santini

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 danilo.ri...@accenture.com wrote: i should notify to parent page the result of the

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: 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 you

Re: [Trinidad] Facelets forward

2009-03-26 Thread Zigc Junk
Since you use facelets, can you do something like html jsfc=trh:html xmlns=http://www.w3.org/1999/xhtml; xmlns:ui=http://java.sun.com/jsf/facelets; xmlns:c=http://java.sun.com/jsp/jstl/core; xmlns:f=http://java.sun.com/jsf/core; xmlns:h=http://java.sun.com/jsf/html;

Re: Javascript in button element

2009-03-26 Thread Anton Gavazuk
WHat is the result of button execution? New page? 2009/3/26 drizzo danilo.ri...@accenture.com 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

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 danilo.ri...@accenture.com No i have an iframe, when the button is clicked must be execute

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,

Re: [Tomahawk] pannelTabbedPane

2009-03-26 Thread Leonardo Uribe
Hi t:panelTabbedPane has a property called selectedIndex. regards Leonardo Uribe On Thu, Mar 26, 2009 at 9:09 AM, SANTINI, Rafael raf...@santini.eti.brwrote: Hi, In the action bean, how can I determine what is the selected tab? Thanks, Rafael Santini