You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Georg Füchsle <g....@safir-wid.de> on 2008/01/28 18:02:35 UTC
[Tomahawk] how to save input-values when pressed a button with
immediate tag set?
Hallo!
I have got a form with some input elements using the 'required'-tag.
There is also a button that leads to an intermediate form with some extra
input fields. This button has got the 'immediate'-tag set true, in order to
allow this navigation even if not all required fields are set.
But in this way I cannot save the values that already had been inputted to
the fields of the first form. (I would like to save then even if they are
not complete, because I want to display them again, when returning to the
first form.)
Is there a way to save these values? Can I do this by hand while processing
action of my button?
Thanks!
Georg
__________________________________________________
safir-Wirtschaftsinformationsdienst GmbH
Möllendorffstr. 49
10367 Berlin
Tel.: ++49 30 577981 - 0
Fax: ++49 30 577981 - 18
E-Mail: info@safir-wid.de
Internet: www.safir-wid.de
Handelsregister: Amtsgericht Charlottenburg HRB 66681
USt-ID: DE 193584747
Geschäftsführer: Thilo Kind
AW: [Tomahawk] how to save input-values when pressed a button with
immediate tag set?
Posted by Georg Füchsle <g....@safir-wid.de>.
It worked well.
Thank You.
Georg
-----Ursprüngliche Nachricht-----
Von: weber.volker@googlemail.com [mailto:weber.volker@googlemail.com] Im
Auftrag von Volker Weber
Gesendet: Montag, 28. Januar 2008 18:40
An: MyFaces Discussion
Betreff: Re: [Tomahawk] how to save input-values when pressed a button with
immediate tag set?
Hi Georg,
2008/1/28, Georg Füchsle <g....@safir-wid.de>:
> Is there a way to save these values? Can I do this by hand while
processing
> action of my button?
you can get the values from the requestParamaters:
Map params = facesContext.getExternalContext().getRequestParameterMap();
String value = (String) params.get(<clientId of input>);
Regards,
Volker
--
inexso - information exchange solutions GmbH
Bismarckstraße 13 | 26122 Oldenburg
Tel.: +49 441 4082 356 |
FAX: +49 441 4082 355 | www.inexso.de
__________________________________________________
safir-Wirtschaftsinformationsdienst GmbH
Möllendorffstr. 49
10367 Berlin
Tel.: ++49 30 577981 - 0
Fax: ++49 30 577981 - 18
E-Mail: info@safir-wid.de
Internet: www.safir-wid.de
Handelsregister: Amtsgericht Charlottenburg HRB 66681
USt-ID: DE 193584747
Geschäftsführer: Thilo Kind
Re: [Tomahawk] how to save input-values when pressed a button with immediate tag set?
Posted by Volker Weber <v....@inexso.de>.
Hi Georg,
2008/1/28, Georg Füchsle <g....@safir-wid.de>:
> Is there a way to save these values? Can I do this by hand while processing
> action of my button?
you can get the values from the requestParamaters:
Map params = facesContext.getExternalContext().getRequestParameterMap();
String value = (String) params.get(<clientId of input>);
Regards,
Volker
--
inexso - information exchange solutions GmbH
Bismarckstraße 13 | 26122 Oldenburg
Tel.: +49 441 4082 356 |
FAX: +49 441 4082 355 | www.inexso.de