Re: T5: grid's css in 5.0.10

2008-02-15 Thread Angelo Chen
Hi Davor, This works, so T5 now appends t-first, t-last to the first and last column of grid, I can't quite understand this notation: id t-first, subject t-last, why id.t-first matches to id t-first? search the site you mentioned but can't find parted related to this yet. thanks. A.C. Davor H

Re: T5.0.10 weired bubble display for validate='required'

2008-02-15 Thread Howard Lewis Ship
I've seen that too, where the width of the container is very constrained. Hm. Perhaps we have to move the element for the error bubble away from the text field, perhaps reparent it as a child of the element directly. It's supposed to be a floating element anyway, shouldn't quite matter where i

Re: T5: grid's css in 5.0.10

2008-02-15 Thread Howard Lewis Ship
This was simplified. For 5.0.9 you needed: TH.myid-header { } TD.myid-cell { } For 5.0.10 the suffixes are stripped, thus: TH.myid { } TD.myid { } The suffixes were redundant with the element type (TH for a header cell, TD for a data cell). On Fri, Feb 15, 2008 at 12:59 AM, Angelo Chen <[EMAI

Re: T5: Quick fadeout of invalid value notice

2008-02-15 Thread Howard Lewis Ship
Sorry, no. I can look into putting the delay into a property of Tapestry that can be easily overridden. On Fri, Feb 15, 2008 at 1:45 AM, Bill Holloway <[EMAIL PROTECTED]> wrote: > When using client-side validation in a form field in T5, I notice that > the red-on-black pop-up notice indicating a

Re: Include Script for Component

2008-02-15 Thread Filip S. Adamsen
Hi, Assuming you're using Tapestry 4, try putting your include-script tag inside a unique tag like this: That *should* do it, if I'm right, that is. :) -Filip DR_GLoPeL_BouCa skrev: Hello people, i've a question, i've components that use mootools, that component insert the .js in the

Re: Can a page do something before actions are invoked on it?

2008-02-15 Thread Filip S. Adamsen
Hi Ryan, If you implement PageRenderRequestFilter and ComponentEventRequestFilter you should be able to do exactly what you want. The parameters passed to the handle methods of these interface will let you get access to stuff like the logical page name, and even the page itself - that way you

Re: Can a page do something before actions are invoked on it?

2008-02-15 Thread Marcus
Hi Ryanskow, Maybe this help: http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2 We are using Dispatcher to control access to pages. Marcus

Re: Can a page do something before actions are invoked on it?

