You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sven Homburg <ho...@googlemail.com> on 2008/06/24 22:03:11 UTC
Re: T5: t5Components Window seems not to support showEffect and other options
here a short sample intial closed window:
MyPage.tml snippet:
<a href="javascript:showWindow()">Open Window</a>
<div t:id="window"/>
<script type="text/javascript">
function showWindow()
{
${window2.componentResources.id}.setTitle("This is Window 2")
${window2.componentResources.id}.setHTMLContent("... here come some
senseless content ...")
${window2.componentResources.id}.showCenter()
}
</script>
MyPage.java snippet
@Component(parameters = {"width=300", "height=300",
"style=bluelighting", "show=false"})
@Property
private Window window;
2008/6/24 Martijn Brinkers (List) <ma...@gmail.com>:
> I'm trying to change some options for the t5Components/Window component
> but I cannot get the showEffect correct. I extended Window and override
> the configure method:
>
> protected void configure(JSONObject options)
> {
> options.put("showEffect", "Element.show");
> }
>
> What's generated though is:
>
> new Window({..... "showEffect":"Element.show"});
>
> which seems not to work. When I change it (by hand) to
>
> new Window({..... "showEffect":Element.show});
>
> it is working. It seems that Window cannot handle the quotes that are
> added by JSONObject.
>
> Is this is a known issue?
>
> Martijn Brinkers
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com
Re: T5: t5Components Window seems not to support showEffect and other options
Posted by Sven Homburg <ho...@googlemail.com>.
ok, now i understand
for this problem there is an issue in tapestry jira
http://issues.apache.org/jira/browse/TAPESTRY-2234
2008/6/24 Martijn Brinkers (List) <ma...@gmail.com>:
> Thanks,
>
> but that doesn't solve my problem :)
>
> I'm unable to set showEffect and some other properties (see my original
> posting) because of quoting.
>
> Martijn Brinkers
>
> On Tue, 2008-06-24 at 22:03 +0200, Sven Homburg wrote:
> > here a short sample intial closed window:
> >
> > MyPage.tml snippet:
> >
> > <a href="javascript:showWindow()">Open Window</a>
> >
> > <div t:id="window"/>
> >
> > <script type="text/javascript">
> > function showWindow()
> > {
> > ${window2.componentResources.id}.setTitle("This is Window 2")
> > ${window2.componentResources.id}.setHTMLContent("... here come
> some
> > senseless content ...")
> > ${window2.componentResources.id}.showCenter()
> > }
> > </script>
> >
> > MyPage.java snippet
> >
> > @Component(parameters = {"width=300", "height=300",
> > "style=bluelighting", "show=false"})
> > @Property
> > private Window window;
> >
> >
> > 2008/6/24 Martijn Brinkers (List) <ma...@gmail.com>:
> >
> > > I'm trying to change some options for the t5Components/Window component
> > > but I cannot get the showEffect correct. I extended Window and override
> > > the configure method:
> > >
> > > protected void configure(JSONObject options)
> > > {
> > > options.put("showEffect", "Element.show");
> > > }
> > >
> > > What's generated though is:
> > >
> > > new Window({..... "showEffect":"Element.show"});
> > >
> > > which seems not to work. When I change it (by hand) to
> > >
> > > new Window({..... "showEffect":Element.show});
> > >
> > > it is working. It seems that Window cannot handle the quotes that are
> > > added by JSONObject.
> > >
> > > Is this is a known issue?
> > >
> > > Martijn Brinkers
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com
Re: T5: t5Components Window seems not to support showEffect and
other options
Posted by "Martijn Brinkers (List)" <ma...@gmail.com>.
Thanks,
but that doesn't solve my problem :)
I'm unable to set showEffect and some other properties (see my original
posting) because of quoting.
Martijn Brinkers
On Tue, 2008-06-24 at 22:03 +0200, Sven Homburg wrote:
> here a short sample intial closed window:
>
> MyPage.tml snippet:
>
> <a href="javascript:showWindow()">Open Window</a>
>
> <div t:id="window"/>
>
> <script type="text/javascript">
> function showWindow()
> {
> ${window2.componentResources.id}.setTitle("This is Window 2")
> ${window2.componentResources.id}.setHTMLContent("... here come some
> senseless content ...")
> ${window2.componentResources.id}.showCenter()
> }
> </script>
>
> MyPage.java snippet
>
> @Component(parameters = {"width=300", "height=300",
> "style=bluelighting", "show=false"})
> @Property
> private Window window;
>
>
> 2008/6/24 Martijn Brinkers (List) <ma...@gmail.com>:
>
> > I'm trying to change some options for the t5Components/Window component
> > but I cannot get the showEffect correct. I extended Window and override
> > the configure method:
> >
> > protected void configure(JSONObject options)
> > {
> > options.put("showEffect", "Element.show");
> > }
> >
> > What's generated though is:
> >
> > new Window({..... "showEffect":"Element.show"});
> >
> > which seems not to work. When I change it (by hand) to
> >
> > new Window({..... "showEffect":Element.show});
> >
> > it is working. It seems that Window cannot handle the quotes that are
> > added by JSONObject.
> >
> > Is this is a known issue?
> >
> > Martijn Brinkers
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org