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

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

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: 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: 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
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: 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] 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: 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: 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: 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.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: 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: 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: 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: 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-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 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: 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: 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: 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: 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: 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: 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-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 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 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: 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.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: [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: 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: 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

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

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: 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] 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: T5: var: in 5.0.8

2008-01-07 Thread Davor Hrg
cluttering" your code , someone on the list has a solution that can add them on the fly via annotation hope I'm making sense... Davor Hrg On Jan 7, 2008 8:07 PM, Chris Lewis <[EMAIL PROTECTED]> wrote: > I like the new var: prefix for temp variables, although I can't

Re: simplere way to access context path ?

2008-01-07 Thread Davor Hrg
asset is only for static assets, not for url you can inject ComponentResources and call createLink to get link string Davor Hrg On Jan 7, 2008 12:07 PM, Mohammad Shamsi <[EMAIL PROTECTED]> wrote: > how about creating url ? > i got error when putting this cod

Re: T5 and Acegi

2008-01-06 Thread Davor Hrg
AdminPage { } end quote--- search mailing list for some discussions, they might be helpful Davor Hrg On Jan 7, 2008 8:06 AM, Joshua Jackson <[EMAIL PROTECTED]> wrote: > Dear all, > > Has anyone integrated T5 with Acegi alr

Re: T5 How to bypass TapestryFilter?

2008-01-06 Thread Davor Hrg
there are few ways.. one is to extend tapestryFilter and use that version in web.xml Davor Hrg On Jan 7, 2008 6:21 AM, Dapeng <[EMAIL PROTECTED]> wrote: > Hi guys > > I have a protected folder /private under the root > > but inside the folder i am only going to serve

Re: How to create PERTHREAD_SCOPE object?

2008-01-03 Thread Davor Hrg
in the log somewhere Davor Hrg On Jan 3, 2008 10:49 AM, Donyee <[EMAIL PROTECTED]> wrote: > I want to create a new object per request, and my code is like: > > @Scope(IOCConstants.PERTHREAD_SCOPE) > public Encoder buildEncoder() { >

Re: T5: createActionLink, delimiter ":" and "."

2007-12-27 Thread Davor Hrg
while speaking of ActionLink... is there a strong reason why action name is not parametrized ? default value should be of course "action" Davor Hrg On Dec 28, 2007 8:00 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Your method is named incorrectly. It should be onSend()

Re: T5: Tapestry 5.07 released?

2007-12-26 Thread Davor Hrg
5.0.7 release is currently under vote On Dec 25, 2007 1:16 AM, Michael Lake <[EMAIL PROTECTED]> wrote: > > I believe 5.0.7-SNAPSHOT is available the tapestry maven repository. > > if you're using maven, all you need to do is add the repository and to > your .m2/settings.xml > or the pom of the pro

Re: Example code of T5?

2007-12-21 Thread Davor Hrg
http://files.doublenegative.com.au/jumpstart/ On Dec 21, 2007 2:15 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > http://wiki.apache.org/tapestry/Tapestry5HowTos > > On Dec 21, 2007 2:08 PM, Yeeswara Nadapana (HCL Financial Services) > > <[EMAIL PROTECTED]> wrote: > &

Re: Example code of T5?

2007-12-21 Thread Davor Hrg
http://wiki.apache.org/tapestry/Tapestry5HowTos On Dec 21, 2007 2:08 PM, Yeeswara Nadapana (HCL Financial Services) <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Can I get any downloads of the example code on Tapestry 5? Please help > me with some links > > > > DISCLAIMER: > -

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-21 Thread Davor Hrg
sound ok, looking forward to trying it :) Davor Hrg On Dec 21, 2007 10:25 AM, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: > its getting really interesting > > Josh+Davor: your're right "flash" should as well be part of the > conversation c

Re: T5: best approach in testing a service

2007-12-21 Thread Davor Hrg
then you should definitely checkout tapestry sorce and look at the tests there :) Davor Hrg On Dec 21, 2007 10:12 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi Davor, > > yes, i have read the doc, i still have to try the samples. in the service > that I'd like to

