Re: tapestry-test question

2013-02-19 Thread Rural Hunter
Thanks Taha. I was using SeleniumTestCase. After investigation, I found the Tomcat6Runner doesn't support jsp. it doesn't include the wrapper for jsp servlet nor the mapping for *.jsp. I created a new runner based on it and now it's working. 于 2013/2/20 0:36, Taha Siddiqi 写道: Hi You should

Re: 3 days of ValueEncoder-ing, no coercion found

2013-02-19 Thread mvchris
Thanks for the pointers Taha - interesting that those ValueEncoders have slightly different behaviours depending Let me get some traces with a smaller sample project to try and help my cause. It's my first tapestry project in nearly a year! -- View this message in context: http://tapestry.104

Re: 3 days of ValueEncoder-ing, no coercion found

2013-02-19 Thread Chris Mylonas
Excuse me, the contribute method in the previous email was not the one used for coercion errors. It should have looked like this public static void contributeValueEncoderSource( MappedConfiguration, ValueEncoderFactory> configuration) { configuration.addInstance(LibraryEv

Re: 3 days of ValueEncoder-ing, no coercion found

2013-02-19 Thread Taha Siddiqi
Hi Chris You have not shared the trace so I can't help you much but there are certain things I thought might help in general. Contributing a ValueEncoder to a ValueEncoderSource only helps in components which use the ComponentDefaultProvider#defaultValueEncoder e.g. Select, Palette etc. For a

3 days of ValueEncoder-ing, no coercion found

2013-02-19 Thread Chris Mylonas
Hi Tapestry List, long time no hear... How do you make tapestry spit out what encoder/coercions are supported. My encoder doesn't seem to be getting registered I am writing an app and have had to use a ValueEncoder. I don't know where I am going wrong, I've written them before...and for the pas

Re: getting tapestry out there

2013-02-19 Thread Bob Harner
By the way, there is now an article in Tapestry's documentation that attempts to make it easier for JSF-experienced developers to learn Tapestry: http://tapestry.apache.org/tapestry-for-jsf-users.html Tapestry really is easy for people with JSF experience to learn. In my experience most such

RE: css layout problems, strange runtime behavior - help

2013-02-19 Thread Ken in Nashua
Ok I checked out and built kawwa in my own environment. Now when I run the webapp... the head image with the funny beard and curly Q hair is located closer to the bow tie as it sits next to the tab control. I didnt ask for that though and dont know why its showing up on the app in the first

Re: How to command the child component?

2013-02-19 Thread bigcache1
Thanks a lot, I forgot this move, with addRender. And I'm using composition, not inheritance. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-command-the-child-component-tp5720074p5720104.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: SinglePage app design thoughts

2013-02-19 Thread bigcache1
Great! I would use clean uploader, without 'Tapestry5-jQuery' integration. To the present moment all JS components are very custom, so it is overkill to use tapestry5-jquery. Although, I'm relying on the jQuery itself heavily. -- View this message in context: http://tapestry.1045711.n5.nabble.c

RE: css layout problems, strange runtime behavior - help

2013-02-19 Thread Ken in Nashua
Well upon dismantling the tapestry5 webapp... the corruption went away when I removed kawwa from the code and pom.xml Manu ? Can you respond to this ? What should be my course of action now? I would like to employ your widget toolkit but I cant. My environment is dumped 2 messages back but not

Re: tapestry-test question

2013-02-19 Thread Taha Siddiqi
Hi You should be able to use SeleniumTestCase for testing jsp. If it is not working I would look into the jetty configuration for jsp e.g. http://wiki.eclipse.org/Jetty/Howto/Configure_JSP For configuring JNDI in jetty, you have to use the jetty.xml under the /WEB-INF/web directory. http://wi

tapestry-test question

2013-02-19 Thread Rural Hunter
Hi, Does the |SeleniumTestCase support to test jsp? I just created a testng suite and when I tried to test a jsp, the test class just got the jsp source not the generated/compiled html file. I used tomcat6 as the test servlet container because we use tomcat in both dev/prod environment and je

Re: How to inject hibernate session into my Servlet

2013-02-19 Thread Taha Siddiqi
Hi You have two options. 1. Convert your servlet into a tapestry page. HttpServletRequestFilter might be of some help. 2. Access the registry through ServletContext using context.getAttribute(TapestryFilter.REGISTRY_CONTEXT_NAME) and then call Registry#getService(Session.class) regards Taha

Re: How to inject hibernate session into my Servlet

2013-02-19 Thread Thiago H de Paula Figueiredo
On Tue, 19 Feb 2013 10:32:38 -0300, dinesh707 wrote: I have a HttpServlet inside tapestry project. Why? But I think it is not recognized as a part of IoC. You're right. Only stuff declared as services in Tapestry IoC are recognized by IoC. So when I do an inject it does not work. It

How to inject hibernate session into my Servlet

2013-02-19 Thread dinesh707
I have a HttpServlet inside tapestry project. But I think it is not recognized as a part of IoC. So when I do an inject it does not work. It ends up throwing a null pointer exception. Any suggestion about how to inject the same hibernate session. Thank you -- View this message in context: ht

Re: how to send a row information in ajaxformloop

2013-02-19 Thread Taha Siddiqi
You can use the popular ZoneUpdater http://tinybits.blogspot.in/2010/03/new-and-better-zoneupdater.html as shown http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/onevent regards Taha On Feb 19, 2013, at 3:05 PM, bhorvat wrote: > Hm...I like the approach but I am not sure how ea

Re: PersistenceConstants.FLASH

2013-02-19 Thread Taha Siddiqi
All the fields marked with @Persist(PersistenceConstants.FLASH) are cleared. (Internally these fields are cleared as soon as the value is read from the session) regards Taha On Feb 19, 2013, at 2:49 PM, John wrote: > Initially there will be no session, then after the first submit there will

Re: how to send a row information in ajaxformloop

2013-02-19 Thread bhorvat
Hm...I like the approach but I am not sure how easy that is? I tried to override it but the component select doesnt expose anything to the mixin. Everything is either default, protected or private. I guess another idea would be to extend the select component with the suggested behaviour. However

Re: PersistenceConstants.FLASH

2013-02-19 Thread John
Initially there will be no session, then after the first submit there will be an empty session. Geoff So flash items are cleared from the session after a form submit? Are all items cleared or just the ones in the form? John

Re: how to send a row information in ajaxformloop

2013-02-19 Thread Ivan Khalopik
As far as i understood you can't do this with common tapestry select component. It has no context for VALUE_CHANGED event except selected value. But you can try to implement your own logic. Just copy logic responsible for VALUE_CHANGED event from tapestry select component to mixin and add context t