Re: [T4.1.5] with Dojo 1.1.1 Using Beyond Dojo

2008-07-22 Thread Martino Piccinato
The tacos implementation is missing validation, widgets and processing scripts returned in an ajax response. In my opinion there are two main reasons to upgade to 1.x dojo version: 1) 0.4.x is not supported/developed anymore, there's been a substantial API change in 1.x (that is supposed to be st

Re: [T4.1.5] with Dojo 1.1.1 Using Beyond Dojo

2008-07-21 Thread Martino Piccinato
Hi Richard, I'll be very interested in co-operating to have a dojo-1.x implementation. In my opinion at the moment being stuck with dojo 0.4.3 is the only big tapestry 4 pitfall. Martino On Mon, Jul 21, 2008 at 11:50 AM, Richard Hoberman <[EMAIL PROTECTED]> wrote: > > I'm considering upgrading t

Re: [T4]: Execute arbitrary JS from EventListener

2007-12-27 Thread Martino Piccinato
I think you are looking for http://tapestry.apache.org/tapestry4.1/jsdoc/index.html in particular for http://tapestry.apache.org/tapestry4.1/jsdoc/files/fx-js.html On Dec 27, 2007 6:39 PM, Kevin Menard <[EMAIL PROTECTED]> wrote: > Hey all, > > I have the need to call arbitrary JS after updating

Re: T5: A web flow idea on T5

2007-12-26 Thread Martino Piccinato
f a > system needs to support multiple flows, it needs a way to identify different > flows in one session. > > Cheers, > Jeffrey Ai > > > > Martino Piccinato wrote: > > > > Hi, > > > > I think the only thing missing is a "conversational" typ

Re: T5: A web flow idea on T5

2007-12-22 Thread Martino Piccinato
Hi, I think the only thing missing is a "conversational" type of persistence. That is that the application state object and persisted link shouldn't be simply session persisted but at least session persisted with some kind of "flowkey" prefix so to separate different flows. This would imply also s

Re: T4: New tacos release

2007-12-20 Thread Martino Piccinato
Congratulation Andy, I still think tacos is a must for tapestry users and look forward for tapestry 4.1.4/dojo 1.0 upgrade On Dec 19, 2007 8:10 PM, andyhot <[EMAIL PROTECTED]> wrote: > Hi, > the new tacos release (4.1.1) is already deployed at maven's central repo. > > Details are at http://taco

[T4] SpecificationParser (custom component specification elements)

2007-12-19 Thread Martino Piccinato
Hi, I was wondering whether it would be possible to add custom "tags"/"features" to component/pages specification. It seems not to be possible (or at least "not suggested") as SpecificationParser id pretty hardcoded. I guess the only way to have custom enhancements of a Component would be to wor

Re: T4.1.3 - Upgrade Dojo

2007-12-16 Thread Martino Piccinato
+1 tnx to Jesse and Andreas. I think this work is important for T4 users but also for the overall tapestry community as it's important to show that tapestry framework can provide long term support and evolve all his versions/projects in a reasonable way for who invested in it. IMHO even T5 adoptio

Re: T4.1.3 - Upgrade Dojo

2007-12-14 Thread Martino Piccinato
e we need more docs + an example implementation, but lack of > time hasn't made this possible yet. > I'll let you know when related work resumes (hoping for middle of next week) > > > On Dec 14, 2007 2:57 PM, Martino Piccinato <[EMAIL PROTECTED]> wrote: > > I

Re: T4.1.3 - Upgrade Dojo

2007-12-14 Thread Martino Piccinato
I think it was my mail and in fact there was no clear date/plan to upgrade to 1.0 (but maybe I misunderstood...). In fact it would be a great thing upgrading to 1.0 we tapestry4ers are quite scared by the t5 only list traffic lately ;-) On Dec 14, 2007 1:46 PM, Matt Brock <[EMAIL PROTECTED]> wrot

OGNL race condition(s) (?)

2007-11-29 Thread Martino Piccinato
Hi all, some time ago we had a strange problem with our tapestry application, there was a component repeatedly throwing a ClassCastException, in fact one of this component's parameter was passed a User (interface) object being in that specific case a "SimpleUser" concrete implementation. When usin

