Re: Why the activate of another class got executed? T5.3.3

2012-07-17 Thread Angelo C.
Finally I believe I located the problem: Chrome will fetch ahead pages while you are typing, say: localhost:8080/info/u before i finish the word update, it will show some suggestions, and in fact it already fetch the page as I can see the logs from the terminal, switching to Safari solves the prob

Re: Adding a class to a div based on field validation status

2012-07-17 Thread Alex Kotchnev
I ended up figuring out something that works and it turned out to be both more elegant (as it ends up being more clean and reusable than I expected) and a bit more twisted ( I totally didn't expect that I'd have to use this @HeartbeatDeferred approach, I expected something more straightforward) tha

Re: Tapestry Tynamo Rest and security integration questions

2012-07-17 Thread Kalle Korhonen
Taha's got the winning answer, thanks! The default order constraints for the contributions make some sense but perhaps we could address this in the resteasy module and contribute it after StoreIntoGlobals... I think there may have been some discussion around this before, I need to check the archive

Re: Adding a dynamic sub directory to URL 

2012-07-17 Thread dkeenan
This looks perfect! Tapestry is outstandingly good. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Adding-a-dynamic-sub-directory-to-URL-tp5714532p5714537.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Adding a dynamic sub directory to URL 

2012-07-17 Thread dkeenan
Thanks. Will take a look. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Adding-a-dynamic-sub-directory-to-URL-tp5714532p5714535.html Sent from the Tapestry - User mailing list archive at Nabble.com. - T

Re: Tapestry Tynamo Rest and security integration questions

2012-07-17 Thread Taha Siddiqi
Hi For security I changed the order of the SecurityConfiguration in the Application Module public static void contributeHttpServletRequestHandler( @InjectService("SecurityConfiguration") HttpServletRequestFilter securityConfiguration, OrderedConfiguration filters) {

Re: Adding a dynamic sub directory to URL 

2012-07-17 Thread dkeenan
Superbe! It looks like I can just use a URL rewriter filter to rewrite my URLs and pass the club name in as a request param. http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/4.0/index.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/Adding-a-dynamic-s

Re: Adding a dynamic sub directory to URL 

2012-07-17 Thread Taha Siddiqi
Hi You should take a look at Tapestry's LinkTransformer API http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/linktransform/LinkTransformer.html Here is more than helpful Igor's post http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/ regards Taha On J

Adding a dynamic sub directory to URL 

2012-07-17 Thread dkeenan
Hi folks. I am writing a web app to be used by a number of clubs. Each club can register and create a gallery page and a contact page. Both pages will then be public.  I each clubs pages to be viewable from the following urls: http://localhost//gallery http://localhost//contact When someone brow

Re: tapestry namespace

2012-07-17 Thread mu
understand. thanks a lot On Tue, Jul 17, 2012 at 7:56 PM, Thiago H de Paula Figueiredo wrote: > On Tue, 17 Jul 2012 07:57:54 -0300, mu wrote: > >> Hi all, > > > Hi, Mu! > > >> > context="user.name">welcome >> "id" has a prefix "t", but "context" has not. why? when should the "t" >> prefix be use

Re: Tapestry Tynamo Rest and security integration questions

2012-07-17 Thread bhorvat
I tried security part of the code again and I got this exception org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configur

Re: Beaneditform Troubles

2012-07-17 Thread loshmeey
Thnx Alex! im gonna give it a go in the mornning! Best Regards, Milos D. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-Troubles-tp5714511p5714529.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Tapestry Tynamo Rest and security integration questions

2012-07-17 Thread bhorvat
Hi Kalle Korhonen-2 thx for reply I have tired to just inject the response object but I got some strange null pointer (the actual object is not null but something in side of it I guess it is ). Here is the exception java.lang.NullPointerException: Unable to delegate method invocation to propert

Re: Tapestry Tynamo Rest and security integration questions

2012-07-17 Thread Kalle Korhonen
On Tue, Jul 17, 2012 at 2:01 PM, bhorvat wrote: > I have 2 problems. The first one is how can I look at the url that is being > accessed. The reason for that is because to rest service it will be able to > access from subdomains like such > example1.webapp.com/rest/ > example2.webapp.com/rest/ > S

Adding a class to a div based on field validation status

2012-07-17 Thread Alex Kotchnev
I have a very simple form and I'm trying to add a special class to a div inside the form which would indicate if the field that's contained inside the div has an error. It seems that it should be simple to do so, but I can't seem to do it. I'm trying to style the form using the Bootstrap form styl

Tapestry Tynamo Rest and security integration questions

2012-07-17 Thread bhorvat
Hi all, I am writing an rest service layer for my application and I am using the tynamo to make my life easier ;) I have 2 problems. The first one is how can I look at the url that is being accessed. The reason for that is because to rest service it will be able to access from subdomains like suc

