Re: Lightweight TapestryTools update site

2012-10-04 Thread Davor Hrg
Hi, I've just installed the TapestryTools but have no autocomplete in template and CTRL+R is not working ... actually CTRL+R is the only feature I' am really interested in for now. waht can I do to check what is wrong ? On Sun, Aug 19, 2012 at 4:30 PM, Gavin Lei gavingui2...@gmail.com

Re: Live class reloading very slow

2011-05-25 Thread Davor Hrg
were made. Davor Hrg On Tue, May 24, 2011 at 7:49 PM, Bryan Lewis jbryanle...@gmail.com wrote: I put it back into the src/main/resources line of .classpath, like: classpathentry excluding=** kind=src output=target/classes path=src/main/resources/ My templates are being copied

Live class reloading very slow

2011-05-24 Thread Davor Hrg
for debugging... is there a switch to use old page pool ? Davor Hrg

Re: Live class reloading very slow

2011-05-24 Thread Davor Hrg
4GB RAM Davor Hrg On Tue, May 24, 2011 at 5:50 PM, Howard Lewis Ship hls...@gmail.com wrote: For me as well, instantaneous under Jetty. 5.2.5 adds field write-behind when in development mode, to assist with debugging. This is also present in 5.3. There is a switch to use the page pool

Re: Live class reloading very slow

