Where to find a TestCase example for tapestry4.0?

2006-02-05 Thread Jun Tsai
I want to use junit to test my page class or html.How to do it? Thanks. Jun Tsai -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: How to get service?

2006-02-05 Thread Jun Tsai
Thank your reply. My class is asset,not page ,not component,not service.How to inject service? Thanks. Jun Tsai 在 06-2-6,Raul Raja Martinez<[EMAIL PROTECTED]> 写道: > Hi Jun Tsai > > If the class where you want your service to be injected is not a page or > a component you can't inject it using a

Re: How to get service?

2006-02-05 Thread Raul Raja Martinez
Hi Jun Tsai If the class where you want your service to be injected is not a page or a component you can't inject it using annotations. If your class is another service you can get it injected declaring a setter in your class that takes the interface of the service that you want to inject as para

Re: Testing Tapestry Pages

2006-02-05 Thread andyhot
I generally create a mock for the IRequestCycle (using EasyMock), so havent run into this kind of problem. >From what I can guess from the code, you try to initialize the Tapestry system and have it along during the unit tests. Are there any real benefits to this, instead of using mocks? But an

Re: How to get service?

2006-02-05 Thread Jun Tsai
Thank you. I want to inject the service in an asset class. Please look tapestry\examples\Workbench\src\java\org\apache\tapestry\workbench\chart\ChartAsset.java Thanks Jun Tsai 2006/2/6, Shing Hing Man <[EMAIL PROTECTED]>: > You can inject a service into your page : > > @InjectObject("engine-

Re: How to get service?

2006-02-05 Thread Shing Hing Man
You can inject a service into your page : @InjectObject("engine-service:chart") public abstract IEngineService getChartService(); where chart is a custom service defined in hivemind.xml . Something like : InjectObject i

How to get service?

2006-02-05 Thread Jun Tsai
hi all, I find cycle.getEngine().getService(BlobService.SERVICE_NAME); gerService method was deprected.I didn't find another method to get service? How to ? Thanks. Jun Tsai -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.net --

Override validation messages

2006-02-05 Thread Andreas Bulling
Hi everybody, I have a problem with the validation messages in T4 and after searching the archives without finding a solution to this problem I hope someone on this list can help me: The problem is that not all validation messages are localized to German but I don't know how to override the defaul

Howto override validation messages?

2006-02-05 Thread Andreas Bulling
Hi everybody, I have a problem with the validation messages in T4 and after searching the archives without finding a solution to this problem I hope someone on this list can help me: The problem is that not all validation messages are localized to German but I don't know how to override the defau

Re: Inherit pages components

2006-02-05 Thread Vinicius Carvalho
Doh! I`m using border component and had not even though on that, sorry ;) On 2/5/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > Most people use the Border component pattern for things like this. (the > tacos demo has an example, so does the Workbench from tapestry) > > That's what I would do. > >

Re: Inherit pages components

2006-02-05 Thread Jesse Kuhnert
Most people use the Border component pattern for things like this. (the tacos demo has an example, so does the Workbench from tapestry) That's what I would do. On 2/5/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: > > Hello there, is it possible to inherit some page components? for eg. All > my

Inherit pages components

2006-02-05 Thread Vinicius Carvalho
Hello there, is it possible to inherit some page components? for eg. All my form pages has this fragment of code: Thanks Kent for this in your book ;) Well, I must copy and paste this in every page I have (at least is what I'm doing now :P). Is it possible to use some kind of inheritance t

Re: Tapestry and Spring Web Flow

2006-02-05 Thread Archie Cowan
On 2/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Cant find a release of SWF having a functional Tapestry integration. > Are you using their CVS version? It appears they've removed all their tapestry files for the 1.0 release from their HEAD branch. I guess this is confusing me. It seem

Anyone know a way to get hold of apache autheticated user

2006-02-05 Thread Alan Chandler
I currently do all authentication via apache2 (via mod_auth_pgsql2 module) frontending tomcat applications. Does anyone know if its possible within tapestry to pick up the user who has logged in. I assume its via some environment variable, but I have scanned what I think are relevent document

Re: Tacos Refresh Component

2006-02-05 Thread Vinicius Carvalho
Mark, meta-refresh is something that I`m to avoid as it refreshes the entire window, that`s the reason of AJAX buy being asynchronous On 2/3/06, Mark Stang <[EMAIL PROTECTED]> wrote: > > Try using the meta-refresh... > > > -Original Message- > From: Vinicius Carvalho [mailto:[EMAIL PROTECT

Testing Tapestry Pages

2006-02-05 Thread Matt Raible
I'm in the midst of upgrading Equinox (http://equinox.dev.java.net) from Tapestry 3.3 to 4.0. With the 3.3 version, I had a tapestry-mock.jar that I created from Tapestry's CVS, as well as an AbstractInstantiator class that I found on Howard's site. For the most part, the new Creator class is suf

Tapestry 4.0 and Spring

2006-02-05 Thread Matt Raible
Does the following wiki page still reflect the current/recommended way of integrating Tapestry 4.0 with Spring? http://wiki.apache.org/jakarta-tapestry/Tapestry4Spring I used something similar in my project. While it works - it doesn't seem to be the "built-in support for Spring" that I'd suspec

Re: Tapestry and Spring Web Flow

2006-02-05 Thread andyhot
Cant find a release of SWF having a functional Tapestry integration. Are you using their CVS version? >From Archie Cowan <[EMAIL PROTECTED]>: > I've begun evaluating Tapestry for use in some applications that will make > heavy use of multipage forms. I've gotten familar with the component > conc

Re: Customizing Eclipse for Tapestry 4 development

2006-02-05 Thread Mat Gessel
Check the page specificaiton and remove the class attribute. This is overriding the meta key you specified. (The class attribute refers to the *fully qualified* class name--not the class name.) -= Mat On 2/4/06, jeff emminger <[EMAIL PROTECTED]> wrote: > great work! > > i must be doing something

Re: Tapestry and Spring Web Flow

2006-02-05 Thread Todd O'Bryan
I've started doing my multipage forms as single Tapestry pages with a pageNum property to tell which page I'm on. For example,

Avoiding query string parameters with same name in URI

2006-02-05 Thread Martin Carel
Hi! I have had problems lately with the fact that the DirectLink component uses service parameters with all the same parameter names (ServiceConstants.PARAMETER, that is, "sp"). This is in fact a problem for me, as I have a servlet filter which wraps any request and puts all the query string

Tapestry and Spring Web Flow

2006-02-05 Thread Archie Cowan
I've begun evaluating Tapestry for use in some applications that will make heavy use of multipage forms. I've gotten familar with the component concepts, basic forms and validation with Enjoying Wed Development with Tapestry (Excellent tutorial btw). I've found several conversations regarding integ

Re: contrib:Table : advices requested [bug identified]

2006-02-05 Thread Martin Carel
Hi! I figured out the reason for my ArrayIndexOutOfBoundsException when clicking on the links (which are in fact DirectLink components) of the contrib:Table component, in an attempt to either paginate or sort a column. In my application I have a servlet filter which filters all incoming requ

Re: Date Picker

2006-02-05 Thread Kent Tong
Inbaraj byteconsulting.co.in> writes: > If i use the date picker and scroll down the image comes down > throught the screen and can i not change the format as > dd//mm// Try: -- Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT) ---

Re: Localization best practice

2006-02-05 Thread Ron Piterman
we use also property files for that, only they are out ot the tapestry cycle, and are used by a layer between the business layer and tapestry - this layer delivers (among others) models and names for localizeable domain objects. It seemed to us that this might be the better way to go also becaus

ANN: FCKeditor TextArea component for Tapestry 4

2006-02-05 Thread Shing Hing Man
Dear all, I have applied the FCKeditor to the Tapestry TextArea component to enable the content of the TextArea editable using FCKeditor. It is not perfect. At the moment, for simplicity sake, all the upload functions in FCKeditor are disabled. Also the spell check is not working. The sou