Re: [T5] 5.0.7 - Help with log4j.properties file

2008-01-08 Thread Davor Hrg
for tapestry services just define "Logger logger" as constructor parameter.. Davor Hrg On Jan 8, 2008 9:22 AM, Steph <[EMAIL PROTECTED]> wrote: > How do you get your logger in your code ? > The injection > @Inject > private Logger log; > is only useabl

Re: Newbie needs help with display of values on page

2008-01-10 Thread Davor Hrg
5.0.8-SNAPSHOT has new var: binding prefix but it is only for simple values, without expression evaluation. for example to display loop index. Davor Hrg On Jan 10, 2008 2:52 PM, <[EMAIL PROTECTED]> wrote: > > Things are kind of slow here at the office, so I'm taking advan

Re: T5: tapestry-hibernate: rollback

2008-01-11 Thread Davor Hrg
HibernateSessionManager On Jan 11, 2008 11:51 AM, Massimo Lusetti <[EMAIL PROTECTED]> wrote: > On Jan 11, 2008 10:00 AM, osamuo <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > I have noticed that the tapestry-hibernate commits the current transaction > > even after an exception occurs. > > > > I

Re: T5: 5.0.8 whitespace

2008-01-12 Thread Davor Hrg
just reverse where you write the "," instead of checking if last and putting comma behind check if first and put comma in front Davor Hrg On Jan 12, 2008 11:04 PM, Chris Lewis <[EMAIL PROTECTED]> wrote: > So this ticket has been implemented in svn: > https://issues.

Beaneditor default date format

2008-01-14 Thread Davor Hrg
Is there to set date format globaly ? or at least for BeanEditor ? Davor Hrg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5: Some problem with prob binding

2008-01-15 Thread Davor Hrg
setId(T id); to ISimpleDesc interface to have setter available. or persist the id separately and not try to modify the id. Davor Hrg On Jan 15, 2008 8:59 AM, Foror <[EMAIL PROTECTED]> wrote: > In the project there is a following: > > public interface ISimpDesc { >public g

Re: T5: wiki: automatic time stamping with hibernate and tapestry-hibernate

2008-01-19 Thread Davor Hrg
Very nice :) user_id: created_by, modified_by can also be added this way :) Davor Hrg On Jan 19, 2008 8:09 PM, Chris Lewis <[EMAIL PROTECTED]> wrote: > Hello all. > > I'm writing to share a link to a wiki I just posted about getting some > auto-magic behavior for entities

Re: [ANN]: Seam for T5

2008-01-21 Thread Davor Hrg
Actualy it's no problem replacing tapestry-hibernate if The session is your only concern. You may depend also on HibernateSessionManager and have contributions for extra entity packages. Davor Hrg On Jan 21, 2008 1:26 PM, Chris Lewis <[EMAIL PROTECTED]> wrote: > Regarding hibe

Re: T5.0.7: ThreadCleanupHubImpl.cleanup swallows exceptions

2008-01-21 Thread Davor Hrg
configuration that needs reload create your own services to provide it. Tapestry is about static structure and dynamic behaviour, so if you can keep the static structure ... no need for reload. these are just some ideas... Davor Hrg On Jan 21, 2008 7:13 PM, Franz Amador <[EMAIL PROTECTED]>

Re: T5: Inject services into domain objects?

2008-01-21 Thread Davor Hrg
have you tried using a hibernate interceptor ? On Jan 21, 2008 8:26 PM, Franz Amador <[EMAIL PROTECTED]> wrote: > Are there any plans for a way to inject services into domain objects, i.e. > entities created by Hibernate? For example, my domain objects have some > fairly complex business logic

Re: t5 class cast

2008-01-23 Thread Davor Hrg
Class cast exceptions happen if you have non component classes inside components or pages packages... post some code and say what packages are those classes in... Davor Hrg On Jan 23, 2008 10:12 AM, riccaruf <[EMAIL PROTECTED]> wrote: > > Hi Dave thank you very mutch for your reply!

Re: t5 class cast

2008-01-23 Thread Davor Hrg
oader... and problems like this can happen pretty easily... Davor Hrg On Jan 23, 2008 1:33 PM, riccaruf <[EMAIL PROTECTED]> wrote: > > Hi Davor, > we are developing an application with our own component, > and we are trying to validate a textfield like embedded component of our &

Re: T5: Service and thread

