Re: [T5.1]generated Event Links and zone

2010-05-27 Thread Josh Canfield
I have zone name and I could call linkZone but I don't have element  
id of

anchor?
Can i catch it somehow?


How are you creating the  that you want to link to the  
zone. Please be specific, and if you can show the actual code that  
would be helpful.


-- Josh

On May 27, 2010, at 4:25 AM, blueboy6  wrote:



Hi,

tnx for links,

ok so now I have js that create html for infoWindows at google map...

inside gmap infowindow I have html:

page:event/context link

page:event/context is generated with
componentResources.createEventLink(event, context).toAbsoluteURI()

I can generate this in afterRender but how do I bind zone to it?

I have zone name and I could call linkZone but I don't have element  
id of

anchor?
Can i catch it somehow?

I need to learn more JS :(

Please Help




Josh Canfield wrote:



problem, event links that are generated with
componentResources.createEventLink("eventName", context); dont  
have zone
parameter set... and I'm getting absoluteURI from them and using  
them in

my
page...


The zone information isn't attached to the Link (or URL) that you
generate but to the element on the page that generates the event,  
such

as the anchor tag ( ... ) or form. Take a look at the linkZone
function in tapestry.js and beginRender in  
AbstractComponentEventLink.


Josh

On Wed, May 26, 2010 at 5:27 AM, blueboy6  wrote:


Hello ppl,

Long time since I needed to post a question here, but this is really
making
me crazy...

I have event links generated with component resources, lots of  
them...

200-300 of them. and I have zone that all of them should update...

problem, event links that are generated with
componentResources.createEventLink("eventName", context); dont  
have zone
parameter set... and I'm getting absoluteURI from them and using  
them in

my
page...

And all of the links are generated in setupRender faze and I can't  
access

them in after render...

Any ideas?

Thanks
Bojan Cincur
--
View this message in context:
http://old.nabble.com/-T5.1-generated-Event-Links-and-zone-tp28680025p28680025.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


--- 
--

To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org






--
--
http://www.bodylabgym.com - a private, by appointment only, one-on- 
one

health and fitness facility.
--
http://www.ectransition.com - Quality Electronic Cigarettes at a
reasonable price!
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org





--
View this message in context: 
http://old.nabble.com/-T5.1-generated-Event-Links-and-zone-tp28680025p28692638.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5.1]generated Event Links and zone

2010-05-27 Thread blueboy6

Hi,

tnx for links,

ok so now I have js that create html for infoWindows at google map...

inside gmap infowindow I have html:

page:event/context link 

page:event/context is generated with
componentResources.createEventLink(event, context).toAbsoluteURI()

I can generate this in afterRender but how do I bind zone to it?

I have zone name and I could call linkZone but I don't have element id of
anchor?
Can i catch it somehow?

I need to learn more JS :(

Please Help




Josh Canfield wrote:
> 
>> problem, event links that are generated with
>> componentResources.createEventLink("eventName", context); dont have zone
>> parameter set... and I'm getting absoluteURI from them and using them in
>> my
>> page...
> 
> The zone information isn't attached to the Link (or URL) that you
> generate but to the element on the page that generates the event, such
> as the anchor tag ( ... ) or form. Take a look at the linkZone
> function in tapestry.js and beginRender in AbstractComponentEventLink.
> 
> Josh
> 
> On Wed, May 26, 2010 at 5:27 AM, blueboy6  wrote:
>>
>> Hello ppl,
>>
>> Long time since I needed to post a question here, but this is really
>> making
>> me crazy...
>>
>> I have event links generated with component resources, lots of them...
>> 200-300 of them. and I have zone that all of them should update...
>>
>> problem, event links that are generated with
>> componentResources.createEventLink("eventName", context); dont have zone
>> parameter set... and I'm getting absoluteURI from them and using them in
>> my
>> page...
>>
>> And all of the links are generated in setupRender faze and I can't access
>> them in after render...
>>
>> Any ideas?
>>
>> Thanks
>> Bojan Cincur
>> --
>> View this message in context:
>> http://old.nabble.com/-T5.1-generated-Event-Links-and-zone-tp28680025p28680025.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
> 
> 
> 
> -- 
> --
> http://www.bodylabgym.com - a private, by appointment only, one-on-one
> health and fitness facility.
> --
> http://www.ectransition.com - Quality Electronic Cigarettes at a
> reasonable price!
> --
> TheDailyTube.com. Sign up and get the best new videos on the internet
> delivered fresh to your inbox.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/-T5.1-generated-Event-Links-and-zone-tp28680025p28692638.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5.1]generated Event Links and zone

2010-05-26 Thread Josh Canfield
> problem, event links that are generated with
> componentResources.createEventLink("eventName", context); dont have zone
> parameter set... and I'm getting absoluteURI from them and using them in my
> page...

The zone information isn't attached to the Link (or URL) that you
generate but to the element on the page that generates the event, such
as the anchor tag () or form. Take a look at the linkZone
function in tapestry.js and beginRender in AbstractComponentEventLink.

Josh

On Wed, May 26, 2010 at 5:27 AM, blueboy6  wrote:
>
> Hello ppl,
>
> Long time since I needed to post a question here, but this is really making
> me crazy...
>
> I have event links generated with component resources, lots of them...
> 200-300 of them. and I have zone that all of them should update...
>
> problem, event links that are generated with
> componentResources.createEventLink("eventName", context); dont have zone
> parameter set... and I'm getting absoluteURI from them and using them in my
> page...
>
> And all of the links are generated in setupRender faze and I can't access
> them in after render...
>
> Any ideas?
>
> Thanks
> Bojan Cincur
> --
> View this message in context: 
> http://old.nabble.com/-T5.1-generated-Event-Links-and-zone-tp28680025p28680025.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
--
http://www.bodylabgym.com - a private, by appointment only, one-on-one
health and fitness facility.
--
http://www.ectransition.com - Quality Electronic Cigarettes at a
reasonable price!
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5.1]generated Event Links and zone

2010-05-26 Thread blueboy6

I'm using this links inside JavaScript(as URL's) so I can't render components
there!?

Is it possible to create eventLinks at template and to send their URL's to
JavaScript somehow?


Thiago H. de Paula Figueiredo wrote:
> 
> On Wed, 26 May 2010 09:27:31 -0300, blueboy6  wrote:
> 
>> Hello ppl,
> 
> Hi!
> 
>> I have event links generated with component resources, lots of them...
>> 200-300 of them. and I have zone that all of them should update...
> 
> Why exactly don't you create this links in the template? An EventLink  
> needs some JavaScript to hook it to a Zone, and generating links from  
> ComponentResources.createEventLink() doesn't add the needed JavaScript.
> 
> Anyway, if you want to keep your code as it is, you'll need to hook the  
> links to the Zone yourself. Take a look at  
> http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html, file  
> ZoneUpdater.js.
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/-T5.1-generated-Event-Links-and-zone-tp28680025p28681949.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5.1]generated Event Links and zone

2010-05-26 Thread Thiago H. de Paula Figueiredo

On Wed, 26 May 2010 11:11:29 -0300, blueboy6  wrote:

I'm not creating them in template because I'm sending them to google  
maps to populate info windows, and I'm not sure how could I generate  
that many links at template...


Loop component?

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5.1]generated Event Links and zone

2010-05-26 Thread blueboy6

Tnx for link,

I'm not creating them in template because I'm sending them to google maps to
populate info windows, and I'm not sure how could I generate that many links
at template...

I will try to hook link to zone... I'm gonna inform you about my progress...

Tnx


Thiago H. de Paula Figueiredo wrote:
> 
> On Wed, 26 May 2010 09:27:31 -0300, blueboy6  wrote:
> 
>> Hello ppl,
> 
> Hi!
> 
>> I have event links generated with component resources, lots of them...
>> 200-300 of them. and I have zone that all of them should update...
> 
> Why exactly don't you create this links in the template? An EventLink  
> needs some JavaScript to hook it to a Zone, and generating links from  
> ComponentResources.createEventLink() doesn't add the needed JavaScript.
> 
> Anyway, if you want to keep your code as it is, you'll need to hook the  
> links to the Zone yourself. Take a look at  
> http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html, file  
> ZoneUpdater.js.
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/-T5.1-generated-Event-Links-and-zone-tp28680025p28681347.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5.1]generated Event Links and zone

2010-05-26 Thread Thiago H. de Paula Figueiredo

On Wed, 26 May 2010 09:27:31 -0300, blueboy6  wrote:


Hello ppl,


Hi!


I have event links generated with component resources, lots of them...
200-300 of them. and I have zone that all of them should update...


Why exactly don't you create this links in the template? An EventLink  
needs some JavaScript to hook it to a Zone, and generating links from  
ComponentResources.createEventLink() doesn't add the needed JavaScript.


Anyway, if you want to keep your code as it is, you'll need to hook the  
links to the Zone yourself. Take a look at  
http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html, file  
ZoneUpdater.js.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



[T5.1]generated Event Links and zone

2010-05-26 Thread blueboy6

Hello ppl,

Long time since I needed to post a question here, but this is really making
me crazy...

I have event links generated with component resources, lots of them...
200-300 of them. and I have zone that all of them should update...

problem, event links that are generated with
componentResources.createEventLink("eventName", context); dont have zone
parameter set... and I'm getting absoluteURI from them and using them in my
page...

And all of the links are generated in setupRender faze and I can't access
them in after render...

Any ideas?

Thanks 
Bojan Cincur
-- 
View this message in context: 
http://old.nabble.com/-T5.1-generated-Event-Links-and-zone-tp28680025p28680025.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org