How to override the MyFaces 1.1.1 taglib listener registration?

2006-01-11 Thread David G. Friedman
In the MyFaces taglib, it has the listener declaration (which works in my 
Tomcat 5.0.28 :



org.apache.myfaces.webapp.StartupServletContextListener


Is there any way to override this other than:

a) Edit the taglib file to change it.

b) make my own 
/WEB-INF/classes/org/apache/myfaces/webapp/StartupServletContextListener.java 
file?

Regards,
David



RE: JFYI: change session to request bean - the way life

2006-01-11 Thread David G. Friedman
I was just thinking along the lines of some(?) previous poster recommending we 
(JSF Programmers) use "scope names dot
managed bean names" in our JSF/JSP files to ensure scope conflicts like this 
never happen.  Perhaps this was a good
example of that for debugging purposes. :)

Regards,
David

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 12, 2006 1:50 AM
To: MyFaces Discussion
Subject: Re: JFYI: change session to request bean - the way life


Hi David!
> So you never did a session.invalidate() or removed the object from the 
> session?  Not before your removal of the
sessions
> file?
>
No, why should I?
During development I often restart tomcat, but not more.
Once I figured out the bean is still in session scope the first idea I
had was to remove the file, sure, there are a couple of ways to remove
the object from the session.


After thinking about this topic even more, another solution could haven
been to simply restart the browser, then the session cookie will be lost
and a new session will be created.

Ciao,
Mario



Re: JFYI: change session to request bean - the way life

2006-01-11 Thread Mario Ivankovits

Hi David!

So you never did a session.invalidate() or removed the object from the session? 
 Not before your removal of the sessions
file?
  

No, why should I?
During development I often restart tomcat, but not more.
Once I figured out the bean is still in session scope the first idea I 
had was to remove the file, sure, there are a couple of ways to remove 
the object from the session.



After thinking about this topic even more, another solution could haven 
been to simply restart the browser, then the session cookie will be lost 
and a new session will be created.


Ciao,
Mario



Re: adding attributes to a row in a dataTable

2006-01-11 Thread Simon Kitching

Eric Hsieh wrote:
 Is it possible to set the onlick event of a generated  in a 
dataTable? It looks like the only thing you can set is the style class 
by using the rowClasses attribute in 


See rowOnClick attribute:
  http://myfaces.apache.org/tlddoc/tomahawk/



Re: MyFaces release procedures

2006-01-11 Thread Simon Kitching

Dennis Byrne wrote:
Well, I think the reduction in the use of "externals" in the svn 
repository may help a little; it's easier to create branches now.


But the major work is still a matter of ensuring that patches for bugs 
are applied to both a branch and the trunk, or of someone trawling 
through all patches applied to trunk and "back-porting" them to a bugfix 
branch. That's not really related to the build system at all.


Are there policies for committers on this?  There is a subtle difference between 
committing the fix and closing the issue, vs. creating a patch, attaching it to the 
issue, committing the change and then closing the issue.  The second makes it easier for 
"back-porting", which is something both MyFaces or an external organization may 
want to do.


Well, when someone commits a patch to svn which is related to a JIRA 
issue, they *should* include the jira bug number in the commit message, 
like:

  Fixed MYFACES-789 - twiddled the widget

JIRA monitors the svn commits so that going to the JIRA issue and 
selecting the "subversion commits" tab then shows which commits were 
associated with this issue. And from there it's trivial to get the patch.


Regards,

Simon


Re: MyFaces release procedures

2006-01-11 Thread Dennis Byrne
>Well, I think the reduction in the use of "externals" in the svn
>repository may help a little; it's easier to create branches now.
>
>But the major work is still a matter of ensuring that patches for bugs
>are applied to both a branch and the trunk, or of someone trawling
>through all patches applied to trunk and "back-porting" them to a bugfix
>branch. That's not really related to the build system at all.

Are there policies for committers on this?  There is a subtle difference 
between committing the fix and closing the issue, vs. creating a patch, 
attaching it to the issue, committing the change and then closing the issue.  
The second makes it easier for "back-porting", which is something both MyFaces 
or an external organization may want to do.

>And unfortunately there's just so much exciting work to be done in this 
>young project on the trunk that it's hard to work up enthusiasm for this
>kind of maintenance work.
>
>One nice think about the way JSF is designed, though, is that it's
>always possible to override the implementation of standard components
>and renderers. People can therefore fix individual components and
>renderers if necessary without having to roll their own myfaces-api.jar 
>or myfaces-impl.jar. And components/renderers is where most of the bugs are.

I agree.  And there is a decent argument that too much policy and the 
associated costs might actually be a bad thing for a young project.  Kind of 
like a young person ;)





Re: "Validation Error "_id89": Value is required" in dataTable

2006-01-11 Thread Martin Marinschek
Use the t:messages component - it will use what it finds in the
column-header instead of the id of the input-component for the
message.

regards,

Martin

On 1/12/06, Dave <[EMAIL PROTECTED]> wrote:
> I am using  inside . is there a way to override
> message?
> Validation Error "_id89": Value is required
> I did not specify id for , because it can not bind to backing
> bean and thus not meaningful.
>
>
>
>  
> Yahoo! Photos
>  Got holiday prints? See all the ways to get quality prints in your hands
> ASAP.
>
>


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


"Validation Error "_id89": Value is required" in dataTable

2006-01-11 Thread Dave
I am using  inside . is there a way to override message?      Validation Error "_id89": Value is required  I did not specify id for , because it can not bind to backing bean and thus not meaningful.       
	
		Yahoo! Photos 
Got holiday prints? See all the ways to get quality prints in your hands ASAP.

adding attributes to a row in a dataTable

2006-01-11 Thread Eric Hsieh
 Is it possible to set the onlick event of a  generated  in a dataTable? It looks like the only thing you  can set is the style class by using the rowClasses attribute in
		Yahoo! Photos – Showcase holiday pictures in hardcover 
Photo Books. You design it and we’ll bind it!

MyFaces release procedures

2006-01-11 Thread Simon Kitching

Dennis Byrne wrote:
So far, MyFaces hasn't released any "bugfix" releases, and I don't 
expect to see one this cycle either; it just releases the next major 
release and expects people to upgrade.


Hopefully bugfix releases will become part of MyFaces procedures in the 
future.


This would certainly help it get through configuration management at more conservative/large enterprises. 
>Unfortunately, this is something you don't just put a patch in the 
JIRA for.


Will the move to Maven help this situation (better control over the build process) or not 
improve it (fewer people have knowledge of maven than ant).



Well, I think the reduction in the use of "externals" in the svn 
repository may help a little; it's easier to create branches now.


But the major work is still a matter of ensuring that patches for bugs 
are applied to both a branch and the trunk, or of someone trawling 
through all patches applied to trunk and "back-porting" them to a bugfix 
branch. That's not really related to the build system at all.


And unfortunately there's just so much exciting work to be done in this 
young project on the trunk that it's hard to work up enthusiasm for this 
kind of maintenance work.


One nice think about the way JSF is designed, though, is that it's 
always possible to override the implementation of standard components 
and renderers. People can therefore fix individual components and 
renderers if necessary without having to roll their own myfaces-api.jar 
or myfaces-impl.jar. And components/renderers is where most of the bugs are.


Cheers,

Simon


Re: Urgent: Collapsible Panel with data table not working IllegalStateException: Client-id : _id3ToggleCollapsed

2006-01-11 Thread Dennis Byrne
>So far, MyFaces hasn't released any "bugfix" releases, and I don't 
>expect to see one this cycle either; it just releases the next major 
>release and expects people to upgrade.
>
>Hopefully bugfix releases will become part of MyFaces procedures in the 
>future.

This would certainly help it get through configuration management at more 
conservative/large enterprises.  Unfortunately, this is something you don't 
just put a patch in the JIRA for.

Will the move to Maven help this situation (better control over the build 
process) or not improve it (fewer people have knowledge of maven than ant).

This is not a complaint.

Dennis Byrne




Re: Urgent: Collapsible Panel with data table not working IllegalStateException: Client-id : _id3ToggleCollapsed

2006-01-11 Thread Simon Kitching

Saurabh Rasinghaney wrote:

Thanks for your replies Simon and Martin,

For me everything works fine - all other input components - in data
table except Collapsible Panel and I am using MyFaces 1.1.1, not the Sun
Ref Impl.

As you said there is a bug in using Collapsible Panel within Datatable,
fixed but not available as of now. Could you tell me when the patch for
this bug would be available?


So far, MyFaces hasn't released any "bugfix" releases, and I don't 
expect to see one this cycle either; it just releases the next major 
release and expects people to upgrade.


Hopefully bugfix releases will become part of MyFaces procedures in the 
future.


The next major release is probably a couple of months away.

Regards,

Simon


RE: Urgent: Collapsible Panel with data table not working IllegalStateException: Client-id : _id3ToggleCollapsed

2006-01-11 Thread Saurabh Rasinghaney
Thanks for your replies Simon and Martin,

For me everything works fine - all other input components - in data
table except Collapsible Panel and I am using MyFaces 1.1.1, not the Sun
Ref Impl.

As you said there is a bug in using Collapsible Panel within Datatable,
fixed but not available as of now. Could you tell me when the patch for
this bug would be available?

For now I tried Collapsible panel inside jstl forEach instead of
datatable and it worked for me.

Thanks for your support,

Best Regards,



Saurabh Raisinghaney 


-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 2:07 AM
To: MyFaces Discussion
Subject: Re: Urgent: Collapsible Panel with data table not working
IllegalStateException: Client-id : _id3ToggleCollapsed

Yes, you are out of look.

Plus, you mention that you use the RI - there are several open bugs
with regard to the RI and dataTable/dataList. They are currently being
revisited by Mathias...

regards,

Martin

On 1/11/06, Simon Kitching <[EMAIL PROTECTED]> wrote:
> Saurabh Rasinghaney wrote:
> > Hi Hans,
> >
> > Thanks for your reply,
> >
> > I tried changing the tag to html library data table but still got
the same error. Also I saw the html code generated for one panel and it
looks like ids are getting incremented. Here id for anchor is
"form:ProdReqs_0:_id7ToggleCollapsed" which is having ProdReqs_0 and
should get incremented for next row. Not sure what is wrong.
> > Please see if u can find something incorrect.
> >
>
> I see this entry in the subversion logs:
>
>

