Re: Need help upgrading JumpStart examples to Tapestry 5.2
Yes that's a good idea so that everyone can add there own example per components. It can greatly help the documentation part of tapestry :). -- View this message in context: http://tapestry.1045711.n5.nabble.com/Need-help-upgrading-JumpStart-examples-to-Tapestry-5-2-tp3313299p3318182.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
Ajax select component
Hello, I have some problem when using Select component. In my application I need to use the Select component with AJAX event handler which handles onchange event. In version 5.1.0.5, which I used previously this code worked perfectly: @Component (parameters = {"model=addressesSelectModel", "value=selectedAddressId", "event=change", "onCompleteCallback=literal:onAddressChanged", "context=literal:addressChanged", "blankOption=${blankOption}"}) @Mixins({"ck/OnEvent"}) private Select addressesSelect; ... Previously, this approach worked, but after the upgrade to version 5.2.4 it does not work now. In processing the AJAX-request in the class OnEventWorker.java:278 from request parameters gets "t:selectvalue" instead of "value", as on the method onChange of Select class is defined annotation @RequestParameter(value="t:selectvalue", allowBlank=true). Accordingly, I always get null instead of the real value. Why request parameter was renamed? Maybe in the new version there is another approach to do this? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: translators in 5.2, and re-use as formatters
Hi Paul, I share your view on this topic. Some time ago, I was struggling a bit with trying to control the precise formatting of numeric fields, and I eventually had to create a new translator with a new binding. The toClient() method of the translator takes care of the required formatting specified by the binding expression. I wasn't totally happy with the solution, but it has been working for me and I don't have time to look for alternatives. If you come up with a good solution, please share it. Thanks. Benny On Thu, Dec 23, 2010 at 11:19 PM, Paul Stanton wrote: > Thanks Bryan, > > Yes it seems this is some functionality that has been victim of some other > architectural concept. > > This is confusing and disappointing to me - I see it as a key facility that > should be provided by the framework since one of the key tasks (you could > argue "the key task") of web applications is to convert objects into strings > and back again. > > I see the role of formatters and translators intricately linked - otherwise > there is certain code repetition and therefore maintenance issues. Also, > constantly defining getter methods in components to make global formatters > available is hardly a good approach, and no better than extending a > 'BaseComponent' to access these properties. > > This could be solved with the old style "service" binding prefix which is > also gone from the implementation. > > If no one can tell me what existing tapestry concept I'm missing I may > spend some time seeing if I can write some code to get this going. > > Step one would be to create an object structure that makes it easy to > define an object that implements both Translator and Formatter. > > Step two would be to create a binding prefix to supply the appropriate > Translator/Formatter object to components, which would be registered in the > binding prefix by name. > > p. >
Re: Need help upgrading JumpStart examples to Tapestry 5.2
wow! would be great for anyone who is starting 2010/12/23 Christian Riedel > No, I thought it would be easier to merge changes back to your code repo if > people could generate patches. On github people could send you a pull > request with their changes. Well, no problem if you don't like that idea ;-) > > > Am 23.12.2010 um 13:48 schrieb Geoff Callender: > > > The code for each example is there in each demo and the complete project > is fully downloadable. Always has been! > > > > http://jumpstart.doublenegative.com.au/download.html > > > > Am I missing something? > > > > Cheers, > > > > Geoff > > > > On 23/12/2010, at 4:15 AM, Taha Hafeez wrote: > > > >> I would love to !! Just share the code > >> > >> regards > >> Taha > >> > >> > >> On Tue, Dec 21, 2010 at 4:16 PM, Christian Riedel > >> wrote: > >> > >>> Maybe it's easier if you upload the code to github! > >>> > >>> Am 21.12.2010 um 11:37 schrieb Geoff Callender: > >>> > Hi all, > > I need help upgrading the JumpStart examples to Tapestry 5.2.4 because > I > >>> am absolutely "flat out" with a project deadline at the moment. If > anyone > >>> can provide an update to any example then I would really appreciate it. > >>> Please post the code in this thread or email me directly, whichever you > >>> prefer, and I will do my best to pull them together for the next > release. > > Cheers, > > Geoff > http://jumpstart.doublenegative.com.au/jumpstart/ > > > - > 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 > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Pablo S. Borges Bacharel em Ciência da Computação Especialista em Qualidade e Gestão de Software SCJP - Sun Certified Java Programmer 1.4
Re: KaptchaImage TapX
Don't worry, Howard. I'm very thankful to you and the other commiters for what you are doing with Tapestry. And that's why I try to not only report you the problem but to also give a hand posting a solution or at least a clue of what is happening when I can't handle it ;) -- View this message in context: http://tapestry-users.832.n2.nabble.com/KaptchaImage-TapX-tp5862667p5864982.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: plupload with Tapestry
Thanks to both of you. Josh, adding the JSON result processor to the traditional requests I suppose it is harmless. But, the result processor for the blocks I think it is the RenderCommandComponentEventResultProcessor, and it does many things with Partial Markup Renders/Filters, etc, and it even uses an AjaxFormUpdateController service, so I do not know if I it is safe to use this for traditional requests... I know it is not "normal" the need to render partials in traditional requests, but I think for integration with libraries or other software, it can be very useful… not directly the HTML, but, as Tapestry does for Ajax requests, a JSON object with an HTML partial. Regards, Raul. -- View this message in context: http://tapestry-users.832.n2.nabble.com/plupload-with-Tapestry-tp5862187p5864972.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: Grid with Scroll synchronization + Customization
Can you wrap the grid in a div with fixed height / width and set its overflow css property to "both"? Specify a pager for both the top and bottom of the grid and use some custom css to make their positions absolute? I'm not sure there is a need to be altering the GridDataSource for this requirement unless I'm missing something. Regards, Jim. -Original Message- From: Duruk_Kab [mailto:durgesh.ka...@nuware.com] Sent: 24 December 2010 09:09 To: users@tapestry.apache.org Subject: Grid with Scroll synchronization + Customization Hi, I have below requirements for Tapestry grid, I am using Tapestry 5.1.0.5: - Reduce the grid size (Say to display in half of the page) with 50 records per page -> I can handle showing records per page but to reduce the grid size, I could not get any example. - I have around 50 columns to display in the grid with different widht based on the source type (Date, String, Amount etc.) - I have to manage Vertical + Horizontal synchronization for the grid, like if i move to right side of the grid both columns as well as Content should scroll. - I have to manage pagination. -> This shold be managed automatically, i guess. I have got the source of Tapestry GridDataSource, based on that I can handle pagination with number of records. Can you please guide me to handle all these requrements efficiently without compromizing on perfomance issues? That will be really helpful. I did have a look at JumpStart but it did not help me to fulfull all my requirements. (http://202.177.217.122:8080/jumpstart/) Thanks, DK -- View this message in context: http://tapestry-users.832.n2.nabble.com/Grid-with-Scroll-synchronization-Cus tomization-tp5863225p5863225.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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Grid with Scroll synchronization + Customization
Hi, I have below requirements for Tapestry grid, I am using Tapestry 5.1.0.5: - Reduce the grid size (Say to display in half of the page) with 50 records per page -> I can handle showing records per page but to reduce the grid size, I could not get any example. - I have around 50 columns to display in the grid with different widht based on the source type (Date, String, Amount etc.) - I have to manage Vertical + Horizontal synchronization for the grid, like if i move to right side of the grid both columns as well as Content should scroll. - I have to manage pagination. -> This shold be managed automatically, i guess. I have got the source of Tapestry GridDataSource, based on that I can handle pagination with number of records. Can you please guide me to handle all these requrements efficiently without compromizing on perfomance issues? That will be really helpful. I did have a look at JumpStart but it did not help me to fulfull all my requirements. (http://202.177.217.122:8080/jumpstart/) Thanks, DK -- View this message in context: http://tapestry-users.832.n2.nabble.com/Grid-with-Scroll-synchronization-Customization-tp5863225p5863225.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