Re: T 5.2.6 EventLink and confirm box

2012-04-19 Thread pieter
I think you better create a mixin !

http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T-5-2-6-EventLink-and-confirm-box-tp5653459p5653489.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



T 5.2.6 EventLink and confirm box

2012-04-19 Thread resign
hi,
i have a problem

i have an EventLink to delete user, on this link a created an "onClick"
listener which ask the user if he want to delete something. but Event
will fired in each case.

example:

.
delete

.

How can i do this?

thanks,
resign

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T-5-2-6-EventLink-and-confirm-box-tp5653459p5653459.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: Handling component's actionlink on the enclosing page?

2012-04-19 Thread Chris Mylonas
that is an awesome one or two line explanation of an event bubble!

this was a little too hard to take in whilst i mucked around with custom 
components and totally missed the point 
(https://tapestry.apache.org/component-events.html)
the jumpstart example looks good too 
http://jumpstart.doublenegative.com.au/jumpstart/examples/component/eventbubbling

cheers
chris

On 20/04/2012, at 6:05 AM, Thiago H. de Paula Figueiredo wrote:

> On Thu, 19 Apr 2012 16:59:33 -0300, Thiago H. de Paula Figueiredo 
>  wrote:
> 
>> Yes, if you change from ActionLink to EventLink.
> 
> Ooops, it missed the explanation: Tapestry component ids are local to the 
> component or page in which they were declared, so, outside it, you cannot use 
> the id in the event handler method name of the @OnEvent annotation. On the 
> other hand, event names don't have this limitation. Events bubble up (from 
> the component that triggers it to its parent until it reaches the containing 
> page).
> 
> Summary: use EventLink with a different event name for each link.
> 
> -- 
> 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
> 


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



Re: tapestry5-highcharts available

2012-04-19 Thread Chris Mylonas
Cool - will do.

Have a good weekend,
Chris

On 18/04/2012, at 6:45 PM, Emmanuel DEMEY wrote:

> You're welcome.
> You can improve the documentation by yourself, and send to me a github pull
> request ;).
> https://github.com/got5/tapestry5-highcharts/blob/master/src/test/resources/org/got5/tapestry5/highcharts/test/pages/Index.tml
> 
> 
> 
> 2012/4/18 Chris Mylonas 
> 
>> Oh yeah... thanks for that.
>> Docs on this page may need to be updated:
>> http://tapestry5-jquery.com/highcharts/
>> 
>> Usage section
>> 1.  1.1.0 for 5.3 & 1.0.0 for 5.2
>> 2.  repository URL =
>> http://nexus.pullrequest.org/content/repositories/releases
>> 
>> 
>> 
>> All working now - thanks for taking the time to get me going :D
>> 
>> Cheers
>> Chris
>> 
>> 
>> On 18/04/2012, at 6:09 PM, Emmanuel DEMEY wrote:
>> 
>>> In your pom.xml, change the repository url of pull Request to
>>> http://nexus.pullrequest.org/content/repositories/releases/<
>> http://nexus.pullrequest.org/content/repositories/releases/org/got5/tapestry5-highcharts/1.1.0/tapestry5-highcharts-1.1.0.jar
>>> 
>>> 
>>> 
>>> 2012/4/18 Chris Mylonas 
>>> 
 Nearly.
 
 Similar problem to before in the fetching URL being not quite correct.
 
 Maven is trying to fetch from:
 
 
>> http://nexus.pullrequest.org/org/got5/tapestry5-highcharts/1.1.0/tapestry5-highcharts-1.1.0.jar
 
 When it should be:
 
 
>> http://nexus.pullrequest.org/content/repositories/releases/org/got5/tapestry5-highcharts/1.1.0/tapestry5-highcharts-1.1.0.jar
 
 
 
 
 On 18/04/2012, at 5:36 PM, Emmanuel DEMEY wrote:
 
> Hi
> 
> I have just created the 1.1.0 release. Can you test it ?
> 
> Manu
> 
> 2012/4/18 Chris Mylonas 
> 
>> Thanks - I've downloaded the jar manually because maven was still
>> complaining about no pom information available.
>> I made the snapshots enabled = true, but the same.
>> 
>> So it's installed in my .m2/repository manually.
>> 
>> I'm fine for now, but not sure if the docs / maven stuff is working
>> correctly - it didn't work for me automatically -
>> 
>> Thanks for your help
>> 
>> 
>> On 18/04/2012, at 5:26 PM, WINDEY Pieter AWL-IT wrote:
>> 
>>> 
>> 
 