2011-05-24 Thread Davor Hrg
with a zone inside it .. jumps to 950 ms - add two more of same component and few lines of text ... jumps to 1200 ms This is awful ... I hope this can be fixed by configuring something ... etc... if this is T5 reality ... it is extremely unproductive and painful. :( :( :( Davor Hrg On Tue, May 24

Re: Live class reloading very slow

2011-05-24 Thread Davor Hrg
I also removed excluding ** for src/main/resurces but without it templates do not get copied to calsses dir where did you put back the excluding ** ? Davor Hrg

Re: Alternating table rows

2010-09-14 Thread Davor Hrg
here is a neat and reusable trick on tapestry5howtos http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefixCycle Davor Hrg On Tue, Sep 14, 2010 at 10:01 AM, John Doe nicu4...@yahoo.com wrote: Hello, I am new to Tapestry, but I am working on a project that uses it. The version is 5

Re: T5.1 and Threaded Background Tasks

2010-09-01 Thread Davor Hrg
You can use ParallelExecutor service just fine, and to use injection do not instantiate a task yourself but make it a service with scope perthread. Davor Hrg On Wed, Sep 1, 2010 at 10:03 PM, Kalle Korhonen kalle.o.korho...@gmail.comwrote: ParallelExecutor is a service that allows work to occur

Re: OT: Web Services

2010-08-30 Thread Davor Hrg
I used CXF to generate java code from XSD-s, CXF is easily used with maven, but in the end most newer WS engines use JAXB for data binding. JAXB is not perfect, and it took me a whole week to make rules for jaxb to get desired output. To be fair, he problem was not jaxb here but a very bad XSD, so

Documentation improvement maybe ?

2010-08-30 Thread Davor Hrg
could rephrased: short answer: you can't original explanation... long answer: you can but there are limitations, click here for a detailed description on using library mappings. Davor Hrg

Query parameters

2010-08-19 Thread Davor Hrg
to be able to write this: t:SelfLink q:year=20102010/... to get the mentioned result for that matter a namespace xmln:p=tapestry:parameter or new one like xmlns:q=tapestry:query would be nice for the ActionLink and PageLink. Davor Hrg

Re: message that i do not understand

2009-04-30 Thread Davor Hrg
I had this issue when my tapestry dependencies got mixed. The project uses T 5.1.04 and an utility module declared T 5.0.7. in runtime this created the issue, I guess because names changed for the validators... I aligned the versions, and the error is gone. Davor Hrg On Thu, Apr 23, 2009

Re: Tapestry JSONObject : no 'function' type, any workaround ?

2009-03-09 Thread Davor Hrg
I have a solution :) I needed it to make my own autocomplete /** * */ package tapestryutil.mixins; /** Workarround to add raw content to JSON, like function references and such. * Number instances are not quoted and are trusted, so we use it.*/ final class JSONRaw extends Number {

Re: Switch from Prototype to jQuery?

2009-02-12 Thread Davor Hrg
elems = Tapestry.form.getElements(this.form); for(element in elems) The impl of the func would be obviously Tapestry.form.getElements = function(form){return form.getElements();} Davor Hrg On Thu, Feb 12, 2009 at 1:27 AM, Howard Lewis Ship hls...@gmail.com wrote: These are all good

Re: Switch from Prototype to jQuery?

2009-02-11 Thread Davor Hrg
be on me as well, a year has almost passed since I looked into this, and haven't done much since. :(:( Davor Hrg On Wed, Feb 4, 2009 at 8:17 AM, Peter Stavrinides p.stavrini...@albourne.com wrote: it would be nice if a component could indicate that the scripts should be at the top for the entire

Re: Switch from Prototype to jQuery?

2009-02-11 Thread Davor Hrg
can be left like this and version for other libs with the new approach (the other libs don't like prototype.js anyway). This can mean that people with other js libs are fixed to tapestry core only but this I suppose is ok for many Davor Hrg On Wed, Feb 11, 2009 at 10:14 PM, Davor Hrg hrgda

Re: Rendering messages in template

2008-10-26 Thread Davor Hrg
you can make a binding prefix to handle this, but syntax would have to be without ${ ${messages:${step.stepName}-step} something like ${messages:prop:step.stepName+-step} look at: http://wiki.apache.org/tapestry/Tapestry5HowTos under binding prefixes Davor Hrg On Fri, Oct 24, 2008 at 5:33 PM

Re: Hibernate example broken with 5.0.15

2008-10-06 Thread Davor Hrg
you should post the errors you get, and, also methods that save data should have @CommitAfter annotation now. ...and you need not close the session it will get closed automatically, and that is actualy the reason the exception occurs Davor Hrg On Mon, Oct 6, 2008 at 11:23 AM, János Jarecsni

announce wiki article

2008-09-23 Thread Davor Hrg
I've made an wiki article after a long time http://wiki.apache.org/tapestry/Tapestry5HowToWorkQueue it is an another example of working with threads in tapestry any suggestions are welcome -- Davor Hrg

Re: LinkedIn and Facebook

2008-09-01 Thread Davor Hrg
it seems like it wa a png/gif with transparency and server resized it or converted to jpg using black as bg On Mon, Sep 1, 2008 at 12:09 AM, Filip S. Adamsen [EMAIL PROTECTED] wrote: Hi, It's nice to have a Tapestry group on Facebook. Is there any reason I'm only seeing 10 members? Also,

Re: t5: Hibernate resultset with pagination

2008-09-01 Thread Davor Hrg
not sure what you are trying achieve exactly paging, table, all can be simply generated even without grid but you'll need to print each column manualy, or dig deeper and use beanModel your self Davor Hrg On Mon, Sep 1, 2008 at 3:32 AM, Angelo Chen [EMAIL PROTECTED]wrote: Hi, I have a need

Re: LazyInitializationException

2008-08-26 Thread Davor Hrg
caching configuration (second-level cache, query cache ...). Davor Hrg On Tue, Aug 26, 2008 at 10:35 AM, moritzgilsdorf [EMAIL PROTECTED]wrote: Hi, I have a Problem with lazy loading. In my App I query a Database using Hibernate. The workflow is the following: Searchpage

Re: LazyInitializationException

2008-08-26 Thread Davor Hrg
to your self in that case a new request happens and your problems.. Davor Hrg Davor Hrg On Tue, Aug 26, 2008 at 11:17 AM, moritzgilsdorf [EMAIL PROTECTED]wrote: I pass the Id of the Object to Detailspage and use onActivate() to query for the object I want to show in detail. My Details Page

Re: Why you should consider T5

2008-08-21 Thread Davor Hrg
nice post, i don't see mention of automatic template and class reloading.. :) Davor Hrg On Thu, Aug 21, 2008 at 7:13 AM, Partogi, Joshua [EMAIL PROTECTED]wrote: Dear all, I written a small blog post to evangelize people about T5 here: http://joshuajava.wordpress.com/2008/08/21/why-you

Re: Decorating Grid rows

2008-08-18 Thread Davor Hrg
you can use rowClass to mark rows, and set global context menu handler on the table, and then in the handler find out row's class attribute : row.className then based on that decide what to show in context menu... Davor Hrg On Mon, Aug 18, 2008 at 3:27 PM, Stranzenbach, Ralf [EMAIL PROTECTED

Re: [T5]How to make indentical validation on the client side.

2008-08-18 Thread Davor Hrg
you can use @IncludeJavaScriptLibrary annotation in your page or in a component Davor Hrg On Mon, Aug 18, 2008 at 3:44 PM, Geoff Callender [EMAIL PROTECTED] wrote: The problem with that How To is this line: This javascript file needs to be included in all pages/components where

Re: Display String Array

2008-08-08 Thread Davor Hrg
is it String[] or String[][] anyhow, you can use the loop component to print the strings table trthheader name/th/tr t:loop . trtd${str}/td/tr /t:loop /table look for details in tapestry doc's Davor Hrg On Thu, Aug 7, 2008 at 4:46 PM, Mohammad Irfan [EMAIL PROTECTED] wrote: Hi, I have

Re: Setting the GridPager range

2008-08-08 Thread Davor Hrg
I don't understand what you mean by range ? Davor Hrg On Thu, Aug 7, 2008 at 3:16 PM, immutability [EMAIL PROTECTED] wrote: Hi everyone! I'm still a little new to Tapestry5, and before starting a large project we've decided to develop a small internal application using Tapestry5. I

Re: Setting the GridPager range

2008-08-08 Thread Davor Hrg
this looks like a bug, please post a JIRA issue Davor Hrg On Fri, Aug 8, 2008 at 3:13 PM, Radoslav Bielik [EMAIL PROTECTED] wrote: Thanks - it should be, but it ain't that simple :) It was actually one of the first things I tried... If you check the Grid component reference, it doesn't have

Re: T5: Dynamic asset path

2008-08-07 Thread Davor Hrg
it depends on what you need, but you could combine the asset service to generate base path and add the rest programatically img src=${asset:context:company}/$(company.id)/img/banner.gif/ this way you don't need a method a component would be even better to avoid copy/paste Davor Hrg On Wed

Re: T5: how to switch to 5.0.14 snapshot?

2008-08-01 Thread Davor Hrg
properties tapestry-release-version5.0.14-SNAPSHOT/tapestry-release-version /properties On Fri, Aug 1, 2008 at 12:26 PM, Angelo Chen [EMAIL PROTECTED]wrote: Hi, my pom.xml has following entries, what should I change to use the 5.0.14 snapshot? thanks. pluginRepositories !-- As

Re: T5: dead lock in Tapestry - Hibernate

2008-07-09 Thread Davor Hrg
nice to know :) , thnx I still use 3.x :) On Wed, Jul 9, 2008 at 9:10 AM, Angelo Chen [EMAIL PROTECTED] wrote: just discovered that my mysql jdbc driver is stil 3.x, updated to 5.1.6 in pom.xml, problem goes away up to now. Angelo Chen wrote: Hi, I encounter this warning quite

Re: Localization in business objects

2008-07-09 Thread Davor Hrg
.. ... you can inject message catalog to the page, and then forward it to the business object before creating the report Davor Hrg On Wed, Jul 9, 2008 at 10:47 AM, Udo Abel [EMAIL PROTECTED] wrote: Hi, is it possible to use the Tapestry Localization (message catalog) outside of pages

Re: AW: AW: AW: AW: Strange behavior of special characters

2008-07-09 Thread Davor Hrg
properties files can not be encoded other than iso1, you should use natve2acii to convert them. this might solve your problem Davor Hrg On Wed, Jul 9, 2008 at 12:12 PM, Sebastian Altmann [EMAIL PROTECTED] wrote: Ok seems like this won't get me anywhre. I just can repeat: All my properties

Re: T5 firefox IE7

2008-06-15 Thread Davor Hrg
to contribute this to project, but pretty busy in last two months. Davor Hrg On Sat, Jun 14, 2008 at 1:36 PM, [EMAIL PROTECTED] wrote: also, firebug really slows ff down. On 6/14/08, maxthesecond [EMAIL PROTECTED] wrote: As my T5 application was evolving, I've noticed an important slow

HINT tapestry - tapestry5 package rename

2008-06-15 Thread Davor Hrg
. BindingConstants (PROP, LITERAL) MetaDataConstants (RESPONSE_CONTENT_TYPE...) PersistenceConstants SymbolConstants (PRODUCTION_MODE) org.apache.tapestry5.internal InternalConstants (TAPESTRY_APP_PACKAGE_PARAM...) PageRenderSupport was renamed to RenderSupport hope someone finds this useful :) Davor

Re: how to capture the submit event which occured from a input type=image

2008-05-29 Thread Davor Hrg
) { _resources = resources; _formSupport = support; _heartbeat = heartbeat; } } as you can see the code is realy simple, it is easy to get this to support input type=image Davor Hrg On Thu, May 29, 2008 at 9:22 AM, LakshithaS [EMAIL PROTECTED] wrote: Thanks all for the replies

