Re: [t5] Modal Windows with t5Components Window Class

2008-08-20 Thread Daniel Alonso Sanchez



Sven Homburg wrote:
> 
> give the showCenter methode the parameter value "true" and it should works
> 
> 2008/8/20 Daniel Alonso Sanchez <[EMAIL PROTECTED]>
> 
>>
>>
>>
>> # click here for modal
>> window
>>
>>
>> Sorry for disturbing again, but inside my js function called ShowWindow2
>> i
>> have the following code
>>
>>  function showWindow2(idSeccion )
>>{
>>${window2.componentResources.id}.setTitle("Ayuda");
>>
>> ${window2.componentResources.id
>> }.setURL("${generarEnlace}/${idProcedimiento}/"
>> + idSeccion);
>>${window2.componentResources.id}.showCenter();
>>}
>>
>> I believe that showCenter only shows the window centered but nothing
>> about
>> disabling the background. Thanks for your response ;D
>> --
>> View this message in context:
>> http://www.nabble.com/-t5--Modal-Windows-with-t5Components-Window-Class-tp19065217p19065726.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> with regards
> Sven Homburg
> http://www.chenillekit.org
> http://tapestry5-components.googlecode.com
> 
> 
> -
> best regards
> Sven
> 

Sorry Sven, I didn't see in your post the "true" value. Works perfectly!
Thanks a lot for your support =)

-- 
View this message in context: 
http://www.nabble.com/-t5--Modal-Windows-with-t5Components-Window-Class-tp19065217p19065930.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [t5] Modal Windows with t5Components Window Class

2008-08-20 Thread Daniel Alonso Sanchez



Sven Homburg wrote:
> 
>  # click here for modal
> window 
> 



# click here for modal
window 


Sorry for disturbing again, but inside my js function called ShowWindow2 i
have the following code

 function showWindow2(idSeccion )
{
${window2.componentResources.id}.setTitle("Ayuda"); 
   
${window2.componentResources.id}.setURL("${generarEnlace}/${idProcedimiento}/"
+ idSeccion);  
${window2.componentResources.id}.showCenter();
}

I believe that showCenter only shows the window centered but nothing about
disabling the background. That effect is what i want: the background
disabled and blue :D .Thanks for your response

-- 
View this message in context: 
http://www.nabble.com/-t5--Modal-Windows-with-t5Components-Window-Class-tp19065217p19065762.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [t5] Modal Windows with t5Components Window Class

2008-08-20 Thread Sven Homburg
give the showCenter methode the parameter value "true" and it should works

2008/8/20 Daniel Alonso Sanchez <[EMAIL PROTECTED]>

>
>
>
> # click here for modal
> window
>
>
> Sorry for disturbing again, but inside my js function called ShowWindow2 i
> have the following code
>
>  function showWindow2(idSeccion )
>{
>${window2.componentResources.id}.setTitle("Ayuda");
>
> ${window2.componentResources.id
> }.setURL("${generarEnlace}/${idProcedimiento}/"
> + idSeccion);
>${window2.componentResources.id}.showCenter();
>}
>
> I believe that showCenter only shows the window centered but nothing about
> disabling the background. Thanks for your response ;D
> --
> View this message in context:
> http://www.nabble.com/-t5--Modal-Windows-with-t5Components-Window-Class-tp19065217p19065726.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Re: [t5] Modal Windows with t5Components Window Class

2008-08-20 Thread Daniel Alonso Sanchez



# click here for modal
window 


Sorry for disturbing again, but inside my js function called ShowWindow2 i
have the following code

 function showWindow2(idSeccion )
{
${window2.componentResources.id}.setTitle("Ayuda"); 
   
${window2.componentResources.id}.setURL("${generarEnlace}/${idProcedimiento}/"
+ idSeccion);  
${window2.componentResources.id}.showCenter();
}

I believe that showCenter only shows the window centered but nothing about
disabling the background. Thanks for your response ;D
-- 
View this message in context: 
http://www.nabble.com/-t5--Modal-Windows-with-t5Components-Window-Class-tp19065217p19065726.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [t5] Modal Windows with t5Components Window Class

2008-08-20 Thread Sven Homburg
click here for modal
window


2008/8/20 Daniel Alonso Sanchez <[EMAIL PROTECTED]>

