You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Paulo Ricardo Ribeiro <pa...@gmail.com> on 2012/01/05 16:43:44 UTC
Mixin on page load
Hello,
this may be a noob question, but here goes :p
I have a mixin which I obtained from here:
http://exanpe-t5-lib.appspot.com/components/dialog/example1
and it goes something like this:
<t:pagelink page="Index"
t:mixins="exanpe/dialog" t:renderMode="info"
t:message="literal:This link is disabled !">Go to index</t:pagelink>
This shows a dialog with some information.
My question is the following:
Is there a way to "invoke" this dialog on page load? I mean, there's a page
that when the user goes to it, i would like to show some message.
I hope I've made myself clear.
Thanks
Paulo Ricardo
Re: Mixin on page load
Posted by Paulo Ricardo Ribeiro <pa...@gmail.com>.
Hello Laurent
I just want to say "Merci beaucoup" :)
That was exactly what I needed.
Cheers
Paulo Ricardo
On Thu, Jan 5, 2012 at 5:01 PM, Guerin Laurent <lg...@sopragroup.com>wrote:
> Hi Paulo Ricardo,
> This is not a noob question.
>
> You can put the dialog mixin on the invisible Tapestry component any.
> After, Dialog provide Javascript handler that you can invoke on DOM ready.
> The JS doc for Exanpe Dialog (with differents handlers) is available here
> :
> http://exanpe.github.com/exanpe-t5-lib/jsdoc/symbols/Exanpe.Dialog.html#constructor
>
> Example :
>
> <t:any t:id="mydialog" t:mixins="exanpe/dialog" t:renderMode="info"
> t:message="literal:My INFO message" />
>
> <script type="text/javascript">
> YAHOO.util.Event.onDOMReady(function(){
> mydialog.show();
> });
> </script>
>
> Laurent
>
> -----Message d'origine-----
> De : Paulo Ricardo Ribeiro [mailto:paulo.ricardo@gmail.com]
> Envoyé : jeudi 5 janvier 2012 16:44
> À : Tapestry users
> Objet : Mixin on page load
>
> Hello,
>
> this may be a noob question, but here goes :p
>
> I have a mixin which I obtained from here:
>
> http://exanpe-t5-lib.appspot.com/components/dialog/example1
>
> and it goes something like this:
>
> <t:pagelink page="Index"
> t:mixins="exanpe/dialog" t:renderMode="info"
> t:message="literal:This link is disabled !">Go to index</t:pagelink>
>
> This shows a dialog with some information.
>
> My question is the following:
>
> Is there a way to "invoke" this dialog on page load? I mean, there's a
> page that when the user goes to it, i would like to show some message.
>
>
> I hope I've made myself clear.
>
>
> Thanks
>
> Paulo Ricardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
RE: Mixin on page load
Posted by Guerin Laurent <lg...@sopragroup.com>.
Hi Paulo Ricardo,
This is not a noob question.
You can put the dialog mixin on the invisible Tapestry component any.
After, Dialog provide Javascript handler that you can invoke on DOM ready.
The JS doc for Exanpe Dialog (with differents handlers) is available here : http://exanpe.github.com/exanpe-t5-lib/jsdoc/symbols/Exanpe.Dialog.html#constructor
Example :
<t:any t:id="mydialog" t:mixins="exanpe/dialog" t:renderMode="info" t:message="literal:My INFO message" />
<script type="text/javascript">
YAHOO.util.Event.onDOMReady(function(){
mydialog.show();
});
</script>
Laurent
-----Message d'origine-----
De : Paulo Ricardo Ribeiro [mailto:paulo.ricardo@gmail.com]
Envoyé : jeudi 5 janvier 2012 16:44
À : Tapestry users
Objet : Mixin on page load
Hello,
this may be a noob question, but here goes :p
I have a mixin which I obtained from here:
http://exanpe-t5-lib.appspot.com/components/dialog/example1
and it goes something like this:
<t:pagelink page="Index"
t:mixins="exanpe/dialog" t:renderMode="info"
t:message="literal:This link is disabled !">Go to index</t:pagelink>
This shows a dialog with some information.
My question is the following:
Is there a way to "invoke" this dialog on page load? I mean, there's a page that when the user goes to it, i would like to show some message.
I hope I've made myself clear.
Thanks
Paulo Ricardo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org