Re: Grid columns sort

2012-08-10 Thread William Lopes
Hi guys, so, I achieved do it! Thanks the both, I'm so happy to have achieved. I really had of implement a MaterialGridDataSource replete of little things. I go leave the source code for somebody that can to need in the future. > @SuppressWarnings("all") > public class MaterialGridDataSource i

jnlp files in tapestry

2012-08-10 Thread gonzalomp87
Hi I need to put a link on my application to run an application with java web start, but can not find information. In the. Tml I have put: Notepad.jnlp Launch Notepad Application in the .Java only I added the annotation @ Meta ("tapestry.response-content-type = text / xml") I read a user's th

Re: Why should we specify t:id and id for the zone

2012-08-10 Thread Paul Stanton
My take: Because otherwise tapestry has trouble assigning client ids to zones at different stages of the partial render. This makes it hard to control the behaviour unless you set both. p. On 10/08/2012 8:34 AM, bhorvat wrote: Well like it says in the subject, why should we specify both nor

Re: how to run javascript after returning from form submit

2012-08-10 Thread Paul Stanton
AjaxResponseRenderer.addCallback(JavaScriptCallback callback); On 3/02/2012 4:05 AM, hese wrote: Hello, I have a form within a zone. On for submit I do some validations, and if there are errors, I want to remain on the same page, and run a javascript method on the client side. How do I achie

Re: Custom Asset Source for Images

