On Tue, Jul 8, 2008 at 12:16 PM, dushyant agarwal
<[EMAIL PROTECTED]> wrote:
>
> I never got further response on this problem. Please help!

I said you use the API in the right way.
I also pointed you to a *working* example.

I am pretty sure, something is wrong on your side.

Please check all details from my *working* example.

-M

>
> Thanks,
> Dushyant
> --- On Fri, 4/7/08, dushyant agarwal <[EMAIL PROTECTED]> wrote:
>
> From: dushyant agarwal <[EMAIL PROTECTED]>
> Subject: Re: [TRINIDAD]Java Script not executing on calling Service's
> addScript method
> To: [email protected]
> Cc: [EMAIL PROTECTED]
> Date: Friday, 4 July, 2008, 2:04 PM
>
> I don't know how this thing is supposed to work . Does my browser require s=
> omething extra(related to DOJO)to make the alert work. I read the source fi=
> le at the location you provided and executed exactly the same code but my a=
> lert did not come up.
>
> Any suggestion........
>
> Thanks,
> Dushyant
>
> --- On Wed, 2/7/08, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> From: Matthias Wessendorf <[EMAIL PROTECTED]>
> Subject: Re: [TRINIDAD]Java Script not executing on calling Service's addSc=
> ript method
> To: "MyFaces Discussion" <[email protected]>
> Date: Wednesday, 2 July, 2008, 12:27 PM
>
> Hi,
>
> On Wed, Jul 2, 2008 at 8:50 AM, Elmar Kretzer <[EMAIL PROTECTED]>
> wrote:
>> Hi Dushyant,
>> i don`t know if its necessary - put did you set the commandLink to
>> partialsubmit=3D"true" ?
>>
>> @see
>>
> http://matthiaswessendorf.wordpress.com/2008/02/16/using-dojo-and-apache-tr=
> inidad/
>
> works without that.
> There is a demo available here:
> http://svn.apache.org/repos/asf/myfaces/trinidad/trunk/trinidad-examples/tr=
> inidad-blank/
>
> -M
>
>> elmar
>> Am 02.07.2008 um 08:41 schrieb dushyant agarwal:
>>
>> Hi,
>> I created a JSF Page with a tr:commandButton in it. Inside its action
> method
>> I wrote the following code:-
>> public String action(){
>> ExtendedRenderKitService service=3D
>>
> Service.getRenderKitService(FacesContext.getCurrentInsatnce(),ExtendedRende=
> rKitService.class
>> );
>>
>> service.addScript(FacesContext.getCurrentInsatnce(),"alert( '
> hello Trinidad
>> ' );");
>>
>> }
>>
>> This was supposed to open a Windows alert box with" hello trinidad
> " written
>> on clicking the command Button.
>>
>> But Nothing happens on doing so!!! What am I doing wrong???  PL. help!!!!=
> !
>>
>> Thanks,
>> Dushyant
> ________________________________
> Best Jokes, Best Friends, Best Food. Get all this and more on Best of Yahoo!
> Groups.
>
> ________________________________
> Meet people who discuss and share your passions. Join them now.



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Reply via email to