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

Spring + Hibernate + Tapestry + Hivemind [if required]

2005-11-15 Thread Varun Mehta
Hi All, I've been reading some of "Tapestry + Hibernate" and did some basic CRUD applications using them as given on the wiki (brown bag). I've found many applications that use, "Tapestry + Spring + Hibernate" hand in hand for development (The best example is trails, which sounds promising), bu

Re: How to create a url to call a listener in a page class

2005-11-15 Thread Jabbar
You're right Leonardo! I've solved the problem anyway :p On my html page I've added a directlink component whose behaviour I wanted imitate. In the @Any component I have an href which calls a method in my page class. The definition of the met

Re: spring integration working

2005-11-15 Thread Jabbar
Hello Henrick, I have spring integration working, but I'm using rc-1 of hivemind. On 14/11/05, hv @ Fashion Content <[EMAIL PROTECTED]> wrote: > release version of hivemind I mean > > "hv @ Fashion Content" <[EMAIL PROTECTED]> skrev i en meddelelse > news:[EMAIL PROTECTED] > > Has any others had p

Re: Component Specification

2005-11-15 Thread Ron Piterman
You are right, component annotations are clumsy. But, currently there are 3 ways to define a component in a page - you might find .jwc or .html way more apealing, and still use annotations for injecting or setting defaults - that way you still can use what you like (annotations) *and* convenien

Re: spring integration working

2005-11-15 Thread Jabbar
I've checked the changelog between rc-1 and the 1.1 release and there have not been any code changes. On 15/11/05, Jabbar <[EMAIL PROTECTED]> wrote: > Hello Henrick, > I have spring integration working, but I'm using rc-1 of hivemind. > > On 14/11/05, hv @ Fashion Content <[EMAIL PROTECTED]> wrote

Re: Spring + Hibernate + Tapestry + Hivemind [if required]

2005-11-15 Thread John Coleman
> Now we don't have a centralized location to specify such configuration (or > I'm not aware about it, like struts-config.xml), is this a reason people > plug it with Spring. Meanwhile I'll try to study some of trails. On the larger projects I have worked on, the team often come into conflict with

Re: How to create a url to call a listener in a page class

2005-11-15 Thread Oleg Batrashev
You could refer to the component directly from html, no need for getURL() method Like this But I think its kind of hack - create component only for getting some value from it, although I did it myself. Oleg On 11/15/05, Jabbar <[EMAIL PROTECTED]> wrote: > You're right Leonardo! > > I've solved

RE: Spring + Hibernate + Tapestry + Hivemind [if required]

2005-11-15 Thread Varun Mehta
Hey John, Thanks for the example. I'm not bent upon using struts-config.xml(just used it as an example), but am looking at a 'better' option (if any) to mark the next page to be called incase of Tapestry. My prime question still remains unanswered, why do we need to use other frameworks like Spr

Disable cookie session

2005-11-15 Thread Robert
Hi, I think I am having some cookie session problems. For some reason sometimes my HttpSession will dissapear. The web application makes a lot of use of XML requests that also validates the session. And I think there are some concurrency problems with reading and writing to cookies. When I di

Re: Spring + Hibernate + Tapestry + Hivemind [if required]