> r329598 | mmarinschek | 2005-10-31 07:46:25 +1300 (Mon, 31 Oct 2005)
> HtmlCollapsiblePanel now works in DataTable
>
> SO I guess if you're using a tomahawk release earlier than 2005-10-31
> then you're out of luck.
>
> And it looks to me like 1.1.1 was created in r328420 on 2005-10-25, so
I
> expect the fix didn't make it into release 1.1.1.
>
> Unforunately, nightly builds aren't available at the moment as the
> version control/build process is being significantly reworked. They
> should be back up within a week (guess only).
>
> Regards,
>
> Simon
>


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



Re: How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Matthias Wessendorf
On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
> Hi Matthias,
>
> That's what I expected.
>
> But, I don't know the format of the navigation rule xml.
> I have...
>
>   
> /view/
> 
>   newpage
>   /jsp/newpage.jsp
> 
>   

tried also this:
  
   *
   
 newpage
 /jsp/newpage.jsp
   
 


>
> public String invokeApplication(String id, FacesContext facesContext) {
>   return "error";
> }


public abstract String invokeApplication(FacesContext facesContext);
takes only FacesContext...

> This just results in a large amount of ServletExceptions being thrown & JBoss 
> dieing. :-(
>
> If anyone has any ideas, PLEASE, do tell.
>
> I'm off home now.
> Be back at 8am.
>
> Jeff
>
> -Original Message-
> From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> Sent: 11 January 2006 20:05
> To: MyFaces Discussion
> Subject: Re: How can I redirect from a servlet to a JSF page (that is backed 
> by a bean)?
>
> 
> // invoke application
> String outcome = invokeApplication(facesContext);
>
> if (LOG.isDebugEnabled()) {
>   LOG.debug("outcome = '" + outcome + "'");
> }
> NavigationHandler navigationHandler = application.getNavigationHandler();
> navigationHandler.handleNavigation(facesContext, null, outcome);
> lifecycle.render(facesContext);
>   }
> 
>
> the *outcome* to be used by navigationHandler.
> (what you use for calculating the navigation)
>
> similar to
>
> public String methodBackToCommandButto(){
>   //do something
>   return ("pageToShow");
> }
>
>
> -Matthias
>
> On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
> >
> > I'm just looking at doing that now.
> >
> > Any idea's on what the method "invokeApplication" should return?
> >
> > Do you think I'm meant to have a section in the faces-config.xml with a 
> > navigation rule for the applet?
> >
> > Jeff
> >
> >
> > -Original Message-
> > From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> > Sent: 11 January 2006 19:40
> > To: MyFaces Discussion
> > Subject: Re: How can I redirect from a servlet to a JSF page (that is 
> > backed by a bean)?
> >
> > Jeffrey-
> >
> > Since you are not using Tobago (yet), go forward and *cut n paste* the
> > servlet...
> > Since it hasn't any dependencys to any tobago related stuff.
> > No big deal ;)
> >
> > -Matthias
> >
> > On 1/11/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> > > not in MyFaces' core.
> > >
> > > Since tobago is a subproject, yes... :-)
> > >
> > >
> > >
> > > On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
> > > >
> > > > So does anyone know if there is such a NonFacesRequestServlet in the 
> > > > MyFaces implementation?
> > > >
> > > > I can see one in the Oracle & Sun implementations.
> > > >
> > > > JP
> > > >
> > > >
> > > >
> > > > -Original Message-
> > > > From: Jeffrey Porter [mailto:[EMAIL PROTECTED]
> > > > Sent: 11 January 2006 19:06
> > > > To: MyFaces Discussion
> > > > Subject: RE: How can I redirect from a servlet to a JSF page (that is 
> > > > backed by a bean)?
> > > >
> > > > Thanks Guys,
> > > >
> > > > Gonna have a go at it now.
> > > >
> > > > Jeff
> > > >
> > > > -Original Message-
> > > > From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> > > > Sent: 11 January 2006 19:03
> > > > To: MyFaces Discussion
> > > > Subject: Re: How can I redirect from a servlet to a JSF page (that is 
> > > > backed by a bean)?
> > > >
> > > > Hi
> > > >
> > > > > Take a look at tobagos NonFacesRequestServlet [1] how this situation
> > > > > could handled.
> > > >
> > > > cool, that is a cleaner solution.
> > > >
> > > > Jeffry, when you are using an impl of the mentioned Servlet,
> > > >
> > > > you could also populate the backing bean's properties
> > > >
> > > > inside of
> > > >
> > > > invokeApplication():
> > > >
> > > > Customer myCustomer = serviceLayer();
> > > > ValueBinding vb = facesContex.getApplication().createValueBinding(
> > > > "#{myCustomer}" );
> > > > vb.setValue( facesContext, myCustomer );
> > > >
> > > > return "customerDetailPage";
> > > >
> > > >
> > > >
> > > > -Matthias
> > > >
> > > > @Volker: have to look at the tobago goodies ;)
> > > >
> > > > > I don't know if there is somthing like this in tomahawk, could be a
> > > > > candidate for commons.jar.
> > > > >
> > > > > Regards,
> > > > >   Volker
> > > > >
> > > > > [1]:
> > > > > http://svn.apache.org/viewcvs.cgi/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/servlet/NonFacesRequestServlet.java?view=markup
> > > > >
> > > > > Jeffrey Porter wrote:
> > > > > >
> > > > > >
> > > > > > Hello all.
> > > > > >
> > > > > >
> > > > > >
> > > > > > I have the situation where I want to send a URL out in an email for 
> > > > > > a
> > > > > > person to click on, so that they can then see a page in my system.
> > > > > >
> > > > > >
> > > > > >
> > > > > > Normally I'd have a backing servlet that takes the parameters in and
> > > > > > redirects to the page I want the 

Exception while uploading file

2006-01-11 Thread ::SammyRulez::
I wa trying inputFileUpload component... a very basic impl with a page
and a bean... something like this
http://www.onjava.com/pub/a/onjava/2005/07/13/jsfupload.html?page=1

well I got the error and could not figure out what it is... any clue?


ERROR [http-8080-Processor24] util.MultipartRequestWrapper
(MultipartRequestWrapper.java:81) - Exception while uploading file.
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Read timed out
at 
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:429)
at 
org.apache.myfaces.component.html.util.MultipartRequestWrapper.parseRequest(MultipartRequestWrapper.java:70)
at 
org.apache.myfaces.component.html.util.MultipartRequestWrapper.getParameterNames(MultipartRequestWrapper.java:145)
at 
org.apache.myfaces.context.servlet.RequestParameterMap.getAttributeNames(RequestParameterMap.java:56)
at 
org.apache.myfaces.context.servlet.AbstractAttributeMap.isEmpty(AbstractAttributeMap.java:92)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:156)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
com.kyub.common.servlet.HibernateFilter.doFilter(HibernateFilter.java:26)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:613)

--
::SammyRulez::
http://sammyprojectz.blogspot.com


Re: Welcome!

2006-01-11 Thread Matthias Wessendorf
Hi Bernd and Volker!

welcome aboard!

-Matthias

On 1/11/06, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> Bernd, Volker,
>
> the MyFaces PMC has decided (due to your continuing help in making
> Apache MyFaces the best JSF implementation available) to add you as
> committers of the core-project. Thanks for providing many valuable
> patches, helping out with the reorganisation and architecture of
> Apache MyFaces and the continuing work on Tobago.
>
> Welcome aboard!
>
> regards,
>
> Martin
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


Welcome!

2006-01-11 Thread Martin Marinschek
Bernd, Volker,

the MyFaces PMC has decided (due to your continuing help in making
Apache MyFaces the best JSF implementation available) to add you as
committers of the core-project. Thanks for providing many valuable
patches, helping out with the reorganisation and architecture of
Apache MyFaces and the continuing work on Tobago.

Welcome aboard!

regards,

Martin


Re: How to cache a page for some days (in server side) , and allow user to knwo the page OLD

2006-01-11 Thread Matthias Wessendorf
Hi,

I have done something similar (generating) large PDFs
Squid has done the caching job. Even if there is a new version of the
PDF, squid downloaded this new pdf one time! Each browsers request was
served by squid.

Perhaps in your situation you can play a bit w/ the request heads for caching?
(ETAG, modifiedsince)

(Have to search a more detailed link...)

-Matthias

On 1/10/06, Legolas Woodland <[EMAIL PROTECTED]> wrote:
>
>
> Hi
> Thank you for reading my post.
>
> I have a very heavy to create web page wich contain some chart
> I want users to be able to see the live report once per 2 days.
>
> This page contain some sophisticate query , so refreshing the page data
> could be very heavy job.
>
> so i want to allow users to see a cached version of the page after they
> refresh it until 3 days.
> during this 3 days i want to have a lable or something that shows user ,
> This page is : 2 Days old .
>
> is it possible to do such thing ?
> I should mention that
>
> 1-im using jsf
> 2-im using Creator Studio
> 3-it is a portlet page
>
> can this job be done with OScache , ... ?
> or it need some special knowledge ?
>
> Thank you


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


RE: Getting an exception with the ExtensionsFilter

2006-01-11 Thread Miller, John
Normally I wouldn't care, the user can refresh the page, however when this 
exception occurs JSF Renders multiple responses - What I mean is I have 2 
dataScrollers written to this page in normal situations, but when the exception 
happens 5 dataScrollers are written out

