RE: DatePicker in IE: operation aborted
where i can find zip file??? in site i can't find, send me [EMAIL PROTECTED] or write here where i find it and integate in project thank you Schabek Łukasz wrote: This is an IE bug only, reported here http://issues.apache.org/jira/browse/TAPESTRY-788 Replace org.apache.tapestry.util.PageRenderSupportImpl.class with file in zip. -Original Message- From: Martin Carel [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 5:02 PM To: Tapestry users Subject: DatePicker in IE: operation aborted Hi ! I have issues with the DatePicker component using Tap4. Works fine in Firefox, but I got the operation aborted popup in IE, which prevents from showing the page. Thus, this is critical for our application. When I have only the DatePicker component in my page, it works fine. But when I put my border component (rendering headers and footers, which includes some JS), that's when the problem arises. I cannot guarantee the JS in those headers/footers is error-free (and I suspect the DatePicker component is sensitive to JS errors on the same page - for example more than one /body tags) and I cannot afford to change any of the code generated by this border component. -- I have investigated the problem in the the mailing list and in JIRA (https://issues.apache.org/jira/browse/TAPESTRY). http://issues.apache.org/jira/browse/TAPESTRY-173 This absolute/relative position issue is not my problem, because when I have my DatePicker component at the top level (directly under body), but with the border component, I still have the problem. http://issues.apache.org/jira/browse/TAPESTRY-222 I added the catch clause in the getPoint() function of DatePicker.js in tapestry-4.0.jar, but this didn't change anything (even if it is said to be solved in Tap4). http://issues.apache.org/jira/browse/TAPESTRY-233 I have removed the call to this._calDiv.focus() in DatePicker.js in tapestry-4.0.jar, but this didn't change anything (even if it is said to be solved in Tap4). As for the mailing list, there has been some issues with the DatePicker component and SSL (a missing src attribute), but this is not exactly my problem. Any hints would be appreciated. /Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/DatePicker-in-IE%3A-operation-aborted-tf1026724.html#a6751918 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Escaping quotes in OGNL expressions in Tapestry templates
have you tried: value=ognl:'Section: quot;' + section.name + 'quot;' ? Cheers, Ron Jim Steinberger wrote: Hello, I ran into the situation where I needed to insert a double-quote in an OGNL expression. I wanted to do: value=ognl:'Section: \' + section.name + '\', but the Tapestry parser doesn't like that very much. A solution offered in the archives is to explicitly declare the component in the .page or .jwc file, where you can escape strings in the parameter-bindings just like in Java. I prefer anonymous components directly in the template, myself, and wanted to offer the alternative of using Java's Unicode capability: ognl:'Section: \u0022' + section.name + '\u0022'. Double Quote = \u0022, Single Quote = \u0027. Works great for me in Tapestry 4.0.2. Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: Escaping quotes in OGNL expressions in Tapestry templates
I was going to if Unicode didn't fly -- but I should have anyway: it works perfectly, of course, and it's more portable (list of browsers that support Unicode: http://www.alanwood.net/unicode/browsers.html ). Though if you don't have to worry about browsers that don't support Unicode, Unicode /does/ have more alternatives (like using double-primes, quotes that turn inward, etc.). Thanks! Jim -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Ron Piterman Sent: Wednesday, October 11, 2006 5:31 AM To: users@tapestry.apache.org Subject: Re: Escaping quotes in OGNL expressions in Tapestry templates have you tried: value=ognl:'Section: quot;' + section.name + 'quot;' ? Cheers, Ron Jim Steinberger wrote: Hello, I ran into the situation where I needed to insert a double-quote in an OGNL expression. I wanted to do: value=ognl:'Section: \' + section.name + '\', but the Tapestry parser doesn't like that very much. A solution offered in the archives is to explicitly declare the component in the .page or .jwc file, where you can escape strings in the parameter-bindings just like in Java. I prefer anonymous components directly in the template, myself, and wanted to offer the alternative of using Java's Unicode capability: ognl:'Section: \u0022' + section.name + '\u0022'. Double Quote = \u0022, Single Quote = \u0027. Works great for me in Tapestry 4.0.2. Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
4.1.1 performance issues
Hi all, I am facing some performance issues with my application using the latest 4.1.1 snapshot : - on page load, the browser freezes a few seconds (much better than the earlier 4.1 releases, but still slow) - some resources seem not to be cached by IE (it performs better with FF). For instance, on a DropdownDatePicker, each time I click on the calendar icon on IE, it reloads all the calendar images. I also noticed every now and then I have some error logs saying that it couldn't load some classpath resources. If I reload the page, the resource is normally found (sometimes I need to retry 2 or 3 times until it finds all the resources) So I decided I'd try to copy all the dojo and tapestry js stuff under my context root and load them through context-based assets. Although not very elegant or maintainable, it would probably perform better and help IE to properly cache resources. Unfortunately, this doesn't work: if I specify dojoSource, dojoPath and tapestrySource as context-based assets on the Shell component, it still searches the resources on the classpath. on my Border.java: @Asset(context:static/dojo/dojo.js) public abstract IAsset getDojoSource(); on my Border.html html jwcid=@Shell ... dojoSource=asset:dojoSource on my error log: WARN Asset - Classpath resource '/static/dojo/dojo.js' does not exist. So my questions: - Am I doing something wrong? Is there any way to make dojo stuff static? - Are other people here experiencing the same performance issues? - Are there any plan to address these performance issues? Thanks Ch.
Open new window on a form submit?
Hello, Is it possible to use a component of type Form and have the form submit listner open the page in a new window? I am thinking it might have something to do with cycle.encodeURL() in the listener. Thanks in advance, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
checkboxes problem
Hello I have the following problem I have a list of checkboxes, when i select a checkbox the page recharges itself. But if i select the last of the checkboxes in the list, when the page recharges, all checkboxes appears selected. Anybody knows Why this happens?, and What can I do to solve this problem? This is the code HTML form jwcid=categoriesListForm input type=submit value=Eliminar jwcid=deleteCategory / table width=100% border=0 cellpadding=0 cellspacing=1 tr td width=5% align=centernbsp;/td td width=95% align=leftNombre/td /tr tr jwcid=categoriesList td width=5% align=centerinput type=checkbox jwcid=delete//td td width=95% align=leftspan jwcid=categoryNameNombreCategoriacute;a/span/td span jwcid=updateCategories/ /tr /table /form PAGE page-specification class=ws.nuevosmedios.quicklearnCRUD.CategoriesManager component id=categoriesList type=For binding name=source value=categoriesList/ binding name=value value=currentCategory/ binding name=element value=literal:tr/ /component component id=categoryName type=Insert binding name=value value=currentCategory.name/ /component component id=updateCategories type=InvokeListener binding name=listener value=listener:updateCategories/ /component component id=categoriesListForm type=Form binding name=listener value=listener:actionOnCategory/ /component component id=deleteCategory type=Submit binding name=selected value=buttonClicked/ binding name=tag value=literal:DELETE/ binding name=listener value=listener:updateCategories/ /component /page-specification JAVA public abstract class CategoriesManager extends BasePage implements PageBeginRenderListener{ private List categoriesList; public abstract CategoriesGUI getCurrentCategory(); public void pageBeginRender(PageEvent event) { ... categoriesList = .; } public List getCategoriesList() { return categoriesList; } private String buttonClicked; public void setButtonClicked(String buttonClicked) { this.buttonClicked = buttonClicked; } public String actionOnCategory(IRequestCycle cycle) { if (buttonClicked.equals(DELETE)) { return null; } return null; } public abstract boolean isToDeleteCategory(); boolean category; public boolean getToDeleteCategory(){ return category; } public void setToDeleteCategory(boolean cat){ this.category = cat;; } public void updateCategories(IRequestCycle cycle) { IValidationDelegate delegate = (IValidationDelegate) getBeans().getBean(delegate); if (cycle.isRewinding()) { if (isToDeleteCategory()) { Integer i = getCurrentCategory().getQlCateId(); deleteCategory(i); } } } Thanks Cordialmente, ~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~ ANDRÉS NATES M. Director de implantación e infraestructura. Nuevos Medios Calle 25 No. 127-220 Autopista Cali-Jamundí Km. 7 Tel: (572) - 524 07 77 Ext. 2173 Email: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Cali mailto:[EMAIL PROTECTED] - Colombia POLÍTICA DE CALIDAD Proveer soluciones tecnológicas de software para la gestión del conocimiento cumpliendo lo pactado con los clientes mediante el mejoramiento continuo y la innovación, apoyado en la sinergia corporativa de Parquesoft.
Re: DirectLink in Abstract Component
Please, have anybody created a DirectLink in a Custom Component that extends from AbstractComponent? How do you do that? I could really need some pointers! Thanks in advance, Jacob -- View this message in context: http://www.nabble.com/DirectLink-in-Abstract-Component-tf2419541.html#a6761175 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exceptions Email
I can think of a couple of different approaches. I'm doing this now in tap3 using a custom IMonitor implementation (tap3 calls the IMonitor's serviceException(Throwable exception) method when it encounters an exception, before it loads the error page). But, IMonitor is, apparently, deprecated in Tap4. I'm not sure what the corresponding solution is there. Another approach would be to create a custom error page. If you add the setException method to your page, tapestry will set it for you; you could then send the e-mail from there. I'm sure there's some nifty hivemind way of doing this, as well (I'm assuming there's some combination of hivemind magic that will let you recapture some or all of the functionality of IMonitor), but someone else will have to fill in the details there. :) Robert [EMAIL PROTECTED] wrote: Hey guys. I'm approaching a deployment of my Tap4.0 app in production. Whenever an exception occurs, I'd like to have an email get sent to me with the information of the exception rather then relying on people sending them to me. Has anyone gone about doing this? Any suggestions? Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exceptions Email
I haven't tried but perhaps you can simply use an SMTP appender for the ExceptionReporter? On Wed, 11 Oct 2006 19:57:00 +0200, Robert Zeigler [EMAIL PROTECTED] wrote: I can think of a couple of different approaches. I'm doing this now in tap3 using a custom IMonitor implementation (tap3 calls the IMonitor's serviceException(Throwable exception) method when it encounters an exception, before it loads the error page). But, IMonitor is, apparently, deprecated in Tap4. I'm not sure what the corresponding solution is there. Another approach would be to create a custom error page. If you add the setException method to your page, tapestry will set it for you; you could then send the e-mail from there. I'm sure there's some nifty hivemind way of doing this, as well (I'm assuming there's some combination of hivemind magic that will let you recapture some or all of the functionality of IMonitor), but someone else will have to fill in the details there. :) Robert [EMAIL PROTECTED] wrote: Hey guys. I'm approaching a deployment of my Tap4.0 app in production. Whenever an exception occurs, I'd like to have an email get sent to me with the information of the exception rather then relying on people sending them to me. Has anyone gone about doing this? Any suggestions? Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exceptions Email
Thanks for the prompt Reply robert. I'm putting in the code to send off an email inside the renderComponent() body. This should work well each time an exception is displayed. I figure why not keep it simple rather then worry about hivemind services? Greg -Original Message- From: Robert Zeigler [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 1:57 PM To: Tapestry users Subject: Re: Exceptions Email I can think of a couple of different approaches. I'm doing this now in tap3 using a custom IMonitor implementation (tap3 calls the IMonitor's serviceException(Throwable exception) method when it encounters an exception, before it loads the error page). But, IMonitor is, apparently, deprecated in Tap4. I'm not sure what the corresponding solution is there. Another approach would be to create a custom error page. If you add the setException method to your page, tapestry will set it for you; you could then send the e-mail from there. I'm sure there's some nifty hivemind way of doing this, as well (I'm assuming there's some combination of hivemind magic that will let you recapture some or all of the functionality of IMonitor), but someone else will have to fill in the details there. :) Robert [EMAIL PROTECTED] wrote: Hey guys. I'm approaching a deployment of my Tap4.0 app in production. Whenever an exception occurs, I'd like to have an email get sent to me with the information of the exception rather then relying on people sending them to me. Has anyone gone about doing this? Any suggestions? Thanks, Greg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DirectLink in Abstract Component
The DirectLink component is not that complex: it uses the direct service to create a link. When the user clicks on the link, the direct service handles almost everything. What you can do (for example) is to implement IDirect in your component (which extends AbstractComponent) and generate a link using the direct service which will trigger that component. I recommend you to look at the source code of DirectComponent. As I know you can define contained components in any component. So another solution is to define a DirectLink in your .jwc file and explicitly render it from the renderComponent() method of your custom component. Regards, Norbi jake123 wrote: Please, have anybody created a DirectLink in a Custom Component that extends from AbstractComponent? How do you do that? I could really need some pointers! Thanks in advance, Jacob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing an application state object from a service
I have an application state object whos scope is session and I have a service object whos scope is threaded. Is it possible to inject the application state object into the service object via hivemind? If then how? Cheers, Hajaansh
Re: Accessing an application state object from a service
Inject the application state manager object. Then in the thread get the actual state object. service-point id=sessionFactory interface=com.transparentpolitics.core.appstate.TransPolSessionManager invoke-factory construct class=com.transparentpolitics.core.appstate.TransPolSessionManagerImpl initialize-method=init set-object property=stateManager value=infrastructure:applicationStateManager/ /construct /invoke-factory /service-point and then : transPolSession = (TransPolSession) stateManager.get(USER_INFORMATION); On 10/11/06, Hajaansh [EMAIL PROTECTED] wrote: I have an application state object whos scope is session and I have a service object whos scope is threaded. Is it possible to inject the application state object into the service object via hivemind? If then how? Cheers, Hajaansh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]