ComponentClassTransformWorker issue - advice afterRender

2011-08-18 Thread Gerold Glaser
Dear Tapestry experts! I want to advice the afterRender method with the ComponentClassTransformWorker. It works well if the containg page/component already has a method afterRender. If I add the method with transformation.getOrCreateMethod the advice is ignored. Am i doing something wrong? See the

Re: Ajax loader vs ProgressiveDisplay ...

2011-08-18 Thread Taha Hafeez
Hi ProgressiveDisplay is used in case you page take some time to load (because of some processing or database intense activity etc) I use the Tapestry.ZONE_UPDATED_EVENT event to hide and Tapestry.FORM_PROCESS_SUBMIT_EVENT and Tapestry.TRIGGER_ZONE_UPDATE_EVENT event to show the loader. Tapestry

Re: t:type="grid" "Excerpt" column

2011-08-18 Thread Emmanuel DEMEY
At this moment, I think you have something like that So if you wan to override the renderinf of one of your attribute (story for example), you have to add a parameter block inside the Grid block. The name of this parameter block should be the name of the attribute suffixed by Cell. Be

Re: t:type="grid" "Excerpt" column

2011-08-18 Thread antalk
Your TML page should have a grid component, in there you would have a parameter defined as such: ${storyexcerpt} Also you should assign the 'row' parameter of the grid component to a property value in your page: @Property private 'Entity' gridRow; And then in your page you would have a

Re: Ajax loader vs ProgressiveDisplay ...

2011-08-18 Thread Gunnar Eketrapp
Great! That was exactly what I was looking for! 2011/8/18 Taha Hafeez > Hi > > ProgressiveDisplay is used in case you page take some time to load > (because of some processing or database intense activity etc) > > I use the Tapestry.ZONE_UPDATED_EVENT event to hide and > Tapestry.FORM_PROCESS_SU

What place the @Persist will invalid

2011-08-18 Thread dick_hu
first show my code page class @Property @Persist private List files //this event will trigger when all the files uploaded,but I can't get the correct value //I think the Property is invalid void onUploadDone(){ //the unexpected,it's null System.out.println(files) } tml swfupload compon

Re: What place the @Persist will invalid

2011-08-18 Thread Taha Hafeez
Hi Dick I am not sure If I fully understand the question but here is my review of the code. You are using 'files' instance variable to store all the files but the component is using 'value' as a parameter which will obviously be null. Remove        @Parameter(required = true, autoconnect = tru

Re: ComponentClassTransformWorker issue - advice afterRender

2011-08-18 Thread Taha Hafeez
Did you try adding order to it : "before:RenderPhase" On Thu, Aug 18, 2011 at 12:30 PM, Gerold Glaser wrote: > Dear Tapestry experts! > > I want to advice the afterRender method with the > ComponentClassTransformWorker. It works well if the containg page/component > already has a method afterRen

Re: First stab at CDI module for tapestry

2011-08-18 Thread Magnus Kvalheim
Great news! Ok, so I've made some good progress again after getting involved in this thread: http://tapestry.1045711.n5.nabble.com/Supporting-EJB-annotation-in-Tapestry-classes-td4696836.html So the problem was: When contributing to MasterObjectProvider my CDIObjectprovider will resolve any tapes

Re: First stab at CDI module for tapestry

2011-08-18 Thread Igor Drobiazko
Just as a side note: starting with T5.3 it's possible to use JSR 330 for injection. Check this out: http://tapestry.apache.org/using-jsr-330-standard-annotations.html On Wed, Jun 8, 2011 at 1:56 PM, Magnus Kvalheim wrote: > Hi all, > > We're looking into moving our apps from a 'traditional' ser

Checking For Updates to a properties file

2011-08-18 Thread captain_rhino
I'm looking to be able to listen on changes to a proerties or resource file and then dynamically load those into static classes in my web app and I was wondering if anyone please had any example code for the following from the tapestry online docs. >From http://tapestry.apache.org/class-reloading

Help with pagelink popup window (lombok component)

2011-08-18 Thread com.tap5
Hi I am trying to use pagelinkpopup lombok component as described in here - http://lombok.demon.co.uk/tapestry5Demo/test/components/pagelinkpopupdemosource, but when I access the page with 'lombok/pagelinkPopup' component, following exception is thrown *Unable to resolve 'lombok/pagelinkPopup' t

Re: What place the @Persist will invalid

2011-08-18 Thread Denis Stepanov
You can't persist UploadFile because it's content is deleted one the end od the request. After a file is uploaded read the data to the byte array. Denis Aug 18, 2011 v 11:31 AM, Taha Hafeez: > Hi Dick > > I am not sure If I fully understand the question but here is my review > of the code. >

T5.2.6 HTML 5 validation fails

2011-08-18 Thread Borut Bolčina
Hello, just out of curiosity I tried validating one Tapestry 5.2.5 page against HTML and some elements get rendered like this or To be HTML 5 valid, it should render like this and The HTML begins with I tried validating with Firefox plugin ( https://addons.mozilla.org/sl/firefox/addon/

@Component inherit

2011-08-18 Thread dick_hu
eg: component A class A{ @Component private Select select; } A.tml Class B extends A{ } B.tml nothing there is no Select component in my B.tml so exceptions occur but I want to inherit the A Component and I want to use the @Component also ,is there any way? AnyOne can help me ,Thanks a l

Re: @Component inherit

2011-08-18 Thread Taha Hafeez
You can either remove B.tml or use extension points. Read more about here : http://tapestry.apache.org/component-templates.html On Thu, Aug 18, 2011 at 8:59 PM, dick_hu wrote: > eg: > component A > > class A{ >  @Component >  private Select select; > } > > A.tml > > > Class B extends A{ > > } >

Re: @Component inherit

2011-08-18 Thread dick_hu
Oh Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Component-inherit-tp4712481p4712510.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubsc

Re: t:type="grid" "Excerpt" column

2011-08-18 Thread TG
All, thanks for your explanations, it works. I can see ... now :) Antalk, your Java example codes is the answer that fill the missing gap. I understand the use case of excerpt now. Thanks a lot and it is not late at all. -- View this message in context: http://tapestry.1045711.n5.nabble.com/t-ty

Re: Possible BUG in 5.3-alpha-13 : Parameter in Child default value in Parent throws Exception

2011-08-18 Thread Howard Lewis Ship
I'm really surprised that doesn't work! I'd prefer to see a tiny project as a test case. On Wed, Aug 17, 2011 at 1:52 AM, dragan.sahpas...@gmail.com wrote: > Hi, > I would like to know if the following is a bug or a feature of tapestry 5.3 > because it works in 5.2.5. > > I get the following exc

disable submit button

2011-08-18 Thread leothelion
I am using T5.2.5. And I am trying to disable the submit button unless all the textfield are filled. I tried a stupid way, like using zone, but I don't think this is a good one. Does anyone know some smart ways to implement such a submit button? Maybe JavaScript (I am not good at this) is a better

Re: First stab at CDI module for tapestry

2011-08-18 Thread Magnus Kvalheim
Yes, I've noticed. Great work Igor :) I've intentionally not done anything for tapestry-cdi in terms of supporting javax.inject.@Inject. As Tap @inject and javax @inject are interchangeable - cdi bean injection with either @inject should 'just work' with tapestry-cdi and T5.3 :) On Thu, Aug 18,

