Re: Problem With Application Behind Apache

2006-04-17 Thread Pablo Ruggia
r.xml file tells your webapp what the actual server name is. On the > proxy Connector set proxyName="your server name". > > -Original Message- > From: Pablo Ruggia [mailto:[EMAIL PROTECTED] > Sent: Monday, April 17, 2006 3:13 PM > To: Tapestry users > Subje

Problem With Application Behind Apache

2006-04-17 Thread Pablo Ruggia
Hi !! My application works fine if I access it directly from tomcat. But if I put it behind an apache, it gets the wrong urls when linking a page, it doesn't use the domain name, it uses the tomcat net direction. How can I change the base url so that tapestry uses this instead of the tomcat directi

Re: Re: Hyperlinsk within InsertText

2006-03-27 Thread Pablo Ruggia
I don't know if I understand very well what you are trying to do, but can't you use the InsertText component with raw="true" and insert an "a" html element inside your text ? http://jakarta.apache.org/tapestry/tapestry/ComponentReference/InsertText.html On 3/27/06, Detlef Schulze <[EMAIL PROTECTE

Re: How to improve Tapestry

2006-03-03 Thread Pablo Ruggia
One year ago I've posted a solution to load your template from a database, or generate it dynamically in Tapestry 3. I think that it wouldn't be too different in T4. When I say "dynamic", I only mean only once, because of the page pooling thing. You can do a good abstraction to create your template

Re: components and stylesheets

2006-02-27 Thread Pablo Ruggia
Sorry Anthony, I've totally misread your mail. Forget about my last mail. On 2/27/06, Pablo Ruggia <[EMAIL PROTECTED]> wrote: > > I like the Idea. > Just two little tweaks. Instead of managing lists, I would prefer create > some abstraction like a "Theme" that

Re: components and stylesheets

2006-02-27 Thread Pablo Ruggia
I like the Idea. Just two little tweaks. Instead of managing lists, I would prefer create some abstraction like a "Theme" that knows wich stylesheets to include. Second, passing from page to page the Theme would be too expensive (in terms of programmers brain). You should store it in the session, s

Re: Page rediraction problem

2006-02-26 Thread Pablo Ruggia
You can change the current page in other ways. For example, returning the page name in your listener method, or an IPage object. But if you have to stop the current request lifecycle and go to another page (for example because of a security issue) then you throw that exception. You don't want to re

Re: New user/HelloWorld Application - Cannot get jwcid="insertSomeText to work

2006-02-25 Thread Pablo Ruggia
When you create your Run Configuration for your project, there is an option named "webapp root dir:", seems that you did not fill that textbox, you have to select "context", so jetty knows where your context directory for your application is located. On 2/25/06, Calvin Deiterich <[EMAIL PROTECTED]

Re: Application slowing down

2005-08-22 Thread Pablo Ruggia
Sorry, where says "you can keep" is "you can't keep" On 8/22/05, Pablo Ruggia <[EMAIL PROTECTED]> wrote: > > Jesse's advice won't work with hibernate long session pattern. > > With long session pattern, you have to use one session per applica

Re: Application slowing down

2005-08-22 Thread Pablo Ruggia
Jesse's advice won't work with hibernate long session pattern. With long session pattern, you have to use one session per application transaction, you can keep one session forever. You have to close your session and open a new one in every place you can do it. On 8/22/05, Paul Cantrell <[EMAIL

Re: Struts to Tapestry: one to go.

2005-08-17 Thread Pablo Ruggia
It's a hard thing. Also, you are not telling how big is your application (if you can do it in two weeks, then there is no problem, let's do it). In my experience, migrating applications only because "it will be nice to have it in Tapestry" is not a good idea. It will cost money, so you have to

Re: Validating a DatePicker

2005-08-15 Thread Pablo Ruggia
I've found it: http://www.clever.co.nz/resources.html On 8/15/05, Pablo Ruggia <[EMAIL PROTECTED]> wrote: > > There is already one ValidDatePicker (don't remember where). It's already > a mix between validfield and datepicker. But it's behaviour is the same

Re: Validating a DatePicker

