Re: Tapestry 5 + JS framework

2014-07-27 Thread Kristian Marinkovic
Hi, Tapestry 5.4 (beta) built-in require js support makes it really easy to add other javascript frameworks cleanly. I'm currently working on T5.4 projects that integrate with angularjs and backbone/marionette js. g, Kris On Sun, Jul 27, 2014 at 2:46 PM, Chung Khanh Duy < chungkhanhduy1...@gma

Re: [5.4-beta-10] providedChecksum is always different from the actualChecksum for a specific asset

2014-06-12 Thread Kristian Marinkovic
how are you running your app? i'm using run-jetty-run in Eclipse and never experienced the problem you describe. the etag is based on the content of the file. maybe there is another eclipse plugin changing your resources g, Kris On Tue, Jun 10, 2014 at 11:12 AM, Muhammad Gelbana wrote: > I pla

Re: Forms require that the request method be POST

2014-05-19 Thread Kristian Marinkovic
Hi, check if it is the same client. i once had the same problem. After several hours of investigation it was a developer with a browser plugin (web developer) which enabled converting form post requests to get requests. hope this helps. g, Kris On Mon, May 19, 2014 at 5:55 PM, George Christman

Re: QName::=(NCName':')?NCName error when tml is parsed

2014-05-10 Thread Kristian Marinkovic
Hi Jens, never seen an exception like that but i'd guess a namespace is missing. either tapestry or xml http://www.w3.org/1999/xhtml"; xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"; xmlns:p="tapestry:parameter"> cheers, Kris On Tue, May 6, 2014 at 12:42 AM, Jens Breitenstein w

Re: Use cases for the "any" component

2014-03-03 Thread Kristian Marinkovic
i use it if i need unique clientIds for certain dom elements to access it with my javascripts. g, Kris On Mon, Mar 3, 2014 at 8:18 AM, Lance Java wrote: > I've used option 2 and I've also extended "any" to make new components. >

Re: Tapestry with Jetty behind https frontend

2014-02-20 Thread Kristian Marinkovic
hi all, going through the posts i realized there is an easier solution missing. What i do is to contribute a HttpServletRequestHandler that checks for the X-Forwarded-Proto header and - in case its set - wraps the HttpServletRequest with overrides to isSecure(), getScheme() and getServerPort(). A

Re: Content Security Policy without unsafe-inline

2014-02-05 Thread Kristian Marinkovic
i also think it's up to the development team to decide how they want to develop (inline-scripts vs. no inline-scripts). sometimes inline-scripts make things easier. having a choice is good anyways. still, do you think it is worth moving the requriejs specific inline-scripts into a dynamically gene

Re: Content Security Policy without unsafe-inline

2014-02-05 Thread Kristian Marinkovic
looking at my migrated Tapestry 5.4-beta-2 app i can only see two inline scripts. The requirejs configuration (shim, ...) and the require call itself. Is it possible to move those into a dynamically generated js instead, that's included with a script tag? the requirejs config could by cached. And

Re: Tapestry 5.4-beta-2 GoogleClosureCompiler

2014-01-20 Thread Kristian Marinkovic
). Good thing Tapestry does a good job of letting the > client cache the assets! > > > On Sun, Jan 19, 2014 at 1:04 AM, Kristian Marinkovic < > kristian.marinko...@gmail.com> wrote: > > > Thank you for all your responses and references. > > > > What i want to a

Re: session management and threads synchronization

2014-01-19 Thread Kristian Marinkovic
hi, maybe this "ancient" article by Brian Goetz may help you: http://www.ibm.com/developerworks/library/j-jtp09238/index.html :) cheers, Kris On Sat, Jan 18, 2014 at 8:39 AM, Ilya Obshadko wrote: > Hello, > > I have implemented persistent session management in my application (using > cookies a

Re: Tapestry 5.4-beta-2 GoogleClosureCompiler

2014-01-19 Thread Kristian Marinkovic
Thank you for all your responses and references. What i want to activate is the SIMPLE_OPTIMIZATIONS level that activates whitespace removal and renaming (shortening) of variables and functions. my webapp is getting used more by mobile clients (tablets, phonse) than desktop clients. during testing

Tapestry 5.4-beta-2 GoogleClosureCompiler

2014-01-13 Thread Kristian Marinkovic
Hi all, how do i set additional GoogleClosureMinimizer options? The current implementation in tapestry-webresources doesn't seem to offer any configuration possibilities besides replacing the whole service. cheers, Kris

Tapestry 5.4 require.js modules