>
> Hi again to everybody, i have came back again with more doubts and
> questions
> %-|
>
> I'm using the Window class of t5components, but i have a problem: i wan't
> partial behaviour of GoogleWindow sample (disabled background), but with
> the
> behaviour  of the others (not automatically open, just manually). I have
> been trying with "modal" property, "show" property... but i get no success.
> Anybody has a clue of what can i do?
>
> @Component(parameters = {"width=300", "height=300", "style=alphacube",
> "show=false"})
>  @Property
>  private Window _window2;
>
> Thank you so much again :D
> --
> View this message in context:
> http://www.nabble.com/-t5--Modal-Windows-with-t5Components-Window-Class-tp19065217p19065217.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


[t5] Modal Windows with t5Components Window Class

2008-08-20 Thread Daniel Alonso Sanchez

Hi again to everybody, i have came back again with more doubts and questions
%-|

I'm using the Window class of t5components, but i have a problem: i wan't
partial behaviour of GoogleWindow sample (disabled background), but with the
behaviour  of the others (not automatically open, just manually). I have
been trying with "modal" property, "show" property... but i get no success.
Anybody has a clue of what can i do?

@Component(parameters = {"width=300", "height=300", "style=alphacube",
"show=false"})
 @Property
 private Window _window2;

Thank you so much again :D
-- 
View this message in context: 
http://www.nabble.com/-t5--Modal-Windows-with-t5Components-Window-Class-tp19065217p19065217.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: t5components - Window

2008-07-25 Thread 9902468

Might be because environmentals can't be used during Ajax requests, at least
I have banged my head to wall many times because of that.

If Sven has plenty of time in his hands could I request a window that takes
it's contents as a block? =)

 - 99