>> http://nexus.pullrequest.org/content/repositories/snapshots/org/got5/tapestry5-highcharts/1.1.0-SNAPSHOT/
>>> 
>>> 
>>> 
>>> -Original Message-
>>> From: Chris Mylonas [mailto:ch...@opencsta.org]
>>> Sent: Wednesday 18 April 2012 09:24
>>> To: Tapestry users
>>> Subject: Re: tapestry5-highcharts available
>>> 
>>> The artifact info from doing a search points to this URL
>> 
 
>> http://nexus.pullrequest.org/org/got5/tapestry5-highcharts/1.1.0-SNAPSHOT/tapestry5-highcharts-1.1.0-20120417.220226-18.jar
>>> 
>>> but again some technical glitch with the server/service.
>>> 
>>> 
>>> 
>>> 
>>> On 18/04/2012, at 5:12 PM, Emmanuel DEMEY wrote:
>>> 
 Hi
 
 If you have a Tapestry 5.3.* application, you should use the
 1.1.0-SNAPSHOT. If it is a Tap 5.2.6 app, modify the version to
>> 1.0.0.
 
 Emmanuel
 
 2012/4/16 Chris Mylonas 
 
> Hi Manu
> 
> I just tried the sample BasicComponent but maven is complaining
>> about
>> not
> being able to find the tapestry5-highcharts jar file.
> I tried installing it manually as suggested by maven but still no
 luck.
> 
> apache-staging (
 https://repository.apache.org/content/groups/staging/,
> releases=true, snapshots=true),
> PullRequest Repository (http://nexus.pullrequest.org,
>> releases=true,
> snapshots=true),
> devlab722-repo (
> http://nexus.devlab722.net/nexus/content/repositories/releases,
> releases=true, snapshots=false),
> devlab722-snapshot-repo (
> http://nexus.devlab722.net/nexus/content/repositories/snapshots,
> releases=false, snapshots=true),
> central (http://repo1.maven.org/maven2, releases=true,
>> snapshots=false)
> 
> [INFO] Unable to read jar manifest from
> 
>> 
 
>> /Users/chrismylonas/.m2/repository/org/got5/tapestry5-highcharts/1.0.0-SNAPSHOT/tapestry5-highcharts-1.0.0-SNAPSHOT.jar
> [INFO] Wrote settings to
> 
>> 
 
>> /Users/chrismylonas/Documents/2012/Scat/highcharts/.settings/org.eclipse.jdt.core.prefs
> [INFO] Wrote Eclipse project for "highcharts" to
> /Users/chrismylonas/Documents/2012/Scat/highcharts.
> [INFO]
> [INFO]
> 
>> 
>> 
> [INFO] BUILD SUCCESS
> [INFO]
> 
>> 
>> 
> [INFO] Total time: 15.387s
> 

Re: Is there such thing as a Tapestry class?

2012-04-19 Thread George Christman
Hi Howard, if your unable to prepare the materials for an online course, do
you think there's a chance a class could be organized at a selected
location? I'm pretty sure you'll find smaller organizations wouldn't mind
getting training without having to layout the full expense of bringing you
on site. 

The online training I just received was very good, 9-5 for 5 days straight.
The class grossed just shy of 30k which obviously was split over the 15
students attending. That being said, it might be worth someones time to
offer it a couple times a year, or as needed. 

I really think it's going to be needed in order to continue to help this
project/community prosper. Especially if new organization's with smaller
teams decide to start using it. 

Any thoughts?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Is-there-such-thing-as-a-Tapestry-class-tp5652475p5652998.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: Why @EagerLoad services come before @Startup methods?

2012-04-19 Thread fmaylinch
Thanks Thiago,

The order in which the @EagerLoad services are instantiated is not
important (I mean, the order between them); they just need to be
instantiated after a @Startup method that initializes something for them,
because those services use a utility class with static methods that
requires someome to call its init() method.
On Apr 19, 2012 10:02 PM, "Thiago H de Paula Figueiredo [via Tapestry]" <
ml-node+s1045711n5652661...@n5.nabble.com> wrote:

> On Thu, 19 Apr 2012 16:38:09 -0300, Ferran Maylinch
> <[hidden email] >
> wrote:
>
> > Thanks Lance.
> > But we have several "@EagerLoads" so we would have to call all their
> > init() methods!
>
> I'd say that if you need specific service initiation ordering, you should
>
> contribute to the RegistryStartup service, which has an ordered
> configuration, instead of using @EagerLoad.
>
> --
> 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: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/Why-EagerLoad-services-come-before-Startup-methods-tp5651302p5652661.html
>  To unsubscribe from Why @EagerLoad services come before @Startup
> methods?, click 
> here
> .
> NAML
>


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Why-EagerLoad-services-come-before-Startup-methods-tp5651302p5652888.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Is there such thing as a Tapestry class?

2012-04-19 Thread Howard Lewis Ship
The good news is that I have a pretty comprehensive Tapestry course
... however, I have not structured it for remote presentation;
instead, I've been providing training on-site for clients. I know this
means I've been missing out on opportunities to train smaller shops,
such as yours.  Reworking things so that they would work well remotely
would be a big challenge, and I prefer the intensive 3-4 days class
vs. doing a couple of hours a day for a week or more.

On Thu, Apr 19, 2012 at 1:13 PM, Russell John-Baptistr  wrote:
>
>
> I would be interested in an event like this. For tapestry to take its 
> marketing to the next level there needs to be more  docs and tutorials that 
> are accessible to an audience that is less senior such as junior developers 
> (such as myself) in the beginning of their careers...
>
>
>
> On Apr 19, 2012, at 3:21 PM, George Christman  wrote:
>
>> Would you guys consider offering an organized web based class? I'm currently
>> the only one in my organization that would be taking the class, so it
>> wouldn't make economical sense to have someone on site. Perhaps we could put
>> together a small class? My recent java training consisted of 15 remote
>> students at a cost of nearly 2k for one week / 35hrs. My manager is working
>> on his training budget for this coming fiscal year and asked if I knew of
>> any Tapestry training.
>>
>> --
>> View this message in context: 
>> http://tapestry.1045711.n5.nabble.com/Is-there-such-thing-as-a-Tapestry-class-tp5652475p5652568.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
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



Re: 5.3.0 java.lang.IncompatibleClassChangeError: Implementing class

2012-04-19 Thread trsvax
I know this is a bit old but I just ran into this problem. For me it was 

org.chenillekit
chenillekit-tapestry
1.3.0


Which brings in the tapestry 5.2 functions jar file

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/5-3-0-java-lang-IncompatibleClassChangeError-Implementing-class-tp4534951p5652791.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: Communication with the server failed: undefined

2012-04-19 Thread ytsurk

FYI

for me this error also occurs when i set the HTTP-HEADER x-requested-with to
XMLHttpRequest, (with modifyHeaders in FF)
and do (or intend) a normal request pagerequest.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Communication-with-the-server-failed-undefined-tp5594844p5651598.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 such thing as a Tapestry class?

2012-04-19 Thread Russell John-Baptistr


I would be interested in an event like this. For tapestry to take its marketing 
to the next level there needs to be more  docs and tutorials that are 
accessible to an audience that is less senior such as junior developers (such 
as myself) in the beginning of their careers...



On Apr 19, 2012, at 3:21 PM, George Christman  wrote:

> Would you guys consider offering an organized web based class? I'm currently
> the only one in my organization that would be taking the class, so it
> wouldn't make economical sense to have someone on site. Perhaps we could put
> together a small class? My recent java training consisted of 15 remote
> students at a cost of nearly 2k for one week / 35hrs. My manager is working
> on his training budget for this coming fiscal year and asked if I knew of
> any Tapestry training. 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Is-there-such-thing-as-a-Tapestry-class-tp5652475p5652568.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: Handling component's actionlink on the enclosing page?

2012-04-19 Thread Thiago H. de Paula Figueiredo
On Thu, 19 Apr 2012 16:59:33 -0300, Thiago H. de Paula Figueiredo  
 wrote:



Yes, if you change from ActionLink to EventLink.


Ooops, it missed the explanation: Tapestry component ids are local to the  
component or page in which they were declared, so, outside it, you cannot  
use the id in the event handler method name of the @OnEvent annotation. On  
the other hand, event names don't have this limitation. Events bubble up  
(from the component that triggers it to its parent until it reaches the  
containing page).


Summary: use EventLink with a different event name for each link.

--
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: Why @EagerLoad services come before @Startup methods?