2014-01-13 Thread Kristian Marinkovic
Hi all, why are tapestry's requirejs modules nested in an anonymous javascript function: (function() { define(['jquery'], function($) { }) }).call(this); isn't it enough to just write define(, function() {})? Is there a reason for this additional scope? cheers, Kris BTW, i just mig

Re: Keep the same form id after the zone refresh

2014-01-01 Thread Kristian Marinkovic
; MyForm_123bashas > > (at least it doesnt work for me :)) > > > On Wed, Jan 1, 2014 at 9:42 PM, Kristian Marinkovic < > kristian.marinko...@gmail.com> wrote: > > > in tapestry your server side event handlers are not related to the client > > side html ids. the

Re: Keep the same form id after the zone refresh

2014-01-01 Thread Kristian Marinkovic
in tapestry your server side event handlers are not related to the client side html ids. the client side html ids happen to use the server side component id for convenience. An onValidateFromMyForm() handler will we triggered even if the MyForm form is nested and updated in a zone. On Tue, Dec

Re: Passing blocks as component parameters

2013-12-01 Thread Kristian Marinkovic
Yes it is possible. Usually you use a Delegate component to render a Block. Cheers Kris Am 01.12.2013 23:53 schrieb "Boris Horvat" : > Is there any way to pass a block as a parameter and then to render it? > > I have checked a tree component and I have seen it renders it manually. Is > there any

Re: T5.1 -> T5.3 migration question

2013-07-02 Thread Kristian Marinkovic
Hi, Tapestry over time added additional checks to detect whether the classes in the Tapestry specific packages are really only relevant to Tapestry. Not doing so can cause unexpected exceptions due to classloading issues. in other words: only page, component and mixin classes go into the respecti

Re: Sessions getting mixed up

2013-06-17 Thread Kristian Marinkovic
can you post some code? the page with the annotated field and the methods that manipulate that fields? On Mon, Jun 17, 2013 at 10:49 AM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > Hi, > > I'm having some weird issues with sessions that are getting mixed up, for > example: > > I open

Re: Tapestry 5.4-alpha-2

2013-01-03 Thread Kristian Marinkovic
hi Howard, i am already testing and exploring the possibilities. Would you consider fixing https://issues.apache.org/jira/browse/TAP5-2040 as a 5.4-alpha-3? g, Kris On Thu, Jan 3, 2013 at 11:01 PM, Howard Lewis Ship wrote: > I've created a new preview release, available from the Maven reposi

Re: T5.4-alpha-1 is missing SystemPropertiesSymbolProvider

2012-12-27 Thread Kristian Marinkovic
hi Howard, created Ticket https://issues.apache.org/jira/browse/TAP5-2040 g, Kris On Thu, Dec 27, 2012 at 6:45 PM, Howard Lewis Ship wrote: > Interesting; that could be a bug then. > > > On Thu, Dec 27, 2012 at 9:05 AM, Kristian Marinkovic < > kristian.marinko...@gmail.c

Re: T5.4-alpha-1 is missing SystemPropertiesSymbolProvider

2012-12-27 Thread Kristian Marinkovic
: a typo perhaps, or > something preventing the system property from being visible to the running > application. > > > On Thu, Dec 27, 2012 at 8:44 AM, Howard Lewis Ship wrote: > >> If that is true, it is an accident, possibly a bad merge. >> >> &g

Re: T5 Embedded Components

2012-12-07 Thread Kristian Marinkovic
Hi, first remove the id parameter from the @Component annotation; this is only needed if the field name in the java class is different from the t:id attribute in the template. second because you already defined your component in the template you don't have to declare it in your java class; so you

Re: What is @ApplicationScoped for tapestry?

2012-11-16 Thread Kristian Marinkovic
use @SessionState in T5 g, kris On Fri, Nov 16, 2012 at 5:16 PM, membersound wrote: > Hi, > > how can I make an @ApplicationScoped within tapestry? Is there any pendant > to share the same data within one single class across the application in T5? > > Thanks > > > > -- > View this message in con

Re: Tapestry JPA + Stored Procedures

2012-11-07 Thread Kristian Marinkovic
Hi, you can inject the session directly. please take a look at the documentation. G, Kris Am 07.11.2012 09:31 schrieb "John" : > I got the JPA(with eclipselink) to work and have been using > @NamedStoredProcedureQuery annotations in entities to obtain entity classes > successully from SQLServer.

Re: Problems integrating backbone.js with T5.3.6