-Original Message-
From: Miller, John [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 4:40 PM
To: MyFaces Discussion
Subject: RE: Getting an exception with the ExtensionsFilter

I think it is something else, 

I can reproduce, by checking "Show Closed", Click Apply, uncheck "Show Closed", 
click Apply, then repeating the process many times until it happens, I am 
waiting for the page to completely load before each submit and it doesn't 
happen on the first page load, so all pages are compiled

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 4:32 PM
To: MyFaces Discussion
Subject: Re: Getting an exception with the ExtensionsFilter

Just a guess...


Connection reset by peer: socket write error


Did you click on a link (page is now compiling) and then *directly*
clicking on another page?

We had this type of execption (struts and tiles) when a user "clicks
unmotivated" through the application...

When all pages *are* compiled, no problems occur. all is fine.

So, as I mentioned, just a guess...



On 1/11/06, Miller, John <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Has anyone one seen this before. It only happens in IE, never in firefox,
> and it is somewhat intermittent. I have included all JSP code at the bottom,
> It is somewhat urgent because I am presenting to move over to JSF on Tues,
> and have built a few pages in Firefox, just found this today when I wanted
> to see how it looked in IE. Also to note I am using Tiles
>
>
>
>
>
> StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces
> Servlet threw exception
>
> ClientAbortException:  java.net.SocketException: Connection reset by peer:
> socket write error
>
>   at
> org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:680)
>
>   at
> org.apache.catalina.connector.HttpResponseBase.doFlushBuffer(HttpResponseBase.java:795)
>
>   at
> org.apache.catalina.connector.HttpResponseBase.access$000(HttpResponseBase.java:111)
>
>   at
> org.apache.catalina.connector.HttpResponseBase$PrivilegedFlushBuffer.run(HttpResponseBase.java:123)
>
>   at java.security.AccessController.doPrivileged(Native
> Method)
>
>   at
> org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase.java:780)
>
>   at
> org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:648)
>
>   at
> org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:313)
>
>   at
> org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStream.java:183)
>
>   at
> org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:287)
>
>   at
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:128)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
>
>   at java.security.AccessController.doPrivileged(Native
> Method)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
>
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
>
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>   at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163

Re: How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Simon Kitching

Jeffrey Porter wrote:
 
I have the situation where I want to send a URL out in an email for a 
person to click on, so that they can then see a page in my system.
 
Normally I’d have a backing servlet that takes the parameters in and 
redirects to the page I want the user to view.


But since I’m using myfaces, I don’t know how to redirect to a JSF page.
 
In this case I’m at a complete loss to where I should start.
 
Can some one please prod me in the correct direction.




I've created a wiki page for this, as it's a fairly frequently asked 
question. Please correct/extend that page if you have any additional 
info (esp. if you get the Tobago NonFacesRequestServlet thing working).


  http://wiki.apache.org/myfaces/InvokingJsfPagesWithStandardUrls

Regards,

Simon



RE: Getting an exception with the ExtensionsFilter

2006-01-11 Thread Miller, John
I think it is something else, 

I can reproduce, by checking "Show Closed", Click Apply, uncheck "Show Closed", 
click Apply, then repeating the process many times until it happens, I am 
waiting for the page to completely load before each submit and it doesn't 
happen on the first page load, so all pages are compiled

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 4:32 PM
To: MyFaces Discussion
Subject: Re: Getting an exception with the ExtensionsFilter

Just a guess...


Connection reset by peer: socket write error


Did you click on a link (page is now compiling) and then *directly*
clicking on another page?

We had this type of execption (struts and tiles) when a user "clicks
unmotivated" through the application...

When all pages *are* compiled, no problems occur. all is fine.

So, as I mentioned, just a guess...



On 1/11/06, Miller, John <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Has anyone one seen this before. It only happens in IE, never in firefox,
> and it is somewhat intermittent. I have included all JSP code at the bottom,
> It is somewhat urgent because I am presenting to move over to JSF on Tues,
> and have built a few pages in Firefox, just found this today when I wanted
> to see how it looked in IE. Also to note I am using Tiles
>
>
>
>
>
> StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces
> Servlet threw exception
>
> ClientAbortException:  java.net.SocketException: Connection reset by peer:
> socket write error
>
>   at
> org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:680)
>
>   at
> org.apache.catalina.connector.HttpResponseBase.doFlushBuffer(HttpResponseBase.java:795)
>
>   at
> org.apache.catalina.connector.HttpResponseBase.access$000(HttpResponseBase.java:111)
>
>   at
> org.apache.catalina.connector.HttpResponseBase$PrivilegedFlushBuffer.run(HttpResponseBase.java:123)
>
>   at java.security.AccessController.doPrivileged(Native
> Method)
>
>   at
> org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase.java:780)
>
>   at
> org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:648)
>
>   at
> org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:313)
>
>   at
> org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStream.java:183)
>
>   at
> org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:287)
>
>   at
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:128)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
>
>   at java.security.AccessController.doPrivileged(Native
> Method)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
>
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
>
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>   at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipeline

Re: Getting an exception with the ExtensionsFilter

2006-01-11 Thread Matthias Wessendorf
Just a guess...


Connection reset by peer: socket write error


Did you click on a link (page is now compiling) and then *directly*
clicking on another page?

We had this type of execption (struts and tiles) when a user "clicks
unmotivated" through the application...

When all pages *are* compiled, no problems occur. all is fine.

So, as I mentioned, just a guess...



On 1/11/06, Miller, John <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Has anyone one seen this before. It only happens in IE, never in firefox,
> and it is somewhat intermittent. I have included all JSP code at the bottom,
> It is somewhat urgent because I am presenting to move over to JSF on Tues,
> and have built a few pages in Firefox, just found this today when I wanted
> to see how it looked in IE. Also to note I am using Tiles
>
>
>
>
>
> StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces
> Servlet threw exception
>
> ClientAbortException:  java.net.SocketException: Connection reset by peer:
> socket write error
>
>   at
> org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:680)
>
>   at
> org.apache.catalina.connector.HttpResponseBase.doFlushBuffer(HttpResponseBase.java:795)
>
>   at
> org.apache.catalina.connector.HttpResponseBase.access$000(HttpResponseBase.java:111)
>
>   at
> org.apache.catalina.connector.HttpResponseBase$PrivilegedFlushBuffer.run(HttpResponseBase.java:123)
>
>   at java.security.AccessController.doPrivileged(Native
> Method)
>
>   at
> org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase.java:780)
>
>   at
> org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:648)
>
>   at
> org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:313)
>
>   at
> org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStream.java:183)
>
>   at
> org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:287)
>
>   at
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:128)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
>
>   at java.security.AccessController.doPrivileged(Native
> Method)
>
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
>
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
>
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>   at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>
>   at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
>   at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
>
>   at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
>
>   at java.lang.Thread.run(Thread.java:536)
>
>
>
>
>
> Header JSP
>
>
>
> 
>
> 
>
> 
>
> 
>
>
>
>
>
> 

Re: How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Matthias Wessendorf
just found this ;)

http://www.mail-archive.com/users@myfaces.apache.org/msg13865.html



On 1/11/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
> > Hi Matthias,
> >
> > That's what I expected.
> >
> > But, I don't know the format of the navigation rule xml.
> > I have...
> >
> >   
> > /view/
> > 
> >   newpage
> >   /jsp/newpage.jsp
> > 
> >   
>
> tried also this:
>   
>*
>
>  newpage
>  /jsp/newpage.jsp
>
>  
>
>
> >
> > public String invokeApplication(String id, FacesContext facesContext) {
> >   return "error";
> > }
>
>
> public abstract String invokeApplication(FacesContext facesContext);
> takes only FacesContext...
>
> > This just results in a large amount of ServletExceptions being thrown & 
> > JBoss dieing. :-(
> >
> > If anyone has any ideas, PLEASE, do tell.
> >
> > I'm off home now.
> > Be back at 8am.
> >
> > Jeff
> >
> > -Original Message-
> > From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> > Sent: 11 January 2006 20:05
> > To: MyFaces Discussion
> > Subject: Re: How can I redirect from a servlet to a JSF page (that is 
> > backed by a bean)?
> >
> > 
> > // invoke application
> > String outcome = invokeApplication(facesContext);
> >
> > if (LOG.isDebugEnabled()) {
> >   LOG.debug("outcome = '" + outcome + "'");
> > }
> > NavigationHandler navigationHandler = 
> > application.getNavigationHandler();
> > navigationHandler.handleNavigation(facesContext, null, outcome);
> > lifecycle.render(facesContext);
> >   }
> > 
> >
> > the *outcome* to be used by navigationHandler.
> > (what you use for calculating the navigation)
> >
> > similar to
> >
> > public String methodBackToCommandButto(){
> >   //do something
> >   return ("pageToShow");
> > }
> >
> >
> > -Matthias
> >
> > On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
> > >
> > > I'm just looking at doing that now.
> > >
> > > Any idea's on what the method "invokeApplication" should return?
> > >
> > > Do you think I'm meant to have a section in the faces-config.xml with a 
> > > navigation rule for the applet?
> > >
> > > Jeff
> > >
> > >
> > > -Original Message-
> > > From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> > > Sent: 11 January 2006 19:40
> > > To: MyFaces Discussion
> > > Subject: Re: How can I redirect from a servlet to a JSF page (that is 
> > > backed by a bean)?
> > >
> > > Jeffrey-
> > >
> > > Since you are not using Tobago (yet), go forward and *cut n paste* the
> > > servlet...
> > > Since it hasn't any dependencys to any tobago related stuff.
> > > No big deal ;)
> > >
> > > -Matthias
> > >
> > > On 1/11/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> > > > not in MyFaces' core.
> > > >
> > > > Since tobago is a subproject, yes... :-)
> > > >
> > > >
> > > >
> > > > On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > So does anyone know if there is such a NonFacesRequestServlet in the 
> > > > > MyFaces implementation?
> > > > >
> > > > > I can see one in the Oracle & Sun implementations.
> > > > >
> > > > > JP
> > > > >
> > > > >
> > > > >
> > > > > -Original Message-
> > > > > From: Jeffrey Porter [mailto:[EMAIL PROTECTED]
> > > > > Sent: 11 January 2006 19:06
> > > > > To: MyFaces Discussion
> > > > > Subject: RE: How can I redirect from a servlet to a JSF page (that is 
> > > > > backed by a bean)?
> > > > >
> > > > > Thanks Guys,
> > > > >
> > > > > Gonna have a go at it now.
> > > > >
> > > > > Jeff
> > > > >
> > > > > -Original Message-
> > > > > From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> > > > > Sent: 11 January 2006 19:03
> > > > > To: MyFaces Discussion
> > > > > Subject: Re: How can I redirect from a servlet to a JSF page (that is 
> > > > > backed by a bean)?
> > > > >
> > > > > Hi
> > > > >
> > > > > > Take a look at tobagos NonFacesRequestServlet [1] how this situation
> > > > > > could handled.
> > > > >
> > > > > cool, that is a cleaner solution.
> > > > >
> > > > > Jeffry, when you are using an impl of the mentioned Servlet,
> > > > >
> > > > > you could also populate the backing bean's properties
> > > > >
> > > > > inside of
> > > > >
> > > > > invokeApplication():
> > > > >
> > > > > Customer myCustomer = serviceLayer();
> > > > > ValueBinding vb = facesContex.getApplication().createValueBinding(
> > > > > "#{myCustomer}" );
> > > > > vb.setValue( facesContext, myCustomer );
> > > > >
> > > > > return "customerDetailPage";
> > > > >
> > > > >
> > > > >
> > > > > -Matthias
> > > > >
> > > > > @Volker: have to look at the tobago goodies ;)
> > > > >
> > > > > > I don't know if there is somthing like this in tomahawk, could be a
> > > > > > candidate for commons.jar.
> > > > > >
> > > > > > Regards,
> > > > > >   Volker
> > > > > >
> > > > > > [1]:
> > > > > > http://svn.apache.org/viewcvs.cgi/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/s

