myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jimmyau" <jimm...@privasia.com>
Subject Re: <t:inputText reaonly=True does not send...
Date Sat, 05 Jan 2008 11:24:25 GMT
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.weber@inexso.de>
To: "MyFaces Discussion" <users@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 <gerhard.petracek@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.weber@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" <andrew.rw.robinson@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.


Mime
View raw message