2008-01-24 Thread Davor Hrg
sure that you call ThreadCleanupHub after thread finishes it's work so tapestry can free the resources. Davor Hrg On Jan 24, 2008 10:45 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a service which does some file download that takes quite long, I'd &g

Re: T5: Service and thread

2008-01-25 Thread Davor Hrg
hm.. I'm not following you ... you say you download sth ... does your service download sth from some server to yourown or is browser downloading from your server ... could you say more about your case ... some ceode mybe ... Davor Hrg On Jan 25, 2008 11:08 AM, Angelo Chen <[EMAIL P

Re: T5: Service and thread

2008-01-26 Thread Davor Hrg
(); } after this you have to bind this task to the your ASO so you can access it and display progress on the page ... these are just pointers ... the rest is on you :):) Davor Hrg On Jan 26, 2008 1:01 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi Davor, > > getAll is not async,

Re: T5: Service and thread

2008-01-25 Thread Davor Hrg
are you sure fileService.getAll(); is async and returns immediately ? Davor Hrg On Jan 25, 2008 4:36 PM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi Davor, > > the service downloads files from remote server which takes quite long time, > the code is: > >

Re: T5: dynamic form fields - again

2008-01-25 Thread Davor Hrg
stom forms... Davor Hrg On Jan 25, 2008 7:07 PM, Chris Lewis <[EMAIL PROTECTED]> wrote: > Hello all, > > I know this has been talked about here and there but I still haven't > seen a clear example or explanation of how to implement it. In general, > my question is how can I proc

Re: HOWTO create advanced form on t5 ?

2008-01-28 Thread Davor Hrg
http://wiki.apache.org/tapestry/Tapestry5HowTos On Jan 28, 2008 12:59 PM, yodla <[EMAIL PROTECTED]> wrote: > > hi all > i wish to make a form to put data from it into database. let's say i have > two classes: > Student(with property:private String studentName) > School(private String schoolName).

Re: T5: Edit page best practice - Mk III - now Mk V

2008-01-28 Thread Davor Hrg
: "edit/3" and have validation errors ,and go to another page, then return to "edit/3" validation errors are stil there, and last submited data, if you go to edit/4 errors are reset and new data from db loaded... not that this suits everybody else, but is fine for me.. Davor Hrg

Re: T5: Edit page best practice - Mk III - now Mk V

2008-01-28 Thread Davor Hrg
an however use @Meta annotation to change the persistence strategy for the form. Davor Hrg On Jan 28, 2008 6:09 PM, Kalle Korhonen <[EMAIL PROTECTED]> wrote: > Really important work Geoff, thanks. Which version are you using? I hope you > go through the extra work to keep up with the

Re: T5: Tapestry-Hibernate and thread

2008-01-29 Thread Davor Hrg
any threaded resources from tapestry, otherwise expect strange behavior and memory leaks. Davor Hrg On Jan 29, 2008 11:20 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > found solution, session.flush() at end of the thread, not needed if not in a > thread, don't know why. >

Re: T5: Edit page best practice - Mk VI

2008-01-29 Thread Davor Hrg
oh, generics support is added in T5.0.10 and is a limited first impl... (as generics are pretty hard to handle at runtime) Davor Hrg On Jan 29, 2008 3:15 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > cleanupRender is not a fix for flash persistence, it's more like > replacemen

Re: T5: Edit page best practice - Mk VI

2008-01-29 Thread Davor Hrg
to convert string to "idClass" before calling session.get() resets the form if cancel button is pressed or entityId changes Davor Hrg On Jan 29, 2008 2:48 PM, Geoff Callender <[EMAIL PROTECTED]> wrote: > Thanks for all the comments. They've been invaluable. Below is the &g

Re: T5: Tapestry-Hibernate and thread

2008-01-30 Thread Davor Hrg
right instance. at the end of the new Thread's work, call cleanup()... and tapestry will clear the resources generaly speaking: make sure you dont share DB entities between those threads since the new thread will have a completely new hibernate session. Davor Hrg On Jan 30, 2008 2:16 AM, A

Re: T5: Tapestry-Hibernate and thread