Re: T5: best approach in testing a service

2007-12-21 Thread Davor Hrg
I've recently posted two examples off running tapestry-ioc on it's own http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate look there on how to start tapestry-ioc with only the things you need. Davor Hrg On Dec 21, 20

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-20 Thread Davor Hrg
citly state @Persist("session") Davor Hrg On Dec 20, 2007 7:03 PM, Josh Canfield <[EMAIL PROTECTED]> wrote: > Hello, > > I think Flash persistence would also want to be in the context of the > conversation, otherwise couldn't messages show up in the second win

Re: [T5] overriding persistence strategy of all fields to conversation strategy

2007-12-20 Thread Davor Hrg
these are just my thoughts on the subject, I haven't really looked deeper into persistence strategies... Davor Hrg On Dec 20, 2007 9:20 AM, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: > hi filip, > > @Meta("tapestry.persistence-strategy=conversation") only wor

Re: Using in Tapestry 5

2007-12-19 Thread Davor Hrg
look for keyword SELECT on http://wiki.apache.org/tapestry/Tapestry5HowTos On Dec 19, 2007 8:55 AM, Francois Armand <[EMAIL PROTECTED]> wrote: > Yeeswara Nadapana (HCL Financial Services) wrote: > > Hi, > > > Hello Yeeswara, > > Can anyone > > please explain me the procedure to add a box to my f

Re: [T5] How to format java.lang.Date when using expansion

2007-12-17 Thread Davor Hrg
you could add you own binding prefix ${date:lastLoginDate} or ${date:lastLoginDate} http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix Davor Hrg On Dec 13, 2007 7:17 AM, Liu Dapeng <[EMAIL PROTECTED]> wrote: > hi guys > > i am using expansion to output a D

[T5] announce Tapestry5Howtos addition

2007-12-11 Thread Davor Hrg
There are two more articles now available on http://wiki.apache.org/tapestry/Tapestry5HowTos both are about using tapestry-ioc without the web part http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate Davor Hrg

Re: T5: Tapestry-hibernate and console app

2007-12-10 Thread Davor Hrg
the sample app, tapestry-ioc only console app is ready http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly I'll make a version that also uses tapestry-hibernate when I catch some more time for it. Davor Hrg On Dec 10, 2007 12:22 AM, Davor Hrg <[EMAIL PROTECTED]> wrote: > i

Re: T5: Tapestry-hibernate and console app

2007-12-09 Thread Davor Hrg
it's 00:20 here... I'll make a simple app in the morning Davor Hrg On Dec 10, 2007 12:16 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi Davor, > > That's even better, my #3 is asking for a sample project, now let's say, > just a very simple one

Re: T5: Tapestry-hibernate and console app

2007-12-09 Thread Davor Hrg
y the user, that will be a great help to understand this > > non-web T5 app. > > Thanks, > > A.C. > > > Davor Hrg wrote: > > > > Hi, > > > > if you don't need tapestry web part, > > or in other words if you just want tapestry-ioc > >

Re: T5: Tapestry-hibernate and console app

2007-12-09 Thread Davor Hrg
the registry ready... you can call registry.getService(YourService.class) te get any servise you need hope this helps... Davor Hrg On Dec 8, 2007 3:51 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > Tapestry-hibernate works very well in my t5 app, now I have need

Re: T5 How to write a layout component ?

2007-12-07 Thread Davor Hrg
where's your start.tml located ? Davor Hrg On Dec 7, 2007 5:07 AM, Dapeng <[EMAIL PROTECTED]> wrote: > Hi > > First time try T5 > > i followed the link > http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html > > > > > > http:

Re: Nightly docs fixed - and some general notes

2007-12-05 Thread Davor Hrg
There are definitely frustrations around maven, ... I just keep hoping it will get better before we give up on it :) Davor Hrg On Dec 4, 2007 5:46 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > The nightly docs are now fixed. > > My hatred of Maven is growing quickly.

