Re: Fwd: Get label input submit

2012-10-17 Thread William Lopes
Hey guys, after all this discussion, someone have idea of how I can get the label of the submit button? 2012/10/17 William Lopes > Man, I tested this today and not works in the practice. > > 2012/10/16 Thiago H de Paula Figueiredo > >> On Tue, 16 Oct 2012 22:25:48 -0300, William Lopes < >> will

Re: Fwd: Get label input submit

2012-10-16 Thread William Lopes
Man, I tested this today and not works in the practice. 2012/10/16 Thiago H de Paula Figueiredo > On Tue, 16 Oct 2012 22:25:48 -0300, William Lopes < > williamlopes@gmail.com> wrote: > > So, we go to say that I have 3 atributes in my form: title(stringGeneric), >> author(modeloDadosGeneric)

Re: Fwd: Get label input submit

2012-10-16 Thread Thiago H de Paula Figueiredo
On Tue, 16 Oct 2012 22:25:48 -0300, William Lopes wrote: So, we go to say that I have 3 atributes in my form: title(stringGeneric), author(modeloDadosGeneric), year(numericGeneric). Case I try to click in submit of the author, the context received will be "year", if I add another field, li

Fwd: Get label input submit

2012-10-16 Thread William Lopes
Unfortunately, in practice this doesn't works. 2012/10/16 Lance Java > > Yes, but my currentAtributoGeneric is just one variable and your value is > changed the each iteration > Correct, but before it is changed, you are rendering a HTML submit button > to > the MarkupWriter. End result being mu

Re: Get label input submit

2012-10-16 Thread William Lopes
public Object onSelectedFromSelecionar(String atributoNome) { } Sorry, I put the code that I was testing. The right context is: t:context="currentAtributoGeneric.name" 2012/10/16 Thiago H de Paula Figueiredo > t:id="selecionar" t:context="id" value=" " class="imageSubmit"/> > > public Obj

Re: Get label input submit

2012-10-16 Thread Thiago H de Paula Figueiredo
t:id="selecionar" t:context="id" value=" " class="imageSubmit"/> public Object onSelectedFromSelecionar(String atributoNome) { } It seems to me you're passing one context in the template (an id) and expecting something else in the event handler method (an attribute name). I have no idea wha

Re: Get label input submit

2012-10-16 Thread Lance Java
iew this message in context: http://tapestry.1045711.n5.nabble.com/Get-label-input-submit-tp5716924p5716972.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-

Re: Get label input submit

2012-10-16 Thread William Lopes
.java http://pastebin.com/PPuJjkSm .tml http://pastebin.com/Fz4yWzNX Like I said in previous mails, the context of the submit button is changed for the currentAtributoGeneric of last input field of the form. 2012/10/16 Thiago H de Paula Figueiredo > On Tue, 16 Oct 2012 17:06:57 -0300, William

Re: Get label input submit

2012-10-16 Thread Thiago H de Paula Figueiredo
On Tue, 16 Oct 2012 17:06:57 -0300, William Lopes wrote: http://pastebin.com/PPuJjkSm Template please too. And please describe why you say it doesn't work. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-

Re: Get label input submit

2012-10-16 Thread William Lopes
http://pastebin.com/PPuJjkSm 2012/10/16 Thiago H de Paula Figueiredo > On Tue, 16 Oct 2012 15:49:12 -0300, William Lopes < > williamlopes@gmail.com> wrote: > > That's what I think too, but in the practice this not works. >> > > Code please. ;) > > > -- > Thiago H. de Paula Figueiredo > > --

Re: Get label input submit

2012-10-16 Thread Thiago H de Paula Figueiredo
On Tue, 16 Oct 2012 15:49:12 -0300, William Lopes wrote: That's what I think too, but in the practice this not works. Code please. ;) -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.a

Re: Get label input submit

2012-10-16 Thread William Lopes
That's what I think too, but in the practice this not works. 2012/10/16 Thiago H de Paula Figueiredo > On Tue, 16 Oct 2012 15:13:09 -0300, William Lopes < > williamlopes@gmail.com> wrote: > > Yes, but my currentAtributoGeneric is just one variable and your value is >> changed the each itera

Re: Get label input submit

2012-10-16 Thread Thiago H de Paula Figueiredo
On Tue, 16 Oct 2012 15:13:09 -0300, William Lopes wrote: Yes, but my currentAtributoGeneric is just one variable and your value is changed the each iteration. I have that to find another way, something that make reference too. If I use the currentAtributoGeneric like you said, I'll to cat

Re: Get label input submit

2012-10-16 Thread William Lopes
gt; use this entire object as your context (assuming that it has an encoder) or > a primary key. You could even use selected fields from this object to > construct a context array. > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Get-label-in

Re: Get label input submit

2012-10-16 Thread Lance Java
object to construct a context array. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Get-label-input-submit-tp5716924p5716958.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsu

Re: Get label input submit

2012-10-16 Thread Lance Java
on the current submit you are rendering? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Get-label-input-submit-tp5716924p5716929.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To

Re: Get label input submit

2012-10-16 Thread William Lopes
gt; View this message in context: > http://tapestry.1045711.n5.nabble.com/Get-label-input-submit-tp5716924p5716927.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To

Re: Get label input submit

2012-10-16 Thread Lance Java
Use the event onSelectedFromX() where X is the t:id of the t:submit. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Get-label-input-submit-tp5716924p5716927.html Sent from the Tapestry - User mailing list archive at Nabble.com