You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by cosmindumy <co...@yahoo.com> on 2014/01/27 16:11:47 UTC

Can I get an input text value if it's not in a form?

Hello, 
I want to get the value of in input text when pressing when pressing an ajax
link? 
None of the elements are included in a form. Is that possible? Seems that
input value is not submitted to server. 
Thanks.


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-I-get-an-input-text-value-if-it-s-not-in-a-form-tp4663967.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Can I get an input text value if it's not in a form?

Posted by cosmindumy <co...@yahoo.com>.
Thanks. 
I wrapped the input in a form and used an ajax submit link. 
I could not figure out how can I send parameters from client by doing the
work manually, but I will take a deeper look.  
Thanks.


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-I-get-an-input-text-value-if-it-s-not-in-a-form-tp4663967p4664029.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Can I get an input text value if it's not in a form?

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

AjaxLink doesn't submit even when there is a Form.
You need AjaxSubmitLink when there is a form.

You can use AjaxLink to submit a value by doing the work "manually" - you
can add the name/value pair by using AjaxLink's dynamic extra parameters.
See
https://github.com/apache/wicket/blob/442932d4e4c5cc27940bc2ef956cb24c1ba54df0/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxNewWindowNotifyingBehavior.java#L92for
example

Martin Grigorov
Wicket Training and Consulting


On Mon, Jan 27, 2014 at 4:11 PM, cosmindumy <co...@yahoo.com> wrote:

> Hello,
> I want to get the value of in input text when pressing when pressing an
> ajax
> link?
> None of the elements are included in a form. Is that possible? Seems that
> input value is not submitted to server.
> Thanks.
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Can-I-get-an-input-text-value-if-it-s-not-in-a-form-tp4663967.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>