2012-08-10 Thread Paul Stanton
This should give you an idea. Pseudo code: create a service ie YourImageService Inject into it AssetSource and YourDao (or however you have implemented data access) implement your logic: YourImageService { Asset getImageAsset(location, id) { return assetSource.getContextAsse

Re: Grid columns sort

2012-08-10 Thread Thiago H de Paula Figueiredo
On Fri, 10 Aug 2012 19:08:11 -0300, William Lopes wrote: Hi guys again. hehe So, I did create a class MaterialGridDataSource that implements GridDataSource and I put as my source in the Grid. But, for I to do my comparisons, I need to know the label of the column that was "clicked". How I d

Re: Tapestry 5.3.4

2012-08-10 Thread David Rees
On Fri, Jul 20, 2012 at 10:11 AM, Kalle Korhonen wrote: > Yes, the pom looks correct: > http://central.maven.org/maven2/org/apache/tapestry/tapestry-yuicompressor/5.3.4/tapestry-yuicompressor-5.3.4.pom > > You are instructing Maven to use a proxy exactly so that it wouldn't > generate requests to

decimalFormatSymbols

2012-08-10 Thread arterzatij
Hi all, How do I change the settings of "decimalFormatSymbols" programmatically? I am getting the JSONObject as Tapestry.decimalFormatSymbols = { "minusSign" : "-", "groupingSeparator" : ".", "decimalSeparator" : "," }; But my regional settings are grouping

Re: Grid columns sort

2012-08-10 Thread William Lopes
Hi guys again. hehe So, I did create a class MaterialGridDataSource that implements GridDataSource and I put as my source in the Grid. But, for I to do my comparisons, I need to know the label of the column that was "clicked". How I do it? Thank you! 2012/8/10 William Lopes > @Pavel > Thanks,

Re: Grid columns sort

2012-08-10 Thread William Lopes
@Pavel Thanks, I think that now I did understand. I go create a prepare method for my class Material, and it I will implement the comparable (following the same default), ok? @Thiago I want implement a ordination (normal, common like the existing) of the rows by column (additional). 2012/8/10 Pa

Re: Grid columns sort

2012-08-10 Thread Thiago H de Paula Figueiredo
I'm still not sure about what you mean by sorting. Is it sorting of columns or of rows? Anyway, you'll need to implement PropertyConduit for what your Atributo and use it when adding properties to the BeanModel (method add(String propertyName, PropertyConduit conduit). Without the Material,

Re: Grid columns sort

2012-08-10 Thread Pavel Vodenski
Here's Tapestry's implementation of GridDataSource for Collections: https://github.com/apache/tapestry-5/blob/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/grid/CollectionGridDataSource.java That implementation works with any class, but you can write a special one that works with

Re: Grid columns sort

2012-08-10 Thread William Lopes
I didn't want say that "implement a Grid", sorry. I need of an example functional, the data comes from a list of ValorAtributo (a type of data) of the class Material, this last, is the source of the grid. Basically, I have 3 classes, Material (makes the link of the Atributo and ValorAtributo), At

Re: ActivationRequestParameter question

2012-08-10 Thread Thiago H de Paula Figueiredo
On Fri, 10 Aug 2012 15:43:48 -0300, Howard Lewis Ship wrote: That looks like another bug to me; for anything that goes into a URL (as path or query parameter) the code should be using a ValueEncoder. By the way, sometimes I miss having separate encoders for fields and URLs. What is good f

Re: Using subfolders of component folder

2012-08-10 Thread Ray Nicholus
You certainly do not need to create a new library mapping for each subfolderSounds like you are missing some basic concepts. Take a look at http://tapestry.apache.org/component-libraries.html. On Fri, Aug 10, 2012 at 1:55 PM, StroncieruM wrote: > I may not be so clear, I know how to include on

Re: Using subfolders of component folder

2012-08-10 Thread StroncieruM
I may not be so clear, I know how to include one subfolder, and it's done in the following way public static void contributeComponentClassResolver(Configuration configuration) { configuration.add(new LibraryMapping("dirsyim", "tr.org.kuvvet.components.dirsyim")); } but what if I ha

Re: ActivationRequestParameter question

2012-08-10 Thread gricker
I created a new TypeCoercer and it works fine. Thanks, Greg -- View this message in context: http://tapestry.1045711.n5.nabble.com/ActivationRequestParameter-question-tp5715201p5715233.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: ActivationRequestParameter question

2012-08-10 Thread Howard Lewis Ship
On Fri, Aug 10, 2012 at 7:58 AM, Thiago H de Paula Figueiredo wrote: > On Fri, 10 Aug 2012 10:36:21 -0300, gricker wrote: > >> I tried creating my own ValueEncoder but it seems like the error is >> occurring before my code is called. > > > I guess because the annotation handler uses TypeCoercer,

Using subfolders of component folder

2012-08-10 Thread StroncieruM
I am making some project, and for better coordination I would like to include subfolders into mine component folder. However when I do so, ie I implement component.folderA none of the components is available to my pages. What am I missing here? Any help is appreciated. -- View this message in co

Re: Changing default session behavior.

2012-08-10 Thread kata
Hi, all As a follow-up: I decorated the TapestrySessionFactory to return a shiro session instead of the wrapped HttpServletSession. The interfaces were not identical, so a (very) simple coercion function was needed. I got exactly what I needed: the only shiro-related code consists of a few lines i

Re: ActivationRequestParameter question

2012-08-10 Thread Thiago H de Paula Figueiredo
On Fri, 10 Aug 2012 10:36:21 -0300, gricker wrote: I tried creating my own ValueEncoder but it seems like the error is occurring before my code is called. I guess because the annotation handler uses TypeCoercer, not ValueEncoder for that. -- Thiago H. de Paula Figueiredo

Re: ActivationRequestParameter question

2012-08-10 Thread gricker
I tried creating my own ValueEncoder but it seems like the error is occurring before my code is called. -- View this message in context: http://tapestry.1045711.n5.nabble.com/ActivationRequestParameter-question-tp5715201p5715222.html Sent from the Tapestry - User mailing list archive at Nabbl

Re: T5: How to custome the GridPager ?

2012-08-10 Thread antalk
Hi, Depends on what you want to change ? 1. Layout - colors -> change the CSS 2. Structure and or behaviour -> override the GridPager class -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-How-to-custome-the-GridPager-tp5715219p5715220.html Sent from the Tapestry -