Re: problem logging into webapp using acegi

2012-03-12 Thread harishpatarla
johnathan could you please tell me the reason y roles should be in uppercase

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/problem-logging-into-webapp-using-acegi-tp5551844p5559994.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: problem logging into webapp using acegi

2012-03-12 Thread harishpatarla
Thanks a lot jonathan.it worked awesome.could not even imagine that the
exception would be something because of the Case.
Had to mention the roles in Uppercase.It worked flawlessly.May god bless
you!

Cheers!!!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/problem-logging-into-webapp-using-acegi-tp5551844p5559986.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: How to represent this?

2012-03-12 Thread TechniciuM
That would require  in Menu.tml, or does category handles all it?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-represent-this-tp5558903p5559260.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: How to represent this?

2012-03-12 Thread Josh Canfield
I'd suggest passing the category as a parameter to the component.

your page receives the category identifier as a parameter:

/menu/meat

Menu.java

onActivate(String category)

etc.

Then provide the category as a parameter



etc.

Josh

On Mon, Mar 12, 2012 at 12:42 PM, TechniciuM  wrote:
> Lets assume I have a categorized pages, ie one page is for fruits, the other
> one is for vegetables and so forth , so on... And that I have menu, and
> based on which page is turned, it gives the user different menu. So I have a
> component Menu, and have fruits, vegetables, meat pages. Now I want to put
> all menu stuff in that component Menu, and based on which page is turned, it
> gives proper submenus, like for fruits, nuts, berries and for meat it gives
> me beef, pork and so on... Any ideas how would you implement this, and if
> you think I shouldn't do this way, propose the other. Thanks in advance.
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/How-to-represent-this-tp5558903p5558903.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: How to represent this?

2012-03-12 Thread TechniciuM
Just got on my mind, lets say I make submenu components, and in the menu
component I make rendering for the specific submenu based on what page is
turned on. :) Even better idea.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-represent-this-tp5558903p5559239.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: How to represent this?

2012-03-12 Thread TechniciuM
Thanks! That's exactly what I was looking for. :)

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-represent-this-tp5558903p5559228.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: How to represent this?

2012-03-12 Thread Thiago H. de Paula Figueiredo

On Mon, 12 Mar 2012 16:42:13 -0300, TechniciuM  wrote:

Lets assume I have a categorized pages, ie one page is for fruits, the  
other one is for vegetables and so forth , so on... And that I have  
menu, and
based on which page is turned, it gives the user different menu. So I  
have a component Menu, and have fruits, vegetables, meat pages. Now I  
want to put all menu stuff in that component Menu, and based on which  
page is turned, it gives proper submenus, like for fruits, nuts, berries  
and for meat it gives me beef, pork and so on... Any ideas how would you  
implement this, and if

you think I shouldn't do this way, propose the other. Thanks in advance.


You can use this in your component to get the current page being rendered:

@Inject
private ComponentResources resources;

Object page = resources.getPage();

And now use some logic based on the page to determine what's going to be  
rendered.


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



How to represent this?

2012-03-12 Thread TechniciuM
Lets assume I have a categorized pages, ie one page is for fruits, the other
one is for vegetables and so forth , so on... And that I have menu, and
based on which page is turned, it gives the user different menu. So I have a
component Menu, and have fruits, vegetables, meat pages. Now I want to put
all menu stuff in that component Menu, and based on which page is turned, it
gives proper submenus, like for fruits, nuts, berries and for meat it gives
me beef, pork and so on... Any ideas how would you implement this, and if
you think I shouldn't do this way, propose the other. Thanks in advance.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-represent-this-tp5558903p5558903.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: html pentaho report missing some data

2012-03-12 Thread Josh Canfield
> yes i did, please give me an solution for this problem.

No, you are on the wrong list. You have a Pentaho problem and you're
asking the Tapestry list.

Josh

On Sun, Mar 11, 2012 at 10:10 PM, ram89  wrote:
> yes i did, please give me an solution for this problem.
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/html-pentaho-report-missing-some-data-tp5550783p5556646.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: Customising T5 URL Encoding

2012-03-12 Thread Jochen Frey
+1
On Mar 12, 2012, at 8:57 AM, David Canteros wrote:

> +1
> I have several problems with the integration of my Tapestry tools and other
> non-tapestry tools, all of this caused by tapestry URLEncoder. I solved
> this by overriding URLEncoder, but your proposal would be a more elegant
> solution
> 
> 
> --
> David Germán Canteros
> 
> 
> 2012/3/11 Paul Stanton 
> 
>> +1
>> 
>> possibly with 3 options? :
>> 
>> a) tomcat compatible default encoding
>> b) jetty compatible default encoding
>> c) tapestry encoding
>> 
>> On 21/06/2010 6:34 AM, Joel Halbert wrote:
>> 
>>> Agreed, it would be good to have this as a configuration option.
>>> 
>>> On 20/06/10 19:20, Kai Weber wrote:
>>> 
 * Nicolas Bouillon:
 
 The Tapestry URL encoding is not a problem for me in general, just for
> one
> use case when i wanted to migrate a site to tapestry and keeping the
> same
> URL (with accents, spaces, dashes, underscores and so on).
> 
 It is a problem if you get called by other webapps. If they call your
 page with the standard URL encoding scheme you have a problem.  Say you
 have
 
 onActivate(String emailadress)
 
 no one can call your page because the expected encoding for @ in T5 is
 $0040 where the rest of the world would send you an @.
 
 We use only query strings or numerical IDs as parameters for pages which
 can get called from external sites.
 
 I would like to see configuration option to switch or disable the
 URLEncoder completly.
 
 Kai
 
 --**--**
 -
 To unsubscribe, e-mail: 
 users-unsubscribe@tapestry.**apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
>>> 
>>> --**--**-
>>> To unsubscribe, e-mail: 
>>> users-unsubscribe@tapestry.**apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>>> 
>>> 
>> --**--**-
>> To unsubscribe, e-mail: 
>> users-unsubscribe@tapestry.**apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 

---
  joc...@jochenfrey.com
  +1.415.366.0450
  @jochen_frey



Problem with a Advice Method

2012-03-12 Thread Emmanuel DEMEY
Hi Tapestry users,

In the Tapestry5-jQuery project, I added an advise to the
AssetPathConverter service, in order to convert the ProgressiveDisplay.js
and exceptiondisplay.js to their jQuery version (modifyJsFile method) .

https://github.com/got5/tapestry5-jquery/blob/master/src/main/java/org/got5/tapestry5/jquery/services/JQueryModule.java


With an application using the Tapestry5-jQuery component library, after
restarting my jetty, sometimes this modifyJsfile method is not called !
sometimes it is !!

Have you already see this problem with an Advice?

Thanks

Manu


Re: Customising T5 URL Encoding

2012-03-12 Thread David Canteros
+1
I have several problems with the integration of my Tapestry tools and other
non-tapestry tools, all of this caused by tapestry URLEncoder. I solved
this by overriding URLEncoder, but your proposal would be a more elegant
solution


--
David Germán Canteros


2012/3/11 Paul Stanton 

> +1
>
> possibly with 3 options? :
>
> a) tomcat compatible default encoding
> b) jetty compatible default encoding
> c) tapestry encoding
>
> On 21/06/2010 6:34 AM, Joel Halbert wrote:
>
>> Agreed, it would be good to have this as a configuration option.
>>
>> On 20/06/10 19:20, Kai Weber wrote:
>>
>>> * Nicolas Bouillon:
>>>
>>>  The Tapestry URL encoding is not a problem for me in general, just for
 one
 use case when i wanted to migrate a site to tapestry and keeping the
 same
 URL (with accents, spaces, dashes, underscores and so on).

>>> It is a problem if you get called by other webapps. If they call your
>>> page with the standard URL encoding scheme you have a problem.  Say you
>>> have
>>>
>>> onActivate(String emailadress)
>>>
>>> no one can call your page because the expected encoding for @ in T5 is
>>> $0040 where the rest of the world would send you an @.
>>>
>>> We use only query strings or numerical IDs as parameters for pages which
>>> can get called from external sites.
>>>
>>> I would like to see configuration option to switch or disable the
>>> URLEncoder completly.
>>>
>>> Kai
>>>
>>> --**--**
>>> -
>>> To unsubscribe, e-mail: 
>>> users-unsubscribe@tapestry.**apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>>
>>
>> --**--**-
>> To unsubscribe, e-mail: 
>> users-unsubscribe@tapestry.**apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Problem using t:output format for numbers

2012-03-12 Thread hese

Thanks for the explanation Thiago! 

I implemented it through a get method and CSS.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Problem-using-t-output-format-for-numbers-tp5551573p5557987.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: browser back button, after logout while using Dispatcher