Re: how to capture the submit event which occured from a input type=image

2008-05-28 Thread Davor Hrg
it works only wih submit component, the submit component is pretty basic, but you might easily create your own submit comp by copy/paste the original and add-in extra options you need On Wed, May 28, 2008 at 2:45 PM, nille hammer [EMAIL PROTECTED] wrote: Hi Lakshitha, the event handler

Re: Grid Source Persist and Paging

2008-05-20 Thread Davor Hrg
know user just came from another page. or reverse situation, add a parameter to all your local links and reset results when it is missing. this is a general explanation, .. no time to paste some specific code Davor Hrg On Mon, May 19, 2008 at 11:53 PM, Todd Orr [EMAIL PROTECTED] wrote

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-20 Thread Davor Hrg
+1 for org.apache.tapestry5 I havent given it too much thought, but sounds ok Davor Hrg On Tue, May 20, 2008 at 3:08 PM, Martin Strand [EMAIL PROTECTED] wrote: I wouldn't go for ng though, merely because what if there's a new next generation. I think that would be Tapestry Deep Space

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

2008-04-25 Thread Davor Hrg
because of licensing issues, tapestrz has fallen back to a calendar with less features Davor Hrg On Fri, Apr 25, 2008 at 2:21 AM, Estevam Henrique Portela Mota e Silva [EMAIL PROTECTED] wrote: Hi, Do I need to format dd / mm / is standard in Brazil but not worked. Only worked 5.0.9

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: T5 equivalent for T4 IExternalPage.activateExternalPage

