cycle.getResponseBuilder().getWriter() is null

2008-04-27 Thread abhilash
Hi all, i am using tapestry4.1.5 i am trying to get writer object from responsebuilder.But it always null. cycle.getResponseBuilder().getWriter(ResponseBuilder.INITIALIZATION_SCRIPT, ResponseBuilder.SCRIPT_TYPE) is null cycle.getResponseBuilder().getWriter() is also null. any ideas? thanks in adva

T5: Why isn't there any validate property for RadioGroup ?

2008-04-27 Thread Joshua Jackson
dear all, when I tried the RadioGroup component, I noticed that there are no validate property unlike all the other form component? Is there any reason why this property is not available for RadioGroup? Because there are times you are required to choose when using radio input. Thanks in advance

actionlink and pagelink id's no longer (automatically) rendered in 5.0.12-snapshot

2008-04-27 Thread Steven Woolley
Upgrading from 5.0.6 to the latest snapshot, I found that all my pagelinks and actionlinks defined in tml like this: link re no longer rendering with the clientid, ie.: link Instead, I get no id... Same thing goes for pagelinks... I can force the id to be rendered with: link but, that's k

Re: AJAX and the bleeding edge... minor pains...

2008-04-27 Thread Steven Woolley
Thanks for the response Chris. Rob Zeigler and myself dug in and figured out a temporary workaround... by overriding (the internal and subject to change) AjaxPartialResponseRenderer ... I didn't yet do the elegance of making the change based on the requested Content- Type, but that would be

Return page from ajax request

2008-04-27 Thread Andrew Court
Hi all, In T5, from an Ajax request, is it possible to redirect to a different page? What I'm trying to do is something like below: Object onSomeAjaxRequest(){ if(some condition){ exit xhttp and jump to a different page } else{ return xhttp response to same page } } But this doesn't

Re: help with t5component library

2008-04-27 Thread Sven Homburg
and this http://87.193.218.134:8080/t5components/apidocs/src-html/org/apache/tapestry/commons/TapestryCommonsModule.html#line.60 2008/4/27 Sven Homburg <[EMAIL PROTECTED]>: > > http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html > > > 2008/4/27 mnguyen21 <[EMAIL PROTEC

Re: help with t5component library

2008-04-27 Thread Sven Homburg
http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html 2008/4/27 mnguyen21 <[EMAIL PROTECTED]>: > > oops attached the wrong version. It still doesn't work with the "../" > removed. How does Tapestry organize components? How does it know where > t5components points to?

Re: help with t5component library

2008-04-27 Thread mnguyen21
oops attached the wrong version. It still doesn't work with the "../" removed. How does Tapestry organize components? How does it know where t5components points to? In the examples I've seen/read there isn't any kind of folder organization to the components. All t:type declarations specify on

Re: T5 Component question based on the Count component in documentation

2008-04-27 Thread Chris Lewis
Sorry I didn't mean to say providing a number is illegal, but interpreted directly as that numeric value because it can't be interpreted as a valid bean property. Chris Lewis wrote: > maxthesecond wrote: > >> Completely right sire >> although you have to admit than having defined the field >>

Re: T5 Component question based on the Count component in documentation

2008-04-27 Thread maxthesecond
So providing a number like '4' is illegal because it would indicate a method get4() (valid) and a property name (a class member) '4', which of course is illegal. T5 is just following the established naming convention here, and this too is documented. Chris Lewis-5 wrote: > > > Thats it you get

Re: T5 Component question based on the Count component in documentation

2008-04-27 Thread Chris Lewis
maxthesecond wrote: > Completely right sire > although you have to admit than having defined the field > > @Parameter(required = true) > private String _stext; > > 1)Ho! will go along (I declare a > parameter of type string but... > > 2)Ho! will fail (I declare the > same) > > In both cases

Re: T5 Component question based on the Count component in documentation

2008-04-27 Thread maxthesecond
Completely right sire although you have to admit than having defined the field @Parameter(required = true) private String _stext; 1)Ho! will go along (I declare a parameter of type string but... 2)Ho! will fail (I declare the same) In both cases my attemt is to set up a string parameter

Re: help with t5component library

2008-04-27 Thread Sven Homburg
the following code looks not "legitimate" http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> please try without the "../" 2008/4/27 mnguyen21 <[EMAIL PROTECTED]>: > > Hi, > I suppose this message s

help with t5component library

2008-04-27 Thread mnguyen21
Hi, I suppose this message should really be directed towards Geoff Callender, but here goes... I'm trying to build a demo application for some colleagues using Tapestry 5. I've run into a problem utilizing some of the components from Geoff's Jumpstart application. I'm trying to utilize his Sl

Re: Disable PageRenderSupport

2008-04-27 Thread Fernando Padilla
That was one option that I wanted to get confirmation about. What if you add another entry to the configuration element with the same name of a previous one.. does it override or ignore or throw exception? I tried it and it seemed to not work, but it's late here, and maybe it was something el

Re: AJAX and the bleeding edge... minor pains...

2008-04-27 Thread Chris Lewis
Hi Steven, Regarding c): I was just about to respond telling you that you can return AJAXObject or an injected block (mark up), and it will work fine, and then I realized that even markup is wrapped in a JSON envelope. I don't think this can be changed without changing some T5 code - even if you

Re: Disable PageRenderSupport

2008-04-27 Thread Chris Lewis
Hi Fernando, I've not tried this before, but can you just replace the one that gets added in the TapestryModule (line 1529)? I thought there was a way to do this, perhaps by adding yours to the configuration with the same service id. Fernando Padilla wrote: > Hello. I would like to disable the d

Re: T5 Component question based on the Count component in documentation

2008-04-27 Thread Chris Lewis
Max, The reason is actually quite simple. When you pass in values to component parameters, tapestry interprets their values in the context of binding prefix. If you create your own component with parameters and do not specify a the binding prefix under which the value is to be interpreted, the def

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

2008-04-27 Thread Peter Stavrinides
Thanks Josh, I guess my approach was probably wrong to begin with, but this looks good, will give it a try. I also agree the checkbox could do with another attribute perhaps a context? which would make it a little easier to work with. Thanks everyone for your responses! Peter - Original Me