Scripts can be added to markup multiple times via different stacks

2012-03-05 Thread Jochen Berger
Hi, I just observed that if I add a JS library to two different stacks and import them in a page, that asset is added to the page twice. This happens because JavaScriptSupportImpl does check for duplicate stylesheets (L 327) and stacks (L 294) but not for duplicate scripts. Is that expected or

Re: Forms plus none tapestry fields

2012-03-05 Thread Lance Java
Taha has done a blogpost on a component that sounds like what you are looking for. In this blogpost ( http://tawus.wordpress.com/2011/12/28/multivalue-autocomplete-for-tapestry) he creates a component based on this library http://loopj.com/jquery-tokeninput/ Cheers, Lance. On Saturday, 3 March 2

Re: classloader issues casting objects to their tapestry type

2012-03-05 Thread Lance Java
Download the tapestry source and take a look at how the label component works. The label component usually appears before the component it is labelling and therefore needs to use @HeartbeatDeferred to get it's associated component's clientId at the end of the heartbeat. On Sunday, 4 March 2012, Pa

Re: Scripts can be added to markup multiple times via different stacks

2012-03-05 Thread Lance Java
The javascript stack concept exists so that the stack remains constant and can be cached by the client's browser. You are now asking to break this contract and have stacks be dynamic based on what components are on a page which would eliminate the ability to cache them in the client's browser. I

Select Component chaining: 2nd select box value is always null

2012-03-05 Thread Beat Durrer
Hey there For my project I need two chained select boxes. I followed the example shown in the API (http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Select.html), but used my own SelectModel for my custom value type. It all looks nice, but when I submit the form,

Re: Select Component chaining: 2nd select box value is always null

2012-03-05 Thread Giulio Micali
Are your selects in a loop ? 2012/3/5 Beat Durrer > Hey there > > For my project I need two chained select boxes. > I followed the example shown in the API > ( > http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Select.html > ), > but used my own SelectModel fo

Re: Select Component chaining: 2nd select box value is always null

2012-03-05 Thread Beat Durrer
Hi Giulio, No, they are not. The form is really straight forward as in the example: Next 2012/3/5 Giulio Micali : > Are your selects in a loop ? > > > > 2012/3/5 Beat Durrer > >> Hey ther

Re: tapestry5-jquery-2.6.0 change theme

2012-03-05 Thread resign
Hi, sorry, but i have my problems to realize that :-( I inserted in the AppModule follow: @Contribute(SymbolProvider.class) @FactoryDefaults public static void contributeFactoryDefaults(MappedConfiguration configuration) { configuration.add(JQuerySymbolConstan

Re: tapestry5-jquery-2.6.0 change theme

2012-03-05 Thread Emmanuel Demey
Set the value in a contributeApplicationDefaults method instead of contributeFactoryDefaults Demey Emmanuel Le 5 mars 2012 à 12:23, resign a écrit : > Hi, > > sorry, but i have my problems to realize that :-( > I inserted in the AppModule follow: > > > @Contribute(SymbolProvider.class) >

Tapestry Interview Questions

2012-03-05 Thread Muhammad Gelbana
Interesting isn't it :D How would tapestry gurus put a test for tapestry ? Discussing such questions and the topics they encounter will guide me to the important parts of tapestry I haven't tackled yet and will help me interview new tapestry developers too. Thanks a lot. -- *Regards,* *Muhammad

Re: Select Component chaining: 2nd select box value is always null

2012-03-05 Thread Muhammad Gelbana
Just a wild guess. If any method is called before validating the form returns a value that should re-post the form, your field will be null if it's not persisted. So for example, is the submit button handling method returning anything or is it void ? Try *@Persist*ing your field, if it's not null,

Re: Fails to injecting a textarea

2012-03-05 Thread Thiago H. de Paula Figueiredo
On Sun, 04 Mar 2012 10:45:05 -0300, Taha Hafeez Siddiqi wrote: I usually use the html tags and assign the component type using t:type='MyComponent'. The only other place 't:' is required is with component id('id') and mixins. For other attributes you can skip the prefix. Yep. I use inv

Re: classloader issues casting objects to their tapestry type

2012-03-05 Thread Thiago H. de Paula Figueiredo
On Sun, 04 Mar 2012 20:25:12 -0300, Paul Stanton wrote: On 29/02/2012 12:13 AM, Thiago H. de Paula Figueiredo wrote: No, you're using the t:id (server-side Tapestry component id) to retrieve the component, so it may not have its clientId set yet. Thiago, Hi! If I'm using the server

Re: tapestry5-jquery-2.6.0 change theme

2012-03-05 Thread Thiago H. de Paula Figueiredo
On Mon, 05 Mar 2012 08:23:15 -0300, resign wrote: Hi, sorry, but i have my problems to realize that :-( I inserted in the AppModule follow: @Contribute(SymbolProvider.class) @FactoryDefaults public static void contributeFactoryDefaults(MappedConfiguration configuration

Re: Tapestry Interview Questions

2012-03-05 Thread Thiago H. de Paula Figueiredo
On Mon, 05 Mar 2012 08:42:37 -0300, Muhammad Gelbana wrote: Interesting isn't it :D How would tapestry gurus put a test for tapestry ? Discussing such questions and the topics they encounter will guide me to the important parts of tapestry I haven't tackled yet and will help me interview new

Issues in saving values in cookies

2012-03-05 Thread karthi
Hi, I have a tml page called portfolio.tml and in corresponding java portfollio page I have written this following to save the values in cookies public class Portfolio { @org.apache.tapestry5.ioc.annotations.Inject private Cookies cookies; public Portfolio() { cookies.writeCo

Re: How to display special characters in tml page

2012-03-05 Thread karthi
...then something is misspelled. your project name doesn't matter - it must be the page name that has to be equal to the properties (and .tml) name. I created projectname.properties file in the thought that it would support all the tml pages but it din't? If I have 40 pages in my project and I w

Re: Issues in saving values in cookies

2012-03-05 Thread Taha Hafeez Siddiqi
Never use a page constructor for initialization . Use onActivate() Sent from my iPhone On Mar 5, 2012, at 6:24 PM, karthi wrote: > Hi, > > I have a tml page called portfolio.tml and in corresponding java > portfollio page I have written this following to save the values in cookies > > publ

Re: tapestry5-jquery-2.6.0 change theme

2012-03-05 Thread resign
Thanks. -- public static void contributeApplicationDefaults(final MappedConfiguration configuration) { configuration.add(JQuerySymbolConstants.JQUERY_UI_DEFAULT_THEME, "context:themes/smoothy/css/custom-theme/jquery-ui-1.8.18.custom.css"); } was the ri

Re: How to display special characters in tml page

2012-03-05 Thread Taha Hafeez Siddiqi
If your application module is AppModule then you can put your common properties in /WEB-INF/app.properties. Sent from my iPhone On Mar 5, 2012, at 6:35 PM, karthi wrote: > ...then something is misspelled. > your project name doesn't matter - it must be the page name that has to be > equal to t

Re: How to display special characters in tml page

2012-03-05 Thread karthi
Thank your reply... -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-display-special-characters-in-tml-page-tp5527308p5537546.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: ?t:lb=t being appended to query parameter

2012-03-05 Thread George Christman
Hi Howard, here's the stack trace caused by ?t:lb Input string '?t:lb=t' is not valid; the character '?' at position 1 is not valid.java.lang.IllegalArgumentException: Input string '?t:lb=t' is not valid; the character '?' at position 1 is not valid. at org.apache.tapestry5.internal.services.URLEn

Re: tapestry5-db-migrations

2012-03-05 Thread derkoe
Taha Hafeez wrote > > I was looking for something like rails migration and came across > https://github.com/spreadthesource/tapestry5-db-migrations. It looks > promising. I have a few queries about it :- > > 1) Is it being actively maintained as the last commit was 9 months ago. > > 2) It is ba

browser back button, after logout while using Dispatcher

2012-03-05 Thread gaurav
Hi, I am getting problem in browser back button, after logout when I press browser's back button home page show for few seconds and then it go to login page. I am new in Tapestry and using Dispatcher for authentication. I got the code from tapestry-jumpstart or some blog. please check the code: p

Re: Tapestry 5.3 binaries

2012-03-05 Thread TechniciuM
I could assemble binaries looking from here http://mvnrepository.com/ but it would be a lot convenient if someone of you had it made already? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-binaries-tp5537651p5537806.html Sent from the Tapestry - User mailing l

Re: Select Component chaining: 2nd select box value is always null

2012-03-05 Thread Beat Durrer
Thanks for that Link, it got me thinking and solved my issue :) A missing @Persist on the property combined with an onActivate method which always resetted the ValueEncoder/SelectModel was the issue. My data comes out of a Database, I wrote a ValueEncoder which only holds the values of the current

Re: browser back button, after logout while using Dispatcher

2012-03-05 Thread Taha Hafeez Siddiqi
Hi The browser back button usually shows an offline page till you refresh it. So, I don't think it is an issue as long as you are not able to access any secure links from there. Also does your logout page perform a Session#invalidate(), as it will ensure that the session is cleared. Finally,

Re: tapestry 5.3 antlr version

2012-03-05 Thread Howard Lewis Ship
Welcome to the world of transient dependencies! tapestry-hibernate dependens on (some version of) Hibernate and picks up dependencies from there. On Sun, Mar 4, 2012 at 5:20 PM, Paul Stanton wrote: > Further to this, it also depends on a very old version of xml-apis (1.0.b2) > via dom4j. > > > O

Re: Tapestry Interview Questions

2012-03-05 Thread Taha Hafeez Siddiqi
Hi I have worked on a few projects recently where "non-tapestry" developers were using tapestry. The result was a mixture of C++, jsp, spring-mvc and what not, all written in tapestry :). What I mean to say is that a person may get things working in tapestry but still not know how to use tapest

Re: browser back button, after logout while using Dispatcher

2012-03-05 Thread Dragan Sahpaski
Also check out this thread on the same topic (back button). http://tapestry.1045711.n5.nabble.com/Browser-Back-Button-td4909542.html#a4917143 The reply from Vangel is very detailed and explanatory. Cheers, Dragan Sahpaski On Mon, Mar 5, 2012 at 5:49 PM, Taha Hafeez Siddiqi < tawus.tapes...@gma

Tapestry 5.3 binaries

2012-03-05 Thread TechniciuM
Hello, everyone. Does anyone of you have Tapestry 5.3. binary library? If so, please feel free to share with us a link to that. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-binaries-tp5537651p5537651.html Sent from the Tapestry - User mailing list archive a

Bean Validation Localization

2012-03-05 Thread Christian Köberl
There seems to be a bug in the localization of the bean validation error messages. When I start my server locale is "de" and the client locale is "en" the message is displayed in German "First Name kann nicht null sein". I guess the bug is in BeanFieldValidator#interpolateMessage - this calls Mes

Re: Tapestry Interview Questions

2012-03-05 Thread Josh Canfield
If you have good questions you can add them to smarterer. http://smarterer.com/test/tapestry5/questions/new :) On Mon, Mar 5, 2012 at 4:42 AM, Thiago H. de Paula Figueiredo wrote: > On Mon, 05 Mar 2012 08:42:37 -0300, Muhammad Gelbana > wrote: > >> Interesting isn't it :D >> How would tapestry

Re: Server Side Validation with ajax form loop

2012-03-05 Thread David Canteros
Hi George, I still have the problem. I don't understand the underlying code of the frameworks so i can't find the code that is working wrong, so the clientside validation is the only way to "solve" it. We would file a JIRA to get help (i dont saw any similar issue registered ), what do you think?

Re: classloader issues casting objects to their tapestry type

2012-03-05 Thread Paul Stanton
Well it seems to be working (multiple times, so it's finding the zone/component to render) as is, however I'd prefer to implement something that should work rather than something that just happens to work! Is lance's suggestion regarding @HeartbeatDeferred a better idea? I can't figure out ho

Re: classloader issues casting objects to their tapestry type

2012-03-05 Thread Thiago H. de Paula Figueiredo
On Mon, 05 Mar 2012 16:27:30 -0300, Paul Stanton wrote: Well it seems to be working (multiple times, so it's finding the zone/component to render) as is, however I'd prefer to implement something that should work rather than something that just happens to work! If the component isn't i

Re: ?t:lb=t being appended to query parameter

2012-03-05 Thread Howard Lewis Ship
George ; don't expect a response without supplying real useful data (that Tapestry itself provides), such as the URL, the Java and/or JavaScript code responsible, snippets from the template, etc. See http://catb.org/esr/faqs/smart-questions.html On Mon, Mar 5, 2012 at 6:32 AM, George Christman w

Re: Tapestry 5.3 binaries

2012-03-05 Thread Howard Lewis Ship
The next release of Tapestry will include a binary download. On Mon, Mar 5, 2012 at 7:14 AM, TechniciuM wrote: > I could assemble binaries looking from here http://mvnrepository.com/ but it > would be a lot convenient if someone of you had it made already? > > -- > View this message in context:

Re: ?t:lb=t being appended to query parameter

2012-03-05 Thread George Christman
Hi Howard, see snippets, js, url's below. Let me know if I could provide anything else. CompanyTree.class Component called from layout component. @SessionState private CompanyInfo companyInfo; @Inject private Session session; @InjectPage private Index index; @Prope

Re: Issues in saving values in cookies

2012-03-05 Thread karthi
Thank you for your reply onActivate() method solves my problem, However constructor is used to prepare the variables that are required by the class i.e., for initialization purposes right? then what is wrong with that constructor, Why the cookies are not get initialized inside constructor? -- View

Re: Issues in saving values in cookies

2012-03-05 Thread Taha Hafeez Siddiqi
The lifecycle of pages, components & mixins are maintained by Tapestry. That is why it provides you with these render phases hooks. regards Taha On Mar 6, 2012, at 10:54 AM, karthi wrote: > Thank you for your reply onActivate() method solves my problem, However > constructor is used to prepare

Re: Scripts can be added to markup multiple times via different stacks

2012-03-05 Thread Jochen Berger
Hi, Am 05.03.2012 11:41, schrieb Lance Java: The javascript stack concept exists so that the stack remains constant and can be cached by the client's browser. You are now asking to break this contract and have stacks be dynamic based on what components are on a page which would eliminate the ab