2008-04-22 Thread Davor Hrg
I think it is: public void onActivate(String param1, int param2, Entity param3...){ } On Tue, Apr 22, 2008 at 1:58 PM, Jan Vissers [EMAIL PROTECTED] wrote: Hi, Just out of curiosity. What's T5 designated alternative for T4's IExternalPage public void activateExternalPage(Object[]

Re: Threading issues with DB operations on OS X

2008-04-22 Thread Davor Hrg
what version of tapestry is it ? there has been a recent fix that changes the way trasactions are handled. before that database connections were on autocommit and sometimes that caused the problems you describe. if you commit explicitely the problem will most likely be gone ... Davor Hrg

Re: T5: onActivate() called twice

2008-04-21 Thread Davor Hrg
you have to be more specific, same OnActivate method will not be called more than once in normal circumastances, but overriding onActivate from a base class I belive can cause this ... some code would be useful. Davor Hrg On Mon, Apr 21, 2008 at 12:41 PM, Leon Derks [EMAIL PROTECTED] wrote

Re: Trolls (Rob Smeets, Emmanuel Sowah, you know)

2008-04-16 Thread Davor Hrg
of his freedom of speech because the administrators on gmail and hotmail will decide if this something that should be sanctioned, we only send our grievance to the abuse dept. The abuse admins will then decide if we are overreacting. Davor Hrg On Wed, Apr 16, 2008 at 3:30 PM, Andy Pahne [EMAIL

Re: T5: component id, element id

2008-04-15 Thread Davor Hrg
after the component, and thus use this approach only when id is not available I dislike using explicit ids in my js app at all, but that's just the way I like it... Davor Hrg On Tue, Apr 15, 2008 at 11:13 AM, Chris Lewis [EMAIL PROTECTED] wrote: The goal - To create

Re: AW: Getting Answers on the User List

2008-04-15 Thread Davor Hrg
did it :) take a random post from rob and do it also if you have gamil acc. all the posts are offensive more or less https://gmail.google.com/support/bin/answer.py?answer=29381 Davor Hrg On Tue, Apr 15, 2008 at 1:54 PM, Michael Gerzabek [EMAIL PROTECTED] wrote: +1 Chris Lewis schrieb: I

Re: How to 'bypass' client side validation - when 'Cancel' is pressed.

2008-04-15 Thread Davor Hrg
you can do it with javascript... sth like this (not tested) put a normal input type=submit value=${cancel} onclick=return avoidValidation(this) function avoidValidation(elem){ var form = elem.parentNode; //find form while(form form.tagName != FORM) form = form.parentNode;

Re: How to 'bypass' client side validation - when 'Cancel' is pressed.

2008-04-15 Thread Davor Hrg
is good when you start from any given dom node, i.e. a link and not just an input control On Tue, Apr 15, 2008 at 9:55 PM, Davor Hrg [EMAIL PROTECTED] wrote: that does not work for all browsers as far as I know... :) I can't remember which any more... but try it out in IE and FF, I think

Re: AW: Getting Answers on the User List

2008-04-14 Thread Davor Hrg
like real users ? I'm would ignore you just like jesse, but someone must mark your remarks as they are: TROLL, so nobody is mistaken when reading these threads. Davor Hrg On Mon, Apr 14, 2008 at 3:28 PM, Rob Smeets [EMAIL PROTECTED] wrote: And please allow me to also mention that, not only

Re: T5: obtaining a list of valid pages

2008-04-14 Thread Davor Hrg
there is also ClassNameLocator service with methods to list classes in a package On Mon, Apr 14, 2008 at 10:55 PM, Marcus [EMAIL PROTECTED] wrote: Hi Angelo, - get ContextClassLoader from current Thread - get path of your pages package (org.exemplo.teste.pages) from ClassLoader - get files

Re: T5: beta?

2008-04-10 Thread Davor Hrg
Please ignore him (I personaly have hard time doing so), he has not yet had any technical comment or question, he only comes here from time to time to bash on tapestry (reasons unknown). Davor Hrg On Thu, Apr 10, 2008 at 2:22 PM, Joachim Van der Auwera [EMAIL PROTECTED] wrote: Well Rob

Re: T5: beta?

2008-04-10 Thread Davor Hrg
Would you give up already, you are not a tapestry user, tapestry 5 is very well documented, has a great mailing list, has exhaustive unit tests... If I don't like some framework, I don't use it and that's it. Please have some respect to tapestry users and go away already. Davor Hrg On Thu, Apr

Re: Eclipse tapestry templates on wiki

2008-04-02 Thread Davor Hrg
template variables what version of eclipse are you using ? I'll add a version of the templates without the import statements so everyone can enjoy them :) Davor Hrg On Tue, Apr 1, 2008 at 9:26 PM, Steven Woolley [EMAIL PROTECTED] wrote: I'm trying to use the templates from http://wiki.apache.org

Re: Eclipse tapestry templates on wiki

2008-04-02 Thread Davor Hrg
the new xml is now added there (I just removed import statements), http://wiki.apache.org/tapestry-data/attachments/Tapestry5HowToEclipseCodeTemplates/attachments/t5_eclipse_code_templates_before_E3.4.M2.xml please try it out so I can confirm it works :) Davor Hrg On Wed, Apr 2, 2008 at 10:01

Re: T5, newbie: Component parameter passing problems

2008-04-01 Thread Davor Hrg
Tapestry support for Java generics is very limited, you need a value encoder to make this work, also, add more details on who calls what... so more is known of the problem you are trying to solve. Davor Hrg On Tue, Apr 1, 2008 at 1:43 PM, Alec Leamas [EMAIL PROTECTED] wrote: I have problems

Re: T5, newbie: Component parameter passing problems

2008-04-01 Thread Davor Hrg
getter fails. The debug info is from a breakpoint inside this method. The error I get is a classcast error java.lang.String cannot be cast to ...MyMap If I change the index to 1, there an error Caused by: Index: 1, Size: 1 i. e., index out of bounds. Davor Hrg wrote: Tapestry support for Java

Re: How is T5 tutorial?

2008-03-31 Thread Davor Hrg
on complining about being called a troll and keep avoiding any relevant topic. Davor Hrg On Wed, Mar 26, 2008 at 5:42 PM, Rob Smeets [EMAIL PROTECTED] wrote: And is calling someone a Troll not an insult? You guys have been doing the insults. I haven't insulted anyone but I'm only pointing out

Re: Uploading templates/properties via FTP

2008-03-26 Thread Davor Hrg
which version of tapestry ? On Wed, Mar 26, 2008 at 11:01 AM, Tobias Marx [EMAIL PROTECTED] wrote: Hi there! I would like to separate Java code from property files and template for the deployment process. In fact, I do not want to deploy templates and property files as such and instead

Re: How is T5 tutorial?

2008-03-26 Thread Davor Hrg
, and without baching tapestry, and without advertizing other frameworks ? Davor Hrg On Wed, Mar 26, 2008 at 2:23 PM, Rob Smeets [EMAIL PROTECTED] wrote: I hope the men whose names you mentioned being me are reading and could respond. I'm Rob Smeets and take full responsibility of all what I write

Re: How is T5 tutorial?

2008-03-25 Thread Davor Hrg
TROLL go away On Tue, Mar 25, 2008 at 9:33 AM, Rob Smeets [EMAIL PROTECTED] wrote: Hi, Go grab Wicket of GWT. It's better documented and questions like what you asked won't refer you to source code but to a well documented examples. Above all the users of those lists are far, far more

Re: How is T5 tutorial?

2008-03-25 Thread Davor Hrg
user, identify your self and send few links to wicket mailing list threads involving you. I bet wicket devs would have few words to say to you about your fud which does no good to wicket or tapestry. Davor Hrg On Tue, Mar 25, 2008 at 12:46 PM, Rob Smeets [EMAIL PROTECTED] wrote: There we go

Re: @Cached and caching in general

2008-03-25 Thread Davor Hrg
caching every method by default is definitely too error prone, and unexpected for most people. On Tue, Mar 25, 2008 at 3:23 PM, Francois Armand [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Yes, you are right. But loops are usually inside of components and pages contain those

Re: [T5] Inner Enums of Pages and Components

2008-03-25 Thread Davor Hrg
() { _currentBlock = Blocks.EDIT.name(); return true; } this might be helpfull... and it is not too far from classic usage Davor Hrg On Tue, Mar 25, 2008 at 10:49 PM, Adam Zimowski [EMAIL PROTECTED] wrote: If Page or Component defines Enum internally, Tapestry throws

Re: [T5] Inner Enums of Pages and Components

2008-03-25 Thread Davor Hrg
An idea: I belive it has many pitfalls :(, but might be useful an idea, tapestry could for example extend such enum (persist worker might trigger it) and add serialization code to it. Then when reloading it could force serializing enum values, plus if the value gets serialized outside tapestry it

Re: [T5.0.11] how to build zebra effect for grid

2008-03-22 Thread Davor Hrg
it's there on the wiki, use it any way you wish :) On Fri, Mar 21, 2008 at 2:53 PM, Sven Homburg [EMAIL PROTECTED] wrote: nice implementation! i want to implement it into the t5component project ... is that problematic for you ? 2008/3/21, Davor Hrg [EMAIL PROTECTED]: it is just

Re: T5: generic, onActivate and onPassivate

2008-03-22 Thread Davor Hrg
it has all you need for generics in javassist Davor Hrg On Fri, Mar 21, 2008 at 11:21 PM, Howard Lewis Ship [EMAIL PROTECTED] wrote: Yes ... but that information isn't always exposed properly via the Javassist APIs. On Fri, Mar 21, 2008 at 3:19 AM, Davor Hrg [EMAIL PROTECTED] wrote

Re: T5: generic, onActivate and onPassivate

2008-03-21 Thread Davor Hrg
Method parameter types contain generic information just like properties and method return types. It is quite similar to stuff in property conduit source. Davor Hrg On Fri, Mar 21, 2008 at 6:41 AM, Howard Lewis Ship [EMAIL PROTECTED] wrote: Yes, I think the generics logic isn't smart enough

Re: [T5.0.11] how to build zebra effect for grid

2008-03-21 Thread Davor Hrg
: http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefixCycle t:grid ... rowClass=cycle:h-even,h-odd... Davor Hrg On Fri, Mar 21, 2008 at 12:52 PM, Sven Homburg [EMAIL PROTECTED] wrote: hi there, i realized the zebra effect before release 5.0.11 with a ZebraGrid class extends from

Re: AW: @Cached and caching in general

2008-03-19 Thread Davor Hrg
, even after the html code is rendered. Davor Hrg On Wed, Mar 19, 2008 at 10:45 AM, Martin Kersten [EMAIL PROTECTED] wrote: ...this king of component is useful for capturing output so it can be sent via email for example. This does not sound like a good idea. Do you mean requesting a page

Re: Component event handlers

2008-03-19 Thread Davor Hrg
too little information... some events support return value, some don't... tell more on exact case Davor Hrg On Wed, Mar 19, 2008 at 5:12 PM, José Paumard [EMAIL PROTECTED] wrote: Hi all, Everytime I try to return an injected block in an event handler method, I get an error message

Re: @Cached and caching in general

2008-03-18 Thread Davor Hrg
@Cached is an annotation that caches method call result per request. so while page is rendering if multiple pieces of template require that property it gets called only once... Davor Hrg On Tue, Mar 18, 2008 at 5:44 PM, Tobias Marx [EMAIL PROTECTED] wrote: I have not used T5 yet, but would

Re: AW: @Cached and caching in general

2008-03-18 Thread Davor Hrg
and produce cached raw output otherwise. this would be very similar to output_buffer tricks in php. Davor Hrg On Tue, Mar 18, 2008 at 6:25 PM, Filip S. Adamsen [EMAIL PROTECTED] wrote: That's a special case, really. Do what you want. -Filip On 2008-03-18 18:20, Tobias Marx wrote: Ok

Re: AW: @Cached and caching in general

2008-03-18 Thread Davor Hrg
I'm interested in the one for T5 :) if you are not allowed to share source, maybe few hints how to make it Davor Hrg On Tue, Mar 18, 2008 at 7:22 PM, Fernando Padilla [EMAIL PROTECTED] wrote: We have a component that we call Buffer :) it takes a timeout, optional cachekey, and optional

Re: AW: @Cached and caching in general

2008-03-18 Thread Davor Hrg
thanks :) It's 00:46 here, I'll try it out in the morning, If I make it work I'll create a wiki page for it... Davor Hrg On Wed, Mar 19, 2008 at 12:38 AM, Fernando Padilla [EMAIL PROTECTED] wrote: here you go :) Should be able to drop these into your project. The Buffer.java

Re: T5, newbie: Grid use w dynamic columns

2008-03-16 Thread Davor Hrg
Grid uses BeanModel, no need to mess with javassist you can create default one by injecting BeanModelSource and create it with it after that you can play with the model. or you can provide a list of columns to the grid to include/exclude Davor Hrg On Sun, Mar 16, 2008 at 4:47 PM, Alec Leamas

Re: Ajax chart service

2008-03-16 Thread Davor Hrg
you need not ajax here, just change src of the image, first create an action link that can produce an image then use javascript to switch urls for the image... http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage Davor Hrg On Sun, Mar 16, 2008 at 11:07 PM, bioye [EMAIL

Re: T5 : Editable Select

2008-03-14 Thread Davor Hrg
you can go arround this by creating a component that generates a select and input, thus allowing arbitrary value in the input box. or dig in with javascript and create a more streamline one... Davor Hrg On Fri, Mar 14, 2008 at 3:08 AM, DavidWei [EMAIL PROTECTED] wrote: I have same need. Can

default event handler

2008-03-14 Thread Davor Hrg
a another handler don't) Has anyone exp with this to tell me is it possible to do it this way, before I go and check all the scenarios to see what can, and can not be done. Davor Hrg - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Hide menu items

2008-03-11 Thread Davor Hrg
=checkAuth:admin,manager try it out you'll be surprised how easy it is :) Davor Hrg On Tue, Mar 11, 2008 at 6:49 AM, petros [EMAIL PROTECTED] wrote: I have a menu with the following items MyDetails UsersList I want the MyDetails item to be shown all the time and the UsersList to show only

Re: T5 : How to access to a Component Body ?

2008-03-11 Thread Davor Hrg
; and then component's class is resolved from the template so in the template you must put: t:textfield id=name/ you can not use it like this: @Component private Field name; and in template t:textfield id=name/ Davor Hrg On Tue, Mar 11, 2008 at 9:25 AM, Cordenier Christophe [EMAIL PROTECTED] wrote

Re: t5: Repository for 5.0.11-SNAPSHOT

2008-03-11 Thread Davor Hrg
there is no 5.0.11-SNAPSHOT 5.0.11 is being voted into a release use 5.0.11 or 5.0.12-SNAPSHOT Davor Hrg On Tue, Mar 11, 2008 at 9:01 AM, Angelo Chen [EMAIL PROTECTED] wrote: Hi, I got 5.0.11 from the following repository, and when i tried : table t:type=grid source=clients exclude

Re: T5 : How to access to a Component Body ?

2008-03-11 Thread Davor Hrg
explain what are zou trzing to achieve, maybe we can offer a different approach.. Davor Hrg On Tue, Mar 11, 2008 at 10:33 AM, Cordenier Christophe [EMAIL PROTECTED] wrote: Thank you for your answer, But actually my component must access its child in a dynamic way. It will be used

Re: T5 : How to access to a Component Body ?

2008-03-11 Thread Davor Hrg
._refContent.style.display = none; }else{ Element.addClassName(ch,selected_minitab); ch._refContent.style.display = ; } ch = ch.nextSibling; } return false; } } }; Davor Hrg On Tue

