Re: Component parameters-unintended persistent binding

2010-10-19 Thread Jeshurun Daniel
I've finally figured out the cause of the problem but is just really weird. Turns out the problem was being caused by a CSS class name! This is the code from the breadcrumb component: div class=module xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; t:loop

Re: T5 Customize Returned List.

2010-10-19 Thread ael
Hello Hmm it is returned as a ListTableClass. @Property private TableSource source; public ListTableClass getSource(){ return ListTableClass; } t:loop source=Source value=source {$source.value} /t:loop That is my problem... -- View this message in context:

AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
Hello all, i think i've asked similar questions some time ago, but receive no answers. And since i've done no progress on this myself, i'd like to ask: - any ideas how to implement checkbox which onClick auto-submits entire form via ajax, and on server side it rolls ordinary tapestry 5 form

Re: AjaxCheckbox component

2010-10-19 Thread ael
Check this out... http://jumpstart.doublenegative.com.au:8080/jumpstart/ http://jumpstart.doublenegative.com.au:8080/jumpstart/ http://lombok.demon.co.uk/tapestry5Demo/ http://lombok.demon.co.uk/tapestry5Demo/ Good Luck :) -- View this message in context:

Re: T5 Customize Returned List.

2010-10-19 Thread ningdh
Hi, Don't quiet understand your problem. Do you mean object type casting? - Original Message - From: ael alan-lua...@dash.com.ph To: users@tapestry.apache.org Sent: Tuesday, October 19, 2010 5:01 PM Subject: Re: T5 Customize Returned List. Hello Hmm it is returned as a

Re: AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
I'm sorry what exactly you suggested me to look into? i can't see any example of ajax-checkbox on those page. On Tue, Oct 19, 2010 at 1:26 PM, ael alan-lua...@dash.com.ph wrote: Check this out... http://jumpstart.doublenegative.com.au:8080/jumpstart/

RE: T5 Customize Returned List.

2010-10-19 Thread Jim O'Callaghan
I'm surprised Tapestry didn't complain when you have an annotation @Property on the item and also a matching explicit getter. In the .tml I think you should use distinct naming for the source and value arguments as the behavior might not be what you expect otherwise (T5 is case insensitive in

Re: AjaxCheckbox component

2010-10-19 Thread Sven Homburg
add a javascript function to the onClick event of the checkbox that do trigger the form.submit() with regards Sven Homburg Founder of the Chenille Kit Project http://chenillekit.codehaus.org 2010/10/19 Dmitriy Vsekhvalnov dvsekhval...@gmail.com: I'm sorry what exactly you suggested me to

RE: T5 Customize Returned List.

2010-10-19 Thread ael
Sorry i will made it clear. Page Class @Property private TableSource sourceA; public ListTableSource getSource(){ return ListTableSource; } Template t:loop source=Source value=sourceA {$sourceA.value} /t:loop Something like this... tapestry will automatically loop the item

Re: AjaxCheckbox component

2010-10-19 Thread ael
I mean the link that i posted are components therefore they are the same as checkbox... -- View this message in context: http://tapestry.1045711.n5.nabble.com/AjaxCheckbox-component-tp3218716p3218786.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
yeah, i've tried this but, the checkbox in-browser state is NOT set until Zone returned from from handler. Ok honestly it is set when you click, but RESET to original state when form submission via XHR started and updated only when zone is received. Just check it: public Object onSuccess()

Re: T5 Customize Returned List.

2010-10-19 Thread Thiago H. de Paula Figueiredo
On Tue, 19 Oct 2010 08:08:07 -0200, ael alan-lua...@dash.com.ph wrote: Sorry i will made it clear. Page Class @Property private TableSource sourceA; public ListTableSource getSource(){ return ListTableSource; } Template t:loop source=Source value=sourceA {$sourceA.value}

Re: AjaxCheckbox component

2010-10-19 Thread Thiago H. de Paula Figueiredo
On Tue, 19 Oct 2010 08:24:46 -0200, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: yeah, i've tried this but, the checkbox in-browser state is NOT set until Zone returned from from handler. Make your click handling code set the checkbox immediately then submit the form. Most probably

Re: T5 Customize Returned List.

2010-10-19 Thread ael
Ahhh Now i understand i can access the source field using getter in the page class Therefore i don't need to use property anymore. I will try it. Thanks Everyone. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Customize-Returned-List-tp3218486p3218850.html Sent

Re: AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
Thiago, is not. Here is the mechanics i debug using fire-bug: 1. checkbox in-browser (which means visible to user) set immediately. 2. usual Tapestry form submission JS loop is started 3. linkZone : function(element, zoneId, url) { . //until this browser shows modified version of

Re: Component parameters-unintended persistent binding

2010-10-19 Thread Josh Canfield
You were probably hitting the page url for every image with the image path as context to the page. On 18 Oct 2010 23:41, Jeshurun Daniel sjeshu...@yahoo.ca wrote: I've finally figured out the cause of the problem but is just really weird. Turns out the problem was being caused by a CSS class

Re: Tapestry 5.2.1 upgrade woes

2010-10-19 Thread Vangel V. Ajanovski
I don't think it's a framework problem but Chenillekit problem. Imagine for example you are building an application with Oracle database via JDBC but you are not using the regular published JDBC interfaces that everybode else does, but some internal class that is part of the exact implementation

write raw attributes

2010-10-19 Thread Arming, Sebastian
Hi, is there a convenient way to output unescaped attributes - i.e. other than writer.writeRaw('e a=quot;/')? Specifically I need entities in a href. Thanks in Advance, Sebastian Arming

RE: write raw attributes

2010-10-19 Thread Jim O'Callaghan
Is something like: t:OutputRaw value=entity.property/ ... of any use? Do you mean in .tml? Regards, Jim. -Original Message- From: Arming, Sebastian [mailto:sebastian.arm...@oeaw.ac.at] Sent: 19 October 2010 16:12 To: us...@tapestry Subject: write raw attributes Hi, is there a

Re: Tapestry 5.2.1 upgrade woes

2010-10-19 Thread Howard Lewis Ship
Don't be too harsh on the 3rd party developers; we're still working out what needs to be public and how. We take the internals can change at any time vow seriously, which is painful for any 3rd party library developers, as sometimes you have to dive into the internal side to accomplish things. I

RE: write raw attributes

2010-10-19 Thread Arming, Sebastian
From: Jim O'Callaghan [mailto:jc1000...@yahoo.co.uk] Subject: RE: write raw attributes Is something like: t:OutputRaw value=entity.property/ ... of any use? Do you mean in .tml? Unfortunately no, because XML-Attributes can't contain XML-Elements, i.e.: a href='t:outputraw value=foo/' /

Re: AjaxCheckbox component

2010-10-19 Thread Thiago H. de Paula Figueiredo
Hi, Dmitriy! Isn't this the natural delay between a request, its processing and the reception of the response? In this case, it's not Tapestry itself, it's using AJAX. On Tue, 19 Oct 2010 09:24:23 -0200, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Thiago, is not. Here is the

Re: AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
Is it what AJAX stands for? :) i was thinking that ajax is to do things in background, while letting user see something immediately. And i don't think checkbox falls to area where it should get response from server to display new state, isn't it? anyway you can try it yourself and see that it is

Re: AjaxCheckbox component

2010-10-19 Thread Thiago H. de Paula Figueiredo
On Tue, 19 Oct 2010 14:10:00 -0200, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Is it what AJAX stands for? :) Yes! :) i was thinking that ajax is to do things in background, while letting user see something immediately. And i don't think checkbox falls to area where it should

