Re: Looking for a "grouped table" component

2013-09-07 Thread Tobonaut
Hi Lance,
thanks! I'll have a look!

Regards,


On Sep 7, 2013, at 8:41 AM, Lance Java  wrote:

> It's not exactly what you're looking for but it's worth a mention. Perhaps
> my GridCollapse mixin can give some inspiration.
> 
> http://tapestry-stitch.uklance.cloudbees.net/gridcollapsedemo
> On 6 Sep 2013 18:52, "Tobonaut"  wrote:
> 
>> Good evening folks,
>> 
>> I've been looking for a table component which includes grouping. Like a
>> treetable with dynamic grouping, filtering, etc.
>> 
>> I crawled the mailing list and google to find a solution but it was not
>> successful.
>> 
>> May you know how I can solve my problem.
>> 
>> I hope the following image helps to clarify my problem. I want to achieve
>> the following control with Tapestry "stuff":
>> https://dl.dropboxusercontent.com/u/4104316/Share/example.png
>> 
>> Thanks a lot.
>> 
>> Regards,
>> - Tob
>> 
>> 
>> -
>> 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



Re: Looking for a "grouped table" component

2013-09-06 Thread Lance Java
It's not exactly what you're looking for but it's worth a mention. Perhaps
my GridCollapse mixin can give some inspiration.

http://tapestry-stitch.uklance.cloudbees.net/gridcollapsedemo
 On 6 Sep 2013 18:52, "Tobonaut"  wrote:

> Good evening folks,
>
> I've been looking for a table component which includes grouping. Like a
> treetable with dynamic grouping, filtering, etc.
>
> I crawled the mailing list and google to find a solution but it was not
> successful.
>
> May you know how I can solve my problem.
>
> I hope the following image helps to clarify my problem. I want to achieve
> the following control with Tapestry "stuff":
> https://dl.dropboxusercontent.com/u/4104316/Share/example.png
>
> Thanks a lot.
>
> Regards,
> - Tob
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Looking for a "grouped table" component

2013-09-06 Thread Tobonaut
Good evening folks,

I've been looking for a table component which includes grouping. Like a 
treetable with dynamic grouping, filtering, etc.

I crawled the mailing list and google to find a solution but it was not 
successful.

May you know how I can solve my problem.

I hope the following image helps to clarify my problem. I want to achieve the 
following control with Tapestry "stuff": 
https://dl.dropboxusercontent.com/u/4104316/Share/example.png

Thanks a lot.

Regards,
- Tob


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



Re: [T5] Table component with database paging

2008-09-24 Thread Thiago H. de Paula Figueiredo

Em Wed, 24 Sep 2008 16:07:08 -0300, <[EMAIL PROTECTED]> escreveu:

Is there already a T5 component that shows a paged table that will not  
read all data at once, but one that uses database paging queries for  
every page?


Tapestry's Grid does exactly that, but the queries are up to you. Just  
implement the GridDataSource interface and pass one instance of it to the  
Grid's source parameter.


Thiago

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5] Table component with database paging

2008-09-24 Thread superoverdrive
Is there already a T5 component that shows a paged table that will not read all 
data at once, but one that uses database paging queries for every page?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



t4: tr attributes for some rows in a table component?

2007-12-17 Thread Vadim Berezniker
I would like to render certain rows differently by applying a css
class to a row based on a value in that row.
I haven't been able to figure out any way to do this. I'm not even
sure if it's even possible with the existing table component.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to display html in Table component?

2007-05-05 Thread Jesse Kuhnert

Right.At the base of it all the @Image component does is write out



Something still has to actually serve that image up at the provided URL .
That's the tricky part...

On 5/6/07, li li <[EMAIL PROTECTED]> wrote:


Maybe the @Image component is a little difficult to use. But I will try
it. Thanks!



lirenwang
**