2008-01-30 Thread Davor Hrg
executes tasks in background, the worker can use a single thread and call cleanup() after every task finishes. You can then spawn more workers... etc... Davor Hrg On Jan 30, 2008 10:21 AM, Massimo Lusetti <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 9:18 AM, Davor Hrg <[EMAIL PROTE

Re: T5: Edit page best practice - Mk VI

2008-01-30 Thread Davor Hrg
UserEdit extends GenericEdit tapestry currently only handles the third case, and only for getters, when for example: class GenericEdit{ public T getEntity(){...} } Davor Hrg On Jan 30, 2008 11:38 AM, Geoff Callender <[EMAIL PROTECTED]> wrote: > Good point, Davor. The way I'

Re: T5.0.8 client side validation bubble display on IE6 windows xp

2008-01-30 Thread Davor Hrg
it is most likely composed of png images, all browsers but IE support semi transparent png's but for ie backgound image filters must be used to make it work Davor Hrg On Jan 31, 2008 6:49 AM, Dapeng <[EMAIL PROTECTED]> wrote: > the new bubble looks very cool > > but ...

Re: T5.0.8 client side validation bubble display on IE6 windows xp

2008-01-31 Thread Davor Hrg
if you already distinct Firefox and IE than you can easily use png for IE too... and for css backgrounds just replace url(test.png) with filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='test.png', sizingMethod='scale') Davor Hrg On Jan 31, 2008 5:13 P

Re: T5: Inserting a component into a message format

2008-02-01 Thread Davor Hrg
You could split the string and do sth like this: ${part1} ${part2} Inject ComponentResources .. to get a message do this: _resources.getMessages().get("key") then split the string and implement public String getPart1(){...} public String getPart2(){...} Davor Hrg On Feb 1, 20

Re: Tapestry and Article at Theserverside.com

2008-02-01 Thread Davor Hrg
There are many frameworks... you should use which one suits your need the best... tapestry has a good community, and an active mailing list... I'm not worried ... Davor Hrg On Feb 1, 2008 11:05 AM, Joachim Van der Auwera <[EMAIL PROTECTED]> wrote: > Tapestyr users have so much

Re: [T5] best practice to cancel edit page

2008-02-01 Thread Davor Hrg
I've created a patch for submit component https://issues.apache.org/jira/browse/TAPESTRY-2109 ior you can try this component (iti is a modified copy of original Submit) public final class Submit2 extends AbstractField { static final String SELECTED_EVENT = "selected"; static final String

Re: T5: best practice for a multiple module app

2008-02-04 Thread Davor Hrg
se I could restart a webapp inside tomcat with an ant script, now I use jetty launcher and it can bi done with JMX (I havent tried it yet) If I get annoyed enough with hibernate startup again I'll do it for T5, If you make it work pelase put it on the wiki :) Davor Hrg On Feb 4, 2008 9:2

Re: T5: HibernateSessionManager

2008-02-04 Thread Davor Hrg
HibernateSessionManager handles session for a request, and does commit at the end. if you want to have more than one commit you should not call it directly on the injected session since it will confuse HibernateSessionManager. Same goes for rollback. Davor Hrg On Feb 4, 2008 3:52 PM, Angelo

Re: T5: Custom components are not statefull

2008-02-04 Thread Davor Hrg
Actions target component so the id used. when your component is rendered multiple times, clientId changes and can be used as identifier. if you want clientId in the action link, send is as context parameter. Davor Hrg On 2/4/08, Alexander Lamb <[EMAIL PROTECTED]> wrote: > Well, gett

Re: T5: Custom components are not statefull

2008-02-04 Thread Davor Hrg
maybe it must be inside a form... Davor Hrg On Feb 4, 2008 2:36 PM, Alexander Lamb <[EMAIL PROTECTED]> wrote: > No, it extends nothing. Actually, the TextField was put in the loop > only to check I was not going crazy... to see the loop was indeed > statefull, but not for my c

Re: Using Tapestry-ioc Separately

2008-02-05 Thread Davor Hrg
http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate Davor Hrg On Feb 5, 2008 11:00 PM, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: > I was wondering about using T5's IOC separately, i.e. in a non-T5 app > (in fact, n

Re: Improving Component Reference

2008-02-05 Thread Davor Hrg
It's getting better and better :) looking forward to the tutorial on how to do it for own components :) Davor Hrg On Feb 6, 2008 7:35 AM, Adam Ayres <[EMAIL PROTECTED]> wrote: > I think the component reference guide is great! In the past I would use > the component referen

Re: Improving Component Reference

2008-02-06 Thread Davor Hrg
ewis Ship <[EMAIL PROTECTED]> wrote: > On my list, I think I even added an Issue that outlines the need for a > full guide to creating your own components. > > > On Feb 5, 2008 11:17 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > > It's getting better and better :) &

