Re: BLOCK and line selected

2009-01-23 Thread Cathy_123

Finally, I found it. It's a select component

Cathy


Cathy_123 wrote:
> 
> Hi,
> 
> I would like to do a BLOCK that I can let user selecting then sorting the
> lines. Like this example:
> 
> http://picasaweb.google.com/giaotienromang2008/MonAlbum?authkey=IQT560A1HTU#5294129087453679394
> 
> Can you tell me if it's possible to do it ?
> 
> thank you for your help
> 
> Cathy
> 

-- 
View this message in context: 
http://www.nabble.com/BLOCK-and-line-selected-tp21603852p21622581.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Table and carriage return

2009-01-22 Thread Cathy_123

Peter, 
Thank you Peter for this information.

Temporally, I resolve the problem by formatting all data before sending to
the Table component. I will try this solution the next occasion I will have
probably.

I have some problems of Tapestry I have to resolve again before (example see
the message "Block and lines selected" :))

Thank you a lot.

regards,

Cathy



Peter Stavrinides wrote:
> 
> Hi Cathy,
> 
> Wow its been a while since I did Tapestry 4, I can hardly recall this
> stuff now, but just looking at the stack trace I notice that it is in fact
> a parser error, it is looking for a missing property... which leads me to
> conclude it could me the method scope, unusual I know, but I remember once
> struggling with something similar for hours, I dug up the code, my insert
> looked something like this:
> 
> 
> 
> Horrendous I know, bit it worked you can try that.
> 
> PS: The format method is static, thats why its referenced like that.
> 
> regards,
> Peter
> 
> 
> - Original Message -
> From: "Cathy_123" 
> To: users@tapestry.apache.org
> Sent: Wednesday, 21 January, 2009 18:30:38 GMT +02:00 Athens, Beirut,
> Bucharest, Istanbul
> Subject: RE:  RE:  Re: Table and carriage return
> 
> 
> it's not ok with this solution 
> 
> But finally I format all data before sending to Tapestry. So it's ok now. 
> For the problem "adding automatically the carriage return " I use
> 
> white-space: nowrap;
> 
> Thank you a lot for your help
> 
> Have a nice day
> 
> Cathy
> 
> 
> 
> James Sherwood wrote:
>> 
>> Hello,
>> 
>> Reading your last post I think your problem is this:
>> 
>> 
>>   
>> > value="components.pagesTable.tableRow.column2Column"/>
>> 
>>   
>> 
>> Should be:
>> 
>> 
>>   
>> > value="column2Column"/>
>> 
>>   
>> 
>> Because components.pagesTable.tableRow.column2Column doesn't exist,
>> components.pagesTable.tableRow.column2 does.  And column2Column is just a
>> java method that returns components.pagesTable.tableRow.column2's list
>> formatted(if I follow what you say correctly)
>> 
>> --James
>> 
>> -Original Message-
>> From: Cathy_123 [mailto:ndgt...@yahoo.com] 
>> Sent: January-21-09 9:40 AM
>> To: users@tapestry.apache.org
>> Subject: [Spam Rating:3.18] RE: [Spam Rating:3.18] Re: Table and carriage
>> return
>> 
>> 
>> Thank you for this issue, It's OK for the carriage return but I have a
>> little
>> problem again 
>> 
>> I have to format the value of the column. Instead to do 
>> 
>>  
>> 
>> 
>>  
>> 
>> I do 
>> 
>>  
>> 
>>   
>>  
>> 
>> because column2 is a List of data. So with the code java, I use
>> ITableColumnEvaluator and read the list and return list.get(0) + ""
>> +list.get(1) + "" +list.get(2)...
>> 
>> so if I have a "insert", I do
>> 
>>  
>> 
>>
>>  
>> 
>>   
>>   
>> > value="components.pagesTable.tableRow.column2Column"/>
>> 
>>   
>> 
>> But I have an exception because of > value="components.pagesTable.tableRow.column2Column"/>
>> How can I do to format column2 with Insert (format column2 for each line
>> of
>> table) ?
>> 
>> thank you for your help
>> 
>> Cathy
>> 
>> 
>> James Sherwood wrote:
>>> 
>>> Hello,
>>> 
>>> I have not used T4 going from T3 to T5 but I assume most of the
>>> components
>>> are the same.
>>> 
>>> If you are using the standard insert component you can just declare the
>>> raw
>>> parameter as true so you output is changed in any way:
>>> 
>>> 
>>> 
>>> TRUE
>>> 
>>> 
>>> 
>>> --James
>>> 
>>> -Original Message-
>>> From: Cathy_123 [mailto:ndgt...@yahoo.com] 
>>> Sent: January-21-09 7:30 AM
>>> To: users@tapestry.apache.org
>>> Subject: [Spam Rating:3.18] Re: Table and carriage return
>>> 
>>> 
>>> Thank you for your answer, but I use Tapestry 4, are there another
>>> solutions
>>> or I have to change the version ? It's a project of my company so it'

