Re: Pallete component behavior

2008-05-14 Thread Imants Firsts
If you use svn version of the tapestry you can patch the Palette.tml temporarily by adding type="button" to button elements until the FF is fixed. Quoting Massimo Lusetti <[EMAIL PROTECTED]>: > On Tue, May 13, 2008 at 9:01 PM, Sven Homburg > <[EMAIL PROTECTED]> wrote: > > > sorry for my less det

Re: T5 hidden field

2008-05-14 Thread Filip S. Adamsen
I'd really like to have this too. -Filip On 2008-05-14 16:40, Toby Hobson wrote: Is there a reason why there is no component to render a hidden field? Thanks Toby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Tapestry 5 Validators causing stack overflow error at Internet Explorer

2008-05-14 Thread Howard Lewis Ship
I'm seeing the same problem, and am looking into it. On Wed, May 14, 2008 at 4:31 AM, Harish Kudriyal <[EMAIL PROTECTED]> wrote: > > Hi, > >I am facing stack overflow error at Internet Explorer due to tapestry > validatores. I am using component to display/input different > property/fields of

Re: best practice

2008-05-14 Thread Josh Canfield
> onActivate (this.entity is not null) > @OnEvent(component = "parameterEditor") void doDeleteParameter(long id); > the list element removed but the entity not persisted. > onActivate (this.entity is null and re-readed from database) > > are there any suggestions to prevent the re-reading of the en

Re: Index page and trailing slash

2008-05-14 Thread Josh Canfield
On Wed, May 14, 2008 at 2:29 PM, Mark Horn <[EMAIL PROTECTED]> wrote: > I'm using the standard Tapestry css sheet, and I confirmed the URLS by > looking @ apache's log Ah, I just reproduced it. Tapestry is generating a relative url when the url ends with a slash. If there isn't a JIRA issue file

Re: Index page and trailing slash

2008-05-14 Thread Mark Horn
You get the same effect if you test in jetty and go to http://localhost:8080/context/somefolder/ where the folder has an Index page/class. On Wed, May 14, 2008 at 5:29 PM, Mark Horn <[EMAIL PROTECTED]> wrote: > I'm using the standard Tapestry css sheet, and I confirmed the URLS by > looking @ apac

best practice

2008-05-14 Thread Sven Homburg
hi there, situation: 1. i have an edit page for an entity "Report" 2. if the page activated, the method onActivate public void onActivate(long primaryKey) { this.primaryKey = primaryKey; if (this.entity == null) { if (this.primaryKey == 0)

Re: Question of form zone

2008-05-14 Thread amebaliu
Hi, Josh, Thanks for your help, the browser I am using is ff3. I will try the way you suggested. thanks a lot. joshcanfield wrote: > > I would guess that you are not getting the AJAX handler invoked and it's > rendering the whole page, in which case returning the block would be > innapprpriate

Re: Index page and trailing slash

2008-05-14 Thread Mark Horn
I'm using the standard Tapestry css sheet, and I confirmed the URLS by looking @ apache's log On Wed, May 14, 2008 at 4:36 PM, Josh Canfield <[EMAIL PROTECTED]> wrote: > This is usually because your image src urls are relative. How are you > getting the url? > > > On Wed, May 14, 2008 at 1:08 PM

Re: Index page and trailing slash

2008-05-14 Thread Josh Canfield
This is usually because your image src urls are relative. How are you getting the url? On Wed, May 14, 2008 at 1:08 PM, Mark Horn <[EMAIL PROTECTED]> wrote: > Can someone please help me out, probable some simple thing I missed > but I just can't see it. I added Index pages to my application (gre

Index page and trailing slash

2008-05-14 Thread Mark Horn
Can someone please help me out, probable some simple thing I missed but I just can't see it. I added Index pages to my application (great addition to 5.0.11) but now I'm running into a problem. Apache (proxing to web app) is adding a trailing slash onto the url ie. http://host/context/products/ i

Re-render Form while user enters data

2008-05-14 Thread Peer Brink
5.0.12-SNAPSHOT Hello everybody, I'm trying to react on user-input to a form by changing parts of that form (showing / hiding / enabling / disabling form-components). This should happen while the user enters data to the same form and not after submit! I found quite a few conversations regarding

Re: T5: select + enum

2008-05-14 Thread Leon Derks
Okay I will try that. Toby Hobson wrote: You might want to look at Java's EnumSet.range() method for this. Toby - Original Message From: Leon Derks <[EMAIL PROTECTED]> To: Tapestry users Sent: Wednesday, 14 May, 2008 4:33:58 PM Subject: T5: select + enum Hello, Is it possible to s

Re: Event bubbling

2008-05-14 Thread Josh Canfield
I need two terms here and I don't know what they are, so I'll make something up and then someone can correct me. Owning Container: The component that owns the template that your component is referenced from. (eg Your Page) Render Container: The component that wraps your component in the Owning C

Re: Question of form zone

2008-05-14 Thread Josh Canfield
I would guess that you are not getting the AJAX handler invoked and it's rendering the whole page, in which case returning the block would be innapprpriate. What browser are you using? Try injecting the Request object and testing isXHR(). Josh On Wed, May 14, 2008 at 3:50 AM, amebaliu <[EMAIL PR

Re: T5: select + enum

2008-05-14 Thread Toby Hobson
You might want to look at Java's EnumSet.range() method for this. Toby - Original Message From: Leon Derks <[EMAIL PROTECTED]> To: Tapestry users Sent: Wednesday, 14 May, 2008 4:33:58 PM Subject: T5: select + enum Hello, Is it possible to show a limited list of my enum values in the s

T5: select + enum

2008-05-14 Thread Leon Derks
Hello, Is it possible to show a limited list of my enum values in the select box? For example, my enum contains 10 objects, is it possible to show only 5 of them in the select? Leon - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: T5 hidden field

2008-05-14 Thread Massimo Lusetti
On Wed, May 14, 2008 at 4:40 PM, Toby Hobson <[EMAIL PROTECTED]> wrote: > Is there a reason why there is no component to render a hidden field? I think cause it's just too easy to make it... or just use expansions. Cheers -- Massimo http://meridio.blogspot.com -

Re: T5: JSONArray + fillling

2008-05-14 Thread Lance Java
JSONArray options = new JSONArray(); for(Group group : List groups) { JSONObject obj = new JSONObject(); obj.put(group.getId, group.getName()); options.put(obj); } Cheers, Lance. 2008/5/14 Leon Derks <[EMAIL PROTECTED]>: > Can you give me an example of that? > > Leon > > > Lance Java wr

T5 hidden field

2008-05-14 Thread Toby Hobson
Is there a reason why there is no component to render a hidden field? Thanks Toby

Re: T5: JSONArray + fillling

2008-05-14 Thread Leon Derks
Can you give me an example of that? Leon Lance Java wrote: You want a JSONObject not a JSONArray http://tapestry.formos.com/nightly/tapestry5/apidocs/index.html Cheers, Lance. 2008/5/14 Leon Derks <[EMAIL PROTECTED]>: Hello I found this example: new JSONArray("[['a', 'value a'], ['b',

Re: T5: JSONArray + fillling

2008-05-14 Thread Lance Java
You want a JSONObject not a JSONArray http://tapestry.formos.com/nightly/tapestry5/apidocs/index.html Cheers, Lance. 2008/5/14 Leon Derks <[EMAIL PROTECTED]>: > Hello > > I found this example: > > new JSONArray("[['a', 'value a'], ['b', 'value b'], ['c', 'value c'], ['d', > 'value d']]")); > > T

Re: Event bubbling

2008-05-14 Thread Toby Hobson
I've now managed to trigger an event in my component and handle it in the enclosing page but is there a way to make the event "bubble" up the component tree so that if a page doesn't handle the event, Border.java will. Basicall I'm looking for the event to behave like a RuntimeException - it wil

Event bubbling

2008-05-14 Thread Toby Hobson
Hi Guys, I would like to define an area at the top of my border.tml to show messages which may be "flashed" to the user. Ideally pages and nested components will be able to set the message that will be displayed here. I was thinking of allowing pages and components to fire a custom event, which

T5: JSONArray + fillling

2008-05-14 Thread Leon Derks
Hello I found this example: new JSONArray("[['a', 'value a'], ['b', 'value b'], ['c', 'value c'], ['d', 'value d']]")); The JSONArray contains information for my select box, with a value - label pair. But in my case, I want to make a new JSONArray filled with properties from my List of Gr

Tapestry 5 Validators causing stack overflow error at Internet Explorer

2008-05-14 Thread Harish Kudriyal
Hi, I am facing stack overflow error at Internet Explorer due to tapestry validatores. I am using component to display/input different property/fields of the object and use tapestry validator's for required, numeric input fields. When I click on any input textfield within the loop, enter the

Question of form zone

2008-05-14 Thread amebaliu
Hi, I think I really confused this time. I searched some post about the form zone and just try to test it. My tml code is below: Content before update today's task ${task}

T5 - How to get Servlet context init params

2008-05-14 Thread kranga
There are several references to using ApplicationDefaults, SymbolProvider etc. in past emails but nothing concrete. Is there any way of getting a handle to the ServletContextSymbolProvider in a page or AppModule? - To unsubsc

Re: Question about property annoation

2008-05-14 Thread jakob . keres
> > @Property > private String message; <--- does anybody know the reason y i can > not > include the @Property ? > I can find @Inject and all other annoations.. but not this one.. I had the same issue until I updated the mvn repository. Somehow old version or something like that. J

RE: T5: Calling method with parameter in prop

2008-05-14 Thread Blower, Andy
I think, in hindsight, maybe 'forcing' was the wrong word! Maybe 'encouraged' is more apt since it's so easy to add an OGNL mapping? I just think it's best if this is not part of T5 out of the box. > -Original Message- > From: Toby Hobson [mailto:[EMAIL PROTECTED] > Sent: 13 May 2008 18:

Question about property annoation

2008-05-14 Thread amebaliu
@Property private String message; <--- does anybody know the reason y i can not include the @Property ? I can find @Inject and all other annoations.. but not this one.. -- View this message in context: http://www.nabble.com/Question-about-property-annoation-tp17226891p17226891.html S

Re: Pallete component behavior

2008-05-14 Thread Massimo Lusetti
On Tue, May 13, 2008 at 9:01 PM, Sven Homburg <[EMAIL PROTECTED]> wrote: > sorry for my less detailed question. > > i tested it now with IE6/FF2 too, only the FF3beta5 has this behaivor Yep the same is happening here, it seems like a FF3beta5 issue. -- Massimo http://meridio.blogspot.com

Re: What ist the advantage of ActionLink compared to EventLink

2008-05-14 Thread Massimo Lusetti
On Tue, May 13, 2008 at 7:26 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > EventLink URL's need to explicitly identify the event name in the URL, > i.e., "/page:myevent". ActionLink's need to identify the component > instead: "/page.mycomponent". Which is better? I'm not sure. /page.my

Re: T5: Calling method with parameter in prop

2008-05-14 Thread Chris Lewis
tapestry5-components provides an ognl binding like it worked in t4. See http://code.google.com/p/tapestry5-components/ and http://87.193.218.134:8080/t5components/t5c-commons/howto_ognlbinding.html chris Szemere Szemere wrote: > I agree with the sentiments above - the framework should provide

T4.1.5 and OC4J: Missing classpath resource '/dojo-0.4.3-custom-4.1.5/'.

2008-05-14 Thread Jan Vissers
Hi, We're trying to migrate an 4.1.2 app to 4.1.5, but are running into an issue. It seems the exception page isn't properly initialized. Can anybody shed some light on this? 08/05/14 10:52:29 org.apache.hivemind.ApplicationRuntimeException: Missing classpath resource '/dojo-0.4.3-custom-4.1.5

Re: T5: Calling method with parameter in prop

2008-05-14 Thread Szemere Szemere
I agree with the sentiments above - the framework should provide basic services and give others the ability to extend it. However I think there is a lot of value in making it easy for folks to use popular bindings. I for one, am not a big fan of having to incorporate additional code into my project

focusElement not working with AjaxEventSubmit

2008-05-14 Thread zaxeer
Hi All, I am facing a problem about i searched a lot but no success, i have some AjaxEventSubmits for some html elements in a ajax form i am setting focus Element same for ajax event submit but its not working. here is some part of my code. if some one can tell me i will be thankful.