Announce new wiki page

2008-02-06 Thread Davor Hrg
Hi, I've created a new example on the wiki http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource2 hope you'll like it :) it is similar to http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource any feedback is welcome :)

Re: [T4] Bug? @For generates hidden controls with same name

2008-02-06 Thread Davor Hrg
I dont know definitely on what the standard is (specialy because browsers choose to implement them how ever they want) but using same name for multiple inputs usualy means array .. php recognizes this if input name edns with "[]" Davor Hrg On Feb 6, 2008 12:27 PM, Richard Hoberm

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Davor Hrg
module methods can be both static and instance methods, you choose ... http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html Davor Hrg On 2/6/08, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: > On Feb 5, 2008 11:19 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > > h

Re: question to building own components and passing parameters

2008-02-06 Thread Davor Hrg
your code looks ok, is it possible that any of the alements is actualy null, how does your java code look like currentProduct and getCurrentProduct ans setCurrentProduct ... Davor Hrg On Feb 6, 2008 5:43 PM, T. Papke <[EMAIL PROTECTED]> wrote: > Hello, > > i want just to get th

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Davor Hrg
No need to concern yourself too much about it... use static or instace as you see fit. speed difference is neglible... Davor Hrg On Feb 6, 2008 9:40 PM, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: > On Feb 6, 2008 11:32 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > ex

Re: T5: HibernateSessionManager and Session

2008-02-07 Thread Davor Hrg
session.beginTransaction(); or manager will throws errors in the log look at the source of the HibernateSessionManager, things will be clearer then ... > In this case session is taken from the manager, the latter is just acting > like Hibernate's transaction, ri

Re: T5: Hibernate and threaded service