Table and line selected

2009-01-22 Thread Cathy_123

Hi,

I would like to do a table that I can let user selecting then sorting the
lines. Like this example:

http://picasaweb.google.com/giaotienromang2008/MonAlbum?authkey=IQT560A1HTU#5294104227402091730

can you tell me if it's possible to do it

thank you for your help

cathy
-- 
View this message in context: 
http://www.nabble.com/Table-and-line-selected-tp21603852p21603852.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



RE: RE: Re: Table and carriage return

2009-01-21 Thread Cathy_123

it's not ok with this solution 

But finally I format all data before sending to Tapestry. So it's ok now. 
For the problem "adding automatically the carriage return " I use

white-space: nowrap;

Thank you a lot for your help

Have a nice day

Cathy



James Sherwood wrote:
> 
> Hello,
> 
> Reading your last post I think your problem is this:
> 
> 
>   
>  value="components.pagesTable.tableRow.column2Column"/>
> 
>   
> 
> Should be:
> 
> 
>   
>  value="column2Column"/>
> 
>   
> 
> Because components.pagesTable.tableRow.column2Column doesn't exist,
> components.pagesTable.tableRow.column2 does.  And column2Column is just a
> java method that returns components.pagesTable.tableRow.column2's list
> formatted(if I follow what you say correctly)
> 
> --James
> 
> -Original Message-
> From: Cathy_123 [mailto:ndgt...@yahoo.com] 
> Sent: January-21-09 9:40 AM
> To: users@tapestry.apache.org
> Subject: [Spam Rating:3.18] RE: [Spam Rating:3.18] Re: Table and carriage
> return
> 
> 
> Thank you for this issue, It's OK for the carriage return but I have a
> little
> problem again 
> 
> I have to format the value of the column. Instead to do 
> 
>  
> 
>  
>  
> 
> I do 
> 
>  
> 
>
>  
> 
> because column2 is a List of data. So with the code java, I use
> ITableColumnEvaluator and read the list and return list.get(0) + ""
> +list.get(1) + "" +list.get(2)...
> 
> so if I have a "insert", I do
> 
>  
> 
> 
>  
> 
>   
>   
>  value="components.pagesTable.tableRow.column2Column"/>
> 
>   
> 
> But I have an exception because of  value="components.pagesTable.tableRow.column2Column"/>
> How can I do to format column2 with Insert (format column2 for each line
> of
> table) ?
> 
> thank you for your help
> 
> Cathy
> 
> 
> James Sherwood wrote:
>> 
>> Hello,
>> 
>> I have not used T4 going from T3 to T5 but I assume most of the
>> components
>> are the same.
>> 
>> If you are using the standard insert component you can just declare the
>> raw
>> parameter as true so you output is changed in any way:
>> 
>> 
>>  
>> TRUE
>> 
>> 
>> 
>> --James
>> 
>> -Original Message-
>> From: Cathy_123 [mailto:ndgt...@yahoo.com] 
>> Sent: January-21-09 7:30 AM
>> To: users@tapestry.apache.org
>> Subject: [Spam Rating:3.18] Re: Table and carriage return
>> 
>> 
>> Thank you for your answer, but I use Tapestry 4, are there another
>> solutions
>> or I have to change the version ? It's a project of my company so it's
>> difficult to change ...
>> 
>> Thank you for your help
>> 
>> cathy
>> 
>> 
>> 
>> Thiago HP wrote:
>>> 
>>> On Wed, Jan 21, 2009 at 8:40 AM, Cathy_123  wrote:
>>> 
>>>>  I set these values on the java code and I try to add ' \n\r' or '\r\n'
>>>> or
>>>> '' on the string but tapestry
>>>> doesn't understand this carracters. Do you know how to do it ?
>>> 
>>> HTML completely ignores newline (\n, \r) characters unless they're
>>> surrounded by a  tag.
>>> By the way, Tapestry templates *must* be valid XML, so you should use
>>>  in your templates, not .
>>> 
>>> By default, Tapestry converts < the character in <, > in > , etc.
>>> The OutputRaw component
>>>
>>
> (http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5
>> /corelib/components/OutputRaw.html)
>>> does not do this conversion, so it can be a solution to your problem.
>>> 
>>>> And I would like that the table doesn't add automatically the carriage
>>>> return when my string is too long like too.
>>> 
>>> This is a pure HTML question, not Tapestry related. And I don't know
>>> the answer . . . Maybe you can try the  tag.
>>> 
>>> -- 
>>> Thiago
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>>> 
>>> 
>> 
>> -- 
>>