2012-11-05 Thread Kristian Marinkovic
t; I had to put in place a shim before the import of backbone, to fix this: >> >> /** >> * T5 is nice enough to use Underscore in noConflict() mode, but Backbone >> expects it to be visible as window._, so we hack that. >> */ >> window._ = T5._; >> >>

Problems integrating backbone.js with T5.3.6

2012-11-05 Thread Kristian Marinkovic
Hi, i need some advice on how to properly integrate backbone.js in my T5 application. Adding backbone.js with the @Import annotation results in an console error because it can't find the global underscore object _. The reason for that is the mapping of underscore to the T5 namespace in t5-core.js

Re: Displaying UploadedFile in the browser

2012-10-30 Thread Kristian Marinkovic
Hi, i just implemented an ajax upload using the AjaxUpload component from the tapestry5-jquery project. And i had to dive deeper into the documentation and code of the JS file-uploader component used by the AjaxUpload. There are examples in the documentation that almost solve your needs: http://f

Re: Why ActionLink Click is not working?

2012-10-18 Thread Kristian Marinkovic
Hi, check the value of the context; if it is not set (null) only onActionFromPlay() will be called; use the EventContext if you want to catch this use case; g, Kris On Thu, Oct 18, 2012 at 9:14 AM, dinesh707 wrote: > Follofwing are some of my code parts. The system.out even do not create any >

Re: Tapestry-Portlet status?

2012-10-16 Thread Kristian Marinkovic
I think you have to answer this question yourself by checking if your requirements are met. you can see on github that it is being actively developed. there is even a mention of Typestry 5.4-alpha in the readme. On Tue, Oct 16, 2012 at 5:19 PM, Markus Feindler wrote: > Hm, it's hard to say since

Re: Tapestry-Portlet status?

2012-10-16 Thread Kristian Marinkovic
did you take a look at https://github.com/got5/tapestry5-portlet? On Tue, Oct 16, 2012 at 4:56 PM, Lenny Primak wrote: > I heard something about Tapestry supporting the Portlet spec. > Is Tapestry going to support it out of the box or is Tapestry-Portlet ready > to use in production? > > >

Re: Tapestry website down?

2012-10-15 Thread Kristian Marinkovic
online for me as well in austria On Mon, Oct 15, 2012 at 8:57 PM, Jon Williams wrote: > Negative. Working fine here in Canada. > > On Mon, Oct 15, 2012 at 11:43 AM, Russell John-Baptistr > wrote: > >> Is the tapestry.apache.org site down? >> >> >>

Re: Component taken from pool in T5.3?!

2012-09-15 Thread Kristian Marinkovic
Could you post some code. Am 15.09.2012 14:10 schrieb "tompeter" : > Hi everyone, > > I have a component in a Tapestry page that is displayed via Ajax renderer > returning a block. > Displaying the conponent the second time should show different data then > the > first time. I am logging that in t

Re: URL to the current page

2012-08-21 Thread Kristian Marinkovic
@Inject private Request request; in your page or component should be able to provide you with the desired data. g, kris On Tue, Aug 21, 2012 at 12:38 PM, ksrijith wrote: > Hi, > My current clients want to use the facebook comments widget on their site > and have it available on every page that

Re: Missing 11 Build Path Entries

2012-07-24 Thread Kristian Marinkovic
Try a mvn clean install in your console. It should download whatever it needs Or use an maven plugin for your IDE Am 24.07.2012 21:38 schrieb "Thiago H de Paula Figueiredo" < thiag...@gmail.com>: > On Tue, 24 Jul 2012 16:16:43 -0300, netdawg wrote: > > Problem/Question: Is there a quick fix to

Re: How to have every second value in the t:loop different

2012-07-05 Thread Kristian Marinkovic
hi geoff, Even Odd is extremely elegant; never thought of such a solution g, kris On Thu, Jul 5, 2012 at 7:32 AM, Geoff Callender wrote: > ...which is why injecting EvenOdd is such a good solution. It just works, > everywhere. > > > http://jumpstart.doublenegative.com.au/jumpstart/examples/tabl

Re: How to have every second value in the t:loop different

2012-07-04 Thread Kristian Marinkovic
if it is only visual, and just about setting an css class: -> use the css selector mentioned by dusko; no duplication On Wed, Jul 4, 2012 at 10:22 PM, bhorvat wrote: > My problem is that I have a lot of code duplication, also this seems to me as > a simple display problem so I dont like the fact

Re: How to have every second value in the t:loop different

2012-07-04 Thread Kristian Marinkovic
it would be easier to give you an advice if you'd outline the problem you are having a little more. but if you ask me i'd put a delegate inside the loop and let the "to" binding decide what component/block to render. i use this approach to render a list of "item" (types) that may have completely d