2005-08-15 Thread Pablo Ruggia
There is already one ValidDatePicker (don't remember where). It's already a mix between validfield and datepicker. But it's behaviour is the same, if user enters a bad formatted date, it will transform it to null. I think you can download ValidDatePicker and then edit this to generate a validat

Re: Hibernate Long term session

2005-08-08 Thread Pablo Ruggia
Having many sessions for one user won't work well with long session pattern. What session you connect and disconnect ?? You will be having LazyInitializationExceptions everewhere. On 8/8/05, Lukáš Kolísko <[EMAIL PROTECTED]> wrote: > > Your solution is thread safe. I was thinking about ThreadLo

Re: PageBeginRender question

2005-08-08 Thread Pablo Ruggia
pageBeginRender is called not only before creation. It get's called before any rendering (also before it starts rewinding). On 8/8/05, Chris Chiappone <[EMAIL PROTECTED]> wrote: > > It is true that the pageBeginRender method always gets called on page > creation correct? The reason I'm asking is

Re: Creating forms dynamically

2005-08-08 Thread Pablo Ruggia
You have two alternatives: 1) Generate your templates dinamically (http://tinyurl.com/dnb3w). 2) Create some components that creates inputs programatically (i know it can be done, but not how). On 8/8/05, Clark, Stephen <[EMAIL PROTECTED]> wrote: > > Hi > > I am workin

Re: Hibernate Long term session

2005-08-08 Thread Pablo Ruggia
session from user session > > > > super.setupForRequest(context); > > } > > > > protected void cleanupAfterRequest(IRequestCycle cycle) { > > super.cleanupAfterRequest(cycle); > > //Set hibernate long term session to user session ... > > sem

Re: Hibernate Long term session

2005-08-07 Thread Pablo Ruggia
ser session ... > semaphore.release(); > } > I am really not sure about these things. > > I need to prevent race conditions globaly and serialize requests from > user on his session. > > On 8/7/05, Pablo Ruggia <[EMAIL PROTECTED]> wrote: > > The answer is no, you can

Re: Hibernate Long term session

