Re: servlet and portlet in the same time?

2007-04-04 Thread Scott O'Bryan
LOL. Jörn Zaefferer wrote: I just hope that it won't take IBM updating to JSR 286 as long as it takes them to update to Java 5.

Re: servlet and portlet in the same time?

2007-04-04 Thread Jörn Zaefferer
I just hope that it won't take IBM updating to JSR 286 as long as it takes them to update to Java 5.

Re: servlet and portlet in the same time?

2007-04-04 Thread Scott O'Bryan
LOL. It's an excellent concept in theory, but it really exposes loopholes in the JSR-168 specification. :) I guess the lesson is that if you can code to a "known" portal implementation, then you can do some cool things.. But if you need to be portable, you're kind of screwed for many of the

Re: servlet and portlet in the same time?

2007-04-04 Thread Jörn Zaefferer
Good points Scott. I haven't worked or even seen a portlet container that uses different portlet namespaces and IDs, nor did I worked with WSRP. I still don't quite get what the point of WSRP is anyway...

Re: servlet and portlet in the same time?

2007-04-04 Thread Scott O'Bryan
That will work with MOST implementations, but not all of them. In JSR-168, portlet session attributes are prefixed with a standard prefix and the PORTLET ID (not namespace). In most portals, the PortletId and the Namespace are the same thing, but this is NOT enforced by the spec and there is

Re: servlet and portlet in the same time?

2007-04-04 Thread Jörn Zaefferer
It is possible to access a portlet session from a servlet in the same webapp. You need to pass the portlet namespace in the request to the servlet, and use that namespace to find the portlet session in the "global" session, which is nothing more then the normal http session. The JSR 168 spec defin

Re: servlet and portlet in the same time?

2007-04-04 Thread Scott O'Bryan
That's true, but a resource request can deliver the PDF content if you need. It will not be easy, however, to make the PDF content show up INSIDE the portlet, but you could spawn an additional window or tab... Scott Olivier Ziller wrote: hello, yes it's what i do actually but it's not so

Re: servlet and portlet in the same time?

2007-04-04 Thread Scott O'Bryan
And Olivier, you'll have to be a bit careful. You will not necessarily have access to the same view-state OR component tree. Furthermore, by default in JSF, session-scoped beans are stored on the portlet-scoped session context rather then the global-scoped session context which is what you ge

RE: servlet and portlet in the same time?

2007-04-04 Thread Nebinger, David
4 AM > To: MyFaces Discussion > Subject: Re: servlet and portlet in the same time? > > hello, > > yes it's what i do actually but it's not so easy (for me) to > switch to portlets ;-) because portlets can only deliver html > fragments > > regards > &g

Re: servlet and portlet in the same time?

2007-04-03 Thread Olivier Ziller
hello, yes it's what i do actually but it's not so easy (for me) to switch to portlets ;-) because portlets can only deliver html fragments regards Mike Kienenberger a écrit : The JSF PDF download wiki example doesn't work for you? I know you'd need to convert it over to Portlets from Http,

Re: servlet and portlet in the same time?

2007-04-03 Thread Olivier Ziller
Simon, didn't find this one and i will try this thanks Simon Kitching a écrit : Olivier Ziller wrote: hello, i need my jsf based portlet to generate dynamic pdf content and it seems that i need a servlet to do this. i was wondering if it possible to have my servlet share the same facesco

Re: servlet and portlet in the same time?

2007-04-03 Thread Olivier Ziller
hello, Nebinger, David a écrit : is it possible to have both a jsf portlet and a jsf servlet running in the same time in a web application? and sharing the same facescontext? I doubt it. The faces context is based upon the incoming request information, etc. But the two i

Re: servlet and portlet in the same time?

2007-04-03 Thread Mike Kienenberger
The JSF PDF download wiki example doesn't work for you? I know you'd need to convert it over to Portlets from Http, but that seems pretty easy to do. http://wiki.apache.org/myfaces/Sending_Files On 4/3/07, Olivier Ziller <[EMAIL PROTECTED]> wrote: hello, i need my jsf based portlet to gener

RE: servlet and portlet in the same time?

2007-04-03 Thread Nebinger, David
understand why beans in one servlet would not be visible within another servlet. From: Olivier Ziller [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 4:49 PM To: MyFaces Discussion Subject: Re: servlet and portlet in the same

Re: servlet and portlet in the same time?

2007-04-03 Thread Simon Kitching
Olivier Ziller wrote: hello, i need my jsf based portlet to generate dynamic pdf content and it seems that i need a servlet to do this. i was wondering if it possible to have my servlet share the same facescontext than my portlet? in order to do this i have imagined to create a jsf servlet t

Re: servlet and portlet in the same time?

2007-04-03 Thread Olivier Ziller
hello, Nebinger, David a écrit : is it possible to have both a jsf portlet and a jsf servlet running in the same time in a web application? and sharing the same facescontext? I doubt it. The faces context is based upon the incoming request information, etc. But the two i

RE: servlet and portlet in the same time?

2007-04-03 Thread Nebinger, David
> is it possible to have both a jsf portlet and a jsf servlet > running in the same time in a web application? and sharing > the same facescontext? I doubt it. The faces context is based upon the incoming request information, etc. But the two incoming paths (portlet and servlet) take different

servlet and portlet in the same time?

2007-04-03 Thread Olivier Ziller
hello, i need my jsf based portlet to generate dynamic pdf content and it seems that i need a servlet to do this. i was wondering if it possible to have my servlet share the same facescontext than my portlet? in order to do this i have imagined to create a jsf servlet that would handle all *