Re: tapestry-hibernate conflicts hibernate-search

2007-11-04 Thread T. Papke
Thank you for your answer. What is the difference between tapestry-hibernate module and an per Thread session instanced by tapestry-ioc? Is there any disadvantage when switching? Could you send some code snipplets of your tapestry-ioc hibernate-session service? Is this something like the g

Re: T5.0.6 I'm lost after upgrade T5

2007-11-04 Thread Michael Bernagou
I already tried to add the setters, without success. But Itried to access Home and I got an error regarding my Logger : My Home.java public class Home { ... @Inject private Logger logger; String refreshList() { try { logger.debug("Processiong refreshList..."); users = app

Re: T5.0.6 I'm lost after upgrade T5

2007-11-04 Thread Michael Bernagou
Ok, I got it It was not the right import ;o) I used this : import org.apache.log4j.Logger; instead of import org.slf4j.Logger; Thanks :) 2007/11/4, Michael Bernagou <[EMAIL PROTECTED]>: > > I already tried to add the setters, without success. But Itried to access > Home and I got an error reg

Re: Initialize objects - like in HttpServlet's init()

2007-11-04 Thread Filip S. Adamsen
llonely skrev: Hi all, Hi, I am new on Tapestry and try to become familiar with it, mostly through this forum and the official site. I am trying to migrate a simple servlet into tapestry. While this is a logical approach to trying out something new, Tapestry generally works better if you

Re: binding id to a property (not a liteal)

2007-11-04 Thread Filip S. Adamsen
Hi, Try . You can then refer to the component through its "tapestry-id" and get its "client-id" through getClientId(). : ) -Filip Marc A. Donis skrev: Thanks, but when I put: in the template, the generated html then looks like this: Again, I can't seem to prevent it from interpreting

Re: [T5.06] component action context does not support utf8!

2007-11-04 Thread Filip S. Adamsen
Hi Donyee, Have a look at this, it *might* help: http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding -Filip Donyee skrev: I use the actionLink, and the context contains utf8 string, and the onUpdate(string str)... the str is ???, encoding wrong! ---

Re: [T5.06] component action context does not support utf8!

2007-11-04 Thread Donyee
I got the answer from the sources, because the ComponentActionDispatcher.java decode the url with a default charset which doesn't support utf-8! I'm now trying to create a new dispatcher to solve this question. 2007/11/4, Filip S. Adamsen <[EMAIL PROTECTED]>: > > Hi Donyee, > > Have a look at this

Re: [T5.06] component action context does not support utf8!

2007-11-04 Thread Filip S. Adamsen
That's odd, to me it looks like the default charset is the one from org.apache.commons.codec.net.URLCodec - and that one uses UTF-8... -Filip Donyee skrev: > I got the answer from the sources, because the > ComponentActionDispatcher.java > decode the url with a default charset which doesn't suppo

T5: component with template

2007-11-04 Thread Angelo Chen
Hi, It is said that component can have a template, and I understand the layout type component has a template, I'm now looking for a simple/basic component with template but not the layout type, something that can be included in a page like: is there any? A.C. -- View this message in context:

typo in the documentation

2007-11-04 Thread Michael Courcy
Hi I think there's a small typo in the documentation in http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html In the section : Injecting dependencies == For example, let's say the Indexer needs a JobScheduler to control when it executes, a

Re: Initialize objects - like in HttpServlet's init()

2007-11-04 Thread thanos
Thanks guys! Will go through the services documentation BR Thanos Filip S. Adamsen-2 wrote: > > llonely skrev: >> Hi all, >> > > Hi, > >> I am new on Tapestry and try to become familiar with it, mostly through >> this >> forum and the official site. I am trying to migrate a simple servlet in

T5.0.6: validaiton on select

2007-11-04 Thread Marc A. Donis
Hi again, I'm having a problem getting the select component to validate. I do: where model is defined by: SelectModel model = new SelectModelImpl(new LinkedList(), new LinkedList()); model.getOptions().add(new OptionModelImpl(NO_VALUE_STR, false, null)); model.getOptions().add(new O

Newbie: Help me on using Select Component

2007-11-04 Thread Eko S.W.
Dear Community, I am not able to use Select Component And I am not succeed on following Select in Tap Wiki, such as in http://wiki.apache.org/tapestry/Tapestry5SelectObject?highlight=%28select%29 That is the closest tutorial, but I am not suceed on it The problem is, the Select in HTML doesn't sh

Re: T5: A component returning StreamResponse?

2007-11-04 Thread Britske
Not sure if you solved this already, but anyway: Regarding the exception you got: Borut Bolčina-2 wrote: > > then I get Exception: > Component ui/dialog/JQModalAjax does not contain an embedded component > with > id 'wizardStep1'. > > which is true, as I don't have WizardStep1 in my ui/dial

Re: T5 how to control login state

