Re: Grid onAction Problem IEM6
Hey Taha, thank you very much for your suggestion. I removed the spacer.gif from the project but unfortunately the error still exist. At next I will try to figure out the content of Request.getPath(). -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-onAction-Problem-IEM6-tp3339635p3347425.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Grid onAction Problem IEM6
I have logged the request.getPath(). It is illustrated in the following: [INFO] AppModule.TimingFilter request.getPath(): /index.grid.pager/2 [INFO] AppModule.TimingFilter request.getPath(): / [ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: Exception in method org.apache.tapestry5.corelib.components.GridPager.onAction(int, java.lang.String) (at GridPager.java:177), parameter #1: Coercion of assets to type java.lang.Integer (via String -- Long, Long -- Integer) failed: For input string: assets org.apache.tapestry5.runtime.ComponentEventException: Exception in method org.apache.tapestry5.corelib.components.GridPager.onAction(int, java.lang.String) (at GridPager.java:177), parameter #1: Coercion of assets to type java.lang.Integer (via String -- Long, Long -- Integer) failed: For input string: assets [at classpath:org/apache/tapestry5/corelib/components/Grid.tml, line 15, column 28] at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1076) at org.apache.tapestry5.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:68) at org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42) at $ComponentEventRequestHandler_12d9d5bbb05.handle($ComponentEventRequestHandler_12d9d5bbb05.java) at org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42) at $ComponentEventRequestHandler_12d9d5bbb05.handle($ComponentEventRequestHandler_12d9d5bbb05.java) at org.apache.tapestry5.services.TapestryModule$44.handle(TapestryModule.java:2105) at $ComponentEventRequestHandler_12d9d5bbb05.handle($ComponentEventRequestHandler_12d9d5bbb05.java) at org.apache.tapestry5.jpa.JPAModule$2.handle(JPAModule.java:99) at $ComponentEventRequestHandler_12d9d5bbb05.handle($ComponentEventRequestHandler_12d9d5bbb05.java) at $ComponentEventRequestHandler_12d9d5bba4a.handle($ComponentEventRequestHandler_12d9d5bba4a.java) at org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:127) at $Dispatcher_12d9d5bba4c.dispatch($Dispatcher_12d9d5bba4c.java) at $Dispatcher_12d9d5bba3f.dispatch($Dispatcher_12d9d5bba3f.java) at org.apache.tapestry5.services.TapestryModule$17.service(TapestryModule.java:1029) at org.apache.tapestry5.internal.services.LocalizationFilter.service(LocalizationFilter.java:42) at $RequestHandler_12d9d5bba40.service($RequestHandler_12d9d5bba40.java) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) at $RequestHandler_12d9d5bba40.service($RequestHandler_12d9d5bba40.java) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:621) at $RequestHandler_12d9d5bba40.service($RequestHandler_12d9d5bba40.java) at org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:611) at $RequestHandler_12d9d5bba40.service($RequestHandler_12d9d5bba40.java) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85) at $RequestHandler_12d9d5bba40.service($RequestHandler_12d9d5bba40.java) at com.tsystems.prototyp.services.AppModule$1.service(AppModule.java:75) at $RequestFilter_12d9d5bba3a.service($RequestFilter_12d9d5bba3a.java) at $RequestHandler_12d9d5bba40.service($RequestHandler_12d9d5bba40.java) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:83) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106) at $RequestHandler_12d9d5bba40.service($RequestHandler_12d9d5bba40.java) at $RequestHandler_12d9d5bba36.service($RequestHandler_12d9d5bba36.java) at org.apache.tapestry5.services.TapestryModule$16.service(TapestryModule.java:1007) at org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) at $HttpServletRequestFilter_12d9d5bba35.service($HttpServletRequestFilter_12d9d5bba35.java) at $HttpServletRequestHandler_12d9d5bba37.service($HttpServletRequestHandler_12d9d5bba37.java) at $HttpServletRequestHandler_12d9d5bba34.service($HttpServletRequestHandler_12d9d5bba34.java) at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:179) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at
Re: CSS not applied on zone update in IE7
Ok, 2 days of testing later I think I know what's going on. The problems arise when there are a lot of css files loaded on page load. I have a complex page with lots of components which loads about 26 css files. On ajax zone update the new css files associated with the loaded content will be added to the HEAD, but the rules will not be applied. IE developer tools does not show them as available under the CSS tab either. Once I reduce the number of css files loaded on page load under 25, it starts to work again. This is both the case under IE8 and IE7. The good news is that I now have a pressing reason to optimise the number of css files i use ;-) On that note, I have just voted for: https://issues.apache.org/jira/browse/TAP5-1377 so that css can be combined as well. I Hope it saves someone else some time. Cheers, Joost On 17/01/11 10:41 PM, Joost Schouten (mailing lists) wrote: Hi, I'm doing some more testing as we speak and I might have been too quick in my assumptions. It might be related to some incorrect formatting in an unrelated area of my page which upsets IE but not the other browsers. I'll post back if I can consistently reproduce the problem. Running a slow VMWare windows image on my mac makes this testing slightly tedious though :( Thx, Joost On Mon, Jan 17, 2011 at 8:57 PM, Howard Lewis Shiphls...@gmail.com wrote: It's supposed to just work; the new CSS assets are converted into new link tags and IE is supposed to load them. I'm pretty certain this works for FF and I tested, at one time with IE 6, I believe. On Sat, Jan 15, 2011 at 9:59 AM, Joost Schouten (mailing lists) joost...@jsportal.com wrote: Hi, When I update a zone with a block containing new CSS files these CSS rules do not seem to get applied to the content in IE7. Does anyone know this problem and if so, a fix? I run tap 5.2.4 Cheers, Joost PS: I'm now hacking in a fix by adding the css needed by the ajax requests to the containing page. But this obviously is not very elegant. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry 5.2 Disable element id autogeneration
Hi everyone. How can I disable autogeneration of form ids? I have a form which is located inside zone. JAVA: @Component(parameters = { id=literal:registrationFormZone, update=show }) private Zone registrationFormZone; @Component(id=registrationForm, parameters = { id=literal:registrationForm, clientId=literal:registrationForm, clientValidation=false, zone=registrationFormZone }) private Form registrationForm; ... TML: t:container xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; div t:id=registrationFormZone form method=post t:id=registrationForm pЛогин (e-mail): input class=input type=text t:id=email //p pПароль: input class=input type=password t:id=password //p pinput disabled=false t:type=submit class=Go golite regGo value=Принять и зарегистрироваться //p /form /div /t:container Result HTML: div id=registrationFormZone class=t-zone form id=registrationForm_12d9dac2ead method=post action=/shop/products.template.template.loginregisterform.registrationformcomponent.registrationform clientid=registrationForm class=t-prevent-submission /form /div After the first submit the content of zone is updated and form has another id: div id=registrationFormZone class=t-zone form id=registrationForm_12d9dad0b88 method=post action=/shop/products.template.template.loginregisterform.registrationformcomponent.registrationform clientid=registrationForm And the second submit will not send data via AJAX (may be the event assigned to submit button is linked to old id and not valid anymore). I looked into the sources of Form.class: void beginRender(MarkupWriter writer) { clientId = javascriptSupport.allocateClientId(resources); May be it would be better to add parameter clientId and check if user didn't assign custom id make it automatically? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-Disable-element-id-autogeneration-tp3347539p3347539.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Q: Java Script Check All The CheckBox?
On Wed, 19 Jan 2011 01:21:02 -0200, penyihirkecil penyihirke...@gmail.com wrote: is there any simple way to do that without having a new component. I mean it just feel weird. this simple things should be solve using simple solution. There is a simple solution. Just writing ordinary JavaScript to do that. There's no need to have Tapestry code. Of course, you can write a component or mixin to reuse this solution, but it's not obligatory. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.2 Disable element id autogeneration
Put the submit button inside the zone as well, then it will link to the new id. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Tapestry-5-2-Disable-element-id-autogeneration-tp5938959p5939355.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Combine scripts doesn't work in 5.2.4?
The only example I've seen is in TapestryModule.java: public static void contributeJavaScriptStackSource(MappedConfigurationString, JavaScriptStack configuration) { configuration.addInstance(InternalConstants.CORE_STACK_NAME, CoreJavaScriptStack.class); configuration.addInstance(core-datefield, DateFieldStack.class); } There is a configuration.overrideInstance, so in your AppModule you can create a wrapper around CoreJavaScriptStack and call override with it. Or you can just create your own stack and presumably have two js files. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Combine-scripts-doesn-t-work-in-5-2-4-tp5929290p5939372.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
tapestry.apache.org is down?
Hi, http://tapestry.apache.org/tapestry5/ is up http://tapestry.apache.org is down (for me at least) Luke - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tapestry.apache.org is down?
Actually, everything under tapestry.apache.org seems to be down. On 19 Jan 2011, at 13:28, Luke Wilson wrote: Hi, http://tapestry.apache.org/tapestry5/ is up http://tapestry.apache.org is down (for me at least) Luke - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tapestry.apache.org is down?
yes, it is down taha On Wed, Jan 19, 2011 at 7:01 PM, Luke Wilson l...@viscri.co.uk wrote: Actually, everything under tapestry.apache.org seems to be down. On 19 Jan 2011, at 13:28, Luke Wilson wrote: Hi, http://tapestry.apache.org/tapestry5/ is up http://tapestry.apache.org is down (for me at least) Luke - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tapestry.apache.org is down?
http://apache.org/ is down for me On Wed, Jan 19, 2011 at 16:34, Taha Hafeez tawus.tapes...@gmail.com wrote: yes, it is down taha On Wed, Jan 19, 2011 at 7:01 PM, Luke Wilson l...@viscri.co.uk wrote: Actually, everything under tapestry.apache.org seems to be down. On 19 Jan 2011, at 13:28, Luke Wilson wrote: Hi, http://tapestry.apache.org/tapestry5/ is up http://tapestry.apache.org is down (for me at least) Luke - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Dmitry Gusev AnjLab Team http://anjlab.com
Re: tapestry.apache.org is down?
Aha, it seems to be back up now. On 19 Jan 2011, at 13:36, Dmitry Gusev wrote: http://apache.org/ is down for me On Wed, Jan 19, 2011 at 16:34, Taha Hafeez tawus.tapes...@gmail.com wrote: yes, it is down taha On Wed, Jan 19, 2011 at 7:01 PM, Luke Wilson l...@viscri.co.uk wrote: Actually, everything under tapestry.apache.org seems to be down. On 19 Jan 2011, at 13:28, Luke Wilson wrote: Hi, http://tapestry.apache.org/tapestry5/ is up http://tapestry.apache.org is down (for me at least) Luke - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Dmitry Gusev AnjLab Team http://anjlab.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.2 Disable element id autogeneration
Entire form is inside the zone component, including submit button. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-Disable-element-id-autogeneration-tp3347539p3347955.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.2 Disable element id autogeneration
I've made a little fix in Form component: /** * Id parameter */ @Parameter private String id; void beginRender(MarkupWriter writer) { if (null != id !.equals(id.trim())) { clientId = id; } else { clientId = javascriptSupport.allocateClientId(resources); } and it works fine now. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-Disable-element-id-autogeneration-tp3347539p3347966.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Resurrected: T5 Rendering a column as text box in a grid when the columnName is dynamic
Hi, This entry from 2008 very well describes my problem. Any ideas? --- http://tapestry.1045711.n5.nabble.com/T5-Rendering-a-column-as-text-box-in-a-grid-when-the-columnName-is-dynamic-td2417938.html Hello, I have a T5 Grid which can have dynamic number of columns. I am using the model to add/delete the columns. I can get it to work perfect if it is a text field. I actually want some of those columns to be a text box. Since the columns are generated dynamically, i am not able to specify the cellName in the .tml file like t:parameter name=actionCell input t:type=TextField t:id=actionId t:value=actionValue/ /t:parameter I tried to use a variable for the parameter name like t:parameter name=${cellName} input t:type=TextField t:id=actionId t:value=actionValue/ /t:parameter but it didnot work for me. If anyone can let me know how I could render a column programatically when the column name is known only at runtime, i would greatly appreciate it. Thanks, Rajesh Vargheese
Service order in a tapestry library?
I try to contribute a JavaScriptStack in a library module, and it ends up failing. The TapestryModule seems load after the libraries. I assume it would work fine if I put it in my AppModule instead. How would you use it in a library though? The contribution: public static void contributeJavaScriptStackSource(MappedConfigurationString, JavaScriptStack configuration) { configuration.addInstance(JQUERYSTACK, JQueryJavaScriptStack.class); } The error: 2011-01-19 10:55:36.703:WARN::FAILED app: java.lang.IllegalArgumentException: Contribution com.x.y.MyModule.contributeJavaScriptStackSource(MappedConfiguration) (at MyModule.java:43) is for service 'JavaScriptStackSource', which does not exist. Module.contributeJavaScriptStackSource(MappedConfiguration) (at MyModule.java:43) is for service 'JavaScriptStackSource', which does not exist. at org.apache.tapestry5.ioc.internal.RegistryImpl.validateContributeDefs(RegistryImpl.java:199) at org.apache.tapestry5.ioc.internal.RegistryImpl.init(RegistryImpl.java:174) at org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:170) In the log: 2011-01-19 10:55:40,138 [main] INFO org.apache.tapestry5.ioc.RegistryBuilder - Adding module definition for class org.apache.tapestry5.ioc.services.TapestryIOCModule 2011-01-19 10:55:40,263 [main] INFO org.apache.tapestry5.ioc.RegistryBuilder - Adding module definition for class org.apache.tapestry5.spring.SpringModule 2011-01-19 10:55:40,319 [main] INFO org.apache.tapestry5.ioc.RegistryBuilder - Adding module definition for class com.x.y.MyModule 2011-01-19 10:55:40,323 [main] INFO org.apache.tapestry5.ioc.RegistryBuilder - Adding module definition for class org.apache.tapestry5.services.TapestryModule 2011-01-19 10:55:40,409 [main] INFO org.apache.tapestry5.ioc.RegistryBuilder - Adding module definition for class org.apache.tapestry5.internal.services.InternalModule 2011-01-19 10:55:40,452 [main] INFO org.apache.tapestry5.ioc.RegistryBuilder - Adding module definition for class com.x.y.z.AppModule -- View this message in context: http://tapestry-users.832.n2.nabble.com/Service-order-in-a-tapestry-library-tp5940301p5940301.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Resurrected: T5 Rendering a column as text box in a grid when the columnName is dynamic
Any tapestry identifiers in tml are not dynamically changeable. First step would be programmatically creating the bean model in the java code, and passing that to the grid. Customizing those dynamic blocks can be tricky though, probably involving PropertyEditBlocks in the appmodule or something. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Resurrected-T5-Rendering-a-column-as-text-box-in-a-grid-when-the-columnName-is-dynamic-tp5940109p5940318.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Service order in a tapestry library?
It should work in a library module as well. You can contribute to any service available in the Registry. On Wed, Jan 19, 2011 at 5:11 PM, LLTYK ll...@mailinator.com wrote: I try to contribute a JavaScriptStack in a library module, and it ends up failing. The TapestryModule seems load after the libraries. I assume it would work fine if I put it in my AppModule instead. How would you use it in a library though? The contribution: public static void contributeJavaScriptStackSource(MappedConfigurationString, JavaScriptStack configuration) { configuration.addInstance(JQUERYSTACK, JQueryJavaScriptStack.class); } The error: 2011-01-19 10:55:36.703:WARN::FAILED app: java.lang.IllegalArgumentException: Contribution com.x.y.MyModule.contributeJavaScriptStackSource(MappedConfiguration) (at MyModule.java:43) is for service 'JavaScriptStackSource', which does not exist. Module.contributeJavaScriptStackSource(MappedConfiguration) (at MyModule.java:43) is for service 'JavaScriptStackSource', which does not exist. at org.apache.tapestry5.ioc.internal.RegistryImpl.validateContributeDefs(RegistryImpl.java:199) at org.apache.tapestry5.ioc.internal.RegistryImpl.init(RegistryImpl.java:174) at org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:170) In the log: 2011-01-19 10:55:40,138 [main] INFO org.apache.tapestry5.ioc.RegistryBuilder - Adding module definition for class org.apache.tapestry5.ioc.services.TapestryIOCModule 2011-01-19 10:55:40,263 [main] INFO org.apache.tapestry5.ioc.RegistryBuilder - Adding module definition for class org.apache.tapestry5.spring.SpringModule 2011-01-19 10:55:40,319 [main] INFO org.apache.tapestry5.ioc.RegistryBuilder - Adding module definition for class com.x.y.MyModule 2011-01-19 10:55:40,323 [main] INFO org.apache.tapestry5.ioc.RegistryBuilder - Adding module definition for class org.apache.tapestry5.services.TapestryModule 2011-01-19 10:55:40,409 [main] INFO org.apache.tapestry5.ioc.RegistryBuilder - Adding module definition for class org.apache.tapestry5.internal.services.InternalModule 2011-01-19 10:55:40,452 [main] INFO org.apache.tapestry5.ioc.RegistryBuilder - Adding module definition for class com.x.y.z.AppModule -- View this message in context: http://tapestry-users.832.n2.nabble.com/Service-order-in-a-tapestry-library-tp5940301p5940301.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Best regards, Igor Drobiazko http://tapestry5.de
Re: Grid and clientId
Just provide a value for the informal parameter id. t:grid id=foo/t:grid On Mon, Jan 17, 2011 at 5:53 PM, Wechsung, Wulf wulf.wechs...@sap.comwrote: Hello fellow tapestriants, I'm trying to do a mixin for grids. As usual, the mixin does some javascript which I output in the @AfterRender of the mixin. Naturally, in the javascript I would like to reference the client-side representation of the element that is being mixed into (the grid's table). As per copy pasta from t5.corelib.mixins.Autocomplete I would like to @InjectContainer Grid grid and then simply do grid.getClientId(). Unfortunately Grid does not implement t5.ClientElement. Is this a bug? How can I : - make the Grid allocate an id for the table - render it out, - access the allocated id Ideally all this would be triggered by the mixin so that the mixin could take any plain old grid. Thanks and kind Regards, Wulf - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Best regards, Igor Drobiazko http://tapestry5.de
Re: Service order in a tapestry library?
Nevermind, it was a maven classpath problem. It works fine regardless of the order of those Adding module statements. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Service-order-in-a-tapestry-library-tp5940301p5940531.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t5: 5.2.4 and IE8
I suspect you simply need to add noConflict to the end of the jquery js (without having to reminify). As long as it is in the same file it'll satisfy IE8. -- View this message in context: http://tapestry-users.832.n2.nabble.com/t5-5-2-4-and-IE8-tp5934819p5940730.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: t5: 5.2.4 and IE8
That's how I had it before, it doesn't work. I tried adding it to the end of the normal minified jQuery, and that worked on most browsers (I tested FF 3.6, IE 6, IE 7, and some version of chrome), but it doesn't work on IE 8. I got errors in Tapestry's JS when jQuery was included even with noConflict, and it seems like Angelo experienced it too. On Wed, Jan 19, 2011 at 1:10 PM, LLTYK ll...@mailinator.com wrote: I suspect you simply need to add noConflict to the end of the jquery js (without having to reminify). As long as it is in the same file it'll satisfy IE8. -- View this message in context: http://tapestry-users.832.n2.nabble.com/t5-5-2-4-and-IE8-tp5934819p5940730.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Q: Java Script Check All The CheckBox?
You can trim that down even more: function selectAllCheckboxes(select) { var checked = $('checkAllRemove').checked; $('newspaperForm').getInputs('checkbox').each(function(el) { el.checked = checked; }); } Also, I realize this probably isn't your production code, but you should always wrap the labels for checkboxes and radio buttons in a label element. This lets you click the text instead of the tiny box... input t:type=checkbox t:id=yahoo_check value=subscribeYahoo/label for=yahoo_checkYahoo/label input t:type=checkbox t:id=google_check value=subscribeGoogle/label for=google_checkGoogle/label input type=checkbox id=checkAllRemove onClick=selectAllCheckboxes();/label for=checkAllRemoveCheck All/label Josh On Tue, Jan 18, 2011 at 11:54 PM, dwi ardi irawan penyihirke...@gmail.comwrote: I agree this is my solution. thnx to josh canfield who give me the idea. Instead of using document.getElementsByTagName(INPUT) then check whether is checkbox or not, I prefer to use this method. the same idea as josh canfield but I try to get the form element as the root of iteration, not the input. it's to avoid if there is more than one form in one page. IHMO(cos I doesn't have enough experiance to make an opinion which one is better). what I mean with a simple solution is we try to do this in client side. and we don't have to use others component. script type=text/javascript language=JavaScript function selectAllCheckboxes(select){ !-- // var form = document.getElementById(newspaperForm); var checkAll = document.getElementById(checkAllRemove); if(checkAll.checked){ for (var i=0;iform.length;i++) { if (form.elements[i].type == checkbox) { form.elements[i].checked = true; } } }else{ for (var i=0;iform.length;i++) { if (form.elements[i].type == checkbox) { form.elements[i].checked = false; } } } // -- } /script form t:type=form t:id=newspaperForm input t:type=checkbox t:value=subscribeYahoo/Yahoo input t:type=checkbox t:value=subscribeGoogle/Google input type=checkbox id=checkAllRemove onClick=selectAllCheckboxes();/Check All input type=submit value=Submit/br/ Result : b${value}/b /form I am sorry, I am not very fluently in english. ^^, regards, dwi ardi irawan On Wed, Jan 19, 2011 at 12:16 PM, Taha Hafeez tawus.tapes...@gmail.com wrote: Yes, this is an option as are others and these can be used AFAIK. The thread there shows a way to use it even if javascript is disabled regards Taha --
Re: Grid onAction Problem IEM6
On Tue, Jan 18, 2011 at 6:34 AM, Tooobi tobias.k...@t-systems.com wrote: This is the html source code, which was produced by Firefox. Please remember, the problem occurs only on the Internet Explorer Mobile on the HTC HD2 and I'm not able to post this source code. If the source you are generating is different based on the user agent, and it's failing on one user agent and not another then it's critical that you debug the source that is breaking. You can use a plugin for you browser to change your user agent to match that of the browser on your device. /index.grid.pager/assets/5.0.18/scriptaculous/effects.js [INFO] AppModule.TimingFilter request.getPath(): /index.grid.pager/assets/5.0.18/scriptaculous/scriptaculous.js [INFO] AppModule.TimingFilter request.getPath(): /index.grid.pager/assets/5.0.18/tapestry/tapestry.js These are the important parts of your log. It seems that somehow you are not getting redirected back to index after clicking a pager link? Very strange. You are also using a very old version of Tapestry... Josh !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;html xmlns=http://www.w3.org/1999/xhtml;
JavaScriptStack demo
Here's an example of the 5.2 JavaScriptStack api. I used it to load Datatables (http://www.datatables.net/). The page: @Import( stack={datatable}) public class PageWithDatatable { void afterRender() { //connect datatable to tml here } } The AppModule: public static void contributeJavaScriptStackSource(MappedConfigurationString, JavaScriptStack configuration) { configuration.addInstance(jquery, JQueryJavaScriptStack.class); configuration.addInstance(datatable, DatatableJavaScriptStack.class); } DatatableJavaScriptStack.java: import java.util.Arrays; import java.util.Collections; import java.util.List; import org.apache.tapestry5.Asset; import org.apache.tapestry5.ioc.services.SymbolSource; import org.apache.tapestry5.services.AssetSource; import org.apache.tapestry5.services.javascript.JavaScriptStack; import org.apache.tapestry5.services.javascript.StylesheetLink; public class DatatableJavaScriptStack implements JavaScriptStack { private final Asset[] js; private final StylesheetLink[] css; public DatatableJavaScriptStack(SymbolSource symbolSource, AssetSource assetSource) { this.js = new Asset[] { assetSource.getContextAsset(/js/jquery.dataTables.min.js, null), assetSource.getContextAsset(/js/ColVis.js, null), }; this.css = new StylesheetLink[] { new StylesheetLink(assetSource.getContextAsset(/css/datatable.css, null)), new StylesheetLink(assetSource.getContextAsset(/css/ColVis.css, null)), new StylesheetLink(assetSource.getContextAsset(/css/flick/jquery-ui-1.8.5.custom.css, null)), }; } public String getInitialization() { return null; } public ListAsset getJavaScriptLibraries() { return Arrays.asList(js); } public ListStylesheetLink getStylesheets() { return Arrays.asList(css); } public ListString getStacks() { //load jquery stack first return Collections.singletonList(jquery); } } -- View this message in context: http://tapestry-users.832.n2.nabble.com/JavaScriptStack-demo-tp5941012p5941012.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
tapestry 4 radio group
Hi, I am unable to get the tapestry 4 radio group working. My HTML tdspan jwcid=activeServerRadioGroup/span/td tdinput type=radio jwcid=activeServerRadio //td My .page property name=activeServer/ component id=activeServerRadioGroup type=RadioGroup binding name=selected value=activeServer.selected/ /component component id=activeServers type=For binding name=source value=activeServers/ binding name=keyExpression value=literal:id/ binding name=value value=activeServer/ binding name=element value=literal:tr/ /component component id=activeServerRadio type=Radio binding name=value value=activeServer.id/ /component In my .java file I have a method getActiveServers() that returns a list of custom class with selected, id attributes. The above structure is not working. Can somebody help? Thanks.
Re: Dynamic grid editable
I'm in the same need. I cam a little longer but need to link the datasource to the data in the input field. Do you have a solution or hint? I have all most tried everything. I can show the dynamic grid with a mixins that add an input element to the data. Then the use can edit the data, but it is not saved when submitting. Ass described above...it needs the link... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-grid-editable-tp2431730p3346766.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Question on Tapesry Services IoC
Hi, I 'm trying to understand how does Tapestry IoC works.., I 'm currently reading the new docs and I 'm also putting my hands on an example I got on a working application. What I can't understand yet is how does contribution works, I got that you can define a Service like: public static SaltSourceService buildXxx(...) { and that you can configure Xxx's dependencies contributing with: public static void contributeXxx(final MappedConfigurationString, String configuration) { where you add entries to the parameter received map, but... in the example I 'm looking at, I only see values being put in the map but never retrieved, would I be looking at an incomplete example or there's some tapestry magic over this? The example I mention is an application which uses tapestry-spring-security and I want to override a property value from a service, I want to set service AuthenticationProcessingFilter's property alwaysUseDefaultTargetUrl to true in my AppModule. hope someone throws some light on this one as it usually happens here in the ml :) cheers, Nicolás.-
Http Basic authentication with Tapestry
Hello, I'm developing an application that needs to connect to OpenStreetMap API with Http basic authentication. I use Hibernate, Spring, Tapestry and maven. When I run the maven tests it uses the Spring test support and it does the authentication successfully via HttpClient. The problem is when I call the same use case from Tapestry: I get the following error from OpenStreetMap: 19-ene-2011 23:26:27 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: basic authentication scheme selected 19-ene-2011 23:26:27 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge INFO: Failure authenticating with BASIC 'Web Password'@api06.dev.openstreetmap.org:80 50446 [1481353080@qtp-730403186-0] ERROR org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler - Processing of request failed with uncaught exception: es.udc.gisapp.model.util.exceptions.ServiceException: HTTP error; status code = 401 org.apache.tapestry5.runtime.ComponentEventException: es.udc.gisapp.model.util.exceptions.ServiceException: HTTP error; status code = 401 [at classpath:es/udc/gisapp/web/pages/applicationservice/MigrarBdOsm.tml, line 17] ¿How can I make the basic http authentication with tapestry without loosing anything important? Thank you in advance I also attach the code that I use to make the authentication use case: public HttpMethod prepareMethodForBasicHttpAuthentication( CuentaOsm cuentaOsm, HttpMethod method) throws InstanceNotFoundException { String usernamePassword = cuentaOsm.getOsmLoginMail() + : + cuentaOsm.getOsmClearPassword(); String basicAuthorizationString = EncodingUtil .encodeBase64(usernamePassword); method.addRequestHeader(Authorization, Basic + basicAuthorizationString); return method; } -- View this message in context: http://tapestry.1045711.n5.nabble.com/Http-Basic-authentication-with-Tapestry-tp3348700p3348700.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: JavaScriptStack demo
Thanks for sharing, very helpful. -- View this message in context: http://tapestry.1045711.n5.nabble.com/JavaScriptStack-demo-tp3348381p3348750.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Question on Tapesry Services IoC
You had me all the way up until you started talking about what you wanted to do. Here is a short primer: You have a service that manages a collection of Something: private MapString, Something allMyConfiguredSomethings; // I get my Somethings in the constructor public SomeThingManagerImpl(MapString, Something somethingMap) { this.allMyConfiguredSomethings = somethingMap; } // In your app module you tell tapestry about your SomethingManager service. public static void bind(ServiceBinder binder) { binder.bind(SomethingManager.class, SomethingManagerImpl.class); } // and tell the something manager which somethings it's going to manage public static void contributeSomethingManager(MappendConfigurationString, Something configuration) { // put items in that eventually end up in SomethingManager } MappedConfiguration has an override method which you can use to set a value on top of another from within your contribute method. Josh On Wed, Jan 19, 2011 at 12:09 PM, Nicolas Barrera nbarr...@gmail.com wrote: Hi, I 'm trying to understand how does Tapestry IoC works.., I 'm currently reading the new docs and I 'm also putting my hands on an example I got on a working application. What I can't understand yet is how does contribution works, I got that you can define a Service like: public static SaltSourceService buildXxx(...) { and that you can configure Xxx's dependencies contributing with: public static void contributeXxx(final MappedConfigurationString, String configuration) { where you add entries to the parameter received map, but... in the example I 'm looking at, I only see values being put in the map but never retrieved, would I be looking at an incomplete example or there's some tapestry magic over this? The example I mention is an application which uses tapestry-spring-security and I want to override a property value from a service, I want to set service AuthenticationProcessingFilter's property alwaysUseDefaultTargetUrl to true in my AppModule. hope someone throws some light on this one as it usually happens here in the ml :) cheers, Nicolás.- - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Http Basic authentication with Tapestry
I'm developing an application that needs to connect to OpenStreetMap API with Http basic authentication. It doesn't seem to make sense that Tapestry would have anything to do with this. You are getting a 401 Unauthorized error, are you sure you are providing valid credentials outside of your unit tests? Consider setting up a logging proxy (I like the charles proxy, it's not free and I'm not associated with the company but it's been really easy and effective to use) and configure your http client to use the proxy. Josh On Wed, Jan 19, 2011 at 2:27 PM, AlbertoAlmagro albertoalma...@gmail.com wrote: Hello, I'm developing an application that needs to connect to OpenStreetMap API with Http basic authentication. I use Hibernate, Spring, Tapestry and maven. When I run the maven tests it uses the Spring test support and it does the authentication successfully via HttpClient. The problem is when I call the same use case from Tapestry: I get the following error from OpenStreetMap: 19-ene-2011 23:26:27 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: basic authentication scheme selected 19-ene-2011 23:26:27 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge INFO: Failure authenticating with BASIC 'Web Password'@api06.dev.openstreetmap.org:80 50446 [1481353080@qtp-730403186-0] ERROR org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler - Processing of request failed with uncaught exception: es.udc.gisapp.model.util.exceptions.ServiceException: HTTP error; status code = 401 org.apache.tapestry5.runtime.ComponentEventException: es.udc.gisapp.model.util.exceptions.ServiceException: HTTP error; status code = 401 [at classpath:es/udc/gisapp/web/pages/applicationservice/MigrarBdOsm.tml, line 17] ¿How can I make the basic http authentication with tapestry without loosing anything important? Thank you in advance I also attach the code that I use to make the authentication use case: public HttpMethod prepareMethodForBasicHttpAuthentication( CuentaOsm cuentaOsm, HttpMethod method) throws InstanceNotFoundException { String usernamePassword = cuentaOsm.getOsmLoginMail() + : + cuentaOsm.getOsmClearPassword(); String basicAuthorizationString = EncodingUtil .encodeBase64(usernamePassword); method.addRequestHeader(Authorization, Basic + basicAuthorizationString); return method; } -- View this message in context: http://tapestry.1045711.n5.nabble.com/Http-Basic-authentication-with-Tapestry-tp3348700p3348700.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org