Re: BufferedImage in Tapestry

2012-07-17 Thread Howard Lewis Ship
You need to connect the dots between what you have and what the browser needs. What you have is BufferedImage object. What the browser needs is a URL. When it uses HTTP GET on that URL, it needs a stream of bytes. You can't just return the BufferedImage object; there's no realistic way that Tap

Re: BufferedImage in Tapestry

2012-07-17 Thread Michael Prescott
I wish I had more time to explain; I don't right now. Here's a chunk of code from our project that might help you along. It's a tapestry page that loads a document (a "background material") from a DAO and then displays it to the user. public class Background { @Inject private BackgroundMaterial

Re: BufferedImage in Tapestry

2012-07-17 Thread gonzalomp87
Sorry, I dont understand. I have a BufferedImage type variable in my .tml can not show, but I can convert into a variable of type InputStream. Suppose I call that variable myImage I was looking at that page but do not quite understand. I'm supposed to use the last paragraph "Creating a page for

Re: Beaneditform Troubles

2012-07-17 Thread Alex Kotchnev
I haven't tested it but I'd guess that it's doing this because it doesn't have an editor registered for the Autor and Jezik entities. You have two options : 1. Create property editors for the entities as described in http://jumpstart.doublenegative.com.au/jumpstart/examples/lang/propertyeditors .

Re: Beaneditform Troubles

2012-07-17 Thread loshmeey
hm thank you for the quick reply Alex, i have the same line of code, and for some reason it is not working! Here is the code so if anyone has any clue what the problem might be... @Basic(optional = false) @Validate("required") @Column(name = "KNJIGA_NAPOMENA") private String knjigaNapo

Re: Tapestry 5.3.4

2012-07-17 Thread Howard Lewis Ship
On Tue, Jul 17, 2012 at 9:26 AM, Lenny Primak wrote: > Congratulations! > > Is javassist dependency removed in this release? No, that's 5.4 (currently very alpha). > > > > On Jul 17, 2012, at 11:09 AM, Howard Lewis Ship wrote: > >> Following a successful vote, we're happy to announce the releas

Re: Tapestry 5.3.4

2012-07-17 Thread Howard Lewis Ship
Yep, I caught that, just taking Confluence a while to update. On Tue, Jul 17, 2012 at 9:30 AM, Steve Eynon wrote: > Just to say the 'Release Notes' link on Announcing Tapestry 5.3.4 > links to 5.3.3 and not 5.3.4. > > Steve. > > > On 18 July 2012 00:09, Howard Lewis Ship wrote: >> Following a su

Re: Tapestry 5.3.4

2012-07-17 Thread Steve Eynon
The Release Notes say: Breaking Features Tapestry's use of the Javassist bytecode library has been completely removed, along with many related services, such as ClassFactory, that were deprecated in 5.3. Use PlasticProxyFactory instead. On 18 July 2012 00:34, Kalle Korhonen wrote: > On Tue, J

Re: Tapestry 5.3.4

2012-07-17 Thread Kalle Korhonen
On Tue, Jul 17, 2012 at 9:26 AM, Lenny Primak wrote: > Congratulations! > Is javassist dependency removed in this release? No, still a dependency of tapestry-ioc. Kalle > On Jul 17, 2012, at 11:09 AM, Howard Lewis Ship wrote: > >> Following a successful vote, we're happy to announce the relea

Re: Tapestry 5.3.4

2012-07-17 Thread Steve Eynon
Just to say the 'Release Notes' link on Announcing Tapestry 5.3.4 links to 5.3.3 and not 5.3.4. Steve. On 18 July 2012 00:09, Howard Lewis Ship wrote: > Following a successful vote, we're happy to announce the release of > Tapestry 5.3.4. > > 5.3.4 includes further performance improvements for

Re: Tapestry 5.3.4

2012-07-17 Thread Lenny Primak
Congratulations! Is javassist dependency removed in this release? On Jul 17, 2012, at 11:09 AM, Howard Lewis Ship wrote: > Following a successful vote, we're happy to announce the release of > Tapestry 5.3.4. > > 5.3.4 includes further performance improvements for heavily loaded > servers, a

Re: Beaneditform Troubles

2012-07-17 Thread Alex Kotchnev
Milos, I don't seem to have a problem w/ this functionality: [ display the user related information here ], e.g. My "foo" entity already has a "getUsers" method. Cheers, Alex K On Tue, Jul 17, 2012 at 11:44 AM, loshmeey wrote: > Hello, i have problems with