Re: Non Maven project Tapestry 5.3

2012-06-21 Thread Kristian Marinkovic
not allowed to use ant? many of us are still forced to use ant :) On Thu, Jun 21, 2012 at 12:51 PM, Muhammad Gelbana wrote: > In case these policies prohibits ant as well. I guess all you need is to > create tapestry's layout manually, include tapestry's libraries in your > classpath and you are

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread Kristian Marinkovic
+1 let's switch to 1.6 as many new/modern frameworks already require it anyways. g, kris On Wed, May 2, 2012 at 8:05 AM, Kalle Korhonen wrote: > When in doubt, let's ask the community: would you object to requiring > JRE 1.6 for running Tapestry 5.4? So far, T5 has run on JRE 1.5 but > the time

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread Kristian Marinkovic
open the pom.xml of your main application in the eclipse pom editor and switch to the dependency tab. there you can see all the direct and transitive dependencies. and do a clean install of all your modules.. or parent project. On Fri, Apr 27, 2012 at 11:03 AM, netdawg wrote: > Yes, basically the

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread Kristian Marinkovic
can you post your exception? On Fri, Apr 27, 2012 at 10:45 AM, netdawg wrote: > Neither did this work... > >     >            org.apache.tapestry >            tapestry-hibernate >            ${tapestry-release-version} >             >             >              org.hibernate >              hiber

Re: Upgrading to Hibernate Core 4.1.1 Final

2012-04-27 Thread Kristian Marinkovic
you have to add exclusions to your tapestry-hibernate dependency g, kris On Fri, Apr 27, 2012 at 10:19 AM, Chris Mylonas wrote: > i think tapestry-hibernate pulls in hibernate jars, so you can remove it from > your pom > doing it how you've done is how to break it > > > On 27/04/2012, at 6:15 P

How do i trigger a zone update in the parent component or page?

2012-04-26 Thread Kristian Marinkovic
Hi, i have a loop in my page that renders some "rows" whereas each row is a zone component. Each row represents some special data type that has different properties when edited. Because i don't know in advance how many data types will be supported (and i want to stay as flexible as possible) i jus

Re: T5 Using DAO within a DAO causes NPE.

2011-06-09 Thread kristian marinkovic
just like the above case. > > regards > Taha > > On Thu, Jun 9, 2011 at 10:36 AM, kristian marinkovic < > kristian.marinko...@gmail.com> wrote: > > > Constructor injection does not work on pages, components and mixins. > Works > > only on services. > >

Re: T5 Using DAO within a DAO causes NPE.

2011-06-08 Thread kristian marinkovic
Constructor injection does not work on pages, components and mixins. Works only on services. G, Kris Am 2011 6 9 01:49 schrieb "ael" : > I always make life complicated. > > Well just inject the DAO within pages. problem solved. > But still i want to make my page class neat though. > > Also contruct

Re: T5 Using DAO within a DAO causes NPE.

2011-06-07 Thread kristian marinkovic
did you configure AuthenticationDAOHibernate as Tapestry Service (bind via bind method or build method)? On Wed, Jun 8, 2011 at 8:35 AM, ael wrote: > No, i did not use javax. > > Its > import org.apache.tapestry5.ioc.annotations.Inject; > > > -- > View this message in context: > http://tapestry.

Re: T5 Using DAO within a DAO causes NPE.

2011-06-07 Thread kristian marinkovic
Hi, Which inject annotation are you using? Chances are that you use the javax annotation that will be supported in 5.3 G, Kris Am 2011 6 8 08:06 schrieb "ael" :

Plastic: nondeterministic PlasticManager behavior

2011-04-24 Thread kristian marinkovic
Hi, i'm taking a deep dive into plastic and came across a behavior i cannot explain. If i create a ClassInstantiator from a PlasticManager that was created with the transformers and packages in the constructor, i get the PlasticClass in my transformer where i can e.g. assert that the class under

Re: IllegalAccessError in IoC

2011-04-14 Thread Kristian Marinkovic
Hi Peter, we do have the same problem here. there are two solutions we use to circumvent this problem: 1) keep your modules (projects) closed; Tapestry 5.2 will only create proxies for services without a interface only if it can find the class file in the local filesytem (not in jar file) 2

Re: Components communication with nested components

