Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

Struts - Markup text in textbbox

Thread view: 
Christine Mayer - 07 Jun 2006 11:46 GMT
I would like to mark up the text in a textbox (in the case of an error)
( so that the text has got a blue layer...)
This way the user could directly retype the value without having to
delete it...

thx,

Christine
Oliver Wong - 07 Jun 2006 17:33 GMT
>I would like to mark up the text in a textbox (in the case of an error)
> ( so that the text has got a blue layer...)
> This way the user could directly retype the value without having to
> delete it...

   If by "textbox", you mean "textarea", that's not possible. The HTML
Textarea element contains pure, plain, uninterpreted text. Tools like
FckEditor (http://www.fckeditor.net/demo/default.html) use a combination of
JavaScript and IFRAME to fake something that looks like a textarea, but a
lot of the functionality (like the ability to edit text) had to be
reimplemented from scratch.

   - Oliver
Bart Rider - 07 Jun 2006 17:44 GMT
> I would like to mark up the text in a textbox (in the case of an error)
> ( so that the text has got a blue layer...)
[quoted text clipped - 4 lines]
>
> Christine

feel free to do so :)

-

-

-

-

-

-

-

-

-

lol, sry for that stupid answer. just came from c.l.c news group
and thats what they always answer, if they find a post without
any real question in it.

As to adress, what you would like to do:
use select(int, int), setSelectionEnd, setSelectionStart from
class TextComponent (TextField, TextArea), if you deal with awt
components, or from class JTextComoponent (JTextField, JTextArea)
for swing.

Best regards,
Bart


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.