Re: Page isn't rendered after redirect from onActivate

2011-09-26 Thread albaeck
Hi again, more details below...

I suppose that all comuniucation within JS-Handler-redirect is done via
https. So, page (Par1Page, I'm going to redirect to) is marked as @Secure.
Handler is also marked. Interesting things are:
1. Redirect works as expected when handler is invoked through a browser
(htts://localhost:8443/myPostHandler)!
2. After redirect, Par1Page's onActivate (as well as component's
renderSetup()) are invoked only if I use https accessing site. But page
isn't rendered. 




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Page-isn-t-rendered-after-redirect-from-onActivate-tp4839753p4840910.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



two object beaneditform

2011-09-26 Thread csckid
If I have two tables, can't I use beaneditform? In that case what should be
the way to take input of two model class?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/two-object-beaneditform-tp4841107p4841107.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Page isn't rendered after redirect from onActivate

2011-09-26 Thread Geoff Callender
Does it work if you use http, not https, and without @Secure? 
Are you going through Apache to get to your web server? 
What web server are you using?

On 26/09/2011, at 8:38 PM, albaeck wrote:

 Hi again, more details below...
 
 I suppose that all comuniucation within JS-Handler-redirect is done via
 https. So, page (Par1Page, I'm going to redirect to) is marked as @Secure.
 Handler is also marked. Interesting things are:
 1. Redirect works as expected when handler is invoked through a browser
 (htts://localhost:8443/myPostHandler)!
 2. After redirect, Par1Page's onActivate (as well as component's
 renderSetup()) are invoked only if I use https accessing site. But page
 isn't rendered. 
 
 
 
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Page-isn-t-rendered-after-redirect-from-onActivate-tp4839753p4840910.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Page isn't rendered after redirect from onActivate

2011-09-26 Thread albaeck
Thanks for reply! 
If I'm under http (not https and having @Secure removed) setupRender() of
all page components are invoked. No exceptions. Page is not rendered though.

I use tomcat-6.0.33, no ballancer, etc. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Page-isn-t-rendered-after-redirect-from-onActivate-tp4839753p4841178.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5.2 and CXF / SOAP

2011-09-26 Thread Ulrich Stärk
I have.

On 24.09.2011 00:27, Norman Franke wrote:
 So, since CXF appears to be way, way better documented, I'll ask. Has anyone 
 integrated Tapestry
 5's IoC with CXF?

 Norman Franke
 Answering Service for Directors, Inc.
 www.myasd.com



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Missing cookie when calling URL outside browser

2011-09-26 Thread MP3HiFi
Thanks Tahe,

that post/trick have solved my problem.

I created a dynamic JavaScript 

void setupRender() {
StringBuffer sb = new StringBuffer();   
sb.append(window.location =\+getRedirect()+\ ;);  
javaScriptSupport.addScript(sb.toString()); 
}

and it works without any problems.


Regards
Martin





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Missing-cookie-when-calling-URL-outside-browser-tp4833233p4841338.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5.2 and CXF / SOAP

2011-09-26 Thread Norman Franke

Care to share?

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com



On Sep 26, 2011, at 9:20 AM, Ulrich Stärk wrote:


I have.

On 24.09.2011 00:27, Norman Franke wrote:
So, since CXF appears to be way, way better documented, I'll ask.  
Has anyone integrated Tapestry

5's IoC with CXF?

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org





Re: T5.2 and CXF / SOAP

2011-09-26 Thread Lenny Primak
I would like to see this as well, perhaps this will help with my Metro web 
services integration.
Thanks!

On Sep 26, 2011, at 11:33 AM, Norman Franke wrote:

 Care to share?
 
 Norman Franke
 Answering Service for Directors, Inc.
 www.myasd.com
 
 
 
 On Sep 26, 2011, at 9:20 AM, Ulrich Stärk wrote:
 
 I have.
 
 On 24.09.2011 00:27, Norman Franke wrote:
 So, since CXF appears to be way, way better documented, I'll ask. Has 
 anyone integrated Tapestry
 5's IoC with CXF?
 
 Norman Franke
 Answering Service for Directors, Inc.
 www.myasd.com
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5.2 and CXF / SOAP

2011-09-26 Thread Daniel Honig
Yes over the long run you will be way better served by CXF than Metro, 2 years 
ago I would have chosen Metro,
but no longer.

Shame I can't help you integrate it with Tap.
On Sep 23, 2011, at 6:27 PM, Norman Franke wrote:

 So, since CXF appears to be way, way better documented, I'll ask. Has anyone 
 integrated Tapestry 5's IoC with CXF?
 
 Norman Franke
 Answering Service for Directors, Inc.
 www.myasd.com
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: two object beaneditform

2011-09-26 Thread Thiago H. de Paula Figueiredo

On Mon, 26 Sep 2011 08:58:48 -0300, csckid testnowsh...@gmail.com wrote:

If I have two tables, can't I use beaneditform? In that case what should  
be the way to take input of two model class?


Use a Form, two BeanEditor component instances and a submit button (an  
ordinary HTML is enough).


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Error in T5.3 openJDK = java.lang.reflect.GenericSignatureFormatError

2011-09-26 Thread Ernesto Arroyo
we use 5.3.0 in the pom.xml for all tapestry artifacts

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Error-in-T5-3-openJDK-java-lang-reflect-GenericSignatureFormatError-tp4829879p4842699.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Error in T5.3 openJDK = java.lang.reflect.GenericSignatureFormatError

2011-09-26 Thread Howard Lewis Ship
That's a pretty old alpha version; I'd use 5.3-beta-10 which is
latest-and-greatest.

On Mon, Sep 26, 2011 at 12:57 PM, Ernesto Arroyo earroyo...@yahoo.es wrote:
 we use 5.3.0 in the pom.xml for all tapestry artifacts

 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Error-in-T5-3-openJDK-java-lang-reflect-GenericSignatureFormatError-tp4829879p4842699.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Textarea with character count?

2011-09-26 Thread TG
Hi,

I wonder in Tapestry world, is there such a component that while user types,
it will counts how many characters have the user typed. Alternatively, I
would like to know if there is a way to restrict the textarea to a fixed
size, say 500 characters. If exceeded, no more text will be allowed.

Any suggestion would be appreciated.

Thanks!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Textarea-with-character-count-tp4843530p4843530.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Textarea with character count?

2011-09-26 Thread Thiago H. de Paula Figueiredo

On Mon, 26 Sep 2011 21:43:38 -0300, TG tapestry...@hotmail.com wrote:


Hi,


Hi!

I wonder in Tapestry world, is there such a component that while user  
types, it will counts how many characters have the user typed.  
Alternatively, I

would like to know if there is a way to restrict the textarea to a fixed
size, say 500 characters. If exceeded, no more text will be allowed.


I guess there isn't one ready to use, but with a little bit of JavaScript  
you can easily write a mixin that does exactly that. ;)


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



how to get orioginal filename for UploadedFile

2011-09-26 Thread Ken in Nashua

Folks,

I am using this tap5 UploadedFile


trailsBlob.setContentType(file.getContentType());
trailsBlob.setFileName(file.getFileName());
trailsBlob.setFilePath(file.getFilePath());
trailsBlob.setNumBytes(new Long(file.getSize()));
trailsBlob.setBytes(data);

And I want to track what the original filename of the file was that got 
uploaded.

This is naturally forensic evidence.

trailsBlob.setFileName(file.getFileName());
trailsBlob.setFilePath(file.getFilePath());

The above two calls are returning the same thing... just the filename. I need 
filepath.

No path is found anywhere.

Does anyone know why? Does anyone know how I can obtain the original filepath ?

Best Regards and thanks
kcola...@live.com
 

  

Re: Page isn't rendered after redirect from onActivate

2011-09-26 Thread Geoff Callender
You're trying something that is outside my area and I can't test what you're 
doing but here are some thoughts that may help.

Have you put a breakpoint in onActivate, or logged it with @Log, to see confirm 
that Par1Page is being returned?

Have you checked in your browser network page that the response to 
myPostHandler is an HTTP 302 Redirect to par1Page? It should be.

Tapestry expects requests to be in certain formats. The formats are those that 
are generated by PageLink, EventLink, and Form. PageLink and EventLink use HTTP 
GET. Form uses HTTP POST. If you stray outside those then maybe you get 
undefined behaviour, but I really don't know. You can see the expected formats 
here:


http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/activationcontext1

http://jumpstart.doublenegative.com.au/jumpstart/examples/input/eventlinks/0
http://jumpstart.doublenegative.com.au/jumpstart/examples/input/forms1

You are using POST, so Tapestry is probably expecting the page to have a 
corresponding for, and the request to look the one that Form generates. See

http://jumpstart.doublenegative.com.au/jumpstart/examples/input/forms1

Do you have to use POST instead of GET? Perhaps you could use get with query 
parameters? See By Query String in


http://jumpstart.doublenegative.com.au/jumpstart/examples/state/passingdatabetweenpages

If none of this helps then can I suggest you tell us what you're trying to 
achieve and why, and post your MyPostHandler source here in entirety.

Cheers,

Geoff


On 26/09/2011, at 10:21 PM, albaeck wrote:

 Thanks for reply! 
 If I'm under http (not https and having @Secure removed) setupRender() of
 all page components are invoked. No exceptions. Page is not rendered though.
 
 I use tomcat-6.0.33, no ballancer, etc. 
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Page-isn-t-rendered-after-redirect-from-onActivate-tp4839753p4841178.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: how to get orioginal filename for UploadedFile

2011-09-26 Thread Josh Canfield
Contemporary browsers don't send the path, just the filename.

http://www.google.com/search?q=html+file+input+path

On Mon, Sep 26, 2011 at 9:10 PM, Ken in Nashua kcola...@live.com wrote:

 Folks,

 I am using this tap5 UploadedFile


                trailsBlob.setContentType(file.getContentType());
                trailsBlob.setFileName(file.getFileName());
                trailsBlob.setFilePath(file.getFilePath());
                trailsBlob.setNumBytes(new Long(file.getSize()));
                trailsBlob.setBytes(data);

 And I want to track what the original filename of the file was that got 
 uploaded.

 This is naturally forensic evidence.

                trailsBlob.setFileName(file.getFileName());
                trailsBlob.setFilePath(file.getFilePath());

 The above two calls are returning the same thing... just the filename. I need 
 filepath.

 No path is found anywhere.

 Does anyone know why? Does anyone know how I can obtain the original filepath 
 ?

 Best Regards and thanks
 kcola...@live.com




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org