RE: How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Jeffrey Porter
Hi Matthias,

That's what I expected.

But, I don't know the format of the navigation rule xml.
I have...

  
/view/

  newpage
  /jsp/newpage.jsp
  


+ the code

public String invokeApplication(String id, FacesContext facesContext) {
  return "error";
}

This just results in a large amount of ServletExceptions being thrown & JBoss 
dieing. :-(

If anyone has any ideas, PLEASE, do tell.

I'm off home now.
Be back at 8am. 

Jeff

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: 11 January 2006 20:05
To: MyFaces Discussion
Subject: Re: How can I redirect from a servlet to a JSF page (that is backed by 
a bean)?


// invoke application
String outcome = invokeApplication(facesContext);

if (LOG.isDebugEnabled()) {
  LOG.debug("outcome = '" + outcome + "'");
}
NavigationHandler navigationHandler = application.getNavigationHandler();
navigationHandler.handleNavigation(facesContext, null, outcome);
lifecycle.render(facesContext);
  }


the *outcome* to be used by navigationHandler.
(what you use for calculating the navigation)

similar to

public String methodBackToCommandButto(){
  //do something
  return ("pageToShow");
}


-Matthias

On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
>
> I'm just looking at doing that now.
>
> Any idea's on what the method "invokeApplication" should return?
>
> Do you think I'm meant to have a section in the faces-config.xml with a 
> navigation rule for the applet?
>
> Jeff
>
>
> -Original Message-
> From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> Sent: 11 January 2006 19:40
> To: MyFaces Discussion
> Subject: Re: How can I redirect from a servlet to a JSF page (that is backed 
> by a bean)?
>
> Jeffrey-
>
> Since you are not using Tobago (yet), go forward and *cut n paste* the
> servlet...
> Since it hasn't any dependencys to any tobago related stuff.
> No big deal ;)
>
> -Matthias
>
> On 1/11/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> > not in MyFaces' core.
> >
> > Since tobago is a subproject, yes... :-)
> >
> >
> >
> > On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
> > >
> > > So does anyone know if there is such a NonFacesRequestServlet in the 
> > > MyFaces implementation?
> > >
> > > I can see one in the Oracle & Sun implementations.
> > >
> > > JP
> > >
> > >
> > >
> > > -Original Message-
> > > From: Jeffrey Porter [mailto:[EMAIL PROTECTED]
> > > Sent: 11 January 2006 19:06
> > > To: MyFaces Discussion
> > > Subject: RE: How can I redirect from a servlet to a JSF page (that is 
> > > backed by a bean)?
> > >
> > > Thanks Guys,
> > >
> > > Gonna have a go at it now.
> > >
> > > Jeff
> > >
> > > -Original Message-
> > > From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> > > Sent: 11 January 2006 19:03
> > > To: MyFaces Discussion
> > > Subject: Re: How can I redirect from a servlet to a JSF page (that is 
> > > backed by a bean)?
> > >
> > > Hi
> > >
> > > > Take a look at tobagos NonFacesRequestServlet [1] how this situation
> > > > could handled.
> > >
> > > cool, that is a cleaner solution.
> > >
> > > Jeffry, when you are using an impl of the mentioned Servlet,
> > >
> > > you could also populate the backing bean's properties
> > >
> > > inside of
> > >
> > > invokeApplication():
> > >
> > > Customer myCustomer = serviceLayer();
> > > ValueBinding vb = facesContex.getApplication().createValueBinding(
> > > "#{myCustomer}" );
> > > vb.setValue( facesContext, myCustomer );
> > >
> > > return "customerDetailPage";
> > >
> > >
> > >
> > > -Matthias
> > >
> > > @Volker: have to look at the tobago goodies ;)
> > >
> > > > I don't know if there is somthing like this in tomahawk, could be a
> > > > candidate for commons.jar.
> > > >
> > > > Regards,
> > > >   Volker
> > > >
> > > > [1]:
> > > > http://svn.apache.org/viewcvs.cgi/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/servlet/NonFacesRequestServlet.java?view=markup
> > > >
> > > > Jeffrey Porter wrote:
> > > > >
> > > > >
> > > > > Hello all.
> > > > >
> > > > >
> > > > >
> > > > > I have the situation where I want to send a URL out in an email for a
> > > > > person to click on, so that they can then see a page in my system.
> > > > >
> > > > >
> > > > >
> > > > > Normally I'd have a backing servlet that takes the parameters in and
> > > > > redirects to the page I want the user to view.
> > > > >
> > > > > But since I'm using myfaces, I don't know how to redirect to a JSF 
> > > > > page.
> > > > >
> > > > >
> > > > >
> > > > > In this case I'm at a complete loss to where I should start.
> > > > >
> > > > >
> > > > >
> > > > > Can some one please prod me in the correct direction.
> > > > >
> > > > >
> > > > >
> > > > > Thanks
> > > > >
> > > > > Jeff
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > Don't answer to From: address!
> > > > Mail to this account are droped if not recieved via mailinglist.
> > > 

Re: How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Matthias Wessendorf

// invoke application
String outcome = invokeApplication(facesContext);

if (LOG.isDebugEnabled()) {
  LOG.debug("outcome = '" + outcome + "'");
}
NavigationHandler navigationHandler = application.getNavigationHandler();
navigationHandler.handleNavigation(facesContext, null, outcome);
lifecycle.render(facesContext);
  }


the *outcome* to be used by navigationHandler.
(what you use for calculating the navigation)

similar to

public String methodBackToCommandButto(){
  //do something
  return ("pageToShow");
}


-Matthias

On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
>
> I'm just looking at doing that now.
>
> Any idea's on what the method "invokeApplication" should return?
>
> Do you think I'm meant to have a section in the faces-config.xml with a 
> navigation rule for the applet?
>
> Jeff
>
>
> -Original Message-
> From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> Sent: 11 January 2006 19:40
> To: MyFaces Discussion
> Subject: Re: How can I redirect from a servlet to a JSF page (that is backed 
> by a bean)?
>
> Jeffrey-
>
> Since you are not using Tobago (yet), go forward and *cut n paste* the
> servlet...
> Since it hasn't any dependencys to any tobago related stuff.
> No big deal ;)
>
> -Matthias
>
> On 1/11/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> > not in MyFaces' core.
> >
> > Since tobago is a subproject, yes... :-)
> >
> >
> >
> > On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
> > >
> > > So does anyone know if there is such a NonFacesRequestServlet in the 
> > > MyFaces implementation?
> > >
> > > I can see one in the Oracle & Sun implementations.
> > >
> > > JP
> > >
> > >
> > >
> > > -Original Message-
> > > From: Jeffrey Porter [mailto:[EMAIL PROTECTED]
> > > Sent: 11 January 2006 19:06
> > > To: MyFaces Discussion
> > > Subject: RE: How can I redirect from a servlet to a JSF page (that is 
> > > backed by a bean)?
> > >
> > > Thanks Guys,
> > >
> > > Gonna have a go at it now.
> > >
> > > Jeff
> > >
> > > -Original Message-
> > > From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> > > Sent: 11 January 2006 19:03
> > > To: MyFaces Discussion
> > > Subject: Re: How can I redirect from a servlet to a JSF page (that is 
> > > backed by a bean)?
> > >
> > > Hi
> > >
> > > > Take a look at tobagos NonFacesRequestServlet [1] how this situation
> > > > could handled.
> > >
> > > cool, that is a cleaner solution.
> > >
> > > Jeffry, when you are using an impl of the mentioned Servlet,
> > >
> > > you could also populate the backing bean's properties
> > >
> > > inside of
> > >
> > > invokeApplication():
> > >
> > > Customer myCustomer = serviceLayer();
> > > ValueBinding vb = facesContex.getApplication().createValueBinding(
> > > "#{myCustomer}" );
> > > vb.setValue( facesContext, myCustomer );
> > >
> > > return "customerDetailPage";
> > >
> > >
> > >
> > > -Matthias
> > >
> > > @Volker: have to look at the tobago goodies ;)
> > >
> > > > I don't know if there is somthing like this in tomahawk, could be a
> > > > candidate for commons.jar.
> > > >
> > > > Regards,
> > > >   Volker
> > > >
> > > > [1]:
> > > > http://svn.apache.org/viewcvs.cgi/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/servlet/NonFacesRequestServlet.java?view=markup
> > > >
> > > > Jeffrey Porter wrote:
> > > > >
> > > > >
> > > > > Hello all.
> > > > >
> > > > >
> > > > >
> > > > > I have the situation where I want to send a URL out in an email for a
> > > > > person to click on, so that they can then see a page in my system.
> > > > >
> > > > >
> > > > >
> > > > > Normally I'd have a backing servlet that takes the parameters in and
> > > > > redirects to the page I want the user to view.
> > > > >
> > > > > But since I'm using myfaces, I don't know how to redirect to a JSF 
> > > > > page.
> > > > >
> > > > >
> > > > >
> > > > > In this case I'm at a complete loss to where I should start.
> > > > >
> > > > >
> > > > >
> > > > > Can some one please prod me in the correct direction.
> > > > >
> > > > >
> > > > >
> > > > > Thanks
> > > > >
> > > > > Jeff
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > Don't answer to From: address!
> > > > Mail to this account are droped if not recieved via mailinglist.
> > > > To contact me direct create the mail address by
> > > > concatenating my forename to my senders domain.
> > > >
> > >
> > >
> > > --
> > > Matthias Wessendorf
> > > Zülpicher Wall 12, 239
> > > 50674 Köln
> > > http://www.wessendorf.net
> > > mwessendorf-at-gmail-dot-com
> > >
> >
> >
> > --
> > Matthias Wessendorf
> > Zülpicher Wall 12, 239
> > 50674 Köln
> > http://www.wessendorf.net
> > mwessendorf-at-gmail-dot-com
> >
>
>
> --
> Matthias Wessendorf
> Zülpicher Wall 12, 239
> 50674 Köln
> http://www.wessendorf.net
> mwessendorf-at-gmail-dot-com
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


