Re: org.apache.tapestry.page-pool-min-idle

2008-01-18 Thread Kaspar Fischer
On 12.01.2008, at 02:47, Kaspar Fischer wrote: How would I do this? contribution configuration-id=hivemind.FactoryDefaults default symbol=org.apache.tapestry.page-pool-min-idle value=4 / /contribution Or do I have to use something like InfrastructureOverrides? The latter is used to

Re: [4.1] Howto create an ILink for a page

2008-01-18 Thread Ulrich Stärk
You should be able to do something like this: @InjectObject(engine-service:page) public abstract IEngineService getPageService(); and then construct your link like String pageName = SomePage; ILink pageLink = getPageService().getLink(false, pageName); Uli Andy Pahne schrieb: Hello, I have

Re: [4.1] Howto create an ILink for a page

2008-01-18 Thread Igor Drobiazko
You can throw new PageRedircetException(PageName); or you can use the page service: http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/engine/PageService.html To inject the page service, do following: @InjectObject(engine-service:page) public abstract IEngineService

[4.1] Howto create an ILink for a page

2008-01-18 Thread Andy Pahne
Hello, I have a listener method with the return type of ILink. It needs to return ILink, because in some cases the user will be forwarded to external pages and I created those links with new StaticLink(url) In some other cases the listener method should return an ILink to an internal

How to use jquery instead of prototype? Any idea?

2008-01-18 Thread yuan gogo
TIA Best regards!

Re: bidirectional dom interface

2008-01-18 Thread DR_GLoPeL_BouCa
Thiago H de Paula Figueiredo-2 wrote: On Jan 17, 2008 12:12 PM, DR_GLoPeL_BouCa [EMAIL PROTECTED] wrote: Hello people, I've the similar problem, the browser not display the response of ajax submit, I've form with submit async=true and updateComponents=ognl:customerTable, when the ajax

Re: T5: dynamically set disabled attribute

2008-01-18 Thread Eric BIANCHI
I think I'm doing something wrong here Following Howard post, I tried : @Inject private BindingSource _source; public void setupRender () { Binding b = _source.newBinding(Parameter Disabled, _componentSources .getEmbdededComponent(myComponentId).getComponentResources(), prop, disabled);

Custom service to provide files from DB: getOutputStream() has already been called for this response

