Re: Tapernate squeezer implementation generates loong sp:s

2006-05-03 Thread Ted Steen
t the "id" can be any serializable object. So, for the general case, I can't just append it to a string. What if it's a composite id? You do have to "squeeze" the id at least. James -Original Message- From: Ted Steen [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: Tapernate squeezer implementation generates loong sp:s

2006-05-03 Thread Ted Steen
assname/id stuff quite easily. -Original Message- From: Ted Steen [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 5:16 PM To: Tapestry users Subject: Tapernate squeezer implementation generates loong sp:s James, As long as you just save the class name and id when squeezing an entity the

Tapernate squeezer implementation generates loong sp:s

2006-05-02 Thread Ted Steen
James, As long as you just save the class name and id when squeezing an entity the squeezed result could as well be just the class name and the id (as in the example in the wiki). It would generate much nicer url:s Or maybe you got some secret plans for the EntityIdentity? :) /ted

Re: [Tapernate] Error when trying to use c3p0 connection pooling

2006-05-02 Thread Ted Steen
Yes, I did. But the same error. :/ On 5/2/06, Andreas Bulling <[EMAIL PROTECTED]> wrote: On 02. Mai 2006 - 14:16:29, Ted Steen wrote: | Thanks for your answers! | | I tried the url jdbc:mysql://localhost/tapestrySandbox but to no avail.. :/ | | James, which version of the connector did y

Re: [Tapernate] Error when trying to use c3p0 connection pooling

2006-05-02 Thread Ted Steen
e svn history) Regarding the org.gjt.mm.mysql.Driver vs. com.mysql.jdbc.Driver I read that the org.gjt.mm.mysql are there for backwards compatibility see http://jguru.com/forums/view.jsp?EID=1282327 On 5/2/06, Andreas Bulling <[EMAIL PROTECTED]> wrote: On 02. Mai 2006 - 13:26:04, Ted

Re: [Tapernate] Error when trying to use c3p0 connection pooling

2006-05-02 Thread Ted Steen
because I'm using Tapernate quite happily with Hibernate and c3p0 without any problems. Can you post your configuration as something rather seems to be wrong there IMHO.. Cheers, Andreas On 02. Mai 2006 - 01:38:10, Ted Steen wrote: | I'm trying to switch to c3p0:s connection pooling, but

[Tapernate] Error when trying to use c3p0 connection pooling

2006-05-01 Thread Ted Steen
I'm trying to switch to c3p0:s connection pooling, but when I do that I get this error http://rafb.net/paste/results/W4tsCJ17.html I'm not doing anything fancy here, I just set c3p0.max_size=100 When I switch back to Hibernates native connection provider it works.. Is there anything I should set

Re: Tapernate ?

2006-04-29 Thread Ted Steen
It is one way to glue Tapestry and Hibernate together. There are other alternatives like Honeycomb or Hivetranse (Hivetranse beeing more of a generic Hibernate -> HiveMind glue, without any Tapestry specific stuff like squeezers etc.) One neat thing with Tapernate, in my opinion, is that it reus

Re: HOW TO validate the first choice of IPropertySelectionModel

2006-04-28 Thread Ted Steen
Another way to do it is to wrap it in the LabeledPropertySelectionModel and then use "required" as validator, like this: /** .java **/ public abstract String getSex(); public IPropertySelectionModel getSexSelectionModel() { return new

Re: PropertySelectionModel

2006-04-27 Thread Ted Steen
eturn getOption(Integer.parseInt(value)); } } /***/ On 4/27/06, James Carman <[EMAIL PROTECTED]> wrote: > So, you want a generic way to generate the value for the objects in the > collection (and the display text I presume)? > > -Original Message- > From

Re: PropertySelectionModel

2006-04-27 Thread Ted Steen
n of these objects. The naming convention could be a bit messed up as English is not my native language... On 4/27/06, Mark Stang <[EMAIL PROTECTED]> wrote: > Can you provide code and an example? > > regards, > > Mark > > > -Original Message- > From: Ted St

PropertySelectionModel

2006-04-27 Thread Ted Steen
I created a "NamedPropertySelectionModel". Is this something that has already been done that I could find in T4? It just feels like something alot of people would need. Cheers! /ted - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Tapestry IDE Integration in MyEclipse.

