T5: Yet another relative path question

2010-01-10 Thread paha
Hello, sorry for my newbie question and poor english, but i was unable to find an answer neither in tutorials nor in this maillist. i want my tapestry filter to process all request going to let's say http://www.someurl.com/myapp/... (to let requests going to root be processed by some other serv

Re: T5: Yet another relative path question

2010-01-10 Thread paha
Thiago H. de Paula Figueiredo wrote: > > Tapestry is a servlet filter, not a servlet, so it can be used with > servlets without interfering with them. > ok, but it doesn't change the fact that if it is run not under host/... but under host/myapp/... all urls are still translated to absolute

Re: T5: Yet another relative path question

2010-01-11 Thread paha
Thiago H. de Paula Figueiredo wrote: > > As far as I know, Tapestry only works if you set its URL to /* in web.xml. > well it does work under myapp/* , but page links are still mapped to root :( . not big deal. thanks anyway -- View this message in context: http://old.nabble.com/T5%3A-Yet-ano

T5.1 Setters returning value

2010-04-21 Thread paha
Is there any reason to ignore setters, returning an object itself in beaneditor & co? I used to write classes, which can be created with chain of setter calls e.g. someObject.setSomeValue(value).setAnotherValue(value) the problem is, tapestry considers such "properties" read-only. Is it possible

Re: T5.1 Setters returning value

2010-04-22 Thread paha
Howard Lewis Ship wrote: > > Tapestry follows the definition of JavaBeans properties, set by Sun > Well, Spring3 BeanUtils.getPropertyDescriptors(User.class) returns all property descriptions with setters even if they are not void. Now i have to either give up using setter chaining which is ve

Re: T5.1 Setters returning value

2010-04-22 Thread paha
Howard Lewis Ship wrote: > > Tapestry uses the standard Introspector object to identify > properties. > Can you give me a hint, how i can change this? It is a PropertyAccessImpl class, that is doing the magic, isn't? Is it possible to replace this class via config? Or is it the only way - t

Re: T5.1 Setters returning value

2010-04-22 Thread paha
Solved the problem with one very very nasty hack, but if somebody interested: i commented the ioc binding for PropertyAccess implementation in org.apache.tapestry5.ioc.services.TapestryIOCModule // binder.bind(PropertyAccess.class, PropertyAccessImpl.class); then i introduced an own implementat

Re: T5.1 Setters returning value

2010-04-22 Thread paha
Inge Solvoll-2 wrote: > > Sounds like you did a ServiceOverride without actually realizing it > yourself > :) > well i was pretty sure i'm reinventing some wheels :) . of course i wanted > to do a service override as soon as i realized that PropertyAccess is > introduced via ioc Inge Solvoll

Re: T5.1 Setters returning value

2010-04-22 Thread paha
well, the solution is almost perfect now. "almost" - because i have to completely duplicate the code of PropertyAccessImpl replacing 2 calls to Introspector.getBeanInfo buried inside private methods :) here is a service override and final class public static void contributeServiceOverride(Mapped

[T5] onActivate, onPassivate and actionlink

2010-04-30 Thread paha
Hi, i am very new to tapestry and must be missing some important concept, need you help. i have a page (list of products), and one integer parameter (category), passed to it via onActivate. void onActivate(Integer param) { this.param = param } Object onPassivate() { return param; } This p

Re: [T5] onActivate, onPassivate and actionlink

2010-04-30 Thread paha
it was a terrible typo from me. misspelled t:context :( -- View this message in context: http://old.nabble.com/Re%3A--T5--onActivate%2C-onPassivate-and-actionlink-tp28410121p28411519.html Sent from the Tapestry - User mailing list archive at Nabble.com.

[T5.1] select with required validation

2010-05-05 Thread paha
Hi, it must be again some misunderstanding from my side. I have a form and select in OnSubmit i see that all other field values of the form (and also some selects but with Enum as Model) get applied to company object except for this select. AS SOON AS i remove validate="required" it's get appl

Re: [T5.1] select with required validation

2010-05-05 Thread paha
Pablo dos Reis wrote: > > Try verify if the 'user' is null in the toClient method . > no, it is not null. as i said, the properly selected value gets never submitted or doesn't survive validation (don't know what is really going on and in which order) - but encoder gets correct value and return

Re: [T5.1] select with required validation

2010-05-05 Thread paha
Thiago H. de Paula Figueiredo wrote: > > Tapestry form field components don't update the edited property when a > validation error ocurrs > thank you, you gave me some idea and i found a reason. my User class overrides toString returning name+surname. when the valueencoder runs toObject metho

Re: [T5.1] select with required validation

2010-05-05 Thread paha
Thiago H. de Paula Figueiredo wrote: > > You should provide your own ValueEncoder that doesn't rely on toString(). > well if you've read my first post, you could see that my ValueEncoder doesn't rely on toString(). It is rather Tapestry Validator, that runs toString on User object and assumes

Re: [T5.1] select with required validation

2010-05-06 Thread paha
Thank you all for your answers. the User object is valid, because everything i need when submitting the form is userID to save the data. that is why i'm setting selected id to constructed object. why toString() returns "". Because it was used to display formatted output of surname and name somewhe

[T5.1] Cookies.removeCookieValue issue

2010-05-09 Thread paha
there is minor issue with current CookiesImpl.removeCookieValue implementation. > public void removeCookieValue(String name) > { > Cookie cookie = new Cookie(name, null); > cookie.setPath(request.getContextPath() + "/"); > cookie.setMaxAge(0); > cookie.setSecu

Re: T5: LinkSubmit should be generic

2010-05-21 Thread paha
there is a small compilation issue - ProcessSubmission should inherit from ComponentAction, not from ComponentAction, shouldn't it? -- View this message in context: http://old.nabble.com/T5%3A-LinkSubmit-should-be-generic-tp28630552p28631907.html Sent from the Tapestry - User mailing list arch

Rendering Chart and ImageMap on the page

2010-05-27 Thread paha
Hi, i have a question: what is the best approach to extend http://wiki.apache.org/tapestry/Tapestry5HowToCreateGenericGraphComponent GenericGraphComponent to output an image map along with the chart itself. for now i have only one idea. 1) create and process chart in beginRender to obtain CharR

Re: Rendering Chart and ImageMap on the page

2010-05-27 Thread paha
thanks, i just wanted to know if there is any better approach. for now i render the chart in beginRender and store image as Byte[] in field with FLASH Strategy. seems to work :) -- View this message in context: http://old.nabble.com/Rendering-Chart-and-ImageMap-on-the-page-tp28693905p28696838.

Re: T5: LinkSubmit should be generic

2010-05-28 Thread paha
Hi Inge, tried you code today. doesn't seem to work. maybe i'm using it incorrectly. i have following template > >t:mixins="anySubmit" t:event="selected" > t:clientEvent="change"/> > > > this part in if if (onsubmit == undefined || onsubmit.call

Re: T5: LinkSubmit should be generic

2010-05-28 Thread paha
very strange. well i never used LinkSubmit. but as i said, the code works as expected (at least from my point of view :) ) only if you change the if statement. "as is" the form never gets submitted. i know almost nothing about js, and very little about t5. perhaps my code won't work in some comple

Re: Class reloading in custom component library

2010-06-04 Thread paha
your maven integration in IDEA doesn't seem to be setup properly. there is actually an option "use maven output folder" which tells IDEA to compile classes to the same "target" folder as maven does. i do use idea with maven, component reloading works as expected without any additional work when u

Re: LinkSubmit doesn't work

2010-06-08 Thread paha
try to change onsubmit.call(window.document, event) to onsubmit.call(window.document, event) == undefined -- View this message in context: http://old.nabble.com/LinkSubmit-doesn%27t-work-tp28813499p28814310.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Testify unable to locate the @IncludeStylesheet

2010-06-09 Thread paha
Doesn't work for me either. Neither PageTester nor Testify (based on it) seem to handle asset:context: properly. I have no other explanation, why the same things work in tapestry itself and don't work in PageTester -- View this message in context: http://old.nabble.com/Testify-unable-to-locate-t