2008-01-18 Thread Kaspar Fischer
Hi! I have a custom service that downloads images/files from a DB: public void service(IRequestCycle cycle) throws IOException { // extract node-ref String nodeUID = cycle.getParameter(node); NodeRef nodeRef = new NodeRef(NODE_REF_PREFIX + nodeUID); try { // login to

Utf8Filter needs implementing HttpServletRequestFilter instead of RequestFilter when uploading file.

2008-01-18 Thread Yoshikazu Kuramochi
Hi, Utf8Filter (http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding) does not work properly when uploading file. MultipartServletRequestFilter is executed before Utf8Filter, so request.getCharacterEncoding() returns null in MultipartDecoderImpl and default character encoding is used to decode

T5: Strategy for pages that edit beans

2008-01-18 Thread Hugo Palma
Imagine the following use case: A page to register a new user. I have a User class so i'm all set. The page class looks something like: @Meta(tapestry.persistence-strategy=flash) // because of the validation tracker thing public class Register { @Persist private User _user = new User(); public

Re: Tapestry 5 book

2008-01-18 Thread Massimo Lusetti
On Jan 18, 2008 4:15 PM, Mahen Perera [EMAIL PROTECTED] wrote: Does anyone know the contents of the Tapestry 5 book. Does it include T5 Ajax related stuff as well? ,, What T5 features does it explain.. A simple search through the mailing lists archive would have revealed the publisher site

Re: bidirectional dom interface

2008-01-18 Thread Kevin Menard
Is customerTable a Tapestry component or is it an ID you just attached to some element? -- Kevin On 1/17/08 10:12 AM, in article [EMAIL PROTECTED], DR_GLoPeL_BouCa [EMAIL PROTECTED] wrote: Hello people, I've the similar problem, the browser not display the response of ajax submit, I've

Re: [T4] AJAX: reender whole page or just send back the markup of the div

2008-01-18 Thread Kaspar Fischer
On 18.01.2008, at 13:51, Pai911 wrote: Why do you open the link in new window? The scenario should be: 1. You click on a link 2. The link invoke a listener (Asynchrounously) and update some attribute of the Page class 3. Some part of the page is re-rendered asynchronously with the new

Re: [T4] AJAX: reender whole page or just send back the markup of the div

2008-01-18 Thread Pai911
Why do you open the link in new window? The scenario should be: 1. You click on a link 2. The link invoke a listener (Asynchrounously) and update some attribute of the Page class 3. Some part of the page is re-rendered asynchronously with the new data. Did you try the code sample I wrote?? If

Re: T5: Pretty URL

2008-01-18 Thread Fernando Padilla
But you can always put in a normal Webapp Filter ahead of Tapestry that would munge the url as you see fit (and capture the information into a Request.attribute).. I do this myself in a different way.. (clip off the leading directory in the url). But here is some pseudo-code:

Tacos 4.1.1 and Tapestry 4.1.3

2008-01-18 Thread DR_GLoPeL_BouCa
Hi, is tacos 4.1.1 work on tapestry 4.1.3, a demo with tacos 4.1.0 and Tapestry 4.1.2 work fine but when change to another version a exception throws. - org.apache.hivemind.ApplicationRuntimeException - Could not parse specification null. what's wrong, i check dependencies on Tacos site,

Re: bidirectional dom interface

2008-01-18 Thread DR_GLoPeL_BouCa
this part of my code form input type=submit jwcid=@Submit class=boton value=Aceptar tag=AgregarProveedor selected=ognl:comando async=true updateComponents=customerTable/ div jwcid=[EMAIL PROTECTED] table tr jwcid=@For source=ognl:customers value=ognl:customer element=tr td

Re: [T5] Choosing components at runtime

2008-01-18 Thread Daniel Jue
Seems like it's back to the static structure, dynamic content (the mantra of Tapestry). So yes, one way people are using is to have all the possible components injected in the parent (page/component) and then the desired component is chosen later using logic you code. I have one page that

Re: T5 Proposal: Provide a Mechanism to Force Cache Flushing

2008-01-18 Thread Howard Lewis Ship
Obviously, we can't predict every possible use case ahead of time. On Jan 16, 2008 2:56 PM, David Kendall [EMAIL PROTECTED] wrote: I would like to have a way to force tapestry to flush/reload its caches and I am wondering how best to get such functionality incorporated into the Tapestry 5

Re: T5 Proposal: Provide a Mechanism to Force Cache Flushing

2008-01-18 Thread Daniel Jue
This is bordering on a way around the static structure, dynamic content vision! Not that we need to weasel around that vision to make great applications, but this is a way to have the best of both worlds--the performance of semi-cached templates/classes with the flexibility of live structure

Re: T5 Proposal: Provide a Mechanism to Force Cache Flushing

2008-01-18 Thread Daniel Jue
dangerous ideas This could be an interesting way of running an application straight from a DB backend, where the DB can act as a versioning system if needed. A new updated class or template is uploaded to the DB, and the flushCache() causes the CTS service to pick up the newest template

Re: T5: Strategy for pages that edit beans

2008-01-18 Thread Howard Lewis Ship
How about an onPrepare() event handler method to reset the _user field to a new User instance? On Jan 18, 2008 8:44 AM, Hugo Palma [EMAIL PROTECTED] wrote: Imagine the following use case: A page to register a new user. I have a User class so i'm all set. The page class looks something like:

Re: Tapestry 5 book

2008-01-18 Thread Daniel Jue
I don't think it will, since we don't even have form support under zones yet. If there is anything, it would be the autocomplete component. On Jan 18, 2008 10:15 AM, Mahen Perera [EMAIL PROTECTED] wrote: Hi all, Does anyone know the contents of the Tapestry 5 book. Does it include T5 Ajax

Re: T5 Proposal: Provide a Mechanism to Force Cache Flushing

2008-01-18 Thread Michael Lake
This is precisely the stuff I've been working on for the past few weeks. I too am successful with pulling templates from a DB and so far, so good. I'll need to dive back into the code to see if there's a way to do a template parse and be able to catch an exception if there's an error.

[ANN] t5components - release 0.5.3

2008-01-18 Thread Sven Homburg
Hi there, the t5components release 0.5.3 is out now. project page with demo click here http://213.160.23.119:8080/t5components/ - best regards Sven -- View this message in context: http://www.nabble.com/-ANN--t5components---release-0.5.3-tp14966843p14966843.html Sent from the Tapestry

Re: Tacos 4.1.1 and Tapestry 4.1.3

2008-01-18 Thread Andreas Andreou
tacos 4.1.1 works with all of them... If you're using maven, exclude tapestry4.1.2 when depending on tacos On Jan 18, 2008 9:18 PM, DR_GLoPeL_BouCa [EMAIL PROTECTED] wrote: Hi, is tacos 4.1.1 work on tapestry 4.1.3, a demo with tacos 4.1.0 and Tapestry 4.1.2 work fine but when change to

Re: [T5] Choosing components at runtime

2008-01-18 Thread John Owen Atala
Thanks, that should be usefull, but doesn't help on the issue that to get an instance of a component it must be injected somewhere, and that somewhere's template must have every component that eventually you will use (because I can't inject a component in a class whose template doesn't have it),

Re: [T5] Choosing components at runtime

2008-01-18 Thread John Owen Atala
But how do you make inject works? Do you have a template with every component? I don't care if a i must inject every component, but i don't wanna create a usefull template with every component too... How do you do that? Because if a try to inject a component that doesn't exist on template that

Re: @ApplicationState fields keyed by class, not instance

2008-01-18 Thread kwaclaw
Howard Lewis Ship wrote: Long experience has shown that these objects tend to be singletons. It's generally things like the user's identity or account information or shopping basket. Yes, that is mostly true. Howard Lewis Ship wrote: Earlier versions of Tapestry uses a mechanism

Re: T5: Reading context before persistent fields are read

2008-01-18 Thread Ted Steen
Hmm, i must have been very tired when i tested this yesterday. It doesnt work. The ComponentActionRequestFilter is handled after the persistent fields are gathered. So my activation context variable that I need when gathering persistent fields is not set before I gather the fields. I have tried

Re: [T4] escaping text for Javascript

2008-01-18 Thread Matt Brock
Kalle Korhonen-2 wrote: If you read my sample, you'd see I was using an HTML entity reference. Take a look at your sample--I think you forgot to escape an ampersand. -- View this message in context: http://www.nabble.com/-T4--escaping-text-for-Javascript-tp14826733p14949398.html Sent

Re: EventListener on components within a @For loop

2008-01-18 Thread Christian Dutaret
I still use this workaround. To have it work with T4.1.3, I think you just need to set the event on a form component (I use the submit button). dojo.byId('submit').ajaxEvent=function(json) {}; then : @EventListener(targets = submit, events = ajaxEvent) public void onAjaxEvent(IRequestCycle

Tapestry 5 book

2008-01-18 Thread Mahen Perera
Hi all, Does anyone know the contents of the Tapestry 5 book. Does it include T5 Ajax related stuff as well? ,, What T5 features does it explain.. Thanks The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise