On Thu, 22 Aug 2013 23:04:26 -0300, Giridhar reddy <giri.kaila...@gmail.com> wrote:

Hello,

Hi!

I have the input string which contains "price range<10-100>\n least price = 20"

I need the output as:
price range<10-100>
least price=20

I tried jwcid=@InsertText. But, it is still printing the output in one line
as
"price range<10-100>\nleastprice=20"

If I keep raw=true, I am not getting replaced < with &lt. again, output is not coming as expected.

Any ideas over this how to get the desired output.

Read the component documentation: http://tapestry.apache.org/tapestry4.1/components/general/inserttext.html. Look at the raw parameter: when set to true, it won't replace characters. The line break handling will need to be done by yourself, something that an input.replaceAll("\n", "<br/>") should solve.

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to