trying tapestry on the phone...

2007-02-09 Thread Patrick Moore
Hi there -- I am trying to access my tapestry 4.1.2 application via a fairly high-end phone browser. (Samsung a900m). I have some preliminary results and a few gotcha's posted on my blog at : http://www.sworddance.com/blog/2007/02/09/phone-usability-design-notes-part-1/ Biggest gotcha so far is

Re: Tap4.1.1: Autocompleter inside another component does not work

2007-02-09 Thread Pedro Viegas
Hi there, I have found what is causing the erroneous behaviour. I have been using FieldLabel components with my input components. This is what is causing the component duplicated rendering. I will investigate some more to see it it's my problem or some hidden Tap bug. Thanks, On 2/10/07, Pedro

Re: Tap4.1.1: Autocompleter inside another component does not work

2007-02-09 Thread Pedro Viegas
Hi Andy, Thanks for your help. I was just in the middle of that. Did not work either! I honnestly am at a lost. Have tried just about everything I could think of... Have cleaned the cache browser for eventual JS cached files, used both latest T411 and T412 snapshoots. I have dogo debug on and the

Re: Tapestry & Hivemind: Caching multiple method calls per request?

2007-02-09 Thread Tobias Marx
That's a good point. I would have assumed a on 5 different locations inside a page would return exactly the same timestamp as Tapestry "assumes" that all identical ognl expressions are the same and the expression is only evaluated once before rendering the page. If, however, the the ognl expr

Re: Tapestry & Hivemind: Caching multiple method calls per request?

2007-02-09 Thread James Carman
Tapestry would have to know what's inside the method to know that it will always return the same thing. This method doesn't return the same thing all the time: public String getTimestamp() { return String.valueOf( System.currentTimeMillis() ); } On 2/9/07, Tobias Marx <[EMAIL PROTECTED]> wro

Re: Tap4.1.1: Autocompleter inside another component does not work

2007-02-09 Thread andyhot
i'm using an autocompleter inside another component inside a for loop which may initially be hidden. Why not try with 4.1.2-SNAPSHOT ? Pedro Viegas wrote: Hi all, Has anyboby been able do use a Tap 4.1.1 Autocompleter inside another component? I have been trying to do so and I get the strange

Tap4.1.1: Autocompleter inside another component does not work

2007-02-09 Thread Pedro Viegas
Hi all, Has anyboby been able do use a Tap 4.1.1 Autocompleter inside another component? I have been trying to do so and I get the strangest bahaviour. Somehow the Autocompleter is rendered twice, with two diferent Id (i.e.: autocompleter and autocompleter_0) but even this is not completly true.

RE: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Ben Dotte
That's true, but then again I don't think Howard intended for the Registry to be publicly accessible in the first place: http://article.gmane.org/gmane.comp.java.tapestry.user/20207/ The "proper" way is to use injection on .page and .jwc files or annotations, but this is obviously complicated i

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Numa Schmeder
Thanks Ben, I am going to try, I find it a bit of hack. And I find strange that there is no access to the registry. Thanks Numa Le 9 févr. 07 à 20:24, Ben Dotte a écrit : I'm not sure if there is a more straightforward way, but one way is to store the servlet into the request and then pu

Re: How to customize the look of Contib TablePages subcomponent

2007-02-09 Thread Daniel Tabuenca
You can pass informal parameters to the @TablePages component which will get applied to a span arround the output. You could use this to apply some limmited CSS to the subelements. I guess if you really want full control over how it is rendered you'd probably just have to extend the original Table

Re: Directlink, works in ie thought not firefox?

2007-02-09 Thread Daniel Jue
Daniel, for the clarification. On 2/9/07, Daniel Tabuenca <[EMAIL PROTECTED]> wrote: This may come as a surprise, but html does not really understand tags in the form . These are added in XHTML so that the html can be well-formed XML. HTML will still work but will simply not interpret the tag

RE: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Ben Dotte
I'm not sure if there is a more straightforward way, but one way is to store the servlet into the request and then pull out the ServletContext from that. So make a subclass of org.apache.tapestry.ApplicationServlet: public class MyApplicationServlet extends ApplicationServlet { protected

