Re: Fragments, Validation and IE

2009-07-20 Thread Sergey Didenko
Hi Geoffrey, try to disable combine-scripts and gzip-compression: -Dtapestry.combine-scripts=false -Dtapestry.gzip-compression-enabled=false for the command line. Does it change anything? - To unsubscribe, e-mail:

logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
hi i checked on tapestry and tried to use httpurlconnection to log in to the tapestry login form programmatically but it gives me errors. what is the form post url? im thinking tapestry's framework prevents it logging in via httpurlconnection. please correct me if i am wrong. and if there is

Re: logging in using java in a tapestry login form

2009-07-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Jul 2009 07:22:11 -0300, chitgoks chitg...@gmail.com escreveu: hi Hi! httpcon.setInstanceFollowRedirects(false); Try setting it to true instread of false. Tapestry uses redirect-after-post. Anyway, why are you doing this? What are you trying to accomplish? Why don't you use

Re: logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
hi, i did set it to true instead of false. and the stream's content is still the login page. im accessing some things in one of our sites that uses tapestry using java's httpurlconnection, no other 3rd party library. httpclient you mean apache's right? then using the GetMethod and PostMethod? im

Re: logging in using java in a tapestry login form

2009-07-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Jul 2009 10:22:42 -0300, chitgoks chitg...@gmail.com escreveu: hi, i did set it to true instead of false. and the stream's content is still the login page. What is shown after a form submit is defined by the page class and its event handler methods. Without its code, we cannot

Re: logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
thanks. that's ok. then i guess tapestry's framework hides it from these cases. i just dont like apache's httpclient. i used that before but i did not like it. java's own classes were and still are sufficient for my needs. cant show the code as it's a production site. head developer for sure

Re: logging in using java in a tapestry login form

2009-07-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Jul 2009 10:29:33 -0300, chitgoks chitg...@gmail.com escreveu: thanks. You're welcome! I overlooked something: Tapestry always submits forms using POST and you're using GET, so Tapestry may be ignoring the parameters. And Tapestry always adds a hidden field, t:formdata. When

Re: logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
hi thiago yes, my code is post. i set httpcon.setDoOutput(true); and i included the t:formdata parameter when submitting to the form. i do quite a lot of login simulations in sites and i have no problems when the form post url is shown. though tapestry's different since it doesnt show the form

changing grid sort constraints from event handler

2009-07-20 Thread shymon
How can I change grid sorting constraints from actionLink event handler? -- View this message in context: http://www.nabble.com/changing-grid-sort-constraints-from-event-handler-tp24570524p24570524.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: changing grid sort constraints from event handler

2009-07-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Jul 2009 11:06:46 -0300, shymon shym...@poczta.onet.pl escreveu: How can I change grid sorting constraints from actionLink event handler? Try injecting the grid instance and then calling grid.getSortModel().updateSort(propertyName). -- Thiago H. de Paula Figueiredo

Re: logging in using java in a tapestry login form

2009-07-20 Thread Thiago H. de Paula Figueiredo
Em Mon, 20 Jul 2009 10:58:14 -0300, chitgoks chitg...@gmail.com escreveu: hi thiago Hi! and i included the t:formdata parameter when submitting to the form. i do quite a lot of login simulations in sites and i have no problems when the form post url is shown. though tapestry's different

Re: logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
yeah i extracted the t:formdata from the page. Website/Java Games: http://www.chitgoks.com Java Casino Games: http://chitgoks.tripod.com Photo Gallery: http://gallery.chitgoks.com My Blogs: http://tech.chitgoks.com http://wuhtevah.chitgoks.com http://disneyusa.blogspot.com On Mon, Jul 20, 2009

Re: Is AjaxFormLoop example working for you?

2009-07-20 Thread Robert Zeigler
I get a quicktime logo, and then a blank screen. Cheers, Robert On Jul 19, 2009, at 7/195:57 AM , Sven Homburg wrote: Ok, i will try to describe it this way, pictures say more than thousand words ;-) http://www.chenillekit.org/screencast-.mpeg with regards Sven Homburg Founder of the

Activation Context of the Login page

2009-07-20 Thread Stephan Windmüller
Hello! Our web application is divided in a number of sections. Each section is based on the same code basis and the users are currently able to login with http://servername/?section=sectionname The section name is fetched from the HTTPServletRequest and stored in the ASO. But what I think would

Re: Is AjaxFormLoop example working for you?

2009-07-20 Thread Sven Homburg
Quicktime??? Ouuuch! try to view with VideoLan or MPlayer with regards Sven Homburg Founder of the Chenille Kit Project http://www.chenillekit.org 2009/7/20 Robert Zeigler robe...@scazdl.org: I get a quicktime logo, and then a blank screen. Cheers, Robert On Jul 19, 2009, at 7/195:57

Re: Is AjaxFormLoop example working for you?

2009-07-20 Thread Sven Homburg
WinAmp plays it too. with regards Sven Homburg Founder of the Chenille Kit Project http://www.chenillekit.org 2009/7/20 Sven Homburg hombu...@googlemail.com: Quicktime??? Ouuuch! try to view with VideoLan or MPlayer with regards Sven Homburg Founder of the Chenille Kit Project

Testify @ForComponent