Re: T5: Implementing a Grid index strategy?

2008-03-11 Thread Davor Hrg
why is calculating page not an option ? does selected row have to be first or you just wan to navigate to the fist page that contains the row ? Davor Hrg On Tue, Mar 11, 2008 at 2:15 PM, Alec Leamas [EMAIL PROTECTED] wrote: I'm about to convert some T4 code to T5. In this code, I have a large

Re: T5: Implementing a Grid index strategy?

2008-03-11 Thread Davor Hrg
hm, you can relatively easily mark the first one, so it is noticed instantly and that way pager and indexer are not in conflict.. definitely an user friendly feature you're creating there :) Davor Hrg On Tue, Mar 11, 2008 at 2:43 PM, Alec Leamas [EMAIL PROTECTED] wrote: It's an option

Re: T5: Implementing a Grid index strategy?

2008-03-11 Thread Davor Hrg
or even highliht all that begin with selected letter so user is aware where the list ends Davor Hrg On Tue, Mar 11, 2008 at 2:48 PM, Davor Hrg [EMAIL PROTECTED] wrote: hm, you can relatively easily mark the first one, so it is noticed instantly and that way pager and indexer

Re: T5: Implementing a Grid index strategy?

2008-03-11 Thread Davor Hrg
sounds reasonable, you feel strong about this, so add a jira to make it a serious req. Davor Hrg On Tue, Mar 11, 2008 at 2:58 PM, Alec Leamas [EMAIL PROTECTED] wrote: True. And a little better. But it still like pushing a square into a round hole: Tapestry does not support the natural way

