Re: [WARNING] T5:How to use Select component's model

2007-02-27 Thread Weisu
thanks! gredler, it is working with TreeMap, it will be nice to be able to use a List. gredler wrote: > > You can also use a Map (probably a TreeMap), and once TAPESTRY-1292 ( > https://issues.apache.org/jira/browse/TAPESTRY-1292) is resolved, you'll > be > able to use a List as well. > > On 2/

T5 & Spring

2007-02-27 Thread SergeEby
Hi, I posted the following page on wiki, not sure if that's the right place but I thought it would be useful to others: http://wiki.apache.org/tapestry/SpringIntegration /Serge -- View this message in context: http://www.nabble.com/T5---Spring-tf3306589.html#a9197537 Sent from the Tapestry -

Re: T5 $content$

2007-02-27 Thread Todd Orr
crap. Just saw the previous post. My filter was hiding it from me. 1000 apologies. On 2/27/07, Todd Orr <[EMAIL PROTECTED]> wrote: What will be the way in which we specify to tapestry which portions of a page are rendered and which will be provided by a component? I've tried $content$ and $remo

T5 $content$

2007-02-27 Thread Todd Orr
What will be the way in which we specify to tapestry which portions of a page are rendered and which will be provided by a component? I've tried $content$ and $remove$, but it seems that they have yet to be implemented. Given T5's schema oriented approach I suspect they will be supplanted with so

Re: contrib:Table mouseover over rows

2007-02-27 Thread Jesse Kuhnert
Yep.. That's more or less how I did it last time. (sort of, but my requirements had special conditions for doing things within rows involving links and such that would make simple mouse outs not do-able ...ie it ~had~ to be actually leaving the row) This page (from the previously referenced quirk

Re: T5 IoC - inject service in data class ?

2007-02-27 Thread Howard Lewis Ship
The pattern of use is: You create a factory service for your data object. The data object's dependencies are injected into the factory. You ask the factory for the object, it instantiates the data object with the dependencies. buildDefaultRegistry() builds a new registry, not what you want.

Re: contrib:Table mouseover over rows

2007-02-27 Thread Sam Gendler
There's a solution that is pretty similar to how I solved this problem described in detail on this page: http://www.permadi.com/tutorial/cssHighlightTableRow/index.html but you'll have to scroll to the bottom to find it. The page presents multiple options, but it is the second to last one that yo

T5 IoC - inject service in data class ?

2007-02-27 Thread Peter Beshai
I would like to use one of my services I have defined in AppModule in one of my data classes. Is this frowned upon? If not, how do I go about doing it? Currently my AppModule has: public static IListService buildListService( ... ) { ... return listService; } // listService is an instantation of

Re: contrib:Table mouseover over rows

2007-02-27 Thread Peter Dawn
can you give me the URL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: contrib:Table mouseover over rows

2007-02-27 Thread andyhot
look (i think) in dean edward's site... there's a hack adding a new behavior for IE that is supposed to emulate hover transparently Peter Dawn wrote: i thought so. my target audience as it turns out is IE. so i guess i am stuck. i tried tr:hover but it didnt work under IE, as you have mentioned

Re: contrib:Table mouseover over rows

2007-02-27 Thread Peter Dawn
i thought so. my target audience as it turns out is IE. so i guess i am stuck. i tried tr:hover but it didnt work under IE, as you have mentioned, didnt even try it under FF. will keep on looking though. - To unsubscribe, e-mai

Re: contrib:Table mouseover over rows

2007-02-27 Thread Jesse Kuhnert
You can'tUnless your target audience is mozilla only in which case it's as easy as: tr:hover { background-color: } Most other options involve javascript and are usually extremely painful because of the fun "quirks" involved. This may help if you go that route: http://www.quirksmode.org/js/co

contrib:Table mouseover over rows

2007-02-27 Thread Peter Dawn
guys, i am using tap3. i have a contrib:table implementation which is displaying multiple row results. now i am using rowsClass to control the CSS property of my rows. now i wanted to implement a mouseover colour change effect over my rows and i am not sure, how i can implement this using just C

Re: Page initialization

2007-02-27 Thread Sam Gendler
pageBeginRender is called during both rewind and render. I don't know what test you did to make you think it only gets called during rewind. public void pageBeginRender(PageEvent event) { if (!event.getRequestCycle().isRewinding()) { // put render cycle init code here } } I've got

Re: XHTML strict validation & is not allowed in a URL

2007-02-27 Thread Luis Rodrigo Gallardo Cruz
On Tue, Feb 27, 2007 at 03:48:27PM -0600, Barry Books wrote: > I'm not really proposing this gets fixed and it seems a bit odd to me > that the spec prohibits '&' in a url considering everyone seems to use > them there, but it might be nice if future versions used something > other than '&' or allo

Re: XHTML strict validation & is not allowed in a URL

2007-02-27 Thread Barry Books
I read the spec 4 or 5 times before I believed it. It seems a bit odd to invalidate every web page on the planet in the name of progress. Then to add insult to injury the validator produces about 5 errors for each one of these. Barry --

Re: XHTML strict validation & is not allowed in a URL

2007-02-27 Thread Jesse Kuhnert
It still seems to me like the only "problem" here is the w3c validator itself. Looking at any web browser available it seems quite obvious that it is just plain wrong. ;) (not to say that ultimately finding a way to make it be quiet isn't worth it, there are just too many actual problems sitting

Re: XHTML strict validation & is not allowed in a URL

2007-02-27 Thread Barry Books
I guess it depends on what you mean by friendly urls. It would easy to fix the page service but in looking thru the code it appears the direct service separates it's parameters with an '&' also. While it's possible to replace all that code it's quit a bit of work considering the problems appears t

Re: Page initialization

2007-02-27 Thread Andrea Chiumenti
Thank you, but I've seen from code that beginPageRender is called only during rewind so I added a property to the page and did the following: /** * Reset the grid content if the page is accessed without form submission * (refresh or new access), then performs normal renderPage operations.

Re: Role based security

2007-02-27 Thread Phillip Rhodes
Sorry, but have to also point out authsum. It has some tapestry components that also manage login/authorization, but it's very different from anything else out there. It's a search engine for authorizations (uses's lucene to search for authorizations) and it accesses lucene via webservices. Usi

Re: Role based security

2007-02-27 Thread Sam Gendler
It is simple enough to build a component based on the @If component which will conditionally check some authorization requirement. That's what we have for handling role based auth in a template, including some sophisticated else handling which lets the template cascade through a number of options

Re: Page initialization

2007-02-27 Thread Sam Gendler
pageBeginRender (implement PageBeginRenderListener interface). This will be called before rendering both the rewind and render cycle, but you can just put a conditional on cycle.isRewinding() in order to ensure you only re-init the variable during the render cycle. --sam On 2/26/07, Andrea Chi

Re: Role based security

2007-02-27 Thread Jonathan Barker
Sorry, I obviously meant to address this to Borut. On 2/27/07, Jonathan Barker <[EMAIL PROTECTED]> wrote: Mark, Do a Google search using the search string: site:http://mail-archives.apache.org/mod_mbox "Jonathan Barker" I posted some information and code in June 2006 about creating @Authoriz

RE: Role based security

2007-02-27 Thread Jonathan Barker
Mark, Do a Google search using the search string: site:http://mail-archives.apache.org/mod_mbox "Jonathan Barker" I posted some information and code in June 2006 about creating @Authorize and @AclAuthorize based on the code for the tapestry @If component, and the Authorize and AclAuthorize JSP t

Re: Role based security

2007-02-27 Thread Borut Bolčina
Hello Mark, Mark Stang wrote: Ignore the Mediator class it is one of ours. The real logic is in the else. We store user and role in the visit and check when needed. hth, sorry, but it doesn't. I am looking for a more general solution - if at all exists. I wish to lay grounds for securit

Re: Component display question

2007-02-27 Thread Roberto Ramírez Vique
I think there are some parameters on the dojo dialog tapestry 4.1 component, concretely the hidden parameter is the one you are looking for: http://tapestry.apache.org/tapestry4.1/components/dojo/dialog.html Name Type Required Default Description hidden boolean no true Whether or not the Dialog

Component display question

2007-02-27 Thread Mstewieirl
Hi all, I have a page that contains numerous custom HTML template components which are dialogs. My page contains buttons which pops up these dialogs using JavaScript and this all works perfectly. Now what I want to do is pop one of these dialogs automatically when the page is rendering if

Component display question

2007-02-27 Thread Mstewieirl
Hi all, I have a page that contains numerous custom HTML template components which are dialogs. My page contains buttons which pops up these dialogs using JavaScript and this all works perfectly. Now what I want to do is pop one of these dialogs automatically when the page is rendering i

Re: XHTML strict validation & is not allowed in a URL

2007-02-27 Thread Andreas Andreou
Looks related to http://issues.apache.org/jira/browse/TAPESTRY-1218 Try enabling friendly urls... it should fix this for now On 2/27/07, Barry Books <[EMAIL PROTECTED]> wrote: I started validating my site as XHTML strict and ran into a problem Idid not expect. The W3C validator reports # Warni

RE: Role based security

2007-02-27 Thread Mark Stang
Ignore the Mediator class it is one of ours. The real logic is in the else. We store user and role in the visit and check when needed. public class ValidatePage extends BasePage implements PageValidateListener { public void pageValidate(PageEvent event) { Mediator mediat

XHTML strict validation & is not allowed in a URL

2007-02-27 Thread Barry Books
I started validating my site as XHTML strict and ran into a problem I did not expect. The W3C validator reports # Warning Line 9 column 109: cannot generate system identifier for general entity "service". ...Acumera/app?page=AcuVigil%3AMGStatus&service=page"/> With the following explanation:

Role based security

2007-02-27 Thread Borut Bolčina
Hello list, I was wondering if there is a better way of securing page components than using @If components (example from VirtualLibrary for Tapestry v4.0, Border.html) src="/vlib/images/nav/nav_6x1.png" width="178" height="19" border="0" alt="Admin"/> ...

Re: T5:How to use Select component's model

2007-02-27 Thread D&J Gredler
You can also use a Map (probably a TreeMap), and once TAPESTRY-1292 ( https://issues.apache.org/jira/browse/TAPESTRY-1292) is resolved, you'll be able to use a List as well. On 2/27/07, Ted Steen <[EMAIL PROTECTED]> wrote: In T5 you use SelectModel. see http://tapestry.apache.org/tapestry5/tape

Re: T5:How to use Select component's model

2007-02-27 Thread Ted Steen
In T5 you use SelectModel. see http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/SelectModel.html 2007/2/27, Weisu <[EMAIL PROTECTED]>: Hi, I am converting my app to T5, in T4, I use IPropertySelectionModel to create the dropdown for select, what model can I use in

Re: Download link for T4 broken

2007-02-27 Thread Ron Piterman
http://tapestry.apache.org/download.html Cheers, Ron Borut Bolčina wrote: > While looking for source code for Virtual Library I discovered a broken > link > > http://jakarta.apache.org/site/downloads/downloads_tapestry.cgi > on > http://tapestry.apache.org/tapestry4/downloads.html > > P.S. Whe

Download link for T4 broken

2007-02-27 Thread Borut Bolčina
While looking for source code for Virtual Library I discovered a broken link http://jakarta.apache.org/site/downloads/downloads_tapestry.cgi on http://tapestry.apache.org/tapestry4/downloads.html P.S. Where can I find VL for 4.0 sources? -Borut -

Re: Problem with assignment of variables between pages

2007-02-27 Thread Patrick Klein
Hi! cache is not disabled. Regards, Patrick Are you disabling the cache ? On 2/27/07, Patrick Klein <[EMAIL PROTECTED]> wrote: Hallo! I'm hoping I'm not completely OT with this problem here... We are using setters and getters to pass over objects between pages, like (in pseudo-java) pa

Re: Problem with assignment of variables between pages

2007-02-27 Thread Andrea Chiumenti
Are you disabling the cache ? On 2/27/07, Patrick Klein <[EMAIL PROTECTED]> wrote: Hallo! I'm hoping I'm not completely OT with this problem here... We are using setters and getters to pass over objects between pages, like (in pseudo-java) page a: (PageB) page = (PageB) cycle.getPage("PageB"

Problem with assignment of variables between pages

2007-02-27 Thread Patrick Klein
Hallo! I'm hoping I'm not completely OT with this problem here... We are using setters and getters to pass over objects between pages, like (in pseudo-java) page a: (PageB) page = (PageB) cycle.getPage("PageB"); page.setVar(obj); [...] cycle.activate(page); page b: Obj var = getVar(); if(var