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) <[EMAIL PROTECTED]>:

> 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) <[EMAIL PROTECTED]>:
> >
> > > 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: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com

Reply via email to