--
From: *"Jesse Kuhnert" <[EMAIL PROTECTED]>*
Reply-To: *"Tapestry users" *
To: *"Tapestry users" *
Subject: *Re: How to display html in Table component?*
Date: *Sun, 6 May 2007 00:19:39 -0400*
>That's what I was afraid of. :(
>
>Don't worry...Writing a service is only a few lines of java code -
>and you
>have a fully working example (actually make that two fully working
>examples)
>to look at on how to do it:
>
>
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-examples/Workbench/src/java/org/apache/tapestry/workbench/chart/ChartService.java?view=markup
>
>Just replace the section looking like:
>
>IChartProvider provider = (IChartProvider) component;
>
>Chart chart = provider.getChart();
>JPEGEncoder13.encode(chart, 1.0f, _response);
>
>
>To something more like :
>
>OutputStream os = _response.getOutputStream();
>
>os.write(myDevObject.getDevImage());
>
>A more comprehensive example of writing the image data directly can
>be found
>here:
>
>
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/services/impl/RoundedCornerService.java?view=markup
>
>On 5/6/07, li li <[EMAIL PROTECTED]> wrote:
>>
>>The column image is fetch from database,not only in locale. :(
>>
>>Need I have to write java code to do this? I mean that need I have
>>to use
>>"ExternalAsset" class to do it? If I could config the image in html
>>or
>>page dynamic?
>>
>>
>>
>>
>>*lirenwang*
>>
>>--
>>From: *"Jesse Kuhnert" <[EMAIL PROTECTED]>*
>>Reply-To: *"Tapestry users" *
>>To: *"Tapestry users" *
>>Subject: *Re: How to display html in Table component?*
>>Date: *Sun, 6 May 2007 00:07:15 -0400*
>> >Is the value of devImage really a url ? If that is the case then
>>you
>> >can
>> >give it an instance of IAsset by doing something like this in
>>your
>> >page/component:
>> >
>> >public IAsset getDeveloperAsset(Developer dev)
>> >{
>> > return new ExternalAsset(dev.getDevImage(), this.getLocation());
>> >}
>> >
>> >Not exactly the prettiest feeling way to do it but 
>> >
>> >Of courseif it's really just a local context-relative url you
>> >could also
>> >always get away with:
>> >
>> >
>> >
>> >On 5/5/07, li li <[EMAIL PROTECTED]> wrote:
>> >>
>> >>Thank you! But image HTML code seem don't work:
>> >>
>> >>
>> >>> >>image="ognl:components.tableRows.tableRow.developer.devImage"/>
>> >>
>> >>
>> >>The value of "developer.devImage" is
>> >>"http://localhost:7001/test/images/test.jpg";.
>> >>It throws exception:"No type converter for type
>> >>org.apache.tapestry.IAsset
>> >>is available."
>> >>
>> >>lirenwang
>> >>
>> >>
>> >> >From: "Jesse Kuhnert" <[EMAIL PROTECTED]>
>> >> >Reply-To: "Tapestry users" 
>> >> >To: "Tapestry users" 
>> >> >Subject: Re: How to display html in Table component?
>> >> >Date: Sat, 5 May 2007 23:29:27 -0400
>> >> >
>> >> >Oh.Maybe you just want a particular row (or table cell )
>>to
>> >> >appear red
>> >> >or similar...Then look at the example at the very bottom of
>>this
>> >> >page:
>> >> >
>> >> >
>> >>
>>
http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html
>> >>
>> >> >
>> >> >With that I could make something red via:
>> >> >
>> >> >> >> >class="ognl:beans.evenOdd.next">
>> >> > 
>> >> > > >> >value="ognl:components.tableRows.tableRow.threadTitle
>>/>
>> >> > 
>> >> > 
>> >> > > >> >value="ognl:components.tableRows.tableRow.get

Re: How to display html in Table component?

2007-05-05 Thread li li
Maybe the @Image component is a 
little difficult to use. But I will try it. Thanks!lirenwang
 


From: "Jesse Kuhnert" <[EMAIL PROTECTED]>Reply-To: 
"Tapestry users" To: 
"Tapestry users" Subject: 
Re: How to display html in Table component?Date: Sun, 6 May 
2007 00:19:39 -0400>That's what I was afraid of. 
:(>>Don't worry...Writing a service is only a few lines of 
java code - >and you>have a fully working example (actually 
make that two fully working >examples)>to look at on how to 
do 
it:>>http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-examples/Workbench/src/java/org/apache/tapestry/workbench/chart/ChartService.java?view=markup>>Just 
replace the section looking like:>>IChartProvider provider = 
(IChartProvider) component;>>Chart chart = 
provider.getChart();>JPEGEncoder13.encode(chart, 1.0f, 
_response);>>>To something more like 
:>>OutputStream os = 
_response.getOutputStream();>>os.write(myDevObject.getDevImage());>>A 
more comprehensive example of writing the image data directly can 
>be 
found>here:>>http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/services/impl/RoundedCornerService.java?view=markup>>On 
5/6/07, li li <[EMAIL PROTECTED]> 
wrote:>>>>The column image is fetch from database,not 
only in locale. :(>>>>Need I have to write java code to 
do this? I mean that need I have >>to 
use>>"ExternalAsset" class to do it? If I could config the image 
in html >>or>>page 
dynamic?>>>>>>>>>>*lirenwang*>>>>-->>From: 
*"Jesse Kuhnert" <[EMAIL PROTECTED]>*>>Reply-To: 
*"Tapestry users" *>>To: 
*"Tapestry users" *>>Subject: 
*Re: How to display html in Table component?*>>Date: *Sun, 6 May 
2007 00:07:15 -0400*>> >Is the value of devImage really a url 
? If that is the case then >>you>> >can>> 
>give it an instance of IAsset by doing something like this in 
>>your>> >page/component:>> 
>>> >public IAsset getDeveloperAsset(Developer 
dev)>> >{>> > return new 
ExternalAsset(dev.getDevImage(), this.getLocation());>> 
>}>> >>> >Not exactly the prettiest feeling 
way to do it but >> >>> >Of courseif it's 
really just a local context-relative url you>> >could 
also>> >always get away with:>> >>> 
>>> >>> 
>On 5/5/07, li li <[EMAIL PROTECTED]> wrote:>> 
>>>> >>Thank you! But image HTML code seem don't 
work:>> >>>> >>>> 
>>>> 
>>image="ognl:components.tableRows.tableRow.developer.devImage"/>>> 
>>>> >>>> >>The value of 
"developer.devImage" is>> 
>>"http://localhost:7001/test/images/test.jpg".>> 
>>It throws exception:"No type converter for type>> 
>>org.apache.tapestry.IAsset>> >>is 
available.">> >>>> >>lirenwang>> 
>>>> >>>> >> >From: "Jesse 
Kuhnert" <[EMAIL PROTECTED]>>> >> >Reply-To: 
"Tapestry users" >> >> 
>To: "Tapestry users" >> 
>> >Subject: Re: How to display html in Table 
component?>> >> >Date: Sat, 5 May 2007 23:29:27 
-0400>> >> >>> >> >Oh.Maybe you 
just want a particular row (or table cell ) >>to>> 
>> >appear red>> >> >or similar...Then look at 
the example at the very bottom of >>this>> >> 
>page:>> >> >>> >> >>> 
>>>>http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html>> 
>>>> >> >>> >> >With that I 
could make something red via:>> >> >>> 
>> >>> 
>> >class="ognl:beans.evenOdd.next">>> >> > 
>> >> > >> >> 
>value="ognl:components.tableRows.tableRow.threadTitle 
>>/>>> >> > 
>> >> > >> 
>> > >> >> 
>value="ognl:components.tableRows.tableRow.getScoreDisplay(0)" 
>>/>>> >> > >> 
>> > >> >> > >> >> 
>value="ognl:components.tableRows.tableRow.getScoreDisplay(1)" 
>>/>>> >> > >> 
>> > >> >> > >> >>

Re: How to display html in Table component?

2007-05-05 Thread Jesse Kuhnert

That's what I was afraid of. :(

Don't worry...Writing a service is only a few lines of java code - and you
have a fully working example (actually make that two fully working examples)
to look at on how to do it:

http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-examples/Workbench/src/java/org/apache/tapestry/workbench/chart/ChartService.java?view=markup

Just replace the section looking like:

IChartProvider provider = (IChartProvider) component;

Chart chart = provider.getChart();
JPEGEncoder13.encode(chart, 1.0f, _response);


To something more like :

OutputStream os = _response.getOutputStream();

os.write(myDevObject.getDevImage());

A more comprehensive example of writing the image data directly can be found
here:

http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-contrib/src/java/org/apache/tapestry/contrib/services/impl/RoundedCornerService.java?view=markup

On 5/6/07, li li <[EMAIL PROTECTED]> wrote:


The column image is fetch from database,not only in locale. :(

Need I have to write java code to do this? I mean that need I have to use
"ExternalAsset" class to do it? If I could config the image in html or
page dynamic?




*离人网 *

--
From: *"Jesse Kuhnert" <[EMAIL PROTECTED]>*
Reply-To: *"Tapestry users" *
To: *"Tapestry users" *
Subject: *Re: How to display html in Table component?*
Date: *Sun, 6 May 2007 00:07:15 -0400*
>Is the value of devImage really a url ? If that is the case then you
>can
>give it an instance of IAsset by doing something like this in your
>page/component:
>
>public IAsset getDeveloperAsset(Developer dev)
>{
> return new ExternalAsset(dev.getDevImage(), this.getLocation());
>}
>
>Not exactly the prettiest feeling way to do it but 
>
>Of courseif it's really just a local context-relative url you
>could also
>always get away with:
>
>
>
>On 5/5/07, li li <[EMAIL PROTECTED]> wrote:
>>
>>Thank you! But image HTML code seem don't work:
>>
>>
>>>image="ognl:components.tableRows.tableRow.developer.devImage"/>
>>
>>
>>The value of "developer.devImage" is
>>"http://localhost:7001/test/images/test.jpg";.
>>It throws exception:"No type converter for type
>>org.apache.tapestry.IAsset
>>is available."
>>
>>lirenwang
>>
>>
>> >From: "Jesse Kuhnert" <[EMAIL PROTECTED]>
>> >Reply-To: "Tapestry users" 
>> >To: "Tapestry users" 
>> >Subject: Re: How to display html in Table component?
>> >Date: Sat, 5 May 2007 23:29:27 -0400
>> >
>> >Oh.Maybe you just want a particular row (or table cell ) to
>> >appear red
>> >or similar...Then look at the example at the very bottom of this
>> >page:
>> >
>> >
>>
http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html
>>
>> >
>> >With that I could make something red via:
>> >
>> >> >class="ognl:beans.evenOdd.next">
>> > 
>> > > >value="ognl:components.tableRows.tableRow.threadTitle />
>> > 
>> > 
>> > > >value="ognl:components.tableRows.tableRow.getScoreDisplay(0)" />
>> > 
>> > 
>> > > >value="ognl:components.tableRows.tableRow.getScoreDisplay(1)" />
>> > 
>> > 
>> > > >value="ognl:components.tableRows.tableRow.getScoreDisplay(2)" />
>> > 
>> > 
>> >
>> >OReven easier would be saying:
>> >
>> >
>> > tr td.boldColor { color:red; }
>> >
>> >
>> >> >class="ognl:beans.evenOdd.next">
>> > 
>> > > >value="ognl:components.tableRows.tableRow.threadTitle />
>> > 
>> >
>> >
>> >
>> >On 5/5/07, li li <[EMAIL PROTECTED]> wrote:
>> >>
>> >>Hi Jesse:
>> >>
>> >> If I use Table component,how to do it? My code is:
>> >>
>> >>> >>source="ognl:modaltest"
>> >>pageSize="4" columns="id,threadTitle,!developer.id:Author:
>> >>developer.devName,!literal:developer.devImage" raw="true" />
>> >>
>> >>It seems that the raw parameter don't work?
>> >>
>> >>
>> >>
>> >>*lirenwang*
>> >>
>> >>--
>> >>From: *"Jesse Kuhnert" <[EMAIL PROTECTED

Re: How to display html in Table component?

2007-05-05 Thread li li
The column image is fetch from 
database,not only in locale. :(
Need I have to write java code to do this? I mean that need I have to 
use "ExternalAsset" class to do it? If I could 
config the image in html or page dynamic?
离人网



From: "Jesse Kuhnert" <[EMAIL PROTECTED]>Reply-To: 
"Tapestry users" To: 
"Tapestry users" Subject: 
Re: How to display html in Table component?Date: Sun, 6 May 
2007 00:07:15 -0400>Is the value of devImage really a url ? If 
that is the case then you >can>give it an instance of IAsset 
by doing something like this in 
your>page/component:>>public IAsset 
getDeveloperAsset(Developer dev)>{> return new 
ExternalAsset(dev.getDevImage(), 
this.getLocation());>}>>Not exactly the prettiest 
feeling way to do it but >>Of courseif it's really 
just a local context-relative url you >could also>always get 
away with:>>>>On 5/5/07, li li <[EMAIL PROTECTED]> 
wrote:>>>>Thank you! But image HTML code seem don't 
work:>>>>>>>>image="ognl:components.tableRows.tableRow.developer.devImage"/>>>>>>>The 
value of "developer.devImage" 
is>>"http://localhost:7001/test/images/test.jpg".>>It 
throws exception:"No type converter for type 
>>org.apache.tapestry.IAsset>>is 
available.">>>>lirenwang>>>>>> 
>From: "Jesse Kuhnert" <[EMAIL PROTECTED]>>> 
>Reply-To: "Tapestry users" 
>> >To: "Tapestry users" 
>> >Subject: Re: How to 
display html in Table component?>> >Date: Sat, 5 May 2007 
23:29:27 -0400>> >>> >Oh.Maybe you just want 
a particular row (or table cell ) to>> >appear red>> 
>or similar...Then look at the example at the very bottom of 
this>> >page:>> >>> 
>>>http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html>>>> 
>>> >With that I could make something red via:>> 
>>> >>> 
>class="ognl:beans.evenOdd.next">>> > >> > >> 
>value="ognl:components.tableRows.tableRow.threadTitle 
/>>> > >> > >> > >> 
>value="ognl:components.tableRows.tableRow.getScoreDisplay(0)" 
/>>> > >> > >> > >> 
>value="ognl:components.tableRows.tableRow.getScoreDisplay(1)" 
/>>> > >> > >> > >> 
>value="ognl:components.tableRows.tableRow.getScoreDisplay(2)" 
/>>> > >> > >> 
>>> >OReven easier would be saying:>> 
>>> ><BR>>> > tr td.boldColor { 
color:red; }<BR>>> >>> >>> 
>>> 
>class="ognl:beans.evenOdd.next">>> > >> > >> 
>value="ognl:components.tableRows.tableRow.threadTitle />>> 
> >> >>> >>> 
>>> >On 5/5/07, li li <[EMAIL PROTECTED]> 
wrote:>> >>>> >>Hi Jesse:>> 
>>>> >> If I use Table component,how to do it? My 
code is:>> >>>> >>>> 
>>source="ognl:modaltest">> >>pageSize="4" 
columns="id,threadTitle,!developer.id:Author:>> 
>>developer.devName,!literal:developer.devImage" raw="true" 
/>>> >>>> >>It seems that the raw 
parameter don't work?>> >>>> >>>> 
>>>> >>*lirenwang*>> >>>> 
>>-->> >>From: *"Jesse 
Kuhnert" <[EMAIL PROTECTED]>*>> >>Reply-To: 
*"Tapestry users" *>> 
>>To: *"Tapestry users" 
*>> >>Subject: *Re: How to 
display html in Table component?*>> >>Date: *Sat, 5 May 
2007 23:17:48 -0400*>> >> >> 
>http://tapestry.apache.org/tapestry4.1/components/general/insert.html>> 
>> >>> >> >Set the "raw" parameter to true , as 
in:>> >> >>> >> >>> >> 
>raw="true" />>> >> >>> >> >On 
5/5/07, li li <[EMAIL PROTECTED]> wrote:>> 
>> >>>> >> >>hi everyone:>> 
>> >>>> >> >> Could Contrib:Table 
component display HTML code? I want to>> >> >>display 
some>> >> >>HTML code in Tapestry4's Table 
component.How to do it? For>> >> >>example,I 
want>> >> >>to display

Re: How to display html in Table component?

2007-05-05 Thread Jesse Kuhnert

Is the value of devImage really a url ? If that is the case then you can
give it an instance of IAsset by doing something like this in your
page/component:

public IAsset getDeveloperAsset(Developer dev)
{
   return new ExternalAsset(dev.getDevImage(), this.getLocation());
}

Not exactly the prettiest feeling way to do it but 

Of courseif it's really just a local context-relative url you could also
always get away with:



On 5/5/07, li li <[EMAIL PROTECTED]> wrote:


Thank you! But image HTML code seem don't work:





The value of "developer.devImage" is
"http://localhost:7001/test/images/test.jpg";.
It throws exception:"No type converter for type org.apache.tapestry.IAsset
is available."

lirenwang


>From: "Jesse Kuhnert" <[EMAIL PROTECTED]>
>Reply-To: "Tapestry users" 
>To: "Tapestry users" 
>Subject: Re: How to display html in Table component?
>Date: Sat, 5 May 2007 23:29:27 -0400
>
>Oh.Maybe you just want a particular row (or table cell ) to
>appear red
>or similar...Then look at the example at the very bottom of this
>page:
>
>
http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html

>
>With that I could make something red via:
>
>class="ognl:beans.evenOdd.next">
> 
>  value="ognl:components.tableRows.tableRow.threadTitle />
> 
> 
>   value="ognl:components.tableRows.tableRow.getScoreDisplay(0)" />
> 
> 
>   value="ognl:components.tableRows.tableRow.getScoreDisplay(1)" />
> 
> 
>   value="ognl:components.tableRows.tableRow.getScoreDisplay(2)" />
> 
>   
>
>OReven easier would be saying:
>
>
>   tr td.boldColor { color:red; }
>
>
>class="ognl:beans.evenOdd.next">
> 
>value="ognl:components.tableRows.tableRow.threadTitle />
> 
>
>
>
>On 5/5/07, li li <[EMAIL PROTECTED]> wrote:
>>
>>Hi Jesse:
>>
>>If I use Table component,how to do it? My code is:
>>
>>>source="ognl:modaltest"
>>pageSize="4" columns="id,threadTitle,!developer.id:Author:
>>developer.devName,!literal:developer.devImage" raw="true" />
>>
>>It seems that the raw parameter don't work?
>>
>>
>>
>>*lirenwang*
>>
>>--
>>From: *"Jesse Kuhnert" <[EMAIL PROTECTED]>*
>>Reply-To: *"Tapestry users" *
>>To: *"Tapestry users" *
>>Subject: *Re: How to display html in Table component?*
>>Date: *Sat, 5 May 2007 23:17:48 -0400*
>> >http://tapestry.apache.org/tapestry4.1/components/general/insert.html
>> >
>> >Set the "raw" parameter to true , as in:
>> >
>> >> >raw="true" />
>> >
>> >On 5/5/07, li li <[EMAIL PROTECTED]> wrote:
>> >>
>> >>hi everyone:
>> >>
>> >> Could Contrib:Table component display HTML code? I want to
>> >>display some
>> >>HTML code in Tapestry4's Table component.How to do it? For
>> >>example,I want
>> >>to display a red font in table,but when table rendered,it will
>> >>escape these
>> >>HTML code to plain text. So I couldn't display some html in
>>Table.
>> >>How to do
>> >>it? thks!
>> >>
>> >>--
>> >>免费 下载 MSN Explorer
>>
>><http://g.msn.com/8HMACNCN/2743??PS=47575
>-

>>
>> >>To
>> >>unsubscribe, e-mail: [EMAIL PROTECTED] For
>> >>additional
>> >>commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>> >
>> >--
>> >Jesse Kuhnert
>> >Tapestry/Dojo team member/developer
>> >
>> >Open source based consulting work centered around
>> >dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>>
>>
>>--
>>免费下载 MSN Explorer
>><http://g.msn.com/8HMACNCN/2743??PS=47575
>-

>>To
>>unsubscribe, e-mail: [EMAIL PROTECTED] For
>>additional
>>commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>
>--
>Jesse Kuhnert
>Tapestry/Dojo team member/developer
>
>Open source based consulting work centered around
>dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

_
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: How to display html in Table component?

2007-05-05 Thread li li

Thank you! But image HTML code seem don't work:


image="ognl:components.tableRows.tableRow.developer.devImage"/>



The value of "developer.devImage" is 
"http://localhost:7001/test/images/test.jpg";.
It throws exception:"No type converter for type org.apache.tapestry.IAsset 
is available."


lirenwang



From: "Jesse Kuhnert" <[EMAIL PROTECTED]>
Reply-To: "Tapestry users" 
To: "Tapestry users" 
Subject: Re: How to display html in Table component?
Date: Sat, 5 May 2007 23:29:27 -0400

Oh.Maybe you just want a particular row (or table cell ) to 
appear red
or similar...Then look at the example at the very bottom of this 
page:


http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html




With that I could make something red via:

class="ognl:beans.evenOdd.next">


 
  


  


  

  

OReven easier would be saying:


  tr td.boldColor { color:red; }


class="ognl:beans.evenOdd.next">


   

Hi Jesse:

   If I use Table component,how to do it? My code is:

source="ognl:modaltest"

pageSize="4" columns="id,threadTitle,!developer.id:Author:
developer.devName,!literal:developer.devImage" raw="true" />

It seems that the raw parameter don't work?



*lirenwang*

------
From: *"Jesse Kuhnert" <[EMAIL PROTECTED]>*
Reply-To: *"Tapestry users" *
To: *"Tapestry users" *
Subject: *Re: How to display html in Table component?*
Date: *Sat, 5 May 2007 23:17:48 -0400*
>http://tapestry.apache.org/tapestry4.1/components/general/insert.html
>
>Set the "raw" parameter to true , as in:
>
>raw="true" />
>
>On 5/5/07, li li <[EMAIL PROTECTED]> wrote:
>>
>>hi everyone:
>>
>> Could Contrib:Table component display HTML code? I want to
>>display some
>>HTML code in Tapestry4's Table component.How to do it? For
>>example,I want
>>to display a red font in table,but when table rendered,it will
>>escape these
>>HTML code to plain text. So I couldn't display some html in 
Table.

>>How to do
>>it? thks!
>>
>>--
>>免费 下载 MSN Explorer

<http://g.msn.com/8HMACNCN/2743??PS=47575>-




>>To
>>unsubscribe, e-mail: [EMAIL PROTECTED] For
>>additional
>>commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>--
>Jesse Kuhnert
>Tapestry/Dojo team member/developer
>
>Open source based consulting work centered around
>dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


--
免费下载 MSN Explorer 
<http://g.msn.com/8HMACNCN/2743??PS=47575>- 



To
unsubscribe, e-mail: [EMAIL PROTECTED] For 
additional

commands, e-mail: [EMAIL PROTECTED]





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


_
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to display html in Table component?

2007-05-05 Thread Jesse Kuhnert

Oh.Maybe you just want a particular row (or table cell ) to appear red
or similar...Then look at the example at the very bottom of this page:

http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html

With that I could make something red via:



 
  


  


  

  

OReven easier would be saying:


  tr td.boldColor { color:red; }




   

Hi Jesse:

   If I use Table component,how to do it? My code is:



It seems that the raw parameter don't work?



*lirenwang*

--
From: *"Jesse Kuhnert" <[EMAIL PROTECTED]>*
Reply-To: *"Tapestry users" *
To: *"Tapestry users" *
Subject: *Re: How to display html in Table component?*
Date: *Sat, 5 May 2007 23:17:48 -0400*
>http://tapestry.apache.org/tapestry4.1/components/general/insert.html
>
>Set the "raw" parameter to true , as in:
>
>raw="true" />
>
>On 5/5/07, li li <[EMAIL PROTECTED]> wrote:
>>
>>hi everyone:
>>
>> Could Contrib:Table component display HTML code? I want to
>>display some
>>HTML code in Tapestry4's Table component.How to do it? For
>>example,I want
>>to display a red font in table,but when table rendered,it will
>>escape these
>>HTML code to plain text. So I couldn't display some html in Table.
>>How to do
>>it? thks!
>>
>>--
>>免费 下载 MSN Explorer
>><http://g.msn.com/8HMACNCN/2743??PS=47575>-

>>To
>>unsubscribe, e-mail: [EMAIL PROTECTED] For
>>additional
>>commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>--
>Jesse Kuhnert
>Tapestry/Dojo team member/developer
>
>Open source based consulting work centered around
>dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


--
免费下载 MSN Explorer 
<http://g.msn.com/8HMACNCN/2743??PS=47575>-
 To
unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: How to display html in Table component?

2007-05-05 Thread li li
Hi Jesse:
   If I use Table component,how to do it? My code is:
It seems that the raw parameter don't 
work?
lirenwang


From: "Jesse Kuhnert" <[EMAIL PROTECTED]>Reply-To: 
"Tapestry users" To: 
"Tapestry users" Subject: 
Re: How to display html in Table component?Date: Sat, 5 May 
2007 23:17:48 
-0400>http://tapestry.apache.org/tapestry4.1/components/general/insert.html>>Set 
the "raw" parameter to true , as in:>>>raw="true" 
/>>>On 5/5/07, li li <[EMAIL PROTECTED]> 
wrote:>>>>hi everyone:>>>> Could 
Contrib:Table component display HTML code? I want to >>display 
some>>HTML code in Tapestry4's Table component.How to do it? For 
>>example,I want>>to display a red font in table,but 
when table rendered,it will >>escape these>>HTML code 
to plain text. So I couldn't display some html in Table. >>How to 
do>>it? 
thks!>>>>-->>免费
下载 MSN Explorer 
>>- 
>>To>>unsubscribe, e-mail: 
[EMAIL PROTECTED] For 
>>additional>>commands, e-mail: 
[EMAIL PROTECTED]>>>>>-->Jesse 
Kuhnert>Tapestry/Dojo team member/developer>>Open 
source based consulting work centered 
around>dojo/tapestry/tacos/hivemind. 
http://blog.opencomponentry.com免费下载  MSN Explorer  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to display html in Table component?

2007-05-05 Thread Jesse Kuhnert

http://tapestry.apache.org/tapestry4.1/components/general/insert.html

Set the "raw" parameter to true , as in:



On 5/5/07, li li <[EMAIL PROTECTED]> wrote:


hi everyone:

  Could Contrib:Table component display HTML code? I want to display some
HTML code in Tapestry4's Table component.How to do it?  For example,I want
to display a red font in table,but when table rendered,it will escape these
HTML code to plain text. So I couldn't display some html in Table. How to do
it? thks!

--
免费下载 MSN Explorer 
-
 To
unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


How to display html in Table component?

2007-05-05 Thread li li
hi everyone:
  Could Contrib:Table component display HTML code? I want to 
display some HTML code in Tapestry4's Table component.How to do it?  
For example,I want to display a red font in table,but when table 
rendered,it will escape these HTML code to plain text. So I couldn't 
display some html in Table. How to do it? thks!
免费下载  MSN Explorer  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TAP 4.1.2 : Table Component and storing state on the client

2007-05-02 Thread Lionel Touati

Hi All,

I'm using the table component in a client based state storage 
application. It seems to work fine, however I encounter some issues as 
the client state parameter is too big to work with IE. It sometimes also 
break in firefox. To overcome this issue we isually use a 
FormLinkRenderer, but I didn't find any way to specify it in the various 
table components.


If it does not exist I'll be happy to contribute it

L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is there any Tapestry Tree Table component which is similar to ADF Tree Table?

2007-04-09 Thread tapuser

Hi Jessek,
  I looked at this example. But, I want to add additional
columns and action butttons  to the tree row. Also I looked at TreeTable
component. It seems that it has bugs.

Thanks.
Sri


Jessek wrote:
> 
> http://opencomponentry.com:8080/tacos/ajax/TreeExample.html
> 
> On 4/9/07, tapuser <[EMAIL PROTECTED]> wrote:
>>
>> Hi Tapestry Experts,
>>
>> I am trying to find a Tree Table component which is similar to ADF Tree
>> Table component.
>>
>> http://download-east.oracle.com/docs/cd/B32110_01/web.1013/b28967/web_masterdetail005.htm
>>
>> If you write such component in Tapestry, could you please provide some
>> hints
>> to implement ADF Tree Table style component?
>>
>> Thanks in advnace.
>>
>> -Sri.
>> --
>> View this message in context:
>> http://www.nabble.com/Is-there-any-Tapestry-Tree-Table-component-which-is-similar-to-ADF-Tree-Table--tf3548454.html#a9905928
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
> 
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> 
> -----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-there-any-Tapestry-Tree-Table-component-which-is-similar-to-ADF-Tree-Table--tf3548454.html#a9913652
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is there any Tapestry Tree Table component which is similar to ADF Tree Table?

2007-04-09 Thread Jesse Kuhnert

http://opencomponentry.com:8080/tacos/ajax/TreeExample.html

On 4/9/07, tapuser <[EMAIL PROTECTED]> wrote:


Hi Tapestry Experts,

I am trying to find a Tree Table component which is similar to ADF Tree
Table component.

http://download-east.oracle.com/docs/cd/B32110_01/web.1013/b28967/web_masterdetail005.htm

If you write such component in Tapestry, could you please provide some hints
to implement ADF Tree Table style component?

Thanks in advnace.

-Sri.
--
View this message in context: 
http://www.nabble.com/Is-there-any-Tapestry-Tree-Table-component-which-is-similar-to-ADF-Tree-Table--tf3548454.html#a9905928
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Is there any Tapestry Tree Table component which is similar to ADF Tree Table?

2007-04-09 Thread tapuser

Hi Tapestry Experts,

I am trying to find a Tree Table component which is similar to ADF Tree
Table component.
 
http://download-east.oracle.com/docs/cd/B32110_01/web.1013/b28967/web_masterdetail005.htm

If you write such component in Tapestry, could you please provide some hints
to implement ADF Tree Table style component?

Thanks in advnace.

-Sri.
-- 
View this message in context: 
http://www.nabble.com/Is-there-any-Tapestry-Tree-Table-component-which-is-similar-to-ADF-Tree-Table--tf3548454.html#a9905928
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Table Component ::: Instead of giving value through table source to checkbox , i like to give through other object

2006-12-21 Thread praveen kumar

Hi,
I am newbie to Tapestry. Currently i am using Table component.

I am giving list of custom class objects as source to the table.

	Each object is represented as a row in the table. Now I would like  
to show checkbox in each row.  I would like to delete the rows  
(objects) where the checkboxes are selected.


	Problem:   I like to give values to the checkboxes with separate  
object ( not source object ). Give me suggestion to achieve that.


Thanking you,
With regards,
M. Praveen Kumar


Ability may get you to the top, but it takes character to keep you  
there.




Re: Table component

2006-12-20 Thread Jason Crocker

Carlos,

This is perfect! Thanks :-)

Jason

[EMAIL PROTECTED] wrote:

-->  Does anyone know where I can find a simple example using the table
component with partial results from a database (i.e.
getCurrentPageRows,getRowCount, etc.)?

Jason,

Sorry I just re-read your post . . . The key part I missed was the
"example" ;)

This is a scrubbed impl of a tableModel we use for a search app.  It
uses a spring proxied bean to access a remote web service.  The search
criteria are encapsulated in a query object.  The query objects support
the same type of pagination args that the getCurrentPageRows() method
provides - starting index and page size.

This class preps the query object and delegates to the remote web
service.

Carlos

public class XxTableModel extends AbstractTableModel {

private Query query;

public Iterator getCurrentPageRows(int nFirst, int nPageSize,

ITableColumn objSortColumn, boolean bSortOrder) {

Query query = getQuery();
query.setStartingIndex(new Long(nFirst));
query.setPageSize(new Long(nPageSize));
query.setOrderDirection(translateSortOrder(bSortOrder));

query.setOrder(

(Order) translateColumnSort(objSortColumn));



   return getWebService().search(query)).iterator();

}

public int getRowCount() {



return getWebService()
.getRowCount(getQuery());

}


public Query getQuery() {
return this.query;
}

public void setQuery(Query query) {
this.query = query;
}




}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Table component

2006-12-20 Thread Carlos.Fernandez
-->  Does anyone know where I can find a simple example using the table
component with partial results from a database (i.e.
getCurrentPageRows,getRowCount, etc.)?

Jason,

Sorry I just re-read your post . . . The key part I missed was the
"example" ;)

This is a scrubbed impl of a tableModel we use for a search app.  It
uses a spring proxied bean to access a remote web service.  The search
criteria are encapsulated in a query object.  The query objects support
the same type of pagination args that the getCurrentPageRows() method
provides - starting index and page size.

This class preps the query object and delegates to the remote web
service.

Carlos

public class XxTableModel extends AbstractTableModel {

private Query query;

public Iterator getCurrentPageRows(int nFirst, int nPageSize,
ITableColumn objSortColumn, boolean bSortOrder) {

Query query = getQuery();
query.setStartingIndex(new Long(nFirst));
query.setPageSize(new Long(nPageSize));
query.setOrderDirection(translateSortOrder(bSortOrder));

query.setOrder(
(Order) translateColumnSort(objSortColumn));


   return getWebService().search(query)).iterator();

}

public int getRowCount() {


return getWebService()
.getRowCount(getQuery());

}


public Query getQuery() {
return this.query;
}

public void setQuery(Query query) {
this.query = query;
}




}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Table component

2006-12-20 Thread Carlos.Fernandez
-->  Does anyone know where I can find a simple example using the table 
component with partial results from a database (i.e. getCurrentPageRows,

getRowCount, etc.)?

The contrib:table source parameter can accept an impl of
IBasicTableModel.

http://tapestry.apache.org/tapestry4.1/tapestry-contrib/apidocs/org/apac
he/tapestry/contrib/table/model/IBasicTableModel.html

This class will give you finer grained control over how you request the
particular records required for display.


Carlos

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Table component

2006-12-20 Thread Jason Crocker
Thanks Jesse. I've been to this page but I thought using the source 
parameter loaded the entire list, which isn't what I want to do. Am I 
missing something?


Jason

Jesse Kuhnert wrote:

The very bottom of the page has a pretty good example of how to do
some of these lower level detail kind of renders:

http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html 



On 12/20/06, Jason Crocker <[EMAIL PROTECTED]> wrote:

Does anyone know where I can find a simple example using the table
component with partial results from a database (i.e. getCurrentPageRows,
getRowCount, etc.)? I have a service layer function that accepts the
criteria, limit and offset and would rather load just the data that's
going to be displayed on the page.

Thanks,
Jason


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Table component

2006-12-20 Thread Jesse Kuhnert

The very bottom of the page has a pretty good example of how to do
some of these lower level detail kind of renders:

http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html

On 12/20/06, Jason Crocker <[EMAIL PROTECTED]> wrote:

Does anyone know where I can find a simple example using the table
component with partial results from a database (i.e. getCurrentPageRows,
getRowCount, etc.)? I have a service layer function that accepts the
criteria, limit and offset and would rather load just the data that's
going to be displayed on the page.

Thanks,
Jason


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Table component

2006-12-20 Thread Jason Crocker
Does anyone know where I can find a simple example using the table 
component with partial results from a database (i.e. getCurrentPageRows, 
getRowCount, etc.)? I have a service layer function that accepts the 
criteria, limit and offset and would rather load just the data that's 
going to be displayed on the page.


Thanks,
Jason


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tree and Table Component

2006-10-31 Thread tux4ever

Dear users!

I hope you can give me some hints to realize the following requirement. We
want to implement a tree table including custom components. Please have a
look a the screenshot to see what I mean;-)
The header should include some fields and if you click on the "+" symbol a
detailed overview is shown. All fields in the list should be editable.