Re: disable submit button

2011-08-18 Thread Thiago H. de Paula Figueiredo
On Thu, 18 Aug 2011 15:23:13 -0300, leothelion wrote: Does anyone know some smart ways to implement such a submit button? Maybe JavaScript (I am not good at this) is a better choice? Definetely JavaScript is the way to go, as what you want is completely client-side. -- Thiago H. de Paul

Re: Help with pagelink popup window (lombok component)

2011-08-18 Thread Shing Hing Man
Please put a break point at  the line configuration.add(new LibraryMapping("lombok", "net.sf.lombok")); and see if the break point is reached  in debug mode. Please check  lombok-5.2.5.1.jar is in the classpath. Note that if  in  your web.xml,  the filter-name is foo instead of app,  then  

Re: T5.2.6 HTML 5 validation fails

2011-08-18 Thread nillehammer
Hi Borut, You can provide your custom implementation of MarkupModel to do just that. As a start look at Tapesty's DefaultMarkupModel for inspiration. And there's an article in the wiki: http://wiki.apache.org/tapestry/Tapestry5HowToXhtml It refers to T5.1 though so I don't know whether the code is

Setting a JavaScript variable before including a JS library?

2011-08-18 Thread Lenny Primak
I have a component like this: @Import(library="context:js/gwtSupport.js") public class GwtSupport { // intentionally left blank } gwtSupport.js (actually the GWT component itself which I have no control over) is trying to read a variable. I wasn't able to figure out a way to set it before g

Re: Setting a JavaScript variable before including a JS library?

2011-08-18 Thread Robert Zeigler
What if you include a bit of custom js in a separate file that defines the variable? component.js: var somevar="someval"; Then: @Import(library={"component.js","context:js/gwtSupport.js"}) public class GwtSupport{...} Pretty sure that the order of the libraries in your @Import will be honored

Re: Setting a JavaScript variable before including a JS library?

2011-08-18 Thread Lenny Primak
The variable's value is dynamically generated by the component that is importing the library. If there are multiple component, any component instance should win, and that's ok. On Aug 18, 2011, at 3:22 PM, Robert Zeigler wrote: > What if you include a bit of custom js in a separate file that d

Re: Setting a JavaScript variable before including a JS library?

2011-08-18 Thread Robert Zeigler
Hm. Can you speak more to what the generated value is supposed to be/do? It appears that it doesn't matter /too/ much what it is since it doesn't matter if multiple component instances overwrite the value? Robert On Aug 18, 2011, at 8/183:24 PM , Lenny Primak wrote: > The variable's value is

Re: Setting a JavaScript variable before including a JS library?

2011-08-18 Thread Lenny Primak
Its a path to the GWT-generated scripts directory. Basically, there can be many GWT modules, but supporting scripts are the same, even though they are duplicated in different paths, so any path will do, but there has to be one, just dynamically generated from any of the available components. Th

Re: Setting a JavaScript variable before including a JS library?

2011-08-18 Thread Robert Zeigler
If GWT is generating the scripts directory, why doesn't it know the directory? Or are you telling it the directory to use? In any event, I can think of a couple of possibilities. Basically, the problem is that you don't know the value of the directory until render time, but Tapestry puts all l

Re: Setting a JavaScript variable before including a JS library?

2011-08-18 Thread Lenny Primak
Option #2 looks promising. I will try it! Thanks. On Aug 18, 2011, at 4:22 PM, Robert Zeigler wrote: > If GWT is generating the scripts directory, why doesn't it know the > directory? Or are you telling it the directory to use? > > In any event, I can think of a couple of possibilities. B

T5.3 Checklist Sample Codes

2011-08-18 Thread TG
I prefer not to use Palette component for multiple selections, I read about Checklist component for T5.3. Could any kind soul share the codes on how to use it? Currently I am using ChenilleKit's component and I am trying to move away from that... Thanks. -- View this message in context: http://t

Re: Setting a JavaScript variable before including a JS library?

2011-08-18 Thread lprimak
I tried Option #2, but it didn't work.  The DOM document only contained the DOM of the current component,not the whole page, there were no