Problem with coercion on Java 7

2011-08-04 Thread Radek Terber
Hi all I have such strange problem with data incomming from a client's form with Java7. I have created a generic entity, which is a superclass for all other entities in applications. This class contains getter and setter for ID. Getter is generic, setter - due Tapestry5 coercions - expects Object a

Custom coercion from String to Long

2010-09-29 Thread Radek Terber
Hi all I need the cutom coercion from String to Long, which will translate empty strings to null Long value. I tried add contribution to my AppModule, but with no success - coercion to Long is still processed by old manner. Is there any way to do it? Thans. Here is part of my AppModule: ===

Re: NPE in afterRender method in Tomcat

2010-06-08 Thread Radek Terber
I'm vwr sorry, I'm stupid.The constant Constants.REQUIRED_LOGIN_RQATR was null. But I'm surprised the Tomcat does not provide any reasonable message. Dne 7.6.2010 22:13, Radek Terber napsal(a): Hi I have such problem: I have quite simple T5 application - (T5 + hibernate), cur

Re: LinkSubmit doesn't work

2010-06-07 Thread Radek Terber
I'm sorry, I mistook in WAR's URL. the correct is http://www.gapo.cz/download/genusinum.war

Re: NPE in afterRender method in Tomcat

2010-06-07 Thread Radek Terber
le-step down ingo the catalina code to see what's exactly going on. Not enough information here to diagnose. On Mon, Jun 7, 2010 at 1:13 PM, Radek Terber wrote: Hi I have such problem: I have quite simple T5 application - (T5 + hibernate), currently compiled under T 5.1.0.5. When I

NPE in afterRender method in Tomcat

2010-06-07 Thread Radek Terber
Hi I have such problem: I have quite simple T5 application - (T5 + hibernate), currently compiled under T 5.1.0.5. When I run it under Jetty (ver. 8.0.0), it runs fine. But when I try it to start under Tomcat, I get NullPointerException that (probably) indicates the underline request is null.

Re: How tell T5 to return HTML page (not JSON) on AJAX call

2010-05-11 Thread Radek Terber
n Tue, May 11, 2010 at 9:17 AM, Radek Terber wrote: The behavoior of combination of JQ tabs and T5 is quite strange. Tabs are loaded dynamically using it's links like this: Aktuálne( Archív ...etc... In case the tab content is loaded firt time, all is OK, tab content is loaded

Re: How tell T5 to return HTML page (not JSON) on AJAX call

2010-05-11 Thread Radek Terber
L. Dne 11.5.2010 3:36, Alex Kotchnev napsal(a): Radek, what if you just point the URL that's used w/ jQuery tabs to a regular Tapestry page ? If I recall correctly, the jQuery tabs used a, and each with inside had an URL of a standalone page that renders w/o any particular layout

How tell T5 to return HTML page (not JSON) on AJAX call

2010-05-10 Thread Radek Terber
Hi all I try to use jQuery "tabs" together with the T5 grid in simple page - the page with grid is put as content of a tab (it seams to be good idea due application could be divided into amall pieces - without static component dependencies, as it is required by tabs made using T5, and I can c

Add custom CSS class to each TH element of grid

2010-04-29 Thread Radek Terber
Hi all I need add my custom CSS class to each TH element within table rendered by the Grid component, but I didn't find any method how to do it simply. Is there any way (as simply as possible) how to do it ? Does (for example) any grid's or grid model's parameter such parameter? Thanks. --

Re: get the service by ID and autoload services

2010-01-08 Thread Radek Terber
Thiago H. de Paula Figueiredo napsal(a): Em Thu, 07 Jan 2010 10:57:33 -0200, Radek Terber escreveu: Hi all Hi! 1) Is there any way to obtain service by it's service ID (similarly like Spring's getBean(String) method does)? I would like to build general autocomplet component

get the service by ID and autoload services

2010-01-07 Thread Radek Terber
Hi all I have two questions about Tapestry IOC: 1) Is there any way to obtain service by it's service ID (similarly like Spring's getBean(String) method does)? I would like to build general autocomplet component which gets service ID (as String) and returns list of entities corresponding to g

place assets outside the application context

2009-10-07 Thread Radek Terber
Hi all. I need place some my assets (images and documents, all saved by end user from browser) outside of the application web context (to prvent clean it while build by maven, and from some other reasons). Is there any way in Tapestry to do so (for example create "virtual" URL, which will be t

How to pass message's parameters in template

2009-08-17 Thread Radek Terber
Hi all. Is there any way how to pass parameter to message directly in TML file ? For example: I have component Example1 (resides in "Example1.java") and in it's "Example1.tml" is something like this: in Example1.tml is -- htt

more actionlink's context values in *.tml directly

2009-06-15 Thread Radek Terber
Hi all. Is there any way to put more than one context parameter (for actionlink, pagelink and similar components) directly into tml file (for example "param1" and "param2" to generate URL in form "http://urBase/param1/param2";, something like this: ... ) ? I can do it using ComponentResources'

Re: Difference between prop: and ${...} in PageLink

2009-06-11 Thread Radek Terber
Hi all. As I know from My experiments, ${ ... } converts each object to string, in contrast to "prop:...", which returns object "as is". In page link, this difference should not take an effect. But in parameters this is significant ... Kai Weber napsal(a): > Hi, > > I am a Tapestry beginner. I a

Re: dynamic components in page

2009-01-13 Thread Radek Terber
g. something like this: ) is now reference to page directly (or to field annotated as @Component(id = "COMPONENT_SOURCE") ... ) and there cannot be typed any expression (all typed here is interpreted as component´s page link or ID, including brackets ${...}). Radek Terber napsal(a): &

dynamic components in page

2009-01-12 Thread Radek Terber
Hi Is there possibility to render components in T5 page "dynamically" (in dependency on return value of any method in page´s class for example, or so) ? Methods "onEvent..." return pages whose are rendered "dynamically" too - each method can return many pages. I thing it would be possible allow d

Problem with cyclic including components

2009-01-12 Thread Radek Terber
Hi all. I'm new in tapestry 5 and I have a problem with component including. I have two components, each of them need to include the other (the example is here): First class: public class RoleList extends AbstractGridFragment { @Component private SearchRole searchRole; @Inject