Re: [T4] howto re-use component definition

2007-11-20 Thread Martino Piccinato
On Nov 20, 2007 3:17 PM, #Cyrille37# <[EMAIL PROTECTED]> wrote: > Hello again, > > I could not find how to re-use component definition. > How can I do if I want to put a link at several places in the page ? > > For example there is a PageLink definition : > > > > > But I can't

Re: [T4] How to get the right DOCTYPE ...

2007-11-20 Thread Martino Piccinato
emove the "hardcoded" doctypes though. On Nov 20, 2007 1:31 PM, #Cyrille37# <[EMAIL PROTECTED]> wrote: > Martino Piccinato a écrit : > > If you are using Shell component in your border (probably you do) you > > have to set this parameter for the shell component: >

Re: [T4] How to get the right DOCTYPE ...

2007-11-20 Thread Martino Piccinato
If you are using Shell component in your border (probably you do) you have to set this parameter for the shell component: http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd""/> note the use of " as you are writing it inside an xml file. On Nov 20, 2007 12:16 PM, #Cyrille37# <[EMAIL PROTECTED]> wrot

Re: [T4] Thanks for updates

2007-11-19 Thread Martino Piccinato
Stuck? :-) We use it, we invested in it and we have important projects to mantain with it. Not to mention that there is still no ajax support in T5. So yes, thanks guys for supporting it. On Nov 19, 2007 3:51 PM, Kevin Menard <[EMAIL PROTECTED]> wrote: > With all the recent traffic about T5 on

Re: Strange OGNL exceptions just on test server

2007-11-08 Thread Martino Piccinato
It seems that this happen just when I have two diffrent deploy/context on the same host for the same tapestry 4.1.2 application... On Nov 8, 2007 11:40 AM, Martino Piccinato <[EMAIL PROTECTED]> wrote: > We have a strange phenomenon where we find in our log lots (really a > lot) of th

Strange OGNL exceptions just on test server

2007-11-08 Thread Martino Piccinato
We have a strange phenomenon where we find in our log lots (really a lot) of the exceptions reported below. It seems not to be a memory problem (all cpu/mem/heap/permgen/open file handles values seems to be just perfect) but this just happens on our test server while it does not happen on our works

tapestry and workflow engines, suggestions?

2007-10-30 Thread Martino Piccinato
Hi, just wanted to know your experiences, is there any integration stuff already done with any existing workflow engince? I'd prefer a lightwait webflow engine at the moment jbpm and even spring webflow could be too much for me but I'm open for suggestions. We are using tapestry4.1.2. --

Re: Strange problem with OGNL (just happening on our production servers)

2007-10-25 Thread Martino Piccinato
setter > method. > Does the page still work? or it brakes your app? > > In case you don't need a setter method an option to avoid the stack > traces is to explicitly call the getter, like this: > > > > > > > Salutti. >

Other problems with ognl/enhancements

2007-10-23 Thread Martino Piccinato
It seems it's ognl time for us :-) I send a different messages for this problem because it seems it might be due to another. After some time (2/3 hours?) my server is running I keep getting the exception I copied down here. It seems to be a different one from the one I reported. It's like javassis

Strange problem with OGNL (just happening on our production servers)

2007-10-23 Thread Martino Piccinato
Hi, we are experiencing a very strange problem just on our production server, from time to time bindings/ognl starts giving strange exceptions it does not give on our dev workstations. The problem is also difficult to reproduce on production server so I think it might be some race condition proble

Re: [T4.1.2] stale link on ajax modified form

