Re: What does your project directory structure look like?

2006-09-21 Thread soir
My multimodule project's directory structure looks like (it's suggested by Maven): workspace\projectname workspace\projectname\src\main\java workspace\projectname\src\main\resources workspace\projectname\src\main\webapp workspace\projectname\src\main\webapp\images workspace\projectname\src\main\w

Re: application namespace message catalog question

2006-09-21 Thread soir
I have same issue. Application-level message catalog is not accessible from the components which are placed into same application library. Scott Jarvi wrote: > > Hi, > > I have a component that makes use of localized messages that may be shared > by other components and pages. Because of this

Re: template and key

2006-09-21 Thread andyhot
See the tapestry user guide, esp. http://tapestry.apache.org/tapestry4/UsersGuide/template.html#template.directives.l10n See the tacos user guide, esp. http://tacos.sourceforge.net/userguide/MoreGoodies.html edward pedersson wrote: > Hi > > I have been looking at some tapestry examples and I not

Re: Expired Session message

2006-09-21 Thread karthik.nar
Hey Greg, Just curious - did you eventually solve this? If so can you paste your solution? Thanks, Karthik. -- View this message in context: http://www.nabble.com/Asynchronous-form-submission-tf2253801.html#a6441359 Sent from the Tapestry - User mailing list archive at Nabble.com. -

template and key

2006-09-21 Thread edward pedersson
Hi I have been looking at some tapestry examples and I noticed this notation I figured this is related to the .properties file but how does this work? Is that documented anywhere? In addition I have also noticed the use of is the template directive part of ognl or Tapestry and how does th

Re: Tomcat restart through tapestry

2006-09-21 Thread Peter Dawn
sorry my bad. point taken. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat restart through tapestry

2006-09-21 Thread Jesse Kuhnert
Please... Once again, move this to another list. I'm completely against censoring people but this is getting a little silly. On 9/21/06, Peter Dawn <[EMAIL PROTECTED]> wrote: yes i am using tomcat as a service. and there is nothing called restart command. i can only start, stop or continue. b

Re: Tomcat restart through tapestry

2006-09-21 Thread Peter Dawn
yes i am using tomcat as a service. and there is nothing called restart command. i can only start, stop or continue. but i have tried to execute a batch file, but due to browser restrictions it wont let me to do that. when i click on the link it doesnt do anything at all. but if i run that page s

Re: Tomcat restart through tapestry

2006-09-21 Thread Jesse Kuhnert
Please move this thread somewhere else.. Like the tomcat users mailing list. On 9/21/06, Peter Dawn <[EMAIL PROTECTED]> wrote: sure will do. but its a funny problem. once you stop tomcat you cant restart it again, coz without tomcat your application wont run in the first place. --

Re: Tomcat restart through tapestry

2006-09-21 Thread Daniel Jue
So you need to restart the service from the app, not just stop it. I would think since the jvm Tomcat uses would disappear for a splits second you would need to hand off control to a something non-java, like a wsh so it can start the service afterwards. Unless there is a direct command you can g

Re: Tomcat restart through tapestry

2006-09-21 Thread Peter Dawn
sure will do. but its a funny problem. once you stop tomcat you cant restart it again, coz without tomcat your application wont run in the first place. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Tomcat restart through tapestry

2006-09-21 Thread Josh Joy
Try looking into JMX MBeans. They provide a lot of this and other functionality. Peter Dawn wrote: > guys, > > i have run into this problem. i am able to stop tomcat from the app. but, > 1. if i have another button to start tomcat within the app, then that > command is not captured as tomcat is n

Tomcat restart through tapestry

2006-09-21 Thread Peter Dawn
guys, i have run into this problem. i am able to stop tomcat from the app. but, 1. if i have another button to start tomcat within the app, then that command is not captured as tomcat is not running and hence the web application is not running 2. if i execute a batch file, again the stop works bu

Re: Restart tomcat from within tapestry

2006-09-21 Thread Daniel Jue
Windows, with tomcat installed as a service (And that service probably runs as SYSTEM)? H. You could do it with pstools from Sysinternals.com. You could also probably do it from a net command http://technet2.microsoft.com/WindowsServer/en/library/03928250-2796-4253-8fb1-b25329ddf35f1033.mspx

What does your project directory structure look like?