2008-02-07 Thread Davor Hrg
you should call ThreadCleanupHub.cleanup() at the each thread you spawn for your self, or tapestry threaded resources will not get cleaned, and youl make a mem leak. tapestry uses ThreadLocal to store threaded services like Session, for example if any part of the code references session(calls a m

Re: T5: Hibernate and threaded service

2008-02-07 Thread Davor Hrg
just added : http://wiki.apache.org/tapestry/Tapestry5HowToRunTaskInThread haven't tested it though :) Davor Hrg On Feb 7, 2008 11:51 AM, Davor Hrg <[EMAIL PROTECTED]> wrote: > you should call ThreadCleanupHub.cleanup() at the > each thread you spawn for your self, or

wiki announce run task in thread

2008-02-07 Thread Davor Hrg
Hi, Ive made an example on how to run a task in a thread. It is simple, I haven't even tested it :D yet http://wiki.apache.org/tapestry/Tapestry5HowToRunTaskInThread anyhow this is how I think i should be properly done any comments are welcom :) Davo

Re: T5: Hibernate and threaded service

2008-02-07 Thread Davor Hrg
I'm debuggin an example like yours, and although I called ThreadCleanupHub.cleanup() the list of listeners is empty... and HibernateSessionManager is not in it something is very wrong Davor Hrg On Feb 7, 2008 9:35 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > you did'nt say if

Re: T5: Hibernate and threaded service

2008-02-07 Thread Davor Hrg
nager is a listener for that and calls commit then. so your changes are writen to the database at the end, not every time you modify something or, am I missing sth ? Davor Hrg On Feb 7, 2008 4:42 PM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi Davor, > > Thanks for your Thre

Re: T5: Hibernate and threaded service

2008-02-08 Thread Davor Hrg
this seems to be a JVM bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5025230 I tried it in Java 6 and code works just fine I'll look into it, an post a jira... also still trying to make a workarround for it Davor Hrg On Feb 8, 2008 1:29 AM, Angelo Chen <[EMAIL PROTECTED

Re: T5: Hibernate and threaded service

2008-02-08 Thread Davor Hrg
uh, oh, it seems I've found a small workarround, not a definitive fix, but the TreadSource works with it.. the wiki is updated http://wiki.apache.org/tapestry/Tapestry5HowToRunTaskInThread Davor Hrg On Feb 8, 2008 12:45 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > this seems t

Re: T5 Localized Select

2008-02-10 Thread Davor Hrg
You have to be aware: @Inject is intended for pages, components... and if your option model is a service then you have to inject services by declaring it in the constructor. Davor Hrg On 2/10/08, Olivier Jacquet <[EMAIL PROTECTED]> wrote: > Hello, > > > I'm trying to b

Re: Howard deserves praise

2008-02-11 Thread Davor Hrg
TROLL !! On Feb 11, 2008 4:24 PM, Emmanuel Sowah <[EMAIL PROTECTED]> wrote: > Hi guys, > > Is it me, or you too have noticed an active participation of Howard in the > answering of questions here on the list in recent > times? > In the past when Tapestry was popular his ego and pompous attitude ma

Re: Howard deserves praise

2008-02-11 Thread Davor Hrg
TROLL !! On Feb 11, 2008 4:41 PM, Udora <[EMAIL PROTECTED]> wrote: > Hi guys, > > Is it me, or you too have noticed an active participation of Howard in the > answering of questions here on the list in recent > times? > In the past when Tapestry was popular his ego and pompous attitude made him >

ThreadCleanupHub removed in T 5.0.11-SNAPSHOT

2008-02-12 Thread Davor Hrg
In case anyone is using ThreadCleanupHub, it is removed in favor of PerthreadManager this was done while fixing problems that bug in java's ThreadLocal caused. Davor Hrg - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: T5: Hibernate and threaded service

2008-02-12 Thread Davor Hrg
this is now fixed for T5.0.11 I've updated wiki to reflect the change. Davor Hrg On Feb 8, 2008 2:55 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > uh, > oh, > > it seems I've found a small workarround, > not a definitive fix, but the TreadSource works with it.. &

Re: T5: Hibernate and threaded service

2008-02-12 Thread Davor Hrg
the 5.09 version. the > strange thing about this bug is, sometimes it works even without that work > around, but just to be sure, I use the work around all the time, will try > that 5.0.11 when it is released. thanks. > > > > Davor Hrg wrote: > > > > this is now fixe

Re: T5: maintaining ASO in a service?

2008-02-13 Thread Davor Hrg
http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2 On Thu, Feb 14, 2008 at 6:32 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > Here is what I use to check if a user has logged in : > > @ApplicationState > private SessionData _user; > private boolean _userExists; > > pub

Re: T5: maintaining ASO in a service?

2008-02-14 Thread Davor Hrg
> if (!_userExists) { > // do something... > } > > > service: > if (!asm.exists(SessionData.class)) { > // do something... > > } > > > Davor Hrg wrote: > > > > http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatc

Re: AbstractMethodException in t5 (5.0.11 snapshot)

2008-02-14 Thread Davor Hrg
template only then component type is read from tag name or t:type. tapestry probably should go back to template def if declared type is abstract, or throw a more understandable error :) Davor Hrg On Thu, Feb 14, 2008 at 9:37 PM, Joachim Van der Auwera <[EMAIL PROTECTED]> wrote: > An

Re: T5: autocomplete and textual input

2008-02-14 Thread Davor Hrg
it is a text field after all, and proposals are only to help reenter existing text. Davor Hrg On Fri, Feb 15, 2008 at 3:27 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > Autocomplete returns a list of values that user can select, if I'd let the > user type

Re: T5: T5.0.10 and Hibernate

2008-02-15 Thread Davor Hrg
"from Call").list(); return new ArrayList(); } if you use grid, I have something for it: http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource2 Davor Hrg On Fri, Feb 15, 2008 at 8:47 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > I have se

Re: T5: autocomplete and textual input

2008-02-15 Thread Davor Hrg
I'm not following you here autocomplete works as expected... at least by me :) Davor Hrg On Fri, Feb 15, 2008 at 8:44 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > yes, i just notice that i can enter text as long as that dropdown not yet > display, this confuses us

Re: T5 How to use javascript to submit a

2008-02-15 Thread Davor Hrg
bj); after that you can inspect formObj from firebug console and see what is it ... Davor Hrg On Fri, Feb 15, 2008 at 9:31 AM, Dapeng <[EMAIL PROTECTED]> wrote: > so now i am using TinyMCE rich text editor > > there is a 'SAVE" plugin for TinyMCE > > > >

Re: T5: grid's css in 5.0.10

2008-02-15 Thread Davor Hrg
no problem you have three classes: id t-first t-last you can target it: .id.t-first.t-last or to target both cases: .id-header, .id.t-first.t-last { width:700px; background:lightgreen} there is a comprehensive resource http://www.w3.org/TR/REC-CSS2/selector.html Davor Hrg On Fri, Feb 15