Re: How to customize the look of Contib TablePages subcomponent

2007-02-09 Thread Daniel Jue
Thanks Daniel, While everything you mentioned is true, I was really referring to the "@Contrib:TablePages" sub component, which is the part that displays the page numbers and forward / backward buttons. i.e. << < 1 2 3 4 5 > >> It is usually at the bottom of a regular form, but you get

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Numa Schmeder
I knew that, but I don't know how to access a context from a Page or from the request cycle. How can you get the servlet context? Thanks, Numa Le 9 févr. 07 à 19:49, Shing Hing Man a écrit : A singleton has the advantage of letting you access the registry in non-web pages. In case you did no

Re: How to customize the look of Contib TablePages subcomponent

2007-02-09 Thread Daniel Tabuenca
If you want to customize how a cell is rendered. You can use a block component with the magic id of "column id"+ ColumnValue. So if your column definition is something like "myColumn:My Column" then having something like will cause it to be used to render the column.This is described here: ht

How to customize the look of Contib TablePages subcomponent

2007-02-09 Thread Daniel Jue
Hi, Unlike a previous thread, I am only trying to tap into the TablePages subcomponent to add some css tags to the numbers and links. I looked at the source for TablePages, but there doesn't seem to be anything there related to the way it's rendered in html. Is this possible do to without rewri

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Shing Hing Man
A singleton has the advantage of letting you access the registry in non-web pages. In case you did not know, the registry is created in the ApplicationServlet and stored as a context parameter. // context is the servlet context Registry registry = (Registry) context

Re: Directlink, works in ie thought not firefox?

2007-02-09 Thread Daniel Tabuenca
This may come as a surprise, but html does not really understand tags in the form . These are added in XHTML so that the html can be well-formed XML. HTML will still work but will simply not interpret the tag for example: Hello World the "/" is ignored so rather than being interpreted as

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Numa Schmeder
Nop, but isn't an easier way to just access the registry? Le 9 févr. 07 à 19:33, Shing Hing Man a écrit : Have you considered implementing the HiveMind registry as a singleton ? The zebra-hivemind subproject in Zebra does exactly that. http://zebra.berlios.de/ Shing --- Numa Schmeder <[EM

Re: Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Shing Hing Man
Have you considered implementing the HiveMind registry as a singleton ? The zebra-hivemind subproject in Zebra does exactly that. http://zebra.berlios.de/ Shing --- Numa Schmeder <[EMAIL PROTECTED]> wrote: > Hello, > > I am migrating an application from tap3 to tap4, I > am hitting a lot

Migration to Tap4, accessing the hivemind registry without injection

2007-02-09 Thread Numa Schmeder
Hello, I am migrating an application from tap3 to tap4, I am hitting a lot of problem. One of those is getting a reference to the hivemind registry from java without using injection. I have a base page who used to provide a DAOFactory to all my subclassing pages, now the DAOFactory is in

Best strategy?

2007-02-09 Thread Julian Wood
I'm working on taking this dhtml component here: http://www.dhtmlgoodies.com/scripts/dhtmlgoodies-week-planner/ dhtmlgoodies-week-planner.html and moving it into tapestry. It is heavy on javascript, AJAX and somewhat less so on PHP. The javascript has many event hooks which fire off AJAX r

Re: Tapestry & Hivemind: Caching multiple method calls per request?

2007-02-09 Thread Tobias Marx
Indepenent of what the method looks like, why is it called more then once anyhow? If there is the same method inside a page or component, I thought Tapestry retrieves all the data first and then "intelligently" parses all the pages and its component templates and notices if the same method is c

Re: Tapestry & Hivemind: Caching multiple method calls per request?

2007-02-09 Thread James Carman
What does the method that fetches the domain object look like? Does it cache its results or does it call the IDomainSource every time? On 2/9/07, Tobias Marx <[EMAIL PROTECTED]> wrote: Hi there! I am using Hivemind to generate a Map of Domain name related objects as a singleton on startup, ca