Petros Petrou wrote:
> 
> Hi Sven, 
> 
> I had already tried this and is the same problem. However, I just realized
> that I am getting this exception whenever I use @Environment even without
> using the Window component. I don't know why. I'll post another message
> specific to that problem. 
> 
> Thanks,
> Petros
> 
> 
> 
> 
> Sven Homburg wrote:
>> 
>> try to add the RenderSupport to your own class
>> 
>> @Environmental
>> private RenderSupport renderSupport;
>> 
>> public void show()
>> {
>>   renderSupport.addScript("%s.show%s(%s);", getClientId(), isCenter() ?
>> "Center" : "", isModal());
>> }
>> 
>> i hope its helps you
>> 
>> 2008/7/22 Petros Petrou <[EMAIL PROTECTED]>:
>> 
>>>
>>> Hi Sven,
>>>
>>> I tried to extend the GoogleWindow component from the demo and I added
>>> the
>>> following method
>>>
>>> public void show()
>>> {
>>> getPageRenderSupport().addScript("%s.show%s(%s);", getClientId(),
>>> isCenter()
>>> ? "Center" : "", isModal());
>>> }
>>>
>>> I am calling this method from an ActionLink method that uses this
>>> component
>>> and I am trying to use it as a confirmation dialog box but I am getting
>>> this
>>> exception
>>> No object of type org.apache.tapestry5.RenderSupport is available from
>>> the
>>> Environment. Available types are
>>> org.apache.tapestry5.services.ComponentEventResultProcessor.
>>>
>>> Any ideas ?
>>>
>>> Petros
>>>
>>>
>>>
>>> Sven Homburg wrote:
>>> >
>>> > extends the window class, its a simple overideable component class
>>> >
>>> > 2008/7/18 Petros Petrou <[EMAIL PROTECTED]>:
>>> >
>>> >>
>>> >> The demo source code uses this code in the WindowPage.tml
>>> >>
>>> >>function showWindow2()
>>> >>{
>>> >>${window2.componentResources.id}.setTitle("This is Window 2")
>>> >>${window2.componentResources.id}.setHTMLContent("... here come
>>> >> some
>>> >> senseless content ...")
>>> >>${window2.componentResources.id}.showCenter()
>>> >>}
>>> >>
>>> >>
>>> >> Is there anyway we can do the above, but within the WindowPage.java ?
>>> >> I want to force a modal pop up window components to appear when an
>>> >> ActionLink is clicked by adding some code in my method
>>> >>
>>> >>@OnEvent(value = "action", component = "openWindowActionLink")
>>> >>Object onActionFromOpenWindowActionLink(){}
>>> >>
>>> >>
>>> >> Is this possible ?
>>> >>
>>> >> Petros
>>> >>
>>> >>
>>> >>
>>> >> Martijn Brinkers (List)-2 wrote:
>>> >> >
>>> >> > Demo code can be found here:
>>> >> >
>>> >> >
>>> >>
>>> http://87.193.218.134:8080/t5components/maven-repository/org/apache/tapestry/t5c-demo/0.5.13/
>>> >> >
>>> >> > Martijn
>>> >> >
>>> >> > On Tue, 2008-06-24 at 02:48 -0700, Petros Petrou wrote:
>>> >> >> I am trying to use the Window component as demonstrated here
>>> >> >> http://87.193.218.134:8080/t5c-demo/windowpage but I can't get it
>>> to
>>> >> >> work.
>>> >> >> Does anyone have a code example I could use ? Is it possible to
>>> >> download
>>> >> >> the
>>> >> >> source code for the demo ?
>>> >> >>
>>> >> >> Furthermore, I added this dependency to my pom.xml and it fails to
>>> >> >> download.
>>> >> >> Can I manually download it from anywhere ?
>>> >> >>
>>> >> >> 
>>> >> >>   org.apache.tape

Re: t5components - Window

2008-07-24 Thread jgn

Maybe this would work:

You can use the t5componens/OnEvent mixin on a button or, maybe, on an
action link (I only have test this component on a textfield with the blur
event). Then, this mixin has a parameter called: onCompleteCallback, which
will call a javascript function when the ajax response finish. So, in this
javascript function you could open the window.

I mean, this would work if the idea is just to call a function on the server
side before open the window.

Hope this helps.
-- 
View this message in context: 
http://www.nabble.com/t5components---Window-tp18087605p18644933.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: t5components - Window

2008-07-22 Thread Petros Petrou

Hi Sven, 

I had already tried this and is the same problem. However, I just realized
that I am getting this exception whenever I use @Environment even without
using the Window component. I don't know why. I'll post another message
specific to that problem. 

Thanks,
Petros




Sven Homburg wrote:
> 
> try to add the RenderSupport to your own class
> 
> @Environmental
> private RenderSupport renderSupport;
> 
> public void show()
> {
>   renderSupport.addScript("%s.show%s(%s);", getClientId(), isCenter() ?
> "Center" : "", isModal());
> }
> 
> i hope its helps you
> 
> 2008/7/22 Petros Petrou <[EMAIL PROTECTED]>:
> 
>>
>> Hi Sven,
>>
>> I tried to extend the GoogleWindow component from the demo and I added
>> the
>> following method
>>
>> public void show()
>> {
>> getPageRenderSupport().addScript("%s.show%s(%s);", getClientId(),
>> isCenter()
>> ? "Center" : "", isModal());
>> }
>>
>> I am calling this method from an ActionLink method that uses this
>> component
>> and I am trying to use it as a confirmation dialog box but I am getting
>> this
>> exception
>> No object of type org.apache.tapestry5.RenderSupport is available from
>> the
>> Environment. Available types are
>> org.apache.tapestry5.services.ComponentEventResultProcessor.
>>
>> Any ideas ?
>>
>> Petros
>>
>>
>>
>> Sven Homburg wrote:
>> >
>> > extends the window class, its a simple overideable component class
>> >
>> > 2008/7/18 Petros Petrou <[EMAIL PROTECTED]>:
>> >
>> >>
>> >> The demo source code uses this code in the WindowPage.tml
>> >>
>> >>function showWindow2()
>> >>{
>> >>${window2.componentResources.id}.setTitle("This is Window 2")
>> >>${window2.componentResources.id}.setHTMLContent("... here come
>> >> some
>> >> senseless content ...")
>> >>${window2.componentResources.id}.showCenter()
>> >>}
>> >>
>> >>
>> >> Is there anyway we can do the above, but within the WindowPage.java ?
>> >> I want to force a modal pop up window components to appear when an
>> >> ActionLink is clicked by adding some code in my method
>> >>
>> >>@OnEvent(value = "action", component = "openWindowActionLink")
>> >>Object onActionFromOpenWindowActionLink(){}
>> >>
>> >>
>> >> Is this possible ?
>> >>
>> >> Petros
>> >>
>> >>
>> >>
>> >> Martijn Brinkers (List)-2 wrote:
>> >> >
>> >> > Demo code can be found here:
>> >> >
>> >> >
>> >>
>> http://87.193.218.134:8080/t5components/maven-repository/org/apache/tapestry/t5c-demo/0.5.13/
>> >> >
>> >> > Martijn
>> >> >
>> >> > On Tue, 2008-06-24 at 02:48 -0700, Petros Petrou wrote:
>> >> >> I am trying to use the Window component as demonstrated here
>> >> >> http://87.193.218.134:8080/t5c-demo/windowpage but I can't get it
>> to
>> >> >> work.
>> >> >> Does anyone have a code example I could use ? Is it possible to
>> >> download
>> >> >> the
>> >> >> source code for the demo ?
>> >> >>
>> >> >> Furthermore, I added this dependency to my pom.xml and it fails to
>> >> >> download.
>> >> >> Can I manually download it from anywhere ?
>> >> >>
>> >> >> 
>> >> >>   org.apache.tapestry
>> >> >>   t5c-demo
>> >> >>   0.5.13
>> >> >> 
>> >> >>
>> >> >> Petros
>> >> >
>> >> >
>> >> >
>> -
>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/t5components---Window-tp18087605p18530717.html
>> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> 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
>> >
>> >
>> > -
>> > best regards
>> > Sven
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/t5components---Window-tp18087605p18585022.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> 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
> 
> 
> -
> best regards
> Sven
> 

-- 
View this message in context: 
http://www.nabble.com/t5components---Window-tp18087605p18587439.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: t5components - Window

2008-07-22 Thread Sven Homburg
try to add the RenderSupport to your own class

@Environmental
private RenderSupport renderSupport;

public void show()
{
  renderSupport.addScript("%s.show%s(%s);", getClientId(), isCenter() ?
"Center" : "", isModal());
}

i hope its helps you

2008/7/22 Petros Petrou <[EMAIL PROTECTED]>:

>
> Hi Sven,
>
> I tried to extend the GoogleWindow component from the demo and I added the
> following method
>
> public void show()
> {
> getPageRenderSupport().addScript("%s.show%s(%s);", getClientId(),
> isCenter()
> ? "Center" : "", isModal());
> }
>
> I am calling this method from an ActionLink method that uses this component
> and I am trying to use it as a confirmation dialog box but I am getting
> this
> exception
> No object of type org.apache.tapestry5.RenderSupport is available from the
> Environment. Available types are
> org.apache.tapestry5.services.ComponentEventResultProcessor.
>
> Any ideas ?
>
> Petros
>
>
>
> Sven Homburg wrote:
> >
> > extends the window class, its a simple overideable component class
> >
> > 2008/7/18 Petros Petrou <[EMAIL PROTECTED]>:
> >
> >>
> >> The demo source code uses this code in the WindowPage.tml
> >>
> >>function showWindow2()
> >>{
> >>${window2.componentResources.id}.setTitle("This is Window 2")
> >>${window2.componentResources.id}.setHTMLContent("... here come
> >> some
> >> senseless content ...")
> >>${window2.componentResources.id}.showCenter()
> >>}
> >>
> >>
> >> Is there anyway we can do the above, but within the WindowPage.java ?
> >> I want to force a modal pop up window components to appear when an
> >> ActionLink is clicked by adding some code in my method
> >>
> >>@OnEvent(value = "action", component = "openWindowActionLink")
> >>Object onActionFromOpenWindowActionLink(){}
> >>
> >>
> >> Is this possible ?
> >>
> >> Petros
> >>
> >>
> >>
> >> Martijn Brinkers (List)-2 wrote:
> >> >
> >> > Demo code can be found here:
> >> >
> >> >
> >>
> http://87.193.218.134:8080/t5components/maven-repository/org/apache/tapestry/t5c-demo/0.5.13/
> >> >
> >> > Martijn
> >> >
> >> > On Tue, 2008-06-24 at 02:48 -0700, Petros Petrou wrote:
> >> >> I am trying to use the Window component as demonstrated here
> >> >> http://87.193.218.134:8080/t5c-demo/windowpage but I can't get it to
> >> >> work.
> >> >> Does anyone have a code example I could use ? Is it possible to
> >> download
> >> >> the
> >> >> source code for the demo ?
> >> >>
> >> >> Furthermore, I added this dependency to my pom.xml and it fails to
> >> >> download.
> >> >> Can I manually download it from anywhere ?
> >> >>
> >> >> 
> >> >>   org.apache.tapestry
> >> >>   t5c-demo
> >> >>   0.5.13
> >> >> 
> >> >>
> >> >> Petros
> >> >
> >> >
> >> > -
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/t5components---Window-tp18087605p18530717.html
> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> 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
> >
> >
> > -
> > best regards
> > Sven
> >
>
> --
> View this message in context:
> http://www.nabble.com/t5components---Window-tp18087605p18585022.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> 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


Re: t5components - Window

2008-07-22 Thread Petros Petrou

Hi Sven, 

I tried to extend the GoogleWindow component from the demo and I added the
following method 

public void show()
{
getPageRenderSupport().addScript("%s.show%s(%s);", getClientId(), isCenter()
? "Center" : "", isModal());
}

I am calling this method from an ActionLink method that uses this component
and I am trying to use it as a confirmation dialog box but I am getting this
exception 
No object of type org.apache.tapestry5.RenderSupport is available from the
Environment. Available types are
org.apache.tapestry5.services.ComponentEventResultProcessor.

Any ideas ?

Petros



Sven Homburg wrote:
> 
> extends the window class, its a simple overideable component class
> 
> 2008/7/18 Petros Petrou <[EMAIL PROTECTED]>:
> 
>>
>> The demo source code uses this code in the WindowPage.tml
>>
>>function showWindow2()
>>{
>>${window2.componentResources.id}.setTitle("This is Window 2")
>>${window2.componentResources.id}.setHTMLContent("... here come
>> some
>> senseless content ...")
>>${window2.componentResources.id}.showCenter()
>>}
>>
>>
>> Is there anyway we can do the above, but within the WindowPage.java ?
>> I want to force a modal pop up window components to appear when an
>> ActionLink is clicked by adding some code in my method
>>
>>@OnEvent(value = "action", component = "openWindowActionLink")
>>Object onActionFromOpenWindowActionLink(){}
>>
>>
>> Is this possible ?
>>
>> Petros
>>
>>
>>
>> Martijn Brinkers (List)-2 wrote:
>> >
>> > Demo code can be found here:
>> >
>> >
>> http://87.193.218.134:8080/t5components/maven-repository/org/apache/tapestry/t5c-demo/0.5.13/
>> >
>> > Martijn
>> >
>> > On Tue, 2008-06-24 at 02:48 -0700, Petros Petrou wrote:
>> >> I am trying to use the Window component as demonstrated here
>> >> http://87.193.218.134:8080/t5c-demo/windowpage but I can't get it to
>> >> work.
>> >> Does anyone have a code example I could use ? Is it possible to
>> download
>> >> the
>> >> source code for the demo ?
>> >>
>> >> Furthermore, I added this dependency to my pom.xml and it fails to
>> >> download.
>> >> Can I manually download it from anywhere ?
>> >>
>> >> 
>> >>   org.apache.tapestry
>> >>   t5c-demo
>> >>   0.5.13
>> >> 
>> >>
>> >> Petros
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/t5components---Window-tp18087605p18530717.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> 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
> 
> 
> -
> best regards
> Sven
> 

-- 
View this message in context: 
http://www.nabble.com/t5components---Window-tp18087605p18585022.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: t5components - Window

2008-07-19 Thread Sven Homburg
extends the window class, its a simple overideable component class

2008/7/18 Petros Petrou <[EMAIL PROTECTED]>:

>
> The demo source code uses this code in the WindowPage.tml
>
>function showWindow2()
>{
>${window2.componentResources.id}.setTitle("This is Window 2")
>${window2.componentResources.id}.setHTMLContent("... here come some
> senseless content ...")
>${window2.componentResources.id}.showCenter()
>}
>
>
> Is there anyway we can do the above, but within the WindowPage.java ?
> I want to force a modal pop up window components to appear when an
> ActionLink is clicked by adding some code in my method
>
>@OnEvent(value = "action", component = "openWindowActionLink")
>Object onActionFromOpenWindowActionLink(){}
>
>
> Is this possible ?
>
> Petros
>
>
>
> Martijn Brinkers (List)-2 wrote:
> >
> > Demo code can be found here:
> >
> >
> http://87.193.218.134:8080/t5components/maven-repository/org/apache/tapestry/t5c-demo/0.5.13/
> >
> > Martijn
> >
> > On Tue, 2008-06-24 at 02:48 -0700, Petros Petrou wrote:
> >> I am trying to use the Window component as demonstrated here
> >> http://87.193.218.134:8080/t5c-demo/windowpage but I can't get it to
> >> work.
> >> Does anyone have a code example I could use ? Is it possible to download
> >> the
> >> source code for the demo ?
> >>
> >> Furthermore, I added this dependency to my pom.xml and it fails to
> >> download.
> >> Can I manually download it from anywhere ?
> >>
> >> 
> >>   org.apache.tapestry
> >>   t5c-demo
> >>   0.5.13
> >> 
> >>
> >> Petros
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/t5components---Window-tp18087605p18530717.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> 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


Re: t5components - Window

2008-07-18 Thread Petros Petrou

The demo source code uses this code in the WindowPage.tml

function showWindow2()
{
${window2.componentResources.id}.setTitle("This is Window 2")
${window2.componentResources.id}.setHTMLContent("... here come some
senseless content ...")
${window2.componentResources.id}.showCenter()
}


Is there anyway we can do the above, but within the WindowPage.java ?
I want to force a modal pop up window components to appear when an
ActionLink is clicked by adding some code in my method 

@OnEvent(value = "action", component = "openWindowActionLink")
Object onActionFromOpenWindowActionLink(){}


Is this possible ?

Petros



Martijn Brinkers (List)-2 wrote:
> 
> Demo code can be found here:
> 
> http://87.193.218.134:8080/t5components/maven-repository/org/apache/tapestry/t5c-demo/0.5.13/
> 
> Martijn
> 
> On Tue, 2008-06-24 at 02:48 -0700, Petros Petrou wrote:
>> I am trying to use the Window component as demonstrated here
>> http://87.193.218.134:8080/t5c-demo/windowpage but I can't get it to
>> work. 
>> Does anyone have a code example I could use ? Is it possible to download
>> the
>> source code for the demo ?
>> 
>> Furthermore, I added this dependency to my pom.xml and it fails to
>> download.
>> Can I manually download it from anywhere ?
>> 
>> 
>>   org.apache.tapestry
>>   t5c-demo
>>   0.5.13
>> 
>> 
>> Petros
> 
> 
> -----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5components---Window-tp18087605p18530717.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: t5Components Window seems not to support showEffect and other options

2008-06-24 Thread Sven Homburg
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:
> >
> > Open Window
> >
> > 
> >
> > 
> > function showWindow()
> > {
> > ${window2.componentResources.id}.setTitle("This is Window 2")
> > ${window2.componentResources.id}.setHTMLContent("... here come
> some
> > senseless content ...")
> > ${window2.componentResources.id}.showCenter()
> > }
> > 
> >
> > 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


Re: t5components - Window

2008-06-24 Thread Martijn Brinkers (List)
Demo code can be found here:

http://87.193.218.134:8080/t5components/maven-repository/org/apache/tapestry/t5c-demo/0.5.13/

Martijn

On Tue, 2008-06-24 at 02:48 -0700, Petros Petrou wrote:
> I am trying to use the Window component as demonstrated here
> http://87.193.218.134:8080/t5c-demo/windowpage but I can't get it to work. 
> Does anyone have a code example I could use ? Is it possible to download the
> source code for the demo ?
> 
> Furthermore, I added this dependency to my pom.xml and it fails to download.
> Can I manually download it from anywhere ?
> 
> 
>   org.apache.tapestry
>   t5c-demo
>   0.5.13
> 
> 
> Petros


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: t5Components Window seems not to support showEffect and other options

2008-06-24 Thread Martijn Brinkers (List)
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:
> 
> Open Window
> 
> 
> 
> 
> function showWindow()
> {
> ${window2.componentResources.id}.setTitle("This is Window 2")
> ${window2.componentResources.id}.setHTMLContent("... here come some
> senseless content ...")
> ${window2.componentResources.id}.showCenter()
> }
> 
> 
> 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]



Re: T5: t5Components Window seems not to support showEffect and other options

2008-06-24 Thread Sven Homburg
here a short sample intial closed window:

MyPage.tml snippet:

Open Window




function showWindow()
{
${window2.componentResources.id}.setTitle("This is Window 2")
${window2.componentResources.id}.setHTMLContent("... here come some
senseless content ...")
${window2.componentResources.id}.showCenter()
}


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]
>
>


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


t5components - Window

2008-06-24 Thread Petros Petrou

I am trying to use the Window component as demonstrated here
http://87.193.218.134:8080/t5c-demo/windowpage but I can't get it to work. 
Does anyone have a code example I could use ? Is it possible to download the
source code for the demo ?

Furthermore, I added this dependency to my pom.xml and it fails to download.
Can I manually download it from anywhere ?


  org.apache.tapestry
  t5c-demo
  0.5.13


Petros
-- 
View this message in context: 
http://www.nabble.com/t5components---Window-tp18087605p18087605.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: t5Components Window seems not to support showEffect and other options

2008-06-23 Thread Martijn Brinkers (List)
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]