Re: T5 How to use javascript to submit a

2008-02-15 Thread Davor Hrg
bmit() != false) formObj.submit();//form will be submitted directly so we tested onsubmit manualy Davor Hrg On Fri, Feb 15, 2008 at 9:55 AM, Dapeng <[EMAIL PROTECTED]> wrote: > juz use firebug debugger to stop at the > > formObj.submit() > > i found out that the f

Re: T5.0.10 DateField component broken ???

2008-02-15 Thread Davor Hrg
yes, datefield is changed to apache license compatible one, it has no functions for date formatting, you should use the source from old tapestry to create your own datefield using the previous calendar js Davor Hrg On Fri, Feb 15, 2008 at 11:02 AM, Dapeng <[EMAIL PROTECTED]>

Re: T5.0.10 DateField component broken ???

2008-02-15 Thread Davor Hrg
nal , than just adding the old > DateField class? > Thanks in advance for any replies.. > > > > -Original Message- > From: Davor Hrg [mailto:[EMAIL PROTECTED] > Sent: 15 February 2008 10:31 > To: Tapestry users > Subject: Re: T5.0.10 DateField comp

Re: T5: 5.0.10 exception report has no detail

2008-02-17 Thread Davor Hrg
it's exactly that On Feb 17, 2008 11:20 AM, Chris Poulsen <[EMAIL PROTECTED]> wrote: > Hi, > > Could this be related to the introduction of production mode ? > > I had to add: > > > > tapestry.production-mode >

Re: T5: 5.0.10 exception report has no detail

2008-02-17 Thread Davor Hrg
you can add it as JVM parameter, -Dtapestry.production-mode=false On Feb 17, 2008 12:07 PM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > Got the same issue, not using jetty, but tomcat, where could I add that > production mode setting? thanks, > a.c. > > Chris Poulsen wrote: > > > > Hi, > >

Re: T5: 5.0.10 new features

2008-02-17 Thread Davor Hrg
it is a resolution of these issues https://issues.apache.org/jira/browse/TAPESTRY-2053 https://issues.apache.org/jira/browse/TAPESTRY-1518 you have samples there On Feb 17, 2008 12:55 PM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm looking at 5.0.10 new features, following are some t

Re: T5: 5.0.10 exception report has no detail

2008-02-17 Thread Davor Hrg
on-mode=true? > > > On 17/02/2008, at 10:47 PM, Geoff Callender wrote: > > > I like it - I think it's the right default. Just need to make sure > > everyone's aware of it. > > > > Geoff > > > > On 17/02/2008, at 9:58 PM, Davor Hrg wrote: > &

Re: T5: 5.0.10 new features

2008-02-17 Thread Davor Hrg
<[EMAIL PROTECTED]> wrote: > > Hi Davor, > > Looks good although I have no idea yet how to use this feature, thanks. > > A.C. > > Davor Hrg wrote: > > > > it is a resolution of these issues > > > > https://issues.apache.org/jira/browse/TAPESTRY-2053 &

Re: T5: 5.0.10 exception report has no detail

2008-02-17 Thread Davor Hrg
yes :) either that, or pass the value to your ExceptionReporter and have customized page for both dev and production :) Davor Hrg On Feb 17, 2008 2:49 PM, Geoff Callender <[EMAIL PROTECTED]> wrote: > So you're suggesting that I test the value of the system property > tapestry.p

Re: T5: 5.0.10 new features

2008-02-17 Thread Davor Hrg
:) of course... but still this way it is implemented in base class, and later with generics improvements, can be replaced with more elegant one :) Davor Hrg On Feb 17, 2008 10:05 PM, Thiago HP <[EMAIL PROTECTED]> wrote: > On 2/17/08, Davor Hrg <[EMAIL PROTECTED]> wrote: > >

Re: T5: 5.0.10 new features

2008-02-17 Thread Davor Hrg
... there will definitely have to be a chapter on generics on the doc's because some nice usage patterns can be acheived, but not without being aware of the traps. Davor Hrg On Feb 17, 2008 9:35 PM, Thiago HP <[EMAIL PROTECTED]> wrote: > Hi, everybody! > > This generics support in

Re: Event bubbling

2008-02-18 Thread Davor Hrg
the event type is intact, but the source changes onSubmitFromA onSubmitFromB onActionFromA onActionFromB On Feb 18, 2008 10:26 AM, Steph <[EMAIL PROTECTED]> wrote: > Thanks Howard, > But if my event from A is seen as "FromB" in component C, all events > from components B are melted and one can'