Re: T5 : How to access to a Component Body ?

2008-03-11 Thread Davor Hrg
A tab component mixin would fit here nicely :) so a wrapper does not have to be arround every tab. Davor Hrg On Tue, Mar 11, 2008 at 3:34 PM, Howard Lewis Ship [EMAIL PROTECTED] wrote: You should think not of the Tabs conponent controlling the Tab components, but of all of them working

Re: Newbie Tapestry

2008-03-07 Thread Davor Hrg
the pattern. Davor Hrg On Fri, Mar 7, 2008 at 11:59 AM, Rob Smeets [EMAIL PROTECTED] wrote: Hi Gabriel, I dug into this list and found a routine that when someone dare to ask a legitimate question that probably may sound politically incorrect to some members, he gets the troll label. Why? I think

Re: T5: Examples for Cayenne integration?

2008-03-06 Thread Davor Hrg
or something similar. Davor Hrg On Thu, Mar 6, 2008 at 10:34 AM, Andreas Pardeike [EMAIL PROTECTED] wrote: On 5 mar 2008, at 22.19, Robert Zeigler wrote: I'll do one better a little later today (or possibly tomorrow): I'll clean up my code and package it as a standalone cayenne

Re: T5.0.7 Validation error

2008-03-06 Thread Davor Hrg
isn't event name: validateForm http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Form.html under SubmitEvents topic Davor Hrg On Thu, Mar 6, 2008 at 4:56 PM, Joel Wiegman [EMAIL PROTECTED] wrote: componentResources.triggerEvent() appears