2005-08-07 Thread Pablo Ruggia
The answer is no, you can not make session threadsafe when a user submits twice, there will be two threads accesing the same hibernate session, wich is not threadsafe. But you can avoid users submitting twice, using Synchronizer Token Pattern ( http://www.javaworld.com/javaworld/javatips/jw-javat

Re: Can I get the appname from anywhere?

2005-08-03 Thread Pablo Ruggia
On 8/4/05, Alan Chandler <[EMAIL PROTECTED]> wrote: > > On Thursday 04 August 2005 02:30, Pablo Ruggia wrote: > > You can create a Boder component that receives as a parameter the menu, > so > > you can change the menu between applications and also in the same > >

Re: Can I get the appname from anywhere?

2005-08-03 Thread Pablo Ruggia
You can create a Boder component that receives as a parameter the menu, so you can change the menu between applications and also in the same application too. On 8/3/05, Geoff Longman <[EMAIL PROTECTED]> wrote: > > Alan, > > From the page: > > getEngine().getApplicationSpecification().getName(

Benefits of sessionless applications

2005-07-28 Thread Pablo Ruggia
Hi ! I was wondering if you could point me to some good articles that explains the benefits of using no sesions and persist all things in the client side. Perhaps some comparitions of times between an application with heavily server side state use, and one with client side state. I don't unders

Re: Tapestry and Hibernate

2005-07-28 Thread Pablo Ruggia
session is closed or disconnected. If you are in a deathline, you can put "lazy=false" in all your mapping classes and in all your collections mappings. It'will work like a charm. But it's not a good decision if you care about performance. On 7/28/05, Pablo Ruggia <[EMAIL P

Re: Tapestry and Hibernate

2005-07-28 Thread Pablo Ruggia
I've wrote a little article on some solutions at http://pruggia.blogspot.com On 7/28/05, Chris Chiappone <[EMAIL PROTECTED]> wrote: > > I have been developing an application using tapestry 3.0.3 and > hibernate 3.0.2. Took a while to get everything working correctly, > and learning both of the fr

Re: weird problem, link sometimes no response.

2005-07-28 Thread Pablo Ruggia
I'be got the same problem. Are you using a DirectLink with parameters ? My problem was that the serialized parameter was too long. On 7/28/05, Henry Chen <[EMAIL PROTECTED]> wrote: > > I found this is really weird. When I clicked some DirectLinks, I got stuck > and the page didn't proceed. But

Re: Generic IPropertySelectionModel implementation

2005-07-27 Thread Pablo Ruggia
ullElement - If this property is true, then selection will have one element with an empty string as label, and it's value will be "null". If false, only the collection elements will be there. Here is the class: /** * * @author Pablo Ruggia * @author Ignacio

Re: Generic IPropertySelectionModel implementation

2005-07-27 Thread Pablo Ruggia
If you have the list, you can have the index in the list as id. Then, for description, you can pass a string to get info from the objects, like: "${name} - ${company.description}" So you will pass to your property selection the collection and the format string. I've been using this way and it's

Re: htmlunit VS jwebunit

2005-07-25 Thread Pablo Ruggia
I think HTMLUnit is more powerfull. I agree that HtmlUnit is more verbose, but you allways can write util methods to avoid that. You can replace: HtmlSubmitInput button = (HtmlSubmitInput)form.getInputByName("submitbutton"); HtmlPage page2 = (HtmlPage)button.click(); With: HtmlPage page2

Re: (off-topic) Another way to solve LazyInitializationException

2005-07-25 Thread Pablo Ruggia
It's ok. But it's not my solution. It's hibernate solution. Hibernate comes with lazy initialization. The patch is to make it work when you have disconnected hibernate session and there are still lazy collections not initialized. On 7/25/05, Alexandru Popescu <[EMAIL PROTECTED]> wrote: > > #:

Re: (off-topic) Another way to solve LazyInitializationException

2005-07-25 Thread Pablo Ruggia
lazy = false is not a really solution. If you set lazy to false, hibernate always load the collections. You don't get LazyInitializationException, but you read database more than you have to. Hibernate.initialize() does the job. But you have to do it manually whenever you know that you may be w

Re: (off-topic) Another way to solve LazyInitializationException

2005-07-25 Thread Pablo Ruggia
I know, it has to be much more configurable. But hibernate user lists or forums are just so unfriendly. Every once I post a question about lazy initialization, they kind of get ungry. On 7/25/05, Henri Dupre <[EMAIL PROTECTED]> wrote: > > That's a nice solution that hibernate patch... But I don

(off-topic) Another way to solve LazyInitializationException

2005-07-24 Thread Pablo Ruggia
Hi ! I know it's not about tapestry, but I've seen some posts about Hibernate's LazyInitializationException. I wrote an article on how to patch this problem. If anyone if interested, here is the link: http://pruggia.blogspot.com Bye !

Re: forcing No Server Session

2005-07-20 Thread Pablo Ruggia
RedirectException is an elegant way of cut your logic whereever you are. I'm not against it. It's really usefull (although it looks like old goto sentence). Ok, it's not really an exception. Let's say you are throwing a thing to get cought by someone that know s what to do with that throwable. Y

Re: Template Dinamically

2005-07-19 Thread Pablo Ruggia
he code to make it work without tapestry. It was really a headache. I don't recommend you to start creating this. But, if you want to try, I am sending you some part of the code i've posted to the list before. Here it is: To create dynamic html templates ******

Re: Does Tapestry 4 allow using the same component twice in the same template

2005-07-19 Thread Pablo Ruggia
He is saying the same component instance, not the same component type. On 7/19/05, Eli Doran <[EMAIL PROTECTED]> wrote: > > it does allow using a component over again in the same template. i have > a few components that are reused in the same template. so, what problem > are you having? > > Kent

Re: contrib:Table: using a List with Maps as dataModel

2005-07-18 Thread Pablo Ruggia
There is a very good tutorial on Tapestry Table here: http://weblogs.java.net/blog/johnreynolds/archive/2004/10/learn_by_teachi_1.html On 7/18/05, Darío Vasconcelos <[EMAIL PROTECTED]> wrote: > > Thanks, it worked like a charm. > > To tell you the truth, I haven't grasped this Table concept

Re: Best practices: inheritance

2005-07-11 Thread Pablo Ruggia
If your java classes will look equals, then just create only one java class and reference it from all your .page files. If you have some logic, then create a super class and extend it when you need it. You should subclass only for things like data, security, logic, etc. For same titlte, layout,

Re: Two html pages, one .page (creating alternate views of the pages)

2005-07-11 Thread Pablo Ruggia
I think you should use TWO .html and TWO .page. Both .page could point to the same .java class. I think it works, but i never tryed. On 7/11/05, Darío Vasconcelos <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm building my first app in Tapestry, and I'm having a great time > -besides the fact that th

Re: Eclipse + Jettylauncher + Hibernate?

2005-07-11 Thread Pablo Ruggia
to include your jdbc jar also) and create some configuration files. On 7/11/05, Leo Sakhvoruk <[EMAIL PROTECTED]> wrote: > > I can't find any documentation of how to configure hibernate on jetty. > > Leo > > Pablo Ruggia wrote: > > >But what is the th

Re: Eclipse + Jettylauncher + Hibernate?

2005-07-11 Thread Pablo Ruggia
me > documentation for setting up Hibernate with Jetty. Hibernate website has > Tomcat docs but I have trouble setting up Sysdeo to work with Eclipse. > > Leo > > Pablo Ruggia wrote: > > >If you are starting to learn java web application, i recommend you to use > &

Re: Eclipse + Jettylauncher + Hibernate?

2005-07-11 Thread Pablo Ruggia
ation? If you could point me towards a guide or sample > Sysdeo setup I'd really appreciate it. > > Leo > > Pablo Ruggia wrote: > > >I don't think you'll have differences in configuring hibernate with > tomcat > >or jetty. > >Besides I've us

Re: Eclipse + Jettylauncher + Hibernate?

2005-07-11 Thread Pablo Ruggia
I don't think you'll have differences in configuring hibernate with tomcat or jetty. Besides I've used Sysdeo Tomcat from several moths without any problem. Please send to the list the errors you are getting and I could help you. On 7/11/05, Leo Sakhvoruk <[EMAIL PROTECTED]> wrote: > > I'm for

Re: Loading images on the fly

2005-07-09 Thread Pablo Ruggia
Here are another two options: *** 1º Option *** Use Any component like this: In your page class you could create a method that returns the path to your image. *** 2º Option *** Create context assets programatically. Here is a utility method that will create a ContextAsset for a given path: pu

Re: Tapestry 3.0 Page Pool Question

2005-07-09 Thread Pablo Ruggia
t;[EMAIL PROTECTED]> wrote: > > Pablo Ruggia gmail.com <http://gmail.com>> writes: > > > I want to know where is the place where a new page instance is created > and > > added to the pool. > > I know pages are attached to the engine for some locale, but I

Re: Problems trying to dynamically set an image name.

2005-07-07 Thread Pablo Ruggia
You can create a contextasset by code or you can use a Any component inside that foreach like: On 7/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I have an entity with a field that is a path to an image > for instance > item.getImage(); will return "/images/image1.jpg" > what i a

Tapestry 3.0 Page Pool Question

2005-07-07 Thread Pablo Ruggia
Hi ! I want to know where is the place where a new page instance is created and added to the pool. I know pages are attached to the engine for some locale, but I can't find where. Besides, is there any listener or method that gets called when this happens ?

Re: About a bigger Tapestry components library!

2005-07-05 Thread Pablo Ruggia
s project would need. I totally agree with you. Cheers > > Hugo > > > Pablo Ruggia wrote: > > >I have some time to work on this. Who could join this subproject ? > > > > > > On 7/5/05, Todd O'Bryan <[EMAIL PROTECTED]> wrote

Re: About a bigger Tapestry components library!

2005-07-05 Thread Pablo Ruggia
On 7/5/05, Jamie Orchard-Hays <[EMAIL PROTECTED]> wrote: > > There are already two projects: > > t-deli and tacos You're write. But what they are not "officials". They are just repositories where people "throws" their components. What tapestry needs is to have components that work in the sam

Re: About a bigger Tapestry components library!

2005-07-05 Thread Pablo Ruggia
I have some time to work on this. Who could join this subproject ? On 7/5/05, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > On Jul 5, 2005, at 12:14 PM, Ron Piterman wrote: > > > ציטוט Pablo Ruggia: > > > >> This is not a Tapestry problem. It's

Re: About a bigger Tapestry components library!

2005-07-05 Thread Pablo Ruggia
This is not a Tapestry problem. It's the community (me included) the one that should contribute with those components. I've created several components and never upload them anywhere. I think you guys are in the same. I think what we need is a more "official" site where to upload components, and

Re: Page redirection after form is processed

2005-07-01 Thread Pablo Ruggia
YourPage page = requestCycle.getPage("pageName"); page.setTableElements(yourTableElements); requestCycle.activate(page); On 7/1/05, Raul Raja Martinez <[EMAIL PROTECTED]> wrote: > > Hello everybody, > > I'm a newbie in Tapestry and I have run into the following problem: > > I have created both

Re: Anyone looked at BetterPetShop?

2005-07-01 Thread Pablo Ruggia
On 7/1/05, Vadim Pesochinskiy <[EMAIL PROTECTED]> wrote: > > Yes, that helps. Thanks a lot. > > Bright idea, it would be interesting to try find bugs in code that does > not exist. That code is generated by the framework, tested by thounthends of people. I don't think you'll gonna need to debu

Re: Anyone looked at BetterPetShop?

2005-06-30 Thread Pablo Ruggia
Yes, Tapestry use class enhacement. On 6/30/05, Vadim Pesochinskiy <[EMAIL PROTECTED]> wrote: > > Hello! > > Looking at better pet shop > (betterpetshop.dev.java.net) > application, and > cannot understand why most of page classes are abstract. Abstract > met

Re: Is it possible to get property values in pageBeginRender?

2005-06-30 Thread Pablo Ruggia
Did you try declarin your orderId persistent ? On 6/30/05, Steven Wisener <[EMAIL PROTECTED]> wrote: > > I'm having a slight problems with pageBeginRender; for clarity I'll > change my example to a standard Order/LineItem one. I have a LineItem > listing page that is linked to from the order page

Re: Conditionally including stylesheet

2005-06-30 Thread Pablo Ruggia
I posted this solution answering to Vinicius last week using Shell's delegate parameter. Please, search it in the list, a can't find that mail. On 6/30/05, Nick Heudecker <[EMAIL PROTECTED]> wrote: > > Hi, > > I've built a Border component based on Geoff's suggestion and it's > working fine. I

Confirmation in LinkSubmit

2005-06-29 Thread Pablo Ruggia
Hi ! Sorry if this was asked before, but I can't find anything. How can make a confirmation of a LinkSubmit, like "are you sure you want to delete that ?" Thanks !!!

Re: Validation part II

2005-06-27 Thread Pablo Ruggia
On 6/27/05, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: > > Hum reading again, I don't know if I made my self clear :P > > What I like is to display the error that happened for each component. > Let's say the inputName component was null and I have a validator bean > defining it as required. how

Re: Component Method Call Order

2005-06-27 Thread Pablo Ruggia
The call order is setEncodedUrl() and then getHtml(). It must be an error on your template or specification. Please, send them to the list. On 6/27/05, Tim Sawyer <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a component, which generates some html, to display a flash movie. > The component's h

Re: Refreshing the engine's locale

2005-06-26 Thread Pablo Ruggia
The simplest way I know is to change the locale, and then throw a redirectexception to the page where you want to go. That will make the magic. On 6/26/05, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: > > Hello ppl. Once again here I am. As my presentation gets closer, I'd > like to have things

Re: DirectLink static-binding

2005-06-26 Thread Pablo Ruggia
You have two chances: * You can create an array using ognl syntax. * You can have a method that returns Object[]. On 6/26/05, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: > > This one is stupid... > How can I pass more than one paremeter using static-binding? > > > > > > > > String languag

Re: Locale and Stylesheets

2005-06-26 Thread Pablo Ruggia
Here is a shell delegate example: The template it will look something like: And in your page class (it's recommended to put it in a superclass), you have this method: public IRender getShellRenderDelegator(){ return new IRender(){ public void render(IMarkupWriter writer, IReque

Re: Locale and Stylesheets

2005-06-26 Thread Pablo Ruggia
For the locale change, I think you can create a service that change your locale and call it in your border using a DirectLink. But I don't understand why you can't have a listener in your Border component. - For the css you can use delegator parameter of Shell component, and pass an IRender

Re: Form validation issue

2005-06-25 Thread Pablo Ruggia
I've done that, but i've subclassed ValidationDelegate and override record methods, so when some validator records an error, I can select to record it or discard it. I've to tell you that is not that easy. On 6/25/05, john mcteague <[EMAIL PROTECTED]> wrote: > > I have the following form valida

Re: Stale session. Problem persists

2005-06-22 Thread Pablo Ruggia
Please, send the code where you update your visit and then activate the page. It's very strange what you are telling. On 6/22/05, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: > > Well regarding your question "What makes do you think it doesn't?" Imagine > this: > > Visit > user :User > grou

Re: Property binding question

2005-06-20 Thread Pablo Ruggia
>From what I know, only source is required. On 6/19/05, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: > > Hello there! Must I always bind a value from a foreach in a page to a > property on its class? > > for example: > > value="ognl:userFeed"> > > My page must have a UserFeed property? > >

Re: cancel form rewinding

2005-06-16 Thread Pablo Ruggia
It's a dangerous thing. Think this possibility: You have a form with name, surname and login. You fill name and surname. Then you click accept. Your validation says, "you have to fill login". In that moment, you have your page rewinded. All your properties have been updated, except login. You p

Re: creating an context-asset in code

2005-06-15 Thread Pablo Ruggia
This will create a ContextAsset that points to your image. It's proved. public IAsset getContextAsset(String path) { ContextResourceLocation location = new ContextResourceLocation(getRequestCycle() .getRequestContext().getServlet().getServletContext(),path); ContextAsset asset = new ContextAsse

Re: IRequestCycle

2005-06-15 Thread Pablo Ruggia
/tapestry/current/UsersGuide/listenermethods.html > . > > Br, > Norbi > > - Original Message - > From: "Pablo Ruggia" <[EMAIL PROTECTED]> > To: "Tapestry users" > Sent: Wednesday, June 15, 2005 9:58 PM > Subject: IRequestCycle > > > Wh

IRequestCycle

2005-06-15 Thread Pablo Ruggia
What is the difference between the IRequestCycle passed as parameter to a listener method and the one obtained by page's getRequestCycle() method ? And if they are equals, why my listeners have to have this parameter.

Re: Renaming Home page

2005-06-15 Thread Pablo Ruggia
One is to override HomeService. You define a "home" service in your application specification. It overrides default HomeService with your logic. On 6/15/05, Alexander Kolesnikov <[EMAIL PROTECTED]> wrote: > > Howard writes in his book that there are several options for changing > the default beh

Re: Tapestry framework and thread issues on pages

2005-06-14 Thread Pablo Ruggia
Same page can get activated to many different users, but you can make properties "persistents", so that property will be stored for some user, and only this user. If that user gets a different page instance, the property value will still be the same. On 6/13/05, [EMAIL PROTECTED] <[EMAIL PROT

Re: IExternalPage & listener understanding

2005-06-06 Thread Pablo Ruggia
Are you linking to external service ? If you don't, then activateExternalPage won't get called. On 6/5/05, Tom <[EMAIL PROTECTED]> wrote: > Hi - > > I just want to make sure I'm understanding things correctly. > > The situation: > A page that implements IExternalPage, taking one parameter, that

Re: Managing config files rules of thumb?

2005-06-05 Thread Pablo Ruggia
On 6/5/05, Lukasz Kucharski <[EMAIL PROTECTED]> wrote: > Hi > > I'm new to Tapestry, I've managed to implement two working > applications so far. My question in not closely related to Tapestry > itself but since this mailing list is so helpful and active I decided > to ask. > > I noticed that sin

Re: Persistent data outside of page scope (setupForRequest...)

2005-06-05 Thread Pablo Ruggia
On 6/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > If I want to "remember" data within the global object in a map > and generate it within setupForRequest, it is called and generated for every > page requestalthough it should be held within the webserver somewhere. > > Where would I gen

Overriding Column Headers Renderers

2005-05-31 Thread Pablo Ruggia
Hi !! I want to override how the table columns, actually, SimpleTableColumn, renders. It's really a mess of classes, and I can't get how to do it. I don't want to use Blocks. I know there is a chance to override it using the ITableRendererSource interface. But I don't find any example. Thanks !

Re: ThreadLocal example pleeeeease!

2005-05-31 Thread Pablo Ruggia
Yes, it's possible. Personally, I put this logic in setupForRequest method of my engine. I created a class, UserContext, like this: public class UserContext { static ThreadLocal _visitLocal = new ThreadLocal(); public static Object getVisit() { return (Visit) _visitLocal.get();

Re: Tapestry and OutOfMemoryError

2005-05-30 Thread Pablo Ruggia
It's not a common problem, definitivily. On 5/31/05, Ryan Phelan <[EMAIL PROTECTED]> wrote: > Thanks for the quick Response!, Yes I'm well aware of the gc capabilites > of Java. (It was a nice refresher though :)... Anyway, while hunting for > such *leaks*, I need to target (or eliminate) Tapestry

Re: Override Services

2005-05-29 Thread Pablo Ruggia
I've tryied defining the service with the same name in my .application file and it works !! Thanks On 5/29/05, Pablo Ruggia <[EMAIL PROTECTED]> wrote: > Can I override engine services ? > For example, create a Subclass of HomeService and then tapestry use > that new Home

Override Services

2005-05-29 Thread Pablo Ruggia
Can I override engine services ? For example, create a Subclass of HomeService and then tapestry use that new HomeService? Thanks !!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: who is listening anyways...

2005-05-28 Thread Pablo Ruggia
On 5/28/05, Christian <[EMAIL PROTECTED]> wrote: > Hi folks > > I have a page (MessageView) which contains a component (MessageList), > which again is responsible for managing a list of messages in a > contrib:table. > > I have recently moved this component out of the page, since it might > becom

Re: BasePage, BaseComponent and thread issues with database queries

2005-05-28 Thread Pablo Ruggia
On 5/28/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello everyone! > > Both all my pages and components need to perform the same database queries > where client specific stuff (language, country) determines how they are > rendered. > > (a) would it be a good idea to do everything in BaseP

Jetty Embeded Server

2005-05-26 Thread Pablo Ruggia
Hi !!! Sorry because this mail is not about Tapestry itself. But I think you could help me. I have a Tapestry Application that I want to test. So I create some HTML unit test. I want to use Jetty to load my application automaticaly before my test run. But I have the next problem: I use 2 projects,

Re: FCKEditor Component

2005-05-26 Thread Pablo Ruggia
> From: Schulte Marcus [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 26, 2005 7:38 AM > To: 'Tapestry users' > Subject: RE: FCKEditor Component > > > Yes, I did, yesterday ;). I'll happily post it after some debugging. You'll > probable have it by tomorrow.

FCKEditor Component

2005-05-26 Thread Pablo Ruggia
Have anyone created a component to use FCKEditor ??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Calling into Tapestry from External URL

2005-05-25 Thread Pablo Ruggia
You have to use External Service links, or friendly URL or just simple a Servlet that redirects to the tapestry ugly url. The easist is to use External Service. Your page have to implement IExternalPage interface. You can passs your chartid as a parameter. On 5/25/05, Tim Sawyer <[EMAIL PROTECT

Re: build component - HTML template

2005-05-25 Thread Pablo Ruggia
You have to read Tapestry In Action. It has a complete chapter on Reusable Components and have some chapters on making a real application (a Library) on Tapestry. On 5/25/05, Eric Tan <[EMAIL PROTECTED]> wrote: > Dear all, > >Is there any tutorial teaching how to build > reusable component? >

Re: Is a 'FormBuilder' possible with Tapestry?

2005-05-24 Thread Pablo Ruggia
It's possible (that form builder is an intensive use of javascript), tapestry support this. But you have to make those components, make them interact, etc. It's only a matter of have time to build those nice components. On 5/24/05, Karl-Heinz Mueller <[EMAIL PROTECTED]> wrote: > Hi, > > I found

Re: Dynamic component selection

2005-05-20 Thread Pablo Ruggia
You can use RenderBlock components. It has a parameter so you can specify a method to get what block to render. In your template: your first choice component the another one In your Java File: public Block getChooseBlock(){ if something return getComponent("blo

Re: Reference asset from css [auf Viren geprueft]

2005-05-19 Thread Pablo Ruggia
I can't get what you really want, or the way you want to do it. But i'll try to guess. If you wan't to change or override some css class property you can use the html syle attribute. Perhaps something like this in your template: > peer directory to your "css" directory. > > > Sorry that my que

Re: Global and Visit objects

2005-05-19 Thread Pablo Ruggia
The visit object is an object that can extend from any Object subclass or Object itself. So, it has not the Global object inside. But, if you have the visit object, why can't you get the global Object ? You can do the same thing you do to get the visit object and get the global object. In page or e

Re: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Pablo Ruggia
Mmm, so you keep using the same session for more than one request form the same user ? On 5/19/05, Pablo Ruggia <[EMAIL PROTECTED]> wrote: > And what happens if you need to access a Collection in a second > request from user. How it works if you do not reattach the object ? >

Re: Hibernate + Spring: LazyInitializationException

2005-05-19 Thread Pablo Ruggia
And what happens if you need to access a Collection in a second request from user. How it works if you do not reattach the object ? On 5/19/05, Schulte Marcus <[EMAIL PROTECTED]> wrote: > I'm using the long session pattern put forward in HIA by Bauer&King. This > works very well - no LazyInitializ

Re: Hibernate + Spring: LazyInitializationException

2005-05-18 Thread Pablo Ruggia
> I have worked around this problem by using > Hibernate.initialize(myobject.getMyCollection()) > > You need to look at your application use cases and > load the things upfront that you will be needing. It's still too manual, but using this way combined with some aspects, does not sound crazy. I'

Re: Hibernate + Spring: LazyInitializationException

2005-05-18 Thread Pablo Ruggia
The problem with reattachment is that I have to do it, it's not automatically. I don't understand why Hibernate can't simply open a new session when the one wich has is closed. I supose I'll have to patch it in my Hibernate's source, and wait until it becames a new feature in future releases of Hib

Re: Static Access to Visit Object?

2005-05-17 Thread Pablo Ruggia
On 5/17/05, Joel Trunick <[EMAIL PROTECTED]> wrote: > > If you don't care that the Visit is created before it is needed, it > doesn't matter. However, it would be ideal if your ThreadLocal could > create the Visit when it is actually needed. > BaseEngine's method getVisit() does not create the v

Re: Hibernate + Spring: LazyInitializationException

2005-05-17 Thread Pablo Ruggia
I've not found any reasonable, easy and transparent solution to this. So I turn off lazy initializations and try to map as less collections as I can. But if you want to investigate, here is a link to a solution using Tapestry + Spring + Hibernate (I really don't like it): http://wiki.apache.org/

Re: Hibernate domain objects - how to load before parameter application

2005-05-17 Thread Pablo Ruggia
I think you can set the user property in your pageBeginRender() method, implementing PageRenderListener interface. It will be called both before the page starts rendering and rewinding. On 5/17/05, Javier Molina <[EMAIL PROTECTED]> wrote: > Hello all, > > this is my first Tapestry application. I

Re: Static Access to Visit Object?

2005-05-17 Thread Pablo Ruggia
> That's probably true... Why not create a BasePage > and set up the thread local there? > > In what method can I put that logic so it calls before my listeners ? I'm doing it in Engine because I know that setupForRequest() is one of the firsts method that get called before a request. Is there a

Re: how to pass component as parameters

2005-05-17 Thread Pablo Ruggia
I don't know if you knew it, but you can use Krysalis Menu, a set of tapestry component that renders a very configurable javascript menu. On 5/16/05, pepone pepone <[EMAIL PROTECTED]> wrote: > sorry for split this post > > ItemMenu must receive a parameter of type Menu in order to call a > method

Re: Static Access to Visit Object?

2005-05-17 Thread Pablo Ruggia
I'm doing this: I use a thread local variable in a class. And I subclass Base engine this way (UserContext is the class where I have the thread local variable Visit and statics methos getVisit and setVisit) public class MyEngine extends BaseEngine { protected void setupForRequest(RequestConte

  1   2   >