Re: Event bubbling

2008-02-18 Thread Davor Hrg
please say more about your use case, maybe a different approach can help :) Davor Hrg On Feb 18, 2008 10:47 AM, Steph <[EMAIL PROTECTED]> wrote: > Thanks Davor for the explanation. > I understand the event type is intact but can you confirm me that i > can't make a distinc

Re: DateField localization

2008-02-18 Thread Davor Hrg
date field format parameter is working for 5.0.9 however, changing to a apache license compatible calendar made that parameter temporarily unavailable in 5.0.10 browse mailing list archives for format examples On Feb 18, 2008 10:53 AM, Steph <[EMAIL PROTECTED]> wrote: > How do we set the format o

Re: T5: 5.0.10 exception report has no detail

2008-02-18 Thread Davor Hrg
> org.apache.tapestry.ioc.internal.RegistryImpl.(RegistryImpl.java: > 174) > > Geoff > > > On 18/02/2008, at 2:00 AM, Davor Hrg wrote: > > > yes :) > > > > either that, > > or pass the value to your ExceptionReporter > > and have customized page

Re: How to change the CSS styles in BeanDisplay

2008-02-18 Thread Davor Hrg
maybe this : DIV.t-beandisplay-row { text-align: center; color: black; font-family: arial } On Feb 18, 2008 1:10 PM, LakshithaS <[EMAIL PROTECTED]> wrote: > > Dear All, > Currently I'm developing a web application using tapestry 5 and wanna know > some technical stuff about components.

Re: Firefox/Eclipse plugin for Tapestry

2008-02-18 Thread Davor Hrg
automaticaly apply to the written code... but you can try out css using firebug, and copy/paste final result back to your code. Davor Hrg On Feb 18, 2008 12:29 PM, <[EMAIL PROTECTED]> wrote: > I have just had the idea of combining Firefox plugins with Eclipse plugins in > order to increase

Re: T5: 5.0.10 exception report has no detail

2008-02-18 Thread Davor Hrg
ionHandler > is matched by 2 services: MyRequestExceptionHandler, > RequestExceptionHandler. Automatic dependency resolution requires > that exactly one service implement the interface. > > > > > On 18/02/2008, at 9:51 PM, Davor Hrg wrote: > > > binder.bind(RequestExceptionHa

Re: T5: 5.0.10 exception report has no detail

2008-02-18 Thread Davor Hrg
Alias, http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html or decorate http://wiki.apache.org/tapestry/Tapestry5HowToDecorateService http://tapestry.apache.org/tapestry5/tapestry-ioc/decorator.html Davor hrg On Feb 18, 2008 2:34 PM, Geoff Callender <[EMAIL PROTECTED]>

Re: Firefox/Eclipse plugin for Tapestry

2008-02-18 Thread Davor Hrg
how much javascript is there for it to work? could you print it raw directly into template ? I'm very much interested in getting eclipse jump to error I click on tapestry error page... Davor Hrg On Feb 18, 2008 2:43 PM, Andreas Andreou <[EMAIL PROTECTED]> wrote: > I have this for

Re: Can a page do something before actions are invoked on it?

2008-02-18 Thread Davor Hrg
,components,base,mixins you'll get the hang of it while using tapestry Davor Hrg On Feb 18, 2008 9:35 PM, ryanskow <[EMAIL PROTECTED]> wrote: > > Ok, this apparently is not the right way to do things... > > ryanskow wrote: > > > > @ApplictionState > > priv

Re: T5: 5.0.10 exception report has no detail

2008-02-19 Thread Davor Hrg
you can get it as symbol contributeAliasOverrides( @InjectService("MyRequestExceptionHandler") RequestExceptionHandler myHandler, @Inject @Symbol(TapestryConstants.PRODUCTION_MODE_SYMBOL) boolean productionMode, Configuration configuration) { then pass it to the service

Re: t5components InPlaceEditor for GridData

2008-02-19 Thread Davor Hrg
to get you started I can give you a hint, ... no time to try it out my self :) make your own simple component to wrap value look at org.apache.tapestry.corelib.base.AbstractField it uses @Environmental private PageRenderSupport _pageRenderSupport; to generate unique id final void se

Re: t5: threaded service continues ?

2008-02-19 Thread Davor Hrg
it will, but it doesn't hurt to try it out, so you'll be convinced beyond any doubt :) Davor Hrg On Feb 19, 2008 11:42 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > In a page i started a threaded service which will take a long time to > finish(appen

Re: form aware page and action links

2008-02-19 Thread Davor Hrg
more details please, what version of tapestry are you using ? T4 ? T5 ? you can not combine link and form submit trivially... Davor Hrg On Feb 19, 2008 11:26 AM, Joachim Van der Auwera <[EMAIL PROTECTED]> wrote: > Hi, > > I am writing some stuff to edit data, and this includes

Re: form aware page and action links

2008-02-19 Thread Davor Hrg
n der Auwera <[EMAIL PROTECTED]> wrote: > Davor Hrg wrote: > > more details please, > > what version of tapestry are you using ? T4 ? T5 ? > > > > you can not combine link and form submit trivially... > > > Oops, latest version of t5. > I already had th

Re: T5: 5.0.10 exception report has no detail

2008-02-19 Thread Davor Hrg
_pageCache = pageCache; > _renderer = renderer; > _logger = logger; > _productionMode = productionMode; > } > > ...and the rest just works. > > Cheers, > > Geoff > > > On 19/02/2008, at 10:06 PM, Davor Hrg w