2005-11-15 Thread Markus Joschko
mhm, have you ever looked at the spring webflow project? It seems like they have already done a lot in this direction. The only thing missing is the integration with tapestry :-( markus On 11/15/05, John Coleman <[EMAIL PROTECTED]> wrote: > > Now we don't have a centralized location to specify su

Re: How to create a url to call a listener in a page class

2005-11-15 Thread Jabbar
I love tapestry and OGNL : On 15/11/05, Oleg Batrashev <[EMAIL PROTECTED]> wrote: > You could refer to the component directly from html, no need for getURL() > method > > Like this > coords="ognl:getCoords(mapArea)" > href="ognl:components.directlink.getLink(requestCycle).getURL()"/> > > But

Re: RedirectException at catching a StaleSessionException

2005-11-15 Thread Rudolf Baloun
It works with "getInfrastructure().getRequest().forward(newURL);" ! Big Thanks to Kent Tong! Kent Tong wrote: Rudolf Baloun atron.de> writes: protected void handleStaleSessionException(IRequestCycle cycle, StaleSessionException exception) { log.info("EnterHANDLESTALESESSIONE

Re: Spring + Hibernate + Tapestry + Hivemind [if required]

2005-11-15 Thread John Coleman
Varun, Tapestry seems to be unique in the way it seperates page presentation from implementation, and that may appeal to Spring users who have invested a lot of time in their business layer code, but would like a Tapestry front end. Of course we have Hivemind to implement services, but Spring is s

@InjectObject into Page super class

2005-11-15 Thread hv @ Fashion Content
Take abstract public class PageA extends BasePage { @InjectObject } abstract public class PageAplus extends PageA { } Might I then get into trouble with the class enhancer when I load a page of class PageAplus ? Henrik

Re: @InjectObject into Page super class

2005-11-15 Thread Howard Lewis Ship
No, this must specifically works; its one of the greatest benefits of the annotation approach. On 11/15/05, hv @ Fashion Content <[EMAIL PROTECTED]> wrote: > Take > > abstract public class PageA extends BasePage { @InjectObject } > abstract public class PageAplus extends PageA { } >

Re: Best way to screenscrape tapestry

2005-11-15 Thread andyhot
> Wow! > > This is a really powerful component! > Simple and powerful. Well, thanks but you have to take care when using it. For instance, you'll run into problems if you want to support sessions with url-rewriting (instead of cookies) and you also want to cache html content that contains direct

Re: @InjectObject into Page super class

2005-11-15 Thread hv @ Fashion Content
ok, will keep looking. Somehow the enhancer fails to implement my accessor function for the injected object. Strange thing is that I can get it to work with component, but not with pages. >"No, this must specifically works; its one of the greatest benefits of >the annotation approach. On 11/15/

Re: Component Specification

2005-11-15 Thread Matt Welch
On 11/15/05, Ron Piterman <[EMAIL PROTECTED]> wrote: > You are right, component annotations are clumsy. But, currently there > are 3 ways to define a component in a page - you might find .jwc or > .html way more apealing, and still use annotations for injecting or > setting defaults - that way you

getting the host name

2005-11-15 Thread Dan Adams
How can i get the hostname of the current page (ie www.mycompany.com)? -- Dan Adams Software Engineer Interactive Factory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: getting the host name

2005-11-15 Thread Daniel M Garland
Hi Dan, You get get at it via the Request Cycle: cycle.getRequestContext().getRequest().getServerName() HTH Dan Dan Adams wrote: How can i get the hostname of the current page (ie www.mycompany.com)? -- Dan Garland [EMAIL PROTECTED] mob: +44 (0) 7979 770053 icq: 12

Re: getting the host name

2005-11-15 Thread Rudolf Baloun
cycle.getInfrastructure().getRequest().getServername(); is better, cause "getRequestContext()" is deprecated Daniel M Garland wrote: Hi Dan, You get get at it via the Request Cycle: cycle.getRequestContext().getRequest().getServerName() HTH Dan Dan Adams wrote: How can i get the hostname o

(newbie) "Hello World" with Jetty!

2005-11-15 Thread FTP
Hi there, I try to start a "Hello World" application by using Jetty and I get a 404 page! The URL I'm applying is: http://localhost:8000/kp/app?service=page&page=Home I attach the conf files I'm using. (kp1.xml is the conf file starting Jetty) Thanks for your help George > http://jakarta.a

injeting hivemind stuff into spring beans

2005-11-15 Thread Dan Adams
Anyone know how to do this? -- Dan Adams Software Engineer Interactive Factory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Help on getting a Cayenne DataContext using HiveMind service

2005-11-15 Thread Joseph Hannon
Will someone see if you can determine why I am not able to find the service detailed in my post? Typos? Configuration setup? This is becoming quite urgent. Thanks, Joseph

Re: Component Specification

2005-11-15 Thread Ron Piterman
yes - thats it. you can define the components using annotations which is quite ugly, then you can define them in your html template, then you can define them in your .page (for page classes) or .jwc (for component classes) xml specifications. Ofcause, if you wish your head to spin real bad you

Re: (newbie) "Hello World" with Jetty!

2005-11-15 Thread Chris Burnley
Are you using Tapestry 3 or 4 ? Either way, you'll need a Home.html as well as a kp.application file with the relevant details in it. This might be helpful : http://jakarta.apache.org/tapestry/QuickStart/index.html On 11/15/05, FTP <[EMAIL PROTECTED]> wrote: > > Hi there, > > I try to start a

Re: getting the host name

2005-11-15 Thread andyhot
And finally, you could inject tapestry.globals.WebRequest in your page using and do a getWebRequest().getServerName() OR you could just inject the servername like this: I prefer this last option. It's so much easier to unit-test. Otherwise, you'ld have to mock everything (cycle - infrastruct

using the Namespace Catalog for i18n?

2005-11-15 Thread Mike . Barber
I have setup a namespace catalog in my project & it does not seem to work as advertised. Is anyone successfully using this feature? The Tapestry documentation is pretty straightforward regarding this, but I have yet to get it to work. My project is "abc". I have c:\projects\abc In c:\projects\a

Inject cookiesource and ASO in a Hivemind service?

2005-11-15 Thread Henri Dupre
Is it possible to inject the CookieSource and ASO in a hivemind service? So would the hivemind service need to be in a threaded model (the ASO would be different for each session)? I'm not sure to understand how this would work. I'd need to have at each request these properties injected into my hiv

Re: Component Specification

2005-11-15 Thread Matt Welch
What are the downsides of defining the components in the template itself? The only one I see off the top of my head (and it's not minor, I grant) is that if your web developer isn't also an application developer, there a greater chance the component definitions will get mangled when all that inform

Re: Component calling the listeners of its containing page

2005-11-15 Thread an
Ah, the elegant solution I was looking for. Thanks for your help. On 11/11/05, Patrick Casey <[EMAIL PROTECTED]> wrote: > > Set up a parameter of type IActionListener and then pass your page's > listener method into the component. > > --- Pat > > > -Original Message- > > F

Getting the IP Address of a request

2005-11-15 Thread Lindsay Steele
I am trying to get the IP address of a person making a request. I am using Tapestry 3.03 and have tried this both on a local and remote tomcat server. I am currently using "cycle.getRequestContext().getRequest().getRemoteAddr();" but all I get returned is 127.0.0.1 Any ideas ? --

Re: Component Specification

2005-11-15 Thread Howard Lewis Ship
Some constructs are easier to express in XML than inside the HTML; typically, complex OGNL expressions. When building base pages from which you may extend (or base components), using annotations is great because it provides an inheritance mechanism. Tapestry 3.0 and earlier didn't have any kind o

How to get the name of the page that raised an exception?

2005-11-15 Thread Martijn Hinten
I have overridden Tapestry's exceptionPresenter and provided my own subclass of org.apache.tapestry.error.ExceptionPresenter. In it's presentException method, is there any way to figure out the name of the page that raised the exception? I would like to show the exception in a friendly way, on

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: How to get the name of the page that raised an exception?

2005-11-15 Thread Mike . Barber
This is something I do to emulate Log4j. Examine the stack & find the first entry that does not contain ExceptionInfo as a classname. call displayInfo() in your catch statement, or call displayInfo() whereever to track class, method, & line number. note: this code is customized for this exampl

Re: Best way to screenscrape tapestry

2005-11-15 Thread Martin Strand
I'm not sure, but I believe that when the session is first created, (1) a cookie is set and (2) the jsessionid=xxx is added to each link. Then, if the client sends that cookie on the next request, your app won't have to add the jsessionid=xxx anymore since the client obviously accepts cookies

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

2005-11-15 Thread andyhot
Αρχικό μήνυμα από 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 them? Fact is that up to now, I try not to mix the cache with components that generate li

Re: Component Specification

2005-11-15 Thread Alan Chandler
On Tuesday 15 Nov 2005 04:13, Matt Welch wrote: > I'm just getting into Tapestry and while I like many of the concepts, > I'm finding it to be a little complex. Here's an example. It's my > understanding that specifying components for you pages via annotation > is new to Tapestry 4.0. I'm a fan of

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

2005-11-15 Thread Ted Steen
Well, a general Cache component would be gold! Another thing that come to mind is that if the cache components body contains some kind of state (e.g. when persisting something clientside) things could get messed up.. So I guess you should avoid both links and client side state. On 11/16/05, [EMAI

Re: Component Specification

2005-11-15 Thread Ron Piterman
There is first the problem of i18n: if you used localized templates you must repeat the definition of components in every template. I find the html much much much cleaner without components defintions. basically we use very descriptive jwcid's in the html, and define the components in the .jwc/.

Re: Component Specification

2005-11-15 Thread Matt Welch
On 11/15/05, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > We'll have to see where Wicket goes, but anyone who has worked on > Tapestry 4.0, with its extensive support for injection, will certainly > find that somewhat missing in Wicket's simpler model. Is there a thread somewhere or some documen

Re: Spring + Hibernate + Tapestry + Hivemind [if required]

2005-11-15 Thread Gunna Satria Hijrah Kusumah
Hi Varun, IMHO you don't have to use Spring if you feel you don't need to use it. It only add the complexity. I learn that we can not use one solution to every problem. So, when you need to use Spring? well, you can read documentations about it, maybe Spring in Action or etc, there you can find

Re: Component Specification

2005-11-15 Thread Jesse Kuhnert
I tried so hard to rationalize what wicket was doing so that I could try playing with it but it just didn't make sense. All of those pretty web pages/blogs couldn't hide what they had done Which, from what I've read/seen is try to create a "clean and simple" way to write web-apps, from an almo

contrib table question - sort column by id NOT by value

2005-11-15 Thread Paul Rush
Trying out contrib:Table for the first time... simple question (hopefully). I have a table with the following columns: Name - Status - Date The Status column is represented in my object model as an object that has an Integer Id field and a String description field. I want to sort on the Id, but

Re: contrib table question - sort column by id NOT by value

2005-11-15 Thread Gunna Satria Hijrah Kusumah
Hi, you can add "=" expression in your table's columns definition and later define your own custom column. public ITableColumn getStatusColumn(){ SimpleTableColumn statusColumn = statusColumn.setColumnComparator(yourComparator)... return statusColumn; } i got this

Re: contrib table question - sort column by id NOT by value

2005-11-15 Thread Mind Bridge
Hi, Sorting: the column is sorted using the OGNL expression provided in its definition. For example 'status:id' will sort the status column by its id. Display: By default, the column displays the toString() of the value of the OGNL expression above. If there is difference between sorting and

Re: How to get the name of the page that raised an exception?

2005-11-15 Thread Martijn Hinten
Thanks Mike! I think I will be able to extract the pagename from my own stack trace, and thus solve my problem. Thanks again. [EMAIL PROTECTED] wrote: This is something I do to emulate Log4j. Examine the stack & find the first entry that does not contain ExceptionInfo as a classname. call

Re: How to get the name of the page that raised an exception?

2005-11-15 Thread Leonardo Quijano Vincenzi
This sounds like a hack... what happens if the page class has a different name than the template? For example if I had a common page class for several different pages, etc. And besides, this isn't really bullet-proof. There's no guarantee that another class or proxy will be between the page an

RE: Spring + Hibernate + Tapestry + Hivemind [if required]

2005-11-15 Thread Varun Mehta
Thanks for your feedback guys Regards Varun Mehta Member of Technical Staff, Persistent Systems Pvt. Ltd., Direct: +91 20 3023 4656 Board: +91 20 3023 4000 Ext: 4656 Visit PSPL at *http://persistentsys.com *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* imagination is

RE: Spring + Hibernate + Tapestry + Hivemind [if required]

2005-11-15 Thread Manjith Kumar Adapa
Hi Varun, Well to answer your prime question why does one need to use other frameworks like Spring etc... to be plugged in the Tapestry. Well In our application we are using Springs framework at the database layer as the model in MVC and Tapestry for the View and Controller. With the help of Spr

Should Image src parameter be reserved?

2005-11-15 Thread Scott Russell
The Image component specification defines the src parameter as reserved. This means that if one uses the Image component implicitly within a html template, then one cannot specify a src parameter to use for designing the template appearance in a html editor. The obvious solution would be to mak

Re: How to get the name of the page that raised an exception?

2005-11-15 Thread Martijn Hinten
Indeed it sounds like a hack. But a good enough one for my situation. I haven't coded it yet, but I will off course catch the situation that occurs when the page name cannot be extracted from the stack. I will go to the home page, then. Nonetheless I will vote for your bugreport. Wait. Done. Did