RE: How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Jeffrey Porter

I'm just looking at doing that now.

Any idea's on what the method "invokeApplication" should return?

Do you think I'm meant to have a section in the faces-config.xml with a 
navigation rule for the applet?

Jeff


-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: 11 January 2006 19:40
To: MyFaces Discussion
Subject: Re: How can I redirect from a servlet to a JSF page (that is backed by 
a bean)?

Jeffrey-

Since you are not using Tobago (yet), go forward and *cut n paste* the
servlet...
Since it hasn't any dependencys to any tobago related stuff.
No big deal ;)

-Matthias

On 1/11/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> not in MyFaces' core.
>
> Since tobago is a subproject, yes... :-)
>
>
>
> On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
> >
> > So does anyone know if there is such a NonFacesRequestServlet in the 
> > MyFaces implementation?
> >
> > I can see one in the Oracle & Sun implementations.
> >
> > JP
> >
> >
> >
> > -Original Message-
> > From: Jeffrey Porter [mailto:[EMAIL PROTECTED]
> > Sent: 11 January 2006 19:06
> > To: MyFaces Discussion
> > Subject: RE: How can I redirect from a servlet to a JSF page (that is 
> > backed by a bean)?
> >
> > Thanks Guys,
> >
> > Gonna have a go at it now.
> >
> > Jeff
> >
> > -Original Message-
> > From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> > Sent: 11 January 2006 19:03
> > To: MyFaces Discussion
> > Subject: Re: How can I redirect from a servlet to a JSF page (that is 
> > backed by a bean)?
> >
> > Hi
> >
> > > Take a look at tobagos NonFacesRequestServlet [1] how this situation
> > > could handled.
> >
> > cool, that is a cleaner solution.
> >
> > Jeffry, when you are using an impl of the mentioned Servlet,
> >
> > you could also populate the backing bean's properties
> >
> > inside of
> >
> > invokeApplication():
> >
> > Customer myCustomer = serviceLayer();
> > ValueBinding vb = facesContex.getApplication().createValueBinding(
> > "#{myCustomer}" );
> > vb.setValue( facesContext, myCustomer );
> >
> > return "customerDetailPage";
> >
> >
> >
> > -Matthias
> >
> > @Volker: have to look at the tobago goodies ;)
> >
> > > I don't know if there is somthing like this in tomahawk, could be a
> > > candidate for commons.jar.
> > >
> > > Regards,
> > >   Volker
> > >
> > > [1]:
> > > http://svn.apache.org/viewcvs.cgi/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/servlet/NonFacesRequestServlet.java?view=markup
> > >
> > > Jeffrey Porter wrote:
> > > >
> > > >
> > > > Hello all.
> > > >
> > > >
> > > >
> > > > I have the situation where I want to send a URL out in an email for a
> > > > person to click on, so that they can then see a page in my system.
> > > >
> > > >
> > > >
> > > > Normally I'd have a backing servlet that takes the parameters in and
> > > > redirects to the page I want the user to view.
> > > >
> > > > But since I'm using myfaces, I don't know how to redirect to a JSF page.
> > > >
> > > >
> > > >
> > > > In this case I'm at a complete loss to where I should start.
> > > >
> > > >
> > > >
> > > > Can some one please prod me in the correct direction.
> > > >
> > > >
> > > >
> > > > Thanks
> > > >
> > > > Jeff
> > > >
> > > >
> > > >
> > >
> > > --
> > > Don't answer to From: address!
> > > Mail to this account are droped if not recieved via mailinglist.
> > > To contact me direct create the mail address by
> > > concatenating my forename to my senders domain.
> > >
> >
> >
> > --
> > Matthias Wessendorf
> > Zülpicher Wall 12, 239
> > 50674 Köln
> > http://www.wessendorf.net
> > mwessendorf-at-gmail-dot-com
> >
>
>
> --
> Matthias Wessendorf
> Zülpicher Wall 12, 239
> 50674 Köln
> http://www.wessendorf.net
> mwessendorf-at-gmail-dot-com
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


Re: How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Matthias Wessendorf
Jeffrey-

Since you are not using Tobago (yet), go forward and *cut n paste* the
servlet...
Since it hasn't any dependencys to any tobago related stuff.
No big deal ;)

-Matthias

On 1/11/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> not in MyFaces' core.
>
> Since tobago is a subproject, yes... :-)
>
>
>
> On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
> >
> > So does anyone know if there is such a NonFacesRequestServlet in the 
> > MyFaces implementation?
> >
> > I can see one in the Oracle & Sun implementations.
> >
> > JP
> >
> >
> >
> > -Original Message-
> > From: Jeffrey Porter [mailto:[EMAIL PROTECTED]
> > Sent: 11 January 2006 19:06
> > To: MyFaces Discussion
> > Subject: RE: How can I redirect from a servlet to a JSF page (that is 
> > backed by a bean)?
> >
> > Thanks Guys,
> >
> > Gonna have a go at it now.
> >
> > Jeff
> >
> > -Original Message-
> > From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> > Sent: 11 January 2006 19:03
> > To: MyFaces Discussion
> > Subject: Re: How can I redirect from a servlet to a JSF page (that is 
> > backed by a bean)?
> >
> > Hi
> >
> > > Take a look at tobagos NonFacesRequestServlet [1] how this situation
> > > could handled.
> >
> > cool, that is a cleaner solution.
> >
> > Jeffry, when you are using an impl of the mentioned Servlet,
> >
> > you could also populate the backing bean's properties
> >
> > inside of
> >
> > invokeApplication():
> >
> > Customer myCustomer = serviceLayer();
> > ValueBinding vb = facesContex.getApplication().createValueBinding(
> > "#{myCustomer}" );
> > vb.setValue( facesContext, myCustomer );
> >
> > return "customerDetailPage";
> >
> >
> >
> > -Matthias
> >
> > @Volker: have to look at the tobago goodies ;)
> >
> > > I don't know if there is somthing like this in tomahawk, could be a
> > > candidate for commons.jar.
> > >
> > > Regards,
> > >   Volker
> > >
> > > [1]:
> > > http://svn.apache.org/viewcvs.cgi/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/servlet/NonFacesRequestServlet.java?view=markup
> > >
> > > Jeffrey Porter wrote:
> > > >
> > > >
> > > > Hello all.
> > > >
> > > >
> > > >
> > > > I have the situation where I want to send a URL out in an email for a
> > > > person to click on, so that they can then see a page in my system.
> > > >
> > > >
> > > >
> > > > Normally I'd have a backing servlet that takes the parameters in and
> > > > redirects to the page I want the user to view.
> > > >
> > > > But since I'm using myfaces, I don't know how to redirect to a JSF page.
> > > >
> > > >
> > > >
> > > > In this case I'm at a complete loss to where I should start.
> > > >
> > > >
> > > >
> > > > Can some one please prod me in the correct direction.
> > > >
> > > >
> > > >
> > > > Thanks
> > > >
> > > > Jeff
> > > >
> > > >
> > > >
> > >
> > > --
> > > Don't answer to From: address!
> > > Mail to this account are droped if not recieved via mailinglist.
> > > To contact me direct create the mail address by
> > > concatenating my forename to my senders domain.
> > >
> >
> >
> > --
> > Matthias Wessendorf
> > Zülpicher Wall 12, 239
> > 50674 Köln
> > http://www.wessendorf.net
> > mwessendorf-at-gmail-dot-com
> >
>
>
> --
> Matthias Wessendorf
> Zülpicher Wall 12, 239
> 50674 Köln
> http://www.wessendorf.net
> mwessendorf-at-gmail-dot-com
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


RE: JFYI: change session to request bean - the way life

2006-01-11 Thread David G. Friedman
Mario,

So you never did a session.invalidate() or removed the object from the session? 
 Not before your removal of the sessions
file?

Regards,
David

-Original Message-
From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 2:26 PM
To: MyFaces Discussion
Subject: JFYI: change session to request bean - the way life


(Sorry for the crosspost, initially my intention was to post it on ther
user list but selected the wrong address)

Hi!

It cost me a couple of hours to figure it out, so I'll share my insights
with you.

I have had a bean which I declared in session scope at first.
After a while I decided to make it a request scoped bean and use the
managed-property stuff to inject a request param.

I restarted tomcat a couple of times but never got this request
parameter injected.

Why ...?

The solution was:
Tomcat stores all session variables in its work directory in a file
named SESSIONS.ser.
Even after restarting tomcat my OLD session scoped bean were
reinitialized from this file. Now that myfaces found the bean in session
scope there was no need to recreate it and thus the request param werent
injected.

After removing this SESSIONS.ser all worked as expected.

Hope this will sometimes save someones time.

Ciao,
Mario



Re: How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Matthias Wessendorf
not in MyFaces' core.

Since tobago is a subproject, yes... :-)