RE: RE: Re: Table and carriage return

2009-01-21 Thread Cathy_123

In the case you don't understand my problem, I explain :

"components.pagesTable.tableRow.column2" exists 

I have to format the column, so for the TABLE, I writed =column2Column like:

 

 
 


column2Column is a java method who retrieves the
components.pagesTable.tableRow.column2 value in the parameter (see
ITableColumnEvaluator )


Now for the component INSERT, how can I do to format it 

thank you

Cathy




Cathy_123 wrote:
> 
> I get 
> 
> Unable to read OGNL expression '' of ..
> ognl.NoSuchPropertyException
> 
> Stack Trace: 
> ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:123) 
> ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616) 
> ognl.ASTProperty.getValueBody(ASTProperty.java:96) 
> ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) 
> ognl.SimpleNode.getValue(SimpleNode.java:210) 
> ognl.ASTChain.getValueBody(ASTChain.java:109) 
> ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) 
> ognl.SimpleNode.getValue(SimpleNode.java:210) 
> ognl.Ognl.getValue(Ognl.java:333) 
> ognl.Ognl.getValue(Ognl.java:310) 
> org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.readCompiled(ExpressionEvaluatorImpl.java:91)
>  
> $ExpressionEvaluator_11ef9a9af22.readCompiled($ExpressionEvaluator_11ef9a9af22.java)
>  
> org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:110)
>  
> org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:103)
>  
> org.apache.tapestry.binding.AbstractBinding.getObject(AbstractBinding.java:87)
>  
> $Insert_6.getValue($Insert_6.java) 
> org.apache.tapestry.components.Insert.renderComponent(Insert.java:42) 
> org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617) 
> org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434) 
> org.apache.tapestry.components.BlockRenderer.render(BlockRenderer.java:75) 
> org.apache.tapestry.components.Delegator.renderComponent(Delegator.java:44) 
> org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617) 
> org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434) 
> org.apache.tapestry.components.Any.renderComponent(Any.java:48) 
> org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617) 
> org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434) 
> org.apache.tapestry.components.ForBean.renderComponent(ForBean.java:137) 
> org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617) 
> org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92) 
> org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617) 
> org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434) 
> org.apache.tapestry.components.RenderBody.renderComponent(RenderBody.java:44) 
>  
> 
> **
> 
> James Sherwood wrote:
>> 
>> Hello,
>> 
>> What is the exception you are getting?
>> 
>> --James
>> 
>> -Original Message-
>> From: Cathy_123 [mailto:ndgt...@yahoo.com] 
>> Sent: January-21-09 9:40 AM
>> To: users@tapestry.apache.org
>> Subject: [Spam Rating:3.18] RE: [Spam Rating:3.18] Re: Table and carriage
>> return
>> 
>> 
>> Thank you for this issue, It's OK for the carriage return but I have a
>> little
>> problem again 
>> 
>> I have to format the value of the column. Instead to do 
>> 
>>  
>> 
>> 
>>  
>> 
>> I do 
>> 
>>  
>> 
>>   
>>  
>> 
>> because column2 is a List of data. So with the code java, I use
>> ITableColumnEvaluator and read the list and return list.get(0) + ""
>> +list.get(1) + "" +list.get(2)...
>> 
>> so if I have a "insert", I do
>> 
>>  
>> 
>>
>>  
>> 
>>   
>>   
>> > value="components.pagesTable.tableRow.column2Column"/>
>> 
>>   
>> 
>> But I have an exception because of > value="components.pagesTable.tableRow.column2Column"/>
>> How can I do to format column2 with Insert (format column2 for each line
>> of
>> table) ?
>> 
>> thank you for your help
>> 
>> Cathy
>> 
>> 
>> James Sherwood wrote:
>>> 
>>> Hello,
>>> 
>>> I have not used T4 going from T3 to T5 but I assume most of the
>>> components
>>> are the same.
>>> 
>>> If you are using the standard insert component you can just declare the
>>> raw
>&g