Tapestry 5.3.4

2012-07-17 Thread Howard Lewis Ship
Following a successful vote, we're happy to announce the release of Tapestry 5.3.4. 5.3.4 includes further performance improvements for heavily loaded servers, as well as a few other minor annoyances. Internally, Tapestry has switched its bytecode library from ASM 3.3 to ASM 4.0, which should kee

Beaneditform Troubles

2012-07-17 Thread loshmeey
Hello, i have problems with beaneditform and i dont know where else to turn so, here i am. So as i said, i have a bean edit form that is using an entity class a source. In that entity class i have some fields marked up with @OneToMany notations. I want to override those fields in the form using .

Re: Why the activate of another class got executed? T5.3.3

2012-07-17 Thread Angelo C.
if there is a context, the problem will not come out. when I do a : http://localhost:8080/info/update the onActivate() of Register will be called first before onActivate() of Update.java. and this happens only once, if I just refresh the page, it will not happen. Thiago H de Paula Figueiredo wr

Re: Why the activate of another class got executed? T5.3.3

2012-07-17 Thread Howard Lewis Ship
Your template almost certainly has a hand-crafted, incorrect tag in it. On Tue, Jul 17, 2012 at 7:24 AM, Thiago H de Paula Figueiredo wrote: > On Tue, 17 Jul 2012 10:38:32 -0300, Angelo C. > wrote: > >> no, i don't have. strange, one solution I can think of is, i'll create a >> Index.java. > >

Re: Why the activate of another class got executed? T5.3.3

2012-07-17 Thread Thiago H de Paula Figueiredo
On Tue, 17 Jul 2012 10:38:32 -0300, Angelo C. wrote: no, i don't have. strange, one solution I can think of is, i'll create a Index.java. Isn't this another ocurrence of the assets with paths that end up matching some page URL and then Tapestry considers it a request to that page? What'

Re: Why the activate of another class got executed? T5.3.3

2012-07-17 Thread Angelo C.
no, i don't have. strange, one solution I can think of is, i'll create a Index.java. Lance Java wrote > > Does update have a pagelink to register (in a layout perhaps?) > > From jumpstart: > When is onActivate(...) called? > The short answer is: whenever Tapestry gets a page. It can be in respo

Re: Lightweight TapestryTools update site

2012-07-17 Thread Gavin Lei
TapestryTools update at 2012-07-17: 1. Support Eclipse Juno now, the update site(both for Indigo and Juno) is still: http://tapestrytools.googlecode.com/svn/TapestryTools/ 2.Finish basic feature of Issue 33(http://code.google.com/p/tapestrytools/issues/detail?id=33). It means the list of compone

Re: tapestry namespace

2012-07-17 Thread Thiago H de Paula Figueiredo
On Tue, 17 Jul 2012 07:57:54 -0300, mu wrote: Hi all, Hi, Mu! context="user.name">welcome "id" has a prefix "t", but "context" has not. why? when should the "t" prefix be used? In t:id, which is the Tapestry component id attribute, the prefix is obligatory because it's very common for H

Re: Why the activate of another class got executed? T5.3.3

2012-07-17 Thread Lance Java
Does update have a pagelink to register (in a layout perhaps?) >From jumpstart: When is onActivate(...) called? The short answer is: whenever Tapestry gets a page. It can be in response to a browser request. It can be when one page's java uses another. -- View this message in context: http://tap

Re: Inheritance and the order of loaded JS

2012-07-17 Thread mem
That might be true, we 'solved' the issue by simply using the afterRender in the child class. According to the documentation under:http://tapestry.apache.org/component-rendering.html the following is written: Parents before Child Ordering is always parent-first. Methods defined in the parent clas

Re: Why the activate of another class got executed? T5.3.3

2012-07-17 Thread Angelo C.
when I call localhost:8080/info/update, it has nothing to do with /info/register, but register's onActivate() got called before Update.onActivate. Lance Java wrote > > In your example, you have not show how "Register" fits into the picture. > The code you have provided shows no link between > "l

Re: info

2012-07-17 Thread françois facon
Hello check yourtapestry.app-package in you web.xml see http://tapestry.apache.org/configuration.html for more details. I suggest you also to follow http://tapestry.apache.org/getting-started.html and after to have a look at http://jumpstart.doublenegative.com.au/jumpstart/ regards 2012/7

Re: Why the activate of another class got executed? T5.3.3

2012-07-17 Thread Lance Java
In your example, you have not show how "Register" fits into the picture. The code you have provided shows no link between "localhost:8080/info/update" and Register. Perhaps jump start's onActivate / onPassivate explanation can help http://jumpstart.doublenegative.com.au/jumpstart/examples/navigati