On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
>
> So does anyone know if there is such a NonFacesRequestServlet in the MyFaces 
> implementation?
>
> I can see one in the Oracle & Sun implementations.
>
> JP
>
>
>
> -Original Message-
> From: Jeffrey Porter [mailto:[EMAIL PROTECTED]
> Sent: 11 January 2006 19:06
> To: MyFaces Discussion
> Subject: RE: How can I redirect from a servlet to a JSF page (that is backed 
> by a bean)?
>
> Thanks Guys,
>
> Gonna have a go at it now.
>
> Jeff
>
> -Original Message-
> From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
> Sent: 11 January 2006 19:03
> To: MyFaces Discussion
> Subject: Re: How can I redirect from a servlet to a JSF page (that is backed 
> by a bean)?
>
> Hi
>
> > Take a look at tobagos NonFacesRequestServlet [1] how this situation
> > could handled.
>
> cool, that is a cleaner solution.
>
> Jeffry, when you are using an impl of the mentioned Servlet,
>
> you could also populate the backing bean's properties
>
> inside of
>
> invokeApplication():
>
> Customer myCustomer = serviceLayer();
> ValueBinding vb = facesContex.getApplication().createValueBinding(
> "#{myCustomer}" );
> vb.setValue( facesContext, myCustomer );
>
> return "customerDetailPage";
>
>
>
> -Matthias
>
> @Volker: have to look at the tobago goodies ;)
>
> > I don't know if there is somthing like this in tomahawk, could be a
> > candidate for commons.jar.
> >
> > Regards,
> >   Volker
> >
> > [1]:
> > http://svn.apache.org/viewcvs.cgi/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/servlet/NonFacesRequestServlet.java?view=markup
> >
> > Jeffrey Porter wrote:
> > >
> > >
> > > Hello all.
> > >
> > >
> > >
> > > I have the situation where I want to send a URL out in an email for a
> > > person to click on, so that they can then see a page in my system.
> > >
> > >
> > >
> > > Normally I'd have a backing servlet that takes the parameters in and
> > > redirects to the page I want the user to view.
> > >
> > > But since I'm using myfaces, I don't know how to redirect to a JSF page.
> > >
> > >
> > >
> > > In this case I'm at a complete loss to where I should start.
> > >
> > >
> > >
> > > Can some one please prod me in the correct direction.
> > >
> > >
> > >
> > > Thanks
> > >
> > > Jeff
> > >
> > >
> > >
> >
> > --
> > Don't answer to From: address!
> > Mail to this account are droped if not recieved via mailinglist.
> > To contact me direct create the mail address by
> > concatenating my forename to my senders domain.
> >
>
>
> --
> Matthias Wessendorf
> Zülpicher Wall 12, 239
> 50674 Köln
> http://www.wessendorf.net
> mwessendorf-at-gmail-dot-com
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


JFYI: change session to request bean - the way life

2006-01-11 Thread Mario Ivankovits
(Sorry for the crosspost, initially my intention was to post it on ther 
user list but selected the wrong address)


Hi!

It cost me a couple of hours to figure it out, so I'll share my insights 
with you.


I have had a bean which I declared in session scope at first.
After a while I decided to make it a request scoped bean and use the 
managed-property stuff to inject a request param.


I restarted tomcat a couple of times but never got this request 
parameter injected.


Why ...?

The solution was:
Tomcat stores all session variables in its work directory in a file 
named SESSIONS.ser.
Even after restarting tomcat my OLD session scoped bean were 
reinitialized from this file. Now that myfaces found the bean in session 
scope there was no need to recreate it and thus the request param werent 
injected.


After removing this SESSIONS.ser all worked as expected.

Hope this will sometimes save someones time.

Ciao,
Mario



RE: How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Jeffrey Porter

So does anyone know if there is such a NonFacesRequestServlet in the MyFaces 
implementation?

I can see one in the Oracle & Sun implementations.

JP



-Original Message-
From: Jeffrey Porter [mailto:[EMAIL PROTECTED] 
Sent: 11 January 2006 19:06
To: MyFaces Discussion
Subject: RE: How can I redirect from a servlet to a JSF page (that is backed by 
a bean)?

Thanks Guys,

Gonna have a go at it now.

Jeff

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: 11 January 2006 19:03
To: MyFaces Discussion
Subject: Re: How can I redirect from a servlet to a JSF page (that is backed by 
a bean)?

Hi

> Take a look at tobagos NonFacesRequestServlet [1] how this situation
> could handled.

cool, that is a cleaner solution.

Jeffry, when you are using an impl of the mentioned Servlet,

you could also populate the backing bean's properties

inside of

invokeApplication():

Customer myCustomer = serviceLayer();
ValueBinding vb = facesContex.getApplication().createValueBinding(
"#{myCustomer}" );
vb.setValue( facesContext, myCustomer );

return "customerDetailPage";



-Matthias

@Volker: have to look at the tobago goodies ;)

> I don't know if there is somthing like this in tomahawk, could be a
> candidate for commons.jar.
>
> Regards,
>   Volker
>
> [1]:
> http://svn.apache.org/viewcvs.cgi/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/servlet/NonFacesRequestServlet.java?view=markup
>
> Jeffrey Porter wrote:
> >
> >
> > Hello all.
> >
> >
> >
> > I have the situation where I want to send a URL out in an email for a
> > person to click on, so that they can then see a page in my system.
> >
> >
> >
> > Normally I'd have a backing servlet that takes the parameters in and
> > redirects to the page I want the user to view.
> >
> > But since I'm using myfaces, I don't know how to redirect to a JSF page.
> >
> >
> >
> > In this case I'm at a complete loss to where I should start.
> >
> >
> >
> > Can some one please prod me in the correct direction.
> >
> >
> >
> > Thanks
> >
> > Jeff
> >
> >
> >
>
> --
> Don't answer to From: address!
> Mail to this account are droped if not recieved via mailinglist.
> To contact me direct create the mail address by
> concatenating my forename to my senders domain.
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


Re: How to cache a page for some days (in server side) , and allow user to knwo the page OLD

2006-01-11 Thread Wayne Fay
I don't know anything about OSCache and this is certainly not the
OSCache user's list. Perhaps contact them directly if you really want
to use their product.

Personally, I'd generate and maintain the page using a saperate
process, shove it somewhere (you said its a chart so I'll assume its a
GIF or JPG) into a database or filesystem, and include the "generation
time" stamp somewhere on the file/image. Or you could include a
"generated" datetime field in the database or read the lastModified
time on the file.

This seems to be the "simplest" way to do this, to me.

Wayne


On 1/10/06, Legolas Woodland <[EMAIL PROTECTED]> wrote:
>
>
> Hi
> Thank you for reading my post.
>
> I have a very heavy to create web page wich contain some chart
> I want users to be able to see the live report once per 2 days.
>
> This page contain some sophisticate query , so refreshing the page data
> could be very heavy job.
>
> so i want to allow users to see a cached version of the page after they
> refresh it until 3 days.
> during this 3 days i want to have a lable or something that shows user ,
> This page is : 2 Days old .
>
> is it possible to do such thing ?
> I should mention that
>
> 1-im using jsf
> 2-im using Creator Studio
> 3-it is a portlet page
>
> can this job be done with OScache , ... ?
> or it need some special knowledge ?
>
> Thank you


RE: How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Jeffrey Porter
Thanks Guys,

Gonna have a go at it now.

Jeff

-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] 
Sent: 11 January 2006 19:03
To: MyFaces Discussion
Subject: Re: How can I redirect from a servlet to a JSF page (that is backed by 
a bean)?

Hi

> Take a look at tobagos NonFacesRequestServlet [1] how this situation
> could handled.

cool, that is a cleaner solution.

Jeffry, when you are using an impl of the mentioned Servlet,

you could also populate the backing bean's properties

inside of

invokeApplication():

Customer myCustomer = serviceLayer();
ValueBinding vb = facesContex.getApplication().createValueBinding(
"#{myCustomer}" );
vb.setValue( facesContext, myCustomer );

return "customerDetailPage";



-Matthias

@Volker: have to look at the tobago goodies ;)

> I don't know if there is somthing like this in tomahawk, could be a
> candidate for commons.jar.
>
> Regards,
>   Volker
>
> [1]:
> http://svn.apache.org/viewcvs.cgi/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/servlet/NonFacesRequestServlet.java?view=markup
>
> Jeffrey Porter wrote:
> >
> >
> > Hello all.
> >
> >
> >
> > I have the situation where I want to send a URL out in an email for a
> > person to click on, so that they can then see a page in my system.
> >
> >
> >
> > Normally I'd have a backing servlet that takes the parameters in and
> > redirects to the page I want the user to view.
> >
> > But since I'm using myfaces, I don't know how to redirect to a JSF page.
> >
> >
> >
> > In this case I'm at a complete loss to where I should start.
> >
> >
> >
> > Can some one please prod me in the correct direction.
> >
> >
> >
> > Thanks
> >
> > Jeff
> >
> >
> >
>
> --
> Don't answer to From: address!
> Mail to this account are droped if not recieved via mailinglist.
> To contact me direct create the mail address by
> concatenating my forename to my senders domain.
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


Re: How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Matthias Wessendorf
Hi

> Take a look at tobagos NonFacesRequestServlet [1] how this situation
> could handled.

cool, that is a cleaner solution.

Jeffry, when you are using an impl of the mentioned Servlet,

you could also populate the backing bean's properties

inside of

invokeApplication():

Customer myCustomer = serviceLayer();
ValueBinding vb = facesContex.getApplication().createValueBinding(
"#{myCustomer}" );
vb.setValue( facesContext, myCustomer );

return "customerDetailPage";



-Matthias

@Volker: have to look at the tobago goodies ;)

> I don't know if there is somthing like this in tomahawk, could be a
> candidate for commons.jar.
>
> Regards,
>   Volker
>
> [1]:
> http://svn.apache.org/viewcvs.cgi/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/servlet/NonFacesRequestServlet.java?view=markup
>
> Jeffrey Porter wrote:
> >
> >
> > Hello all.
> >
> >
> >
> > I have the situation where I want to send a URL out in an email for a
> > person to click on, so that they can then see a page in my system.
> >
> >
> >
> > Normally I'd have a backing servlet that takes the parameters in and
> > redirects to the page I want the user to view.
> >
> > But since I'm using myfaces, I don't know how to redirect to a JSF page.
> >
> >
> >
> > In this case I'm at a complete loss to where I should start.
> >
> >
> >
> > Can some one please prod me in the correct direction.
> >
> >
> >
> > Thanks
> >
> > Jeff
> >
> >
> >
>
> --
> Don't answer to From: address!
> Mail to this account are droped if not recieved via mailinglist.
> To contact me direct create the mail address by
> concatenating my forename to my senders domain.
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


Re: How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Volker Weber
Hi Jeffrey,

