Re: EventListener on components within a @For loop

2006-10-27 Thread Patrick Moore
What I am hoping to do is something like this: and code like this: public void makeLink() { IEventListener listener = getFoo().getEventListener("onclick"); listener.setEventHandler("bar"); listener.setParameters(new Object[]{ getCurrent().getEntityId()}); }

problem injecting service

2006-10-27 Thread Warner Onstine
Hi all, I'm having some difficulties injecting a service, when I reference the service through a @ServiceLink I get this exception: org.apache.hivemind.ApplicationRuntimeException No engine service named '' is available. Stack Trace: * org.apache.tapestry.services.impl.ServiceMapImpl.build

Re: Encoding of properties files

2006-10-27 Thread Malin Ljungh
I had it working earlier on another server (which I don't have access to anymore) so I shouldn't need to manipulate the files. I thought it would be something with the Tomcat config maybe? I use Tapestry 4. On 10/27/06, andyhot <[EMAIL PROTECTED]> wrote: Konstantin Ignatyev wrote: > property

Re: Encoding of properties files

2006-10-27 Thread andyhot
Konstantin Ignatyev wrote: > property files need to be encoded to ascii with > native2ascii > http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/native2ascii.html > They normally have to ( i use a property editor plugin that does this on the fly ), but tapestry can determine the correct encod

Re: Encoding of properties files

2006-10-27 Thread Konstantin Ignatyev
property files need to be encoded to ascii with native2ascii http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/native2ascii.html --- Malin Ljungh <[EMAIL PROTECTED]> wrote: > Home_sv.properties has the special characters. > > And I use Tomcat. > > > On 10/27/06, andyhot <[EMAIL PROTECTED]>

Re: Encoding of properties files

2006-10-27 Thread Malin Ljungh
Home_sv.properties has the special characters. And I use Tomcat. On 10/27/06, andyhot <[EMAIL PROTECTED]> wrote: Assuming you're working on Home.html, which file contains your swedish characters? Malin Ljungh wrote: > Guys, I really need your help tonight. > I've been struggeling for days a

Re: @InjectObject... (provider selector 'persons' is not properly formatted. )

2006-10-27 Thread Ken nashua
@InjectState("persons") fixed it. gettin there _ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_a

Re: Encoding of properties files

2006-10-27 Thread andyhot
Assuming you're working on Home.html, which file contains your swedish characters? Malin Ljungh wrote: > Guys, I really need your help tonight. > I've been struggeling for days and I can't solve this. > > This is the thing: > I have swedish characters in my properties files (localized app). I > c

Re: @InjectObject... (provider selector 'persons' is not properly formatted. )

2006-10-27 Thread andyhot
Here are the docs http://tapestry.apache.org/tapestry4/tapestry-annotations/index.html#InjectState Ken nashua wrote: > Can anyone elaborate on the magic it takes just to get this service > into my java code? > > I am on tapestry-4.0.2 (cannot goto 4.1.1 for auto-wire (which would > be the way)) >

dojoPath and dojoSource options...

2006-10-27 Thread Josh Long
latest maven 4.11 snapshot/ linux or windows / etc im having a problem, a confusion, with the dojoPath and dojoSource options of the Shell component: // the assets as defined in my jwc I have a Border component with the following assets defined, and of course my @Shell compionent has dojoS

@InjectObject... (provider selector 'persons' is not properly formatted. )

2006-10-27 Thread Ken nashua
Can anyone elaborate on the magic it takes just to get this service into my java code? I am on tapestry-4.0.2 (cannot goto 4.1.1 for auto-wire (which would be the way)) I tried changing the case upper and lower to no avail rebooting the app server each try. Thanks for your help. Here is t

Encoding of properties files

2006-10-27 Thread Malin Ljungh
Guys, I really need your help tonight. I've been struggeling for days and I can't solve this. This is the thing: I have swedish characters in my properties files (localized app). I can not get these to be displayed correctly :[ If I put the special characters directly in the html it works fine.

Re: Tacos Tapestry compatibility ques.

2006-10-27 Thread Ken nashua
Short answer is no. Contending duplicated jars Ok, back to 4.0.2 javax.servlet.ServletException: Unable to initialize application servlet: Error: Module tapestry.contrib is duplicated! Definition in jar:file:/C:/Tomcat-5.5.17/work/Catalina/localhost/tap.proto-1.0/WEB-INF/lib/tapestry-contrib-

Tacos Tapestry compatibility ques.

2006-10-27 Thread Ken nashua
Sorry about cross-post... this one applies to both I have a webapp built against tapestry-4.1.1 In my pom.xml I have net.sf.tacos tacos-core 4.0.1-SNAPSHOT compile So, I would like to use the latest SVN tacos-4.0 which is built against tapestry-4.0.2 What conflicts wil

Re: 4.1 script include problem via ajax

2006-10-27 Thread Norbert Sándor
Thanks for the info. I've voted for it (before Puff Daddy shoots me :) ) Regards, Norbi andyhot írta: It's supposed to work... Tapestry will add this javascript in the response: tapestry.loadScriptFromUrl(...) But there was this issue: http://tacoscomponents.jot.com/BugReporter/Bug127 and the

webRequest of RequestGlobals is null Errors

2006-10-27 Thread splounx
I'm encountering a rather frustrating series of errors caused by the webRequest property of the RequestGlobals object being null. In particular, the error messages look like this: java.lang.NullPointerException: Property 'webRequest' of is null I understand that the webRequest is not populated

Re: 4.1 script include problem via ajax

2006-10-27 Thread Norbert Sándor
I found the correct "tapestry.loadScriptFromUrl()" at the end of the AJAX response, which may mean that it is executed only after the other scripts (from the .script file's part). Regards, Norbi andyhot írta: It's supposed to work... Tapestry will add this javascript in the response: tapestr

Re: TACOS DEMO getServletContext().getRealPath("/") returns NULL ?

2006-10-27 Thread Ken nashua
Sorry about cross-post... This one was unpackWARS="false" Turned out to be tomcat host attribute unpackWARS inside conf/server.xml I set it to true, and the context unpacked and the servlet could then operate log4j.xml from within the physical unpacked context ___

Re: @EventListener issue with submitForm and Upload component

2006-10-27 Thread Peter Beshai
https://issues.apache.org/jira/browse/TAPESTRY-1128 Peter Beshai From: "Jesse Kuhnert" <[EMAIL PROTECTED]> Reply-To: "Tapestry users" To: "Tapestry users" Subject: Re: @EventListener issue with submitForm and Upload component Date: Fri, 27 Oct 2006 11:54:04 -0400 It's possible. Don't know i

Re: ITemplateSourceDelegate

2006-10-27 Thread Pablo Ruggia
Thank you very much, you save me many hours of work. I've modified your class so it try to find templates in the packages you define in "org.apache.tapestry.page-class-packages" configuration, and look it into classpath, so it has not have to be only in WEB-INF/classes. Here is the code and the hi

Re: Upload file size limit in 4.0.2

2006-10-27 Thread Jesse Kuhnert
Yeah...The "bug" was in the documentation, which has since been fixed. http://tapestry.apache.org/tapestry4.1/components/form/upload.html On 10/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Trying using this class in your service-id instead: -Original Message- From: Christ

Re: [Tacos-devel] Library 'tacos' not found in application namespace

2006-10-27 Thread Ken nashua
Sorry about the cross post... wanted to put this one to bed. It turned out to be my web.xml I was specifying tap.proto-1.0 as opposed to tap.proto Versioning should be associated with deployment and not necessarily name spaces and such inside web.xml Now I have a stackoverflow exception... y

Re: How to custom the script event.

2006-10-27 Thread Jesse Kuhnert
You can override portions of org.apache.tapestry.services.impl.DefaultResponseBuilder to bind window loading things they way you want. Really the window loading stuff happens with dojo.addOnLoad() in the current repo though. On 10/26/06, Jun Tsai <[EMAIL PROTECTED]> wrote: I find tapestry prod

Re: EventListener on components within a @For loop

2006-10-27 Thread Jesse Kuhnert
I'm not sure I understand what you mean. What model do you think would feel more natural? On 10/25/06, Patrick Moore <[EMAIL PROTECTED]> wrote: Is there any more on this? I am just now starting to explore the EventListener model. I must admit I find it a little odd that I can't wire things up

Re: @EventListener issue with submitForm and Upload component

2006-10-27 Thread Jesse Kuhnert
It's possible. Don't know if I tested that particular component. Can you create a JIRA issue? On 10/25/06, Peter Beshai <[EMAIL PROTECTED]> wrote: Is it intended that if there is an Upload component in the form that is attached to an EventListener (via setting submitForm="myform"), the EventLis

Re: TACOS DEMO getServletContext().getRealPath("/") returns NULL ?

2006-10-27 Thread Konstantin Ignatyev
Place all the resources into classpath and it shall work. It means that log4j.properties should be in WEB-INF/classes and it will be picked up autoamagically. If yu need something then this.getClass().getClassloader().getResource* --- Ken nashua <[EMAIL PROTECTED]> wrote: > Hi Folks, > > I tho

getRowCount() of IBasicTableModel run 4 times????

2006-10-27 Thread Huang Gehua
This is my code: === public IBasicTableModel getAllPerson()throws CnbrnException{ return new IBasicTableModel(){ public int getRowCount(){ return getRelationshipService().getFriendsCount(

Re: TACOS DEMO getServletContext().getRealPath("/") returns NULL ?

2006-10-27 Thread Ken nashua
Thanks James, Yes, I am using WAR file for my web app. I am using tomcat-5.5.17 I would shudder to think that I need to configure tomcat somehow with a URL specific or app specific context... I like things to be generic. Any feedback on a solution would be great. thanks ___

Re: 4.1 script include problem via ajax

2006-10-27 Thread andyhot
It's supposed to work... Tapestry will add this javascript in the response: tapestry.loadScriptFromUrl(...) But there was this issue: http://tacoscomponents.jot.com/BugReporter/Bug127 and the fix http://fisheye3.cenqua.com/browse/tacos/tacos-4.0/trunk/tacos-core/src/java/net/sf/tacos/ajax/componen

Any tapestry 4.x training course in the UK.

2006-10-27 Thread Jabbar
Hello, Are there any tapestry 4.x training courses in the U.K. I have a couple of colleagues who might be interested in attending them. I'm too busy to teach them! -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROT

4.1 script include problem via ajax

2006-10-27 Thread Norbert Sándor
Hello, I have a component which includes a script in renderComponent() using pageRenderSupport.addExternalScript(this, getScriptAsset().getResourceLocation()); It works fine when used without ajax, a

Re: Call listener after page appears on screen

2006-10-27 Thread Peter Beshai
I had tried, but it seemed like tacos wouldn't work with Tapestry 4.1.1. I kept getting errors about things in hivemind being duplicated and it was just giving me a headache. So I'm going to create a wrapper for the new dojo progress bar, which should do the trick :-) Peter Beshai From: <[E

Re: TACOS DEMO getServletContext().getRealPath("/") returns NULL ?

2006-10-27 Thread James Carman
Is your webapp deployed in a .war file? What application server are you using? On 10/27/06, andyhot <[EMAIL PROTECTED]> wrote: Dear ken, please do not cross-post. I just got this email 3 times... And i can't even find what the question is... Cause it's sure that your getServletContext().getRe

Re: TACOS DEMO getServletContext().getRealPath("/") returns NULL ?

2006-10-27 Thread andyhot
Dear ken, please do not cross-post. I just got this email 3 times... And i can't even find what the question is... Cause it's sure that your getServletContext().getRealPath("/") indeed returns null. Looks like a servlet context issue (configuration perhaps) to me... Ken nashua wrote: > Hi Folks

TACOS DEMO getServletContext().getRealPath("/") returns NULL ?

2006-10-27 Thread Ken nashua
Hi Folks, I thought it proper to integrate ConfigurationServlet to my webapp just like the tacosdemo does.. just to initialize log4j web.xml below... --->HERE IS THE OUTPUT FROM TOMCAT CONSOLE: java.io.FileNotFoundException: null\WEB-INF\log4j.properties (The system cannot find the path spe

TACOS DEMO getServletContext().getRealPath("/") returns NULL ?

2006-10-27 Thread Ken nashua
Hi Folks, I thought it proper to integrate ConfigurationServlet to my webapp just like the tacosdemo does.. just to initialize log4j web.xml below... --->HERE IS THE OUTPUT FROM TOMCAT CONSOLE: java.io.FileNotFoundException: null\WEB-INF\log4j.properties (The system cannot find the path spe

Re: Call listener after page appears on screen

2006-10-27 Thread Christian Dutaret
On some pages with a lot of EventListeners, I also see this " tapestry.cleanConnect is not a function" every now and then. When this occurs, all the ajax stuff on the page won't work, since the connect events are never executed. The problem only shows with Firefox, never with IE. After I disabled

Re: Call listener after page appears on screen

2006-10-27 Thread gant
Why don't you use tacos:ProgressBar. It is easy to use. - Original Message - From: "Peter Beshai" <[EMAIL PROTECTED]> To: Sent: Friday, October 27, 2006 3:47 AM Subject: Re: Call listener after page appears on screen The XTile seems to work exactly how I want it to, but there is a p

RE: ITemplateSourceDelegate

2006-10-27 Thread spamsucks
> Has someone a working example of an ITemplateSourceDelegate > or or a PageSpecificationResolverImpl ? I can't find any. > I only want to have a .class for each page and in the same > package the html template. All .page configuration will be > set using annotations. > Thanks !! > Here is ISp