Re: custom datasqueezer in t4?

2005-07-14 Thread Robert Zeigler
I haven't really jumped into the hivemind stuff yet, so I'm not sure... I /think/ that the @Inject would only work with pages/components... but I think you could still have a hivemind config file that would inject the stuff into your data squeezer (someone correct me if I'm totally off base, will y

Re: A couple questions about Tapestry

2005-07-14 Thread Robert Zeigler
For development purposes, try setting the jvm option: org.apache.tapestry.disable-caching=true That will slow down page loading time a bit, but your .page/.jwc and template file changes will show up on refresh. Robert Preston CRAWFORD wrote: > Of course I will Google these as well, but as we're o

Re: PIcasso custom ServiceEncoder

2005-07-14 Thread Howard Lewis Ship
Use object="instance:foo.bar.Baz" or object="service:mymodule.MyService"; The former instantiates an instance of the class; the latter is a reference to a HiveMind service. In either case, the object so reference must implement the right interface. On 7/14/05, Eli Doran <[EMAIL PROTECTED]> w

A couple questions about Tapestry

2005-07-14 Thread Preston CRAWFORD
Of course I will Google these as well, but as we're on a time crunch I thought I'd ask here as well in the hopes someone knew the answer. Basically we're creating a new J2EE application and trying to suss out the directory structure of the application and how it's organized in the source tree. A n

Test2

2005-07-14 Thread Asha
I'm new to this field, i wud like to know basics abt tapestry. Mail posted through roomity.com id - 1121384796167

Re: custom datasqueezer in t4?

2005-07-14 Thread Henri Dupre
How could I do that? Can I just do an @Inject inside my DataSqueezerAdapter? Henri. On 7/14/05, Robert Zeigler <[EMAIL PROTECTED]> wrote: > Couldn't you just inject it with hivemind? > > Robert > > Henri Dupre wrote: > > Thanks!! I have another tricky issue: in my datasqueezer, I need to > >

Test2

2005-07-14 Thread Asha
I'm new to this field, i wud like to know basics abt tapestry. Mail posted through roomity.com id - 1121384572275 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Article 2 for testing

2005-07-14 Thread Patrick Casey
You really need to stop spamming the message list with these borderline gibberish messages or the list manager is going to pull your privledges. I could four variants on "I need help" in the last 3 hours. You've also already been given one very useful response pointing you to eit

PIcasso custom ServiceEncoder

2005-07-14 Thread Eli Doran
How do you put a customer service encoder into your hivemodule. tapestry.url.xml has the schema and the configuration point info but i can't seem to use the "encoder" element. I can use all the subelements from the schema like page-service-encoder just fine. specifically, for the tag what do y

Test2

2005-07-14 Thread Asha
I'm new to this field, i wud like to know basics abt tapestry. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Article 2 for testing

2005-07-14 Thread Asha
Tapestry help needed. Basics,in simple way,can anyone explain. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Multiple Select

2005-07-14 Thread Dan  
aaah...thats a gotcha! i had a listner on a submit in the form that checked for size...movie the checking to listner of the form and voila! ... yes the rewind..i keep forgettin it ..grrr .. thx again rob From: Robert Zeigler <[EMAIL PROTECTED]> Reply-To: "Tapestry users" To: Tapestry users S

Re: Multiple Select

2005-07-14 Thread Robert Zeigler
yeah, so, if you move the stuff around like they should be moved around and then submit the form, then /after/ the palette component has been rendered in the "rewind" stage of the submission, your collection should be updated; where are you checking the collection size? Robert Dan wrote: > oops

Re: Multiple Select

2005-07-14 Thread Dan  
oops i think i spoke too soon... so when u click on the select/deselect btns in the palette wouldnt those update the collection that is being referred by the selected property? (visit.user.spokenLanguages from the eg below) i do a get on this collection and i dont see any changes to its size? i

Re: tapestry basics

2005-07-14 Thread Danny Mandel
Hi. Any one of the tutorials on this page http://wiki.apache.org/jakarta-tapestry/TapestryTutorials ought to be able to cover the basics. If you find that those aren't in-depth enough, pick up a copy of Howard's book (Tapestry in Action) as it is excellent. Good luck, Danny Asha wrote: t

tapestry basics

2005-07-14 Thread Asha
tapestry basics.plz anybody help me with basics. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Tapestry basics(test)

2005-07-14 Thread Asha
I'm new to this field, i wud like to know basics abt tapestry. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Catching file upload max size reached and showing nice information

2005-07-14 Thread Per Olesen
Hi Bernd, On Thursday 14 July 2005 12:56, you wrote: > I have a custom activateExceptionPage() in my engine that redirects to > a special page displaying the error if the given cause is "instanceof > FileUploadException". I know this is not strictly a file size > exception, but it works for me. I

Re: getEngine().getVisit() equivalent in tp4?

2005-07-14 Thread Paul Ferraro
Did you read the documentation section of Application State Objects (ASOs)? http://jakarta.apache.org/tapestry/UsersGuide/state.html#state.aso Paul Henri Dupre wrote: getEngine().getVisit() has been deprecated and if I understand with ASO, a call to getVisit() will create the visit. So how to

Re: Javascript - looping

2005-07-14 Thread Paul Ferraro
Your .script file should look something like this: Specification 3.0//EN" "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd";>

Re: About engine

2005-07-14 Thread Jamie Orchard-Hays
The only thing that comes to mind is that you have caching off on your dev machine, but why that would cause this difference is beyond me! Henry Chen wrote: Jamie, Thanks! This worked! I just put one line ahead: getPage().getVisit() and everything is fine now. One thing I still don't under

Re: Multiple Select

2005-07-14 Thread Dan  
Ahh...i understand my mistake. thanks so much rob. ur help is invaluable! i had my code setup exactly the same...but heres wat i wasnt paying attn to: i was trying to add "instances" to the selected list which were "not" part of the model...and thus they would never appear! rocking! its works du

RE: About engine

2005-07-14 Thread Henry Chen
Jamie, Thanks! This worked! I just put one line ahead: getPage().getVisit() and everything is fine now. One thing I still don't understand is why my machine works properly without this while I have to add this for the server? Henry -Original Message- From: Jamie Orchard-Hays [mailto:[

Re: Question about validation

2005-07-14 Thread JIM WEAVER
You can access the delegate declared in your page specification and call record on it: IValidationDelegate delegate = (IValidationDelegate) getBeans().getBean("yourDelegateName"); delegate.record("Password must match verify password", ValidationConstraint.CONSISTENCY); We have had some problem do

Re: Multiple Select

2005-07-14 Thread Robert Zeigler
Dan wrote: > hmm..i dont recognize the link though, between overriding equals and > initializing the selected List ? > maybe i m not on the same page as u :( i assume u r referring to > overriding equals of the objects(model) inside the list? if thats the > case, i already ve done that. could yo

Re: custom datasqueezer in t4?

2005-07-14 Thread Robert Zeigler
Couldn't you just inject it with hivemind? Robert Henri Dupre wrote: > Thanks!! I have another tricky issue: in my datasqueezer, I need to > access a spring object. How can I access it? I used to get the > reference with a call to getEngine().getGlobals and get my main > spring object, but no

Re: fireObservedChange

2005-07-14 Thread Robert Zeigler
Dan's got the right idea. :) in your application specification, you can do Then the "Bar" object is the "visit" object. Then, from any page, you can call "getVisit()" to get the visit. Inside the visit object, you can store whatever information you want. The visit is automatically persisted to th

Re: Multiple Select

2005-07-14 Thread Dan  
hmm..i dont recognize the link though, between overriding equals and initializing the selected List ? maybe i m not on the same page as u :( i assume u r referring to overriding equals of the objects(model) inside the list? if thats the case, i already ve done that. could you please elaborate m

Re: Multiple Select

2005-07-14 Thread Robert Zeigler
Yes, you can. You'll probably want to override "equals" to perform some check other than a==b. :) Robert Dan wrote: > i m a bit confused, so sorry if this is a repeat. > in the palette component, cant i initialize the "selected" side with a > List of objects? > in the pageBeginRender, i do a se

Re: custom datasqueezer in t4?

2005-07-14 Thread Henri Dupre
Thanks!! I have another tricky issue: in my datasqueezer, I need to access a spring object. How can I access it? I used to get the reference with a call to getEngine().getGlobals and get my main spring object, but now there doesn't seem to be any direct way. On 7/14/05, Eli Doran <[EMAIL PROT

RE: fireObservedChange

2005-07-14 Thread Dan  
if u need acess to user info on all pages after login, i would store the user info in a Visit object, and then access the user info from the visit. you could also make a component of yours and "embed" this visit object in the components java code. that way in all ur other html pages, just includ

Re: Multiple Select

2005-07-14 Thread Dan  
i m a bit confused, so sorry if this is a repeat. in the palette component, cant i initialize the "selected" side with a List of objects? in the pageBeginRender, i do a setXXX(List) but nothing comes up when the page is rendered :( although i got the model side working...thanks rob! From: Rob

fireObservedChange

2005-07-14 Thread Patrick Kelly
For my project, (using Tapestry 3.0.2) I have a login page that gets and set the username as a string userName. I need to have access to this username during the session on more than 1 page. Currently in the login page java I call "Tapestry.fireObservedChange(this, "userName", userName);" on

RE: SPAM-LOW: Re: Tassel Documentation

2005-07-14 Thread Kirk Gray
Thank you Robert for the quick and informative reply - I will give it a go! ___ -Original Message- From: Robert Zeigler [mailto:[EMAIL PROTECTED] Sent: Thursday, July 14, 2005 11:09 AM To: Tapestry users Subject: SPAM-LOW: Re: Tassel Documentation Kirk Gray wrote: > C

Re: About engine

2005-07-14 Thread Jamie Orchard-Hays
Any time you start using the Visit object, that triggers it. Jamie Orchard-Hays wrote: My first thought is that it has something to do with not having a session attached yet. Others can correct me if I'm wrong, but I think Tapestry won't attach an engine to your session until it's needed. Perh

RE: About engine

2005-07-14 Thread Henry Chen
Thank you. I suspect this too. But how can I "force" Tapestry to attach the engine to the session? And if it was not attached, then when engine.setLocale() was called, it should just give an error? Henry -Original Message- From: Jamie Orchard-Hays [mailto:[EMAIL PROTECTED] Sent: Thursda

Re: Multiple Select

2005-07-14 Thread Dan  
thanks rob! that worked just fine with my list collection. 1 more ques...if i had to implement a similar class for Sets, how would one handle the getOption and getLabel? I mean, since sets dont seem to gaurantee an order...would it be tricky to implement the fore-mentioned two methods? -Dan

RE: About engine

2005-07-14 Thread Henry Chen
Thank you. I suspect this too. But how can I "force" Tapestry to attach the engine to the session? And if it was not attached, then when engine.setLocale() was called, it should just give an error? Henry -Original Message- From: Jamie Orchard-Hays [mailto:[EMAIL PROTECTED] Sent: Thursda

Re: About engine

2005-07-14 Thread Jamie Orchard-Hays
My first thought is that it has something to do with not having a session attached yet. Others can correct me if I'm wrong, but I think Tapestry won't attach an engine to your session until it's needed. Perhaps your setlocale isn't sticking until you've got a Tapestry session going. Try explori

Re: Retrieve values from a control on another page

2005-07-14 Thread Robert Zeigler
Yeah, you could probably do something like that. Steve, Can you give more details about what you're trying to accomplish? Robert Darío Vasconcelos wrote: > Mmmhhh... I'm thinking you might somehow (with an AJAX thing, maybe) > make the popup window set the property in the visit, then your method

Re: custom datasqueezer in t4?

2005-07-14 Thread Eli Doran
For a workaround i created a subclass of DataSqueezerImpl and register my custom adaptors in the c'tor. to use it i put the text block below in my hivemodule. you only need extend the DataSqueezerImpl, put in a c'tor taking a ClassResolver parameter to pass to the super c'tor and then register

Re: Question about validation

2005-07-14 Thread Chris Chiappone
Ok I guess this leads me to another question. If I were to do a manual check to see if the two fields were matching in my Page Class, how do you go about sending an error back to the page the same way the validator works if the two fields didn't match? On 7/14/05, Ron Piterman <[EMAIL PROTECTED]>

Re: Retrieve values from a control on another page

2005-07-14 Thread Darío Vasconcelos
Mmmhhh... I'm thinking you might somehow (with an AJAX thing, maybe) make the popup window set the property in the visit, then your method would get this value from there... On 7/14/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Sorry ... that wasn't very clear ... What I meant was, is there a

About engine

2005-07-14 Thread Henry Chen
I asked the following question yesterday and nobody so far gave me a hint yet. Let me describe it in a different way. When I opened the website, if the first thing I do is to click on the link that is supposed to do engine.setLocale(), this change would fail. But if I do something first, like login

Re: Multiple Select

2005-07-14 Thread Robert Zeigler
It's now downloadable from here: http://equalitylearning.org/Tassel/app?service=external/ViewComponent&sp=SListPropertySelectionModel Robert Dan wrote: > aaah...yes...just realized that. could you throw in ideas/sample code of > your implementation of list property selection model? -thx! > >

Re: custom datasqueezer in t4?

2005-07-14 Thread Mind Bridge
Hi, The ability to define custom datasqueezers in T4 using Hivemind is being developed at this very moment. Should be included in the next beta. For the time being please use the T3 approach. -mb - Original Message - From: "Henri Dupre" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Th

Re: Tassel Documentation

2005-07-14 Thread Robert Zeigler
Kirk Gray wrote: > Can anyone point me to documentation for Tassel components, NewWindowLink in > particular? I am pretty new, and not sure how to setup additional > components in my application. Any help is much appreciated. > > - Kirk > > NewWindowLink is packaged as a library... drop the j

Re: Multiple Select

2005-07-14 Thread Dan  
aaah...yes...just realized that. could you throw in ideas/sample code of your implementation of list property selection model? -thx! in the meanwhile, i fig that if any1 wanted to use the multiple select its a very tedious task to get the items(objects) that are selected. you will have to impl

TP4: markForDiscard?

2005-07-14 Thread Scott F. Walter
In the old Tapestry 3 days if you wanted to discard a page in a listener method you needed to something like this: getEngine().getPageRecorder(this.getPageName(), cycle).markForDiscard(); However in TP4 you no longer have access to getPageRecord() on IEngine() or IRequestCycle(). Is it even

custom datasqueezer in t4?

2005-07-14 Thread Henri Dupre
I can't find any info on how to register a custom datasqueezer in tapestry 4. The old method in the Engine seems to be deprecated quite a bit. Henri. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: Writing for 3, planning for 4?

2005-07-14 Thread Henri Dupre
On 7/13/05, Preston CRAWFORD <[EMAIL PROTECTED]> wrote: > So for those of us new to Tapestry, forced to code for 3 for various > reasons, is there somewhere we can turn for guidelines on things to > avoid so the transition from 3 to 4 isn't very painful? Any guidance in > this regard would be appre

Re: Multiple Select

2005-07-14 Thread Robert Zeigler
Well, the tassel component still uses the IPropertySelectionModel interface. Robert Dan wrote: > I think the Tassel multiple select looks good for my app logic right > now. However, I m interested in looking at the > ListPropertySelectionModel u ve written. I might get away with tassels > compo

TP4 inject question

2005-07-14 Thread Vinicius Carvalho
Hello there! Back on TP3 times I used to set a property: And then I used to implement PageRenderListener so on my pageBeginRender(PageEvent event) I initialize my property if it was null. That was a safe set ;) Now on 4.0 I was wondering if I declare my User class as a Threaded Service on my hiv

Tassel Documentation

2005-07-14 Thread Kirk Gray
Can anyone point me to documentation for Tassel components, NewWindowLink in particular? I am pretty new, and not sure how to setup additional components in my application. Any help is much appreciated. - Kirk

Re: Multiple Select

2005-07-14 Thread Dan  
I think the Tassel multiple select looks good for my app logic right now. However, I m interested in looking at the ListPropertySelectionModel u ve written. I might get away with tassels component this time, but if something comes up thats is better if implemented via the propertyselection model

RE: Wierd Problem with private-asset

2005-07-14 Thread david joffrin
Any one with any experience of that? This is really blowing up my Apache log files! Hi, I am back after quite some time now! I have a very wierd problem that occurs only from time to time... the result is the following exception: "Service asset requires exactly one service parameter". I l

Re: Writing for 3, planning for 4?

2005-07-14 Thread Robert Zeigler
Tapestry 4.0 can still use the 3.0 DTD's, etc. By and large, most 3.0 stuff should work in 4.0 (except services, which, as I understand, have changed substantially in 4.0) Robert Chris Chiappone wrote: > I am wondering the same thing. I have just started the transition > from struts to tapestry

RE: Retrieve values from a control on another page

2005-07-14 Thread Steve . Ball
Sorry ... that wasn't very clear ... What I meant was, is there a way to do this from the Java code (ie. not using Javascript)? I need the variable for use as a method parameter. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 14 July 2005 14:22 To: tapest

Re: Writing for 3, planning for 4?

2005-07-14 Thread Chris Chiappone
I am wondering the same thing. I have just started the transition from struts to tapestry on a new project. I read in the documentation to use 3.0.3 but I'm wondering if this is a good move. Should I switch over to 4.0 before I have written to much code, or will the transition be an easy one? Th

RE: Retrieve values from a control on another page

2005-07-14 Thread Steve . Ball
Before I go on, thanks very much for the help you've given so far, Robert - Tapestry's learning curve is just plain scary! With that said ... Is there a way to do this from code? Or would a better solution be to use a Visit object? Steve -Original Message- From: Robert Zeigler [mailto:[E

RE: Retrieve values from a control on another page

2005-07-14 Thread Steve . Ball
So if this worked, there would be a possibility that I retrieved the value of another visitor's page? -Original Message- From: Andreas Andreou [mailto:[EMAIL PROTECTED] Sent: 14 July 2005 14:07 To: Tapestry users Subject: Re: Retrieve values from a control on another page Steve, you shou

Re: Pass and retrieve parameter from html

2005-07-14 Thread Robert Zeigler
Hm... not too sure about that.. there may be some tricky way of doing that, but I'm not aware of any. However... there are a couple of options that will more-or-less accomplish the same trick. You could have both pages extend from a common base page which contains the listener method. Or... You can

Re: Retrieve values from a control on another page

2005-07-14 Thread Robert Zeigler
So... to clarify... You have page A, and it's got a popup to page B, right? And you need page A to have access to some value set on page B? It might be best to do this via a bit of javascript. Your popup should be able to call opener.forms[0].hiddenFieldName.value='value'. So then you put a named h

Re: Retrieve values from a control on another page

2005-07-14 Thread Andreas Andreou
Steve, you should not do this. Tapestry pouls page instances and reuses them. When rendering a page, a page instance is retrieved from the poul, populated with the correct persistent data, executed, and then given back to the poul. Perhaps you can use your visit object to store information that

Re: Multiple Select

2005-07-14 Thread Robert Zeigler
To be honest, I don't use the select component. :) I use PropertySelection, SelectMultiple, contrib:MultiplePropertySelection, or Palette, depending on my need. Then I don't have to worry about the details. :) I'd suggest taking the time to understand the PropertySelection model, because it will sa

RE: Pass and retrieve parameter from html

2005-07-14 Thread Steve . Ball
Hi Robert, I finally settled on using an ExternalPage component - it does the trick! Incidentally, is there a way to use a method on another page as a listener? Steve -Original Message- From: Robert Zeigler [mailto:[EMAIL PROTECTED] Sent: 14 July 2005 13:46 To: Tapestry users Subject: R

Re: Pass and retrieve parameter from html

2005-07-14 Thread Robert Zeigler
As someone already mentioned, you're going to want to use either direct links or external links to pass your parameters around, rather than page links. Using an external link requires that the page you're linking to implement the "IExternalPage" interface. Using a directlink requires a "listener"

Retrieve values from a control on another page

2005-07-14 Thread Steve . Ball
Hi there, I'm trying to retrieve a value from within a popup window. I've tried ValidField m_Country = (ValidField)getRequestCycle().getPage("edit_device").getComponent("txtCountr yCodeID"); return (String)m_Country.getValue(); With no great success ... Please help! With kind regards, Steve

Re: Catching file upload max size reached and showing nice information

2005-07-14 Thread Bernd Heller
I have a custom activateExceptionPage() in my engine that redirects to a special page displaying the error if the given cause is "instanceof FileUploadException". I know this is not strictly a file size exception, but it works for me. I think all other cases throwing a FileUploadException (

Re: Future of Tapestry in questionable

2005-07-14 Thread Nick Westgate
Francis's questions seem more naive than obnoxious. Lots of great work has been going on - and is still going on - driving Tapestry towards 4.0 release. Hardly signs of an "abandoned" project. At the same time development efforts like Trails and the new AJAX components available bring some of th

Catching file upload max size reached and showing nice information

2005-07-14 Thread Per Olesen
Hi, How do I avoid hitting the Error page when I upload a file larger than my setting for max-size on the multipart-decoder? I have a page with a file upload. When I submit an upload larger than allowed, Tapestry sees this in the service.decode code, and throws a "org.apache.tapestry.Applicati

RE: Pass and retrieve parameter from html

2005-07-14 Thread david joffrin
Hi, First, as much as i recall, i do not remember that PageLink supports parameters, I am using ExternalLink or DirectLink. You need to pass your parameter using ognl instruction, something like that should work: parameters='ognl: "GB"'>Change Then you retrieve the parameters from the metho

Pass and retrieve parameter from html

2005-07-14 Thread Steve . Ball
Hi all, Sorry for repeating this question, but I'm still hopelessly lost. I'm trying to get a parameter sent from an html line: Change And I would like to retrieve it from the LocationPicker code. I've tried using String m_Country = getRequestCycle().getRequestContext().getParameter("country");

Re: DWR

2005-07-14 Thread Hugo Palma
Check out the XTile in T-Deli. http://www.t-deli.com/ Cheers Hugo Chris Chiappone wrote: Anyone use DWR for adding ajax functionality into tapestry? Is there other tapestry components out there for ajax? - To unsubscr

Re: Tacos Tree and Tapestry 4

2005-07-14 Thread Ron Piterman
Its a pain in the... I agree Norbert Sándor: The default binding causes only problems I think... There were discussions on tapestry-dev about removing the default-binding feature, but the developers decided to keep it. Br, Norbi - Original Message - From: "Ron Piterman" <[EMAIL

Re: Question about validation

2005-07-14 Thread Ron Piterman
I did not implement this yet, but its not attaching two fields to the same validator. It susually only the *second* one which will be *compared to* the first one. so this is theoretically not so difficult: validators="identity=password" you can post the class if you implement it, many people wi

Re: Using an applet in a Tapestry page

2005-07-14 Thread johan
>Jeff Cooper wrote: >| Has anyone run into any issues with trying to run an applet in a >| tapestry page. The project I'm working on, we are using an applet >| image viewer for tiff images. The image viewer is 3rd pary software, >| so we know that it works (have put it in jsp's and plain html), b

Re: Best practice: Regular view and printer friendly view

2005-07-14 Thread Pedro Abelleira Seco
Then look at Block - RenderBlock. El Mér, 13-07-2005 a las 14:28 +0200, Will Scheidegger escribió: > That might work. It would require a third component though. I was > hoping that there was something like WebObjects WOSwitchComponent where > you can provide a component name as binding and it wi