2007-11-04 Thread lyifan
Thanks a lot everyone. Finally the BasePase way works But the dispatcher way still doesn't work. lyifan wrote: > > I am a 100% new user for tapestry. Currently I'm working on 5.0.5, but I > got stuck from the just beginning. > > I want to implement a kind of user access controller. All the p

Re: T5.0.6 : How to format a number in a TextField

2007-11-04 Thread Shing Hing Man
I have extended DoubleTranslator.java and override the method DoubleTranslator.toClient to format the output. public class MyDoubleTranslator extends DoubleTranslator{ @Override public String toClient(Double value) { String returnValue = null;

After upgrade to T4.1.3: clientValidationEnabled together with PropertySelection does not work any more

2007-11-04 Thread spot_
Hi after upgrading my webapp from Tapestry 4.1.2 to 4.1.3 form components with clientValidationEnabled attribute set to true, that contain PropertySelection input fields (StringPropertySelectionModel (first array entry is an emtpy String: "")) with validators set to 'required' do not work any mo

NPE loading default.css?

2007-11-04 Thread Chris Campbell
Hi, new to Tapesty 5 here, using 5.0.6 I am setting up a simple webapp along the lines of the tutorial. Running in tomcat, I get the following error. The strange thing is that the tutorial itself runs fine in the same environment. It seems that the TapestryModule cannot find a default asset ? I ca

Re: NPE loading default.css?

2007-11-04 Thread Chris Campbell
Never mind, I found that my AppModule was failing. Chris Campbell wrote: > Hi, new to Tapesty 5 here, using 5.0.6 > > I am setting up a simple webapp along the lines of the tutorial. > Running in tomcat, I get the following error. The strange thing is > that the tutorial itself runs fine in the s

T5: Property binding

2007-11-04 Thread Christoph Jaeger
Hi, Tapestry seems to only accept properties with getXxx() and setXxx() accessor methods, or isXxx() for boolean values. This is ok when using your own bean classes, but I just tried to output the number of entries in a java.util.List using ${list.size} in my .tml file (with a "public List getLi

Re: T5: Property binding

2007-11-04 Thread Michael Courcy
did you try ${list.size()} ? Christoph Jaeger a écrit : Hi, Tapestry seems to only accept properties with getXxx() and setXxx() accessor methods, or isXxx() for boolean values. This is ok when using your own bean classes, but I just tried to output the number of entries in a java.util.List usin

Re: T5: Property binding

2007-11-04 Thread Christoph Jaeger
I knew there had to be an easy solution :) Thanks, works great. Christoph Michael Courcy wrote: > did you try ${list.size()} ? > > Christoph Jaeger a écrit : >> Hi, >> >> Tapestry seems to only accept properties with getXxx() and setXxx() >> accessor methods, or isXxx() for boolean values. This

How to contribute a new Request Handler

2007-11-04 Thread Michael Courcy
Hi I'm really new to tapestry, and I was trying to contribute a new request Handler So I follow the documentation and the example provided by the archetype first I provide a builder for my RequestHandlerService : public RequestFilter buildMichaelFilter(final Logger log){ return new R

Re: Newbie: Help me on using Select Component

2007-11-04 Thread Angelo Chen
Hi Eko, try this: http://ac960.blogspot.com/2007/10/tapestry-5-using-select-component.html that's where I keep my note about how to use Select in T5. A.C. Eko S.W. wrote: > > Dear Community, > > I am not able to use Select Component > And I am not succeed on following Select in Tap Wiki, >

beaneditforms and email address

2007-11-04 Thread Michael Shoemaker
So I'm an expert Tapestry developer. Okay, I've been using it for a few weeks part time on a side project :) I'm loving the beaneditform but wonder why obvious validations like alpha, numeric and email were not included. I realize that regular expressions can be used but then you would du

T5: disable javascript

2007-11-04 Thread Angelo Chen
Hi, Is there a way to disable or exclude those default javascripts(that's around 200k in size)? I notice if there is form in a page T5 will include some javascript files. I disable the browser's javascript and the page still works with those validations done in the server, that means we don't rea

Re: T5: disable javascript

2007-11-04 Thread Angelo Chen
found a workaround on this, surround the with T5 will not include javascript in the rendered page, but not sure if this works with 5.06. Angelo Chen wrote: > > Hi, > > Is there a way to disable or exclude those default javascripts(that's > around 200k in size)? I notice if there is for

Tapestry 4.1.3 and hibernate integration

2007-11-04 Thread trainee24
Hi, I am new to tapestry. I would like to ask is it possible for me to integrate hibernate in Tapestry 4.1.3? Can you please provide me some hints on how to start it. Any help given will be greatly appreciated. Thanks in advance. Regards, trainee24 -- View this message in context: http://www.

Re: T5: disable javascript

2007-11-04 Thread Kristian Marinkovic
hi angelo, you reached a point where you have to digg a little deeper :) in order to achieve what you want you'll have to provide your own DocumentScriptBuilder ( 5.0.5) or DocumentHeadBuilder (>= 5.0.6) please checkout the source and search for the class you'll see it is not that complicated