Re: T5:hibernate @Length validator doesn't work

2009-10-02 Thread Valentin Yerastov
Try this project http://code.google.com/p/tapestry-validator/ cleverpig-2 wrote: > > hi,all! > > i got a trouble in hibernate @Length validator with Tapestry 5.1. > i think it's a easy-meet problem for newbie(it's me). > > @Entity > @Table(name="hello") > public class Hello implements Serial

Re: IE8 Compatibility Quick Fix

2009-06-24 Thread Valentin Yerastov
Hello, I use for this servlet filter. public class IE8CompatibleFilter implements Filter { @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { if (res

Re: T5.1: parent/children Spring non singleton beans integration

2009-05-18 Thread Valentin Yerastov
Hello! I've found following workaround: use external spring context like in T5.0. I add in web.xml tapestry.use-external-spring-context true In beans I use it like: If you want request scope in spring: org.springframework.web.context.request.RequestContextListener Define in applicatio

Re: actionlink ajax double request

2009-05-14 Thread Valentin Yerastov
Sorry, I forgot Tapestry version: 5.1.0.5 Browser: Firefox Valentin Yerastov wrote: > > Hello users and developers! > > I have template: > > ${value} > UPDATE > > And page class: > > @Persist > private int value; > > @InjectComponent(&qu

actionlink ajax double request

2009-05-14 Thread Valentin Yerastov
Hello users and developers! I have template: ${value} UPDATE And page class: @Persist private int value; @InjectComponent("output") private Zone output; @Inject private Request request; public Object onActionFromUpdate() { value++; if (request.isXHR()) {

Re: Re[2]: Zone and loop problem

2009-05-14 Thread Valentin Yerastov
Thanks to all! It`s work! Inge Solvoll wrote: > > This is possible, isn't it? > > > > @InjectComponent > private Zone myZone; > > public String getCurrentZoneId() { > return "somethingUnique"; > } > > myZone will be treated like a normal component id by tapestry, and makes > it > possibl

Re: Zone and loop problem

2009-05-13 Thread Valentin Yerastov
How can I generate dynamic ID for zone? Can I use something like: ${comment.rating} And if I do it, how can I inject it into my page? Yury Luneff-2 wrote: > > i guess you should make different id's for all the zones you create > dynamically. > >> Hello, > >> This is my simple example c