2006-04-25 Thread Ted Steen
http://www.myeclipseide.com/ Look at the feature list for 4.1.1 That must be Spindle, right? /ted - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: tapestry/hibernate sessions & pageBeginRender()

2006-04-23 Thread Ted Steen
It would be sweet.. :) Thanks to HiveMind that should be possible, now I'm just waiting for people (smarter than me) to do it (better than I could do it) On 4/23/06, Andreas Bulling <[EMAIL PROTECTED]> wrote: > On 23. Apr 2006 - 16:00:12, Ted Steen wrote: > | Tapernate looks ve

Tapernate

2006-04-23 Thread Ted Steen
Hi! Is this something that will be a part of the HiveMind project in the near future? com.javaforge.hivemind.spring.hibernate3.HibernateService Or is it just for Tapernate? By the way, I think Tapernate looks very promising! The E-Pluribus project Howard is working on at javaforge have some clever

Re: tapestry/hibernate sessions & pageBeginRender()

2006-04-23 Thread Ted Steen
Tapernate looks very promising, but there some solutions to choose from. Honeycomb, HiveMind Utilities and Tapernate (and howards ePluribus project) should merge in to one solution for this tapestry+hibernate problem. On 4/22/06, James Carman <[EMAIL PROTECTED]> wrote: > Oh, and all of that stuf

Re: How to edit a Set of values

2006-04-22 Thread Ted Steen
>-> submit form (page 2) >-> page 2 displayed, data is lost > > Briefly looking at the code it seems you just have to add a hidden with > the value binding ognl:someData inside your form. > > Cheers, > Ron Piterman > > > > > > > > Ted Steen wrot

Re: Hivemind

2006-04-22 Thread Ted Steen
yes On 4/22/06, Raul Raja <[EMAIL PROTECTED]> wrote: > Do you have the following in your hivemodule.xml? > > > > > > Ted Steen wrote: > > Hi. > > > > This is a subset of my hivemodule.xml > > > >> interf

Hivemind

2006-04-22 Thread Ted Steen
Hi. This is a subset of my hivemodule.xml

How to edit a Set of values

2006-04-21 Thread Ted Steen
Hi! I'm trying to edit a set of values, and it works fine if I use @Persist on the data I'm trying to edit. I would like to avoid @Persist as much as I can as it bloats the session. Therefore I would like some guidance on how to do it without @Persist I would like to point out that I have tried @P

Re: wrong squeezer used when trying to @Persist("client")

2006-04-19 Thread Ted Steen
). I was burned > by the same thing. The "client" persistence strategy doesn't use the > squeezers to write out the data. > > > > > > -Original Message- > From: Ted Steen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 18, 2006 7:03 PM >

For, Hidden fields, squeezers, etc! How do I use them?

2006-04-19 Thread Ted Steen
Hi! My Class C contains various things including a set. In a listener in page A i get page B (by injection) and I call pageB.setFoo(c) (where c is an instance of class C) and then i activate pageB. in pageB i have a @Hidden with foo as value. I have this because I want the various things in Foo

wrong squeezer used when trying to @Persist("client")

2006-04-18 Thread Ted Steen
Hi! I've made a HibernateSqueezer that works fine, apart from one thing.. When I try to @Persist("client") a property that should be squeezed with the HibernateSqueezer tapestry falls back on the standard DataSqueezer (wanting a Serializable object). Now, is this a bug or am I doing something wron

library directory structure layout (maven2)