Re: T5: beaneditor and remove

2008-03-05 Thread Davor Hrg
I agree, both for BeanEditor and Grid, for bean editor especialy if you want to break bean editing into two or three parts... but, I don't use BeanEditor because I like my forms in a Table, not divs... Davor On Wed, Mar 5, 2008 at 6:07 AM, Angelo Chen [EMAIL PROTECTED] wrote: Hi, I like

Re: [T5] How to skin .properties files? Localization almost good...

2008-03-05 Thread Davor Hrg
I agree with vjeran, there sholud be an aditional string besides locale for distinguishing resources. Home.html Home_customer1.html Home_customer1_en.html Home_customer2.html Home_customer2_en.html Davor Hrg On Wed, Mar 5, 2008 at 6:46 AM, Vjeran Marcinko [EMAIL PROTECTED] wrote: Hello. I

Re: AW: AW: T5: determine button clicked in a beaneditor

2008-03-05 Thread Davor Hrg
ComponentResources _resources; _resources.triggerEvent(entitySaved, new Object[]{_entityId, _entity, isNew}, null); Davor Hrg On Wed, Mar 5, 2008 at 2:34 PM, Martin Kersten [EMAIL PROTECTED] wrote: Hi Angelo, I guess the session.get(User.class, id) should happen in onActivate

