-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Texfield line breaks escaped by hibernate
PostPosted: Sat Sep 24, 2005 1:02 pm 
Newbie

Joined: Fri Aug 06, 2004 1:01 pm
Posts: 13
Hi,

My users are typing comments in a Textfield. I would like the line breaks to be saved in the database, but it seems like hibernate escapes \n and \r.
Is there a possible workaround ?

Thanks
sandy


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 24, 2005 2:54 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
You may want to look at the web tier for this one.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 9:12 pm 
Newbie

Joined: Fri Aug 06, 2004 1:01 pm
Posts: 13
euh, what do you mean by that ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 3:44 am 
Senior
Senior

Joined: Thu Aug 04, 2005 4:54 am
Posts: 153
Location: Birmingham, UK
On display, in the web tier convert the escaped characters back to new lines.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 12:33 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
when
put
this
in
a
web
page
it is rendered as "when you put this in a web page".


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.