2006-09-21 Thread Daniel Jue
Hi, I'm relatively new to Tap, and I am starting with Tap 4 and Eclipse. I've been using the directory structures as seen in Kent Tong's book. I also noticed the Tapestry examples (vlib and workbench) have html files that live in the root of the application, instead of in web-inf. Is this a stand

Re: Restart tomcat from within tapestry

2006-09-21 Thread Peter Dawn
am using windows. so whats the location then. thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Restart tomcat from within tapestry

2006-09-21 Thread Martin Strand
Perhaps you could simply let your listener method run a shell script? String[] command = {"/etc/init.d/tomcat", "restart"}; Runtime.getRuntime().exec(command); But, Tomcat restarting itself from a web ui? You should ask your client why he believes he needs this... :) On Fri, 22 Sep 2006 00:5

Re: Restart tomcat from within tapestry

2006-09-21 Thread Peter Dawn
doesnt matter. the security risk is the responsibility of the client, if they want it then I will implement it. I will make them aware of the risks too. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Restart tomcat from within tapestry

2006-09-21 Thread Daniel Jue
That would be nice to do if possible, although it would be a huge security risk. I would like it since at the moment I don't have service restart privileges on some servers. =) On a related note, I've been battling jar locking problems when hot deploying my web app on Tomcat. The AntiJARLocking

Re: Doubt about implementing Ajax request

2006-09-21 Thread Jesse Kuhnert
Look for the parameters "updateComponents/async" in most of the Submit/Link / Form type components in the 4.1 documentation. On 9/21/06, Daniel Castro <[EMAIL PROTECTED]> wrote: Anyone? I am using Ajax 4.1. Need to do an ajax request to a class method so this method will do a search on databa

Restart tomcat from within tapestry

2006-09-21 Thread Peter Dawn
guys, i want the ability to restart tomcat from within my web app. i want to provide a button, which the user clicks and it restarts tomcat. can somebody tell me how should i go about this. i am using tap3. thanks. - To unsubs

Re: application namespace message catalog question

