attach a client side xhr form submit listener
I have a script which I would like executed whenever a form is submitted. the form is submitted via an XHR request, ie it has a zone attribute. the form is also within a zone which gets updated from time to time meaning it's dom id is changed by tapestry. has anyone overcome these issues? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [tynamo-user] Tynamo and Tapestry in the Vodafone Mobile Clicks 2010 finals
Great Job! What's roles Tynamo took in this application? On Mon, Sep 20, 2010 at 7:32 AM, Alejandro Scandroli wrote: > A Tynamo/Tapestry application called MALCOM is one of the four > finalists of Vodafone Mobile Clicks 2010 > (http://www.vodafonemobileclicks.com/) > MALCOM is a mobile application lifecycle management system. The > service – accessed through a simple web interface – takes the > complexity, time and cost out of managing, updating and rolling out > mobile applications, making it much more straightforward for > application developers to manage their work. > > We could really use some support, If you don't mind, please vote for > us here: http://www.vodafonemobileclicks.com/vote (make sure you > validate your vote). > Tynamo's tapestry-resteasy and the first version of tapestry-security > came as a result of the work done in MALCOM, so your vote will help me > to keep working on them in the future :) > > > Thanks in advance. > Cheers. > Alejandro Scandroli. > > - > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- cleverpig(Dan) Location: Beijing Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China Zipcode: 100031 MSN: great_liu...@hotmail.com QQ: 149291732 Skype: cleverpigatmatrix Facebook ID:cleverpig Blog: cleverpig.name/dan/ Tags: del.icio.us/cleverpig Twitter: twitter.com/cleverpig 新浪微博: t.sina.com.cn/cleverpig Organization: www.beijing-open-party.org or...@facebook: http://www.facebook.com/group.php?gid=8159558294 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tynamo and Tapestry in the Vodafone Mobile Clicks 2010 finals
A Tynamo/Tapestry application called MALCOM is one of the four finalists of Vodafone Mobile Clicks 2010 (http://www.vodafonemobileclicks.com/) MALCOM is a mobile application lifecycle management system. The service – accessed through a simple web interface – takes the complexity, time and cost out of managing, updating and rolling out mobile applications, making it much more straightforward for application developers to manage their work. We could really use some support, If you don't mind, please vote for us here: http://www.vodafonemobileclicks.com/vote (make sure you validate your vote). Tynamo's tapestry-resteasy and the first version of tapestry-security came as a result of the work done in MALCOM, so your vote will help me to keep working on them in the future :) Thanks in advance. Cheers. Alejandro Scandroli. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: editable grid - not receiving the changed value in the event handler
Code for the submit button - public void onSelectedFromSet(String timeToLive) { System.out.println("onSelectedFromSet: " + timeToLive); // always the value of the last row from the grid } -- View this message in context: http://tapestry.1045711.n5.nabble.com/editable-grid-not-receiving-the-changed-value-in-the-event-handler-tp2845740p2846047.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: editable grid - not receiving the changed value in the event handler
sorry...here is the TML with the eventLink code... Save My idea was to originally have buttons next to the editable field (instead of the eventLink. In the code above i have included that, id="set"). But i couldnt get multiple "submit" buttons working. What was happening was - if i have three rows in my grid, then, irrespective of which submit button i press i am only receiving the value of the last row in the grid. Help! Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/editable-grid-not-receiving-the-changed-value-in-the-event-handler-tp2845740p2846043.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: editable grid - not receiving the changed value in the event handler
You haven't provided the code for your event link so it's hard to say why you think it would work. I would guess that you are putting the value of the field as the context for the event link, in which case tapestry is doing exactly what you asked, sending back the value of the field as it was defined when the page rendered. If you want to update the field with the current value for the form the you'll need to either post the whole form or do some JavaScript to get the values you need into the event link. -- Josh On Sep 19, 2010, at 9:35 AM, hese <1024h...@gmail.com> wrote: > > > Hi, > > I have a grid in which i have an editable field. I've added an actonLink to > the same cell. When the value of the editable cell is changed and the > actionLink is pressed I want to receive the changed value and the id and > process it. > > my tml looks like this - > > t:include="id,firstname,lastname"> > > > Save > > > > I've written an action handler - > > void onSave(String id) > { > System.out.println(id); //expect to receive something like "102-changed > name" > } > > but when I change the name and click on save, i only get the old name in the > event handler and not the changed one. > > Where am i going wrong? > > Thanks > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/editable-grid-not-receiving-the-changed-value-in-the-event-handler-tp2845740p2845740.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: Upgrading Application from T51 to T52, jquery Exception
Look here: http://markmail.org/thread/rq4vp7hi437smsrh On Sun, Sep 19, 2010 at 9:00 PM, Robert Einsle wrote: > Hy, > > i just written an Web-Application based on Tapestry 5.1.0.5. While > Upgrading to 5.2 i recive following Exception: > > --- cut --- > 2010-09-19 20:33:57,020 ERROR [http-8080-2] Index M[run] - Render queue > error in BeginRender[Index:filterpostsvon]: Unable to create a client > URL for classpath resource jquery-1.3.2.js: The resource path was not > within an aliased path. > org.apache.tapestry5.ioc.internal.util.TapestryException: Unable to > create a client URL for classpath resource jquery-1.3.2.js: The resource > path was not within an aliased path. [at context:Index.tml, line 32] >at > > org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.invoke(ComponentPageElementImpl.java:194) >at > > org.apache.tapestry5.internal.structure.ComponentPageElementImpl$BeginRenderPhase.render(ComponentPageElementImpl.java:246) >at > > org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72) >at > > org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:117) >at > $PageRenderQueue_12b2b45d38a.render($PageRenderQueue_12b2b45d38a.java) >at > $PageRenderQueue_12b2b45d381.render($PageRenderQueue_12b2b45d381.java) >at > > org.apache.tapestry5.internal.services.MarkupRendererTerminator.renderMarkup(MarkupRendererTerminator.java:37) >at > > org.apache.tapestry5.services.TapestryModule$29.renderMarkup(TapestryModule.java:2073) >at > $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) >at > > org.apache.tapestry5.services.TapestryModule$28.renderMarkup(TapestryModule.java:2057) >at > $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) >at > > org.apache.tapestry5.services.TapestryModule$27.renderMarkup(TapestryModule.java:2039) >at > $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) >at > > org.apache.tapestry5.services.TapestryModule$26.renderMarkup(TapestryModule.java:2024) >at > $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) >at > > org.apache.tapestry5.services.TapestryModule$25.renderMarkup(TapestryModule.java:2008) >at > $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) >at > > org.apache.tapestry5.services.TapestryModule$24.renderMarkup(TapestryModule.java:1990) >at > $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) >at > > org.apache.tapestry5.services.TapestryModule$23.renderMarkup(TapestryModule.java:1971) >at > $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) >at > $MarkupRenderer_12b2b45d388.renderMarkup($MarkupRenderer_12b2b45d388.java) >at > > org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:64) >at > > $PageMarkupRenderer_12b2b45d386.renderPageMarkup($PageMarkupRenderer_12b2b45d386.java) >at > > org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:60) >at > > $PageResponseRenderer_12b2b45d205.renderPageResponse($PageResponseRenderer_12b2b45d205.java) >at > > org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:64) >at > > org.apache.tapestry5.services.TapestryModule$36.handle(TapestryModule.java:2312) >at > > $PageRenderRequestHandler_12b2b45d207.handle($PageRenderRequestHandler_12b2b45d207.java) >at > > $PageRenderRequestHandler_12b2b45d201.handle($PageRenderRequestHandler_12b2b45d201.java) >at > > org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48) >at > > org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47) >at > > $ComponentRequestHandler_12b2b45d202.handlePageRender($ComponentRequestHandler_12b2b45d202.java) >at > > $ComponentRequestHandler_12b2b45d1e6.handlePageRender($ComponentRequestHandler_12b2b45d1e6.java) >at > > org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45) >at $Dispatcher_12b2b45d1e8.dispatch($Dispatcher_12b2b45d1e8.java) >at $Dispatcher_12b2b45d1e3.dispatch($Dispatcher_12b2b45d1e3.java) >at > > org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:320) >at > > org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) >at $RequestHandler_12b2b45d1e4.service($RequestHandler_12b2b45d1e4.java) >at > > org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:982) >at $RequestHandler_12b2b45d1e4.service($RequestHandler_12b2b45d1e4.java) >at > > org.apache.tapestry5.services.TapestryModule$3.service(Tapest
Upgrading Application from T51 to T52, jquery Exception
Hy, i just written an Web-Application based on Tapestry 5.1.0.5. While Upgrading to 5.2 i recive following Exception: --- cut --- 2010-09-19 20:33:57,020 ERROR [http-8080-2] Index M[run] - Render queue error in BeginRender[Index:filterpostsvon]: Unable to create a client URL for classpath resource jquery-1.3.2.js: The resource path was not within an aliased path. org.apache.tapestry5.ioc.internal.util.TapestryException: Unable to create a client URL for classpath resource jquery-1.3.2.js: The resource path was not within an aliased path. [at context:Index.tml, line 32] at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.invoke(ComponentPageElementImpl.java:194) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$BeginRenderPhase.render(ComponentPageElementImpl.java:246) at org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72) at org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:117) at $PageRenderQueue_12b2b45d38a.render($PageRenderQueue_12b2b45d38a.java) at $PageRenderQueue_12b2b45d381.render($PageRenderQueue_12b2b45d381.java) at org.apache.tapestry5.internal.services.MarkupRendererTerminator.renderMarkup(MarkupRendererTerminator.java:37) at org.apache.tapestry5.services.TapestryModule$29.renderMarkup(TapestryModule.java:2073) at $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) at org.apache.tapestry5.services.TapestryModule$28.renderMarkup(TapestryModule.java:2057) at $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) at org.apache.tapestry5.services.TapestryModule$27.renderMarkup(TapestryModule.java:2039) at $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) at org.apache.tapestry5.services.TapestryModule$26.renderMarkup(TapestryModule.java:2024) at $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) at org.apache.tapestry5.services.TapestryModule$25.renderMarkup(TapestryModule.java:2008) at $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) at org.apache.tapestry5.services.TapestryModule$24.renderMarkup(TapestryModule.java:1990) at $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) at org.apache.tapestry5.services.TapestryModule$23.renderMarkup(TapestryModule.java:1971) at $MarkupRenderer_12b2b45d38c.renderMarkup($MarkupRenderer_12b2b45d38c.java) at $MarkupRenderer_12b2b45d388.renderMarkup($MarkupRenderer_12b2b45d388.java) at org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:64) at $PageMarkupRenderer_12b2b45d386.renderPageMarkup($PageMarkupRenderer_12b2b45d386.java) at org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:60) at $PageResponseRenderer_12b2b45d205.renderPageResponse($PageResponseRenderer_12b2b45d205.java) at org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:64) at org.apache.tapestry5.services.TapestryModule$36.handle(TapestryModule.java:2312) at $PageRenderRequestHandler_12b2b45d207.handle($PageRenderRequestHandler_12b2b45d207.java) at $PageRenderRequestHandler_12b2b45d201.handle($PageRenderRequestHandler_12b2b45d201.java) at org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48) at org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47) at $ComponentRequestHandler_12b2b45d202.handlePageRender($ComponentRequestHandler_12b2b45d202.java) at $ComponentRequestHandler_12b2b45d1e6.handlePageRender($ComponentRequestHandler_12b2b45d1e6.java) at org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45) at $Dispatcher_12b2b45d1e8.dispatch($Dispatcher_12b2b45d1e8.java) at $Dispatcher_12b2b45d1e3.dispatch($Dispatcher_12b2b45d1e3.java) at org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:320) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) at $RequestHandler_12b2b45d1e4.service($RequestHandler_12b2b45d1e4.java) at org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:982) at $RequestHandler_12b2b45d1e4.service($RequestHandler_12b2b45d1e4.java) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:972) at $RequestHandler_12b2b45d1e4.service($RequestHandler_12b2b45d1e4.java) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90) at $RequestHandler_12b2b45d1e4.service($RequestHandler_12b2b45d1e4.java) at org.apache.tapestry5.internal.servic
Re: Problem with BeanEditForm validation
This is by design. BeanEditForm is a scaffolding component; although it is quite configurable and extensible, if you have very involved and specific client requirements for layout and validation, just use a normal Form and related components. You'll find that TextField and friends still honor @Validate and @Translate annotations, and still generate reasonable default labels, etc. On Sun, Sep 19, 2010 at 10:04 AM, Peter Niederwieser wrote: > > When using a BeanEditForm, I don't get validate events for individual > properties (e.g. "onValidateFromUsername"). Only when I add a custom block > for a property with an element and a t:id, I do get the event. Is this a > bug? I'm using Tapestry 5.2.0. > > Cheers, > Peter > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Problem-with-BeanEditForm-validation-tp2845764p2845764.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 > > -- 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
Problem with BeanEditForm validation
When using a BeanEditForm, I don't get validate events for individual properties (e.g. "onValidateFromUsername"). Only when I add a custom block for a property with an element and a t:id, I do get the event. Is this a bug? I'm using Tapestry 5.2.0. Cheers, Peter -- View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-with-BeanEditForm-validation-tp2845764p2845764.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
editable grid - not receiving the changed value in the event handler
Hi, I have a grid in which i have an editable field. I've added an actonLink to the same cell. When the value of the editable cell is changed and the actionLink is pressed I want to receive the changed value and the id and process it. my tml looks like this - Save I've written an action handler - void onSave(String id) { System.out.println(id); //expect to receive something like "102-changed name" } but when I change the name and click on save, i only get the old name in the event handler and not the changed one. Where am i going wrong? Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/editable-grid-not-receiving-the-changed-value-in-the-event-handler-tp2845740p2845740.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
@Translate annotation
I'm have a NumberFormatBinding service as outlined on this list previously ,to mask numeric fields for display with a format mask ex. I noticed in T5.2.0 there is an @Translate annotation - rather than using specifying the translator repeatedly in various tml files, is there some way I can name the translator on a bean property, and also pass in the mask to be used? The @Translate annotation appears to just take a 'value' parameter that is the name of the translator. Thanks, Jim.
Radio button and submit
I have two radio buttons and want to submit a form when one gets selected. I have this code. # # The correct events get called when the radio gets selected, but after that always the second radio is displayed as selected. I have the type as a parameter: @Persist @Property private String type; Is there a solution for this? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Radio-button-and-submit-tp2845487p2845487.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: Page Layout
On 19.09.2010 10:11, Dmitry Gusev wrote: There only around 2-3% of clients with JS disabled. Where do you get those numbers? If you want to support them you could simply redirect them to mobile/non-JS version of your site (like gmail and many others do). Then you have to design and maintain two seperate versions of your site. In my projects I always count on JS assuming its enabled in client browser. In my opinion, a website should be usable completely without JavaScript, adding more comfort with JS where needed. But this is not a Tapestry issue. Please direct further answers to my address, not the list. - Stephan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Page Layout
You can search for string // Get document width or height in jQuery source: http://code.jquery.com/jquery-1.4.2.js On Sun, Sep 19, 2010 at 12:06, Dmitry Gusev wrote: > Take a look at implementation details of width/height in jQuery: > > $(document).width(); > $(document).height(); > > This should give you what you want. > > See also: > http://stackoverflow.com/questions/838137/jquery-change-height-based-on-browser-size-resize > > On Sun, Sep 19, 2010 at 11:44, Charith Madusanka wrote: > >> I want page width and hight how I get it? >> > > > > -- > Dmitry Gusev > > AnjLab Team > http://anjlab.com > -- Dmitry Gusev AnjLab Team http://anjlab.com
Re: Page Layout
There only around 2-3% of clients with JS disabled. If you want to support them you could simply redirect them to mobile/non-JS version of your site (like gmail and many others do). In my projects I always count on JS assuming its enabled in client browser. On Sun, Sep 19, 2010 at 11:56, Stephan Windmüller < stephan.windmuel...@tu-dortmund.de> wrote: > On 19.09.2010 09:44, Charith Madusanka wrote: > > I want page width and hight how I get it? >> > > The only way to determine the current page width and height is JavaScript. > But do not count on it, there are already too many sites out there with a > broken layout when JS is disabled. > > Instead you should use a layout which works at nearly any resolution. > > - Stephan > > - > 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: Page Layout
Take a look at implementation details of width/height in jQuery: $(document).width(); $(document).height(); This should give you what you want. See also: http://stackoverflow.com/questions/838137/jquery-change-height-based-on-browser-size-resize On Sun, Sep 19, 2010 at 11:44, Charith Madusanka wrote: > I want page width and hight how I get it? > -- Dmitry Gusev AnjLab Team http://anjlab.com
Re: Page Layout
On 19.09.2010 09:44, Charith Madusanka wrote: I want page width and hight how I get it? The only way to determine the current page width and height is JavaScript. But do not count on it, there are already too many sites out there with a broken layout when JS is disabled. Instead you should use a layout which works at nearly any resolution. - Stephan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Page Layout
I want page width and hight how I get it?