Re: AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
Here you go. JS + Java. Let me know if you find something in, which can cause such behavior :) JS Tapestry.AjaxCheckbox = Class.create({ initialize: function(formId, clientId, selectAllMode, radioMode) { this.selectAllMode=selectAllMode;

Re: AjaxCheckbox component

2010-10-19 Thread Andreas Andreou
what happens if you omit Event.stop(event); in you onClick function ? On Tue, Oct 19, 2010 at 21:10, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: Here you go. JS + Java.   Let me know if you find something in, which can cause such behavior :) JS

Re: write raw attributes

2010-10-19 Thread Josh Canfield
Taking a look at how attributes are rendered ( org.apache.tapestry5.dom.Attribute) I don't see anything that allows you to turn on and off entity encoding. It uses the model to encode the quoted attribute, so you might be able to create a new markup model... Josh On Tue, Oct 19, 2010 at 8:55

Re: change session id after login

2010-10-19 Thread Mike Oestereter
On Mon, Oct 18, 2010 at 1:45 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com Are you sure? This doesn't make a lot of sense. As you can have more than one session state object, changing the session id would be the same as invalidating the session. This would be a serious bug. I'm pretty

Re: Tapestry 5.2.1 upgrade woes

2010-10-19 Thread Vangel V. Ajanovski
My intention is not to be harsh. I could not be harsh to anyone giving me something as open and free. It's a gift. We have a proverb that you don't check and complain about the teeth of a horse you got as a gift. First of all it would be impolite and unfair. We are just really unhappy if Equanda

Re: change session id after login

2010-10-19 Thread Mike Oestereter
The problem is that I don't want to invalidate the session from an application point of view. After successful login I want to store details about the authenticated user in the user session. I just want to kill the existing cookie and associate a new (and different cookie) with the current

Re: change session id after login

2010-10-19 Thread Kalle Korhonen
That's a rather peculiar requirement. Sessions are semi-managed by the container and I don't know of a container that would allow you to do that. If you used Shiro in native session mode, you could probably change the id but even then, you'd need to cast and use the implementation classes

Re: AjaxCheckbox component

2010-10-19 Thread Dmitriy Vsekhvalnov
i can't see any visual difference if i remove Event.stop(..). I grad idea for code from some Tapestry standard component, may be LinkSubmit or so. And i think it behave pretty standard. On the other hand i've noticed that when i use it in 'select-all' mode, where one checkbox sets all others