2007-10-09 Thread Martino Piccinato
Well it ended up to be a firebug strange behaviour (or bug?). The request/response cycle was perfectly showed in the console as expected, while in the XHR tab was showed the request/exception response cycle mentioned before. It appears that by disabling firebug the network monitoring option (Option

Re: [T4.1.2] stale link on ajax modified form

2007-10-08 Thread Martino Piccinato
Well, after some cleanup and further test now the component is (apparently) working perfectly. There was in fact some bad old code in there that was messing up things. But the strangest thing ever is that firebug still gives me that stalelinkexception when I fire my ajax eventlistener!! even thou

Re: T4.1.3: Why is id suffixed with "_0" ?

2007-10-08 Thread Martino Piccinato
Unfortunately for some reason some components cannot be used with updateComponents: most notably Insert and If. The solution is to wrap you if with an Any component that can be updated. Id of components are suffixed with indexex "_0, _1 ecc". usually when inside a For to ensure each one has a dif

Re: [T4.1.2] stale link on ajax modified form

2007-10-08 Thread Martino Piccinato
in fact the only thing it were previously persisted in session were IPropertySelectionModel but I thought this was just a mistake because it had no much sense, giong to make some test more.. - To unsubscribe, e-mail: [EMAIL PROTEC

Re: does tapestry 4.2 have an iterator component

2007-10-08 Thread Martino Piccinato
In fact it seems to me you should solvee your problem with some easy page method creating the list to be iterated by the for each time you reload the page. So you have your "big" list in one property and another method (possibly reading other properties/parameters) will slice the big list to provi

Re: does tapestry 4.2 have an iterator component

2007-10-08 Thread Martino Piccinato
http://tapestry.apache.org/tapestry4.1/components/general/for.html On 10/8/07, Ken nashua <[EMAIL PROTECTED]> wrote: > > I would like to do some iteration like a true for loop with front, back and > computable boundaries. > > Is there such a component? > > Best regards > Ken in nashua > _

Re: [T4.1.2] stale link on ajax modified form

2007-10-08 Thread Martino Piccinato
just to be precise: customerDetailsForm does contain much more than 0 fields while roleSelect form contains just 1 field. On the ajax request a couple of customerDetailsForm are made visible/invisible (actually I tried both: using "If" that makes them disappear from the DOM and using a component t

[T4.1.2] stale link on ajax modified form

2007-10-08 Thread Martino Piccinato
Hi all, I'm getting this stale link exception when dynamically modifying a form (some combos depending one on each other), I've read about this problem no the list and it seemed to be solved in the new tapestry 4.1 If component, meaning that it should be "form safe". The fact is that I'm not gett

Re: NYSERDA

2007-10-08 Thread Martino Piccinato
On 10/7/07, Ted Steen <[EMAIL PROTECTED]> wrote: > Doing what? > Removing the context I guess... :-) > 2007/10/7, Celia Mou <[EMAIL PROTECTED]>: > > Hi Mark, > > > > Sorry, I guess you still don't have my phone number: (718) 204-0626 > > > > Cell: (917) 299-1208 (usually held by Frank) > > >

Re: Combined Component Model - Is it supported ?

2007-10-05 Thread Martino Piccinato
Hi Ken, don't know if I get it rigth but it seems you just need a list with pagination and the content to be reloaded "dynamically" (with an ajax request) when changing page ( = clicking on one of the pagination links). You could certainly go with JSON but I suggest you for such a thing to have a

Re: form post-redirect

2007-10-04 Thread Martino Piccinato
IExternalPage http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/IExternalPage.html You'll have to generate an IExternalLink http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/link/ExternalLink.html using the IExternalService (injected into the page) http://tape

Re: T4: Create a combo box without static binding

2007-10-04 Thread Martino Piccinato
If you write ognl correctly resolve "false" as the literal "false" value in java. You have to write something like: and then implemente the "selected" property in your page/component, e.g.: public abstract boolean getSelected(); public abstract void setSelected(boolean selected); On 10/4/

Re: Combined Component Model - Is it supported ?

2007-10-01 Thread Martino Piccinato
> > Is the @RenderBlock specified from within the template or within the JAVA? > RenderBlock is a component, it's actually a component "marking" where a specified Block component (could be chosen dynamically at runtime) will be rendered. As any component can be defined in the component definition

Re: Combined Component Model - Is it supported ?

2007-10-01 Thread Martino Piccinato
eComponent(idOfTheComponentToUpdate) Or have your component (IComponent, it does not matter whether you extend or not other classes) implement IJSonRender interface that will return the JSON data structure to your javascript caller. On 10/1/07, Martino Piccinato <[EMAIL PROTECTED]> wrote: > If inser

Re: Combined Component Model - Is it supported ?

2007-10-01 Thread Martino Piccinato
If inserted in a writer the following html will be split out as it is. If you want to dynamically render components inside your component (that is render different components depending on some conditions, even dynamically with an ajax request) you can use block/renderblock components.

Re: Combined Component Model - Is it supported ?

2007-10-01 Thread Martino Piccinato
don't know if it's what you are looking for but you can always override renderComponent also in BaseComponent decorating the component template with some additional html e.g. /* (non-Javadoc) * @see org.apache.tapestry.BaseComponent#renderComponent(org.apache.tapestry.IMarkupWriter, org.

Re: client validation problem with 4.1.3

2007-09-25 Thread Martino Piccinato
I reply to myself, there's already a bug opened for this: http://issues.apache.org/jira/browse/TAPESTRY-1753 Hivemind is throwin an exception if I try to override the required validator contribution, isn't it possible to override it? On 9/25/07, Martino Piccinato <[EMAIL PROTECTED]

client validation problem with 4.1.3

2007-09-25 Thread Martino Piccinato
We have recently upgraded to tapestry 4.1.3 and started having a relatively random problem with client side validation: in some cases, apparently where we have "validators:required" bindings it appears an empty validation box (no message, just the "ok" button) even though all required fields are no

Re: [OT?] OGNL source code and license

2007-09-24 Thread Martino Piccinato
tnx. The fact is that ognl.org site don't mention new versions at all and opensymphny site reference a completely different source repository. Let's say that OGNL is a Catch The Source If You Can project ;-) - To unsubscribe, e-ma

[OT?] OGNL source code and license

2007-09-24 Thread Martino Piccinato
Hi, is OGNL open source? If it is where can I access source code? ognl.org website mention 2.6.9 as latest release, and I can't find no link to any source repository. I've also discovered there's a page on opensymphony website about ognl that point to the jira issue tracker managed by Jesse and

Re: Request Parameters

2007-09-22 Thread Martino Piccinato
It's not clear to me what exactly is your goal if it is, as I think, dinamically generate a tapestry url inside a javascript you should then look at one of the IEngineService (depending on the type of "service" your link will be bound to): http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/

Re: [ANN] Tacos 4.1.0 release

2007-09-07 Thread Martino Piccinato
It's working perfectly. Thanks again for tacos, I think tapestry isn't really complete without it. The new DojoWidget component is great :-) On 9/6/07, Igor Drobiazko <[EMAIL PROTECTED]> wrote: > On 9/6/07, Martino Piccinato <[EMAIL PROTECTED]> wrote: > > > >

Re: [ANN] Tacos 4.1.0 release

2007-09-06 Thread Martino Piccinato
It's really impressive, especially the DojoWidget component! Thanks for the great work. I have a few questions: why using script.acuous.us and not dojo for Draggable and Droppable? have you tested DojoWidget with menus? and, finally, just to be sure: DojoWidget do not require "parseWidget" shell

[T4] is it possible to dinamically update a from a page a component's component with ResponseBuilder?

2007-09-04 Thread Martino Piccinato
This is my situation: I have a page containing component ComponentA, this component contains another component (B), I want to dinamically/ajax update ComponentB (and just component B) from the main page. Is this possible at all? My idea was to delegate dynamic updating through first component, the

Using bindings with assets paths

2007-09-03 Thread Martino Piccinato
It seems it's not possible to use bindings to specify asset paths, why? Wouldn't it be a more tapestrish way to resolve assets? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How do I get a page from a sub-package

2007-08-28 Thread Martino Piccinato
if I put > a class in this package and move the page into a matching sub-directory, it > works. However, when I get a page from the IRequestCycle, I don't know how > to traverse into the sub-package (or above the current package for that > matter). > > Thanks, > > Matt >

Re: How do I get a page from a sub-package

2007-08-28 Thread Martino Piccinato
I think you can use configuration parameter org.apache.tapestry.component-class-packages (from documentation) A comma-seperated list of package names, used when searching for the component class . These must appear as tags in the application or library specification containing the component

Why do setting an unbounded component parameter throws an exception?

2007-08-26 Thread Martino Piccinato
Hi, I don't understand why ParameterPropertyWorker makes parameter mutator throw an exception if called over an unbounded parameter. I see this behaviour as illogic: ParameterPropertyWorker do create a property field so why not using this field to set the parameter if no binding is available inste

Re: [T4] dojo 0.9 upgrade, any plan?

2007-08-22 Thread Martino Piccinato
gt; wouldn't love to move to it in T4) > > On 8/21/07, Martino Piccinato <[EMAIL PROTECTED]> wrote: > > Is there any plan to upgrade to new dojo 0.9 for tapestry 4.1.3? > > > > This should require some changes to existing widget

[T4] dojo 0.9 upgrade, any plan?

2007-08-21 Thread Martino Piccinato
Is there any plan to upgrade to new dojo 0.9 for tapestry 4.1.3? This should require some changes to existing widget and dojo support as dojo version 0.9 breaks previous API. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Create a custom checkbox component

2007-08-10 Thread Martino Piccinato
de itself On 8/10/07, Mateus Lucio dos Santos <[EMAIL PROTECTED]> wrote: > I like the idea!! > But when the browser render this component will I be able to access > those attributes? > > Martino Piccinato wrote: > > I think you could just make a component usi

Re: Create a custom checkbox component

2007-08-10 Thread Martino Piccinato
I think you could just make a component using a normal checkbox PLUS two Hidden components ( http://tapestry.apache.org/tapestry4.1/components/form/hidden.html) containing the parent/child references. Just extend BaseComponent and use one Checkbox plus two Hidden in your new component. Adding str

Re: T3: How to capture time

2007-08-09 Thread Martino Piccinato
In 4.1.2 there's a nice dojo DropDownTimePicker (even though default style has got a really small font) On 8/10/07, Robert Zeigler <[EMAIL PROTECTED]> wrote: > The "Calendar" component on tassel also wraps (a newer version of) > the same js calendar that DateTimePicker wraps. > But the component a

Re: T4: Client urls for listeners?

2007-08-09 Thread Martino Piccinato
You can use DirectService.getLink, an ILink can then return the URL. But if you need a JSON reply you'll need your class to implement http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/IJSONRender.html On 8/10/07, Bill Holloway <[EMAIL PROTECTED]> wrote: > In a component class, I

Re: createReadOnlyBindingException help!

2007-08-09 Thread Martino Piccinato
and use both a parameter and a property... so > i'm not sure if what you're suggesting will help or confuse users - > waiting for > more comments on this. > > Martino Piccinato wrote: > > Hi Andy, > > > > I do not agree, it's not just a documentatio

Re: [T4.1]Returning a list to a page

2007-08-09 Thread Martino Piccinato
If I got right what's your case you could use the following pattern: public interface CalledPageCallback extends ICallback { public void setMyObject(MyClass myObject); } public class CallingPageCallback implements CalledPageCallback { private MyClass _myObject;

Re: createReadOnlyBindingException help!

2007-08-09 Thread Martino Piccinato
ut that's more straightforward after reading the docs. > > Anyway, I think we should just document this. > > Martino Piccinato wrote: > > Finally I think we were both wrong and that I opened two useless tickets: > > > > in fact, as stated in the documentation defa

Re: createReadOnlyBindingException help!

2007-08-08 Thread Martino Piccinato
because the component IS actually trying to "write" the invariant default-value binding in hide/show methods so after 2 invalid ticket I hope I'm goig to open a valid one now. On 7/30/07, Martino Piccinato <[EMAIL PROTECTED]> wrote: > Posted one for the parameter issue >

Re: Acegi

2007-08-03 Thread Martino Piccinato
mous user to the url: > /direct.svc** > > Paulo Ramos > > > Martino Piccinato escreveu: > you have to configure your FilterSecurityInterceptor with something like > this > > > > > /login.html**=ROLE_ANONYMOUS,ROLE_AUTHENTICATED > /**=ROL

Re: Acegi

2007-08-03 Thread Martino Piccinato
you have to configure your FilterSecurityInterceptor with something like this /login.html**=ROLE_ANONYMOUS,ROLE_AUTHENTICATED /**=ROLE_AUTHENTICATED

Re: createReadOnlyBindingException help!

2007-07-30 Thread Martino Piccinato
Ciao Martino On 7/30/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: > Well, I try to investigate into this, meanwhile if you could be so kind to > post a jira... > > ciao, > kiuma > > On 7/30/07, Martino Piccinato <[EMAIL PROTECTED]> wrote: > > > > Wel

Re: T4: Problem with my own Date Validator

2007-07-30 Thread Martino Piccinato
you made getAcceptsNull as "false" so you'll never receive a null to validate... On 7/30/07, César Augusto Mateus <[EMAIL PROTECTED]> wrote: > Hi all, > I did a Validator with the purpose of not to allow that a user entered a > date before of today. > That validation work fine, but not yet i can t

Re: createReadOnlyBindingException help!

2007-07-30 Thread Martino Piccinato
Well, I'm having a very similar behaviour with Dialog component that by default has a true parameter for optional parameter "hidden". It seems that if you set a constant value ("ognl:0" or "true") to a parameter then the parameter itself is regarded as "Invariant" by AbstractBinding that wil

Re: [T4]Handling Nulls in OGNL expressions

2007-07-30 Thread Martino Piccinato
aviour just screams "over designed" to me. > > > > (Not that I'm knocking OGNL/Tapestry in general, I still prefer using it > > over WebObjects for a variety of reasons). > > > > Damien > > > > Martino Piccinato wrote: > > > In my opinion is al

Re: [T4]Handling Nulls in OGNL expressions

2007-07-27 Thread Martino Piccinato
In my opinion is all that you want is not having NullPointerException it would be better to implement MethodAccessor and/or PropertyAccessor, that would return null if the target object is null, then you could simply check expressions returning nulls and returning your message, or maybe have a spec

Re: Controling Dialog Placement

2007-07-27 Thread Martino Piccinato
I think you can do this quiet easily overriding the "dojoDialog" css class (assigned by Dialog template to dialog div). I'm not sure about it though because I?m trying to use Dialog component without success (see my msg on the list): are you using Dialog in Tapestry 4.1.2 without problems? On 7/2

[T4] Problems with Dialog component

2007-07-26 Thread Martino Piccinato
Hi everybody, I'm experiencing lots of problems with Dialog component with Tapestry 4.1.2, don't know if other or getting the same problems, I'm just following the Dialog tutorial on online documentation. First problem is that I get an exception if not setting the optional "hidden" parameter wit

Re: about T4.1.2 sources in SVN

2007-07-26 Thread Martino Piccinato
ECTED]> wrote: Martino Piccinato a écrit : > No, usually tags are done for "release" and don't change with time. > > trunk is usually the currently developed (changing) version. > > version 4.1.2 just released recently so you have tag for 4.1.2 that > reflect

Re: about T4.1.2 sources in SVN

2007-07-26 Thread Martino Piccinato
No, usually tags are done for "release" and don't change with time. trunk is usually the currently developed (changing) version. version 4.1.2 just released recently so you have tag for 4.1.2 that reflect the source code if this release (and that won't change), as Tapestry 4 is still under activ

Re: about JSON-RPC

2007-06-27 Thread Martino Piccinato
Have your component implement the IJSONRencerer interface ( http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/IJSONRender.html ) On 6/27/07, Renat Zubairov <[EMAIL PROTECTED]> wrote: Depends on the version of tapestry. If you are talking about 4.1 you can integrate it seamles

Re: dynamic component injection

2007-06-21 Thread Martino Piccinato
tnx a lot Alejandro! this is exactly what I was looking for, block/renderblock components combined with EventListener can be really powerful stuff but I didn't realize it until I read your example. It's also very interesting the way you use that Editors page as a "block component repository" an

Re: dynamic component injection

2007-06-20 Thread Martino Piccinato
did you find any cleaner way to do this? I think this problem is not just related to "one page applications" but apply also to any page/component that depending un user actions must show different enough content (unless one wants to go with EventListener and a long ugly list of IF components...)

Re: validating a complex form component

2007-05-29 Thread Martino Piccinato
Sorry the previously described approach was actually wrong: pageEndRenderer is called after the submit listener... So it seems the only approach we can have is overriding renderComponent and make use of the IValidationDelegate there. Still strange there isn't any documentation on this.

Re: validating a complex form component

2007-05-29 Thread Martino Piccinato
sorry forgot to say that we are using tapestry 4 (4.1.2)

validating a complex form component

2007-05-29 Thread Martino Piccinato
I just wanted to know about best practices to validate components that are used as part of a form but that are not IFormComponent (something that happen pretty often in our code). e.g. we have a "LegalId" component made by a select box where you choose the type of id you are inserting plus an inp

Re: Is onActivate a robust place for authentication?

2007-05-18 Thread Martino Piccinato
I think what you are looking for is interface PageValidateListener http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/event/PageValidateListener.html it's thought just for this kind of things afaik. On 5/18/07, Eric Chatellier <[EMAIL PROTECTED]> wrote: 2007/5/18, Bill Hollowa

Re: T4.1 - Exceptions handling

2007-05-15 Thread Martino Piccinato
I think you can just configure your and let the page decide which other page to use for different sets of exceptions. On 5/15/07, Wojtek Ciesielski <[EMAIL PROTECTED]> wrote: Andreas Andreou wrote: > like > http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html > ?

Re: How to store the rendering of a page in a String

2007-05-08 Thread Martino Piccinato
can't one just pass it's own IMarkupWriter that would just write to a different OutputStream?

Re: EventListener fails to update PropertySelection in IE

2007-05-07 Thread Martino Piccinato
I'm not completely sure but I think your problem is that the component you are updating does not refer to the entire select "block" but just to the label. As the eventlistener/ajaxdojoresponse basically rely client side on the innerHTML (or similar) javascript function to replace inner html we had

Re: using a JSONResponseBuilder (JSON requests/response in tapestry components)

2007-05-06 Thread Martino Piccinato
ase I should implement an EngineService, am I right? On 5/6/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Implement IJSONRender on a component. http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/dojo/form/Autocompleter.java?view=markup On 5/6/

using a JSONResponseBuilder (JSON requests/response in tapestry components)

2007-05-06 Thread Martino Piccinato
Hi all, can anyone give me an example of how to use JSON with tapestry? I can see there is a JSONResponseBuidler and I can see there is a tapestry.bindjavascript function that support JSON I can't understand what's the correct way to handle this server side as there seems to be no equivalent "Eve

Re: Help with jsessionid

2007-04-17 Thread Martino Piccinato
I don't think the right solution is turning off url rewriting: do you have a web server (e.g. apache) in fron of your servlet container? in this case the cause might be apache not understanding/discarding the part of the path where the semicolon (";") is used, a couple of url rewrite should do the

Re: Help with jsessionid

2007-04-17 Thread Martino Piccinato
the first time you hit a page url rewriting is enabled because the servlet container has no way to tell whether you support cookies or not (you don't send any cookie header as you still don't have a cookie). See my other reply about what could be the real problem (not url rewriting but a web serve

Re: Help with jsessionid

2007-04-17 Thread Martino Piccinato
sorry just wanted to comment one thing more: if this session appending is happening just the first time you hit the application (so you are without a cookie) in this case I think the servlet container is doing the right thing (it does not know you support cookies on first hit). This might cause pr

Re: Help with jsessionid

2007-04-17 Thread Martino Piccinato
Actually the asset url encoding is ultimately delegated to javax.servlet.HTTPServletResponse.encodeURL which just rewrites url if session traking is turned off or your browser does not support cookies. As probably this is not the case it might be a bug in your servlet container. On 4/17/07, Andre

ICallBack, PageRedirectException and IRequestCycle.activate (comment on forwarding in tapestry)

2007-04-14 Thread Martino Piccinato
Hi all, sorry for the long mail, I just wanted to comment on what I see as a tapestry 4 weirdness or limitation, or maybe it's just me missing something :-) In brief we are trying to use ICallBack objects to manage some more complex navigational needs in our web application, everything works fin

Re: pageBeginRender and submit

2007-04-03 Thread Martino Piccinato
You can look here: http://tapestry.apache.org/tapestry4.1/faq.html#submit-lifecycle on form submit pageBeginRender is called before the form submit listener discarding output in order to set page and page components in the proper status before your listener is called. As your next question might

Re: Syntax for multiple validators

2007-04-02 Thread Martino Piccinato
I'm pretty sure i can use the bean directly without contributing it to the application validators. I don't want to contribute because i want to inject some properties into the validator bean in the page descriptor. I can assign each validator on it's own, i just can't assign both

Re: Syntax for multiple validators

2007-04-02 Thread Martino Piccinato
You have to define your validators beans in the hivemodule tapestry contribution Then you can use the bean name directly in the binding as you do with other tapestry default validators. On 4/2/07, Hugo Palma <[EMAIL PROTECTED]> wrote: Hi all, i would like to use two validators

Re: OGNL PropertyAccessor and null handling best practices

2007-04-02 Thread Martino Piccinato
Mark Twain -- -Oorspronkelijk bericht- Van: Martino Piccinato [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 30 maart 2007 11:53 Aan: Tapestry users Onderwerp: OGNL PropertyAccessor and null handling best practices Hi, I think this issue has been discussed before on the list, I've

Re: Persisted Object with session scope is getting lost between the pages.

2007-04-01 Thread Martino Piccinato
uld you please suggest any example? Thanks. Srini. Martino Piccinato wrote: > > Actually the situation you are describing is not completely clear to me it > seems you might want to do another > getOrder() on form rewinding and merge the additional/showed fields with > the > previousl

Re: list box onchange

2007-04-01 Thread Martino Piccinato
I the problem is just opening a new page (simple javascript with no async interaction with server) you could just extend tapestry list component adding the desired javascript. On 4/1/07, Yiannis Mavroukakis <[EMAIL PROTECTED]> wrote: Hi Hans, IMHO this is a nice candidate for the @EventListene

Re: Persisted Object with session scope is getting lost between the pages.

2007-03-31 Thread Martino Piccinato
ll the fileds in the page spec? Thanks. Sri. Martino Piccinato wrote: > > Yes is exactly the same, I quoted 4.1 documentation just because I'm > investigating 4.1 now > > This is 4.0 docs for it: > > http://tapestry.apache.org/tapestry4/UsersGuide/state.html#state.aso

Re: Latest OGNL 2.7-SNAPSHOT and Tapestry

2007-03-30 Thread Martino Piccinato
I've added a bug in ognl issue tracker for the bug I though I've found with some more information on the issue. Sorry but I did not understood at first that Jesse is also OGNL Project Lead so I thought he wanted bug reports for tapestry-ognl and not for ognl ;-)

missing js resources from latest snapshot?

2007-03-30 Thread Martino Piccinato
I'm using latest snapshot 20070327 and the dojo/ajax subsystem can't find the following important resources is trying to load: html.js tapestry.html events.js in fact the resources aren't in the jar.

Re: Latest OGNL 2.7-SNAPSHOT and Tapestry

2007-03-30 Thread Martino Piccinato
I've found a bug or at least a "notable difference" with previous behaviour regarding this. I send it as a mail, if you find it interesting I can open a ticket for this. It took me some to understand what was going on. And yes: I'd like too to have the possibility to stick to ognl 2.6.7 with lat

OGNL PropertyAccessor and null handling best practices

2007-03-30 Thread Martino Piccinato
Hi, I think this issue has been discussed before on the list, I've read some message somewhere but wanted to ask about more feedback on best practice on this. The problem is handling nulls with OGNL while navigating the object graph, that is: getting bad NPE if one of the object of the navigation

Re: Persisted Object with session scope is getting lost between the pages.

2007-03-30 Thread Martino Piccinato
eply. I am using Tapestry 4.0.2. Is ASO exist in 4.1+? Thanks. Sri Martino Piccinato wrote: > > properties persisted on a page (being client or session persisted) are > persisted just for that page (it's called "persistent PAGE properties"). > Just to give you an idea

Re: Persisted Object with session scope is getting lost between the pages.

2007-03-30 Thread Martino Piccinato
properties persisted on a page (being client or session persisted) are persisted just for that page (it's called "persistent PAGE properties"). Just to give you an idea the key of the session attribute named used to store the property contains the page name . It's intended to be so. Usually if yo

  1   2   >