T5 - DataSource in Jetty5

2007-07-19 Thread Weisu
Hi, I am using Tomcat for my old app, now I am tring to use Jetty5. In Tomcat, I put my datasource in xml file under tomact\conf\Catalina\localhost\xxx.xml as: How do I do this in Jetty5? And I would like to use Oracle 9. Thanks in advance!!! Wei. -- View this message in context: http://www.

Re: [T5] Any way to replace service from InternalModule?

2007-07-19 Thread SergeEby
Hi, You must contribute to AliasOverrides service: Details are here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html /Serge Ivan Luzyanin wrote: > > I need to change a behavior of a service provided by Tapestry's > InternalModule. Is is possible? If so, how? > -- View

Re: getRowCount() of IBasicTableModel run 4 times????

2007-07-19 Thread Jun Tsai
How to fix this? Thanks. 2006/10/27, Huang Gehua <[EMAIL PROTECTED]>: This is my code: === public IBasicTableModel getAllPerson()throws CnbrnException{ return new IBasicTableModel(){ public

Re: service throws java.lang.IllegalStateException (T5)

2007-07-19 Thread Jordan Howarth
I knew I would be reinventing something ... ;( http://wiki.apache.org/tapestry/Tapestry5HowToCreateASimpleGraphComponent A case of read the manual (or in this case Wiki) J. Jordan Howarth wrote: > Hi all > > I have been cribbing from "Enjoying Web Dev with Tapestry" to create a > download serv

Re: dojo undefined in IE.6 for tapestry-4.1.2-SNAPSHOT

2007-07-19 Thread Jesse Kuhnert
You have to include dojo first before calling any of its functions. Like the current @Shell component does. You can also delegate this work to the AjaxShellDelegate (as the @Shell component does), but you'll still need to provide it with path information to include the js correctly. See: http:

Two Editable tables on the same page not working

2007-07-19 Thread Ying Lee
Hi, I am having an issue with two Editable tables on the same page. I am using Tapestry 4.0 latest version. Here is the setup: - one page, two editable tables. By "Editable", I mean there are table cells using "TextField" to get user input. The way I do that is to use "[EMAIL PROTECTED]" to

dojo undefined in IE.6 for tapestry-4.1.2-SNAPSHOT

2007-07-19 Thread Ken nashua
I am unable to operate DOJO within my custom head component. Best WEB Application on the planet! href="/styles/tapestryskin/theme.css" />

Re: ResponseBuilder UpdateComponent causing scroll to top of page?

2007-07-19 Thread Joseph Hannon
Jesse, Tapestry's ResponseBuilder.updateComponent() . I could have camel cased it, sorry. Good to know on Ajax and I appreciate it! Thanks, Joseph Jesse Kuhnert wrote: I have no idea what UpdateComponent() is. Is this a new tacos object or something I'm not aware of? By default most aja

Re: Pages Library

2007-07-19 Thread Steve Shucker
Use whatever prefix your library is mapped with. It's the "id" attribute in your *.application file. BTW, I've found that you NEED to include a *.page file for pages in libraries. Maybe it was fixed in the 4.1.2 release, but specless pages in libraries never worked for me. -Steve Paulo R

Re: Pages Library

2007-07-19 Thread Igor Drobiazko
Prefix is the namespace of the library. You define it in your app.application like this: 'contrib' is the namespace/prefix. On 7/19/07, Paulo Ramos <[EMAIL PROTECTED]> wrote: Thanks How do i call the pages?? What prefix?? Paulo Ramos - Portugal Renat Zubairov escreveu: > That's quite a f

Re: InlineEditBox questions

2007-07-19 Thread Julian Wood
https://issues.apache.org/jira/browse/TAPESTRY-1656 J On 18-Jul-07, at 7:15 PM, Jesse Kuhnert wrote: Good point. If you add a JIRA issue for it it should be super easy for to add a "listener" parameter. On 7/18/07, Julian Wood <[EMAIL PROTECTED]> wrote: I've been playing with InlineEditB

Re: [4.1.2] OGNL bug?

2007-07-19 Thread Julian Wood
http://jira.opensymphony.com/browse/OGNL-110 J On 18-Jul-07, at 7:21 PM, Jesse Kuhnert wrote: Ah yes - please do file it. (with as much of the details/types / etc as possible) http://jira.opensymphony.com/browse/OGNL You should be sure to try 2.7.1-SNAPSHOT before filling just to save a

Re: Pages Library

2007-07-19 Thread Paulo Ramos
Thanks How do i call the pages?? What prefix?? Paulo Ramos - Portugal Renat Zubairov escreveu: That's quite a fancy feature of Tapestry, I didn't expected to find it but it's actually there and woking See http://bookie.googlecode.com/svn/trunk/bookie-framework/src/main/java/org/bookie/framew

Re: Pages Library

2007-07-19 Thread Hugo Palma
Yep http://tapestry.apache.org/tapestry3/doc/TapestryUsersGuide/spec.page.html Mark Stang wrote: Does this work in 3.x? regards, Mark Mark J. Stang Software Engineer office: +1 303.468.2900 Ping Identity -Original Message- From: Renat Zubairov [mailto:[EMAIL PROTECTED] Sent: Thu 7

Re: Pages Library

2007-07-19 Thread Hugo Palma
Sure there is. Just create the .page, template and class in your library jar. Then add something like this to you library spec file: Paulo Ramos wrote: Hi all, I have a group of Tapestry pages that are equal in 3 different projects. I have created a Library with some shared components, but

RE: Pages Library

2007-07-19 Thread Mark Stang
Does this work in 3.x? regards, Mark Mark J. Stang Software Engineer office: +1 303.468.2900 Ping Identity -Original Message- From: Renat Zubairov [mailto:[EMAIL PROTECTED] Sent: Thu 7/19/2007 10:18 AM To: Tapestry users Subject: Re: Pages Library That's quite a fancy feature of Tap

Re: Pages Library

2007-07-19 Thread Renat Zubairov
That's quite a fancy feature of Tapestry, I didn't expected to find it but it's actually there and woking See http://bookie.googlecode.com/svn/trunk/bookie-framework/src/main/java/org/bookie/framework/BookieMail.library You can put pages in the library declaration. Reference to the page should

Pages Library

2007-07-19 Thread Paulo Ramos
Hi all, I have a group of Tapestry pages that are equal in 3 different projects. I have created a Library with some shared components, but there is a way to do the same with the pages? Thank's for your time. Paulo Ramos - Portugal --

Re: user access control

2007-07-19 Thread Chris Lewis
Andrea, I will look more into JFly, but those from 2 files I can't see any authentication/access control happening. Again, I am just getting started with Tap, so my oversight is likely due to that. thanks again chris Andrea Chiumenti wrote: like mine :), anyway On 7/18/07, Siddhartha

Re: Does Tapesty 4.1.2 allow user calling form.onsubmit()?

2007-07-19 Thread Andrea Chiumenti
no ! use dojo.event.connect instead. I haven't a running T4 application under my eyes, so take a look to the src/html. You should be able to seethe generated code. But is you put an hidden @Submit into your application and then call its click method it's a quicker solution. kiuma On 7/19/07, [E

Re: security in Tapestry

2007-07-19 Thread Renat Zubairov
Another possibility is that user is not authenticated :) On 19/07/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: and maybe your web.xml is not correct! On 7/19/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > First - you should be able to "inject" that request object instead of > going > throu

Does Tapesty 4.1.2 allow user calling form.onsubmit()?

2007-07-19 Thread odas2002
I have a form containing a button which uses onclick to submit the form.The button is like: id="insertButton" value="Update" /> And SubmitForm is as this, submitForm = function( form ){ if( form.onsubmit() !== false ) { form.submit(); } }

Re: T3: OutOfMemory on ExprssionBinding and StaticBinding

2007-07-19 Thread Jesse Kuhnert
4.1.2 has a robust page pool "built in" that expires pages automatically. On 7/19/07, Nick Westgate <[EMAIL PROTECTED]> wrote: Hi Rudie. A few extra notes ... One problem was permgen being filled by Tapestry's class creation/instrumentation, and the other is that the default Pool only adds pa

Re: T3: OutOfMemory on ExprssionBinding and StaticBinding

2007-07-19 Thread Nick Westgate
Hi Rudie. A few extra notes ... One problem was permgen being filled by Tapestry's class creation/instrumentation, and the other is that the default Pool only adds pages - it never removes or limits them. If you check old Tapestry 3 era posts about "out of memory" you'll also see some recommend

Re: [T5] redundant declaration of meta tag

2007-07-19 Thread Nick Westgate
Serge: The decoratePageResponseRenderer() is not needed in 5.0.5, but the Utf8Filter (or your encoding of choice) still seems to be. Marcelo: Things are fine for me with no meta tags. Forget them. Tapestry is complaining that your template is not UTF-8 encoded. Load it in Eclipse or a decent edit

RE: T3: OutOfMemory on ExprssionBinding and StaticBinding

2007-07-19 Thread Rudie Ekkelenkamp
Hi Nick, Thanks for the suggestion. We're already using a custom Engine class, so it shouldn't be too hard to create a custom Pool. Cheers, Rudie. -Oorspronkelijk bericht- Van: Nick Westgate [mailto:[EMAIL PROTECTED] Verzonden: donderdag 19 juli 2007 14:28 Aan: Tapestry users Onderwe

Re: [T5] redundant declaration of meta tag

2007-07-19 Thread Marcelo lotif
Serge, that is the point. If i remove it from the pages and let it just on the layout it give me the error, and it's wrong, since the pages are wrapped by the layout. And the generated html looks creepy with a meta tag in the middle of the code since there's another one on the head that's supposed

Re: [T5] redundant declaration of meta tag

2007-07-19 Thread SergeEby
Hi. I believe this patch is included in 5.0.5, therefore no longer needed. For the redundant meta tags, you should remove them from the pages, not the layout template. /Serge Nick Westgate wrote: > > Your templates must be UTF-8 encoded too. > > Cheers, > Nick. > > > Marcelo lotif wrote: >

Re: [T5] redundant declaration of meta tag

2007-07-19 Thread Nick Westgate
Your templates must be UTF-8 encoded too. Cheers, Nick. Marcelo lotif wrote: i put it right now, but it's simply not working... =( i just followed the howto but it's gaving me the same error "Failure parsing template context:WEB-INF/Start.html: Invalid byte 2 of 3-byte UTF-8 sequence." am i m

Re: [T5] redundant declaration of meta tag

2007-07-19 Thread Marcelo lotif
i put it right now, but it's simply not working... =( i just followed the howto but it's gaving me the same error "Failure parsing template context:WEB-INF/Start.html: Invalid byte 2 of 3-byte UTF-8 sequence." am i missing something? 2007/7/19, Nick Westgate <[EMAIL PROTECTED]>: Are you using

Re: T3: OutOfMemory on ExprssionBinding and StaticBinding

2007-07-19 Thread Nick Westgate
Is there a way in Tapestry 3 to limit the maximum number of page entries? I don't think it's built in, no. In Tapestry 4 there is the org.apache.tapestry.page-pool-max-active setting, but it doesn't seem to be available for Tapestry 3. Maybe any other suggestions on how to avoid this large nu

T3: OutOfMemory on ExprssionBinding and StaticBinding

2007-07-19 Thread Rudie Ekkelenkamp
Hi, We're running a webapplication using tapestry 3.0.3, spring and hibernate and it performs quite well. Unfortunately during peak hours we run into OutOfMemory errors. Using jhat we analyzed the memory dump and noticed a lot of ExpressionBinding and StaticBinding instances. I assume this occurs

Re: [T5]How to submit a hidden value?

2007-07-19 Thread Nick Westgate
Yeah, well done. Writing components in Tapestry is so easy and fun. :-) You can probably delete the _request and have an empty processSubmission() too. Cheers, Nick. Donyee wrote: The new code works fine! public class HiddenField extends AbstractField { @Parameter(required = true, princi

Re: [T5]How to submit a hidden value?

2007-07-19 Thread Donyee
The new code works fine! public class HiddenField extends AbstractField { @Parameter(required = true, principal = true) private String _value; @Inject private Request _request; final void afterRender(MarkupWriter writer) { writer.end(); //

Re: [T5]How to submit a hidden value?

2007-07-19 Thread Nick Westgate
Sure. It should be pretty simple. First, please define "doesn't work". Does anything get written into the html? Also, you probably want to extend AbstractField, not AbstractTextField. Cheers, Nick. Donyee wrote: I need to submit a hidden value, so i write like this:(copy from this TextField)

Re: security in Tapestry

2007-07-19 Thread Andrea Chiumenti
and maybe your web.xml is not correct! On 7/19/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: First - you should be able to "inject" that request object instead of going through so many get calls: public abstract WebRequest getRequest(); Define that property and it will all work magically. ..

Re: is json supported in tapestry-4.0 ?

2007-07-19 Thread Andrea Chiumenti
... ah yes I've remember that tacos autocompleter is scriptaculous based :) sorry. On 7/19/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I don't think tacos has that either. On 7/18/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: > > no, at least i you don't use tacos (if I remember) > > kiuma

[T5]How to submit a hidden value?

2007-07-19 Thread Donyee
I need to submit a hidden value, so i write like this:(copy from this TextField) public class HiddenField extends AbstractTextField { @Override protected final void writeFieldTag(MarkupWriter writer, String value) { writer.element("input", "type", "hidden", "name",