RE: RE: Re: Table and carriage return

2009-01-21 Thread Cathy_123

I get 

Unable to read OGNL expression '' of ..
ognl.NoSuchPropertyException

Stack Trace: 
ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:123) 
ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616) 
ognl.ASTProperty.getValueBody(ASTProperty.java:96) 
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) 
ognl.SimpleNode.getValue(SimpleNode.java:210) 
ognl.ASTChain.getValueBody(ASTChain.java:109) 
ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) 
ognl.SimpleNode.getValue(SimpleNode.java:210) 
ognl.Ognl.getValue(Ognl.java:333) 
ognl.Ognl.getValue(Ognl.java:310) 
org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.readCompiled(ExpressionEvaluatorImpl.java:91)
 
$ExpressionEvaluator_11ef9a9af22.readCompiled($ExpressionEvaluator_11ef9a9af22.java)
 
org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:110)
 
org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:103)
 
org.apache.tapestry.binding.AbstractBinding.getObject(AbstractBinding.java:87) 
$Insert_6.getValue($Insert_6.java) 
org.apache.tapestry.components.Insert.renderComponent(Insert.java:42) 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617) 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434) 
org.apache.tapestry.components.BlockRenderer.render(BlockRenderer.java:75) 
org.apache.tapestry.components.Delegator.renderComponent(Delegator.java:44) 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617) 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434) 
org.apache.tapestry.components.Any.renderComponent(Any.java:48) 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617) 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434) 
org.apache.tapestry.components.ForBean.renderComponent(ForBean.java:137) 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617) 
org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92) 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617) 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434) 
org.apache.tapestry.components.RenderBody.renderComponent(RenderBody.java:44) 
 

**