Re: Web services and Tapestry 5 IoC

2007-12-05 Thread Davor Hrg
ke it better is welcom :) no matter what lib you use for web services, the easiest integration is to put it in the same context, and share reference via servletContext... Davor Hrg On Dec 5, 2007 9:48 AM, Peter Stavrinides < [EMAIL PROTECTED]> wrote: > Hi all, > > Is there

Re: T5: "conditional parameter binding" or something

2007-12-05 Thread Davor Hrg
that should be displayed. model when asked for items should return only those that are visible, this way your View component can handle paging without being aware of the filter applied to the data. Davor Hrg On Dec 4, 2007 6:42 PM, Britske <[EMAIL PROTECTED]> wrote: > > I quickly solved it

Re: T5: problem in web.xml

2007-12-04 Thread Davor Hrg
_delegate.init(filterConfig); } } modify the doFilter method to skip problematic paths Davor Hrg On Dec 4, 2007 12:44 PM, Ritesh.S <[EMAIL PROTECTED]> wrote: > > > Hello Davor, > Thanks for your reply. I am giving stack trace below and problematic url. > > Foll

Re: T5: Tapestry message localization, java.util.Formatter vs. java.text.MessageFormat

2007-12-04 Thread Davor Hrg
where possible this way both implementations can live side by side. Davor Hrg On Aug 17, 2007 7:53 PM, Doug Hauge <[EMAIL PROTECTED]> wrote: > Is there some reason Tapestry chose to use 'java.util.Formatter' style > formatting as opposed to 'java.text.MessageFormat

Re: T5: problem in web.xml

2007-12-04 Thread Davor Hrg
could you post stack trace, and problematic url ? Davor Hrg On Dec 4, 2007 11:18 AM, Ritesh.S <[EMAIL PROTECTED]> wrote: > > Hello everybody, > > I am new to tapestry and I am using Tapestry core 5.0.5. > I integrated Tapestry 5 with spring and hibernate. > > I

Re: [T5] Got the ioc working in a test with tapestry-hibernate

2007-12-03 Thread Davor Hrg
you shold also call registry.performRegistryStartup(); after Registry registry = builder.build(); in the end just call : registry.shutdown(); Davor Hrg On Jun 14, 2007 4:01 PM, Dan Adams <[EMAIL PROTECTED]> wrote: > So I have some test cases in which I actually need

Re: T5: Map and persistency

2007-12-02 Thread Davor Hrg
please post some more code, I'm also unable to comprehend what the problem is ? Davor Hrg On Dec 2, 2007 5:08 PM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > no, the getCountryList is a service that I put a log, the log displays > that > the method was called only onc

Re: [T5] Cannot persist field exception