2008-02-15 Thread ryanskow
> An event handler method for event "initialize" can be used for this purpose. I was able to get the superclass to catch the event by declaring: @OnEvent(with no arguments) public void foo() { // this is processed before the intended onActionFromThingOne is called - which is perfect } > Th

Re: Can a page do something before actions are invoked on it?

2008-02-15 Thread Howard Lewis Ship
On Fri, Feb 15, 2008 at 12:18 PM, ryanskow <[EMAIL PROTECTED]> wrote: > > > Example: > > MyPage has two 'action' methods: > Object onActionFromThingOne() > Object onActionFromThingTwo() > > Before these methods get called by the ComponentEventDispatcher, is it > possible for MyPage to do some

RE: Can a page do something before actions are invoked on it?

2008-02-15 Thread Jonathan Barker
Check out the Acegi integration at: http://www.localhost.nu/java/tapestry5-acegi I find Acegi stops me from re-inventing the wheel. At the very least, the source code should give you an idea how to do what you want. Jonathan > -Original Message- > From: ryanskow [mailto:[EMAIL PROTECT

Re: T5: zone example

2008-02-15 Thread Marcus
Hi Angelo, Look at tapestry-core source, in src\test\java\org\apache\tapestry\integration\app1\pages , there are a lot of examples, including ZoneDemo.java Marcus

Re: Tapestry is not working

2008-02-15 Thread Marcus
Hi Marie, I have used EWDT too, it's a great book, but i suggest you try Tapestry 5, it is easy to learn and more intuitive than older versions. Start with http://tapestry.apache.org/tapestry5/tutorial1/ Marcus

Include Script for Component

2008-02-15 Thread DR_GLoPeL_BouCa
Hello people, i've a question, i've components that use mootools, that component insert the .js in the .script with , the problem is when i put two or more component in page two or more reference to the .js is inserted in html code, how put only one reference to that .js. Thank's for replys. -- V

Re: T5: CSS Injection and IE Conditional Comments

2008-02-15 Thread Kevin Menard
Ahh, good to know. It's nothing I've ever tried, but I just assumed would work. In that case, I'd go with Robert's suggestions (since they'll actually work). -- Kevin On 2/15/08 2:55 PM, "Robert Zeigler" <[EMAIL PROTECTED]> wrote: > Expansions won't work (directly) for the asset, b/c expansi

Can a page do something before actions are invoked on it?

2008-02-15 Thread ryanskow
Example: MyPage has two 'action' methods: Object onActionFromThingOne() Object onActionFromThingTwo() Before these methods get called by the ComponentEventDispatcher, is it possible for MyPage to do something such as check to see if the user has permission to access these methods? If MyPage de

Re: T5: CSS Injection and IE Conditional Comments

2008-02-15 Thread Robert Zeigler
Expansions won't work (directly) for the asset, b/c expansions inside of comments are ignored, so trying to do something like: Isn't going to work. What you /could/ do is to have the entire comment generated in java code, and then have all of the comment spit out as an expanded string in

Re: T5: CSS Injection and IE Conditional Comments

2008-02-15 Thread Kevin Menard
You could just use an expansion in your template for the asset. Not quite the same, but it would accomplish the same goal. -- Kevin On 2/15/08 12:28 PM, "lebenski" <[EMAIL PROTECTED]> wrote: > > Hi guys, > > Does anyone know of a mechanism of utilizing IE Conditional Comments for > importin

T5: CSS Injection and IE Conditional Comments

2008-02-15 Thread lebenski
Hi guys, Does anyone know of a mechanism of utilizing IE Conditional Comments for importing browser-specific CSS, but using the standard tapestry method of css injection via the page class, i.e. something like: private PageRenderSupport _pageRenderSupport; @Inject @Path("$path/t

Re: [ANN] tapestry5-acegi 1.0.3 released.

2008-02-15 Thread Christian Gorbach
hi robin, thanks a lot! In my app the alias saltsource contributions don't work anymore (related to @Marker?). You can reproduce the same behavior in the example app by changing the salt (deadbeef) of the custom salt implementation. After that, logon isnt possible anymore. regards c)hristian

RE: T5.0.10 DateField component broken ???

2008-02-15 Thread Mahen Perera
No errors. Just that , the date property returns null every time upon form submission , even though I have selected a date from the popup. -Original Message- From: Davor Hrg [mailto:[EMAIL PROTECTED] Sent: 15 February 2008 14:36 To: Tapestry users Subject: Re: T5.0.10 DateField component

Re: T5.0.10 DateField component broken ???

2008-02-15 Thread Davor Hrg
any error ? On Fri, Feb 15, 2008 at 2:41 PM, Mahen Perera <[EMAIL PROTECTED]> wrote: > I also encountered this same issue,, and as given below, included the > source from 5.0.9 for the DateField class. I named my component > DateInputField and change references in the .tml files. > Now the dat

RE: T5.0.10 DateField component broken ???

2008-02-15 Thread Mahen Perera
I also encountered this same issue,, and as given below, included the source from 5.0.9 for the DateField class. I named my component DateInputField and change references in the .tml files. Now the datefield pop up is coming nicely , and it shows the day that I select in the text field. But when t

[ANN] tapestry5-acegi 1.0.3 released.

2008-02-15 Thread Robin Helgelin
Hi, This is not just a release for staying up to date with the latest Tapestry 5.0.10 release. This release also adds a few @Marker annotations to work better together with tapestry-spring, and also, thanks to Will Norris, adds support for Acegi access denied URL. For more information and example

Re: T5.0.10 DateField component broken ???

2008-02-15 Thread Dapeng
well i am fine without formatting which looks handy but ... at least ... can we have a major-browsers-compatible calender?? so far only Opera displays the calendar correctly FF: misplacementhttp://dapeng.spiralcomms.com/temp/calender_ff.png IE7 javascript error http://dapeng.spiralcomm

Re: T5.0.10 DateField component broken ???

2008-02-15 Thread Davor Hrg
yes, datefield is changed to apache license compatible one, it has no functions for date formatting, you should use the source from old tapestry to create your own datefield using the previous calendar js Davor Hrg On Fri, Feb 15, 2008 at 11:02 AM, Dapeng <[EMAIL PROTECTED]> wrote: > foll

[ANN] t5components release 0.5.10

2008-02-15 Thread Sven Homburg
Hi there, the next release of t5components is out now. many new components/mixins/services/fixes included. attention! the package structure is completely reworked and the library is splitted into two modules the t5c-contrib module contains services and utils that not only usable for web applic

T5.0.10 weired bubble display for validate='required'

2008-02-15 Thread Dapeng
still ... the display is not corrected IE6 xp sample display http://dapeng.spiralcomms.com/temp/ie6.png - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

T5.0.10 DateField component broken ???

2008-02-15 Thread Dapeng
following code works fine with 5.0.9 validate="required" label="Date of birth"/> but when i upgrate to 5.0.10 the popup is misplaced in Firefox & Safari and in IE7 i even don have the popup but rather a javascript error warning i check http://tapestry.apache.org/tapestry5/tapest

T5: Quick fadeout of invalid value notice

2008-02-15 Thread Bill Holloway
When using client-side validation in a form field in T5, I notice that the red-on-black pop-up notice indicating an invalid field fades out awfully fast after I tab away from it. Is there a configuration point where I can lengthen the time? Bill -

Re: T5 How to use javascript to submit a

2008-02-15 Thread Dapeng
hi thx for the help i tend not to change the TinyMCE's lib code i found another work around like this value="Upload" /> the actual HTML output will carries the clientId as then the TinyMCE's js is happy now Davor Hrg wrote: the attribute is the button actualy because it's probably

Re: T5 How to use javascript to submit a

2008-02-15 Thread Davor Hrg
the attribute is the button actualy because it's probably called "submit" you can try formObj.submit.click(); if(formObj.submit.click) formObj.submit.click();//button click simulation, onsubmit will be called by browser else if (formObj.onsubmit == null || formObj.onsubmit() != false)

Re: T5: grid's css in 5.0.10

2008-02-15 Thread Davor Hrg
no problem you have three classes: id t-first t-last you can target it: .id.t-first.t-last or to target both cases: .id-header, .id.t-first.t-last { width:700px; background:lightgreen} there is a comprehensive resource http://www.w3.org/TR/REC-CSS2/selector.html Davor Hrg On Fri, Feb 15, 200

T5: grid's css in 5.0.10

2008-02-15 Thread Angelo Chen
Hi, in the t5.0.9, the grid's column header's css is, field name plus header, so we have this: Results for this I can have : .id-header { width:700px; background:lightgreen} but now, for the same template we have this: Results and how can I specify a css for "id t-first t-last"? please help,

Re: T5 How to use javascript to submit a

2008-02-15 Thread Dapeng
juz use firebug debugger to stop at the formObj.submit() i found out that the formObj is indeed the form i need but ... it has an attribute submit which equals to a submit button instead of submit() method ... my codes looks like this Upload an im

Re: T5: zone example

2008-02-15 Thread Igor Drobiazko
Create a Zone: Create a block to update the Zone with: ... Tell your link to update your Zone: Update Zone Inject the block and return it in the action method. public class Start{ ... @Inject private Block myBlock; Object onActionFromSomeLink(){ . ret

Re: T5 How to use javascript to submit a

2008-02-15 Thread Davor Hrg
javascript is dynamic so: tinymce.DOM.get(ed.id).form might be something unexpected maybe if you try only this: formObj = tinymce.DOM.getParent(ed.id, 'form'); or use Firefox and Firebug (it is irreplaceable for js development) and add console.log("FORM:" , formObj); after that you c

T5 How to use javascript to submit a

2008-02-15 Thread Dapeng
so now i am using TinyMCE rich text editor there is a 'SAVE" plugin for TinyMCE it is basically calling the form.submit() method from the inclosing element here is the code fragments formObj = tinymce.DOM.get(ed.id).form || tinymce.DOM.getParent(ed.id, 'form');

Re: T5: autocomplete and textual input

2008-02-15 Thread Davor Hrg
I'm not following you here autocomplete works as expected... at least by me :) Davor Hrg On Fri, Feb 15, 2008 at 8:44 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > yes, i just notice that i can enter text as long as that dropdown not yet > display, this confuses users a little as they wil

Re: T5: T5.0.10 and Hibernate

2008-02-15 Thread Davor Hrg
you should not persist hibernate entities between requests, a call was loaded from db, and put into list, after that it was stored in mem and session closed on next request you use that ol object and when a lazy loaded property "usr" was being initialized by hibernate, it failed. the doSearch sho