James Sherwood wrote:
> 
> Hello,
> 
> What is the exception you are getting?
> 
> --James
> 
> -Original Message-
> From: Cathy_123 [mailto:ndgt...@yahoo.com] 
> Sent: January-21-09 9:40 AM
> To: users@tapestry.apache.org
> Subject: [Spam Rating:3.18] RE: [Spam Rating:3.18] Re: Table and carriage
> return
> 
> 
> Thank you for this issue, It's OK for the carriage return but I have a
> little
> problem again 
> 
> I have to format the value of the column. Instead to do 
> 
>  
> 
>  
>  
> 
> I do 
> 
>  
> 
>
>  
> 
> because column2 is a List of data. So with the code java, I use
> ITableColumnEvaluator and read the list and return list.get(0) + ""
> +list.get(1) + "" +list.get(2)...
> 
> so if I have a "insert", I do
> 
>  
> 
> 
>  
> 
>   
>   
>  value="components.pagesTable.tableRow.column2Column"/>
> 
>   
> 
> But I have an exception because of  value="components.pagesTable.tableRow.column2Column"/>
> How can I do to format column2 with Insert (format column2 for each line
> of
> table) ?
> 
> thank you for your help
> 
> Cathy
> 
> 
> James Sherwood wrote:
>> 
>> Hello,
>> 
>> I have not used T4 going from T3 to T5 but I assume most of the
>> components
>> are the same.
>> 
>> If you are using the standard insert component you can just declare the
>> raw
>> parameter as true so you output is changed in any way:
>> 
>> 
>>  
>> TRUE
>> 
>> 
>> 
>> --James
>> 
>> -Original Message-
>> From: Cathy_123 [mailto:ndgt...@yahoo.com] 
>> Sent: January-21-09 7:30 AM
>> To: users@tapestry.apache.org
>> Subject: [Spam Rating:3.18] Re: Table and carriage return
>> 
>> 
>> Thank you for your answer, but I use Tapestry 4, are there another
>> solutions
>> or I have to change the version ? It's a project of my company so it's
>> difficult to change ...
>> 
>> Thank you for your help
>> 
>> cathy
>> 
>> 
>> 
>> Thiago HP wrote:
>>> 
>>> On Wed, Jan 21, 2009 at 8:40 AM, Cathy_123  wrote:
>>> 
>>>>  I set these values on the java code and I try to add ' \n\r' or '\r\n'
>>>> or
>>&

RE: [Spam Rating:3.18] Re: Table and carriage return

2009-01-21 Thread Cathy_123

Thank you for this issue, It's OK for the carriage return but I have a little
problem again 

I have to format the value of the column. Instead to do 

 

   
 

I do 

 

 
 

because column2 is a List of data. So with the code java, I use
ITableColumnEvaluator and read the list and return list.get(0) + ""
+list.get(1) + "" +list.get(2)...

so if I have a "insert", I do

 

  
 

  
  


  

But I have an exception because of 
How can I do to format column2 with Insert (format column2 for each line of
table) ?

thank you for your help

Cathy


James Sherwood wrote:
> 
> Hello,
> 
> I have not used T4 going from T3 to T5 but I assume most of the components
> are the same.
> 
> If you are using the standard insert component you can just declare the
> raw
> parameter as true so you output is changed in any way:
> 
> 
>   
>     TRUE
> 
> 
> 
> --James
> 
> -Original Message-
> From: Cathy_123 [mailto:ndgt...@yahoo.com] 
> Sent: January-21-09 7:30 AM
> To: users@tapestry.apache.org
> Subject: [Spam Rating:3.18] Re: Table and carriage return
> 
> 
> Thank you for your answer, but I use Tapestry 4, are there another
> solutions
> or I have to change the version ? It's a project of my company so it's
> difficult to change ...
> 
> Thank you for your help
> 
> cathy
> 
> 
> 
> Thiago HP wrote:
>> 
>> On Wed, Jan 21, 2009 at 8:40 AM, Cathy_123  wrote:
>> 
>>>  I set these values on the java code and I try to add ' \n\r' or '\r\n'
>>> or
>>> '' on the string but tapestry
>>> doesn't understand this carracters. Do you know how to do it ?
>> 
>> HTML completely ignores newline (\n, \r) characters unless they're
>> surrounded by a  tag.
>> By the way, Tapestry templates *must* be valid XML, so you should use
>>  in your templates, not .
>> 
>> By default, Tapestry converts < the character in <, > in > , etc.
>> The OutputRaw component
>>
> (http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5
> /corelib/components/OutputRaw.html)
>> does not do this conversion, so it can be a solution to your problem.
>> 
>>> And I would like that the table doesn't add automatically the carriage
>>> return when my string is too long like too.
>> 
>> This is a pure HTML question, not Tapestry related. And I don't know
>> the answer . . . Maybe you can try the  tag.
>> 
>> -- 
>> Thiago
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Table-and-carriage-return-tp21580648p21581350.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Table-and-carriage-return-tp21580648p21583339.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Table and carriage return

2009-01-21 Thread Cathy_123


Thank you for your answer, but I use Tapestry 4, are there another solutions
or I have to change the version ? It's a project of my company so it's
difficult to change ...

