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
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
>
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
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
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
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
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
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
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
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}"
>
10 matches
Mail list logo