2006-04-18 Thread Ted Steen
I'm looking for a sample of how to structure my resources, javafiles and jwc/page files when I create a library for T4. I'm using maven I just need a good example I can look at Thanks! /ted - To unsubscribe, e-mail: [EMAIL PROTEC

Re: Open Session in View - Tapestry

2006-04-12 Thread Ted Steen
Hi! Have a look at hivetranse http://hivetranse.sourceforge.net/web/index.html It has excelent transaction, rollback and exception handling. You just drop the jar in there and add a few lines to hivemodule.xml. Hope it helps! On 4/12/06, Sukma Agung Verdianto <[EMAIL PROTECTED]> wrote: > Hi, > >

Re: intercepting page rendering

2006-04-10 Thread Ted Steen
ng? > I'll post on the wiki my solution. > > Henri. > > > On 4/10/06, Ted Steen <[EMAIL PROTECTED]> wrote: > > > > Hi Henri. > > > > I got a solution that provides the session (in a session-per-view > > manner). I also have transaction-handlin

Re: intercepting page rendering

2006-04-10 Thread Ted Steen
ering... This lead into most of > my poor code in Tapestry 3 that I'm trying to cleanup... > What I did in Tapestry 4 is a WebRequestFilter that creates a Spring > Hibernate session (I translated the Spring "OpenSessionInView" servlet > filter). If you are using Spring, I ca

intercepting page rendering

2006-04-10 Thread Ted Steen
Hi all! I need an active transaction when the page is rendered, in order to load/read lazy collections. One way to do it would be to start a transaction in beginRender etc. Another way that I think is better would be to intercept the method in the Engine that renders the page. Now the problem is t

Kickstart development - how's it going?

2006-02-12 Thread Ted Steen
Hi! I'm keeping an eye on the kickstart project, and I have some questions. How is the move to javaforge going? Will there be a hivetranse integration or are you going to use your own implementation? Hivetranse is planning to implement support for "long sessions" (so you won't have to) have a loo

Re: [NOTICE] TapestryForums Spamming

2006-02-08 Thread Ted Steen
hehe, yeah. it's pretty irritating. On 2/8/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Something seems wrong with TapestryForums; they have been spamming me > and several other users. They have also been unresponsive in fixing > the problem. I've done what I can ... unsubscribing them from

Re: Kickstart 0.2 released

2006-01-18 Thread Ted Steen
Nice!! Keep up the good work! /ted On 1/18/06, Schulte Marcus <[EMAIL PROTECTED]> wrote: > My goal is not to re-write the n-th transaction interceptor-wrapper. > Rather, my first focus is consistent tapestry integration. And treating > hibernate sessions the way you used to treat your db-connect

Re: Kickstart 0.2 released

2006-01-17 Thread Ted Steen
oups! just read about the property-persistence-strategy "conversation" so the cache size would not be a problem. nice.. On 1/17/06, Ted Steen <[EMAIL PROTECTED]> wrote: > hi! > > I think the generic data access objects on the hibernate page could be > usefull as they,

Re: Kickstart 0.2 released

2006-01-17 Thread Ted Steen
hi! I think the generic data access objects on the hibernate page could be usefull as they, among other things, support a generic way to specify the id (not only long). One thing that I come to think about regarding the session-per-conversation pattern is that there could be memory issues. the se

Re: Kickstart 0.2 released

2006-01-16 Thread Ted Steen
This is something that is really needed, but I have some questions. Why do you not use Hivetranse for session/transaction management? There has already been done alot of work on that. It is a clean Hivemind contribution. Check it out! http://hivetranse.sourceforge.net/ Also, as you are using Java

Re: page events, in what order? when and how?