2011-04-12 Thread Kristian Marinkovic
contain the context... What i was asking is, whether what I am doing is the way to go or there is any other alternative. regards Taha On Tue, Apr 12, 2011 at 3:47 PM, Kristian Marinkovic < kristian.marinko...@porscheinformatik.at> wrote: > Declaring all possible values as parameters

Re: Components communication with nested components

2011-04-12 Thread Kristian Marinkovic
Declaring all possible values as parameters leads to high coupling. Just imagine declaring the parameters in a hierarchy of 5 components just to have it. I'd use Environmental services to pass data between different component hierarchies. You can also apply the MVC pattern: create a service (th

Re: Session State not setting user?

2011-03-15 Thread Kristian Marinkovic
just declare it in your constructor and create your service with tapestry ioc. take a look at the tapestry ioc documentation to see how injection works g, kris Von:robnangle An: users@tapestry.apache.org Datum: 15.03.2011 12:49 Betreff:Re: Session State not setting user?

Re: Session State not setting user?

2011-03-15 Thread Kristian Marinkovic
@SessionState/@Property only works in Pages, Components and Mixins. To access session state objects in your services you need to inject the ApplicationStateManager g, kris Von:robnangle An: users@tapestry.apache.org Datum: 15.03.2011 12:28 Betreff:Session State not setting u

RE: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread Kristian Marinkovic
override the toString() implementation of your user entity... you can use apache-commons ToStringBuilder. Von:robnangle An: users@tapestry.apache.org Datum: 01.03.2011 15:44 Betreff:RE: org.apache.tapestry5.runtime.ComponentEventException Im probably wording the question wr

Re: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread Kristian Marinkovic
where is your connection (field conn) set? Von:robnangle An: users@tapestry.apache.org Datum: 01.03.2011 13:53 Betreff:Re: org.apache.tapestry5.runtime.ComponentEventException Yes stupidly I forgot to set the connection but the errors remain. The onSuccess(): public String

Re: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-23 Thread Kristian Marinkovic
egistry == null) throw new RuntimeException("No Tapestry registry found. Please check that TapestryListener or -Filter is added as "); ... //do something } } g, kris Von:"Thiago H. de Paula Figueiredo" An: "Tapestr

RE: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-23 Thread Kristian Marinkovic
we've written an own listener (you can create a filter as well) that starts tapestry. this listener saves the registry in the servlet context so another serlvet listener can then access it. we use it in a HttpSessionListener to clear lock if the user session expires. g, kris Von:jqzon

Antwort: Tapestry 5 error "Caused by: java.lang.RuntimeException: Literal values are not updateable"

2011-02-07 Thread Kristian Marinkovic
Pages usually don't have parameters. Components do! g, kris Von:m!g An: users@tapestry.apache.org Datum: 07.02.2011 15:38 Betreff:Tapestry 5 error "Caused by: java.lang.RuntimeException: Literal values are not updateable" Hi everyone. Here is a simple test application: p

Re: Nothing happens when overriding default validation messages

2011-02-02 Thread Kristian Marinkovic
there are two question that pop up in my mind: 1. has your Module been loaded? 2. is there another override of the ValidationMessagesSource g, kris Von:Igor Drobiazko An: Tapestry users Datum: 02.02.2011 11:27 Betreff:Re: Nothing happens when overriding default validation

Re: Question on Tapesry Services IoC

2011-01-25 Thread Kristian Marinkovic
value in my AppModule, I guess that in the tapestry-spring-security site they say something about overriding values using contributeAlias, but as I 'ver read that this type of contribution is going to be deprecated on 5.3 I didn't try that way yet. hope I was clear, thanks as usual...

Re: Question on Tapesry Services IoC

2011-01-20 Thread Kristian Marinkovic
hi nicloas, you could use a builder method to decouple tapestry ioc from 3rd party libraries/constructors public SomethingManager buildSomethinManager(Map<> map, ...) { return new SomethingManger(map, ... ); } public void contributeSomethingManager(MappedConfiguration<> map) {} g, kris

Re: Actionlinks with the same t:id

