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

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

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

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 t:layout t:id=pageLayout xmlns=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

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 lance.j...@googlemail.comwrote: 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().

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

Re: Tapestry 5.4-beta-2 GoogleClosureCompiler

2014-01-20 Thread Kristian Marinkovic
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 activate is the SIMPLE_OPTIMIZATIONS level that activates whitespace removal and renaming

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

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 ilya.obsha...@gmail.comwrote: Hello, I have implemented persistent session management in my application

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

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

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,

Re: Keep the same form id after the zone refresh

2014-01-01 Thread Kristian Marinkovic
it to 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 client side html ids happen to use the server side

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 horvat.z.bo...@gmail.com: 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

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

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

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 hls...@gmail.com wrote: I've created a new preview release, available from

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

2012-12-27 Thread Kristian Marinkovic
, Howard Lewis Ship hls...@gmail.com wrote: If that is true, it is an accident, possibly a bad merge. On Thu, Dec 27, 2012 at 3:00 AM, Kristian Marinkovic kristian.marinko...@gmail.com wrote: Hi, i was just testing the 5.4-alpha-1 release and realized that the SystemPropertiesSymbolProvider

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 hls...@gmail.com wrote: Interesting; that could be a bug then. On Thu, Dec 27, 2012 at 9:05 AM, Kristian Marinkovic kristian.marinko...@gmail.com wrote

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

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 memberso...@web.de 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

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 j...@quivinco.com: I got the JPA(with eclipselink) to work and have been using @NamedStoredProcedureQuery annotations in entities to obtain entity classes successully

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

Re: Problems integrating backbone.js with T5.3.6

2012-11-05 Thread Kristian Marinkovic
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._; On Mon, Nov 5, 2012 at 11:35 AM, Kristian Marinkovic

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:

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 dinesh...@gmail.com wrote: Follofwing are some of my code parts. The system.out even

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 lpri...@hope.nyc.ny.us 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

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 markus.feind...@gmx.de wrote: Hm,

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 williams.jonat...@gmail.com wrote: Negative. Working fine here in Canada. On Mon, Oct 15, 2012 at 11:43 AM, Russell John-Baptistr rjb...@yahoo.comwrote: 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 i...@tomkrause.com: 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

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 ksrij...@gmail.com wrote: Hi, My current clients want to use the facebook comments widget on their site and have it available on

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 net.d...@yahoo.com wrote: Problem/Question: Is there a

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 geoff.callender.jumpst...@gmail.com wrote: ...which is why injecting EvenOdd is such a good solution. It just works, everywhere.

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

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 horvat.z.bo...@gmail.com wrote: My problem is that I have a lot of code duplication, also this seems to me as a simple display problem so

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 m.gelb...@gmail.com 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

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 kalle.o.korho...@gmail.com 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

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 ch...@opencsta.org 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

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 net.d...@yahoo.com wrote: Neither did this work...    dependency            groupIdorg.apache.tapestry/groupId            artifactIdtapestry-hibernate/artifactId            version${tapestry-release-version}/version    

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 net.d...@yahoo.com wrote:

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 just

Re: T5 Using DAO within a DAO causes NPE.

2011-06-09 Thread kristian marinkovic
minimal NPEs, 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. G, Kris Am 2011 6 9 01:49 schrieb ael alan-lua

Re: T5 Using DAO within a DAO causes NPE.

2011-06-08 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 alan-lua...@dash.com.ph:

Re: T5 Using DAO within a DAO causes NPE.

2011-06-08 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 alan-lua...@dash.com.ph wrote: No, i did not use javax. Its import org.apache.tapestry5.ioc.annotations.Inject; -- View this message in context:

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 alan-lua...@dash.com.ph: 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.

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)

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

Re: Components communication with nested components

2011-04-12 Thread Kristian Marinkovic
the persisted value as the environment does not 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

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 robnan...@gmail.com An: users@tapestry.apache.org Datum: 15.03.2011 12:28 Betreff:Session

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 robnan...@gmail.com An: users@tapestry.apache.org Datum: 15.03.2011 12:49 Betreff:Re: Session State

Re: org.apache.tapestry5.runtime.ComponentEventException

2011-03-01 Thread Kristian Marinkovic
where is your connection (field conn) set? Von:robnangle robnan...@gmail.com 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

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 robnan...@gmail.com An: users@tapestry.apache.org Datum: 01.03.2011 15:44 Betreff:RE: org.apache.tapestry5.runtime.ComponentEventException Im probably

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:

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

2011-02-23 Thread Kristian Marinkovic
@tapestry.apache.org, Kristian Marinkovic kristian.marinko...@porscheinformatik.at Datum: 23.02.2011 12:15 Betreff:Re: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ? On Wed, 23 Feb 2011 06:18:24 -0300, Kristian Marinkovic kristian.marinko

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 gagau...@gmail.com 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

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 igor.drobia...@gmail.com An: Tapestry users users@tapestry.apache.org Datum: 02.02.2011 11:27 Betreff:Re:

Re: Question on Tapesry Services IoC

2011-01-25 Thread Kristian Marinkovic
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... Nicolás.- On Thu, Jan 20, 2011 at 9:01 AM, Kristian Marinkovic kristian.marinko...@porscheinformatik.at wrote: hi nicloas, you could use a builder method

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
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 r...@su3analytics.com

Re: Actionlinks with the same t:id

2010-12-06 Thread Kristian Marinkovic
. Cheers -Original Message- From: Kristian Marinkovic kristian.marinko...@porscheinformatik.at Reply-to: Tapestry users users@tapestry.apache.org To: Tapestry users users@tapestry.apache.org Subject: Re: Actionlinks with the same t:id Date: Mon, 6 Dec 2010 12:22:38 +0100 Use a EventLink

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 ton.ag...@gmail.com An:

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

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: Antwort: Strange Type Coercion Exception

2010-10-11 Thread Kristian Marinkovic
Exception Thank you very much. On 11.10.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

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

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

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

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

2010-09-13 Thread Kristian Marinkovic
hi fanzhen, try following instead: input type=checkbox name=audit value=0 checked=${audit0} /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 fanzhen.m...@hotmail.com

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 t:delegate ...

2010-07-08 Thread Kristian Marinkovic
correct... create a block with multiple coponents g, kris Von:matt22 s...@zoznam.sk An: users@tapestry.apache.org Datum: 08.07.2010 07:15 Betreff:Multiple Components in t:delegate ... Hi, Is it possible to render list of component in delegate? t:delegate to=list of

Re: Multiple Components in t:delegate ...

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 s...@zoznam.sk An: users@tapestry.apache.org Datum: 08.07.2010 15:39 Betreff:Re:

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)

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 thiag...@gmail.com An: Tapestry users users@tapestry.apache.org Datum: 25.05.2010 15:06 Betreff:Re: [Taspetry IoC] Using Tapestry IoC

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 markus.feind...@gmx.de

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

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

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: 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 mcmbl...@gmail.com An: users@tapestry.apache.org Datum: 02.05.2010 19:28 Betreff:How to integrate Tapestry

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 robin.komi...@gmail.com An: Tapestry users users@tapestry.apache.org Datum: 28.04.2010 11:54 Betreff:[Announce] Tapestry5 jQuery integration and Tapestry5-ClientResources Gesendet von:

Re: session expired error

2010-04-23 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 session-config session-timeout10/session-timeout

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 stephan.windmuel...@cs.tu-dortmund.de An: users@tapestry.apache.org Datum: 16.04.2010 11:29 Betreff:Getting default validation messages from Messages service Hello! Since

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
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:董和平 donghp1...@gmail.com An: Tapestry users users@tapestry.apache.org Datum: 15.04.2010 02:56 Betreff:

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
package return nothing! Did anyone has such problem? -- From: Kristian Marinkovic kristian.marinko...@porsche.co.at Sent: Thursday, April 15, 2010 2:26 PM To: Tapestry users users@tapestry.apache.org Subject: Antwort: Why SubModule exported

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

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:

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

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

2010-04-06 Thread Kristian Marinkovic
:) - Everton De: Kristian Marinkovic kristian.marinko...@porsche.co.at Para: Tapestry users users@tapestry.apache.org 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

Re: LinkSubmit with Context?

2010-03-31 Thread Kristian Marinkovic
users users@tapestry.apache.org 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

Re: LinkSubmit with Context?

2010-03-31 Thread Kristian Marinkovic
with Context? 2010/3/31 Kristian Marinkovic kristian.marinko...@porsche.co.at hi pierce, there was already the jira issue https://issues.apache.org/jira/browse/TAP5-532 that was closed as duplicat of https://issues.apache.org/jira/browse/TAP5-194 which was not correct. maybe we should reopen

Re: LinkSubmit with Context?

2010-03-30 Thread Kristian Marinkovic
if you have multiple linksubmit components you can distinguish them by adding onSelectedFromSubmit1() or onSelectedFromSubmit2() action handler. the linksubmit component does not support a context parameter out of the box. if you really need it you have to create your own component. all you need

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 a attribute by saying link

Re: Generated links in a loop

2010-03-30 Thread Kristian Marinkovic
- Original Message - From: Kristian Marinkovic kristian.marinko...@porsche.co.at To: Tapestry users users@tapestry.apache.org Sent: Tuesday, 30 March, 2010 13:02:51 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Generated links in a loop hi peter, i don't understand your

Re: About configuration override

2010-02-25 Thread Kristian Marinkovic
hi Robin, imagine you have 2 overrides. which one is the correct one. it will processed in the order the module classes are loaded. and the order is not defined, it depends on the jvm, the os, the file system, i guess you get the problem :) g, kris Robin Komiwes odiss...@gmail.com

  1   2   3   4   5   >