2012-03-12 Thread gaurav
Thank you Sahpaski,
It seems not to be the case of caching if it's caching problem then it would
stay on the last page (which was last visited) but it will immediately go
back to login page.
I added cache-control and the expires in my page but it will not help to
much.
Thanks & Regards
Gaurav P Singh
 

  



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/browser-back-button-after-logout-while-using-Dispatcher-tp5537754p5557837.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: problem logging into webapp using acegi

2012-03-12 Thread Jonathan Barker
I have always been particular with composition and case of roles, so
I'll put this as a question.

Do you have spaces in your role names and does it make a difference?
Does the difference in case (upper/lower) make a difference, because
you appear to have them mixed.

On Mon, Mar 12, 2012 at 12:39 AM, harishpatarla  wrote:
>
> Here is the full stack trace. I have integrated it with our organisation’s
> ldap server. I have given my username password in managerDn and
> managerPassword property of initialDirContextFactory bean.
> I am able to login.I have given the roles of the user as
> @secured({role1,role2,role3}).If you say the user trying to login does not
> have permissions for page then how do we provide that.
>
> 2012-03-08 12:26:36,826 DEBUG ["http-apr-8080"-exec-7]
> org.acegisecurity.providers.ProviderManager (ProviderManager.java:190) -
> Authentication attempt using
> org.acegisecurity.providers.ldap.LdapAuthenticationProvider
> 2012-03-08 12:26:36,826 DEBUG ["http-apr-8080"-exec-7]
> org.acegisecurity.providers.ldap.LdapAuthenticationProvider
> (LdapAuthenticationProvider.java:220) - Retrieving user dubeys
> 2012-03-08 12:26:36,827 DEBUG ["http-apr-8080"-exec-7]
> org.acegisecurity.ldap.search.FilterBasedLdapUserSearch
> (FilterBasedLdapUserSearch.java:110) - Searching for user 'dubeys', with
> user search [ searchFilter: 'sAMAccountName={0}', searchBase:
> 'ou=IGGroup,ou=IG Users', scope: subtreesearchTimeLimit: 0derefLinkFlag:
> false ]
> 2012-03-08 12:26:36,827 DEBUG ["http-apr-8080"-exec-7]
> org.acegisecurity.ldap.DefaultInitialDirContextFactory
> (DefaultInitialDirContextFactory.java:176) - Creating InitialDirContext with
> environment
> {java.naming.provider.url=ldap://igdc.igi.ig.local:389/dc=igi,dc=ig,dc=local,
> java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory,
> java.naming.security.principal=CN=Harish
> Patharla,OU=IGIndia,OU=IGGroup,OU=IG Users,DC=igi,DC=ig,DC=local,
> com.sun.jndi.ldap.connect.pool=true,
> java.naming.security.authentication=simple,
> java.naming.security.credentials=**}
> 2012-03-08 12:26:36,993 DEBUG ["http-apr-8080"-exec-7]
> org.acegisecurity.ldap.DefaultInitialDirContextFactory
> (DefaultInitialDirContextFactory.java:176) - Creating InitialDirContext with
> environment
> {java.naming.provider.url=ldap://igdc.igi.ig.local:389/dc=igi,dc=ig,dc=local,
> java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory,
> java.naming.security.principal=CN=Shubhang Dubey,OU=IGIndia,ou=IGGroup,ou=IG
> Users,dc=igi,dc=ig,dc=local, java.naming.security.authentication=simple,
> java.naming.security.credentials=**}
> 2012-03-08 12:26:37,476 DEBUG ["http-apr-8080"-exec-7]
> org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulator
> (DefaultLdapAuthoritiesPopulator.java:178) - Getting authorities for user
> CN=Shubhang Dubey,OU=IGIndia,ou=IGGroup,ou=IG Users,dc=igi,dc=ig,dc=local
> 2012-03-08 12:26:37,478 DEBUG ["http-apr-8080"-exec-7]
> org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulator
> (DefaultLdapAuthoritiesPopulator.java:224) - Searching for roles for user
> 'dubeys', DN = 'CN=Shubhang Dubey,OU=IGIndia,ou=IGGroup,ou=IG
> Users,dc=igi,dc=ig,dc=local', with filter (member={0}) in search base
> 'ou=Role,ou=Security Groups,ou=Administrative Area'
> 2012-03-08 12:26:37,479 DEBUG ["http-apr-8080"-exec-7]
> org.acegisecurity.ldap.DefaultInitialDirContextFactory
> (DefaultInitialDirContextFactory.java:176) - Creating InitialDirContext with
> environment
> {java.naming.provider.url=ldap://igdc.igi.ig.local:389/dc=igi,dc=ig,dc=local,
> java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory,
> java.naming.security.principal=CN=Harish
> Patharla,OU=IGIndia,OU=IGGroup,OU=IG Users,DC=igi,DC=ig,DC=local,
> com.sun.jndi.ldap.connect.pool=true,
> java.naming.security.authentication=simple,
> java.naming.security.credentials=**}
> 2012-03-08 12:26:37,634 DEBUG ["http-apr-8080"-exec-7]
> org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulator
> (DefaultLdapAuthoritiesPopulator.java:232) - Roles from search:
> [RLE-BLR-DEV-QA Engineer 4-staff]
> 2012-03-08 12:26:37,635 INFO  ["http-apr-8080"-exec-7]
> uk.co.igindex.regression.web.pages.Login (Login.java:79) - authResult is :
> org.acegisecurity.providers.UsernamePasswordAuthenticationToken@415cd0cc:
> Username: org.acegisecurity.userdetails.ldap.LdapUserDetailsImpl@1679bb1;
> Password: [PROTECTED]; Authenticated: true; Details: null; Granted
> Authorities: ROLE_RLE-BLR-DEV-QA ENGINEER 4-STAFF
> 2012-03-08 12:26:37,641 DEBUG ["http-apr-8080"-exec-7]
> org.slf4j.helpers.MarkerIgnoringBase (MarkerIgnoringBase.java:74) - Dispatch
> event: ComponentEvent[passivate from (self)]
> 2012-03-08 12:26:37,642 DEBUG ["http-apr-8080"-exec-7]
> org.acegisecurity.context.HttpSessionContextIntegrationFilter
> (HttpSessionContextIntegrationFilter.java:411) - SecurityContext stored to
> HttpSession: 'org.acegisecurity.context.SecurityContextImpl@415cd0cc:
> Authenticatio

