RE: T3: PropertySelecton

2007-08-14 Thread Marcus.Schulte
To customize the label for your selects, you'll have to implement you own IPropertySelection or inherit from existing one and override getLabel(int). As for disabling/hiding stuff dynamically: you can set submitOnChange to true (see

Re: t4.1.2 + dojo tree component beginner question

2007-08-14 Thread mn
Ok, I used not proper word(component), it should be widget :) I will be looking for answer how to use dojo tree widget on tapestry page on dojo forum but i thought that I find out how to do it on tap forum ... So maybe someone give me example? Jessek wrote: You should try the dojo support

Re: ajax question

2007-08-14 Thread Lance
I've gotten around IE's lack of innerHTML support in tables by creating an entirely new table then ripping the row(s) out of it. table tbody id=mainTbody tr.../tr /tbody /table script var rowHtml = 'trtddata/td/tr'; var div = document.createElement('div'); div.innerHtml =

Re: T5 Type to ValueEncoderFactory

2007-08-14 Thread Nick Westgate (Work)
This error looks familiar. Can you post some source? (I can't get to it myself for a couple of days though.) Cheers, Nick. redijedi wrote: I've suddenly run into what seems to be a bug that appears when I pass an integer to a custom component that itself contains a radiogroup that uses

Re: JSON help... image scaling onRender

2007-08-14 Thread Ken nashua
Thanks Jesse, Well I was hoping to find an end to end JSON example... just snippets around... no one really has shown substantial usage of that. For my solution though... Currently this is what we got in css (the main reason why I wanted to go with JSON)... div#header { color:

Re: JSON help... image scaling onRender

2007-08-14 Thread Ken nashua
Thanks Jesse, Wanted to let you know that the scaling down fails. I went with... div#header { color: black; clear: both; padding: 0; height: 15%; width: 100%; background: #fff url( images/trails-header94.jpg ) top left no-repeat; } And the image

Re: JSON help... image scaling onRender

2007-08-14 Thread Ken nashua
Ooops... let me take that back... That was extraneous text being clipped... not the image. OK, so the actual image does scale down. I reduced my height to somethign reasonable for header and went with WIDTH=100%. I think this should get me what I want for the short run. Thanks for taking

Re: T5: a layout with varying style sheets

2007-08-14 Thread Chris Lewis
Martin, I've just looked at DocumentScriptBuilder, which seems to be a delegate of PageRenderSupport(Impl). I understand that PageRenderSupport uses a notification (cleanup i think) to know when to insert the scripts, but the way scripts are added (correct me if I'm wrong) are via explicit

Re: T5 Type to ValueEncoderFactory

2007-08-14 Thread Christian Koeberl
Tapestry just supports a ValueEncoder for String and Enum. If you want additional encoders you have to implement them yourself: class LongValueEncoder implements ValueEncoderLong { public String toClient(Long value) { return value == null ? : value.toString();

disabling ognl expression cache

2007-08-14 Thread Ken nashua
Folks, Tapestry compiles expressions with OGNL before using them (and caches the compiled expressions). Is there a way to turn off this caching? Best regards Ken in nashua _ Tease your brain--play Clink! Win cool prizes!

Re: Rounded Corners Service not working?

2007-08-14 Thread Henry Chen
Any other thoughts what I might have done wrong with this rounded corner service? Henry Chen wrote: Just tried. Not work either. Same error in Tomcat. SEVERE: Image generated had zero length byte array from parameters of: [color:FF9900, bgColor:white, width:60, height:60, angle:tr,

Re: [T5] StackMapTable format error

2007-08-14 Thread Stephan Schwab
Howard Lewis Ship wrote: I haven't tested myself under JDK 1.6. I suspect its Javassist that's having the problem. Not much we can do about that, except see if there's a newer version of it that can handle JDK 1.6 better. That seems to be a problem with a certain combination of

Re: T5 Type to ValueEncoderFactory

2007-08-14 Thread Todd Orr
Thanks for the info. I'll add that to my component. However, it seems odd that a simple conversion from Long to String isn't built in. It seems to me that such standard conversions should be part of the framework. On 8/14/07, Christian Koeberl [EMAIL PROTECTED] wrote: Tapestry just supports a

Re: [T5] StackMapTable format error

2007-08-14 Thread Siddhartha Argollo
I’m using jdk 6 u2 on windows, and I still get errors using javassist 3.4. Although I don’t know why or how, I learned how to rewrite the code to bypass them. When I switch to 3.6.0 CR1, those errors were solved, but worse ones appeared, so I decided to stay with the devil I know, and switch

You have clicked on a stale link Error

2007-08-14 Thread Ajit Raj
Hi, I got a error as following after I tried to relog in to the application -- it happens when I cliecked a Submit button on one of the page after session already timeout, and it redirect me back into the login page. You have clicked on a stale link. Rewind of form

Re: Class cast exception in ASTChain, Bug OGNL-11

2007-08-14 Thread Andrus Adamchik
Hi Jesse, I found essentially the same problem in a @For loop over a list of objects that do not implement any common interface, but (by design) have matching method names. Tapestry would try to cast to the class of the first object in the loop, instead of using a declared class of the loop

Re: You have clicked on a stale link Error

2007-08-14 Thread Daniel Jue
Ajit, You would have to actively store your trail, like breadcrumbs in a data structure that is still available even after the user has timed out. You might want to persist it to a database, instead of keeping track of it in memory. Then after login success, the login page/component would look

RE: You have clicked on a stale link Error

2007-08-14 Thread Ajit Raj
Thanks. I kind wonder why DirectLink works after user relogin -- it can go to the page the link points to. It only doesn't work with the Submit button -- is that becuase it contains some persist data that needs to be sent back to the server and server has already lost all the information for

Re: Class cast exception in ASTChain, Bug OGNL-11

2007-08-14 Thread Kalle Korhonen
On 8/14/07, Andrus Adamchik [EMAIL PROTECTED] wrote: I found essentially the same problem in a @For loop over a list of objects that do not implement any common interface, but (by design) have matching method names. Tapestry would try to cast to the class of the first object in the loop,

T5: Changing locale within OnActivate event

2007-08-14 Thread Doug Hauge
In several of our pages, the default locale we want to use for messages depends on its activation context. We tried updating the locale using 'ThreadLocale' from within the activate event handler, but it seems that this is too late, for the page has already been loaded and all messages in the

Re: T5: Changing locale within OnActivate event

2007-08-14 Thread Jesse Kuhnert
If it's anything like T4 you'll have to either do a redirect back to the same page or whatever mechanism is in place to make a page active somehow and have it do that to the same page. All the i18n stuff probably happens in the very beginning while setting up the page/components/resources so it

Re: Rounded Corners Service not working?

2007-08-14 Thread Kevin Menard
Incidentally, I just ran into this. This was after spending over an hour figuring out I needed to add tapestry-contrib to use the rounded service (someone please update the docs). I dug into it and it appears to be the PNG vs GIF logic that's failing. If I remove the background color,

Re: Rounded Corners Service not working?

2007-08-14 Thread Jesse Kuhnert
Hmm... If someone opened up a jira ticket with specific parameter examples what does/doesn't work it would probably make it easier for me to look at. As for gif vs. png - I didn't make that configurable on purpose because my overall goal was to avoid PNG whenever possible because IE hasn't

T5 Best way to alter core components?

2007-08-14 Thread Daniel Jue
I am trying to find the best approach to making changes to the existing Tapestry 5 core components. This is what I've thought of so far. Please add suggestions or correct me! Very Small Changes: Changing the look of a component: 1. Override styles with your own CSS file, no changes made to

Re: T5 Best way to alter core components?

2007-08-14 Thread Robert Zeigler
Hm... Really seems like you're trying to work swim against the current... For your example, I wouldn't forgo the bean model. I would probably create a MapBeanModel, which takes a map as an input, and implements the BeanModel interface. (An alternative might be to create a MapBeanModelSource

Re: T5: Ioc @Inject @Value

2007-08-14 Thread Jun Tsai
I have the same problem. Jun Tsai 2007/6/30, Robin Ericsson [EMAIL PROTECTED]: On 6/29/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: If i remember correctly, a value that can't be resolved should cause a runtime error; just in case, check the console. It may be that the acegi.check.url

T5 developing with WTP and TOMCAT

2007-08-14 Thread Denny
Hi, I develop with WTP and TOMCAT. If I set the tomcat don't auto-reload, tapestry5 can take the changes of html template, while it can't take the chages of page class. It make the hot code replace failed. However, If I enable tomcat auto-reload. tapestry can take both html template and page