RE: problem with page service incoder

2006-07-25 Thread xVik
yes i have this mapping. I should correct myself: naked html means without css, but correctly rendered by tapestry my thoughts: css path in border component is relative to server root and i think browser tryes to find css file wich in domain/css/css.css in domain/subfolder/css/css.css i dont k

Re: Decimal rounding problems when working with currency.

2006-07-25 Thread Yves Sy
Any plans from the Tapestry team to include this ( http://issues.apache.org/jira/browse/TAPESTRY-817) in the core tapestry codebase? I'd say its a pretty basic requirement and I'm actually surprised it isn't part of Tapestry yet. Regards, -Yves- On 9/2/05, Paul Ferraro <[EMAIL PROTECTED]> wrote

Form and Select

2006-07-25 Thread Blackwings
Hi, It should be a simple problem but I tried to solve it without success. So, mainly, I have javabean used to fill and store a form. The form consist on 2 Select box and 3 String fields. Home.html Why do I need to create an object to store the current valu

Switch between components

2006-07-25 Thread Kosarev A.V.
Hi all! What best way for switching between components? I next way can could use? Client.page: ... ... ... ... Client.html: ... ... Client.java:

Context path

2006-07-25 Thread Rodnei Couto
Hi list, I'm creating a service. I need to know the context path to get an image used in my service. How can I discover this? Thanks, Rodnei Couto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: Context path

2006-07-25 Thread Blackwings
From the Tapestry main Servlet (ApplicationServlet or directly from GenricServlet) you can call getServletContext().getRealPath("/"); 2006/7/25, Rodnei Couto <[EMAIL PROTECTED]>: Hi list, I'm creating a service. I need to know the context path to get an image used in my service. How can I dis

Re: Context path

2006-07-25 Thread Shing Hing Man
You can inject javax.servlet.ServletContext into your serivce (I presume you meant a Tapestry service). The use servletContext.getRealPath("/") to retrieve the context path. A how-to on injecting javax.servlet.ServletContext into a tapestry service is at http://lombok.demon.co.uk/tapestry4Demo

Re: Component events

2006-07-25 Thread Rui Pacheco
Didn't work. I placed an err.println there and it never showed up on the logs. I need a place to put my database calls, so I can populate the components I'm placing on the template. On 7/25/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: prepareForRender ? http://tapestry.apache.org/tapestry4.1/

Context path

2006-07-25 Thread Rodnei Couto
Hi list, I'm creating a service. I need to know the context path to get an image used in my service. How can I discover this? Thanks, Rodnei Couto - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: Component events

2006-07-25 Thread Rui Pacheco
It works with finishLoad(). I see my err.println on the logs, but the template isn't rendered. On 7/25/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: Didn't work. I placed an err.println there and it never showed up on the logs. I need a place to put my database calls, so I can populate the compo

IllegalStateException when trying to render a component

2006-07-25 Thread Rui Pacheco
Hi all While trying to render my component, I decided to implement renderComponent, handle my businness logic, and then call super.renderComponent(). This works when I do simple err.println to the logs, but when I try to update a component on my template, I get an IllegalStateException which, ac

Re: Context path

2006-07-25 Thread Rodnei Couto
Thanks.. Work fine... []'s Rondnei Couto Shing Hing Man escreveu: You can inject javax.servlet.ServletContext into your serivce (I presume you meant a Tapestry service). The use servletContext.getRealPath("/") to retrieve the context path. A how-to on injecting javax.servlet.ServletContext

Re: IllegalStateException when trying to render a component

2006-07-25 Thread Pablo Ruggia
I don't think that render component is the best place to change property's. Can't you implement PageRenderListener and change your properties there ? On 7/25/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: Hi all While trying to render my component, I decided to implement renderComponent, handle my

Re: IllegalStateException when trying to render a component

2006-07-25 Thread Rui Pacheco
I replaced it withn prepareForRender as Jesse sugested. It didn't work for me the first time because I was passing the wrong parameters to the function and so changing its signature. But I got it running, now. On 7/25/06, Pablo Ruggia <[EMAIL PROTECTED]> wrote: I don't think that render compon

Re: Switch between components

2006-07-25 Thread Rodnei Couto
Hi, If you are making something like tabs, you can use divs and javascript look this site. You have just copy the javascript code: http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm thanks, Rodnei Couto Kosarev A.V. escreveu: Hi all! What best way for switching between components? I

Re: Component events

2006-07-25 Thread Rodnei Couto
You can use pageBeginRender with components too... work fine.. Thanks, Rodnei Couto Rui Pacheco escreveu: Hi all One quick question, as the API got me a bit confused: which event is equivalent to pageBeginRender for a component that extends BaseComponent? --

Objects looped in For stored in page source?

2006-07-25 Thread Malin Ljungh
Hi all, I've been using Tapestry for weeks and today I for the first time did a "View page source" in my browser... and I was a little surprised. In one of my pages I'm looping a Set using a For component to display some entities in a table. The entities are model objects which I get from databas

RE: tapestry-examples-4.0 is not working

2006-07-25 Thread Sharan, Manish
-Original Message- From: Sharan, Manish Sent: Tuesday, July 25, 2006 4:37 PM To: '[EMAIL PROTECTED]' Subject: tapestry-examples-4.0 is not working Hi I am looking to use Tapestry; I downloaded the example application "tapestry-examples-4.0.tar.gz" from the http://howardlewisship.com/

Hivemind problem?

2006-07-25 Thread Leo Sakhvoruk
Hi, I'm running into the following problem: I have two pages each displaying a list of records, each record has a link which when clicked will display it in detail after retrieving the information from the database. One of the pages has the method for retrieving the record in the page class i

Re: Editing properties files on the fly

2006-07-25 Thread Peter Dawn
sorry, am unable to follow it. can you provide a link or some code for better understanding. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Portlet Tapestry: using @Persist with a ValidationDelegate vs. using an ApplicationStateObject

2006-07-25 Thread Epstein, Ezra
Doing some validation on a portlet. Got it working using the recommended approach described on http://tapestry.apache.org/tapestry4/tapestry-portlet/coding-issues.html#Loss+of+Transient+State I'd like to try doing it where the ValidationDelegate is stored in the session for a specific page (po

Re: Explicitly setting the locale

2006-07-25 Thread Peter Dawn
guys, have been trying to implement this. but what should i put in my page file and can somebody provide the code for getLocale() to complete it. thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Localization again

2006-07-25 Thread Peter Dawn
hi guys, i have generated various properties files for various languages. now what i want to do is provide a link on a page, which says change to this language, which onclick obtains the corresponding text from properties files and re-renders the application using the new text without having to re

Re: Switch between components

2006-07-25 Thread Jesse Kuhnert
I think Block/RenderBlock are what people normally use for things like this. If you are doing tabs as previously mentioned you should check out the tassle project for tap3 or tacos for tap4. (Though from reading things you might actually be doing a wizard). On 7/25/06, Kosarev A.V. <[EMAIL PROTE

Re: Objects looped in For stored in page source?

2006-07-25 Thread Jesse Kuhnert
Use the "keyProvider" parameter. It will do wonders for your client persisted form properties :) On 7/25/06, Malin Ljungh <[EMAIL PROTECTED]> wrote: Hi all, I've been using Tapestry for weeks and today I for the first time did a "View page source" in my browser... and I was a little surprised.

Re: Portlet Tapestry: using @Persist with a ValidationDelegate vs. using an ApplicationStateObject

2006-07-25 Thread Jesse Kuhnert
I don't think @Persist and @InitialValue can currently be used together. It's on my "list" of things to look at but I haven't found time to dig deeper into it yet. If you aren't against "alpha" software I can probably get a fix out soon-ish, if there is a fix to be had. (maybe tomorrow I'll take

Re: Explicitly setting the locale

2006-07-25 Thread Jesse Kuhnert
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-examples/Workbench/src/context/WEB-INF/localization/Localization.page?view=markup On 7/25/06, Peter Dawn <[EMAIL PROTECTED]> wrote: guys, have been trying to implement this. but what should i put in my page file and can somebody pro

Re: Localization again

2006-07-25 Thread Jesse Kuhnert
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-examples/Workbench/src/context/WEB-INF/localization/Localization.page?view=markup The workbench has an example of allowing users to change locales. On 7/25/06, Peter Dawn <[EMAIL PROTECTED]> wrote: hi guys, i have generated various

Re: Localization again

2006-07-25 Thread Peter Dawn
yes but am not sure if its using properties file implementation or something else. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reference a button value

2006-07-25 Thread Peter Dawn
guys, how can i reference a button content into a properties file. i mean if i have something like how can i insert the content of this button within a properties file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Localization again

2006-07-25 Thread Jesse Kuhnert
The properties files come bundled with tapestry. You shouldn't need to worry about them. The workbench just sets the locale for tapestry "in general". The only way to clear up uncertainty is trying it. On 7/25/06, Peter Dawn <[EMAIL PROTECTED]> wrote: yes but am not sure if its using propertie

How to debug dojo in tapestry 4.1?

2006-07-25 Thread Jun Tsai
hi,all I hadn't did a cancel listener in a form.I want to debug js.But I coudn't find a way to debug? PS: page: html: When I click the button ,it will call doSaveEntityAction method. Thanks. -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.net

Re: How to debug dojo in tapestry 4.1?

2006-07-25 Thread Jesse Kuhnert
I may have lead you astray in the other thread. tapestry.form.submit(form, ) won't cause a specific listener type to be called, you have to use: tapestry.form.cancel(form) OR tapestry.form.refresh(form) On 7/25/06, Jun Tsai <[EMAIL PROTECTED]> wrote: hi,all I hadn't did a cancel listener in

RE: problem with page service incoder

2006-07-25 Thread Firas Adiler
Oh, I see... I'm using a border component too. The css files it uses are placed in the "root context folder" (i.e the folder containing 'WEB-INF' folder) like this: rootFolder/ |__ cssfiles/ | |_ style1.css | |__ WEB-INF/

krysalis menu help

2006-07-25 Thread Peter Dawn
guys, i have been playing with the krysalis menu, and i have run into this problem. my site is using frames, and the drop down menu does not display over the next frame if its long enough, it gets chopped off at the end of the frame. has anybody else encountered this problem and am i doing somethi

Tapestry - Cayenne Tutorials

2006-07-25 Thread Sukma Agung Verdianto
Hi, Does anybody have tapestry-cayenne tutorials? rdgs, Sukma Agung V. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]