Thank you for your help

cathy



Olivier Jacquet wrote:
> 
> 
> Here is a possible answer to your first issue:
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html
> 
> 
> Olivier Jacquet wrote, On 21/01/2009 11:50:
>>
>> The second issue can be solved with css and the white-space property:
>> http://www.w3.org/TR/CSS21/text.html#propdef-white-space
>>
>> The first issue is probably because you are escaping the  elements.
>> I don't know how you turn that off for a property in Tapestry by heart
>> but it should be quite easy to find in the reference.
>>
>>
>>
>>
>> Cathy_123 wrote, On 21/01/2009 11:40:
>>> Hello everybody,
>>>
>>> I would like to do a table and in one column, I have several lines that
>>> I
>>> would like to show on several lines. Something like that:
>>> --
>>> | header 1 | header 2 | header 3 |
>>> --
>>> | hello 1 | first line | test 1 |
>>> | | second line | |
>>> --
>>> | hello 2 | first linee| test 2 |
>>> | | second line | |
>>> | | third line | |
>>> --
>>>
>>> I set these values on the java code and I try to add ' \n\r' or '\r\n'
>>> or
>>> '' on the string but tapestry
>>> doesn't understand this carracters. Do you know how to do it ?
>>>
>>> And I would like that the table doesn't add automatically the carriage
>>> return when my string is too long like too.
>>>
>>> | header 1 | header 2 | header 3 |
>>> --
>>> | hello 1 | first line | test 1 |
>>> | | second line | |
>>> --
>>> | hello 2 | first linee | |<--- NOT OK
>>> | | | test 2 |
>>> | | second line | |
>>> | | third line | |
>>> --
>>>
>>>
>>> thank you for your help
>>>
>>> Cathy
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Table-and-carriage-return-tp21580648p21581363.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Table and carriage return

2009-01-21 Thread Cathy_123

Thank you for your answer, but I use Tapestry 4, are there another solutions
or I have to change the version ? It's a project of my company so it's
difficult to change ...

Thank you for your help

cathy



Thiago HP wrote:
> 
> On Wed, Jan 21, 2009 at 8:40 AM, Cathy_123  wrote:
> 
>>  I set these values on the java code and I try to add ' \n\r' or '\r\n'
>> or
>> '' on the string but tapestry
>> doesn't understand this carracters. Do you know how to do it ?
> 
> HTML completely ignores newline (\n, \r) characters unless they're
> surrounded by a  tag.
> By the way, Tapestry templates *must* be valid XML, so you should use
>  in your templates, not .
> 
> By default, Tapestry converts < the character in <, > in > , etc.
> The OutputRaw component
> (http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html)
> does not do this conversion, so it can be a solution to your problem.
> 
>> And I would like that the table doesn't add automatically the carriage
>> return when my string is too long like too.
> 
> This is a pure HTML question, not Tapestry related. And I don't know
> the answer . . . Maybe you can try the  tag.
> 
> -- 
> Thiago
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Table-and-carriage-return-tp21580648p21581350.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Table and carriage return

2009-01-21 Thread Cathy_123

Hello everybody,

I would like to do a table and in one column, I have several lines that I
would like to show on several lines. Something like that:
--
| header 1  | header 2 | header 3 |
--
| hello 1 | first line  | test 1 |
|   | second line |  |
--
| hello 2 | first linee| test 2|
|   | second line |  |
|   | third line|  |
--

 I set these values on the java code and I try to add ' \n\r' or '\r\n' or
'' on the string but tapestry 
doesn't understand this carracters. Do you know how to do it ?

And I would like that the table doesn't add automatically the carriage
return when my string is too long like too.

| header 1  | header 2 | header 3 |
--
| hello 1 | first line  | test 1 |
|   | second line |  |
--
| hello 2 | first linee |  |   <--- NOT OK
|   |  | test 2 |
|   | second line |  |
|   | third line|  |
--


thank you for your help

Cathy
-- 
View this message in context: 
http://www.nabble.com/Table-and-carriage-return-tp21580648p21580648.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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