2009-07-20 Thread Juan E. Maya
I am trying to inject a service to one component using testifiy's @ForComponent annotation and Mockito but the component doesn't get the mocked service injected. My test looks like this: private static final TapestryTester TESTER = new TapestryTester(com.rinco.security, rincoSecurity,

Re: Activation Context of the Login page

2009-07-20 Thread Peter Stavrinides
and using the Activation Context. So I tried it, but it seems that the EventContext for the login page is always empty. You should be able to get it to work, have you remembered to passivate the parameter? Is it possible to use the activation context of the login page? And if not, is there a

Re: T 5.1 Error building service proxy for service 'ServletApplicationInitializer'

2009-07-20 Thread Howard Lewis Ship
These errors are almost always caused by a left-over Tapestry 5.0.18 JAR file or dependency. Tomcat is good at hiding these where you don't expect them! On Fri, Jul 17, 2009 at 7:41 AM, Ritesh.Srites...@avibha.com wrote: Hello Everybody, I am upgrading my application from Tapestry 5.0.18 to

Using Form fragment into a tapestry Zone

2009-07-20 Thread De Saint Steban Emmanuel
Hi all, If someone could help to this issue it will be great. I want to use a form fragment into a Tapestry Zone. But when the zone is updated, the form fragment doesn't work. t:Zone t:id=myZone // here my form t:form t:Zone=myZone t:radiogroup t:id=fragmentGroupRadio

Re: Is AjaxFormLoop example working for you?

2009-07-20 Thread Robert Zeigler
MPlayer did fine. Interesting. Likewise duplicated it. But... :) Although it's possible to trigger the issue by clearing the session cookies, but it's clearly /not/ a cookie issue, per se. 1) You can duplicate it without messing with cookies at all (hit the page; wait a few minutes, then

Re: Testify @ForComponent

2009-07-20 Thread Paul Field
Hi Juan, I am trying to inject a service to one component using testifiy's @ForComponent annotation and Mockito but the component doesn't get the mocked service injected. I think you have invalidated the warranty on Testify ;-) It is important to make sure your tests are setup using the

Re: logging in using java in a tapestry login form

2009-07-20 Thread Craig St. Jean
Try using an HTTP debugger such as Fiddler2 and logging in through your browser. The tool will show you all the fields submitted, how it submitted them (i.e. POST vs GET), etc. After that, try to reproduce what your browser did in your code. Tools like that have been a lifesaver for me when

Re: Testify @ForComponent

2009-07-20 Thread Juan E. Maya
AJA! :) Thanks a lot Paul! I was using the AbstractClass but when copying the code in the email i removed it :) I thought it was not so important. Bad ME :) The problem in this case, as u pointed out, was indeed caused by the @BeforeMethod. Thanks a lot! Good point with the orchestration. Testify

Re: logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
true. i use http analyze for that. it does post it. i do get a tapestry error saying zip something invalid length code Website/Java Games: http://www.chitgoks.com Java Casino Games: http://chitgoks.tripod.com Photo Gallery: http://gallery.chitgoks.com My Blogs: http://tech.chitgoks.com

Re: logging in using java in a tapestry login form

2009-07-20 Thread chitgoks
i have never experienced this yet. do you have some sample code to give me an idea? thank youthis is the exact error message sent by the response header X-Tapestry-ErrorMessage:java.util.zip.ZipException: invalid literal/length code Website/Java Games: http://www.chitgoks.com Java Casino Games:

T5 - Configuration and .tml Files are Exposed By Tapestry.

2009-07-20 Thread Daniel Jones
Hello, OK, so here is my problem. In my page template: ${asset:context:assets/images/layout/add.png} Tapestry generated URL to asset. http://127.0.0.1:8080/assets/ctx/c69b95ec1fef872d/assets/images/layout/add.png If I point my browser at: http://127.0.0.1:8080/assets/ctx/c69b95ec1fef872d/

Re: T5 - Configuration and .tml Files are Exposed By Tapestry.

2009-07-20 Thread Howard Lewis Ship
You can mark them as protected resources that require a CRC query parameter to access. You are right, .tml files should be protected in this way, as should hibernate XML files. On Mon, Jul 20, 2009 at 6:13 PM, Daniel Jonesd...@murieston.com wrote: Hello, OK, so here is my problem. In my

Re: T5 - Configuration and .tml Files are Exposed By Tapestry.

2009-07-20 Thread Daniel Jones
Hi Howard, Thanks for the reply. How do I do that, is this tapestry specific or do I need to configure the servlet container (Jetty in my case). Regards, Daniel Howard Lewis Ship wrote: You can mark them as protected resources that require a CRC query parameter to access. You are

Re: T5 - Configuration and .tml Files are Exposed By Tapestry.

2009-07-20 Thread 王刚
You should configure the servlet container. Java Web Security is a standard part of the J2EE/JEE specification. There should be many resources on the internet on that topic. On Tue, Jul 21, 2009 at 9:30 AM, Daniel Jones d...@murieston.com wrote: Hi Howard, Thanks for the reply. How do I do

Re: t5: Using Tapestry5 with JavaFx

2009-07-20 Thread 王刚
Yes. JavaFX is a Java RIA(Rich Internet Application) solution compared with Adobe flash, and Microsoft silverlight. On Wed, Jul 15, 2009 at 9:15 AM, Howard Lewis Ship hls...@gmail.com wrote: Probably not; to Tapestry, JavaFX looks like any other applet however. On Tue, Jul 14, 2009 at 5:07

Re: T5 - Configuration and .tml Files are Exposed By Tapestry.

2009-07-20 Thread Daniel Jones
I don't understand why I should have to configure this. I have another tapestry 5.0.18 application which does not have this behaviour. I have made the following contribution public static void contributeResourceDigestGenerator(ConfigurationString configuration) {

Has AjaxFormLoop-addrow-addrowlink-parameter context value?

2009-07-20 Thread moonlee
I use AjaxFormLoop-addrow-addrowlink-parameter to dynamic add a row , I want to fill the row with some defult value which base on the link param user click. for example: tml: t:parameter name=addRow td colspan=5 style=text-align: right t:addrowlink value=1Add a row/t:addrowlink