2012-04-19 Thread Thiago H. de Paula Figueiredo
On Thu, 19 Apr 2012 16:38:09 -0300, Ferran Maylinch  
 wrote:



Thanks Lance.
But we have several "@EagerLoads" so we would have to call all their  
init() methods!


I'd say that if you need specific service initiation ordering, you should  
contribute to the RegistryStartup service, which has an ordered  
configuration, instead of using @EagerLoad.


--
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: Handling component's actionlink on the enclosing page?

2012-04-19 Thread Thiago H. de Paula Figueiredo
On Thu, 19 Apr 2012 16:36:58 -0300, Dmitriy Vsekhvalnov  
 wrote:



Hi all,


Hi!


i have simple custom component within  loop on the page:


   

UnitEditor.tml contains couple ActionLinks:

..
..

Can i handle those events in the page class?


Yes, if you change from ActionLink to EventLink.

--
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: Why @EagerLoad services come before @Startup methods?

2012-04-19 Thread Ferran Maylinch
Thanks Lance.

But we have several "@EagerLoads" so we would have to call all their init()
methods!
On Apr 19, 2012 1:36 PM, "Lance Java [via Tapestry]" <
ml-node+s1045711n5651506...@n5.nabble.com> wrote:

> Instead of initializing your @EagerLoad service in it's constructor, you
> could add an init() method to the service.
> Then you call init() inside a @Startup method after you have initialized
> any dependencies.
>
> http://tapestry.apache.org/registry-startup.html
>
> Lance.
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/Why-EagerLoad-services-come-before-Startup-methods-tp5651302p5651506.html
>  To unsubscribe from Why @EagerLoad services come before @Startup
> methods?, click 
> here
> .
> NAML
>


Re: Is there such thing as a Tapestry class?

2012-04-19 Thread George Christman
Would you guys consider offering an organized web based class? I'm currently
the only one in my organization that would be taking the class, so it
wouldn't make economical sense to have someone on site. Perhaps we could put
together a small class? My recent java training consisted of 15 remote
students at a cost of nearly 2k for one week / 35hrs. My manager is working
on his training budget for this coming fiscal year and asked if I knew of
any Tapestry training. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Is-there-such-thing-as-a-Tapestry-class-tp5652475p5652568.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 such thing as a Tapestry class?

2012-04-19 Thread Thiago H. de Paula Figueiredo

On Thu, 19 Apr 2012 15:43:33 -0300, gricker  wrote:


I would also be interested in some sort of online learning for Tapestry.


http://tapestry.apache.org/about.html

--
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: Is there such thing as a Tapestry class?

2012-04-19 Thread gricker

I would also be interested in some sort of online learning for Tapestry. 

Greg

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Is-there-such-thing-as-a-Tapestry-class-tp5652475p5652493.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



Is there such thing as a Tapestry class?

2012-04-19 Thread George Christman
Does anybody know of a training center that offers Tapestry training? I just
recently did some java training using some distant learning tools at a local
New Horizon Center. I was surprised to find how much I got out of that class
and wondered if something similar existed for Tapestry? I feel as the
tapestry framework continues to grows larger, it's becoming increasingly
harder to bring non tapestry users on board quickly. I discovered today IoC,
something I'm struggling to understand despite the excellent documentation,
but could be resolved quickly with some training. Any thoughts?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Is-there-such-thing-as-a-Tapestry-class-tp5652475p5652475.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: tapestry-security w/ Remote Login

2012-04-19 Thread Kalle Korhonen
On Thu, Apr 19, 2012 at 9:10 AM, George Christman
 wrote:
> Hi Kalle, I know it's been some time since we last spoke about this project.
> I'm getting started with it again and had a question for you. When you said
> I could call Subject.login in my isAuthorized method, were you referring to
> something like this?
>    @Override
>    protected boolean isAuthorized(HRIPrinciple hrip, String urlPath) {
>        Subject currentUser = SecurityUtils.getSubject();
>        HRIAuthenticationToken token = new
> HRIAuthenticationToken(hrip.getUid());
>        currentUser.login(token);
>        return currentUser.isAuthenticated();
>    }

Yes, perhaps.

> I'm not entirely sure why I would need to access Tapestry's machinery. "I
> don't know anything about Tapestry IOC". Would you further explain that
> please and possibly point me to the tapestry security source location?