2010-12-06 Thread Kristian Marinkovic
----- From: Kristian Marinkovic Reply-to: "Tapestry users" To: Tapestry users Subject: Re: Actionlinks with the same t:id Date: Mon, 6 Dec 2010 12:22:38 +0100 Use a EventLink instead and define a custom event. @Component(parameters= {"event=menu", "context=menuContext&qu

Re: Actionlinks with the same t:id

2010-12-06 Thread Kristian Marinkovic
Use a EventLink instead and define a custom event. @Component(parameters= {"event=menu", "context=menuContext"} private EventLink link; somewhere else (a parent component): onMenu() {} The t:ids within a component/page have to be unique. g, kris Von:Richard Hill An: Tapestry

Re: dynamic component id?

2010-12-03 Thread Kristian Marinkovic
i guess it is about the dynamically generated id of the html element ... the component should implement the interface ClientElement. If it does you can call the method getClientId to obtain the id that is used in the generated html. g, kris Von:Everton Agner An: Tapestry users Datu

Re: First Tapestry app with Hibernate

2010-11-30 Thread Kristian Marinkovic
you have to add the tapestry-hibernate-core dependency to your classpath as well... it contains the annotation CommitAfter g, kris Von:robnangle An: users@tapestry.apache.org Datum: 30.11.2010 11:27 Betreff:First Tapestry app with Hibernate Hi all, Sorry if this has been

Re: contribute mystery

2010-11-15 Thread Kristian Marinkovic
Hi Jens, the contribute methods are used for configuration... therefore there are only executed once on startup (... or on lazy load) once your dispatcher is in place only your dispatcher will be called. please re-read the tapestry-ioc documentation. g, kris Von:"Jens Reufsteck" An:

Re: Antwort: Strange Type Coercion Exception

2010-10-11 Thread Kristian Marinkovic
0.2010, at 12:42, Kristian Marinkovic wrote: > move your DisplayContentItemStyle to a package that is not within a pages, > components or mixins package. eg. services > > T5 loads all classes in the before mentioned packages for enhancement with > another classloader. that's

Antwort: Strange Type Coercion Exception

2010-10-11 Thread Kristian Marinkovic
move your DisplayContentItemStyle to a package that is not within a pages, components or mixins package. eg. services T5 loads all classes in the before mentioned packages for enhancement with another classloader. that's why your class (enum) cant be found. g, kris Von:Christian Koller

Re: Dynamically loading a component

2010-10-05 Thread Kristian Marinkovic
hi omar, this is not as horrible as it sounds ... testing gets a lot easier i have a fairly big T5 application with many modules. within this application i have many master - detail views where the detail view depends on the type of object within the master list and those types can be deploye

Re: T5 Internet Browser Detection?

2010-09-22 Thread Kristian Marinkovic
you'd have to implement a HttpServletRequestFilter or better a Dispatcher that analyzes the http headers and redirects to other pages or sets some global state that is used during page rendering. A Dispatcher is more convenient as you can use all the tapestry services and don't have to use the

Re: Redirect when session is destroyed

2010-09-22 Thread Kristian Marinkovic
you can't redirect from a SessionListener as it is called by the servlet container and does not involve any user interaction. provide a Dispatcher that checks whether your AppModule.USER_LOGGED_IN attribute is available from the current HttpSession; if it is not redirect the current request t

Re: Is there any way to render the "get" method of form?

2010-09-20 Thread Kristian Marinkovic
hi lutz, the use of the 'post' method for the form is hardcoded. the easiest way to change this is to have some client-side script that rewrites the method attribute to 'get'. an alternative you could have a heartbeat that rewrites the generated HTML server-side (take a look at the Label compo

Re: [T5.2] Tapestry IoC Configuration (remove?)

2010-09-15 Thread Kristian Marinkovic
hi Michael, there is no such method. Only MappedConfiguration and OrderedConfiguration have an override method that can be used to replace another contribution identified by the id g, kris Von:Michael Dukaczewski An: users@tapestry.apache.org Datum: 15.09.2010 11:23 Betreff:

Re: want to setup a ${xxxx} in my input element!!!

2010-09-13 Thread Kristian Marinkovic
hi fanzhen, try following instead: aaa this will work; and if your adit0 returns null the attribute wont get rendered. i'd recommend to use the T5 checkbox component nevertheless. g, kris Von:Fanzhen An: Tapestry users Datum: 13.09.2010 08:30 Betreff:Re: want to setup a

Re: OT: Web Services

2010-08-30 Thread Kristian Marinkovic
hi, i use a (JaxWS)HttpServletRequestFilter service to intercept WS calls to my application. it will only intercept calls that have the url pattern of the provided WS that can be configured. and i'm using metro too. we switched from cxf to metro because it was easier to work with jaxb-binding

Re: Multiple Components in

2010-07-08 Thread Kristian Marinkovic
tapestry does not support dynamic component creation... for good reason please search the user list for "static structure, dynamic behaviour" to get more information on that. g, kris Von:matt22 An: users@tapestry.apache.org Datum: 08.07.2010 15:39 Betreff:Re: Multiple Compo

Re: Multiple Components in

2010-07-07 Thread Kristian Marinkovic
correct... create a block with multiple coponents g, kris Von:matt22 An: users@tapestry.apache.org Datum: 08.07.2010 07:15 Betreff:Multiple Components in http://old.nabble.com/Multiple-Components-in-%3Ct%3Adelegate-...-tp29100029p29100029.html Sent from the Tapestry - User m

RE: decorateClientInfrastructure not called anymore

2010-06-24 Thread Kristian Marinkovic
Hi Christian, Advices have been introduced in 5.1 to replace decorators. please see: http://tapestry.apache.org/tapestry5.1/tapestry-ioc/advice.html the 5.2-SNAPSHOT documentation does not state that decorators are not supported anymore. the last time i was playing with 5.2 (some weeks ago) my

Antwort: Re: [Taspetry IoC] Using Tapestry IoC with JavaFX

2010-05-26 Thread Kristian Marinkovic
hi, there was a issue that already has been fixed: https://issues.apache.org/jira/browse/TAP5-839 g, kris Von:"Thiago H. de Paula Figueiredo" An: "Tapestry users" Datum: 25.05.2010 15:06 Betreff:Re: [Taspetry IoC] Using Tapestry IoC with JavaFX On Tue, 25 May 2010 08:50:

Re: Using / Injecting Tapestry 5 services in objects that are *not* components / pages / services

2010-05-25 Thread Kristian Marinkovic
hi markus, contribute a HibernateConfigurer to the HibernateSessionSource that adds a (Hibernate) PostLoadEventListner. This listener then uses a "InjectorService" to inject services into entities... maybe with some javassist magic :) g, kris Von:Markus Feindler An: Tapestry users

Re: [T5]Inject a component not used in a page

2010-05-11 Thread Kristian Marinkovic
hi thomas, tapestry 5 follows the "static structure, dynamic behaviour" philoshophy. essentially this means that you cant use a component that is not declared anywhere. in your case i'd create a block with the component inside and display this block if necessary. please see the mailing list for

Re: Tapestry5 template name simplification

2010-05-10 Thread Kristian Marinkovic
hi Sandeep, you're right this solution does not work in any circumstances. but when you learn a new framework you'll have to live with its features :) if i recall correctly there have been several suggestions on the mailing list to make this feature configurable. i don't know what the current

Re: Tapestry5 template name simplification

2010-05-10 Thread Kristian Marinkovic
hi sandeep, the reason to do so is to have prettier URLs. When developing an application you tend to group your pages into logical packages. lets assume your application is able to change Customer and Address objects. So you'll have a bunch of pages in the respective packages. Its very common t

Re: JSP custom tag

2010-05-10 Thread Kristian Marinkovic
Hi, T5 is a completley different technology and does not use JSP to render its view. You could create a JSP tag library that uses T5 to return HTML snippets (using a StreamResponse) but i don't see any reason to do so. why would you want to create JSP tags using T5 anyway? if you have to

Re: Component extension and default parameter value overriding

2010-05-10 Thread Kristian Marinkovic
hi Robin, maybe the thread http://markmail.org/message/gwnq5npogomlk6ae helps. the common answer in this cases is to use/favour composition over inheritance maybe it is a bug afterall; i almost never use component inheritance in my T5 projects g, kris Von:Robin Komiwes An: Tapestr

Re: Heavy and long background process

2010-05-06 Thread Kristian Marinkovic
hi massimo, i had a similar problem a while back. i solved this problem by letting the long running thread log its current state and failures into a db table (you could also use a service and store it in memory). all the view needs to know is the job id to query the correct state and display

Re: How to integrate Tapestry framework with Weblogic portlet?

2010-05-03 Thread Kristian Marinkovic
there is a external tapestry-portlet module/library that you can use to integrate with portlets: http://code.google.com/p/tapestry5portlet/ g, kris Von:mcmouli An: users@tapestry.apache.org Datum: 02.05.2010 19:28 Betreff:How to integrate Tapestry framework with Weblogic por

Antwort: [Announce] Tapestry5 jQuery integration and Tapestry5-ClientResources

2010-04-28 Thread Kristian Marinkovic
great news.. thank you very much for the hard work! g, kris Von:Robin Komiwes An: Tapestry users Datum: 28.04.2010 11:54 Betreff:[Announce] Tapestry5 jQuery integration and Tapestry5-ClientResources Gesendet von: odiss...@gmail.com Hey there, We are glad to introduce "

Re: session expired error

2010-04-22 Thread Kristian Marinkovic
it took me some time to realize you're using Tapestry 4 please add the version number next time. there are basically two simple ways to influence the session expiration: 1) change the timeout in your web.xml 10 2) create a component, that is placed on every

Re: Getting default validation messages from Messages service

2010-04-16 Thread Kristian Marinkovic
you have to obtain your messages object from ValidationMessagesSource g, kris Von:Stephan Windmüller An: users@tapestry.apache.org Datum: 16.04.2010 11:29 Betreff:Getting default validation messages from Messages service Hello! Since it seems to be impossible to deactivate

Re: Antwort: Why SubModule exported by eclipse can't auto loaded it's pages/* ? but sub module packaged by maven can be loaded?

2010-04-15 Thread Kristian Marinkovic
search package return nothing! Did anyone has such problem? ------ From: "Kristian Marinkovic" Sent: Thursday, April 15, 2010 2:26 PM To: "Tapestry users" Subject: Antwort: Why SubModule exported by eclipse can't auto loaded it&#x

Antwort: Why SubModule exported by eclipse can't auto loaded it's pages/* ? but sub module packaged by maven can be loaded?

2010-04-14 Thread Kristian Marinkovic
i guess you're missing the Tapestry-Module-Classes entry in your META-INF/manifest.mf file see also: http://tapestry.apache.org/tapestry5/tapestry-ioc/autoload.html g, kris Von:董和平 An: "Tapestry users" Datum: 15.04.2010 02:56 Betreff:Why SubModule exported by eclipse can't

Re: [T5.1-Hib] Tapestry and Envers - Retrieve user information for auditing

2010-04-07 Thread Kristian Marinkovic
hi everton, if you really can't add the RevisionListener programmatically, define a public static field in your listener using the service type, eg. UserInformation. then define a eagerload service that has the UserInformation injected and set the public static field in your RevisionListener:

Re: Suggestion: Add context to loop

2010-04-07 Thread Kristian Marinkovic
hi pierce, don't you have the same problem if you put 10 eventlinks on your page. how do you distinguish them? either you have 10 different event links onEventFromC1() or you use the context onEvent(String id)... or onEvent(AlmostAnyObject obj) having a loop rendering the 10 eventlinks is more or

Res: [T5.1] Can I manually use the IoC container to obtain Objects?

2010-04-06 Thread Kristian Marinkovic
__ De: Kristian Marinkovic Para: Tapestry users Enviadas: Terça-feira, 6 de Abril de 2010 9:38:48 Assunto: Res: [T5.1] Can I manually use the IoC container to obtain Objects? when using tapestry-hibernate you can contribute your own HibernateConfigurer which has access to the Hibernate Configuration.

Res: [T5.1] Can I manually use the IoC container to obtain Objects?

2010-04-06 Thread Kristian Marinkovic
when using tapestry-hibernate you can contribute your own HibernateConfigurer which has access to the Hibernate Configuration. then you can add an EventListener, build by Tapestry IOC, to the configuration. i guess you'll have to do it akin. or (not a clean solution) you set the tapestry ioc reg

Re: LinkSubmit with Context?

2010-03-31 Thread Kristian Marinkovic
i created https://issues.apache.org/jira/browse/TAP5-1091 by cloning TAP-532 i hope i can provide a patch over next monday. g, kris Von:Łukasz Jazgar An: Tapestry users Datum: 31.03.2010 13:19 Betreff:Re: LinkSubmit with Context? 2010/3/31 Kristian Marinkovic >

Re: LinkSubmit with Context?

2010-03-31 Thread Kristian Marinkovic
y users" Datum: 30.03.2010 17:15 Betreff:Re: LinkSubmit with Context? On Mar 30, 2010, at 12:46 AM, Kristian Marinkovic wrote: > if you have multiple linksubmit components you can distinguish them > by adding onSelectedFromSubmit1() or onSelectedFromSubmit2() > action

Re: Generated links in a loop

2010-03-30 Thread Kristian Marinkovic
attach an 'attribute' (thanks for correcting) to specify a mixin, I know of no way to do this dynamically when generating links via Tapestry?? Cheers, Peter - Original Message ----- From: "Kristian Marinkovic" To: "Tapestry users" Sent: Tuesday, 30 March, 2010 13:02:

Re: Generated links in a loop

2010-03-30 Thread Kristian Marinkovic
hi peter, i don't understand your problem entirely... but have you considered using a EventLink component instead of generating the link manually. then you can easily attach a mixin that renders some javascript using the PagerRender service. or do you mean a attribute by saying link property?

  1   2   3   4   5   6   >