you are in the situation to serve a Non-Faces Request to a Faces
Response as described in the jsf 1.1 spec in section 2.1.1.

Take a look at tobagos NonFacesRequestServlet [1] how this situation
could handled.

I don't know if there is somthing like this in tomahawk, could be a
candidate for commons.jar.

Regards,
  Volker

[1]:
http://svn.apache.org/viewcvs.cgi/incubator/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/servlet/NonFacesRequestServlet.java?view=markup

Jeffrey Porter wrote:
>  
> 
> Hello all.
> 
>  
> 
> I have the situation where I want to send a URL out in an email for a
> person to click on, so that they can then see a page in my system.
> 
>  
> 
> Normally I’d have a backing servlet that takes the parameters in and
> redirects to the page I want the user to view.
> 
> But since I’m using myfaces, I don’t know how to redirect to a JSF page.
> 
>  
> 
> In this case I’m at a complete loss to where I should start.
> 
>  
> 
> Can some one please prod me in the correct direction.
> 
>  
> 
> Thanks
> 
> Jeff
> 
>  
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.


Re: How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Matthias Wessendorf
Hi,

a simple solution can be using parameters as well in the servlet and
redirect to the jsf page.

The constructor of your backing bean should do all the parameter
handling for you

like:

Map params = 
FacesContext,getCurrentContext().getExternalContext().getRequestParameterMap();

String myKey = params.get("nameOfParam");

this.customer = myBusinessLogicService.getCustomerById(myKey);


another solution would be using Struts Shale's ViewController facility.

HTH,
Matthias

On 1/11/06, Jeffrey Porter <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> Hello all.
>
>
>
> I have the situation where I want to send a URL out in an email for a person
> to click on, so that they can then see a page in my system.
>
>
>
> Normally I'd have a backing servlet that takes the parameters in and
> redirects to the page I want the user to view.
>
> But since I'm using myfaces, I don't know how to redirect to a JSF page.
>
>
>
> In this case I'm at a complete loss to where I should start.
>
>
>
> Can some one please prod me in the correct direction.
>
>
>
> Thanks
>
> Jeff
>
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com


Myfaces and PDA/Cell phones

2006-01-11 Thread Ravi Gidwani
Hi All:
    I am currently working on a project that involves using Myfaces 1.1.1. I would also like to hit this application from a PDA/Cell phone. 
    Can anbody give me some pointers as to what needs to done to support such a requirement using Myfaces ?...
    Will it actually require writing new jsf pages or would the current application require any modifications ?
 
TIA 
 
Ravi Gidwani


How can I redirect from a servlet to a JSF page (that is backed by a bean)?

2006-01-11 Thread Jeffrey Porter








 

Hello all.

 

I have the situation where I want to send a URL out in an
email for a person to click on, so that they can then see a page in my system.

 

Normally I’d have a backing servlet that takes the parameters
in and redirects to the page I want the user to view.

But since I’m using myfaces, I don’t know how to
redirect to a JSF page.

 

In this case I’m at a complete loss to where I should
start.

 

Can some one please prod me in the correct direction.

 

Thanks

Jeff

 








Re: Schedule component

2006-01-11 Thread Jurgen Lust




Uri Kalish wrote:

  
  
  
  
  Hi
Jurgen,
   
  We, at
Mercury, are currently
developing a new JSF/Java product planned to be released at the end of
this
year, and we're looking for a view similar to the Outlook Calendar.
  We
prefer not to use ActiveX control
or Java applet, so that leaves us with JSF component or some
HTML/_javascript_
solution. With the exception of the JSF Schedule component, all the
other
solutions I've seen are ugly, including Microsoft's HTML version of
the Outlook Calendar. So, at a first glance the Schedule component
seems like a
great solution for our problem. I see that there are no Sandbox nightly
builds on
the site so I'm using some old version from mid September I found on
someone's computer...
  

The best thing you can do is just check out the sources from SVN, and
build it yourself. Since the migration to maven this is really really
simple :) You can apply the latest patch locally (get it from JIRA
issue 1012) if it hasn't  been applied yet.

  
   
  Before
we rely on this component as
a part of our product, we need to make sure:
  
Basic
Functionality

  The component enables
users to view, schedule and remove items.

  
  

No problem, all you need to do is write an implementation of the
ScheduleModel interface (or easier, extend the AbstractScheduleModel)
that fetches items from your database, and optionally adds and removes
items.

  
  

  Can support 10-20 items
in a week.

  
  

I have successfully tested it with 100+ items in a week

  
  

  Supports concurrent items
on the same time slot.

  
  

It does, in fact this is the reason I wrote the component, because I
have seen no elegant solution for this elsewhere.  The rendering of
overlapping items is the same as in Outlook or Evolution. Try the demo
I would say :) 

  
  

  Supports IE and Firefox.

  
  

I have tested it on IE 6, Firefox 1 and 1.5, Opera 7 and 7.5 and
Konqueror. It also appears to be working on Safari but since I don't
have a Mac I haven't been able to test that myself.


  
  


Code
Maturity

  Stable and does not crash.

  
  

It's quite stable, and any bugs will be fixed in the coming 3 months,
because at Ghent University we are about to start working on an
application using it which must go in production by April 1st. 

  
  


Customization

  Supports changing of
appearance, fonts, colors...

  
  

This was addressed in my last patch (1012). There are different ways to
do this: write your own theme, override CSS classes using the xxxClass
attributes, or writing your own ScheduleEntryRenderer implementation,
or a combination of these.

  
  

  Supports changing the
code if we must.

  
  

It's open source, so you can do what you want with it.

  
  


Internationalization:
  

  Supports changing date
format.

  
  

Check

  
  

  Supports changing time
format.

  
  

Check

  
  

  Support changing
start-of-week day.

  
  

Not currently, although that shouldn't be too much trouble

  
  

  Supports changing names
of months, days, etc...

  
  

It uses the Java Locale mechanism

  
  

   
  
  Supports entering
non-English characters on the item text.

  
  

Depends on your database, and the encoding of your JSPs. I have tested
it with Japanese...

  
  


Performance

  Has reasonable response
time.

  
  

Depends mostly on your database. The rendering is quite fast, as it
uses CSS2 absolute positioning and very few tables.

  
  


Support

  Is there someone who can
help us if we have a problem?

  
  

If you have problems, just post a message on the mailing list, and I
will answer as soon as I can.

  
  


  
   
  
  
  
  
  
  
  From:
Jurgen Lust [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday,
January 11, 2006
1:39 AM
  To: MyFaces Discussion
  Subject: Re: Schedule
component
  
   
  Hi,
  
There has been some interest in the schedule component recently, so I'm
hoping
people are testing it well enough so that it will soon be ready for
tomahawk.
I've just submitted a patch (JIRA issue 1012) with a rather big update,
but I
haven't heard a reaction from any of the committers yet...
  
Jurgen
  
  
Uri Kalish wrote: 
  Hi,
  I'm looking for a view
similar to the Outlook
Calendar.
  I saw the Schedule
component but it's currently on
the Sandbox project. 
  Does anybody know when
will it become an 'official'
Tomahawk component?
  Who can I contact for
more details about this
component?
   
  
__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
  
__
   
  
  
__

Re: Shale users mailing list, resources etc

2006-01-11 Thread Wendy Smoak
On 1/11/06, xzuma <[EMAIL PROTECTED]> wrote:

>  Then there is a typo on this page
> http://struts.apache.org/struts-shale/mail-lists.html

Thanks!  I'll fix it tonight.

--
Wendy


Re: Shale users mailing list, resources etc

2006-01-11 Thread xzuma
On 1/11/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
On 1/11/06, xzuma <[EMAIL PROTECTED]> wrote:> I would appreciate the pointers to the resource to get started with> using Shale within JSF (I specifically am interested in dynamic
> subviews via shale clay).>> The address for struts mailing list [EMAIL PROTECTED]> returns error message.The Clay documentation starts here:
   http://struts.apache.org/struts-shale/features-reusable-views.htmlThe address is 
[EMAIL PROTECTED] (no 's' in user.)   http://struts.apache.org/struts-shale/index.html#Shale_Mailing_ListsHTH,
--Wendy

Then there is a typo on this page http://struts.apache.org/struts-shale/mail-lists.html

Thanks!

Z


Re: MyFaces + Shale + Facelets

2006-01-11 Thread Gary VanMatre

>From: Julián García <[EMAIL PROTECTED]> >> Hi, > > I am using Hibernate + Spring + Myfaces. It's been working but I think > that I am writing a LOT of code in the view layer. I have a small custom > validation framework of my own, and my own init mechanisms in my beans. > I use tiles. > > I'd like to do more templating, and reuse some code out thereI was > thinking of: > > Facelets: to do templating > Shale: init mechanisms in beans, client-side validation, Spring integration > > Any experiencies you want to share combining or using separately this 2 > frameworks with MyFaces 1.1.1 > > Do they have overlapping features? Would you use them both for production? >
 
Facelets and Shale Clay do have overlap.  Both allow templating, and alternative to JSP.  Clay's HTML full view templating allows you to use old school html.  I believe that Facelets requires well formed XML.  Clay is also unique in that it provides metadata inheritance and symbol replacement overlapping with tiles generic layout features.  The Clay full XML veiws could compare to tiles.   Clay is based on a component so it can be use within JSP too. 
 
The key point is that you have to choose if you are using JSP, XML or HTML for view composition and it's not wise to try to switch between view technologies.  The Shale use case example does this with moderate success.  This has to do with how you define the entry point resource that defines the page.  Maybe this will change in JSF x.x.
 
I'm a bit bias on the Clay versus Facelets comparison but Shale and Facelets would be a good technology stack too.
 
I think that JSF and Spring have some overlap.  They both provide IoC.  So, if you wanted to reduce the layers in your stack you might go with Shale+Myfaces/Hibernate or iBatis.
> Thanks for your comments. > > Julian
 
Gary
 


Re: Shale users mailing list, resources etc

2006-01-11 Thread Wendy Smoak
On 1/11/06, xzuma <[EMAIL PROTECTED]> wrote:

> I would appreciate the pointers to the resource to get started with
> using Shale within JSF (I specifically am interested in dynamic
> subviews via shale clay).
>
> The address for struts mailing list [EMAIL PROTECTED]
> returns error message.

The Clay documentation starts here:
   http://struts.apache.org/struts-shale/features-reusable-views.html

The address is [EMAIL PROTECTED] (no 's' in user.)
   http://struts.apache.org/struts-shale/index.html#Shale_Mailing_Lists

HTH,
--
Wendy


Re: Shale users mailing list, resources etc

2006-01-11 Thread Hubert Rabago
The correct mailing list subscription address is
[EMAIL PROTECTED] , without the "s" at the end of
"user".

Hubert


On 1/11/06, xzuma <[EMAIL PROTECTED]> wrote:
> I would appreciate the pointers to the resource to get started with
> using Shale within JSF (I specifically am interested in dynamic
> subviews via shale clay).
>
> The address for struts mailing list [EMAIL PROTECTED]
> returns error message.
>
> Thanks.
>
> Z
>


Re: How to define line breaks in a resource bundle message?

2006-01-11 Thread Andrew Robinson
Until that is fixed, you should be able to subclass the myfaces message renderer and do the escaping yourselfOn 1/11/06, Konstantin Shaposhnikov <
[EMAIL PROTECTED]> wrote:On 1/11/06, Matthias Kahlau <
[EMAIL PROTECTED]> wrote:>> Hi!>> I thought the renderer of h:message does replace the line terminator> sequence \n with HTML, but that seems not to be the case. I tested to use> "
" (without double quotes), and this also doesn't work. The > string is just diplayed as text. (I also tried without success.)>> I think it's an important use case to display error messages in multiple> lines. Does anybody have a solution, or is this just impossible at the > moment?Currently this is impossible. But there is issue in MyFaces JIRA(http://issues.apache.org/jira/browse/MYFACES-972) with patch to add 'escape' attribute to t:message and t:messages.> Regards,>> Matthias>> -Ursprüngliche Nachricht-> Von: users-return-15025-mkahlau= [EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED]]Im> Auftrag von Andrew Robinson> Gesendet: Dienstag, 10. Januar 2006 16:34 >> An: MyFaces Discussion> Betreff: Re: How to define line breaks in a resource bundle message?>> Are you sure \n isn't working? (Remember that \n is meaningless in html (it> is a space)) >> If you are using  output text, and you want a new line in HTML you may have> to use "
". I haven't tested this, but I'd imagine this may work> for you> >> On 1/10/06, Matthias Kahlau <[EMAIL PROTECTED]> wrote:> > Hi Dave,> >> >> > many thanks. If my understanding is correct, the line terminator sequence > \n> > should work. But I tried it using h:message, and it doesn't work. Is it> > possible that h:message is not capable of rendering the line terminator> > sequence appropriately? > >> >> >> > Regards,> >> > Matthias> >> >> > > -Ursprüngliche Nachricht-> > > Von: users-return-15012-mkahlau= [EMAIL PROTECTED]> > >> [mailto:[EMAIL PROTECTED] ]Im> Auftrag> > > von Dave Brondsema> > > Gesendet: Dienstag, 10. Januar 2006 14:27> > > An: MyFaces Discussion> > > Betreff: Re: How to define line breaks in a resource bundle message? > > >> > >> > > Matthias Kahlau wrote:> > > > Hi!> > > >> > > >> > > > Is it possible to define a line break in a resource bundle > > > message used for> > > > h:message? I already tried \n and , but that didn't work...> > > >> > >> > > Resource bundles use a java Properties class.  See the "load" method at > > >> http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html> > >> > >> > > -- > > > Dave Brondsema> > > Software Developer> > > Cornerstone University> > >> >> >>>

Shale users mailing list, resources etc

2006-01-11 Thread xzuma
I would appreciate the pointers to the resource to get started with
using Shale within JSF (I specifically am interested in dynamic
subviews via shale clay).

The address for struts mailing list [EMAIL PROTECTED]
returns error message.

Thanks.

Z


MyFaces + Shale + Facelets

2006-01-11 Thread Julián García

Hi,

I am using Hibernate + Spring + Myfaces. It's been working but I think 
that I am writing a LOT of code in the view layer. I have a small custom 
validation framework of my own, and my own init mechanisms in my beans. 
I use tiles.


I'd like to do more templating, and reuse some code out thereI was 
thinking of:


Facelets: to do templating
Shale: init mechanisms in beans, client-side validation, Spring integration

Any experiencies you want to share combining or using separately this 2 
frameworks with MyFaces 1.1.1


Do they have overlapping features? Would you use them both for production?

Thanks for your comments.

Julian


tree2 node selection question

2006-01-11 Thread rahmoune patrick
Hello,     Sorry for a certainly one more stupid tree2 question      I'm using an expanded tree2 :) and a dataTable on the same page and I have a question about node selection. The tree has a binding on the managed bean.     I have attached a commandLink with an actionListener on the tree node. This commandLink call a method on a managed bean setNodeSelected(ActionEvent e).     In the setNodeSelected(ActionEvent e), I do tree.setNodeSelected(e). And after, I can  update the dataTable with some data affected to the selected node which is retrieved   from the tree.getDataModel().getNode() method.     Note : the managed bean is in request scope.     Everything work fine for this.     The problem I have, is that when I call a commandB
 utton
 located on the same page on the same managed bean, the setNodeSelected(e) method is not called (this is ok).     So, as far as I know, the current node selection is lost.      One solution is to have the managed bean is session scope and in the setNodeSelected  method, keep the id of the node in a managed bean variable.      Does someone know how to handle this use case when using a request scope managed bean?     Thank you for any help     patrick   
		 Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez la version beta.

Re: Question?

2006-01-11 Thread Marco
Thanks for fast replay


RE: Question?

2006-01-11 Thread Jesse Alexander \(KBSA 21\)
Hi Marco

look at the datascroller.jsp sample...












 
pageIndex is what you are looking for

Just have it point to a managed-bean-attribute...

hth
Alexander



From: Marco [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 12:40 PM
To: MyFaces Discussion
Subject: Question?


Hi all;

I have dataScroller..How can i know the clicked page value from the
scroller ?

(For ex. the scroller shows that i have 3 pages of results (1,2,3) for a
dataTable, & i want if i clicked on 2 - for ex. - i can get 2 inside my
code ). 

Like in the dataTable there is an attribute "first" tells me where the
cursor now, is there anything like this in the dataScroller that tells
me which page I'm on now ?

Thanks a lot



Question?

2006-01-11 Thread Marco
Hi all;I have dataScroller..How can i know the clicked page value from the scroller ?(For ex. the scroller shows that i have 3 pages of results (1,2,3) for a dataTable, & i want if i clicked on 2 - for ex. - i can get 2 inside my code ).
Like in the dataTable there is an attribute "first" tells me where the cursor now, is there anything like this in the dataScroller that tells me which page I'm on now ?Thanks a lot


Re: Sorting dataTable

2006-01-11 Thread Marco
Thanks a lot


Re: Popup in new window problem

2006-01-11 Thread Nikita Shah
Hi I have a situation where i have to use a popup on one of the tabs of TabbedPane.  Now when am trying to use jenia4faces popupFrame tag, it requires it to  be inside the h:form element.. But i get _javascript_ error when i use  h:form on the page..  saying "f has no properties" ..this element is formed in _javascript_ by some hidden dummyForm..The jsp containing tabbedPanel is below:    activeTabStyleClass="active"    inactiveTabStyleClass="inactive"   activeSubStyleClass="activeSub"     &nbs
 p; 
 inactiveSubStyleClass="inactiveSub"    tabContentStyleClass="tabContent"   cellpadding="0"   cellspacing="0"   width="100%">                                                                                                        The pmView.jsp is as below :                                                               
                                                                                            rowClasses="taskTable_Row1,taskTable_Row2" var="task"      columnClasses="taskTable_nodeColumn,taskTable_weightColumn"      value="#{projectLeaf.tasks}" >                      &
 lt;DIV
 STYLE="float: left">                                                           I am not getting a clue why am not allowed to use the h:form tag on the pmView.jsp .. ?  Can anyone suggest me where am i going wrong ..?  Any help wud be appreciated.TIA  NikitaWerner Punz <[EMAIL PROTECTED]> wrote:  ::SammyR
 ulez::
 wrote:> not sure but I think> >  > > > a target="_new" should do it, but opening popups is calling for trouble, you basically open a can of worms, due to the fact that you do not havea modal dialog mechanism which works across browsers.That is one and pretty much the only thing the IE has as significant advantage over all other browsers, that you are able to open modal windows.As someone pointed out already, before opening popup windows, rather go for a jenia4faces like popup mechanism. This one delivers modal like mechanisms without having to open a new window.
	
		Yahoo! Photos 
Got holiday prints? See all the ways to get quality prints in your hands ASAP.

Re: Urgent: Collapsible Panel with data table not working IllegalStateException: Client-id : _id3ToggleCollapsed

2006-01-11 Thread Martin Marinschek
Yes, you are out of look.

Plus, you mention that you use the RI - there are several open bugs
with regard to the RI and dataTable/dataList. They are currently being
revisited by Mathias...

regards,

Martin

On 1/11/06, Simon Kitching <[EMAIL PROTECTED]> wrote:
> Saurabh Rasinghaney wrote:
> > Hi Hans,
> >
> > Thanks for your reply,
> >
> > I tried changing the tag to html library data table but still got the same 
> > error. Also I saw the html code generated for one panel and it looks like 
> > ids are getting incremented. Here id for anchor is 
> > "form:ProdReqs_0:_id7ToggleCollapsed" which is having ProdReqs_0 and should 
> > get incremented for next row. Not sure what is wrong.
> > Please see if u can find something incorrect.
> >
>
> I see this entry in the subversion logs:
>
> 
> r329598 | mmarinschek | 2005-10-31 07:46:25 +1300 (Mon, 31 Oct 2005)
> HtmlCollapsiblePanel now works in DataTable
>
> SO I guess if you're using a tomahawk release earlier than 2005-10-31
> then you're out of luck.
>
> And it looks to me like 1.1.1 was created in r328420 on 2005-10-25, so I
> expect the fix didn't make it into release 1.1.1.
>
> Unforunately, nightly builds aren't available at the moment as the
> version control/build process is being significantly reworked. They
> should be back up within a week (guess only).
>
> Regards,
>
> Simon
>


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces