You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by membersound <me...@web.de> on 2012/11/06 12:27:19 UTC

jQuery submit button for beaneditform?

Can I make use of Tapestry jQuery module within a t:beaneditform? Eg that the
button is styled according to the jquery mixing?
<t:beaneditform submitLabel="Save" />

Or do I explicitly have to specify the button together with the mixin?
<t:form>
<t:beaneditor>
<div class="t-beaneditor-row">
<t:submit t:mixins="jquery/button" class="t-beaneditor-submit" value="Save"
/>


I only could get it to work by the latter example. But is there some "out of
the box" chance for beaneditform without having to specify the button
itself?


Further: do I always have to specify t:mixins="jquery/.." if I want to make
use of jquery?

Thanks



--
View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-submit-button-for-beaneditform-tp5717703.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: jQuery submit button for beaneditform?

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Tue, 06 Nov 2012 10:50:33 -0200, membersound <me...@web.de> wrote:

> Ok, does this mean I have to place /every/ property of the object in  
> it's own <div class="t-beaneditor-row">?

When did I say that? The answer is no.

> Because jQuery renders <t:textfield different (other size and  
> highlighted on mouseover) then beaneditform. So to say: I should forget  
> about using
> beaneditform when using with jQuery as their produced styles will differ  
> and cannot be synchronized?

I haven't used tapestry5-jquery yet, so I don't know.

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: jQuery submit button for beaneditform?

Posted by membersound <me...@web.de>.
Ok, does this mean I have to place /every/ property of the object in it's own
<div class="t-beaneditor-row">?

Because jQuery renders <t:textfield different (other size and highlighted on
mouseover) then beaneditform. So to say: I should forget about using
beaneditform when using with jQuery as their produced styles will differ and
cannot be synchronized?



--
View this message in context: http://tapestry.1045711.n5.nabble.com/jQuery-submit-button-for-beaneditform-tp5717703p5717706.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: jQuery submit button for beaneditform?

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Tue, 06 Nov 2012 09:27:19 -0200, membersound <me...@web.de> wrote:

> Can I make use of Tapestry jQuery module within a t:beaneditform? Eg  
> that the
> button is styled according to the jquery mixing?
> <t:beaneditform submitLabel="Save" />
>
> Or do I explicitly have to specify the button together with the mixin?
> <t:form>
> <t:beaneditor>
> <div class="t-beaneditor-row">
> <t:submit t:mixins="jquery/button" class="t-beaneditor-submit"  
> value="Save"
> />
>
>
> I only could get it to work by the latter example. But is there some  
> "out of
> the box" chance for beaneditform without having to specify the button
> itself?

No. Again, BeanEditform does almost nothing by itself, delegating  
everything to BeanEditor, so you're losing almost nothing (and you get  
flexibility) by using BeanEditor directly.

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org