Re: T5 5.0.10: ComponentResources.createActionLink broke after upgrade from 5.0.6 to 5.0.10

2008-02-19 Thread Davor Hrg
quick guess are you returning any null values in onPassivate ? Davor Hrg On Feb 19, 2008 8:35 PM, jeffrey ai <[EMAIL PROTECTED]> wrote: > > Hi All, > > I am experiencing a error of using "ComponentResources.createActionLink" > after upgrade from 5.0.6 to 5.

Re: Another example of Select with Objects

2008-02-19 Thread Davor Hrg
generic info from the field... some code for that can be found here: https://issues.apache.org/jira/browse/TAPESTRY-2053 ... or just skip resolving idFieldAdapter because you don't actualy need it when list is empty Davor Hrg On Feb 19, 2008 8:16 PM, Marcelo Lotif <[EMAIL PROTECTED]> wrot

Re: What does "Render time" hidden in comment actually mean?

2008-02-19 Thread Davor Hrg
use http://www.wireshark.org/ to get accurate result for whole request Davor Hrg On Feb 20, 2008 4:41 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > It's just the time to render the page; a very rough guideline. Use > Firebug if you want even close to accurate information

Re: Another example of Select with Objects

2008-02-19 Thread Davor Hrg
SelectionModelWorker(PropertyAccess propertyAccess) _propertyAccess = propertyAccess; } transformation.injectField(accessActualName, _propertyAccess); Davor Hrg On Feb 20, 2008 1:30 AM, Marcelo Lotif <[EMAIL PROTECTED]> wrote: > Yeah, i know about that > > What i tried to do

Re: T5: how to use Hibernate properly?

2008-02-19 Thread Davor Hrg
also, don't persist hibernate entities, persist keys only On Feb 20, 2008 3:01 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > What is the proper way of using hibernate in T5? is following list correct? > > 1. Don't commit, let Tapestry-Hibernate take care of that. > 2. Commit only if yo

Re: T5: how to use Hibernate properly?

2008-02-20 Thread Davor Hrg
hibernate's second level cache and not try to hold on to loaded objects for speed. I tried all those wrong ways of working with hibernate ... and belive me it is no fun at all :D Davor Hrg On Feb 20, 2008 9:14 AM, Chris Lewis <[EMAIL PROTECTED]> wrote: > This is a great list

Re: T5 5.0.10: ComponentResources.createActionLink broke after upgrade from 5.0.6 to 5.0.10

2008-02-20 Thread Davor Hrg
rs request, and any hibernate session will be the same for onActionFromLink1 and for onLink2 Davor Hrg On Feb 20, 2008 6:40 PM, jeffrey ai <[EMAIL PROTECTED]> wrote: > > Sorry, I don't quite get how is that related. > In this case, I am not using onActivate and onPassivate at all

Re: T5 5.0.10: ComponentResources.createActionLink broke after upgrade from 5.0.6 to 5.0.10

2008-02-20 Thread Davor Hrg
plese post a JIRA issue On Feb 20, 2008 10:04 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > this looks like a bug... > > to go arround it you can call: > private void onActionFromLink1() > { > // Some Business logic >

  1   2   3   4   5   >