Re: AW: AW: AW: T5: determine button clicked in a beaneditor

2008-03-05 Thread Davor Hrg
you can just call session.evict when cancel button is clicked.. that single line works fine for me Davor Hrg On Wed, Mar 5, 2008 at 3:18 PM, Angelo Chen [EMAIL PROTECTED] wrote: Hi Martin, Your case should work as you have alterTheUserAccordingToForm. I'm just taking advantage

Re: AW: AW: T5: determine button clicked in a beaneditor

2008-03-05 Thread Davor Hrg
in my impl there is extra code using TypeCoercer for translating entity id for some operations. Davor Hrg On Wed, Mar 5, 2008 at 3:46 PM, Angelo Chen [EMAIL PROTECTED] wrote: Hi Davor, This is interesting, can you give a simple but complete sample how it works? thanks. A.C. Davor Hrg

Re: AW: AW: T5: determine button clicked in a beaneditor

2008-03-05 Thread Davor Hrg
onEntitySaved(Long id, MyEntity entity, boolean isNew) or for cancel public void onCancel() Davor Hrg On Wed, Mar 5, 2008 at 4:12 PM, Angelo Chen [EMAIL PROTECTED] wrote: Hi Davor, I got your point, the thing I can't understand is the event, how to use those events triggered in the onSuccess

Re: T5: 5.0.10 new features

2008-03-05 Thread Davor Hrg
is there a real bebefit from this... If this is helpful for you, I can give you the snippet ... Davor Hrg On Wed, Feb 27, 2008 at 1:48 PM, Angelo Chen [EMAIL PROTECTED] wrote: Hi Howard, This is a very nice feature, in my app, I have many small tables, say 30, so to edit those 30 objects I have

  1   2   3   4   >