RE: issues after upgrading from myfaces1.1.5 to 1.1.6
Thanks for the response But not sure how to turn on my logs ? what am I suppose to check in my web-inf lib? Am I missing any jar? Thanks, Sabitha -Original Message- From: Richard Yee [mailto:r...@cruzio.com] Sent: Wednesday, December 17, 2008 10:49 AM To: MyFaces Discussion Subject: Re: issues after upgrading from myfaces1.1.5 to 1.1.6 Check your libraries in WEB-INF/lib. Turn on your logs. It works. -R Sabitha Gopal Pandit wrote: > > Hi All, > > I upgraded from trinidad1.0.4 to 1.0.10 and everything seems to work > fine. myfaces was 1.1.5 > > But when I upgraded with myfaces 1.1.6 , I don't see anything working. > Is there any compatibility issues with myfaces 1.1.6 and trinidad1.0.10 > > Quick response is very much appreciated > > Thanks, > > Sabitha >
Re: issues after upgrading from myfaces1.1.5 to 1.1.6
Check your libraries in WEB-INF/lib. Turn on your logs. It works. -R Sabitha Gopal Pandit wrote: Hi All, I upgraded from trinidad1.0.4 to 1.0.10 and everything seems to work fine. myfaces was 1.1.5 But when I upgraded with myfaces 1.1.6 , I don’t see anything working. Is there any compatibility issues with myfaces 1.1.6 and trinidad1.0.10 Quick response is very much appreciated Thanks, Sabitha
issues after upgrading from myfaces1.1.5 to 1.1.6
Hi All, I upgraded from trinidad1.0.4 to 1.0.10 and everything seems to work fine. myfaces was 1.1.5 But when I upgraded with myfaces 1.1.6 , I don't see anything working. Is there any compatibility issues with myfaces 1.1.6 and trinidad1.0.10 Quick response is very much appreciated Thanks, Sabitha
t:inputFileUpload Default URL
Hi everyone, I'm suscessfully using the t:inputFileUpload tag, but now I have a problem setting a default value in the dir attribute of the Tag... any Ideas? Best Regards, Marcus V. Sánchez D. __ Enterprise Developer.
Re: [Trinidad] check for ppr with javascript
Hi, perhaps i found a solution. Register an event-Handler on form-elements and then check for varialbe "busy": if (typeof busy == 'undefined') // non-ppr-request This seems to work... Daniel :-) -- View this message in context: http://www.nabble.com/-Trinidad--check-for-ppr-with-javascript-tp20957976p21033978.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: [Trinidad] check for ppr with javascript
No idea... maybe using the page "onload" event. Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br On Tue, Dec 16, 2008 at 7:10 AM, Daniel Niklas wrote: > > Hi Walter, > > Walter Mourão-2 wrote: > > > > Makes the generalPPRMonitor method function be executed only when the PPR > > starts/stops. > > > ... but i want to monitor *non* ppr-request!? > > Daniel > > -- > View this message in context: > http://www.nabble.com/-Trinidad--check-for-ppr-with-javascript-tp20957976p21029570.html > Sent from the MyFaces - Users mailing list archive at Nabble.com. > >
issues with myfaces 1.1.6
Hi I upgraded my env from myfaces1.1.5 to 1.1.6 And I see a strange behavior that the functionality Is not working and tr:inputListOfValues component is also not coming up Any idea as to why is this happening or am I missing something? I replaced the myfaces-api-1.1.5,myfaces-impl-1.1.5 with myfaces-api-1.1.6,myfaces-impl-1.1.6 Any pointers would be very much helpful Thanks in advance ~Sabitha
RE: Attach the current JSF View as an attachment
Matt wrote : >Hi Madhav, >This is an interesting requirement. Off the top of my head I'd say you could >probably make a custom component to wrap the section you want to capture. Then >in that components renderer, in the >encodeBegin method you switch the >responseWriter to a StringWriter or some other writer. Then in encodeEnd you >save the contents of the StringWriter somewhere you can use it later and set >back the >correct responseWriter, and if you still want to write the response >you can do so. Also you need to override rendersChildren and have it return >true. The code would look something like this. > >private ResponseWriter oldWriter; >private StringWriter sWriter; >// encodeBegin > >sWriter = new StringWriter(); >HtmlResponseWriterImpl writer = new HtmlResponseWriterImpl(sWriter, >"text/html","utf-8"); > >oldWriter = context.getResponseWriter(); >context.setResponseWriter(writer); > > >//encodeEnd >StringBuffer sb = sWriter.getBuffer(); >// do what you want with the sb >context.setResponseWriter(oldWriter); >// if you want to output it as well... >oldWriter.write(sb.toString()); > >I think this may work for what you want to do. > >Matt Initially i tried doing that using a call to a method on click of a link but then i realized that it will still output the entire HTML including the left navigation, header and footer. I created a custom component to capture the part of the Page. I provided 2 attributes - targetPath - where to save the Html output and isCaptured - to conditionally capture It works well. Thanks for all your help. Regards, Madhav From: Madhav Bhargava [mailto:madhav_bharg...@infosys.com] Sent: mercredi 3 décembre 2008 11:51 To: MyFaces Discussion Subject: Attach the current JSF View as an attachment Hi All, I have a rather unique requirement - On a JSF page I have a command button. On click of this button I want to capture the generated HTML for the current view I am on, truncate the left navigation, header and the footer. Extract the body HTML and open a save dialog box to save this HTML page with only body as attachment. Any ideas of how it could be done using JSF? Thanks, Madhav CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS***
Re: [Trinidad] check for ppr with javascript
Hi Walter, Walter Mourão-2 wrote: > > Makes the generalPPRMonitor method function be executed only when the PPR > starts/stops. > ... but i want to monitor *non* ppr-request!? Daniel -- View this message in context: http://www.nabble.com/-Trinidad--check-for-ppr-with-javascript-tp20957976p21029570.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Post form to external url with method invocation
If using trinidad, you could do that as well by creating the form dynamically with javascript in your backing bean method and register the script with the ExtendedRenderKitService: public void yourAction(ActionEvent evt) { FacesContext facesContext = FacesContext.getCurrentInstance(); ExtendedRenderKitService service = Service.getRenderKitService( facesContext, ExtendedRenderKitService.class ); service.addScript( facesContext, createMyForm() ); } private String createMyForm( String baseUrl, String selectedIds, String forwardPage ) { StringBuilder sb = new StringBuilder( 1024 ); sb.append( "myform = document.createElement('form');" ); sb.append( "myform.method='post';\n" ); sb.append( "myform.action='" ).append( baseUrl ).append( "';\n" ); sb.append( "myform.enctype='multipart/form-data';\n" ); sb.append( "myform.name='helloForm';\n" ); sb.append( "myform.target='_blank';" ); createInputHidden(sb, "myform", "MID", 123); sb.append("document.forms[0].parentNode.appendChild(myform);"); sb.append( "myform.submit();\n" ); return sb.toString(); } Cheers, Bruno 2008/12/15 > > Hi, > > I'm implementing a payment to a bank from JSF application. I need to > pass some prameters to an external https URL of the bank by POST method. > > I could do it with just plain form: > > https://address.cz"; METHOD=POST> > > > > > > But I also need to call a bean method that logs the submitted values to > database. > > Maybe I could post the form from bean action method but how? > > > > Thanks. > > Jiri Pejchal > > > > >
Re: Post form to external url with method invocation
jiri.pejc...@gmail.com schrieb: > Hi, > > I'm implementing a payment to a bank from JSF application. I need to > pass some prameters to an external https URL of the bank by POST method. > > I could do it with just plain form: > > https://address.cz"; METHOD=POST> > > > > > > But I also need to call a bean method that logs the submitted values to > database. > > Maybe I could post the form from bean action method but how? > The Apache httpclient project provides a library that makes it easy to generate http requests. You could use this lib from within your action method. See: http://hc.apache.org/httpclient-3.x/ Regards, Simon -- -- Emails in "mixed" posting style will be ignored -- (http://en.wikipedia.org/wiki/Posting_style)