Grid cell with customized font color
Hi, All, I'm using a Grid component to show an alarm table which requires display different font color based on severity level (a string parameter in data model). Any suggestions on how to customize grid cell's font color or background color? Thanks a lot, -victor -- View this message in context: http://www.nabble.com/Grid-cell-with-customized-font-color-tp18252686p18252686.html 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: [T5] About core components subclassing and methods with package visibility
Patrick Moore wrote: you could always put a MyLabel subclass in the org.apache.tapestry5.corelib.components package and then derive from that. Java does let classes be in different source directories and still be in the same package... Its a little ugly ... but a whole lot better than the cut-and-paste that you are doing now... Actually, it's not always sufficient since some properties were not accessible at all (and of course were privates), or some part of logic were not accessible, so what's for the cutpaste. But yes, it would have been a solution fir simpler cases :) -- Francois Armand Etudes Développements J2EE Groupe Linagora - http://www.linagora.com Tél.: +33 (0)1 58 18 68 28 --- InterLDAP - http://interldap.org FederID - http://www.federid.org/ Open Source identities management and federation - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 service injection outside pages
Hi, in my app, I have a service which works OK in pages and component classes, but of course a lot of business logic is outside of those classes in separate packages, where I need that service, too. But if I simple @Inject it as in page classes, it does not work (i.e. is null). Is the injection limited to pages (maybe because they get transformed on startup)? Or do I need to do something else for injection outside of pages? Thanks, Udo. -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 service injection outside pages
You could still write a constructor with your service dependencies as parameters, Tapestry will fill those in upon instantiation. Howard mentioned the ObjectLocator some while ago which provides a getService() method. If you inject this in your page and pass it along to your business logic you should be able to access your services. Uli Am Do, 3.07.2008, 10:44, schrieb Udo Abel: OK, but then I'll end up with all classes being services, since basic services like logging, configuration, etc. will be used in almost any class. I've found no way to circumvent that, since I've noticed that the @InjectService annotation can only be used as a parameter declaration to a method. So I can't call that mehod myself anymore from a normal class. That would mean that the world of services is isolated against normal POJOs... Frankly, I think I'll take the normal approach with singletons for the services used in my business logic. Thanks anyway. Udo. Original-Nachricht Datum: Thu, 3 Jul 2008 09:53:38 +0200 (CEST) Von: Ulrich Stärk [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: T5 service injection outside pages You'll have to declare those classes where you want to use your service as services too, i.e. you either have to write a buildXXX method in your AppModule or do a binder.bind(). You can then either use the @InjectService annotation to inject your service or just write a constructor with the desired service as a paramater and Tapestry will do the rest for you. Uli Am Do, 3.07.2008, 09:40, schrieb Udo Abel: Hi, in my app, I have a service which works OK in pages and component classes, but of course a lot of business logic is outside of those classes in separate packages, where I need that service, too. But if I simple @Inject it as in page classes, it does not work (i.e. is null). Is the injection limited to pages (maybe because they get transformed on startup)? Or do I need to do something else for injection outside of pages? Thanks, Udo. -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - 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] -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[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: T5 service injection outside pages
all services defined by the Tapestry IOC container are per default singletons (as in Spring). if you want to access services from outside you have to obtain the service from the IOC registry directly. then you can call the method of a well defined and initialized service. Tapestry uses constructor injection, Spring uses setter injection and constructor injection. guice does as well. therefore all you have to do to get the logging service is to declare it in the constructor (within the container). EJB 3 offers ways to inject services into any pojo by only declaring it as such (@EJB,...) without setter or constructor declaration ... but you have to remember that every class runs in the EJB container, therefore its not a simple pojo anymore because it has already been altered at the bytecode level by the EJB container as any IOC container does to. in short: dependency injection is only available in container managed classes. the downside of the EJB 3 approach: how do yout test your classes if you have no way of setting the references; except you start the container? in my case business logic classes are simple services that are also configured using the IOC container. g kris Udo Abel [EMAIL PROTECTED] 03.07.2008 10:44 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Re: T5 service injection outside pages OK, but then I'll end up with all classes being services, since basic services like logging, configuration, etc. will be used in almost any class. I've found no way to circumvent that, since I've noticed that the @InjectService annotation can only be used as a parameter declaration to a method. So I can't call that mehod myself anymore from a normal class. That would mean that the world of services is isolated against normal POJOs... Frankly, I think I'll take the normal approach with singletons for the services used in my business logic. Thanks anyway. Udo. Original-Nachricht Datum: Thu, 3 Jul 2008 09:53:38 +0200 (CEST) Von: Ulrich Stärk [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org Betreff: Re: T5 service injection outside pages You'll have to declare those classes where you want to use your service as services too, i.e. you either have to write a buildXXX method in your AppModule or do a binder.bind(). You can then either use the @InjectService annotation to inject your service or just write a constructor with the desired service as a paramater and Tapestry will do the rest for you. Uli Am Do, 3.07.2008, 09:40, schrieb Udo Abel: Hi, in my app, I have a service which works OK in pages and component classes, but of course a lot of business logic is outside of those classes in separate packages, where I need that service, too. But if I simple @Inject it as in page classes, it does not work (i.e. is null). Is the injection limited to pages (maybe because they get transformed on startup)? Or do I need to do something else for injection outside of pages? Thanks, Udo. -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - 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] -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: form zone parameter not taken into account
Thanks Josh, But i've tested my page with several navigators (IE 7.0, Firefox 2.0 3.0) with javascript enabled and i don't understand why my request is not submitted via AJAX. What i think is very strange is that Ajax seems to be used or not depending what content i have in my zone. Has anybody already encountered such a problem and found what content can prevent Ajax to be used ? Thanks in advance. Stephane Josh Canfield a écrit : Your form is not being submitted via AJAX. You may have a javascript error that is preventing the form from being properly updated for the zone. The request object has the isXHR method which you can use to determine if it's a full or partial request. You can use this info to return something other than the block/component for users that don't have javascript enabled. On Wed, Jul 2, 2008 at 5:23 AM, Stephane Decleire [EMAIL PROTECTED] wrote: I've got a form with a zone parameter but i still get the following warning and the whole page is refreshed when i submit the form. Any idea ? [WARN] ComponentInstanceResultProcessor Component Test:accountmanagement was returned from an event handler method, but is not a page component. The page containing the component will render the client response. Thanks in advance. Stephane
How to trace the content returned by XHR requests ?
Hi, Which tool do you use to trace the XHTML content returned by an Ajax request ? Stephane
Re: How to trace the content returned by XHR requests ?
firefox + firebug addon Stephane Decleire [EMAIL PROTECTED] 03.07.2008 11:21 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema How to trace the content returned by XHR requests ? Hi, Which tool do you use to trace the XHTML content returned by an Ajax request ? Stephane
Re: T5: form zone parameter not taken into account
How are you returning the AccountManagement? Do you use @InjectComponent or new AccountManagement() ? The latter will not work. 2008/7/3 Stephane Decleire [EMAIL PROTECTED]: Thanks Josh, But i've tested my page with several navigators (IE 7.0, Firefox 2.0 3.0) with javascript enabled and i don't understand why my request is not submitted via AJAX. What i think is very strange is that Ajax seems to be used or not depending what content i have in my zone. Has anybody already encountered such a problem and found what content can prevent Ajax to be used ? Thanks in advance. Stephane Josh Canfield a écrit : Your form is not being submitted via AJAX. You may have a javascript error that is preventing the form from being properly updated for the zone. The request object has the isXHR method which you can use to determine if it's a full or partial request. You can use this info to return something other than the block/component for users that don't have javascript enabled. On Wed, Jul 2, 2008 at 5:23 AM, Stephane Decleire [EMAIL PROTECTED] wrote: I've got a form with a zone parameter but i still get the following warning and the whole page is refreshed when i submit the form. Any idea ? [WARN] ComponentInstanceResultProcessor Component Test:accountmanagement was returned from an event handler method, but is not a page component. The page containing the component will render the client response. Thanks in advance. Stephane
Re: AW: Fields are shared among application without using @Persist
As others have said, set up the fields in onActivate(..), setupRender(), or onPrepareForRender. You'll find working examples and discussions of the gotchas in http://files.doublenegative.com.au/jumpstart/ Cheers, Geoff On 03/07/2008, at 3:27 PM, Ronny L wrote: Hi Josh, What would you suggest to avoid this kind of thing. Should I rather use a primitive properties for storing form fields. It's much easier to use object but it doesn't always work the way we want it. Thanks, Ronny joshcanfield wrote: The value set by the constructor, or inline, is used as the default value for the property. When you retrieve a page from the pool it gets all of it's default values restored. Josh On Wed, Jul 2, 2008 at 5:21 AM, Thiago H. de Paula Figueiredo [EMAIL PROTECTED] wrote: Em Wed, 02 Jul 2008 09:16:19 -0300, Ronny L [EMAIL PROTECTED] escreveu: @Persist private User user = new User (); @Persist private Login login = new Login(); @Persist private Info info = new Info(); Try not initializing the fields in their declaration. Use the Form component prepare events to initialize them if needed. Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. -- View this message in context: http://www.nabble.com/Fields-are-shared-among-application-without-using-%40Persist-tp18233088p18252072.html Sent from the Tapestry - User mailing list archive at Nabble.com. - 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]
T5 actionlink id uniqueness
Hi, there are often situations where you may want to put the same actionlink (same event handler) on several places of a page (e.g. navigation buttons on top and bottom of a page). Yet T5 does not allow two actionlinks to have the same id so they target the same event handler. How can that be done without duplicating event handlers? Udo. -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 actionlink id uniqueness
Try EventLink. Geoff On 03/07/2008, at 8:43 PM, Udo Abel wrote: Hi, there are often situations where you may want to put the same actionlink (same event handler) on several places of a page (e.g. navigation buttons on top and bottom of a page). Yet T5 does not allow two actionlinks to have the same id so they target the same event handler. How can that be done without duplicating event handlers? Udo. -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - 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: T5 actionlink id uniqueness
Have a look at the @OnEvent annotation. If you omit the component part it will trigger for the specified event type of all components. Uli Am Do, 3.07.2008, 12:43, schrieb Udo Abel: Hi, there are often situations where you may want to put the same actionlink (same event handler) on several places of a page (e.g. navigation buttons on top and bottom of a page). Yet T5 does not allow two actionlinks to have the same id so they target the same event handler. How can that be done without duplicating event handlers? Udo. -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - 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: T5: form zone parameter not taken into account
I've just found the culprit : i have a DateField in my form and this component seems to not work correctly in a zone. I've traced a javascript Tapestry.DateField is not a constructor exception on the line new Tapestry.DateField({field:birthdate:11ae8bb5631}); when the component is initialized. Stephane Lance Java a écrit : How are you returning the AccountManagement? Do you use @InjectComponent or new AccountManagement() ? The latter will not work. 2008/7/3 Stephane Decleire [EMAIL PROTECTED]: Thanks Josh, But i've tested my page with several navigators (IE 7.0, Firefox 2.0 3.0) with javascript enabled and i don't understand why my request is not submitted via AJAX. What i think is very strange is that Ajax seems to be used or not depending what content i have in my zone. Has anybody already encountered such a problem and found what content can prevent Ajax to be used ? Thanks in advance. Stephane Josh Canfield a écrit : Your form is not being submitted via AJAX. You may have a javascript error that is preventing the form from being properly updated for the zone. The request object has the isXHR method which you can use to determine if it's a full or partial request. You can use this info to return something other than the block/component for users that don't have javascript enabled. On Wed, Jul 2, 2008 at 5:23 AM, Stephane Decleire [EMAIL PROTECTED] wrote: I've got a form with a zone parameter but i still get the following warning and the whole page is refreshed when i submit the form. Any idea ? [WARN] ComponentInstanceResultProcessor Component Test:accountmanagement was returned from an event handler method, but is not a page component. The page containing the component will render the client response. Thanks in advance. Stephane
T5 date localization
Hi - thanks for your inputs, yet here's another question: the localization in T5 is very nice - but it does not apply to dates (and numbers?). When I change the Locale, I expected that date formatting will also change, but it does not. The DateField component also ingores Locale (and t.format, btw) and does not change the language of the date-picker.. I've found that I can use the Output component, but that would result in part of I18n to be done by T5 and another part by the application. Any other way? Udo. -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] PageLink context rendering
hi all, i have a pagelink im my page with two context variables. i would have expected, the link would render some sort of .../pagename/contextvar1/contextvar2 so i could user the values in my onActivate(Object[] context) but renders .../pagename/[contextvar1, contextvar2] any ideas? harald class file: public ListObject getReportLinkContext() { ArrayListObject result = new ArrayListObject(); result.add(new Integer(uploadItemIndex)); result.add(getConversationId()); return result; } tml: a t:type=PageLink page=portal/pdfreport context=${reportLinkContext}Bericht/a - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 date localization
By the time those issues are solved, you can look at the wiki : http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber Stephane Ulrich Stärk a écrit : These are known issues which have yet to be adressed. See (and vote for if you want) https://issues.apache.org/jira/browse/TAPESTRY-2198 https://issues.apache.org/jira/browse/TAPESTRY-2304 https://issues.apache.org/jira/browse/TAPESTRY-2457 Cheers, Uli Am Do, 3.07.2008, 13:47, schrieb Udo Abel: Hi - thanks for your inputs, yet here's another question: the localization in T5 is very nice - but it does not apply to dates (and numbers?). When I change the Locale, I expected that date formatting will also change, but it does not. The DateField component also ingores Locale (and t.format, btw) and does not change the language of the date-picker.. I've found that I can use the Output component, but that would result in part of I18n to be done by T5 and another part by the application. Any other way? Udo. -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - 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: [T5] PageLink context rendering
Em Thu, 03 Jul 2008 09:09:26 -0300, Harald Geritzer [EMAIL PROTECTED] escreveu: a t:type=PageLink page=portal/pdfreport context=${reportLinkContext}Bericht/a You shouldn't use expansions when passing parameters to components, because they would be converted into a String before the actual parameter passing. Try a t:type=PageLink page=portal/pdfreport context=reportLinkContextBericht/a Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Grid cell with customized font color
Em Thu, 03 Jul 2008 07:56:48 -0300, Geoff Callender [EMAIL PROTECTED] escreveu: ...try putting a div in a t:parameter and varying the div's class, eg. Why don't you use pure CSS? If the objects in your Grid have a name property, for example, its cell is generated with td class=name. Thus, you just need to define a rule like this in you CSS file: table.t-data-grid td.name { background-color: red; } Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] PageLink context rendering
Try a t:type=PageLink page=portal/pdfreport context=reportLinkContextBericht/a thanks a lot - worked, my fault - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] PageLink context rendering
Em Thu, 03 Jul 2008 09:33:39 -0300, Harald Geritzer [EMAIL PROTECTED] escreveu: Try a t:type=PageLink page=portal/pdfreport context=reportLinkContextBericht/a thanks a lot - worked, my fault Don't be so hard to yourself: it's a very common error, so much that I think the Tapestry documentation should explicitly talk about it when discussing component parameters. ;) Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Grid cell with customized font color
That would be fine to give one style to the whole column, but I think the issue is he wants the style to vary based on the value in the cell. On 03/07/2008, at 10:27 PM, Thiago H. de Paula Figueiredo wrote: Em Thu, 03 Jul 2008 07:56:48 -0300, Geoff Callender [EMAIL PROTECTED] escreveu: ...try putting a div in a t:parameter and varying the div's class, eg. Why don't you use pure CSS? If the objects in your Grid have a name property, for example, its cell is generated with td class=name. Thus, you just need to define a rule like this in you CSS file: table.t-data-grid td.name { background-color: red; } Thiago - 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]
5.0.13 Grid remove not working?
I have had code working for months under 5.0.6, upgraded to 5.0.13 and now the remove param on the grid tag seems to have stopped working. No changes in underlying model, but the columns referenced in the remove attribute are all being displayed, and the column names match. Has anyone else seen this issue? t:grid t:source=reportList row=reportInfo remove=ownerUserId,report,persistent,uniqueid,version, created, mimeType,displayName reorder=ownerGroup, fileDisplayName, fileName, statisticsStartDate, statisticsEndDate, creationDate, id model=modelForReportGrid Any help appreciated. Thanks in advance. -- View this message in context: http://www.nabble.com/5.0.13-Grid-remove-not-working--tp18260624p18260624.html 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: 5.0.13 Grid remove not working?
use exclude instead of remove On Thu, Jul 3, 2008 at 11:33 PM, bobheck [EMAIL PROTECTED] wrote: I have had code working for months under 5.0.6, upgraded to 5.0.13 and now the remove param on the grid tag seems to have stopped working. No changes in underlying model, but the columns referenced in the remove attribute are all being displayed, and the column names match. Has anyone else seen this issue? t:grid t:source=reportList row=reportInfo remove=ownerUserId,report,persistent,uniqueid,version, created, mimeType,displayName reorder=ownerGroup, fileDisplayName, fileName, statisticsStartDate, statisticsEndDate, creationDate, id model=modelForReportGrid Any help appreciated. Thanks in advance. -- View this message in context: http://www.nabble.com/5.0.13-Grid-remove-not-working--tp18260624p18260624.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: using the grid but not knowing the number of available rows
I have a 'query' (not a database query but a webservice query) that possibly returns a huge number of 'records'. The query allows me to specify the start index and the max records to return so I can use this to only query the records shown in one grid page. The problem is that I do not know how many records in total will be returned. I can ask for all records to know the size but that kind of defies the paging optimization. So, what I would like is a grid that contains something like a next xxx results. Is that possible with the current T5 grid? Thanks, Martijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: using the grid but not knowing the number of available rows
Don't know if T5 grid can natively help here, but a common trick is to request a few more records than what you're going to display... That way, you can be sure that there are at least a few more pages, so if you're showing 10 results per page, and you call the web service with 21 as 'max records' then (depending on the results returned) you'll really know if you're on the last page, the previous to the last or if there are more than 2 pages of results On Thu, Jul 3, 2008 at 6:43 PM, Martijn Brinkers (List) [EMAIL PROTECTED] wrote: I have a 'query' (not a database query but a webservice query) that possibly returns a huge number of 'records'. The query allows me to specify the start index and the max records to return so I can use this to only query the records shown in one grid page. The problem is that I do not know how many records in total will be returned. I can ask for all records to know the size but that kind of defies the paging optimization. So, what I would like is a grid that contains something like a next xxx results. Is that possible with the current T5 grid? Thanks, Martijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] Rendering a button for a t:eventlink
Hi all, I'm converting my application from T4 to T5. In T4, i was able to write : input id=button1 jwcid=@DirectLink listener=listener:clickButton1 renderer=ognl:@[EMAIL PROTECTED]Click/input and it would render a nice button that would call my listener when selected. In T5, I'm trying to wrap a t:eventlink with a button. But with no success. Is it possible to render a button, similar to a PageLink but with eventLink in T5? -- View this message in context: http://www.nabble.com/-T5--Rendering-a-button-for-a-t%3Aeventlink-tp18263658p18263658.html 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: T5 date localization
As a total digression (or just one more feature request). if you are going to be dealing with localization of dates.. if you happen to put some thought on having tapestry track not only the user's Locale but their TimeZone as well! that would be great! Udo Abel wrote: Hi - thanks for your inputs, yet here's another question: the localization in T5 is very nice - but it does not apply to dates (and numbers?). When I change the Locale, I expected that date formatting will also change, but it does not. The DateField component also ingores Locale (and t.format, btw) and does not change the language of the date-picker.. I've found that I can use the Output component, but that would result in part of I18n to be done by T5 and another part by the application. Any other way? Udo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 date localization
Hi Udo, OutputLocale (or OutputLocaleNumber) is now a component of *myt5lib*project. http://code.google.com/p/myt5lib/ Marcus
Re: T5: using the grid but not knowing the number of available rows
Em Thu, 03 Jul 2008 12:43:37 -0300, Martijn Brinkers (List) [EMAIL PROTECTED] escreveu: I have a 'query' (not a database query but a webservice query) that possibly returns a huge number of 'records'. The query allows me to specify the start index and the max records to return so I can use this to only query the records shown in one grid page. Implement the GridDataSource interface (http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/grid/GridDataSource.html) and pass it to the Grid's source parameter. It has a method, void prepare(int startIndex, int endIndex, ListSortConstraint sortConstraints), that is exactly what you're looking for. Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: using the grid but not knowing the number of available rows
Hi, I know about GridDataSource and have implemented that already. The problem I face is that I do not know how many rows the GridDataSource will return. I only know if there is more data the moment I request the data. Would it be possible to specify MAXINT rows, remove the pager and create my own pager that only contains a previous and next link? Martijn On Thu, 2008-07-03 at 14:58 -0300, Thiago H. de Paula Figueiredo wrote: Em Thu, 03 Jul 2008 12:43:37 -0300, Martijn Brinkers (List) [EMAIL PROTECTED] escreveu: I have a 'query' (not a database query but a webservice query) that possibly returns a huge number of 'records'. The query allows me to specify the start index and the max records to return so I can use this to only query the records shown in one grid page. Implement the GridDataSource interface (http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/grid/GridDataSource.html) and pass it to the Grid's source parameter. It has a method, void prepare(int startIndex, int endIndex, ListSortConstraint sortConstraints), that is exactly what you're looking for. Thiago - 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: T5: using the grid but not knowing the number of available rows
Em Thu, 03 Jul 2008 16:35:05 -0300, Martijn Brinkers (List) [EMAIL PROTECTED] escreveu: I know about GridDataSource and have implemented that already. The problem I face is that I do not know how many rows the GridDataSource will return. I only know if there is more data the moment I request the data. Would it be possible to specify MAXINT rows, remove the pager and create my own pager that only contains a previous and next link? My approach is this: in the int getAvailableRows() method, I perform a query that only returns the number of results, without returning actual data. Then, in the prepare() method, I fetch the data. From here, Grid takes care of the rest. Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: using the grid but not knowing the number of available rows
But this won't allow me to step through all items because I need to get all items I need to step over. Martijn On Thu, 2008-07-03 at 19:11 +0300, Andreas Andreou wrote: Don't know if T5 grid can natively help here, but a common trick is to request a few more records than what you're going to display... That way, you can be sure that there are at least a few more pages, so if you're showing 10 results per page, and you call the web service with 21 as 'max records' then (depending on the results returned) you'll really know if you're on the last page, the previous to the last or if there are more than 2 pages of results On Thu, Jul 3, 2008 at 6:43 PM, Martijn Brinkers (List) [EMAIL PROTECTED] wrote: I have a 'query' (not a database query but a webservice query) that possibly returns a huge number of 'records'. The query allows me to specify the start index and the max records to return so I can use this to only query the records shown in one grid page. The problem is that I do not know how many records in total will be returned. I can ask for all records to know the size but that kind of defies the paging optimization. So, what I would like is a grid that contains something like a next xxx results. Is that possible with the current T5 grid? Thanks, Martijn - 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]
Refresh inplace grid content
hi, may i know how to refresh grid content which using inplace=true without refresh whole page? Thank you. Regards, TanMH
how to refresh only div in tapestry 5?
Dear All, May I know how to refresh only div instead of whole page in tapestry5 ? Thank you. Regards, Cyber
Tables being cached by IE
Hi, one of our clients has noticed, that when he accesses a simple page with a grid through IE7, hitting the Pagers on the grid does not show the requested Grid-Page but still the old one. Refreshing the page thereafter show the right grid-page. I can imagine that IE is doing some caching here because the URL looks the same after paging through the grid. Is this a known problem with IE? I cannot reproduce this with IE here on my PC though. The Grid is not an inPlace grid. Would it be the right solution to add some HTTP-EQUIV header to tell the browser not to do any caching with that page? For every page containing a grid? M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 method naming problems
Hi, I want to report that you might get an javassist.bytecode.DuplicateMemberException during page load if you happen to name a getter method for injected ComponentResources variable on your page getComponentResources. I think thats because the eclipse IDE does not know about additional member functions your class has after being transformed by T5 and therefore cannot see any compile errors. Thats probably true for other names, too. Regards, Udo. -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
#44654 [Opn-Asn]: Syntax error for #
ID: 44654 Updated by: [EMAIL PROTECTED] Reported By: xuefer at gmail dot com -Status: Open +Status: Assigned Bug Type: Compile Failure Operating System: * PHP Version: 5.3CVS-2008-04-06 (CVS) -Assigned To: +Assigned To: nlopess Previous Comets from Java files should always be LAST in the head section. If that is hard to do ... another thought would be to have a custom component rendered in the head section that would be substituted with Java stylesheets includes. Then I could literally put it wherever I wanted. Unfortunately, this comes back to my earlier post - that the head section really gets rewritten in a subtley non-satisafactory way. If using XHTML DOCTYPE, when generating the head tag, It'd be nice if, out of the box, Tapestry would: a) include include ContentType meta tag first, the language and content type should/must preceed all other content in the file b) include all javascript files in the head, I believe it is invalid per the XHTML DTD to place script tags in the body but if not, conventionally, script tags are supposed to reside only in head c) predictably order the stylessheets so that page specific css files can predicably override common or shared css files. Obviously, just my $0.02. So back to my early question about ordering stylesheets ... is that easy to do? Good suggestion? Bad suggestion? Thanks, -Luther