Re: Grid onAction Problem IEM6
Hi Josh, could you tell me how can I debug the tapestry.js file? My problem is that the js files are included form the maven repository so that eclispe couldn't open files there aren't in the file base resources. I tried to debug the grid component but I couldn't find something. Thanks for your suggestion. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-onAction-Problem-IEM6-tp3339635p3349283.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: Http Basic authentication with Tapestry
The thing that doesn't make sense for me is that it works for my unit tests (in which I don't use tapestry) and it doesn't work with the web interface (which uses tapestry)... Could you, or someone else, explain me what I improve if I use a proxy or how to use valid credentials? When I wrote the unit tests I didn't need to use credentials, but since I started using that use case with the web interface, OpenStreetMap started asking me for credentials, and when I added the code below now it prompts the error I put in the other message. HttpClient client = new HttpClient(); client.getState().setCredentials( AuthScope.ANY, new UsernamePasswordCredentials( cuentaOsm.getOsmLoginMail(), cuentaOsm .getOsmClearPassword())); Thank you in advance, Alberto 2011/1/20 Josh Canfield joshcanfi...@gmail.com: 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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry 5.2.4 with JBoss 5.1: URISyntaxException
Hi Community, I am trying to deploy a Tapestry 5.2.4 application to a JBoss 5.1 application server. During startup of the TapestryFilter an IOException is thrown, which is caused by an URISyntaxException thrown by the JBoss VFS handlers. The URI which caused the exception looks like this code vfszip:/D:/Programme/jboss-5.1.0.GA/server/default/deploy/TapestryTestCase-0.0.1-SNAPSHOT.war/WEB-INF/lib/tapestry-core-5.2.4.jar/org/apache/tapestry5/corelib/pages/PK__/ /code with the last two characters (after the 'PK') being an ASCII ETX(03) and an ASCII EOT(04). It does not specify any folder included in the war and is somehow 'added' to the file structure. I created a small test application to eliminate as many sideeffects as possible. The deployed application is a single war file, including only the necessary libraries for tapestry to run and a simple 'Hello World' tapestry page. This is deployed to a vanilla JBoss 5.1 default server causing the problem mentioned above. I traced the problem down to the class 'ClassNameLocatorImpl' in the org.apache.tapestry5.ioc.internal.services package and the 'scanDirStream' method. The java.io.LineNumberReader returns the lines that are used to create the nonexistent wrong URI mentioned above. The environment and versions I am using when building the test application and experiencing this error are: - Tapestry 5.2.4 - JBoss 5.1.0 - JDK 1.6.0_19 - Windows XP - Eclipse 3.5.2 with m2e plugin 0.10.2 using the embedded maven version 3.0-SNAPSHOT This error only occurs in this particular Tapestry/JBoss combination, i.e. Tapestry 5.2.4 with JBoss 4.2.3 works fine as well as Tapestry 5.1.5 with JBoss 5.1.0. At the moment I can only work around this problem by patching the tapestry source, which I don't want to do, if I can avoid it. Any help and/or comment on this problem is appreciated, including any field report of deploying an application in the mentioned setup successfully. I will send out the test application if needed to reproduce the problem. For the sake of completeness the stacktrace from the JBoss log: code 09:51:05,768 INFO [STDOUT] 09:51:05,768 INFO [RegistryBuilder] Adding module definition for class org.apache.tapestry5.ioc.services.TapestryIOCModule 09:51:06,456 INFO [STDOUT] 09:51:06,456 INFO [RegistryBuilder] Adding module definition for class org.apache.tapestry5.services.TapestryModule 09:51:06,518 INFO [STDOUT] 09:51:06,518 INFO [RegistryBuilder] Adding module definition for class org.apache.tapestry5.internal.services.InternalModule 09:51:06,940 ERROR [1-SNAPSHOT]] Exception starting filter tapestryFilter java.lang.RuntimeException: java.io.IOException at org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl.locateClassNames(ClassNameLocatorImpl.java:80) at $ClassNameLocator_12da29eb5e0.locateClassNames($ClassNameLocator_12da29eb5e0.java) at org.apache.tapestry5.internal.services.ComponentClassResolverImpl.fillNameToClassNameMap(ComponentClassResolverImpl.java:305) at org.apache.tapestry5.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:294) at org.apache.tapestry5.internal.services.ComponentClassResolverImpl.performRebuild(ComponentClassResolverImpl.java:222) at org.apache.tapestry5.internal.services.ComponentClassResolverImpl.access$100(ComponentClassResolverImpl.java:40) at org.apache.tapestry5.internal.services.ComponentClassResolverImpl$2.run(ComponentClassResolverImpl.java:195) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier$2.invoke(ConcurrentBarrier.java:200) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier$2.invoke(ConcurrentBarrier.java:197) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withWrite(ConcurrentBarrier.java:140) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withWrite(ConcurrentBarrier.java:206) at org.apache.tapestry5.internal.services.ComponentClassResolverImpl.rebuild(ComponentClassResolverImpl.java:191) at org.apache.tapestry5.internal.services.ComponentClassResolverImpl.locate(ComponentClassResolverImpl.java:536) at org.apache.tapestry5.internal.services.ComponentClassResolverImpl.access$300(ComponentClassResolverImpl.java:40) at org.apache.tapestry5.internal.services.ComponentClassResolverImpl$4.invoke(ComponentClassResolverImpl.java:448) at org.apache.tapestry5.internal.services.ComponentClassResolverImpl$4.invoke(ComponentClassResolverImpl.java:445) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85) at
Re: Tapestry 5.2.4 with JBoss 5.1: URISyntaxException
On 20.01.2011 10:52, Michael Faber wrote: I am trying to deploy a Tapestry 5.2.4 application to a JBoss 5.1 application server. This is exactly our setup. During startup of the TapestryFilter an IOException is thrown, which is caused by an URISyntaxException thrown by the JBoss VFS handlers. Did you try URLConverter mentioned in the wiki? http://wiki.apache.org/tapestry/HowToRunTapestry5OnJBoss5 Despite the note that it will not work with JBoss 5.1, it is running here perfectly. HTH Stephan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: Grid and clientId
Thanks the response! Since I wanted the mixin to work seamless I went with copying the Grid, extending it to implement ClientElement and delegating the new getClientId() to the Any table component. Hopefully Howard will consider changing the official Grid in a similar manner. Kind Regards, Wulf -Original Message- From: Igor Drobiazko [mailto:igor.drobia...@gmail.com] Sent: Mittwoch, 19. Januar 2011 17:35 To: Tapestry users Subject: 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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Grid and clientId
You could fill a JIRA issue and provide a patch. BTW Howard is not the only one who could apply it. We have a lot of committers. See here: http://tapestry.apache.org/about.html On Thu, Jan 20, 2011 at 11:47 AM, Wechsung, Wulf wulf.wechs...@sap.comwrote: Thanks the response! Since I wanted the mixin to work seamless I went with copying the Grid, extending it to implement ClientElement and delegating the new getClientId() to the Any table component. Hopefully Howard will consider changing the official Grid in a similar manner. Kind Regards, Wulf -Original Message- From: Igor Drobiazko [mailto:igor.drobia...@gmail.com] Sent: Mittwoch, 19. Januar 2011 17:35 To: Tapestry users Subject: 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.com wrote: 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 - 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 onAction Problem IEM6
Hello Tobi, Without knowing the specifics of the problem you face: - using the the firefox plugin firebug it's possible to debug (and view) any JavaScript file on the current page. You can set breakpoints and everything. - when using m2eclipse it's possible to tell it to download sources. Going to Project - Maven Dependencies - tapestry-core-5.2.4 (and then right click - maven - show sources) will show you all files making up tapestry. You will find tapestry.js in package org.apache.tapestry5 How that helps! Kind Regards, Wulf -Original Message- From: Tooobi [mailto:tobias.k...@t-systems.com] Sent: Donnerstag, 20. Januar 2011 10:12 To: users@tapestry.apache.org Subject: Re: Grid onAction Problem IEM6 Hi Josh, could you tell me how can I debug the tapestry.js file? My problem is that the js files are included form the maven repository so that eclispe couldn't open files there aren't in the file base resources. I tried to debug the grid component but I couldn't find something. Thanks for your suggestion. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-onAction-Problem-IEM6-tp3339635p3349283.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
RE: Grid and clientId
That is a great idea. I've done so and attached a patched Grid.java https://issues.apache.org/jira/browse/TAPESTRY-2775 We have a lot of committers Of course, sorry about that and thank you all for your work on Tapestry. -Original Message- From: Igor Drobiazko [mailto:igor.drobia...@gmail.com] Sent: Donnerstag, 20. Januar 2011 11:57 To: Tapestry users Subject: Re: Grid and clientId You could fill a JIRA issue and provide a patch. BTW Howard is not the only one who could apply it. We have a lot of committers. See here: http://tapestry.apache.org/about.html On Thu, Jan 20, 2011 at 11:47 AM, Wechsung, Wulf wulf.wechs...@sap.comwrote: Thanks the response! Since I wanted the mixin to work seamless I went with copying the Grid, extending it to implement ClientElement and delegating the new getClientId() to the Any table component. Hopefully Howard will consider changing the official Grid in a similar manner. Kind Regards, Wulf -Original Message- From: Igor Drobiazko [mailto:igor.drobia...@gmail.com] Sent: Mittwoch, 19. Januar 2011 17:35 To: Tapestry users Subject: 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.com wrote: 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 - 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 - 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
Thanks Josh, sorry for my verbosity So in order to use contributions to a Service (SomethingManager) through a MappedConfiguration, this SomethingManager should have a constructor that receives the corresponding Map, and tapestry will inject the contributed MappedConfiguration into it? ok i got it..., tomorrow I m going to test it on code.., the thing is that in my case SomethingManager is a 3rd party class (tapestry-spring-security) but i think i can handle it with this information. thanks for the concept. Do you know why will Alias Contributions be deprecated? I guess that what you explained me will be the defacto way of contributing and overriding contributions? thanks again and cheers Nicolás.- On Wed, Jan 19, 2011 at 8:04 PM, Josh Canfield joshcanfi...@gmail.comwrote: 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: Question on Tapesry Services IoC
hi nicloas, you could use a builder method to decouple tapestry ioc from 3rd party libraries/constructors public SomethingManager buildSomethinManager(Map map, ...) { return new SomethingManger(map, ... ); } public void contributeSomethingManager(MappedConfiguration map) {} g, kris Von:Nicolas Barrera nbarr...@gmail.com An: Tapestry users users@tapestry.apache.org Datum: 20.01.2011 12:55 Betreff:Re: Question on Tapesry Services IoC Thanks Josh, sorry for my verbosity So in order to use contributions to a Service (SomethingManager) through a MappedConfiguration, this SomethingManager should have a constructor that receives the corresponding Map, and tapestry will inject the contributed MappedConfiguration into it? ok i got it..., tomorrow I m going to test it on code.., the thing is that in my case SomethingManager is a 3rd party class (tapestry-spring-security) but i think i can handle it with this information. thanks for the concept. Do you know why will Alias Contributions be deprecated? I guess that what you explained me will be the defacto way of contributing and overriding contributions? thanks again and cheers Nicolás.- On Wed, Jan 19, 2011 at 8:04 PM, Josh Canfield joshcanfi...@gmail.comwrote: 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
AW: Tapestry 5.2.4 with JBoss 5.1: URISyntaxException
Hi, During startup of the TapestryFilter an IOException is thrown, which is caused by an URISyntaxException thrown by the JBoss VFS handlers. Did you try URLConverter mentioned in the wiki? http://wiki.apache.org/tapestry/HowToRunTapestry5OnJBoss5 actually that did the trick. However it is kind of odd, that Tapestry 5.1.5 works without the URLConverter in JBoss 5.1 (at least the deployment itself). Up to now I thought that the URLConverter is only used at runtime when Tapestry tries to resolve pages and components and not during deployment. Thanks for your help, Michael Faber --- Atos Worldline GmbH Pascalstr. 19 52076 Aachen Germany Phone: +49 (2408) 148 134 Fax: +49 (2408) 148 204 Mobile: [VAR]mobile[/VAR] mailto: michael.fa...@atosorigin.com http://www.atosworldline.com Geschäftsführer: Wolf Kunisch Sitz der Gesellschaft: Frankfurt/Main Handelsregister: Frankfurt/Main HRB 58 268 * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * * This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail by error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and shall not be liable for any damages resulting from any virus transmitted. * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * *
T5 / Grid / Striping + Marking rows with red background ....
Hi! I have used rowClass to mark bad rows in one of my grids applied the following css .invalid { background-color: #FBE3E4; } It works but only for the rows with white background How does T5 do the striping ? I guess with some smart .js cause when inspecting the page with chrome everything seems fine. I.e. the tr should have this red/pink background but it doesn't ... it has this blue/gray background that is applied to each second row in the grid. Is there some easy way to fix this? Thanks in advance, Gunnar Eketrapp
Re: T5 / Grid / Striping + Marking rows with red background ....
On Thu, 20 Jan 2011 11:53:41 -0200, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! Hi! I have used rowClass to mark bad rows in one of my grids applied the following css .invalid { background-color: #FBE3E4; } It works but only for the rows with white background How does T5 do the striping ? I guess with some smart .js cause when inspecting the page with chrome everything seems fine. I've never seen T5 do striping by itself. I haven't used 5.2 yet (sigh), so I think it's done by CSS. -- 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: T5 / Grid / Striping + Marking rows with red background ....
Aha ! Thanks for the info ... Then it must be the Blueprint CSS framework that does this ... but striped they are ... I added a beautiful picture and I hope that is not against the list rules .-) /Gunnar 2011/1/20 Thiago H. de Paula Figueiredo thiag...@gmail.com On Thu, 20 Jan 2011 11:53:41 -0200, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! Hi! I have used rowClass to mark bad rows in one of my grids applied the following css .invalid { background-color: #FBE3E4; } It works but only for the rows with white background How does T5 do the striping ? I guess with some smart .js cause when inspecting the page with chrome everything seems fine. I've never seen T5 do striping by itself. I haven't used 5.2 yet (sigh), so I think it's done by CSS. -- 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 -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tapestry 4 radio group
Hi, Can you say a little more exactly what you are trying to do as your HTML doesn't appear to be correct. The RadioGroup needs to wrap around the Radio buttons at the very least. Richard On 19 Jan 2011, at 19:29, sunray 2003 wrote: 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. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 / Grid / Striping + Marking rows with red background ....
I found a solution ... 1down voteaccepted You need a more specific selector to override... BP is pretty general though so that shouldnt be an issue for example: table.no-zebra tbody tr:nth-child(even) td, table.no-zebra tbody tr.even td { background: transparent; } you can replace transparent with whatever color to make all rows a solid color. 2011/1/20 Gunnar Eketrapp gunnar.eketr...@gmail.com Aha ! Thanks for the info ... Then it must be the Blueprint CSS framework that does this ... but striped they are ... I added a beautiful picture and I hope that is not against the list rules .-) /Gunnar 2011/1/20 Thiago H. de Paula Figueiredo thiag...@gmail.com On Thu, 20 Jan 2011 11:53:41 -0200, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! Hi! I have used rowClass to mark bad rows in one of my grids applied the following css .invalid { background-color: #FBE3E4; } It works but only for the rows with white background How does T5 do the striping ? I guess with some smart .js cause when inspecting the page with chrome everything seems fine. I've never seen T5 do striping by itself. I haven't used 5.2 yet (sigh), so I think it's done by CSS. -- 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 -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo
RE: Grid onAction Problem IEM6
Hello Wulf, I used firebug to debug the application and the three js-files. Unfortunately firebug didn't detect some errors and I didn't find some path manipulations. do you have any other suggestions? Best wishes Tooobi -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-onAction-Problem-IEM6-tp3339635p3349701.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