2007-11-21 Thread Davor Hrg
full stack trace ? On Nov 21, 2007 10:17 PM, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > Is there anyone that can help with this problem? Thanks > > > -Original Message- > > From: Jean-Philippe Steinmetz [mailto:[EMAIL PROTECTED] > > Sent: Friday, November 16, 2007 1:36 PM > > T

Re: T5: expression language

2007-11-16 Thread Davor Hrg
aying with it I was more satisfied with OGNL, and MVEL crashed on some simple examples when byte code optimizer was turned on for it. Davor Hrg On Nov 16, 2007 10:06 PM, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > You can know the type in advance by calling > OgnlContext.getCurrentT

Re: T5: expression language

2007-11-16 Thread Davor Hrg
of course, youll need the dependancy in your pom: ognl ognl 2.6.9 On Nov 16, 2007 8:42 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > ognl can be easily added as a binding prefix, > however expect some features to not work > because tapestry in

Re: T5: expression language

2007-11-16 Thread Davor Hrg
ognl can be easily added as a binding prefix, however expect some features to not work because tapestry in some occasions needs to know in advance type that the expression will return (and this is statically, when bindings are prepared) I think I saw that ognl has methods that calculate return typ

Re: [T5.0.6] Is coercion MANDATORY for custom parameter classes?

2007-11-16 Thread Davor Hrg
you must move any class that is not page or componenta from base, components, pages packages they get enhanced and those exceptions occur http://wiki.apache.org/tapestry/Tapestry5HowToNotMakeCustomComponent Davor Hrg On Nov 16, 2007 5:57 PM, César Lesc <[EMAIL PROTECTED]> wrote: >

Re: Feedback wanted on IoC documentation

2007-11-09 Thread Davor Hrg
in of command: http://tapestry.formos.com/nightly/tapestry5/tapestry-ioc/command.html so people can read that page for details. Davor Hrg On Nov 9, 2007 7:52 PM, Ben Acker < [EMAIL PROTECTED]> wrote: > Looks good, but having it split into linkable sections would be useful if > fol

Re: Antwort: T5: 'wrapping' hibernate DAOs as services

2007-10-29 Thread Davor Hrg
session is just interface, the instance you get is a proxy, which redirects each method call to the instance in current thread. Davor Hrg On 10/29/07, Chris Lewis <[EMAIL PROTECTED]> wrote: > > Sorry, this just sounds to magical. My DAO explicitly takes a Session - > org.hibernat

Re: Antwort: T5: 'wrapping' hibernate DAOs as services

2007-10-29 Thread Davor Hrg
yes, that's right, that proxy will handle PER_THREAD scope Hrg Davor On 10/29/07, Chris Lewis <[EMAIL PROTECTED]> wrote: > > Kris, > > My DAOs are ignorant of Tapestry - I have no @Inject annotations in > them. Instead they receive the Session object in the constructor, so > technically they do

Re: How do I get parameter from URL in Tapestry 5 ?

2007-10-28 Thread Davor Hrg
no need to change your pom, just remove the import statement, and import the Inject annottation from tapestry ioc Eclipse: CTRL+SHIFT+O Davor Hrg On 10/28/07, James Lin <[EMAIL PROTECTED]> wrote: > > dear all: > > I have read one sample from Tapestry website > http://wik

Re: T5: inject ComponentResources in a service

2007-10-26 Thread Davor Hrg
Thats, just it:) make a component, not a function ... you'll copy pasete your function arround and iject component resources in each page that uses it, look at the ActionLink source and create an ExternalLink from it :) Davor Hrg On 10/26/07, Angelo Chen <[EMAIL PROTECTED]> wrote: &g

Re: T5: inject ComponentResources in a service

2007-10-26 Thread Davor Hrg
Thanks, now when there is only one parameter in the constructor, it > works: > >> > >> public MyServicesImp(ApplicationGlobals globals) { > >> this.globals = globals; > >> } > >> > >> but if I have this: > >> > >>

Re: T5: inject ComponentResources in a service

2007-10-26 Thread Davor Hrg
f the components you call your service how would tapestry know for which of the dozen components you need the ComponentResources ? that's what I can tell you for now... Davor Hrg On 10/26/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > hi davor, > > correction, the pro

Re: T5: inject ComponentResources in a service

2007-10-26 Thread Davor Hrg
service do not get enhanced like pages do, services get dependacies through constructor... http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html Davor Hrg On 10/26/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi, > > I injected ComponentResources in a servic

Re: T5: file uploader

2007-10-21 Thread Davor Hrg
just ad it to your pom.xml org.apache.tapestry tapestry-upload ${tapestry-release-version} Hrg davor On 10/21/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi, > > where can I find tapestry-upload jar files? any sample code how to use it > it? Thanks. > A.C. > -- >

Re: T5 Desired complex community components

2007-10-18 Thread Davor Hrg
ing it out is waiting on first parts AJAX support to enter tapestry to maybe add some value from it. Davor Hrg On 10/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello ! > > > I was wondering what kind of components people are looking for that > > are not ye

Re: [T5] Recommended naming of configurations

