Re: Remote debugging a Tapestry application

2017-04-16 Thread g kuczera
#x27;s the lazy loading?). 2017-04-12 9:03 GMT+02:00 g kuczera : > I still did not manage to run the application in the development mode (had > other work to do, but I know that there is a problem with the absent > hibernate.cfg.xml file). > > In the meantime I created the test proj

Re: Remote debugging a Tapestry application

2017-04-12 Thread g kuczera
to:trs...@gmail.com] > > Sent: Wednesday, April 5, 2017 5:10 AM > > To: Tapestry users > > Subject: Re: Remote debugging a Tapestry application > > > > I believe you will be able to see the values if you are in development > > mode. > > > > On Tuesday,

Remote debugging a Tapestry application

2017-04-04 Thread g kuczera
Hi everybody, I wanted to speed up my work and try out the remote debugging from Eclipse. It indeed works (I use jetty:run on localhost and then remote debugging configuration from Eclipse), the breakpoints are hit. The big problem is the wrong values of the pages' fields - all of them equal null o

Re: Finding out when actionLink action is completed on the user side

2017-03-27 Thread g kuczera
> [0] https://github.com/eligrey/FileSaver.js > > > Am 27.03.2017 um 10:36 schrieb g kuczera : > > > > Hi everybody, > > I have an actionLink, which action returns the pdf document from the > > server. The document is dynamically generated, so it can take few seconds > &

Finding out when actionLink action is completed on the user side

2017-03-27 Thread g kuczera
Hi everybody, I have an actionLink, which action returns the pdf document from the server. The document is dynamically generated, so it can take few seconds to deliver it to the user. I want to prevent the user from clicking on the actionLink multiple times. I can block it in java script after the

Re: Setting the cache control in the component

2016-07-07 Thread g kuczera
nse.setHeader("Expires", "-1"); 2016-07-05 11:47 GMT+02:00 g kuczera : > PS: I don't think that this is a Tapestry related issue, but I would like > to hear your opinion. > > A also tried to add the pragma value > >- > > and it does not seem

Re: Setting the cache control in the component

2016-07-05 Thread g kuczera
PS: I don't think that this is a Tapestry related issue, but I would like to hear your opinion. A also tried to add the pragma value - and it does not seem to change the way the website behaves (thou it appears in the page source). 2016-07-05 11:33 GMT+02:00 g kuczera : > Hi g

Setting the cache control in the component

2016-07-05 Thread g kuczera
Hi guys, I wonder how to prevent from returning to the previously visited page (the specific one, with important content). I figured out, that there is a cache-control header, which forces the web browser to load the page from the server again. That would be fine, but after setting the cache-contro

Re: How to customize the grid to show three s in two rows?

2016-07-05 Thread g kuczera
and then use a mixin to > > manipulate the html of the grid to introduce a new row containing the > cell. > > The latter being the most "hackish solution" of the two, IMO. > > > > -- > > Chris > > > > On Wed, Jun 22, 2016 at 8:22 AM, g kuczera

Re: How to customize the grid to show three s in two rows?

2016-06-22 Thread g kuczera
ulate the html of the grid to introduce a new row containing the cell. > The latter being the most "hackish solution" of the two, IMO. > > -- > Chris > > On Wed, Jun 22, 2016 at 8:22 AM, g kuczera wrote: > > > Sorry, the image was not embedded correctly. Here

Re: How to customize the grid to show three s in two rows?

2016-06-21 Thread g kuczera
gt; Your post seems incomplete, so it is not clear to me, what you are trying > to do. > > -- > Chris > > On Wed, Jun 22, 2016 at 8:05 AM, g kuczera wrote: > > > Currently I got a request to add another visible column to the table > (grid > > component), but t

How to customize the grid to show three s in two rows?

2016-06-21 Thread g kuczera
Currently I got a request to add another visible column to the table (grid component), but the request was for it to be placed below the rest. What do you think the best approach would be in this case? I see three of them: - add the mentioned column in the *include* parameter and after rende

