aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Disabling a text filed using XHTML-MP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Disabling a text filed using XHTML-MP" Watch "Disabling a text filed using XHTML-MP" New topic
Author

Disabling a text filed using XHTML-MP

Shrikant Kulkarni
Ranch Hand

Joined: May 10, 2005
Posts: 42
Hi All,
I am very new to XHTML-MP. I am developing a wireless application using XHTML-MP. I have a simple requirement of disabling a text field. For example I have used following piece of code to disable a text field:

<input name = "depot" value = "<%= depot %>" disabled = "disabled" />

But this is not working and still i can able to edit the text field.
So can any one tell me what could be the reason for this and how can i solve my problem?

Any information will be a great help.

Shrikant
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
where is your type?

You have the doc type on the page also?

Eric
Shrikant Kulkarni
Ranch Hand

Joined: May 10, 2005
Posts: 42
Thanks for the reply.

I am using doctype:
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

When i include this doctype in my document it showes :
Error in opening external DTD "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"

So how can i use this .dtd file in a doctype without any error?
Is it possible to download and save this .dtd file on application server side and give relative/absolute path in my doctype declaration??

Can you please guide me in this?

Shrikant
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56229
    
  13

"shrikant ks",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Disabling a text filed using XHTML-MP
 
Similar Threads
Disabling a text filed using XHTML-MP
Disabling a text field leads to loss of value
No Required validation in xhtml + JSF
JTextField
Issue with h:inputText