You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by jimmyau <ji...@privasia.com> on 2008/01/02 03:44:34 UTC

Re:
disabled and readonly work in the same way which will not submit value to 
backend. this way also make me headache.

----- Original Message ----- 
From: "Volker Weber" <v....@inexso.de>
To: "MyFaces Discussion" <us...@myfaces.apache.org>
Sent: Thursday, December 20, 2007 4:56 PM
Subject: Re: <t:inputText reaonly=True does not send...


> Hi,
>
> try disabled instead of readonly.
>
> In html readonly components are not submitted to the server.
>
>
> Regards,
>    Volker
>
> 2007/12/19, Carlos Adolfo Ortiz Quiros <ca...@axede.com.co>:
>>
>>
>>
>>
>> Hi
>>
>>
>>
>> For some weird reason, when I put a <t:inputText id="some" 
>> readonly="true">
>> and with a JavaScript I put value on it, but no value is transmitted when 
>> I
>> submit the form back to server.  Is there something wrong?
>>
>> Have somebody had this situation ever?
>>
>>
>>
>>
>> CARLOS ADOLFO ORTIZ Q
>>
>> Ingeniero de Desarrollo
>>
>>
>> axede
>>
>> Tel : (574)3110663 Fax : (574)3113474
>>
>> Dirección Cll 16 # 28-195
>>
>> Medellín - Colombia
>>
>> http://www.axede.com.co
>>
>>   La información de este mensaje y sus anexos son propiedad exclusiva
>> de Axede S.A. Es únicamente para el uso del destinatario
>> intencional y pueden contener información de carácter privado o
>> confidencial. Le informamos que cualquier revisión, retransmisión,
>> divulgación, copia o uso indebido del mismo está estrictamente
>> prohibida y será sancionada legalmente.
>>
>>
>>
>> Information contained in this message and every attachment is property of
>> Axede S.A. Only the destiny user is able to make use of the data here
>> contained, which is private and/or confidential. Any revision, 
>> broadcasting,
>> spreading, copy or illegal use of this information is strictly prohibited
>> and will be sanctioned by legal means.
>>
>
>
> -- 
> inexso - information exchange solutions GmbH
> Bismarckstraße 13      | 26122 Oldenburg
> Tel.: +49 441 4082 356 |
> FAX:  +49 441 4082 355 | www.inexso.de
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.17.8/1195 - Release Date: 
> 12/24/2007 11:19 AM
>
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Re: Posted by jimmyau <ji...@privasia.com>.
Session bean not work is because the inputText will be change in client side 
by javascript.



----- Original Message ----- 
From: "Richard Yee" <ry...@cruzio.com>
To: "MyFaces Discussion" <us...@myfaces.apache.org>
Sent: Monday, January 07, 2008 10:51 AM
Subject: Re: <t:inputText reaonly=True does not send...


> Why can't you just store your bean in session scope in order to save your 
> state? There isn't way to customize the inputText to return values when it 
> is read-only or disabled.
>
> -Richard
>
>
>
> jimmyau wrote:
>> Do you have a custom inputText that will submit and store the data to 
>> backing bean no matter readonly or disable?
>>
>> ----- Original Message ----- From: "Volker Weber" <v....@inexso.de>
>> To: "MyFaces Discussion" <us...@myfaces.apache.org>
>> Sent: Thursday, January 03, 2008 10:04 PM
>> Subject: Re: <t:inputText reaonly=True does not send...
>>
>>
>>> Hi,
>>>
>>> yes i mixed them up now :-(, but was right in my first mail in this 
>>> thread.
>>>
>>>
>>> Regards,
>>>    Volker
>>>
>>> 2008/1/3, Gerhard Petracek <ge...@gmail.com>:
>>>> hello,
>>>>
>>>> concerning html:
>>>> http://www.w3.org/TR/html4/interact/forms.html#disabled
>>>>  http://www.w3.org/TR/html4/interact/forms.html#read-only
>>>> and:
>>>> http://www.w3.org/TR/html4/interact/forms.html#successful-controls
>>>>
>>>> -> values of disabled fields don't get submitted
>>>>
>>>> concerning jsf:
>>>> although values of read-only fields are submitted they don't get 
>>>> decoded.
>>>> -> you have to look up such values within the RequestParameterMap - you 
>>>> get
>>>> the map via:
>>>> FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap()
>>>>
>>>> additional information: trinidad doesn't behave the same way!
>>>>
>>>> regards,
>>>> gerhard
>>>>
>>>>
>>>>
>>>>  2008/1/3, Volker Weber <v....@inexso.de>:
>>>> > afaik disabled html components are send to the server by the browser
>>>> > (readonly are not), but not processed by jsf. If you need them you
>>>> can
>>>> > read them yourself from the request parameters.
>>>> >
>>>> > 2008/1/3, jimmyau < jimmyau@privasia.com>:
>>>> > > It is because i need the field submit back to the server without 
>>>> > > having
>>>> to
>>>> > > add hidden field. I know it cause security purpose but it save
>>>> my > > time.
>>>> > >
>>>> > >
>>>> > >
>>>> > > ----- Original Message -----
>>>> > > From: "Andrew Robinson" <an...@gmail.com>
>>>> > > To: "MyFaces Discussion" < users@myfaces.apache.org>
>>>> > > Sent: Wednesday, January 02, 2008 11:42 PM
>>>> > > Subject: Re: <t:inputText reaonly=True does not send...
>>>> > >
>>>> > >
>>>> > > > On Jan 1, 2008 7:44 PM, jimmyau < jimmyau@privasia.com> wrote:
>>>> > > >> disabled and readonly work in the same way which will not submit
>>>> value to
>>>> > > >> backend. this way also make me headache.
>>>> > > >
>>>> > > > Why would this give you a headache? What is the point in
>>>> sending a
>>>> > > > read-only value to the server. Everything on the client is by
>>>> > > > definition changeable (users can change the DOM easily). So
>>>> the > > > server
>>>> > > > would never decode a read-only or disabled control. If you are 
>>>> > > > never
>>>> > > > going to decode it, why waste the resources to post it back to
>>>> the
>>>> > > > server?
>>>> > > >
>>>> > > > --
>>>> > > > This message has been scanned for viruses and
>>>> > > > dangerous content by MailScanner, and is
>>>> > > > believed to be clean.
>>>> > > >
>>>> > > >
>>>> > > >
>>>> > > >
>>>> > > > --
>>>> > > > No virus found in this incoming message.
>>>> > > > Checked by AVG Free Edition.
>>>> > > > Version: 7.5.516 / Virus Database: 269.17.13/1207 - Release Date:
>>>> 1/2/2008
>>>> > > > 11:29 AM
>>>> > > >
>>>> > > >
>>>> > >
>>>> > >
>>>> > > --
>>>> > > This message has been scanned for viruses and
>>>> > > dangerous content by MailScanner, and is
>>>> > > believed to be clean.
>>>> > >
>>>> > >
>>>> >
>>>> >
>>>> > --
>>>> > inexso - information exchange solutions GmbH
>>>> > Bismarckstraße 13      | 26122 Oldenburg
>>>> > Tel.: +49 441 4082 356 |
>>>> > FAX:  +49 441 4082 355 | www.inexso.de
>>>> >
>>>>
>>>>
>>>>
>>>> -- 
>>>>
>>>> http://www.irian.at
>>>>
>>>> Your JSF powerhouse -
>>>>  JSF Consulting, Development and
>>>> Courses in English and German
>>>>
>>>> Professional Support for Apache MyFaces
>>>
>>>
>>> -- 
>>> inexso - information exchange solutions GmbH
>>> Bismarckstraße 13      | 26122 Oldenburg
>>> Tel.: +49 441 4082 356 |
>>> FAX:  +49 441 4082 355 | www.inexso.de
>>>
>>> -- 
>>> This message has been scanned for viruses and
>>> dangerous content by MailScanner, and is
>>> believed to be clean.
>>>
>>>
>>>
>>>
>>>
>>> -- 
>>> No virus found in this incoming message.
>>> Checked by AVG Free Edition.
>>> Version: 7.5.516 / Virus Database: 269.17.13/1207 - Release Date: 
>>> 1/2/2008 11:29 AM
>>>
>>>
>>
>>
>
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 
> 269.17.13/1210 - Release Date: 1/5/2008 11:46 AM
>
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Re: Posted by Richard Yee <ry...@cruzio.com>.
Why can't you just store your bean in session scope in order to save 
your state? There isn't way to customize the inputText to return values 
when it is read-only or disabled.

-Richard



jimmyau wrote:
> Do you have a custom inputText that will submit and store the data to 
> backing bean no matter readonly or disable?
>
> ----- Original Message ----- From: "Volker Weber" <v....@inexso.de>
> To: "MyFaces Discussion" <us...@myfaces.apache.org>
> Sent: Thursday, January 03, 2008 10:04 PM
> Subject: Re: <t:inputText reaonly=True does not send...
>
>
>> Hi,
>>
>> yes i mixed them up now :-(, but was right in my first mail in this 
>> thread.
>>
>>
>> Regards,
>>    Volker
>>
>> 2008/1/3, Gerhard Petracek <ge...@gmail.com>:
>>> hello,
>>>
>>> concerning html:
>>> http://www.w3.org/TR/html4/interact/forms.html#disabled
>>>  http://www.w3.org/TR/html4/interact/forms.html#read-only
>>> and:
>>> http://www.w3.org/TR/html4/interact/forms.html#successful-controls
>>>
>>> -> values of disabled fields don't get submitted
>>>
>>> concerning jsf:
>>> although values of read-only fields are submitted they don't get 
>>> decoded.
>>> -> you have to look up such values within the RequestParameterMap - 
>>> you get
>>> the map via:
>>> FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap() 
>>>
>>>
>>> additional information: trinidad doesn't behave the same way!
>>>
>>> regards,
>>> gerhard
>>>
>>>
>>>
>>>  2008/1/3, Volker Weber <v....@inexso.de>:
>>> > afaik disabled html components are send to the server by the browser
>>> > (readonly are not), but not processed by jsf. If you need them you 
>>> can
>>> > read them yourself from the request parameters.
>>> >
>>> > 2008/1/3, jimmyau < jimmyau@privasia.com>:
>>> > > It is because i need the field submit back to the server without 
>>> > > having
>>> to
>>> > > add hidden field. I know it cause security purpose but it save 
>>> my > > time.
>>> > >
>>> > >
>>> > >
>>> > > ----- Original Message -----
>>> > > From: "Andrew Robinson" <an...@gmail.com>
>>> > > To: "MyFaces Discussion" < users@myfaces.apache.org>
>>> > > Sent: Wednesday, January 02, 2008 11:42 PM
>>> > > Subject: Re: <t:inputText reaonly=True does not send...
>>> > >
>>> > >
>>> > > > On Jan 1, 2008 7:44 PM, jimmyau < jimmyau@privasia.com> wrote:
>>> > > >> disabled and readonly work in the same way which will not submit
>>> value to
>>> > > >> backend. this way also make me headache.
>>> > > >
>>> > > > Why would this give you a headache? What is the point in 
>>> sending a
>>> > > > read-only value to the server. Everything on the client is by
>>> > > > definition changeable (users can change the DOM easily). So 
>>> the > > > server
>>> > > > would never decode a read-only or disabled control. If you are 
>>> > > > never
>>> > > > going to decode it, why waste the resources to post it back to 
>>> the
>>> > > > server?
>>> > > >
>>> > > > --
>>> > > > This message has been scanned for viruses and
>>> > > > dangerous content by MailScanner, and is
>>> > > > believed to be clean.
>>> > > >
>>> > > >
>>> > > >
>>> > > >
>>> > > > --
>>> > > > No virus found in this incoming message.
>>> > > > Checked by AVG Free Edition.
>>> > > > Version: 7.5.516 / Virus Database: 269.17.13/1207 - Release Date:
>>> 1/2/2008
>>> > > > 11:29 AM
>>> > > >
>>> > > >
>>> > >
>>> > >
>>> > > --
>>> > > This message has been scanned for viruses and
>>> > > dangerous content by MailScanner, and is
>>> > > believed to be clean.
>>> > >
>>> > >
>>> >
>>> >
>>> > --
>>> > inexso - information exchange solutions GmbH
>>> > Bismarckstraße 13      | 26122 Oldenburg
>>> > Tel.: +49 441 4082 356 |
>>> > FAX:  +49 441 4082 355 | www.inexso.de
>>> >
>>>
>>>
>>>
>>> -- 
>>>
>>> http://www.irian.at
>>>
>>> Your JSF powerhouse -
>>>  JSF Consulting, Development and
>>> Courses in English and German
>>>
>>> Professional Support for Apache MyFaces
>>
>>
>> -- 
>> inexso - information exchange solutions GmbH
>> Bismarckstraße 13      | 26122 Oldenburg
>> Tel.: +49 441 4082 356 |
>> FAX:  +49 441 4082 355 | www.inexso.de
>>
>> -- 
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>>
>>
>>
>>
>>
>> -- 
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.5.516 / Virus Database: 269.17.13/1207 - Release Date: 
>> 1/2/2008 11:29 AM
>>
>>
>
>


Re: Posted by jimmyau <ji...@privasia.com>.
Do you have a custom inputText that will submit and store the data to 
backing bean no matter readonly or disable?

----- Original Message ----- 
From: "Volker Weber" <v....@inexso.de>
To: "MyFaces Discussion" <us...@myfaces.apache.org>
Sent: Thursday, January 03, 2008 10:04 PM
Subject: Re: <t:inputText reaonly=True does not send...


> Hi,
>
> yes i mixed them up now :-(, but was right in my first mail in this 
> thread.
>
>
> Regards,
>    Volker
>
> 2008/1/3, Gerhard Petracek <ge...@gmail.com>:
>> hello,
>>
>> concerning html:
>> http://www.w3.org/TR/html4/interact/forms.html#disabled
>>  http://www.w3.org/TR/html4/interact/forms.html#read-only
>> and:
>> http://www.w3.org/TR/html4/interact/forms.html#successful-controls
>>
>> -> values of disabled fields don't get submitted
>>
>> concerning jsf:
>> although values of read-only fields are submitted they don't get decoded.
>> -> you have to look up such values within the RequestParameterMap - you 
>> get
>> the map via:
>> FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap()
>>
>> additional information: trinidad doesn't behave the same way!
>>
>> regards,
>> gerhard
>>
>>
>>
>>  2008/1/3, Volker Weber <v....@inexso.de>:
>> > afaik disabled html components are send to the server by the browser
>> > (readonly are not), but not processed by jsf. If you need them you can
>> > read them yourself from the request parameters.
>> >
>> > 2008/1/3, jimmyau < jimmyau@privasia.com>:
>> > > It is because i need the field submit back to the server without 
>> > > having
>> to
>> > > add hidden field. I know it cause security purpose but it save my 
>> > > time.
>> > >
>> > >
>> > >
>> > > ----- Original Message -----
>> > > From: "Andrew Robinson" <an...@gmail.com>
>> > > To: "MyFaces Discussion" < users@myfaces.apache.org>
>> > > Sent: Wednesday, January 02, 2008 11:42 PM
>> > > Subject: Re: <t:inputText reaonly=True does not send...
>> > >
>> > >
>> > > > On Jan 1, 2008 7:44 PM, jimmyau < jimmyau@privasia.com> wrote:
>> > > >> disabled and readonly work in the same way which will not submit
>> value to
>> > > >> backend. this way also make me headache.
>> > > >
>> > > > Why would this give you a headache? What is the point in sending a
>> > > > read-only value to the server. Everything on the client is by
>> > > > definition changeable (users can change the DOM easily). So the 
>> > > > server
>> > > > would never decode a read-only or disabled control. If you are 
>> > > > never
>> > > > going to decode it, why waste the resources to post it back to the
>> > > > server?
>> > > >
>> > > > --
>> > > > This message has been scanned for viruses and
>> > > > dangerous content by MailScanner, and is
>> > > > believed to be clean.
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > No virus found in this incoming message.
>> > > > Checked by AVG Free Edition.
>> > > > Version: 7.5.516 / Virus Database: 269.17.13/1207 - Release Date:
>> 1/2/2008
>> > > > 11:29 AM
>> > > >
>> > > >
>> > >
>> > >
>> > > --
>> > > This message has been scanned for viruses and
>> > > dangerous content by MailScanner, and is
>> > > believed to be clean.
>> > >
>> > >
>> >
>> >
>> > --
>> > inexso - information exchange solutions GmbH
>> > Bismarckstraße 13      | 26122 Oldenburg
>> > Tel.: +49 441 4082 356 |
>> > FAX:  +49 441 4082 355 | www.inexso.de
>> >
>>
>>
>>
>> --
>>
>> http://www.irian.at
>>
>> Your JSF powerhouse -
>>  JSF Consulting, Development and
>> Courses in English and German
>>
>> Professional Support for Apache MyFaces
>
>
> -- 
> inexso - information exchange solutions GmbH
> Bismarckstraße 13      | 26122 Oldenburg
> Tel.: +49 441 4082 356 |
> FAX:  +49 441 4082 355 | www.inexso.de
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.17.13/1207 - Release Date: 1/2/2008 
> 11:29 AM
>
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Re: Posted by Volker Weber <v....@inexso.de>.
Hi,

yes i mixed them up now :-(, but was right in my first mail in this thread.


Regards,
    Volker

2008/1/3, Gerhard Petracek <ge...@gmail.com>:
> hello,
>
> concerning html:
> http://www.w3.org/TR/html4/interact/forms.html#disabled
>  http://www.w3.org/TR/html4/interact/forms.html#read-only
> and:
> http://www.w3.org/TR/html4/interact/forms.html#successful-controls
>
> -> values of disabled fields don't get submitted
>
> concerning jsf:
> although values of read-only fields are submitted they don't get decoded.
> -> you have to look up such values within the RequestParameterMap - you get
> the map via:
> FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap()
>
> additional information: trinidad doesn't behave the same way!
>
> regards,
> gerhard
>
>
>
>  2008/1/3, Volker Weber <v....@inexso.de>:
> > afaik disabled html components are send to the server by the browser
> > (readonly are not), but not processed by jsf. If you need them you can
> > read them yourself from the request parameters.
> >
> > 2008/1/3, jimmyau < jimmyau@privasia.com>:
> > > It is because i need the field submit back to the server without having
> to
> > > add hidden field. I know it cause security purpose but it save my time.
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Andrew Robinson" <an...@gmail.com>
> > > To: "MyFaces Discussion" < users@myfaces.apache.org>
> > > Sent: Wednesday, January 02, 2008 11:42 PM
> > > Subject: Re: <t:inputText reaonly=True does not send...
> > >
> > >
> > > > On Jan 1, 2008 7:44 PM, jimmyau < jimmyau@privasia.com> wrote:
> > > >> disabled and readonly work in the same way which will not submit
> value to
> > > >> backend. this way also make me headache.
> > > >
> > > > Why would this give you a headache? What is the point in sending a
> > > > read-only value to the server. Everything on the client is by
> > > > definition changeable (users can change the DOM easily). So the server
> > > > would never decode a read-only or disabled control. If you are never
> > > > going to decode it, why waste the resources to post it back to the
> > > > server?
> > > >
> > > > --
> > > > This message has been scanned for viruses and
> > > > dangerous content by MailScanner, and is
> > > > believed to be clean.
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > No virus found in this incoming message.
> > > > Checked by AVG Free Edition.
> > > > Version: 7.5.516 / Virus Database: 269.17.13/1207 - Release Date:
> 1/2/2008
> > > > 11:29 AM
> > > >
> > > >
> > >
> > >
> > > --
> > > This message has been scanned for viruses and
> > > dangerous content by MailScanner, and is
> > > believed to be clean.
> > >
> > >
> >
> >
> > --
> > inexso - information exchange solutions GmbH
> > Bismarckstraße 13      | 26122 Oldenburg
> > Tel.: +49 441 4082 356 |
> > FAX:  +49 441 4082 355 | www.inexso.de
> >
>
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
>  JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces


-- 
inexso - information exchange solutions GmbH
Bismarckstraße 13      | 26122 Oldenburg
Tel.: +49 441 4082 356 |
FAX:  +49 441 4082 355 | www.inexso.de

Re: Posted by Gerhard Petracek <ge...@gmail.com>.
hello,

concerning html:
http://www.w3.org/TR/html4/interact/forms.html#disabled
http://www.w3.org/TR/html4/interact/forms.html#read-only
and:
http://www.w3.org/TR/html4/interact/forms.html#successful-controls

-> values of disabled fields don't get submitted

concerning jsf:
although values of read-only fields are submitted they don't get decoded.
-> you have to look up such values within the RequestParameterMap - you get
the map via:
FacesContext.getCurrentInstance
().getExternalContext().getRequestParameterMap()

additional information: trinidad doesn't behave the same way!

regards,
gerhard



2008/1/3, Volker Weber <v....@inexso.de>:
>
> afaik disabled html components are send to the server by the browser
> (readonly are not), but not processed by jsf. If you need them you can
> read them yourself from the request parameters.
>
> 2008/1/3, jimmyau <ji...@privasia.com>:
> > It is because i need the field submit back to the server without having
> to
> > add hidden field. I know it cause security purpose but it save my time.
> >
> >
> >
> > ----- Original Message -----
> > From: "Andrew Robinson" <an...@gmail.com>
> > To: "MyFaces Discussion" <us...@myfaces.apache.org>
> > Sent: Wednesday, January 02, 2008 11:42 PM
> > Subject: Re: <t:inputText reaonly=True does not send...
> >
> >
> > > On Jan 1, 2008 7:44 PM, jimmyau <ji...@privasia.com> wrote:
> > >> disabled and readonly work in the same way which will not submit
> value to
> > >> backend. this way also make me headache.
> > >
> > > Why would this give you a headache? What is the point in sending a
> > > read-only value to the server. Everything on the client is by
> > > definition changeable (users can change the DOM easily). So the server
> > > would never decode a read-only or disabled control. If you are never
> > > going to decode it, why waste the resources to post it back to the
> > > server?
> > >
> > > --
> > > This message has been scanned for viruses and
> > > dangerous content by MailScanner, and is
> > > believed to be clean.
> > >
> > >
> > >
> > >
> > > --
> > > No virus found in this incoming message.
> > > Checked by AVG Free Edition.
> > > Version: 7.5.516 / Virus Database: 269.17.13/1207 - Release Date:
> 1/2/2008
> > > 11:29 AM
> > >
> > >
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> >
>
>
> --
> inexso - information exchange solutions GmbH
> Bismarckstraße 13      | 26122 Oldenburg
> Tel.: +49 441 4082 356 |
> FAX:  +49 441 4082 355 | www.inexso.de
>



-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Re: Posted by Volker Weber <v....@inexso.de>.
afaik disabled html components are send to the server by the browser
(readonly are not), but not processed by jsf. If you need them you can
read them yourself from the request parameters.

2008/1/3, jimmyau <ji...@privasia.com>:
> It is because i need the field submit back to the server without having to
> add hidden field. I know it cause security purpose but it save my time.
>
>
>
> ----- Original Message -----
> From: "Andrew Robinson" <an...@gmail.com>
> To: "MyFaces Discussion" <us...@myfaces.apache.org>
> Sent: Wednesday, January 02, 2008 11:42 PM
> Subject: Re: <t:inputText reaonly=True does not send...
>
>
> > On Jan 1, 2008 7:44 PM, jimmyau <ji...@privasia.com> wrote:
> >> disabled and readonly work in the same way which will not submit value to
> >> backend. this way also make me headache.
> >
> > Why would this give you a headache? What is the point in sending a
> > read-only value to the server. Everything on the client is by
> > definition changeable (users can change the DOM easily). So the server
> > would never decode a read-only or disabled control. If you are never
> > going to decode it, why waste the resources to post it back to the
> > server?
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> >
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.516 / Virus Database: 269.17.13/1207 - Release Date: 1/2/2008
> > 11:29 AM
> >
> >
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>


-- 
inexso - information exchange solutions GmbH
Bismarckstraße 13      | 26122 Oldenburg
Tel.: +49 441 4082 356 |
FAX:  +49 441 4082 355 | www.inexso.de

Re: Posted by jimmyau <ji...@privasia.com>.
It is because i need the field submit back to the server without having to 
add hidden field. I know it cause security purpose but it save my time.



----- Original Message ----- 
From: "Andrew Robinson" <an...@gmail.com>
To: "MyFaces Discussion" <us...@myfaces.apache.org>
Sent: Wednesday, January 02, 2008 11:42 PM
Subject: Re: <t:inputText reaonly=True does not send...


> On Jan 1, 2008 7:44 PM, jimmyau <ji...@privasia.com> wrote:
>> disabled and readonly work in the same way which will not submit value to
>> backend. this way also make me headache.
>
> Why would this give you a headache? What is the point in sending a
> read-only value to the server. Everything on the client is by
> definition changeable (users can change the DOM easily). So the server
> would never decode a read-only or disabled control. If you are never
> going to decode it, why waste the resources to post it back to the
> server?
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.17.13/1207 - Release Date: 1/2/2008 
> 11:29 AM
>
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Re: Posted by Andrew Robinson <an...@gmail.com>.
On Jan 1, 2008 7:44 PM, jimmyau <ji...@privasia.com> wrote:
> disabled and readonly work in the same way which will not submit value to
> backend. this way also make me headache.

Why would this give you a headache? What is the point in sending a
read-only value to the server. Everything on the client is by
definition changeable (users can change the DOM easily). So the server
would never decode a read-only or disabled control. If you are never
going to decode it, why waste the resources to post it back to the
server?