Re: Hibernate call returns wrong day

2016-03-30 Thread g kuczera
er all, it only get rid of the time part. 2016-03-30 17:31 GMT+02:00 g kuczera : > Hi again, guys. > > I grepped for the TimeZone in the project directory, but there is nothing > interesting there (at least for me). > If I use > Calendar.getInstance(TimeZone.getTimeZone("

Re: Hibernate call returns wrong day

2016-03-30 Thread g kuczera
pts to > "fix" timezone problems. You can try using > "Calendar.getInstance(TimeZone.getTimeZone("GMT"), Locale.ROOT);" instead > of Calendar.getInstance() to avoid problems with default settings. > > Best regards, > Cezary > > > > >

Re: Hibernate call returns wrong day

2016-03-30 Thread g kuczera
9:30 GMT+02:00 JumpStart : > A lateral thought - is there a reason the column is declared as TIMESTAMP > instead of DATE? > > > On 30 Mar 2016, at 2:50 PM, g kuczera wrote: > > > > I also checked the default PostgreSQL timezone (in the postgresql.conf > &g

Re: Hibernate call returns wrong day

2016-03-29 Thread g kuczera
I also checked the default PostgreSQL timezone (in the postgresql.conf file), which is set to "Poland". 2016-03-30 8:47 GMT+02:00 g kuczera : > I observed that behavior on the production server and then confirmed it on > the test server, which is not accessed by any client,

Re: Hibernate call returns wrong day

2016-03-29 Thread g kuczera
e time? Can the system > default timezone change (perhaps also print out TimeZone.getDefault(), Date > initialized to the default timezone). I'd still suspect some type of > timezone issue. > > Kalle > > On Tue, Mar 29, 2016 at 3:39 PM, g kuczera wrote: > > > Hi guys,

Re: Hibernate call returns wrong day

2016-03-29 Thread g kuczera
. To fix this, one should have methodically > ensure that all parts are using consistent time zone policy, and any time > zone translations occur only when necessary. > > Best regards, > Cezary > > > On Tue, Mar 22, 2016 at 8:55 PM, g kuczera wrote: > > > Hi guys, >

Hibernate call returns wrong day

2016-03-22 Thread g kuczera
Hi guys, I do not really know if it is connected with tapestry or only the Hibernate, but maybe that is the case. So there is a embedded calendar on the site, the one from tapestry-jquery library: http://tapestry5-jquery.com/mixins/docscustomdatepicker If the user chose - during registration - the

Re: Calling method after CommitAfter call

2016-03-22 Thread g kuczera
Guys, I forgot to tell you that since applying the "HibernateSessionManager.commit()" everything works like a charm. It looks that it was indeed the problem with synchronisation. 2016-02-26 13:14 GMT+01:00 Thiago H de Paula Figueiredo : > On Fri, 26 Feb 2016 07:54:47 -0300, g k

Re: Calling method after CommitAfter call

2016-02-26 Thread g kuczera
rhead. 2016-02-25 15:52 GMT+01:00 Thiago H de Paula Figueiredo : > On Thu, 25 Feb 2016 11:30:44 -0300, g kuczera wrote: > > In the end I gave up implementing the JPA, because I do not want to mix >> these two different approaches (Hibernate sessions and JPA). >> > > Th

Re: Calling method after CommitAfter call

2016-02-25 Thread g kuczera
HibernateSessionManager. I am not pretty sure how to obtain that manager, to safely commit the transaction. Right now I am trying to get that manager and then call the commit. 2016-02-25 8:57 GMT+01:00 g kuczera : > But I think a JPA hook would be a better choice. The Interceptor hooks >&g

Re: Calling method after CommitAfter call

2016-02-24 Thread g kuczera
pModule), as stated here: https://tapestry.apache.org/integrating-with-jpa.html All my classes are Daos and Dtos which uses the org,hibernate.Session (at least the Daos). 2016-02-24 23:55 GMT+01:00 Thiago H de Paula Figueiredo : > On Wed, 24 Feb 2016 19:33:13 -0300, g kuczera wrote: > > I

Re: Calling method after CommitAfter call

2016-02-24 Thread g kuczera
ed, afterTransactionCompletion and beforeTransactionCompletion. Have you ever used it with Tapestry? I think that I would have to have the queue with pending email-events and serve/send them properly in afterTransactionCompletion. What do you think? 2016-02-24 22:35 GMT+01:00 Thiago H de Paula Figueiredo : >

Re: Calling method after CommitAfter call

2016-02-24 Thread g kuczera
be called after committing the changes? 2016-02-24 21:23 GMT+01:00 g kuczera : > Hi guys, > I embedded the ApplicationSubmitForm (component) in my Page. If it is > successfully validated, the onSuccessFromNewApplicationForm method is > called: > > private Set observers;

Calling method after CommitAfter call

2016-02-24 Thread g kuczera
Hi guys, I embedded the ApplicationSubmitForm (component) in my Page. If it is successfully validated, the onSuccessFromNewApplicationForm method is called: private Set observers; @CommitAfter public void onSuccessFromNewApplicationForm() { Application application = new Application();

Re: jss.require(...) code is not executed when using ajaxResponseRenderer.addCallback(new JavaScriptCallback())

2016-02-06 Thread g
to confirm that the same addCallback gets executed correctly when clicked interactively, but not when called automatically... thanks for your feedback, g. On 5 February 2016 at 13:33, danny de cock wrote: > yes, they are ajax calls... I will produce a stripped-down version of >

Re: jss.require(...) code is not executed when using ajaxResponseRenderer.addCallback(new JavaScriptCallback())

2016-02-05 Thread g
klance/tapestry-cometd) to tapestry 5.4. this is a push application in which this addCallback structure without the request.isXHR-test works fine in 5.3.8... thanks for your feedback, g. On 5 February 2016 at 11:23, Carlos Montero Canabal wrote: > Hi, > > Your js file you required is

Re: jss.require(...) code is not executed when using ajaxResponseRenderer.addCallback(new JavaScriptCallback())

2016-02-04 Thread g
hello geoff, thanks for your feedback, and indeed: I believe it looks very much like a tapestry 5.4 bug ;-) thanks & kind regards, g. On 5 February 2016 at 02:00, JumpStart wrote: > Sorry, just looked at your stack overflow example and I’m baffled as to why > it wouldn’t work.

jss.require(...) code is not executed when using ajaxResponseRenderer.addCallback(new JavaScriptCallback())

2016-02-04 Thread g
s.addScript() rather than the jss.require... I posted sample source code on stackoverflow, but have not gotten any feedback so far: http://stackoverflow.com/questions/35127426/ajaxresponserenderer-addcallback-calling-requirejavascript-is-never-executed-f thanks

RE: T5.3.8 ClassNotFound error ONLY when running on a virtualized server?!

2016-01-18 Thread A G
Fyi, Tapestry 5.8 does not work on Google App engine. And no one seems to realize that or care. That's why this is the worst release ever! It actually regress instead of becoming better. > Date: Mon, 18 Jan 2016 18:46:29 -0800 > Subject: Re: T5.3.8 ClassNotFound error ONLY when running on a virt

Re: Passing parent layout's object to nested page

2015-10-26 Thread g kuczera
Figueiredo : > On Fri, 23 Oct 2015 12:28:09 -0200, g kuczera wrote: > > For now I tried the last approach, (InjectContainer), but it throws >> Caused by: java.lang.NullPointerException >> at >> >> org.apache.tapestry5.internal.transform.InjectContainerWorker$1$1.

Re: Passing parent layout's object to nested page

2015-10-23 Thread g kuczera
Just wandering, if the container worker gets null, then it probably means, that there is no container at all (for my current page, in which I put the annotation). 2015-10-22 15:40 GMT+02:00 Thiago H de Paula Figueiredo : > On Thu, 22 Oct 2015 06:48:34 -0200, g kuczera wrote: > > Hi G

Re: Passing parent layout's object to nested page

2015-10-22 Thread g kuczera
gt; } > > ${someProperty} > > Or with the @Property annotation you can access its properties in your > page as following: > > @Property > @InjectComponent > private LayoutM layoutM; > > ${layoutM.someProperty} > > > Nathan > > > On 22/10/15 10:48,

