Re: Select does not submit form on change

2009-12-07 Thread Inge Solvoll
Try this.form.submit() On Tue, Dec 8, 2009 at 2:47 AM, Mite wrote: > > Hi > > I am trying to attach an event to a select. The guys that worked before me > used this model. > http://wiki.apache.org/tapestry/Tapestry5SelectObject > > I have written this code so far: > > > labelField="literal:co

Best practice for initializing page to default context

2009-12-07 Thread Kalle Korhonen
Most things in T5 are delightfully simple, but I find this surprisingly difficult: how to best initialize a page to default context (and redirect to it). Imagine you have a search & result page. If I access the page without any context I want all records to be displayed. In onActivate() without par

Select does not submit form on change

2009-12-07 Thread Mite
Hi I am trying to attach an event to a select. The guys that worked before me used this model. http://wiki.apache.org/tapestry/Tapestry5SelectObject I have written this code so far: void onSubmit() { System.out.println("Value changed!"); } Whenever I change the value from the sele

Re: t5 handling events by components, event handling sequence

2009-12-07 Thread DH
In your case, I think the best practice is to handle the event in the page but not the component. Or you can handle event in the component to perform common logic, then trigger another event and carry relevant data, so for the page, it can handle the second event to do somehing to change its act

Re: t5 Environment property

2009-12-07 Thread DH
http://tapestry.apache.org/tapestry5.1/guide/env.html DH http://www.gaonline.com.cn - Original Message - From: "kamiseq" To: Sent: Tuesday, December 08, 2009 7:54 AM Subject: t5 Environment property hi, I really cant find any proper explanation of Environment and Environmental. From

t5 Environment property

2009-12-07 Thread kamiseq
hi, I really cant find any proper explanation of Environment and Environmental. >From javadoc I understand that children components are provided with Environmental service set by their parents so there is a way of passing data around but I really dont get the "stack idea" of Environment service. A

t5 handling events by components, event handling sequence

2009-12-07 Thread kamiseq
hi, I ve wrote simple component that renders link and handles event triggered by the link then it sets some value and should render that value. the problem is that I get the value but then the value is lost as tapestry redirects to a page that holds the component Tabs is the page that renders TabN

Re: T5 Multiple AppModules?

2009-12-07 Thread Norman Franke
In my case, one of the sub-applications needed a few services that were database heavy. If they user is only going to access the basic one, I didn't want to worry about that. I'd assume the lazy loading will take care of this, however. The real reason I wanted it was so I could have relativ

Re: T5 Multiple AppModules?

2009-12-07 Thread Norman Franke
On Dec 7, 2009, at 4:37 PM, Piero Sartini wrote: Do I then create multiple filters in the web.xml for each sub-app? Or just one for /*? Seems to require multiple filter definitions, but then other stuff fails. Only one filter! Yes, that seemed obvious after I figured out the multiple IoC iss

Re: T5 Multiple AppModules?

2009-12-07 Thread Howard Lewis Ship
I don't believe you can have two separate T5 TapestryFilters in the same web.xml; currently T5 doesn't account for an extra identifying layer between the context path and the servlet path. In other words, the first T5 TapestryFilter would probably take all the incoming requests. What would be nice

Re: T5 Multiple AppModules?

2009-12-07 Thread Piero Sartini
Ups. Just realized that is not what Howard said: Two seperate webapps that access one common module. My approach is only one webapp with 2 modules for the different app-pages/components. Sorry for the confusion. Piero

Re: T5 Multiple AppModules?

2009-12-07 Thread Piero Sartini
> Do I then create multiple filters in the web.xml for each sub-app? Or > just one for /*? Seems to require multiple filter definitions, but > then other stuff fails. Only one filter! > Further, it's claiming I have multiple IoCs. Removing the extra > filters from the web.xml eliminates the multi

Re: T5 Multiple AppModules?

2009-12-07 Thread Norman Franke
Do I then create multiple filters in the web.xml for each sub-app? Or just one for /*? Seems to require multiple filter definitions, but then other stuff fails. With separate filters for each sub-level of the URL, I get: java.lang.RuntimeException: No service implements the interface org.s

Re: Tapestry - hibernate problem

2009-12-07 Thread Josh Canfield
The session isn't closed until you are leaving the request, after your template has rendered. The problem is most likely with your query or your data. Try accessing the values from your component class and you should see that it's still null. You should also enable logging for hibernate to see exa

Re: Exception accessing T5 Registry from other servlet

2009-12-07 Thread Howard Lewis Ship
I would put the cleanup in a try { } finally { } inside your servlet's doGet(). On Mon, Dec 7, 2009 at 10:29 AM, Inge Solvoll wrote: > Ok, let's see if I've understood this correctly: > > Tapestry has already invoked Registry.cleanupThread() for the current > (ignored) request before passing it o

Re: Exception accessing T5 Registry from other servlet

2009-12-07 Thread Inge Solvoll
Ok, let's see if I've understood this correctly: Tapestry has already invoked Registry.cleanupThread() for the current (ignored) request before passing it on to some other servlet/resource. This cleanup removed my Request/Response objects. Now when I put new Request/Response instances back in the

Re: T5 Multiple AppModules?

2009-12-07 Thread Howard Lewis Ship
Create a common module, and in each app use @SubModule on the app's AppModule to suck in the CommonModule services and contributions. On Mon, Dec 7, 2009 at 9:44 AM, Norman Franke wrote: > I'd like to have a single installation of T5 run two apps that will share a > great deal of code. While I co

T5 Multiple AppModules?

2009-12-07 Thread Norman Franke
I'd like to have a single installation of T5 run two apps that will share a great deal of code. While I could have separate WAR files and deploy them to Tomcat, that would take more resources and prevent some level of interaction between them. So, is it possible to have two AppModules in a

Re: Exception accessing T5 Registry from other servlet

2009-12-07 Thread Howard Lewis Ship
On Mon, Dec 7, 2009 at 7:11 AM, Inge Solvoll wrote: > Found something that seems to work by reading carefully through > TapestryModule.java, see code below. To me, it seems strange that I have to > do this. Do any of you guys see anything wrong with this? > Since it's not a Tapestry-related reque

Re: BeanEditForm - multi col?

2009-12-07 Thread Thiago H. de Paula Figueiredo
Em Mon, 07 Dec 2009 13:37:22 -0200, Jim O'Callaghan escreveu: Thanks Thiago You're welcome! - the CSS idea you mention sounds promising, though rather than using something IE doesn't support, I'll just float-left and clear-left the fields divs using CSS, That's a nice solution. :) Don'

RE: BeanEditForm - multi col?

2009-12-07 Thread Jim O'Callaghan
Thanks Thiago - the CSS idea you mention sounds promising, though rather than using something IE doesn't support, I'll just float-left and clear-left the fields divs using CSS, use some JS to identify the button div and clear-both that one - this seems to do the trick in the small set of cases that

Re: Exception accessing T5 Registry from other servlet

2009-12-07 Thread Inge Solvoll
Found something that seems to work by reading carefully through TapestryModule.java, see code below. To me, it seems strange that I have to do this. Do any of you guys see anything wrong with this? public void contributeHttpServletRequestHandler(OrderedConfiguration configuration, @Inject @Symbo

Re: dynamic access of images

2009-12-07 Thread Thiago H. de Paula Figueiredo
Em Mon, 07 Dec 2009 10:16:10 -0200, Chitrangada Sarkar escreveu: working on a component,that needs multiple images,Is there any way to dynamically retrieve all those images without hardcoding them.Can that be done using AssetFactory? Use AssetSource. -- Thiago H. de Paula Figueiredo Indepe

Re: Exception accessing T5 Registry from other servlet

2009-12-07 Thread Inge Solvoll
Thanks! Didn't work though. Tried running requestGlobals.storeServletRequestResponse before asm.get(...), still same error because requestGlobals.getRequest() is still null after storing httprequest. I discovered that requestGlobals.getHTTPServletRequest() returns a live and working request, whil

Re: Exception accessing T5 Registry from other servlet

2009-12-07 Thread Thiago H. de Paula Figueiredo
Em Mon, 07 Dec 2009 08:31:44 -0200, Inge Solvoll escreveu: Hi! Hi! Caused by: java.lang.NullPointerException at $Request_12568a717d3.getSession($Request_12568a717d3.java) at $Request_12568a717a6.getSession($Request_12568a717a6.java) at org.apache.tapestry5.internal.ser

dynamic access of images

2009-12-07 Thread Chitrangada Sarkar
working on a component,that needs multiple images,Is there any way to dynamically retrieve all those images without hardcoding them.Can that be done using AssetFactory? I appreciate any help. :) Chitrangada Sarkar -- View this message in context: http://old.nabble.com/dynamic-access-of-images

Re: BeanEditForm - multi col?

2009-12-07 Thread Thiago H. de Paula Figueiredo
Em Mon, 07 Dec 2009 08:01:26 -0200, Jim O'Callaghan escreveu: Hi, Hi! I'm trying to maximise screen real estate in some pages and was wondering if there is an easy way to make the BEF multi-col - even two col would do the trick - any getter annotations etc. to get it to close one div a

Re: Context missing in onUploadException

2009-12-07 Thread Massimo Lusetti
On Sun, Dec 6, 2009 at 10:31 AM, Geoff Callender wrote: > If a file upload triggers UploadException (eg. because file exceeds max size) > then onUploadException(..) is called without calling onActivate(..) first, so > when we're in onUploadException(..) we don't know the page context. > >  I wa

Xing Group

2009-12-07 Thread Andy Clayton
Hi Tapestry users, I have recently started a new group on Xing for anyone who uses Tapestry. If you are interested in joining this group then please follow this link www.xing.com/net/tapestry/ and select the join group button. I look forward to seeing you the

Exception accessing T5 Registry from other servlet

2009-12-07 Thread Inge Solvoll
Hi! I'm trying to integrate my T5 IOC Registry with the non-T5 part of our application. But when I try to actually use services that are perthread and depend on session data, I get the error listed below. It seems that the request or the session hasn't been initialized properly for the request. Th

BeanEditForm - multi col?

2009-12-07 Thread Jim O'Callaghan
Hi, I'm trying to maximise screen real estate in some pages and was wondering if there is an easy way to make the BEF multi-col - even two col would do the trick - any getter annotations etc. to get it to close one div and start another - thanks. Regards, Jim. --

Re: zone id as property expression ?

2009-12-07 Thread DH
Finally id in the Dom would be the one 'id'. DH http://www.gaonline.com.cn - Original Message - From: "Gunnar Eketrapp" To: "Tapestry users" Sent: Monday, December 07, 2009 4:43 PM Subject: zone id as property expression ? > Hi! > > I would like to do the following .. > > > > .

zone id as property expression ?

2009-12-07 Thread Gunnar Eketrapp
Hi! I would like to do the following .. ... but T5 doesnt seem to like property expressions in the id attriute. Anyone?