Mastering Tapestry IoC is a key to understanding and being productive
with Tapestry. If you just wanted to use Shiro alone, you could
perhaps get the above working by configuring your custom filter and
Shiro outside of Tapestry using the standard servlet configuration
(i.e. web.xml) mechanism. Tapestry security initializes and invokes
Shiro within Tapestry's servlet request pipeline, and replaces Shiro's
standard filters with its own. There are multiple benefits with these
approach, one of the keys ones is that you can use any other services
in your security filters, realms, etc. I would assume that
initializing your custom filter within tapestry-security context would
be the path of least (less?) resistance to get this working for you.
The tapestry-security source code is essential reading for you. You
could start with
http://svn.codehaus.org/tynamo/trunk/tapestry-security/src/main/java/org/tynamo/security/services/impl/SecurityFilterChainFactoryImpl.java.
Map the chain concept to "Contributing security configuration" section
on http://tynamo.org/tapestry-security+guide and it should be fairly
straight-forwarded to add your filter to the chain (you can just
construct the object manually for your chains, no factory required).

Kalle


> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/tapestry-security-w-Remote-Login-tp5505792p5652188.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: Tree leaf not selectable

2012-04-19 Thread George Christman
I essentially had to do the same thing Lance suggested. This bug exist in the
Tapestry-Jquery implementation too. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tree-leaf-not-selectable-tp5651521p5652216.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: tapestry-security w/ Remote Login

2012-04-19 Thread George Christman
Hi Kalle, I know it's been some time since we last spoke about this project.
I'm getting started with it again and had a question for you. When you said
I could call Subject.login in my isAuthorized method, were you referring to
something like this?

@Override
protected boolean isAuthorized(HRIPrinciple hrip, String urlPath) {
Subject currentUser = SecurityUtils.getSubject();
HRIAuthenticationToken token = new
HRIAuthenticationToken(hrip.getUid());
currentUser.login(token);
return currentUser.isAuthenticated();
}

I'm not entirely sure why I would need to access Tapestry's machinery. "I
don't know anything about Tapestry IOC". Would you further explain that
please and possibly point me to the tapestry security source location? 

Thanks,
George

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/tapestry-security-w-Remote-Login-tp5505792p5652188.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: Tree leaf not selectable

2012-04-19 Thread Lance Java
Hi Geoff, from what I've seen, the tree nodes don't do anything when
selected.

You can set the "label" parameter if you'd like to do something special.


  
 


   ${myTree.node.label}

 
  



Tree leaf not selectable

2012-04-19 Thread Geoff Callender
I can't make a tree leaf selectable. When I click on a leaf there's a _javascript_ error in tree.js:function doAnimate(element) {var sublist = $(element).up('li').down("ul");var dim = sublist.getDimensions();tree.js:52TypeError: 'undefined' is not an object (evaluating 'sublist.getDimensions')var duration = Math.min(dim.height * cfg.ANIMATION_RATE,cfg.MAX_ANIMATION_DURATION)new Effect.toggle(sublist, cfg.TOGGLE_TYPE, {duration : duration,queue : {position : 'end',scope : cfg.QUEUE_NAME}});}Just in case the above error didn't got lost on the way to the mailing list, it says:	TypeError: 'undefined' is not an object (evaluating 'sublist.getDimensions')It is undefined because I clicked on 'tree_1', which has an 'li' up from it but no 'ul' down from there:			    100 Philosophy		I saw in the doco that I have to provide a TreeSelectionModel if I want it to be selectable, and that is what I had done:        	public TreeSelectionModel getSelectionModel() {		if (selectionModel == null) {			selectionModel = new DefaultTreeSelectionModel();		}		return selectionModel;	}Have I missed something or is this a bug?Cheers,Geoff

Re: Why @EagerLoad services come before @Startup methods?

2012-04-19 Thread Lance Java
Instead of initializing your @EagerLoad service in it's constructor, you
could add an init() method to the service.
Then you call init() inside a @Startup method after you have initialized
any dependencies.

http://tapestry.apache.org/registry-startup.html

Lance.


Why @EagerLoad services come before @Startup methods?

2012-04-19 Thread fmaylinch
Hello,

We've seen that @EagerLoad services are instantiated before @Startup methods
are executed?

Why that? Wouldn't make more sense the other way?

What should we do if an @EagerLoad service needs initialization provided by
a @Startup method?

Thanks!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Why-EagerLoad-services-come-before-Startup-methods-tp5651302p5651302.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