Passing parent layout's object to nested page

2015-10-22 Thread g kuczera
Hi Guys, I have a custom layout named LayoutM (java class and tml). It is used by my page - Activities - like that: http://tapestry.apache.org/schema/tapestry_5_3.xsd"; xmlns:p="tapestry:parameter"> And it implements some kind of interface (class LayoutM implements CustomInterface).

Re: DateField default value

2015-10-13 Thread g kuczera
gt; On Tue, 13 Oct 2015 01:59:43 -0300, g kuczera wrote: > > Hi everyone, >> > > Hi! > > I am a beginner with Tapestry and I have a specific question. >> > > Welcome! > > As I understand, I just have to set the value parameter by setting the >>

DateField default value

2015-10-12 Thread g kuczera
Hi everyone, I am a beginner with Tapestry and I have a specific question. There is a ActivitiesFilterComponent component, which contains two DataFields ( http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/components/DateField.html). Both of them are connected to CustomDatapicker

Failure reading parameter 'product' of component shop/Product: productpopupzone.questionform: Could not find a coercion from type java.lang.String to type ru.kupivip.service.shop.model.ProductDesc

2012-02-17 Thread m!g
Hi, I've got strange error. Here is example: Component code: On page rendering I'm getting error: org.apache.tapestry5.ioc.internal.util.TapestryException: Failure reading parameter 'value' of component shop/Product:productpopupzone.questionform.feedbacksubject: Failure reading parameter 'prod

Re: Accessing tapestry's hibernate instance from a quartz job

2011-07-04 Thread g...@liftyourgame.com
Hi Howard, Are you still going to release your Quartz / Hibernate module for Tapestry? Regards, Greg. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Accessing-tapestry-s-hibernate-instance-from-a-quartz-job-tp2421535p4552022.html Sent from the Tapestry - User mailing l

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

2011-02-11 Thread m!g
Hi, there is a lot of place in my project where this situation occurs. There is one of them (I removed unnecessary code): Main template with parameter / property "title" (the title meant to be displaed in head section): public class MainTemplate { @Parameter(defaultPrefix="literal")

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

2011-02-07 Thread m!g
I made only page just for simplicity. OK, Here is component with parameter: public class TestPage { @Component(parameters={"test=false"}) private Test test; } http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xml:space="preserve"> public class Test { @Paramete

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

2011-02-07 Thread m!g
Hi everyone. Here is a simple test application: public class Test { @Parameter(value="false") @Property private boolean test; @Component private Form form; @Inject private Request request; Object onSubmitFromForm() {

Re: Tapestry 5.2 Disable element id autogeneration

2011-01-19 Thread m!g
I've made a little fix in Form component: /** * Id parameter */ @Parameter private String id; void beginRender(MarkupWriter writer) { if (null != id && !"".equals(id.trim())) { clientId = id; } else { clientId = javascriptSupport.alloca

Re: Tapestry 5.2 Disable element id autogeneration

2011-01-19 Thread m!g
Entire form is inside the zone component, including submit button. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-Disable-element-id-autogeneration-tp3347539p3347955.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Tapestry 5.2 Disable element id autogeneration

2011-01-19 Thread m!g
Hi everyone. How can I disable autogeneration of form ids? I have a form which is located inside zone. JAVA: @Component(parameters = { "id=literal:registrationFormZone", "update=show" }) private Zone registrationFormZone; @Component(id="registrationForm", parameters = { "id=literal:regis

@EventListener , elements and the bound model

2007-02-01 Thread karthik G
I have a .page like this - and a listener @EventListener(elements = "prop", events = "onchange") public void propChange() { System.out.println(getPropValue( ) ); } I want the property that a component is bound to (and specified in "elements" at the same time) to be updated b

Re: Tap 4.1.2 Snapshot :@EventListener with async=false is not been called

2007-01-31 Thread karthik G
Same problem!! On 1/18/07, Shing Hing Man <[EMAIL PROTECTED]> wrote: I have a method with annotation @EventListener(targets = "companyPS", events = "onchange", submitForm = "myForm", async = false) that listens to a PropertySelection component. W

Tapestry 4.1 and Ajax enabled Contrib TablePages component

2007-01-19 Thread karthik G
Hi All, I tried using the TablePages component in my tapestry component that in turn is being refreshed through Ajax. TablePages doesnt seem to be working in Ajax mode. How are you guys handling this requirement now? I need a Ajax enabled custom Contrib Table component (and hence am using Table

Re: Extending existing component and .page file

2007-01-10 Thread karthik G
h Y. > -Original Message- > From: karthik G [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 09, 2007 3:15 PM > To: Tapestry users > Subject: Extending existing component and .page file > > class X extends Y{} > > If component X extends an existing component Y by

Extending existing component and .page file

2007-01-09 Thread karthik G
class X extends Y{} If component X extends an existing component Y by providing a new template X.html and adding additional property in X.jwc, are we required to copy the contents of Y.jwc into X.jwc? If I dont include it, i run into errors. May be am missing some parameter here. How can i get

Re: Error when accessing ApplicationStateManager in WebRequestServicerFilter

2007-01-04 Thread karthik G
---Original Message- From: karthik G [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 03, 2007 8:40 PM To: Tapestry users Subject: Error when accessing ApplicationStateManager in WebRequestServicerFilter I wrote my custom filter that implements WebRequestServicerFilter - In my filter am

Error when accessing ApplicationStateManager in WebRequestServicerFilter

2007-01-03 Thread karthik G
I wrote my custom filter that implements WebRequestServicerFilter - In my filter am looking up ApplicationStatemanager to determine if a session object exists. public class CustomWebRequestServicerFilter impleme

Re: Tap4: Leaving the Page Listener?

2007-01-02 Thread karthik G
On 1/3/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I almost added a central hivemind service to expose those page listener methods as global listeners you can have a hivemind service implement to generically listen to all page changes (for all pages) that will be great. I want to be able to

ClassCastException when using @InjectSpring

2007-01-02 Thread karthik G
Hi, I'm using tapestry-spring-0.1.2 and tapestry 4.0.1 + annotations 4.0.2 I get a ClassCastException in the tapestry page when using @InjectSpring. Any idea what is going wrong here. @InjectSpring("productService") public abstract ProductService getProductService(); The type of the bean retu

Re: hook into T4's page creation process

2006-12-27 Thread karthik G
:) Btw, thank you all for guiding me through tapestry workers On 12/28/06, Raul Raja Martinez <[EMAIL PROTECTED]> wrote: @Persist("client") ? wouldn´t that use cookies? karthik G wrote: > thanks Robert! > > This is what I have in my code - > > public boolean isSecure

Re: hook into T4's page creation process

2006-12-27 Thread karthik G
Uhhm found the problem - @Persist("session") is not same as @InjectState("user") ? When i switched over to @InjectState("user") it worked as expected. On 12/27/06, karthik G <[EMAIL PROTECTED]> wrote: thanks Robert! This is what I have in my c

Re: hook into T4's page creation process

2006-12-27 Thread karthik G
ger.get() I think this should work Kind regards, Robert karthik G schrieb: > WoW!, i downloaded tapestry-acegi code. Used some ideas from there for > implementing my stuff..and it works like a charm. > > But can someone tell me how can I programmatically look up hivemind

Re: hook into T4's page creation process

2006-12-27 Thread karthik G
fied scope? thanks, Karthik On 12/27/06, karthik G <[EMAIL PROTECTED]> wrote: Thanks james/ron, I finally gathered some courage to look at the source code :) Ok I just want to check for the presence of the User object in the session in my ClassAnnotationEnhancementWorker. I

Re: hook into T4's page creation process

2006-12-27 Thread karthik G
ut I don't know if there are any > tutorials/docu around for this. It is quite advanced staff, but its not > that hard. > > Cheers, > Ron > > > > karthik G wrote: > > thanks Ron. Currently am with going the way (subclassing a securedpage) as > > suggested

Re: hook into T4's page creation process

2006-12-22 Thread karthik G
dd the needed logic to the mentioned attach event. Take a look at the annotations module code and hivemind configuration. Cheers, Ron karthik G wrote: > I just want to add an annotation on the page and then take some action when > the page is being bound to a request from the page pool. >

Re: Can you comment on this?

2006-12-21 Thread karthik G
Both frameworks have excellent developers (which is great for users) and from what I see both have a different approach to a problem. I think everything can co-exist! Case in point ;-) http://www.nabble.com/Directly-map-a-bean-to-HTML-form-tf2845102.html#a7944709

hook into T4's page creation process

2006-12-20 Thread karthik G
I just want to add an annotation on the page and then take some action when the page is being bound to a request from the page pool. @SecuredPage abstract class MyPage extends BasePage{ } Is there anyways i can hook into T4's page creation process and then depending upon the annotation take som

Re: tapestry prop / ognl?

2006-12-18 Thread karthik G
which is why it's slower. Take care, Daniel On 12/15/06, karthik G <[EMAIL PROTECTED]> wrote: > > Should i be using tapestry prop in place of ognl? Is this norm when > developing with tapestry? > > http://howardlewisship.com/tapestry-javaforge/tapestry-prop/ > &g

tapestry prop / ognl?

2006-12-15 Thread karthik G
Should i be using tapestry prop in place of ognl? Is this norm when developing with tapestry? http://howardlewisship.com/tapestry-javaforge/tapestry-prop/ Please do let me know as we are at a very early in the project and would like to adopt the best option. thanks, Karthik

Re: PageBeginRenderListener equivalent for Components

2006-12-14 Thread karthik G
thanks Jiju On 12/15/06, jiju <[EMAIL PROTECTED]> wrote: PageBeginRenderListener will be called in the case of rendering a component in ajax context also. Bcose, the difference in ajax calls is only in the clientside,rest remains the same as normal calls karthik G wrote: >

Re: PageBeginRenderListener equivalent for Components

2006-12-14 Thread karthik G
to. On 12/14/06, karthik G <[EMAIL PROTECTED]> wrote: > Hi All, > > I understand that PageBeginRenderListener gets called during render and > rewind of a Page. I later created a component that is embedded inside a page > and moved the content from the Page to the newly created Com

PageBeginRenderListener equivalent for Components

2006-12-14 Thread karthik G
Hi All, I understand that PageBeginRenderListener gets called during render and rewind of a Page. I later created a component that is embedded inside a page and moved the content from the Page to the newly created Component. Now my component implements PageBeginRenderListener and does everything

render a previously non-existing component on ajax submit

2006-12-12 Thread karthik G
I have one page in my application. I want to display a panel/form (FORM-1) in the page that allows user to do ajax submit. Once that is done , i want to replace FORM-1 with a different FORM-2 that didn't exist before in the page. I see that AjaxSubmit has a property updateComponents where we are s

Multiple skins with Tapestry

2006-05-22 Thread Sergey G. Kashin
How to create multiple designs with tapestry for one application? may be good idea to use folders for skins design1/Home.html design2/Home.html design3/Home.html but for all that pages will need create view design1/Home.java design2/Home.java design3/Home.java that not very nice. Any ideas to r