Please give me some advice to develop this feature or can explain a design
pattern to implement the desired feature.

Best regards,

Gerry http://www.nabble.com/file/3931/ScreenShot.jpg 
-- 
View this message in context: 
http://www.nabble.com/Tree-and-Table-Component-tf2547715.html#a7100515
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Table component + OpenSessionInView problems

2006-09-05 Thread Vinicius Carvalho

Nope, I don't have any persistent anymore, I used to have but not anymore...

Regards

On 9/5/06, Eric Fesler <[EMAIL PROTECTED]> wrote:

Do you have any persistent properties related to Evento on your page ?

If somehow, you have a persistent Evento or if you have serialized an Evento
somwhere in your page, this could explain your lazy instantiation exception.

-- ERic

On Monday 04 September 2006 21:31, Vinicius Carvalho wrote:
> Hello there! I have a page using a contrib:Table. So far it was
> working great. Until I decided to add a property that is a lazy proxy
> for an association:
>
>  condition="ognl:(components.tabelaEventos.tableRow.moderador.confirmado)">
>
> The page is a master-detail page. The first time it is loaded it works
> great. Now comes the odd part, if I add a new master object, next time
> its load its ok, but suppose I click in a link anywhere in the page,
> and come back to this page of if I reload the page I get a lazy
> instantiation exception: the owning session was closed.
>
> To get the source I have this method:
>
> public List getEventos(){
>   return getEventoService().obterEventos();
> }
>
> So every time it does search the database (I'm not using a tablemodel yet).
>
> The add listener:
>
> public IPage cadastrarEvento(IRequestCycle cycle){
>   ValidationDelegate delegate = (ValidationDelegate)
> getBeans().getBean("customDelegate");
>
>   Evento evento = null;
>
>   if(delegate.getHasErrors()){
>   return null;
>   }
>
>   try{
>   evento = 
getEventoService().cadastrarEvento(getEvento(),getPath(cycle));
>   }catch (ChatException e) {
>   
delegate.record(null,getMessages().getMessage(e.getMessage()));
>   return null;
>   }
>
>   setEvento(new Evento());
>   return this;
>   }
>
> If I take off that column (evento.moderador.confirmado) the problem goes
> away Any ideas?
>
> Regards
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Table component + OpenSessionInView problems

2006-09-05 Thread Eric Fesler
Do you have any persistent properties related to Evento on your page ?

If somehow, you have a persistent Evento or if you have serialized an Evento 
somwhere in your page, this could explain your lazy instantiation exception.

-- ERic

On Monday 04 September 2006 21:31, Vinicius Carvalho wrote:
> Hello there! I have a page using a contrib:Table. So far it was
> working great. Until I decided to add a property that is a lazy proxy
> for an association:
>
>  condition="ognl:(components.tabelaEventos.tableRow.moderador.confirmado)">
>
> The page is a master-detail page. The first time it is loaded it works
> great. Now comes the odd part, if I add a new master object, next time
> its load its ok, but suppose I click in a link anywhere in the page,
> and come back to this page of if I reload the page I get a lazy
> instantiation exception: the owning session was closed.
>
> To get the source I have this method:
>
> public List getEventos(){
>   return getEventoService().obterEventos();
> }
>
> So every time it does search the database (I'm not using a tablemodel yet).
>
> The add listener:
>
> public IPage cadastrarEvento(IRequestCycle cycle){
>   ValidationDelegate delegate = (ValidationDelegate)
> getBeans().getBean("customDelegate");
>
>   Evento evento = null;
>
>   if(delegate.getHasErrors()){
>   return null;
>   }
>
>   try{
>   evento = 
> getEventoService().cadastrarEvento(getEvento(),getPath(cycle));
>   }catch (ChatException e) {
>   
> delegate.record(null,getMessages().getMessage(e.getMessage()));
>   return null;
>   }
>
>   setEvento(new Evento());
>   return this;
>   }
>
> If I take off that column (evento.moderador.confirmado) the problem goes
> away Any ideas?
>
> Regards
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Table component + OpenSessionInView problems

2006-09-04 Thread Vinicius Carvalho

Hello there! I have a page using a contrib:Table. So far it was
working great. Until I decided to add a property that is a lazy proxy
for an association:



The page is a master-detail page. The first time it is loaded it works
great. Now comes the odd part, if I add a new master object, next time
its load its ok, but suppose I click in a link anywhere in the page,
and come back to this page of if I reload the page I get a lazy
instantiation exception: the owning session was closed.

To get the source I have this method:

public List getEventos(){
return getEventoService().obterEventos();
}

So every time it does search the database (I'm not using a tablemodel yet).

The add listener:

public IPage cadastrarEvento(IRequestCycle cycle){
ValidationDelegate delegate = (ValidationDelegate)
getBeans().getBean("customDelegate");

Evento evento = null;

if(delegate.getHasErrors()){
return null;
}

try{
evento = 
getEventoService().cadastrarEvento(getEvento(),getPath(cycle)); 
   
}catch (ChatException e) {

delegate.record(null,getMessages().getMessage(e.getMessage()));
return null;
}

setEvento(new Evento());
return this;
}

If I take off that column (evento.moderador.confirmado) the problem goes away
Any ideas?

Regards

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Variable columns in Table Component

2006-08-23 Thread andyhot
use 
and add a method in your component class that each time
returns whatever is appropriate...



[EMAIL PROTECTED] wrote:
> Hi,
>
> I've simplified this example code to make things (hopefully) clearer,
> because what I think I'm trying to do shouldn't be too hard...
>
> I have a page with a custom component that uses the Table component to
> render a list of files that a user has uploaded to my system.
>
> On one screen, I want to show columns like this:
>
> | # | Filename | Size | Delete | Move Up | Move Down |
>
> On the next screen, I want to show columns like this:
>
> | Id | Filename | Size | PDF Version |
>
> The two pages are really operating on the same Collection of files, but
> between the first and second pages, I do a bunch of processing on the
> Collection and assign an ID to each file.  (The "#" column on the first
> page is just an ordinal numbering).
>
> The first page is "editable" in that users can click buttons and
> manipulate the Collection.  The second page is "read only"-- it just
> displays what they've already uploaded.
>
> My question is: assuming I pass a "read only" parameter from the parent
> page to the component like this:
>
> 
>   
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>   


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Variable columns in Table Component

2006-08-23 Thread Karthik N

instead of hardcoding the value as



:orderId, ?
 filename,   ?
 size,   ?
 !delete: :delete,   ?
 !moveUp: :moveUp,   ?
 !moveDown: :moveDown"/>




you should do this



and then on the enclosing component/page have a getTableColumns() method
that returns the formed string



On 8/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Hi,

I've simplified this example code to make things (hopefully) clearer,
because what I think I'm trying to do shouldn't be too hard...

I have a page with a custom component that uses the Table component to
render a list of files that a user has uploaded to my system.

On one screen, I want to show columns like this:

| # | Filename | Size | Delete | Move Up | Move Down |

On the next screen, I want to show columns like this:

| Id | Filename | Size | PDF Version |

The two pages are really operating on the same Collection of files, but
between the first and second pages, I do a bunch of processing on the
Collection and assign an ID to each file.  (The "#" column on the first
page is just an ordinal numbering).

The first page is "editable" in that users can click buttons and
manipulate the Collection.  The second page is "read only"-- it just
displays what they've already uploaded.

My question is: assuming I pass a "read only" parameter from the parent
page to the component like this:


  
   

Variable columns in Table Component

2006-08-23 Thread Thomas.Vaughan
Hi,

I've simplified this example code to make things (hopefully) clearer,
because what I think I'm trying to do shouldn't be too hard...

I have a page with a custom component that uses the Table component to
render a list of files that a user has uploaded to my system.

On one screen, I want to show columns like this:

| # | Filename | Size | Delete | Move Up | Move Down |

On the next screen, I want to show columns like this:

| Id | Filename | Size | PDF Version |

The two pages are really operating on the same Collection of files, but
between the first and second pages, I do a bunch of processing on the
Collection and assign an ID to each file.  (The "#" column on the first
page is just an ordinal numbering).

The first page is "editable" in that users can click buttons and
manipulate the Collection.  The second page is "read only"-- it just
displays what they've already uploaded.

My question is: assuming I pass a "read only" parameter from the parent
page to the component like this:


  
   

Re: How to store the query parameters in a Table component?

2006-08-10 Thread Pratibha Gopalam

when you enter a new search parameter, try resetting the table

   Table table = (Table) this.getComponent("myTable");
   table.reset();


Jun Tsai wrote:


hi all,
  I have a search form and a talbe in a page.When I enter some search 
text

in form and click search button,results  was shown in table
component.ButWhen I click the second page
link.I found the results is all records not by search parameters.How to
store the search text in table pages?

I had used a  ,but it still
had a same problem .

How to ?

Thanks

Jun Tsai




--DISCLAIMER--
This message is for the named person's use only. It may contain 
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. 

If you receive this message in error, please immediately delete it and 
all copies of it from your system, destroy any hard copies of it and 
notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the 
intended recipient. 

Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each 
reserve the right to monitor all e-mail communications through its 
networks. 

Any views expressed in this message are those of the 
individual sender, except where the message states otherwise and the 
sender is authorized to state them to be the views of any such entity.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to store the query parameters in a Table component?

2006-08-10 Thread Jun Tsai

use persist="client"

2006/8/8, Gurps <[EMAIL PROTECTED]>:



Hi, this is exactly my problem too. Have you found the solution? many
thanks
--
View this message in context:
http://www.nabble.com/How-to-store-the-query-parameters-in-a-Table-component--tf1685056.html#a5701412
Sent from the Tapestry - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net


Re: How to store the query parameters in a Table component?

2006-08-08 Thread Gurps

Hi, this is exactly my problem too. Have you found the solution? many thanks
-- 
View this message in context: 
http://www.nabble.com/How-to-store-the-query-parameters-in-a-Table-component--tf1685056.html#a5701412
Sent from the Tapestry - User forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Table component problem

2006-06-15 Thread Ryan Cuprak


Hello,
 As is usually the case right after sending the email below I  
figured out my problem. I had spent over an hour digging and was  
quiet perplexed. I needed to add a 'Persist' annotation to the 'get'  
method used by the source. I did call the set method in the  
pageBeginRender - which does not appear to be called when resorting  
the table (don't quiet understand why yet...). However, any pointers  
on how-to step into the 'dynamically' generated code/proxy would be  
appreciated for future reference =)


 Regards,
 Ryan

On Jun 15, 2006, at 11:47 PM, Ryan Cuprak wrote:


Hello,
 I am having a extremely weird problem with the sort on contrib  
table. It worked perfectly fine (as far as I can tell) until I  
upgraded to Tapestry 4.0.2 from 4.0.1. When I click on sort I get  
an exception:
 Either the tableModel parameter or both source and columns  
parameters must be specified by component pages/jobFunctionList/ 
table.tableView
 #  
org.apache.tapestry.contrib.table.components.TableView.getTableModel 
(TableView.java:220)
#  
org.apache.tapestry.contrib.table.components.inserted.SimpleTableColum 
nComponent.columnSelected(SimpleTableColumnComponent.java:149)

# sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
# sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
# sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

# java.lang.reflect.Method.invoke(Method.java:585)
#  
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeTargetMet 
hod(ListenerMethodInvokerImpl.java:214)
#  
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerM 
ethod(ListenerMethodInvokerImpl.java:155)
#  
org.apache.tapestry.listener.ListenerMethodInvokerImpl.searchAndInvoke 
(ListenerMethodInvokerImpl.java:124)
#  
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerM 
ethod(ListenerMethodInvokerImpl.java:77)
# org.apache.tapestry.listener.SyntheticListener.actionTriggered 
(SyntheticListener.java:51)

 ... (more)

  The snippet from the page specification:
  







 Where is really gets weird is during debugging. I step from  
TableView.java line 249 into getSource() (abstract method) at which  
my debugger drops me into getBinding() of AbstractComponent.java  
line 311. It does find a binding for "source" which it returns.  
However, TableView gets a null which results in the exception above.
 Any suggestions on troubleshooting? Are there any techniques for  
debugging that 'magical' layer - the dynamically generated object  
which calls getBinding(String name) on AbstractComponent as a  
result of a call on getSource(). I understand that getSource() gets  
converted to a string ('source') which is passed in as the name to  
lookup in the binding object of AbstractComponent.  
AbstractComponent finds a 'source' in its 'binding' object but that  
layer returns null instead.


Thanks!
 -Ryan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Table component problem

2006-06-15 Thread Ryan Cuprak
Hello,
 I am having a extremely weird problem with the sort on contrib table. It 
worked perfectly fine (as far as I can tell) until I upgraded to Tapestry 4.0.2 
from 4.0.1. When I click on sort I get an exception:
 Either the tableModel parameter or both source and columns parameters must be 
specified by component pages/jobFunctionList/table.tableView
 # 
org.apache.tapestry.contrib.table.components.TableView.getTableModel(TableView.java:220)
# 
org.apache.tapestry.contrib.table.components.inserted.SimpleTableColumnComponent.columnSelected(SimpleTableColumnComponent.java:149)
# sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
# sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
# 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
# java.lang.reflect.Method.invoke(Method.java:585)
# 
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeTargetMethod(ListenerMethodInvokerImpl.java:214)
# 
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod(ListenerMethodInvokerImpl.java:155)
# 
org.apache.tapestry.listener.ListenerMethodInvokerImpl.searchAndInvoke(ListenerMethodInvokerImpl.java:124)
# 
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod(ListenerMethodInvokerImpl.java:77)
# 
org.apache.tapestry.listener.SyntheticListener.actionTriggered(SyntheticListener.java:51)
 
 ... (more)

  The snippet from the page specification:
  






 Where is really gets weird is during debugging. I step from TableView.java 
line 249 into getSource() (abstract method) at which my debugger drops me into 
getBinding() of AbstractComponent.java line 311. It does find a binding for 
"source" which it returns. However, TableView gets a null which results in the 
exception above. 
 Any suggestions on troubleshooting? Are there any techniques for debugging 
that 'magical' layer - the dynamically generated object which calls 
getBinding(String name) on AbstractComponent as a result of a call on 
getSource(). I understand that getSource() gets converted to a string 
('source') which is passed in as the name to lookup in the binding object of 
AbstractComponent. AbstractComponent finds a 'source' in its 'binding' object 
but that layer returns null instead.

Thanks!
 -Ryan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: looking for table component

2006-06-13 Thread Sam Gendler

I don't know the details, but I do know that contrib:table is actually
just a component that wraps other components that make up the table -
tableView, tableColumn, tableRows, etc. TableView itself wrap sthe
TablePages component, and I think you could overload TablePages to
provide the functionality you are looking for.  However, it would be
difficult, within the table model, to provide accurate offsets and
limits for page by page requests, so you might have to do it only with
tables that keep the entire result set in memory - or else run a fair
number of extra queries to figure out extra limits and offsets for the
alphabet based pages.

--sam


On 6/13/06, Jesper Zedlitz <[EMAIL PROTECTED]> wrote:

Hi,

I am looking for a table component that will generate tables that look like
this: http://saturn.genealogy.net/~jesper/table1.html

The user can choose a letter and will get a paged list of entries that start
with that letter. The active column can be hard coded in the page (example
1). Or even better the user can choose the acitve column (example 2).

In the background a class implementing something like the IBasicTableModel
should be responsible for providing the data.

Does such a component already exist? If not I would start to work on it.

-- Jesper


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



looking for table component

2006-06-13 Thread Jesper Zedlitz
Hi,

I am looking for a table component that will generate tables that look like
this: http://saturn.genealogy.net/~jesper/table1.html

The user can choose a letter and will get a paged list of entries that start
with that letter. The active column can be hard coded in the page (example
1). Or even better the user can choose the acitve column (example 2).

In the background a class implementing something like the IBasicTableModel
should be responsible for providing the data.

Does such a component already exist? If not I would start to work on it.

-- Jesper


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to store the query parameters in a Table component?

2006-05-25 Thread Jun Tsai

hi all,
  I have a search form and a talbe in a page.When I enter some search text
in form and click search button,results  was shown in table
component.ButWhen I click the second page
link.I found the results is all records not by search parameters.How to
store the search text in table pages?

I had used a  ,but it still
had a same problem .

How to ?

Thanks

Jun Tsai
--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net