2006-09-21 Thread Martin Strand
I have no idea what could be wrong, nested components work fine with my global message catalog... Sorry. :( On Thu, 21 Sep 2006 22:39:45 +0200, Scott Jarvi <[EMAIL PROTECTED]> wrote: Yes, we have an .application and .properties in the same directory. This works for us as well, fo

Re: application namespace message catalog question

2006-09-21 Thread Scott Jarvi
Yes, we have an .application and .properties in the same directory. This works for us as well, for all of our pages that share resource keys. In this specific case, my component is referenced in the page, but nested inside our custom border component - is it the nested component that could

RE: Alternate way to @EventListener with java 1.4

2006-09-21 Thread Denis Souza
I don't know if you can use it in Tap 4.1 but tacos 4 has a "AjaxEventSubmit" component that does something similar. I'm not sure it does everything @EventListener does, but maybe it's enough for what you need. -Original Message- From: Numa Schmeder [mailto:[EMAIL PROTECTED] Sent: quinta-

RE: How do I intercept an org.apache.hivemind.ApplicationRuntimeException?

2006-09-21 Thread Ben Dotte
This thread might be a little help: http://article.gmane.org/gmane.comp.java.tapestry.user/29684 I've never found a way to override the "ugly" error page, I believe the exception is thrown by commons fileupload, not Tapestry. So I just set MultipartDecoderImpl's maxSize to "-1" and validate the fi

Re: application namespace message catalog question

2006-09-21 Thread Martin Strand
It should be working, it does for me. Did you put it in the same dir as your .application file? YourApp.application YourApp_en.properties On Thu, 21 Sep 2006 21:41:00 +0200, Scott Jarvi <[EMAIL PROTECTED]> wrote: Hi, I have a component that makes use of localized messages that may be sh

Re: Doubt about implementing Ajax request

2006-09-21 Thread Daniel Castro
Anyone? I am using Ajax 4.1. Need to do an ajax request to a class method so this method will do a search on database and return the result to the page. How to do it? On 9/21/06, Daniel Castro <[EMAIL PROTECTED]> wrote: The problem is that the documentation was not clear, for me, and I dont

Re: Is breadcrumbs component hard in Tapestry?

2006-09-21 Thread Vjeran Marcinko
- Original Message - From: "Robert Zeigler" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Thursday, September 21, 2006 9:10 PM Subject: Re: Is breadcrumbs component hard in Tapestry? I haven't made a breadcrumbs component in tapestry. But I have a comment on implementation: If it's

application namespace message catalog question

2006-09-21 Thread Scott Jarvi
Hi, I have a component that makes use of localized messages that may be shared by other components and pages. Because of this, I've put the keys in my application-level message catalog. For some reason, the keys are not found when the component is rendered on my page. This seems like it should

RE: Dynamic Sections on a Page

2006-09-21 Thread Michael Grundvig
Im sorry, I don't think I explained that well at all (I was barely awake at the time). What I need is along the lines of a dynamic include in a JSP. Where the included JSP still executes as always but you are able to specify the include path itself as a variable. That's what I'm looking to accompli

Re: Is breadcrumbs component hard in Tapestry?

2006-09-21 Thread Robert Zeigler
I haven't made a breadcrumbs component in tapestry. But I have a comment on implementation: If it's possible that some (or all) pages in the trail need parameters (as you mentioned), don't use page links or Direct Links at all; your pages (at least all of the ones that might end up as a "crumb")

Re: How to obtain the servlet instance?

2006-09-21 Thread Shing Hing Man
If you are after the HttpServletRequest, you might like to try the following. @InjectObject("service:tapestry.globals.HttpServletRequest") public abstract HttpServletRequest getServletRequest(); Shing --- Manuel Sugawara wrote: > Hi all, I would like to obtain the servlet instance > from withi

How do I intercept an org.apache.hivemind.ApplicationRuntimeException?

2006-09-21 Thread Thomas.Vaughan
I have a page that allows for file uploads, up to 10MB. The limit is enforced in my hivemodule.xml with this snippet: It works perfectly...if you upload a file larger than 10MB, you get a big "ugly" error page (pasted below). We catch all other exceptions with a configuration line in the

Re: EventListener can update a For component ?

2006-09-21 Thread Jesse Kuhnert
Make sure that your "requestorsLoop" is outputting an actual html element on render. If you can't view source of a rendered page and find an existing html element then there is nothing to "update". I think using the For component you have to specify element="div || span || whatever " to get it to

Re: EventListener can update a For component ?

2006-09-21 Thread Roberto Ramírez Vique
Problem solved, sorry, it was an stupid problem ... just a duplicated id for the addLink element. Anyway now this part works. On 9/21/06, Roberto Ramírez Vique <[EMAIL PROTECTED]> wrote: Hi everybody, I'm an starter in Tapestry 4.1, using tomcat 5.5 and jdk 1.5 I want to have a link (a plus

Re: BeanForm and no setter method for persistence id

2006-09-21 Thread D&J Gredler
Are you listing the properties explicitly, i.e. properties="name,description"? If that's the case, I don't see how the BeanForm knows anything at all about your ID field. And if there's not even a setId( ) method, there's no way at all for BeanForm to modify the property (it doesn't modify fields

RE: Dynamic Sections on a Page

2006-09-21 Thread Firas Adiler
Hi, I think these components are well suited for this kind of job: http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/RenderBlock .html http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Block.html -Original Message- From: Mike Grundvig [mailto:[EMAIL PR

RE: tapestry-acegi form based login

2006-09-21 Thread Jonathan Barker
My approach predates tapestry-acegi, but I'm sure it could be adapted. I use a bit of a hybrid approach, where the authentication part is handled as described in the EWDT e-book and all of my protected pages extend a BaseProtectedPage class. My Login page has a UserValidator ASO injected, which i

How to obtain the servlet instance?

2006-09-21 Thread Manuel Sugawara
Hi all, I would like to obtain the servlet instance from within my pages in order to call the HttpSevlet methods for logging. My first cut was injecting it using something like: @InjectObject("service:tapestry.globals.HttpServlet") public abstract HttpServlet getHttpServlet(); To

Alternate way to @EventListener with java 1.4

2006-09-21 Thread Numa Schmeder
Hello, Is there a way if you are using java 1.4 to have a similar functionality to @EventListener. I am developing a new application and i would like to go with tap 4.1 but this application will run on java 1.4 so i can't use annotations, but i would really like to have a similar functional

Re: tapestry-acegi form based login

2006-09-21 Thread Robin Ericsson
On 9/21/06, Jesper Zedlitz <[EMAIL PROTECTED]> wrote: Is it possible to use a html form for login with tapestry-acegi instead of HTTP basic authentication? I'd like to know that too. I would like to write a third part for my tutorial http://wiki.apache.org/tapestry/AcegiSpringJava5 about that

Re: OT - [Tapestry-Users] - prefix in mail subject?

2006-09-21 Thread Martin Strand
Opera categorizes lists automatically. :) If you use another client perhaps you can use these headers to filter out list messages: > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > Precedence: bulk > List-Help: > List-Unsubscribe: > Li

Re: Troubles rendering CSS with Tapestry 4.0.2

2006-09-21 Thread Andreas Andreou
Servers do not serve content out of the WEB-INF folder. I'd move the css file in context/css/menu.css then define and for previewing the templates directly in browsers Peter J. Siegel wrote: For some days I've spent hours and hours increating a page that is rendered with the attached C

Re: OT - [Tapestry-Users] - prefix in mail subject?

2006-09-21 Thread Karthik N
Sometimes visual scanning of the Email subject seems to help me a lot. But maybe it's just me ... On 9/21/06, James Carman <[EMAIL PROTECTED]> wrote: Can't you categorize based on the recipient? Gmail offers that as an option when filtering. -Original Message- From: Karthik N [mailto

RE: OT - [Tapestry-Users] - prefix in mail subject?

2006-09-21 Thread James Carman
Can't you categorize based on the recipient? Gmail offers that as an option when filtering. -Original Message- From: Karthik N [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 10:01 AM To: Tapestry users Subject: OT - [Tapestry-Users] - prefix in mail subject? Is there any w

OT - [Tapestry-Users] - prefix in mail subject?

2006-09-21 Thread Karthik N
Is there any way to set up the mails that go out prefixed with [Tapestry-Users] or something such? Just helps categorization of mails an easier tasks, visually. Thanks, Karthik

Troubles rendering CSS with Tapestry 4.0.2

2006-09-21 Thread Peter J. Siegel
For some days I've spent hours and hours increating a page that is rendered with the attached CSS. Aftertravelling round in the forum several tutorials and Google, I reallydon't know why the most described solution doesn't work for me. I'msure I overlook an important detail. Now I'm asking you p

Dynamic Sections on a Page

2006-09-21 Thread Mike Grundvig
Hi all; first off, I just wanted to express my thanks to the devs and community for making Tapestry. It's a real piece of art. Thanks! I'm working on a site that has an admin system to store advertisments. These advertisements are small HTML blocks that they want inserted into specific places

BeanForm and no setter method for persistence id

2006-09-21 Thread Claus Myglegaard Vagner
Hi, Is it possible to use the BeanForm component (http://beanform.sourceforge.net/) for updating a pojo with no setter method for a persistence id? For example I have a Group object with properties id, name, description. In the form only name and description is shown. I don't want to show th

tapestry-acegi form based login

2006-09-21 Thread Jesper Zedlitz
Is it possible to use a html form for login with tapestry-acegi instead of HTTP basic authentication? I would like to write a third part for my tutorial http://wiki.apache.org/tapestry/AcegiSpringJava5 about that topic. Jesper -- Jesper Zedlitz E-Mail : [EMAIL PROTECTED]

Re: Doubt about implementing Ajax request

2006-09-21 Thread Daniel Castro
The problem is that the documentation was not clear, for me, and I dont know what Tapestry API to use to make an Ajax call...to invoke a method of a class of mine and receive the response. and also how to make the binding between my button and the class method to call On 9/21/06, Jesse Kuhnert <

EventListener can update a For component ?

2006-09-21 Thread Roberto Ramírez Vique
Hi everybody, I'm an starter in Tapestry 4.1, using tomcat 5.5 and jdk 1.5 I want to have a link (a plus image :P) that adds a new element to the for loop. I tried this: @EventListener(elements="addLink", events="onclick", submitForm="userForm", async=true) public void addNewRequester(IRe

Re: java.io.NotSerializableException - tapestry property

2006-09-21 Thread Josh Joy
Hi Jesse, Yes, the problem is that it's being serialized. If I properly implement java.io.Serializable on the object, then the error goes away. I'm just thinking for some reason though that I vaguely remember the Tapestry documentation mentioning this and providing 3 different solutions to rem

Is breadcrumbs component hard in Tapestry?

2006-09-21 Thread Vjeran Marcinko
Hello all. I tried to develop my breadcrumbs component, but it seems that it is a bit harder than expected to do it in component framework. Anyway, has anyone developed the same and is willing to share? IMPORTANT NOTE: this breadcrumb component should be dynamic in nature, not using only Pag