AW: app has other sessionId than in cookie

2007-02-09 Thread Peter Schröder
hi, i think i found the source of this behaviour: public void pageBeginRender(PageEvent event) { logger.info("sessionId: " + getWebRequest().getSession(false).getId()); if (event.getRequestCycle().isRewinding() == false) { SessionVi

Re: Directlink, works in ie thought not firefox?

2007-02-09 Thread Daniel Jue
This reply is a bit off topic, but I thought was perfectly acceptable, and actually recommended, especially for tags that usually have no close like . I've never seen a (doesn't make a lot of sense), but I have been told to use . I thought some versions of Dreamweaver point this out to you. So

Tapestry & Hivemind: Caching multiple method calls per request?

2007-02-09 Thread Tobias Marx
Hi there! I am using Hivemind to generate a Map of Domain name related objects as a singleton on startup, called HibernateDomainSource. Then I am constructing a threaded services that uses this data together with the servletRequest. This service is called DomainManager. I am now injecting the

app has other sessionId than in cookie

2007-02-09 Thread Peter Schröder
hi, i have a problem with tapestry and session/cookies. there is a different sessionId in the cookie than the actual session that is used bye the tapestry page. while rewinding a form tapestry uses the sessionId from the cookie and creates a new state-object for that session, neglecting the e

users@tapestry.apache.org

2007-02-09 Thread Kristian Marinkovic
hi tobias, is there any reason you create the DomainManager with model="threaded"? Have you thought of creating an ASO (session) where you inject your DomainSource object? g, kris "Tobias Marx"

users@tapestry.apache.org

2007-02-09 Thread Tobias Marx
Hi there! I am using Hivemind to generate a Map of Domain name related objects as a singleton on startup, called HibernateDomainSource. Then I am constructing a threaded services that uses this data together with the servletRequest. This service is called DomainManager. I am now injecting the

Re: Autocompleter and Dialog

2007-02-09 Thread Jeremy F. Kassis
Hmmm. Hard to say if it's a tapestry issue, though. I mean, it seems possible that tapestry could implement some workarounds. But the problem (again, as i remember) comes from that way that the dojo:Dialog component works. It really mucks with the DOM structure making all kinds of things break. Fo

Re: Debugging dojo.js

2007-02-09 Thread Daniel Tabuenca
Thanks. I can now see the readable dojo.js. However, I guess things didn't work the way I thought. I am using firebug to try to see what goes on in tapestry's js calls (like the form stuff). However, that stuff is loaded by dojo.js asynchronously. Is there some way (using firebug or some other too

Re: tacos tree

2007-02-09 Thread Norbert Sándor
Maybe another trivial question: what is the difference between keyProvider and converter? Thanks! Norbi andyhot írta: Norbert Sándor wrote: Hello! So, you've never used tacos in tap 4.0 ? http://tacos.sourceforge.net/components/Tree.html See the state parameter. How can I specify the sta

Re: tacos 4.1.0-snapshot with tapestry 4.1.1

2007-02-09 Thread Norbert Sándor
I've tried the Tree component and it seems to work OK (both ajax and ). N. andyhot írta: Sándor Norbert wrote: Will this combo work? Thanks! Norbi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

AW: AW: WG: IOC TapestryException creating a sample application

2007-02-09 Thread Stranzenbach, Ralf
Hi. Removing the .html extension from the URL solved the problem. The sample application now works like a charm. Thank you all. Mit freundlichen Grüßen, Ralf Edmund Stranzenbach Manager, FS-Technology BearingPoint Management & Technology Consultants Gladbecker Straße 5, 40472 Düsseldorf; Ge

Re: How to get the path of config file in java?

2007-02-09 Thread Shing Hing Man
The following is one way to get the absolute path of the context directory. http://article.gmane.org/gmane.comp.java.tapestry.user/44335/match=getrealpath Shing --- Stony Zhang <[EMAIL PROTECTED]> wrote: > Hello, > > I add a xml file to WEB-INF. But I can't > read it in java. Com