2006-01-12 Thread Ted Steen
stry/UsersGuide/events.html > > -Original Message----- > From: Ted Steen [mailto:[EMAIL PROTECTED] > Sent: 12 January 2006 16:48 > To: Tapestry users > Subject: page events, in what order? when and how? > > Where can I read about the page events? and in what order they are >

page events, in what order? when and how?

2006-01-12 Thread Ted Steen
Where can I read about the page events? and in what order they are invoked? suddenly pageBeginRender() is only called with rewind=true and not a second time with rewind=false... I apparently have misunderstood the whole page event cycle. -- /ted

Altering persisted objects. (Hibernate problem)

2006-01-11 Thread Ted Steen
Hi all! Hibernate problem ahead... I want to have a form that allows me to alter a certian object. the form should use validation, so if something goes wrong I want to be able to correct the mistake and be able to press save again. I don`t want the changes to persist until the validation succeeds

Re: transaction start and end

2006-01-09 Thread Ted Steen
taking place. maybe that is done with the interceptors and engine services? I am taking my first trembling steps into the db-layer, transaction handling world and I obviously need some guidance. On 1/9/06, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Ted Steen wrote: > > A

Re: transaction start and end

2006-01-09 Thread Ted Steen
much better to have one Session span over one page request > instead. I don't know if it's recommended to put Session handling code > in pageAttached and pageDetached - I'm on Tapestry 4.0 myself, and I'm > using a HiveMind service to take care of this, so my Session's s

Re: problem with HibernateSqueezer

2006-01-09 Thread Ted Steen
I`ll go with the getSuperclass() solution.. thanks! On 1/10/06, Ido M. Tamir <[EMAIL PROTECTED]> wrote: > On Monday 09 January 2006 13:44, Ted Steen wrote: > > there is a problem with the HibernateSqueezer ( > > http://wiki.apache.org/jakarta-tapestry/HibernateTapestrySqueeze

Re: problem with HibernateSqueezer

2006-01-09 Thread Ted Steen
ious performance hit. Without > seeing the source for the hibernate squeezer I can't offer a solution on > that end. > > --- Pat > > > -Original Message- > > From: Ted Steen [mailto:[EMAIL PROTECTED] > > Sent: Monday, January 09, 2006

problem with HibernateSqueezer

2006-01-09 Thread Ted Steen
there is a problem with the HibernateSqueezer ( http://wiki.apache.org/jakarta-tapestry/HibernateTapestrySqueezer ) sometimes Hibernate extends the persistent classes, this probably has something to do with caching.. anyway, this is an example of what data.getClass().getCanonicalName() could retur

transaction start and end

2006-01-09 Thread Ted Steen
Hi! I`m planning on having my hibernate transaction span over one page request.. Is pageAttached(...) and pageDetached(...) the right place to start and end the transaction? I guess this is the first and last thing that happen on a request. Also, is it wise to have the transaction scope over a who

Re: disable an element in a propertyselection.

2005-12-18 Thread Ted Steen
"unavailable in this context" description of disabled. > > --- Pat > > > -Original Message- > > From: Ted Steen [mailto:[EMAIL PROTECTED] > > Sent: Saturday, December 17, 2005 3:16 AM > > To: Tapestry users > > Subject: disable an element in a

Re: pageAttached(PageEvent) not called?

2005-12-17 Thread Ted Steen
Switched to T4-beta-13 and now the pageAttached(...) is called. This must be a serious bug :) On 12/17/05, Ted Steen <[EMAIL PROTECTED]> wrote: > I'm using T4-rc1 and I can't get tapestry to call my pageAttached(...) method. > I have implemented PageAttachListener and I hav

pageAttached(PageEvent) not called?

2005-12-17 Thread Ted Steen
I'm using T4-rc1 and I can't get tapestry to call my pageAttached(...) method. I have implemented PageAttachListener and I have some println(...) in my pageAttached(PageEvent) method. problem is that nothing is printed out :( has anyone experienced this with rc1? -- /ted --

Re: int validator broken?

2005-12-17 Thread Ted Steen
> > This should be cleared up the next time the tapestry website forrest docs > are deployed. > > On 12/16/05, Ted Steen <[EMAIL PROTECTED]> wrote: > > > > i'm using T-rc1 and when I try to use the Integer validator Tapestry > > says there is none. > >

disable an element in a propertyselection.

2005-12-17 Thread Ted Steen
I can't find a way to disable a single element in a propertyselection. I was hoping to find an isEnabled() method on the PropertySelectionModel am I missing something here? -- /ted - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

int validator broken?

2005-12-16 Thread Ted Steen
i'm using T-rc1 and when I try to use the Integer validator Tapestry says there is none. gives me org.apache.hivemind.ApplicationRuntimeException: No validator named 'int' has been defined. am I doing something wrong? -- /ted -

ILink or IPage

2005-12-16 Thread Ted Steen
Hi! What is the difference between returning an ILink or an IPage on a listener? And how do I get hold of an ILink? The IPage I can inject or get from the cycle.. -- /ted - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Cache component, great performance boost.

2005-11-17 Thread Ted Steen
Beeing able to cache whole pages/components or parts of them is a real performance boost in many situations. This components is a great start; http://tapfx.sourceforge.net/multiproject/tapfx-components/apidocs/index.html But... Problems may occur. For instance, you'll run into problems if you wan

Re: {SPAM?} Re: Best way to screenscrape tapestry

2005-11-15 Thread Ted Steen
, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Αρχικό μήνυμα από Ted Steen <[EMAIL PROTECTED]>: > > > There should not be any problems with the Cache component if one uses > > cookies, right? > > True, but can you really make sure that your clients never disable the

Re: Best way to screenscrape tapestry

2005-11-15 Thread Ted Steen
There should not be any problems with the Cache component if one uses cookies, right? Problem is that sometimes I see a jsessionid=xxx even though I use cookies. Do anyone know why? On 11/15/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Wow! > > > > This is a really powerful component! > >

Re: Best way to screenscrape tapestry

2005-11-15 Thread Ted Steen
Wow! This is a really powerful component! Simple and powerful. I think it should be part of the Tapestry Framework. On 11/15/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I also needed to cache parts of some pages, and so I created the cache > component of > TapFX ( tapfx.sf.net) which use

Status of OGNL 3.0?

2005-11-12 Thread Ted Steen
Is OGNL 3.0 ever going to be finished, or has development stoped? There where some serious speed improvements promised for 3.0, as far as I remember. -- /ted - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: Tapestry and Hibernate Lazy Loading

2005-11-08 Thread Ted Steen
I'm having the same problem. I, on the other hand, have found a "sollution" to the problem. As far as I can see, people are talking about reconnecting the object to the session using this technique: http://wiki.apache.org/jakarta-tapestry/SpringHibernate?highlight=%28hibernate%29 look at the bottom

Re: HiveMind Utilities 0.5.0 supports HiveMind 1.1

2005-11-01 Thread Ted Steen
Very nice! I noticed that support for Hibernate "long sessions" is planned for 0.7.0. When, do you think, will this be released? /Ted On 11/1/05, Jean-Francois Poilpret <[EMAIL PROTECTED]> wrote: > Dear Tapestry users, > > I am proud to announce the release of HiveMind Utilities 0.5.0 on > Sourc

[SORTA OT] Binding a certain domain to a certain page.

2005-10-26 Thread Ted Steen
Hi! Is it possible to bind a domain name to a tapestry page? like http://www.my-subset-of-my-application.com/ --> http://www.my-application.com/app?page=subPages/Sub1&service=page If it is possible, will it be possible to keep the addres as http://www.my-subset-of-my-application/... while one bro

Re: Hivetranse success stories requested! (sort of another hibernate+tapestry discussion)

2005-10-25 Thread Ted Steen
bounce... On 10/24/05, Ted Steen <[EMAIL PROTECTED]> wrote: > Hi! > > I'm considering using hivetranse and would like to hear from others > that have been using it (successfully or unsuccessfully). Pros and > cons in comparison to the spring way, or any other way.

Hivetranse success stories requested! (sort of another hibernate+tapestry discussion)

2005-10-23 Thread Ted Steen
Hi! I'm considering using hivetranse and would like to hear from others that have been using it (successfully or unsuccessfully). Pros and cons in comparison to the spring way, or any other way. After seeing all these Hibernate + Tapestry discussions I can't understand why people don't talk more

building up the value in a parameter

2005-09-28 Thread Ted Steen
I'm making a component that should act as a image selector. You should be able to, in the component, browse some images and add them to a list, this list is connected to a (out) parameter. problem is that the list should not only be a prameter but also persistent, in order to persist while you brow

TAPESTRY-199 Is this something we will see in the near future?

2005-09-23 Thread Ted Steen
Hi! A way to properly bind CSS styling to a component/page is something I would be really happy to see. Is this planned for T4? http://issues.apache.org/jira/browse/TAPESTRY-199 -- /ted - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Hibernate session model

2005-09-23 Thread Ted Steen
yes, and hivetranse seem to be doing it the right way. http://hivetranse.sourceforge.net/ I think the long session pattern is coming to hivetranse soon. On 9/23/05, Schulte Marcus <[EMAIL PROTECTED]> wrote: > No, we don't use Spring anymore. I was (probably quite unjustified) a bit > fed up with

Re: hivetranse-0.5.0-B3 question

2005-09-21 Thread Ted Steen
problem solved. I needed to include the configuration, like this; On 9/21/05, Ted Steen <[EMAIL PROTECTED]> wrote: > I was thinking hivetranse was a nice way

Re: hivetranse-0.5.0-B3 question

2005-09-21 Thread Ted Steen
I was thinking hivetranse was a nice way to solve where to place the hibernate session. aren't there anyone out there who could help me with this? I think it is a simple hivemind problem. On 9/21/05, Ted Steen <[EMAIL PROTECTED]> wrote: > Hi! > > I'm trying to setup hivet

hivetranse-0.5.0-B3 question

2005-09-21 Thread Ted Steen
Hi! I'm trying to setup hivetranse+tapestry here and i have configured hivemind.xml like this: ---

Re: hivemind problem missing service constructor

2005-09-20 Thread Ted Steen
to construct service se.liu.studorg.blaskan.web.hibernateSession" On 9/20/05, Ted Steen <[EMAIL PROTECTED]> wrote: > ok, some more trouble with hivemind.. > this is in my hivemind.xml > >id="hibernateSession" > interface="org.hibe

Re: hivemind problem missing service constructor

2005-09-20 Thread Ted Steen
AIL PROTECTED]> wrote: > Ted Steen gmail.com> writes: > > > > > i got this hivemodule > > > id="hibernateSession" > > interface="org.hibernate.Session"/> > > > >

hivemind problem missing service constructor

2005-09-20 Thread Ted Steen
i got this hivemodule and yet I get this error: Error: No module has contributed a service constructor for service point se

Re: A way to make user e.g. login and then redirect back to the page we started from

2005-09-19 Thread Ted Steen
ed and then when i login (all happening on the loginpage) the callback that is supposed to take me back is null :( On 9/19/05, Ted Steen <[EMAIL PROTECTED]> wrote: > I'm looking at it right now. I remembered that it was in Kents book I read it. > > thanks! > > On

Re: A way to make user e.g. login and then redirect back to the page we started from

2005-09-19 Thread Ted Steen
I'm looking at it right now. I remembered that it was in Kents book I read it. thanks! On 9/19/05, Martijn Hinten <[EMAIL PROTECTED]> wrote: > Kent Tong does an excellent job in describing this in chapter 4 of > his e-book Enjoying Web Development With Tapestry: > www.agileskills2.org. Pages 121

A way to make user e.g. login and then redirect back to the page we started from

2005-09-19 Thread Ted Steen
Hi! If in the middle of an application a user need to login to proceed it would be nice to be able to get back to the place he/she came from after login/registration is completed. My first thought was that I could save the IPage I'm coming from, but then I remembered that I have seen this beeing d

Re: [OT] Need access to file in context directory.

2005-09-16 Thread Ted Steen
an <[EMAIL PROTECTED]> wrote: > get the ServletContext and call getResource() with the path (relative > to the context root) and you get an URL. Or call getResourceAsStream() > with the same argument to get an InputStream. > > Geoff > > On 9/16/05, Ted Steen <[EMAIL

Re: [OT] Need access to file in context directory.

2005-09-16 Thread Ted Steen
On 9/16/05, Geoff Longman <[EMAIL PROTECTED]> wrote: > get the ServletContext and call getResource() with the path (relative > to the context root) and you get an URL. Or call getResourceAsStream() > with the same argument to get an InputStream. > > Geoff > > On

[OT] Need access to file in context directory.

2005-09-16 Thread Ted Steen
I need to load a .properties file from the context directory. I have been messing around with the class loaders getResource etc. but I can't get it to work. I have a POJO that is a part of my tapestry application. And all I want to do is get the InputStream for a file in context/ -- /ted --

Re: Need to extend functionality to class available to whole application.

2005-09-16 Thread Ted Steen
I will add an ASO with application scope.. ofcourse. sorry for being stupid.. :> On 9/15/05, Ted Steen <[EMAIL PROTECTED]> wrote: > Ok, so now i have this in hivemind.xml > > > > > >

Need to extend functionality to class available to whole application.

2005-09-15 Thread Ted Steen
Hi! I'm planning to add support for plugin loading for my webapp. It will be possible to add plugins and activate them "on the fly" using JPF http://jpf.sourceforge.net/index.html Now I need a place to put my plugin manager. So I need to extend functionality to an existing Tapestry class that is

Re: simple localization question

2005-09-01 Thread Ted Steen
If you write "message:page.error" tapestry will look for a message called "page.error", that is it will look in your .properties file for that message. If you want to dynamically choose the message I think the best thing would be to do like this: public String getPageError() { return getMessag

Decimal rounding problems when working with currency.

2005-09-01 Thread Ted Steen
Hi all! I need to work with BigDecimal in order to represent decimal numbers with greater precision than float. If I need to store the (float) number 27.9 in a BigDecimal it transforms into 27.89857891452847... In tapestry I have my @TextField with translator:number tied to a propert

Re: Localization: problem with charset

2005-08-30 Thread Ted Steen
cation 4.0//EN" > "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";> > > 2005/8/30, Ted Steen <[EMAIL PROTECTED]>: > > Thank you Mind Bridge! I obviously didn't read the docs carefully enough. > > > > You are absolutely right, except that it

Re: Localization: problem with charset

2005-08-30 Thread Ted Steen
Thank you Mind Bridge! I obviously didn't read the docs carefully enough. You are absolutely right, except that it should be not But for some reason the xml parser won't accept the in my .application file I get this error: "org.apache.tapestry.util.xml.DocumentParseException: Unable to read c

Localization: problem with charset

2005-08-30 Thread Ted Steen
Hi. On my developer box (windows) the swedish characters displayed as they should. But now when I deploy the application (gentoo linux) the characters are all messed up (replaced by ??). I have tried to use both iso-8859-1 and utf8 on my .properties files, but to no avail. So the problem occurs w

Friendly URL:s

2005-08-26 Thread Ted Steen
Hi. Is this supposed to be a friendly URL "/admin/Menu,border.link.direct"? or have I done something wrong? @PageLink generates, what I would like to call friendly URL:s (http://localhost:8080/myApp/Home.html) this is added to web.xml: myapp *.direct myapp *.sdirect -- /ted --

Re: CSS in page or component

2005-08-25 Thread Ted Steen
What if one have Assets that need to be referenced in the css? How is that solved? On 8/25/05, Ron Piterman <[EMAIL PROTECTED]> wrote: > What I do to resolve this is the following: > > Each component which wants to "contribute" a css, implements an > Interface named IStyleable. > > The border go

Re: Javascript confirm alert.

2005-08-23 Thread Ted Steen
quot; attribute like onclick="return confirm('Really?')" > > > > If false is returned the href is not executes (followed) > > > > Darn simple! :-) > > > > regards, Lars Borup Jensen > > > > > > On Tue, 23 Aug 2005 11

Javascript confirm alert.

2005-08-23 Thread Ted Steen
Hi! I want to make the user confirm that he/she really wants to go on with some action. So if a @DirectLink is pressed I want a javascript confirm box to popup. How is this done in the "tapestry way"? Do I have to make my own IScript etc. or is it already done? -- /ted --

Re: Global messages.

2005-08-20 Thread Ted Steen
Never mind... I was totaly wrong. It's all in the users guide. On 8/21/05, Ted Steen <[EMAIL PROTECTED]> wrote: > How do I get my hands on the global messages? > and in wich .properties file should I put them? > It doesn't say in the users guide.

Global messages.

2005-08-20 Thread Ted Steen
How do I get my hands on the global messages? and in wich .properties file should I put them? It doesn't say in the users guide. -- /ted - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Unable to "unugly" certain URLs

2005-08-20 Thread Ted Steen
When I press submits I still get these ugly URLs; http://localhost:8080/Peng/Home,loginForm.direct links works fine, and generates nice URL:s, but submits doesn't.. :( --hivemodule.xml-- --web.xml-- Peng /app Peng *.direct Pen

Dynamically loadable modules T4 apps.

2005-08-19 Thread Ted Steen
Hi all! I'm planning to build a core site with the ability to plugin external modules dynamically. My thoughts at the moment is to make my own plugin api/interface that will insert the modules different parts at certain places in the app. Now I need some feedback on this thoughts, is it possible

Re: Listener "redirecting" to new page --> Exception

2005-08-17 Thread Ted Steen
Sorry, I should mention two things; the setError() should be in the else part of the if statement. and PengBasePage is derived from BasePage. I was a little quick posting my question... - To unsubscribe, e-mail: [EMAIL PROTECTED

Listener "redirecting" to new page --> Exception

2005-08-17 Thread Ted Steen
I'm trying to activate a new page if some condition is true within an listener, but i get an Exception (outside of tapestry!) when doing so. --- snipplet from MainPage.java --- @InjectPage("main/AddEntry") public abstract AddEntry getAddEntryPage(); public IPage doAddEntry() { AddEntry addEntry