Re: Problem with generated javascript and zone update

2012-03-12 Thread David Canteros
Hi, thanks for the response.
Probably you are right. I'm not an ajax/js expert, so the only thing I can
did is check the "response"  when the zone is updated (using firebug
console) and I can see the generated script inside a JSON variable called "*
evalScript*", i think. I dont know why it is not executed (problems with
the quote, maybe?).

The response (from firebug console):

{  "content" : "<\/input><\/input><\/div><\/div><\/input><\/input><\/form><\/html><\/div>",
"scripts" : ["/assets/1.3.4/ctx/js/amcharts.js",
"/assets/1.3.4/ctx/js/raphael.js",
"/assets/1.3.4/ctx/js/SvgToCanvas.js"  ],  "inits" : [{
"formEventManager" : [{  "formId" :
"reportExecutionForm_13607275c88",  "validate" : {
"submit" : true,"blur" : true  }}  ]
 },{ * "evalScript" : [**"var chart; var chartData =
[{month: \"01-2011\",travel: 6688.0,training: 3705.0,cumulative:
10393.0,budget: 0.0},{month: \"02-2011\",travel: 3135.0,training:
7593.0,cumulative: 21121.0,budget: 0.0},{month: \"03-2011\",travel:
3490.0,training: 7555.23,cumulative: 32166.23,budget: 0.0},{month:
\"04-2011\",travel: 8696.0,training: 2091.0,cumulative:
42953.23,budget: 0.0},{month: \"05-2011\",travel: 15912.0,training:
5416.0,cumulative: 64281.23,budget: 0.0},{month: \"06-2011\",travel:
13657.4499,training: 3832.0,cumulative: 81770.68,budget:
0.0},{month: \"07-2011\",travel: 7491.3899,training:
4857.0,cumulative: 12348.39,budget: 0.0},{month: \"08-2011\",travel:
5517.5999,training: 2207.0,cumulative: 20072.99,budget:
0.0},{month: \"09-2011\",travel: 17166.18,training:
12551.0,cumulative: 49790.17,budget: 0.0},{month: \"10-2011\",travel:
4151.67,training: 1483.0,cumulative: 55424.8404,budget:
0.0},{month: \"11-2011\",travel: 15269.7,training: 10241.0,cumulative:
80935.541,budget: 0.0},{month: \"12-2011\",travel:
13838.3,training: 1608.0,cumulative: 96381.843,budget:
990993.0},{month: \"01-2012\",travel: 4727.59,training:
3954.0,cumulative: 8681.59,budget: 990993.0}];AmCharts.ready(function
() { chart = new AmCharts.AmSerialChart(); chart.dataProvider =
chartData;  chart.categoryField = \"month\";chart.startDuration =
1;chart.rotate = false;chart.depth3D = 20;chart.angle = 45;
chart.addTitle(\"Training budget tracking for MS\", 14);var
categoryAxis = chart.categoryAxis;categoryAxis.gridPosition =
\"start\"; categoryAxis.axisColor = \"#DADADA\";  categoryAxis.title =
\"Months  \";categoryAxis.dashLength = 5;categoryAxis.labelRotation =
45;var valueAxis0 = new AmCharts.ValueAxis(); valueAxis0.stackType =
\"regular\"; valueAxis0.title = \"Travel and training costs
\";valueAxis0.gridAlpha = 0.1; valueAxis0.axisAlpha =
0;chart.addValueAxis(valueAxis0);var valueAxis1 = new
AmCharts.ValueAxis(); valueAxis1.stackType = \"regular\";
valueAxis1.title = \"Cumulative costs and Budget\";
valueAxis1.gridAlpha = 0.1; valueAxis1.axisAlpha = 0;
valueAxis1.synchronizationMultiplyer =
1;valueAxis1.synchronizeWithAxis(valueAxis0);valueAxis1.position =
\"right\";chart.addValueAxis(valueAxis1);var graph1 = new
AmCharts.AmGraph(); graph1.type = \"column\";graph1.title = \"Travel
cost (flight + expenses)\";graph1.valueField = \"travel\";
graph1.fillColors = \"#8414A5\";graph1.lineAlpha = 0;graph1.fillAlphas
= 1;graph1.axisColor=\"#ADD981\";chart.addGraph(graph1);var graph2 =
new AmCharts.AmGraph(); graph2.type = \"column\";graph2.title =
\"Training cost (fee)\";graph2.valueField = \"training\";
graph2.fillColors = \"#84CB7B\";graph2.lineAlpha = 0;graph2.fillAlphas
= 1;graph2.axisColor=\"#ADD981\";chart.addGraph(graph2);var graph3 =
new AmCharts.AmGraph(); graph3.type = \"line\";graph3.title =
\"Cumulative cost\";graph3.valueField = \"cumulative\";
graph3.lineColor = \"#FFA218\";graph3.lineThickness = 3;graph3.bullet
= \"round\"; graph3.fillAlphas =
0;graph3.axisColor=\"#ADD981\";graph3.valueAxis=valueAxis0;chart.addGraph(graph3);var
graph4 = new AmCharts.AmGraph(); graph4.type = \"line\";graph4.title =
\"Budget\";graph4.valueField = \"budget\"; graph4.lineColor =
\"red\";graph4.lineThickness = 3;graph4.bullet = \"round\";
graph4.fillAlphas =
0;graph4.axisColor=\"#ADD981\";graph4.valueAxis=valueAxis1;chart.addGraph(graph4);var
legend = new AmCharts.AmLegend(); chart.addLegend(legend);
chart.write(\"chartdiv\");  });"**  ],*  "zone" : [{
   "update" : "highlight",  "element" :
"graphZone_13607275c88",  "show" : "show"}  ]}
 ]}








--
David Germán Canteros


2012/3/9 trsvax 

> My guess would be there is something in your script that cannot be sent in
> a
> JSONObject. Without a zone the script is just included in the HTML but a
> zone update returns a JSONObject and there are rules about what can be
> included.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Problem-with-generated-javascript-and-zone-update-tp5550938

Re: browser back button, after logout while using Dispatcher

2012-03-12 Thread gaurav
Thanks A lot Taha,
well I checked userExist in onActive() method so it sendredirect to login
page.
I am new in tapestry just started 1 month back. So it is hard to use Apache
Shiro so early
but I will try later.
Thanks & Regards
Gaurav P Singh


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/browser-back-button-after-logout-while-using-Dispatcher-tp5537754p5557742.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: Is there any way to get the selected item's index in loop after layout has been done?

2012-03-12 Thread karthi
No in that loop examples they are getting the loop source values and passed
to other pages, I've used that 

using the currentIndex in that same java page,

public String getAlternateColour() {
String bgColor = null;
if(currentIndex%2 == 0) {
bgColor = "#EBEBEB";
} else {
bgColor = "#CBCBCB";
}
return bgColor;
} 

also in .tml page inside loop,





${videoItem.name}







This loop contains 35 items - name and a button with alternate background
color and for eg., if the user clicked on the 7th item button then I want
that index in that corresponding java page?

When 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Is-there-any-way-to-get-the-selected-item-s-index-in-loop-after-layout-has-been-done-tp5557270p5557467.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: html pentaho report missing some data

2012-03-12 Thread Taha Hafeez
Hi

There is no context, no tapestry related information, no source code,
you won't get much help this way.

Check this out

http://catb.org/esr/faqs/smart-questions.html

regards
Taha



On Mon, Mar 12, 2012 at 10:40 AM, ram89  wrote:
> yes i did, please give me an solution for this problem.
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/html-pentaho-report-missing-some-data-tp5550783p5556646.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
>



-- 
Regards

Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com

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



Re: Is there any way to get the selected item's index in loop after layout has been done?

2012-03-12 Thread Chris Mylonas


Something like this 
http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/linkingloop1
If not that one, there are other examples: 
http://jumpstart.doublenegative.com.au/jumpstart/examples
You'll find your answer there


On 12/03/2012, at 9:53 PM, karthi wrote:

> Hi,
> 
> In the java page I have,
> 
>@Property
>private int currentIndex;
> 
>public List getVideoDatas() {
>   videoItems = null;
>   VideoItemCollection collection = new
> VideoItemCollection(Constants.VIDEOS);
>   if(collection.videoItems.size() > 0) {
>   videoItems = collection.videoItems;
>   }
>   return videoItems;
>   }
> 
> In the .tml page,
> 
>  index="currentIndex">
> ---
> --- body ---
> ---
> 
> 
> 
> The video datas size is 35.
> 
> Now after all the layout has been done by jvm or something for this page,
> when the user clicks on an item which is inside that loop i.e., one of the
> 35 items for eg., 5th item, how to retrieve that particular item's index in
> that corresponding java page..
> 
> When I print this currentIndex it shows 35...
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Is-there-any-way-to-get-the-selected-item-s-index-in-loop-after-layout-has-been-done-tp5557270p5557270.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



Is there any way to get the selected item's index in loop after layout has been done?

2012-03-12 Thread karthi
Hi,

In the java page I have,

@Property
private int currentIndex;

public List getVideoDatas() {
videoItems = null;
VideoItemCollection collection = new
VideoItemCollection(Constants.VIDEOS);
if(collection.videoItems.size() > 0) {
videoItems = collection.videoItems;
}
return videoItems;
}

In the .tml page,


---
--- body ---
---



The video datas size is 35.

Now after all the layout has been done by jvm or something for this page,
when the user clicks on an item which is inside that loop i.e., one of the
35 items for eg., 5th item, how to retrieve that particular item's index in
that corresponding java page..

When I print this currentIndex it shows 35...

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Is-there-any-way-to-get-the-selected-item-s-index-in-loop-after-layout-has-been-done-tp5557270p5557270.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: How do I pass values from one page to another using onSelected

2012-03-12 Thread karthi
Thank you it works great!!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-do-I-pass-values-from-one-page-to-another-using-onSelected-tp5556685p5557246.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: How do I pass values from one page to another using onSelected

2012-03-12 Thread Stephan Windmüller
On 12.03.2012 06:32, karthi wrote:

> When the user clicked on the button this above method will get invoked and I
> return a name "Play" so the page Play will get invoked, here I want to send
> a value (url to play the music) from music.tml to play.tml when the user
> clicks on the button, how do I achieve that?

1. Inject the target page using @InjectPage
2. Set the value of the URL for the injected page
3. Return the injected page, not the page name

You can find an example here:

http://jumpstart.doublenegative.com.au/jumpstart/examples/state/passingdatabetweenpages

HTH
 Stephan



signature.asc
Description: OpenPGP digital signature


Re: Serving Tapestry5 Assets As Static Resources

2012-03-12 Thread Dmitry Gusev
What do you mean by "css is already modified on the way out"?
It's only modified as bytes stream to do gzip compression.
Also yuicompressor modifies it somehow by removing not necessary spaces and
semicolons, thats all.
So for now you have to write your own css preprocessor to implement this.

On Sun, Mar 11, 2012 at 23:58, Paul Stanton  wrote:

> nice! i'd like to see the checksum approach in tapestry and since css is
> already modified on the way out, the checksum url 'could' be applied to
> relative paths in css? maybe...
>
> On 12/03/2012 12:02 AM, Dmitry Gusev wrote:
>
>> FYI:
>>
>> http://dmitrygusev.blogspot.**com/2012/03/serving-tapestry5-**
>> assets-as-static.html
>>
>>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com