Re: Need help to understand tapestry tree component

2013-08-27 Thread Giridhar reddy
Thanks for the quick reply.

I will go through these links.


On Tue, Aug 27, 2013 at 1:39 PM, Lance Java wrote:

> I've never fully understood the use case for the select event. I've always
> seen select done by putting a  in the Tree's 
> parameter.
>
> Here's a couple of examples:
> http://tapestry-stitch.uklance.cloudbees.net/databasetreedemo
>
> http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/treefromdatabasewithzones
>


Need help to understand tapestry tree component

2013-08-27 Thread Giridhar reddy
Hi All,

I need some info on how we differentiate b/w the expansion of a node and
selection of a node.

Could you please give me any references or info on this

Thanks,
Giri


Re: Need help: in displaying text with html character entities and new line

2013-08-23 Thread Giridhar reddy
Thank you for the reply.

If I use raw=true, I again has to replace <'> in my input string as well.

I found a way to make insert text to work for my \n.  I replaced all my \n
in my input string with java.lang.System.getProperty("line.separator").

After the above replacement, InsertText worked for me (it replaced \n with
. After this replacement, I used raw=false to get the desired output.


On Fri, Aug 23, 2013 at 5:07 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> 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 <. 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<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", "") should solve.
>
> --
> Thiago H. de Paula Figueiredo
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Need help: in displaying text with html character entities and new line

2013-08-22 Thread Giridhar reddy
Hello,

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 <. again, output is
not coming as expected.

Any ideas over this how to get the desired output.

Thanks!
Giri