Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Harald Geritzer
hi chris, after having a second look at your code i think you don't even need the replacement at all as the new version uses the "replaceTextArea()" instead of assigning the text via javascript. in writeScript() the replacement of \r,' occurs but _value is written out before in afterRender()

Re: [T5] Is it possible to receive uploaded files from non-tapestry pages?

2008-04-24 Thread Ken
Hi, again. I tried to using servlet for file uploading. I wrote codes below. Then selected a file and submitted. But output is only like this: Content-Type: multipart/form-data; boundary=... Content-Length: 4699 Command: FileUpload No "#"-s are displayed. I excuted same code on Tomc

Re: Probable zone update bug

2008-04-24 Thread Alex.Hon
https://issues.apache.org/jira/browse/TAPESTRY-2369 Peter Stavrinides wrote: > > Hi All, > > A colleague of mine has discovered an anomaly with the the latest t5 > snapshot, it came up from April 23's nightly build jars. Here's a simple > example where this happens. If the action link is moved

where does onActivate method's pramameter come from?

2008-04-24 Thread luna_guo
i have the following code: int onPassivate(){ System.out.println("passivate is running"); return 3; } void onActivate(int a){ System.out.println("onActivate:"+a); } void onActivate(){ Sys

Re: t5.0.11 help in update my own components

2008-04-24 Thread 孟凡振
Thank u for ur warm answer,your suggestion give me some idea indeed. but I want to code something special. first, a select(A) is rendered for ready,when a onchange event is activated,there will be another select(B) which is a children set of some value in select(A) is rendered...and it is in t

Re: EventListener and PropertySelection (Solution)

2008-04-24 Thread Kalle Korhonen
Here's a solution that's still a bit ugly but at least a little less drastic than commenting out parts of Dojo... Override dojo.dom.isNode in your code as follows: dojo.dom.isNode=function(wh){ if(typeof Element=="function"){ try{ //return wh instanceof Element; return Object.isEl

答复: Strange return for grid component

2008-04-24 Thread 滕训华
Yes,I think you are right,follow is the relate source files === CustomerList.tml http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> ${message:label_searchTitle}:

[T5] component is not Datefield format for dd / mm / yyyy?

2008-04-24 Thread Estevam Henrique Portela Mota e Silva
Hi, Do I need to format dd / mm / is standard in Brazil but not worked. Only worked 5.0.9 When can test, which is different 5.0.9 and 5.0.11 Start.java (source) Public Class Start { @ Persist Date _dateTest private; GetDateTest public Date () (return _dateTest;) public void setDateTest (Dat

Re: Is it possible to receive uploaded files from non-tapestry pages?

2008-04-24 Thread Ken
Hi, Dmitry Thanks for your advice. > May be it possible but will be hard to achieve, because T5 (you use T5, > don't you?) use hidden fields with internal information with every form. > Without this information form can't be processed. Yes, I am using 5.0.11. I should to write so. > As for your

[T5] - 5.0.11 - Componente é Datefield não formato para dd/mm/yyyy?

2008-04-24 Thread Estevam Henrique Portela Mota e Silva
Hi, Do I need to format dd / mm / is standard in Brazil but not worked. Only worked 5.0.9 When can test, which is different 5.0.9 and 5.0.11 *Start.java (source) * Public Class Start { @ Persist Date _dateTest private; GetDateTest public Date () (return _dateTest;) public void setDateTes

Re: EventListener and PropertySelection (Solution)

2008-04-24 Thread Kalle Korhonen
I just run into the same exact thing, using Tap 4.1.5, dojo that comes with it, propertyselection and an eventlistener as well as prototype. Anybody know if this is fixed in a newer snapshot, if there is a bug open on this or any (better) workaround? Kalle On Sat, Oct 27, 2007 at 9:41 AM, lt <[EM

Re: [T5] Colons in element ids?

2008-04-24 Thread Julian Wood
Of course, IE7 doesn't recognize that escape character - I would imagine IE6 is the same - and so totally ignores the css rule. :-( J On Apr 22, 2008, at 2:05 PM, Julian Wood wrote: Sweet! That is a good solution. J On Apr 22, 2008, at 1:57 PM, Jason Lea wrote: or you could try looking a

Re: My breadcrumb component from T4 to T5

2008-04-24 Thread Jan Vissers
Really appreciate the feedback! Although the approach I currently use works, yours looks far cleaner and better. I'll have a go at it tomorrow and let you know how this works out. Again - really appreciate it. -J. >> One 'event' is when the application flows from one page to another. > ... >> Th

Re: [T4]hivemind variables in components

2008-04-24 Thread Marcus Schulte
condition="meta:amplafi.production" ? On 23/04/2008, Patrick Moore <[EMAIL PROTECTED]> wrote: > Hi there -- > > O.k. I feel silly -- but how do I use hivemind variables directly in a > component. I know how to pass hivemind variables to services. But how to use > those values in the components?

Re: T5: accessing another page/component's message catalog

2008-04-24 Thread Waldo Mendoza
Adam Zimowski gmail.com> writes: > > Is there a way to access message catalog of some page or component > from another page or component? I know of two ways to do this, but > both are "hacks" IMHO: > > class SomePage { > > @Inject > private Messages _messages; > > public getMessages() { > re

Re: T5: Select component + onchange()

2008-04-24 Thread Sven Homburg
here some sample code sequences your page class (simplified): @Component(parameters={"event=change" "onCompleteCallback=onSelect1Changed"}) @Mixins("t5components/OnEvent") private Select _select1 @Component private Select _select2 @OnEvent(component = "select1", value = "change") JSONObject sel

Re: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread Josh Canfield
The way checkbox works out of the box you need to coordinate with the loop via the index or value parameter, as others have suggested. This works but can be dangerous if your loop source happens to change between the form render and the form submit. Try this extension so you can bind a data value t

Re: AW: Automatic class reloading on Tomcat 6 not working for me

2008-04-24 Thread Don Ryan
On 24 Apr 2008, at 07:14, Peter Stavrinides wrote: Tomcat in eclipse has an Automatic publishing feature, which is not to be confused with live class reloading. I'm currently using Tomcat 6 with Eclipse/WTP. I'm not publishing anything as I'm using the "Serve modules without publishing" op

Re: logging (howto?)

2008-04-24 Thread Josh Canfield
> Injection does not work everywhere. As > I said I have a Dispatcher, which does not get the Logger injected (I get > NPE). But if I obtain the logger using: For services you pass the logger as a constructor parameter and when it is built Tapestry gives you a reference. Take a look at the Tapestr

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Chris Lewis
Harald, Can I convince you to file an issue, if that is an issue? http://code.google.com/p/tapestry5-components/issues/list If you can, provide an example situation that would cause a problem. thanks! Harald Geritzer wrote: > Chris Lewis schrieb: >> Hi Harald, >> >> tapestry5-components has an

Re: My breadcrumb component from T4 to T5

2008-04-24 Thread Josh Canfield
> One 'event' is when the application flows from one page to another. ... > The other event is when a user clicks on one of the individual crumbs on > the breadcrumb path, Ah... I think I understand. I'm pretty sure then that the events you are using don't work they way you think. Have you put tra

T5: accessing another page/component's message catalog

2008-04-24 Thread Adam Zimowski
Is there a way to access message catalog of some page or component from another page or component? I know of two ways to do this, but both are "hacks" IMHO: class SomePage { @Inject private Messages _messages; public getMessages() { return _messages; } } class Foo { @InjectPage private SomePa

Re: T5: Forms - Best Practice

2008-04-24 Thread Geoff Callender
I know Howard appreciates the need for conversations, but he's pretty flat-out. Actually, I'm not sure if there's a JIRA ticket for it. On 24/04/2008, at 7:03 AM, Christoph Jäger wrote: Hi Geoff, it seems your JIRA describes just what I would like to have. I especially like the idea with t

RE: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread Joel Wiegman
I'm a little confused then. Can you be a little more specific with what you're struggling with? I have checkboxes inside t:loops all over the place in my app. On occasion I've had to wrap the actual data object with another bean that has a "selected" property, for example: public class ThingyWr

Re: T5: T5 and EJB3

2008-04-24 Thread Geoff Callender
CG, Sorry, no max version for T5 yet. At the moment min is gradually mutating toward max with each release, but a full max version won't exist for quite a while yet. Regarding authentication and authorisation, I'm investigating jSecurity and when I'm happy with it I'll release a min vers

Re: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread Peter Stavrinides
Hi Joel, I thought my previous posts made it obvious that it is not possible to use the encoder, I normally use a PrimaryKeyEncoder. - Original Message - From: "Joel Wiegman" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Thursday, 24 April, 2008 5:10:00 PM GMT +02:00 Athens, Beirut,

RE: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread Joel Wiegman
Peter, Are you using a DefaultPrimaryKeyEncoder as your encoder? Joel -Original Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: Thursday, April 24, 2008 8:39 AM To: Tapestry users Subject: Re: How to update a list from a checkbox in a loop in t5 Hi Ivan This is precis

Re: T5: Select component + onchange()

2008-04-24 Thread Marcelo Lotif
Yeah, i know this, but none of these responses suit to my needs (maybe a Page response, but this will force a reload)... i tried to return a block with the part of the code that i was trying to change, but i had no success And i don't have the enough knowledge of the JSON api and javascript... So

Re: T5: Select component + onchange()

2008-04-24 Thread Chris Lewis
Unless https://issues.apache.org/jira/browse/TAPESTRY-2286 has been addressed, you cannot respond with JSONArray, but you can with JSONObject. Sven Homburg wrote: > the JSONObject/JSONArray response too > > 2008/4/24, Sven Homburg <[EMAIL PROTECTED]>: > >> the return type is not limited to Stre

Probable zone update bug

2008-04-24 Thread Peter Stavrinides
Hi All, A colleague of mine has discovered an anomaly with the the latest t5 snapshot, it came up from April 23's nightly build jars. Here's a simple example where this happens. If the action link is moved anywhere above the t:zone in the .tml it works. If it is below the zone it does not work.

Re: T5: Select component + onchange()

2008-04-24 Thread Sven Homburg
the JSONObject/JSONArray response too 2008/4/24, Sven Homburg <[EMAIL PROTECTED]>: > > the return type is not limited to StreamResponse. > all you can respond all that tapestry allowes here > http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html > its up to you > > 2008/4/24, Marce

Re: T5: Select component + onchange()

2008-04-24 Thread Sven Homburg
the return type is not limited to StreamResponse. all you can respond all that tapestry allowes here http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html its up to you 2008/4/24, Marcelo Lotif <[EMAIL PROTECTED]>: > > I had the same issue as Leon some days ago (and this seems to b

Re: T5: Select component + onchange()

2008-04-24 Thread Marcelo Lotif
I had the same issue as Leon some days ago (and this seems to be a very common issue), and i tried your component. It's very good, with some ajax, but the return type is a little bit limited for what i was trying to achieve(update a combo with information from another combo, which has your mixin).

Re: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread Peter Stavrinides
Hi Nicholas An encoder is a fundamental Tapestry concept, used when you need to bind your implementation of a translator to a component, it has no effect in this example. The reason why it is not working is because the value property on the checkbox is limited to read only boolean (a getter acc

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Harald Geritzer
Chris Lewis schrieb: Hi Harald, tapestry5-components has an editor component (which uses fck): http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html ty, guess in writeScript(): _value = _value.replace('\r', '\\'); //this is needed for j

Re: T5: Select component + onchange()

2008-04-24 Thread Sven Homburg
try this http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/mixins/OnEvent.html 2008/4/24, Leon Derks <[EMAIL PROTECTED]>: > > Hello > > Is it possible to catch the onChange event from a select component in the > java page? > > I would expect something like: onCha

Re: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread nicholas Krul
Perhaps trimming it back to the minimum might help... if it doesn't fix it, it might help diagnosis. I don't know why this isn't working. 1) remove the id attribute from the checkbox. T5 will generate one, and it will be unique 2) remove the encoder. Just because _I_ don't understand it... and I

T5: Select component + onchange()

2008-04-24 Thread Leon Derks
Hello Is it possible to catch the onChange event from a select component in the java page? I would expect something like: onChangeFromSelect(long id) {} Because I want to update information on my page, based on the value that is selected. How can I do that? Leon ---

Re: logging (howto?)

2008-04-24 Thread János Jarecsni
Like I do now :D cheers, Janos On 24/04/2008, Tomasz Dziurko <[EMAIL PROTECTED]> wrote: > > I'm glad it helped. It's my first succesfull advice in this list :) > Earlier I was only shamelessly asking for help ;) > > Regards > -- > Tomasz Dziurko > > ---

Re: logging (howto?)

2008-04-24 Thread Tomasz Dziurko
I'm glad it helped. It's my first succesfull advice in this list :) Earlier I was only shamelessly asking for help ;) Regards -- Tomasz Dziurko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread Peter Stavrinides
Hi Ivan This is precisely what I tried. - Original Message - From: "Ivan Dubrov" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Thursday, 24 April, 2008 1:59:10 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: How to update a list from a checkbox in a loop in t5 Peter St

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Chris Lewis
Hi Harald, tapestry5-components has an editor component (which uses fck): http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html A fix for this issue has just been committed to svn, if you're interested in an already-integrated version. In any

Re: logging (howto?)

2008-04-24 Thread János Jarecsni
Hi Tomasz, now, that helped! :) With one remark. Injection does not work everywhere. As I said I have a Dispatcher, which does not get the Logger injected (I get NPE). But if I obtain the logger using: Logger log = LoggerFactory.getLogger(MojitoDispatcher.class); it works smoothly. thanks again

Re: Is it possible to receive uploaded files from non-tapestry pages?

2008-04-24 Thread Dmitry Shyshkin
Hi, Ken May be it possible but will be hard to achieve, because T5 (you use T5, don't you?) use hidden fields with internal information with every form. Without this information form can't be processed. As for your stacktrace: You try to change character encoding for request when it is too late fo

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Davor Hrg
This a recommendation from YSlow, because it helps wrowser render page faster by leaving javascript part for the end. you should put your initialization code in onload... Davor Hrg On Thu, Apr 24, 2008 at 2:13 PM, Harald Geritzer <[EMAIL PROTECTED]> wrote: > > hi all, > > is there a special

Re: logging (howto?)

2008-04-24 Thread Tomasz Dziurko
I don't know if my solution is 'suggested-way-of-using-logger-in-t5', but it's working. Here what you need to do: 0. Add to your project jars: slf4j-api slf4j-log4j log4j // not sure if it's necessary commons-logging /// not sure if it's necessary 1. Place log4j.properties file in your Workin

[T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Harald Geritzer
hi all, is there a special reason for rendering the javascript includes on bottom of the page in latest 5.0.12 snapshot? i got a fckeditor on my page and it seems like my editor field wants to initialize the FCKeditor before the script ist even loaded? any hints welcome, harald var edit

Re: T5: T5 and EJB3

2008-04-24 Thread CG
Hi Geoff, Thanks for your link. It could serve as a good start for me. I just wonder , is there a max-package for T5 ? I only saw min package for T5, and I am very interested in the max package feature like authorization, role-user etc. thx On Wed, Apr 23, 2008 at 6:36 AM, Geoff Callender <

logging (howto?)

2008-04-24 Thread János Jarecsni
Hi, I created a request filter and registered with Tapestry. All is working fine. Except for logging. I tried to obtain a logger, but nor inject nor LoggerFactort.getLogger() seems to work, the logs are not seen. I have this in log4j.properties log4j.category.com.mycomp.services.AppModule.Timing

Re: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread Peter Stavrinides
Hi Nicholas This is simply boilerplate code: Archive is a read only boolean (no setter permitted), no model or encoder is available, which = no easy way to update like say if this was a textfield, making the checkbox not very useful in a loop! Peter - Original Message - Fro

Re: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread Ivan Dubrov
Peter Stavrinides wrote: Hi All I this scenario: Have you tried something like this: in .tml: in .java: public boolean isArchived() { return selectedDOA.isArhived(); } public void setArchived(boolean value) { return selectedDOA.setArhived(value); } selectedDOA

Re: Strange return for grid component

2008-04-24 Thread Dmitry Shyshkin
Stacktrace and some source and *.tml code will be helpful. Methods definition is not enough to see the problem 滕训华 write: > I have a grid component in the page of T5 and its sources is got from > db.There is also another search field to filter the records. > > > > I defined 2 method in my servic

Re: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread nicholas Krul
Perhaps some code would help us out. .tml loop & checkbox snippet .java index & getter & setter snippet ? I can only try On Thu, Apr 24, 2008 at 10:54 AM, Peter Stavrinides < [EMAIL PROTECTED]> wrote: > I have also noticed that the value parameter on the checkbox component is > a read only bo

Strange return for grid component

2008-04-24 Thread 滕训华
I have a grid component in the page of T5 and its sources is got from db.There is also another search field to filter the records. I defined 2 method in my service class: List getAllCustomers() List search(String key) when init this page will return all customers it r

Re: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread Peter Stavrinides
I have also noticed that the value parameter on the checkbox component is a read only boolean, so using accessors to write the value is impossible, which confirms the checkbox is not usable in this way in a loop. Peter Stavrinides wrote: Sorry, let me try rephrasing my question: When I click

RE: AW: Automatic class reloading on Tomcat 6 not working for me

2008-04-24 Thread Blower, Andy
You're quite right, this is what's happening rather than the live class reloading. My mistake. > -Original Message- > From: Peter Stavrinides [mailto:[EMAIL PROTECTED] > Sent: 24 April 2008 07:14 > To: Tapestry users > Subject: Re: AW: Automatic class reloading on Tomcat 6 not working for

Re: t5.0.11 help in update my own components

2008-04-24 Thread Sven Homburg
please dont use OnChange, its deprecated. use http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/mixins/OnEvent.htmlinstead 2008/4/24, Chris Lewis <[EMAIL PROTECTED]>: > > Hi, > > I think what you're asking is how to attach application event handlers > (on the serv

Re: My breadcrumb component from T4 to T5

2008-04-24 Thread Jan Vissers
Well, let's see. I use two different handlers because I think there are two different events that manipulate the breadcrumb path. One 'event' is when the application flows from one page to another. This other page must have the opportunity to create its 'crumb' information and have it stored in t

Re: t5.0.11 help in update my own components

2008-04-24 Thread Chris Lewis
Hi, I think what you're asking is how to attach application event handlers (on the server-side like void onChange()) like you would with other components. If I've misunderstood you, I'm sorry. You're first problem is how you create the select element. By manually writing a tag, you're not actually