You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by micheal822 <zh...@163.com> on 2010/07/18 16:19:04 UTC

Help me! How can i access a service in tapestry5 .

     There is a project i have being doing recently. And now I have a big
problem, hope you help me,thanks.
     I have to draw bar chart in a html page, the situation is that the bar
chart is drawed by javascript, and the javascript code is produced by an
action listener. I want that when i click the bar, i want to go to another
tapestry page with parameters. The question is that how can i access the
tapestry service with tag A(such as 
http://localhost:8080/app?service=someservice aaa  in tapestry 4),just like
when i click an ActionLink component, it can trigger an Action method.

-- 
View this message in context: http://old.nabble.com/Help-me%21-How-can-i-access-a-service-in-tapestry5-.-tp29197261p29197261.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Help me! How can i access a service in tapestry5 .

Posted by micheal822 <zh...@163.com>.


Josh Canfield wrote:
> 
>> I want that when i click the bar, i want to go to another
>> tapestry page with parameters.
> 
> Check out PageRenderLinkSource 
> 
> http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/PageRenderLinkSource.html#createPageRenderLinkWithContext(java.lang.String,%20java.lang.Object...)
> 
> -- Josh
> 
> On Jul 18, 2010, at 7:19 AM, micheal822 <zh...@163.com> wrote:
> 
>> 
>>     There is a project i have being doing recently. And now I have a big
>> problem, hope you help me,thanks.
>>     I have to draw bar chart in a html page, the situation is that the
>> bar
>> chart is drawed by javascript, and the javascript code is produced by an
>> action listener. I want that when i click the bar, i want to go to
>> another
>> tapestry page with parameters. The question is that how can i access the
>> tapestry service with tag A(such as 
>> http://localhost:8080/app?service=someservice aaa  in tapestry 4),just
>> like
>> when i click an ActionLink component, it can trigger an Action method.
>> 
>> -- 
>> View this message in context:
>> http://old.nabble.com/Help-me%21-How-can-i-access-a-service-in-tapestry5-.-tp29197261p29197261.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 

Josh,thank you very much! Now I can solve the problem that pazzled me so
long time.
-- 
View this message in context: http://old.nabble.com/Help-me%21-How-can-i-access-a-service-in-tapestry5-.-tp29197261p29203969.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Help me! How can i access a service in tapestry5 .

Posted by Josh Canfield <jo...@gmail.com>.
> I want that when i click the bar, i want to go to another
> tapestry page with parameters.

Check out PageRenderLinkSource 

http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/PageRenderLinkSource.html#createPageRenderLinkWithContext(java.lang.String,%20java.lang.Object...)

-- Josh

On Jul 18, 2010, at 7:19 AM, micheal822 <zh...@163.com> wrote:

> 
>     There is a project i have being doing recently. And now I have a big
> problem, hope you help me,thanks.
>     I have to draw bar chart in a html page, the situation is that the bar
> chart is drawed by javascript, and the javascript code is produced by an
> action listener. I want that when i click the bar, i want to go to another
> tapestry page with parameters. The question is that how can i access the
> tapestry service with tag A(such as 
> http://localhost:8080/app?service=someservice aaa  in tapestry 4),just like
> when i click an ActionLink component, it can trigger an Action method.
> 
> -- 
> View this message in context: http://old.nabble.com/Help-me%21-How-can-i-access-a-service-in-tapestry5-.-tp29197261p29197261.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> 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