You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by grignette <la...@hotmail.fr> on 2013/04/11 13:57:04 UTC
Set value in a textfield
Hi !
Maybe it's an easy question with easy solution... But I don't find the
solution !
Please, can you tell me how to set the value of the texfield without use
models. Is it possible ?
Thanks for your help.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Set-value-in-a-textfield-tp4657883.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: Set value in a textfield
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
Usually you should use a Model.
But since you want to avoid it for some reason then you can use JavaScript
that sets the value when the DOM is ready.
On Thu, Apr 11, 2013 at 2:57 PM, grignette <la...@hotmail.fr> wrote:
> Hi !
>
> Maybe it's an easy question with easy solution... But I don't find the
> solution !
>
> Please, can you tell me how to set the value of the texfield without use
> models. Is it possible ?
>
> Thanks for your help.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Set-value-in-a-textfield-tp4657883.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
>
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>
Re: Set value in a textfield
Posted by grignette <la...@hotmail.fr>.
With Ajax.
I found the method onEvent(IEvent<?> event). I try to search with this for
delete my textfield.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Set-value-in-a-textfield-tp4657883p4657889.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: Set value in a textfield
Posted by Andrea Del Bene <an...@gmail.com>.
How is implemented the popin (via AJAX, using anchor attribute
'target'....)?
> Thanks for your ideas.
>
> I don't want to use Model because I just want to recover one value.
>
> I have a popin in my page. When I click on the link in the popin, the popin
> is closed and I want to recover the value of the click. I haven't find how
> to pass this value to my page. So I had this idea to update a textfield in
> the page. This page must do action with this value after. Maybe Wicket
> propose something for the communication between two pages. But I am just
> novice in wicket.
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Set-value-in-a-textfield-tp4657883p4657886.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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Set value in a textfield
Posted by grignette <la...@hotmail.fr>.
Thanks for your ideas.
I don't want to use Model because I just want to recover one value.
I have a popin in my page. When I click on the link in the popin, the popin
is closed and I want to recover the value of the click. I haven't find how
to pass this value to my page. So I had this idea to update a textfield in
the page. This page must do action with this value after. Maybe Wicket
propose something for the communication between two pages. But I am just
novice in wicket.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Set-value-in-a-textfield-tp4657883p4657886.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: Set value in a textfield
Posted by Marco Springer <ma...@glitchbox.nl>.
Construct it with a string?
new TextField("markupId", Model.of("string"));
or
setModel(Model.of("string"));
Without a model, no clue.
Is there a specific reason why don't want to use a model?
Cheers
On Thursday 11 April 2013 04:57:04 grignette wrote:
> Hi !
>
> Maybe it's an easy question with easy solution... But I don't find the
> solution !
>
> Please, can you tell me how to set the value of the texfield without use
> models. Is it possible ?
>
> Thanks for your help.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Set-value-in-a-textfield-tp46578
> 83.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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org