2007-10-17 Thread Davor Hrg
ning in the log) Davor Hrg On 10/18/07, Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > > Em Sun, 14 Oct 2007 12:40:38 -0300, Howard Lewis Ship <[EMAIL PROTECTED]> > escreveu: > > > This is heading a bit backwards from my initial goals, of naming >

Re: T5: PropertyAccess service not injecting?

2007-10-17 Thread Davor Hrg
yes, it should be @Inject private PropertyAccess _access; I've corrected the wiki ... Hrg On 10/18/07, lasitha <[EMAIL PROTECTED]> wrote: > > Christian, i haven't tested this, but i did notice the line at the top > of the wiki page seems incorrect: > @Inject PropertyAccess _access; > > AFAIK,

Re: Using row param in grid

2007-10-17 Thread Davor Hrg
ut the row= tells the grid where you want to store the current value which is where grid writes data. I'm not explaining this very well, but "binding" is a basic tapestry concept. Davor Hrg On 10/17/07, Heck, Bob <[EMAIL PROTECTED]> wrote: > > I have a .page that returns

Re: T5: Tapestry, Hibernate and Underscores.

2007-10-14 Thread Davor Hrg
maybe you missed the point here, never mind the reason I use the _ prefix .. the problem was with hibernate, not with tapestry Davor Hrg On 10/15/07, Christian Gruber <[EMAIL PROTECTED]> wrote: > > Tapestry doesn't require _ prefixes, mind you. That's a Howa

Re: how to use ioc of t5 ?

2007-10-14 Thread Davor Hrg
and gives your DAO to who requires it. So yes ... use IOC why would you code more plumbing code when IOC can do it for you, and it does it very well. I hope I'm making sense ... :) Davor Hrg On 10/13/07, MavenMan <[EMAIL PROTECTED]> wrote: > > > thanks . you are a cap

Re: T5: Tapestry, Hibernate and Underscores.

2007-10-14 Thread Davor Hrg
tter and see it as id when "get" is stripped !Beware. if you put annotations both on fields and getters hibernate will loose some of them I'll find some time and fix the code to adopt one convention Davor Hrg On 10/13/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > &

Re: T5: the relation of pojo

2007-10-12 Thread Davor Hrg
Davor Hrg On 10/12/07, MavenMan <[EMAIL PROTECTED]> wrote: > > > > I have find the docmentent about hibernate . > but I still think you are a impatient guy . > > > > lasitha wrote: > > > > MavenMan, > > > > Please do your own homework - m

Re: how to use ioc of t5 ?

2007-10-12 Thread Davor Hrg
you must not put your dao objects into pages or components packages... http://wiki.apache.org/tapestry/Tapestry5HowToNotMakeCustomComponent last section move your DAO into another package, yourApp.entities or sth.. Davor Hrg On 10/12/07, MavenMan <[EMAIL PROTECTED]> wrote: > > &

Re: tapestry hibernate problem

2007-10-03 Thread Davor Hrg
hange the above code to persist Cutomer.id and fetch the customer using the session in each request... Davor Hrg On 10/3/07, T. Papke <[EMAIL PROTECTED]> wrote: > > Hi, > > i have tried the tapestry-hibernate package to handle my hibernate > sessions. I have setup the pa

Re: T5: Upgrade to 5.0.6-SNAPSHOT

2007-09-27 Thread Davor Hrg
I think that quickstart hasn't changed since 5.0.5 maybe 5.0.5 is good enough for now ? after that you can change pom.xml to use 5.0.6-SNAPSHOT easily Davor Hrg On 9/27/07, Marcus <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm trying to create a new application u

Re: [T5] more tutorials or sample projects?

2007-09-26 Thread Davor Hrg
you can avoid test casses hassle by calling: mvn -Dmaven.test.skip install Davor Hrg On 9/22/07, Robert A. Decker <[EMAIL PROTECTED]> wrote: > > Ok, so I checked out the tapestry trunk with subversion, then cd'd > into the directory and ran 'mvn install'. It seems

<    1   2   3   4   5   >