Re: [T4.1.2] No component found in tree for EventListener binding

2007-08-10 Thread Daniel Kleine-Albers

Hi List,

please ignore this mail. I've just found that JIRA which fixed it:
https://issues.apache.org/jira/browse/TAPESTRY-1556

Thanks anyway - I've been really enjoying developing with Tapestry  
over last couple of months.


Cheers
Daniel


On 10.08.2007, at 18:05, Daniel Kleine-Albers wrote:


Hi All,

I've got a problem with embedding the same component into multiple  
pages that might be a bug. The situation is as follows:


Component C has a form in it that contains a Suggest component. An  
EventListener is attached to that suggest field (on the onblur  
event). I found out that I needed to specify the submitForm  
parameter for this event listener to actually get the form data  
submitted.


C is embedded in pages A and B. As long as I turn off caching  
everything works fine. As soon as I turn on caching and access only  
page A everything's fine as well, but as soon as I access page B  
after page A has been accessed (also if not triggering the event) I  
get the following Exception (also happens if accessing A after B so  
I exclude a problem with this particular page):


No component found in tree for EventListener binding with a  
matching component id of A/$component...C.


The whole stacktrace follows below. I've searched the archives and  
found some references that this behavior might be solved if I use  
an explicit component specification (instead of using annotations)  
- so I tried that but it didn't make a difference.


What I think is strange is that it searches a component on Page B  
which has actually its component id prefixed by the name of Page A  
- this sounds a bit like some variables not getting recalculated  
correctly when borrowing the component from the pool.


Any ideas or workarounds would be really appreciated.

Thanks
Daniel


No component found in tree for EventListener binding with a  
matching component id of ValidateEmail/$CPublicBorder. 
$CRegistration.registrationForm.


Stack Trace:

*  
org.apache.tapestry.pageload.EventConnectionVisitor.wireElementFormEve 
nts(EventConnectionVisitor.java:114)
*  
org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent 
(EventConnectionVisitor.java:86)
* $IComponentVisitor_1144d16ac97.visitComponent 
($IComponentVisitor_1144d16ac97.java)
* $IComponentVisitor_1144d16ac98.visitComponent 
($IComponentVisitor_1144d16ac98.java)
*  
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree 
(ComponentTreeWalker.java:45)
*  
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree 
(ComponentTreeWalker.java:57)
*  
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree 
(ComponentTreeWalker.java:57)
* org.apache.tapestry.pageload.PageLoader.loadPage 
(PageLoader.java:655)

* $IPageLoader_1144d16ac85.loadPage($IPageLoader_1144d16ac85.java)
* $IPageLoader_1144d16ac86.loadPage($IPageLoader_1144d16ac86.java)
* org.apache.tapestry.pageload.PageSource.makeObject 
(PageSource.java:153)
*  
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject 
(GenericKeyedObjectPool.java:797)
* org.apache.tapestry.pageload.PageSource.getPage 
(PageSource.java:177)

* $IPageSource_1144d16abe2.getPage($IPageSource_1144d16abe2.java)
* org.apache.tapestry.engine.RequestCycle.loadPage 
(RequestCycle.java:239)
* org.apache.tapestry.engine.RequestCycle.getPage 
(RequestCycle.java:226)
* org.apache.tapestry.engine.RequestCycle.activate 
(RequestCycle.java:559)
* org.apache.tapestry.engine.PageService.service 
(PageService.java:66)
* $IEngineService_1144d16ac6c.service 
($IEngineService_1144d16ac6c.java)
*  
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service 
(EngineServiceOuterProxy.java:72)
* org.apache.tapestry.engine.AbstractEngine.service 
(AbstractEngine.java:237)
*  
org.apache.tapestry.services.impl.InvokeEngineTerminator.service 
(InvokeEngineTerminator.java:54)
* $WebRequestServicer_1144d16ac48.service 
($WebRequestServicer_1144d16ac48.java)
* $WebRequestServicer_1144d16ac44.service 
($WebRequestServicer_1144d16ac44.java)
*  
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.ser 
vice(WebRequestServicerPipelineBridge.java:61)
* $ServletRequestServicer_1144d16ac2a.service 
($ServletRequestServicer_1144d16ac2a.java)
* org.apache.tapestry.request.DecodedRequestInjector.service 
(DecodedRequestInjector.java:55)
* $ServletRequestServicerFilter_1144d16ac26.service 
($ServletRequestServicerFilter_1144d16ac26.java)
* $ServletRequestServicer_1144d16ac2c.service 
($ServletRequestServicer_1144d16ac2c.java)
* org.apache.tapestry.multipart.MultipartDecoderFilter.service 
(MultipartDecoderFilter.java:52)
* $ServletRequestServicerFilter_1144d16ac24.service 
($ServletRequestServicerFilter_1144d16ac24.java)
* $ServletRequestServicer_1144d16ac2c.service 
($ServletRequestServicer_1144d16ac2c.java)
* 

[T4.1.2] No component found in tree for EventListener binding

2007-08-10 Thread Daniel Kleine-Albers

Hi All,

I've got a problem with embedding the same component into multiple  
pages that might be a bug. The situation is as follows:


Component C has a form in it that contains a Suggest component. An  
EventListener is attached to that suggest field (on the onblur  
event). I found out that I needed to specify the submitForm parameter  
for this event listener to actually get the form data submitted.


C is embedded in pages A and B. As long as I turn off caching  
everything works fine. As soon as I turn on caching and access only  
page A everything's fine as well, but as soon as I access page B  
after page A has been accessed (also if not triggering the event) I  
get the following Exception (also happens if accessing A after B so I  
exclude a problem with this particular page):


No component found in tree for EventListener binding with a matching  
component id of A/$component...C.


The whole stacktrace follows below. I've searched the archives and  
found some references that this behavior might be solved if I use an  
explicit component specification (instead of using annotations) - so  
I tried that but it didn't make a difference.


What I think is strange is that it searches a component on Page B  
which has actually its component id prefixed by the name of Page A -  
this sounds a bit like some variables not getting recalculated  
correctly when borrowing the component from the pool.


Any ideas or workarounds would be really appreciated.

Thanks
Daniel


No component found in tree for EventListener binding with a matching  
component id of ValidateEmail/$CPublicBorder. 
$CRegistration.registrationForm.


Stack Trace:

*  
org.apache.tapestry.pageload.EventConnectionVisitor.wireElementFormEvent 
s(EventConnectionVisitor.java:114)
*  
org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent 
(EventConnectionVisitor.java:86)
* $IComponentVisitor_1144d16ac97.visitComponent 
($IComponentVisitor_1144d16ac97.java)
* $IComponentVisitor_1144d16ac98.visitComponent 
($IComponentVisitor_1144d16ac98.java)
*  
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree 
(ComponentTreeWalker.java:45)
*  
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree 
(ComponentTreeWalker.java:57)
*  
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree 
(ComponentTreeWalker.java:57)
* org.apache.tapestry.pageload.PageLoader.loadPage 
(PageLoader.java:655)

* $IPageLoader_1144d16ac85.loadPage($IPageLoader_1144d16ac85.java)
* $IPageLoader_1144d16ac86.loadPage($IPageLoader_1144d16ac86.java)
* org.apache.tapestry.pageload.PageSource.makeObject 
(PageSource.java:153)
*  
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject 
(GenericKeyedObjectPool.java:797)
* org.apache.tapestry.pageload.PageSource.getPage 
(PageSource.java:177)

* $IPageSource_1144d16abe2.getPage($IPageSource_1144d16abe2.java)
* org.apache.tapestry.engine.RequestCycle.loadPage 
(RequestCycle.java:239)
* org.apache.tapestry.engine.RequestCycle.getPage 
(RequestCycle.java:226)
* org.apache.tapestry.engine.RequestCycle.activate 
(RequestCycle.java:559)
* org.apache.tapestry.engine.PageService.service 
(PageService.java:66)
* $IEngineService_1144d16ac6c.service 
($IEngineService_1144d16ac6c.java)
*  
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service 
(EngineServiceOuterProxy.java:72)
* org.apache.tapestry.engine.AbstractEngine.service 
(AbstractEngine.java:237)
*  
org.apache.tapestry.services.impl.InvokeEngineTerminator.service 
(InvokeEngineTerminator.java:54)
* $WebRequestServicer_1144d16ac48.service 
($WebRequestServicer_1144d16ac48.java)
* $WebRequestServicer_1144d16ac44.service 
($WebRequestServicer_1144d16ac44.java)
*  
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.servi 
ce(WebRequestServicerPipelineBridge.java:61)
* $ServletRequestServicer_1144d16ac2a.service 
($ServletRequestServicer_1144d16ac2a.java)
* org.apache.tapestry.request.DecodedRequestInjector.service 
(DecodedRequestInjector.java:55)
* $ServletRequestServicerFilter_1144d16ac26.service 
($ServletRequestServicerFilter_1144d16ac26.java)
* $ServletRequestServicer_1144d16ac2c.service 
($ServletRequestServicer_1144d16ac2c.java)
* org.apache.tapestry.multipart.MultipartDecoderFilter.service 
(MultipartDecoderFilter.java:52)
* $ServletRequestServicerFilter_1144d16ac24.service 
($ServletRequestServicerFilter_1144d16ac24.java)
* $ServletRequestServicer_1144d16ac2c.service 
($ServletRequestServicer_1144d16ac2c.java)
* org.apache.tapestry.services.impl.SetupRequestEncoding.service 
(SetupRequestEncoding.java:53)
* $ServletRequestServicerFilter_1144d16ac28.service 
($ServletRequestServicerFilter_1144d16ac28.java)
* $ServletRequestServicer_1144d16ac2c.service 
($ServletRequestServicer_1144d16ac2c.java)
* $ServletRequestServicer_1144d16ac1e.service 

RE: [T4.1.2] No component found in tree for EventListener binding

2007-08-10 Thread Marcus.Schulte
Hi Daniel,

I'm not sure that it's exactly the same problem.
If you can, please provide an example. It would be helpful anyway.

Marcus

 -Original Message-
 From: Daniel Kleine-Albers [mailto:[EMAIL PROTECTED] 
 Sent: Friday, August 10, 2007 8:52 AM
 To: Tapestry users
 Subject: Re: [T4.1.2] No component found in tree for 
 EventListener binding
 
 Hi List,
 
 please ignore this mail. I've just found that JIRA which fixed it:
 https://issues.apache.org/jira/browse/TAPESTRY-1556
 
 Thanks anyway - I've been really enjoying developing with 
 Tapestry over last couple of months.
 
 Cheers
 Daniel
 
 
 On 10.08.2007, at 18:05, Daniel Kleine-Albers wrote:
 
  Hi All,
 
  I've got a problem with embedding the same component into multiple 
  pages that might be a bug. The situation is as follows:
 
  Component C has a form in it that contains a Suggest component. An 
  EventListener is attached to that suggest field (on the 
 onblur event). 
  I found out that I needed to specify the submitForm 
 parameter for this 
  event listener to actually get the form data submitted.
 
  C is embedded in pages A and B. As long as I turn off caching 
  everything works fine. As soon as I turn on caching and access only 
  page A everything's fine as well, but as soon as I access 
 page B after 
  page A has been accessed (also if not triggering the event) 
 I get the 
  following Exception (also happens if accessing A after B so 
 I exclude 
  a problem with this particular page):
 
  No component found in tree for EventListener binding with a 
 matching 
  component id of A/$component...C.
 
  The whole stacktrace follows below. I've searched the archives and 
  found some references that this behavior might be solved if 
 I use an 
  explicit component specification (instead of using annotations)
  - so I tried that but it didn't make a difference.
 
  What I think is strange is that it searches a component on Page B 
  which has actually its component id prefixed by the name of Page A
  - this sounds a bit like some variables not getting recalculated 
  correctly when borrowing the component from the pool.
 
  Any ideas or workarounds would be really appreciated.
 
  Thanks
  Daniel
 
 
  No component found in tree for EventListener binding with a 
 matching 
  component id of ValidateEmail/$CPublicBorder.
  $CRegistration.registrationForm.
 
  Stack Trace:
 
  *
  
 org.apache.tapestry.pageload.EventConnectionVisitor.wireElementFormEve
  nts(EventConnectionVisitor.java:114)
  *
  org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent
  (EventConnectionVisitor.java:86)
  * $IComponentVisitor_1144d16ac97.visitComponent
  ($IComponentVisitor_1144d16ac97.java)
  * $IComponentVisitor_1144d16ac98.visitComponent
  ($IComponentVisitor_1144d16ac98.java)
  *
  org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree
  (ComponentTreeWalker.java:45)
  *
  org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree
  (ComponentTreeWalker.java:57)
  *
  org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree
  (ComponentTreeWalker.java:57)
  * org.apache.tapestry.pageload.PageLoader.loadPage
  (PageLoader.java:655)
  * 
 $IPageLoader_1144d16ac85.loadPage($IPageLoader_1144d16ac85.java)
  * 
 $IPageLoader_1144d16ac86.loadPage($IPageLoader_1144d16ac86.java)
  * org.apache.tapestry.pageload.PageSource.makeObject
  (PageSource.java:153)
  *
  org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject
  (GenericKeyedObjectPool.java:797)
  * org.apache.tapestry.pageload.PageSource.getPage
  (PageSource.java:177)
  * 
 $IPageSource_1144d16abe2.getPage($IPageSource_1144d16abe2.java)
  * org.apache.tapestry.engine.RequestCycle.loadPage
  (RequestCycle.java:239)
  * org.apache.tapestry.engine.RequestCycle.getPage
  (RequestCycle.java:226)
  * org.apache.tapestry.engine.RequestCycle.activate
  (RequestCycle.java:559)
  * org.apache.tapestry.engine.PageService.service
  (PageService.java:66)
  * $IEngineService_1144d16ac6c.service
  ($IEngineService_1144d16ac6c.java)
  *
  org.apache.tapestry.services.impl.EngineServiceOuterProxy.service
  (EngineServiceOuterProxy.java:72)
  * org.apache.tapestry.engine.AbstractEngine.service
  (AbstractEngine.java:237)
  *
  org.apache.tapestry.services.impl.InvokeEngineTerminator.service
  (InvokeEngineTerminator.java:54)
  * $WebRequestServicer_1144d16ac48.service
  ($WebRequestServicer_1144d16ac48.java)
  * $WebRequestServicer_1144d16ac44.service
  ($WebRequestServicer_1144d16ac44.java)
  *
  
 org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.ser
  vice(WebRequestServicerPipelineBridge.java:61)
  * $ServletRequestServicer_1144d16ac2a.service
  ($ServletRequestServicer_1144d16ac2a.java)
  * org.apache.tapestry.request.DecodedRequestInjector.service
  (DecodedRequestInjector.java:55)
  * 

Re: T3: How to capture time

2007-08-10 Thread Martino Piccinato
In 4.1.2 there's a nice dojo DropDownTimePicker (even though default
style has got a really small font)

On 8/10/07, Robert Zeigler [EMAIL PROTECTED] wrote:
 The Calendar component on tassel also wraps (a newer version of)
 the same js calendar that DateTimePicker wraps.
 But the component as written in tassel doesn't do the time. Some time
 ago, I took it and revamped it somewhat for my own needs to allow for
 time selection as well as date selection, and also allow for choosing
 which theme to use.  I sent the changes back to the original
 usc_calendar component author (at least, I'm pretty sure I did...
 if he's around and I'm wrong, let me know and I'll send them. This
 was many moons ago. ;) but I don't think they ever got incorporated
 into the version on tassel.
 If you're interested, shoot me an e-mail off list and I'll send you
 what I have.

 Robert

 On Aug 9, 2007, at 8/910:12 PM , Nick Westgate wrote:

  Search the list for old posts (2004) about DateTimePicker.
  The component jar is still here, I believe:
  http://myworkspace.sourceforge.net/component-library.html
 
  Cheers,
  Nick.
 
 
  Nazmul Bhuiyan wrote:
  Hello,
  I'm using DatePicker to capture dates. Is there any component to
  capture
  time?
  Thanks
  naz
 
  -
  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: Create a custom checkbox component

2007-08-10 Thread Martino Piccinato
Yes, there's a value parameter you can bind some page method to so
that you can easily get/set the !Object in the hidden field from the
page (you'll have to cast the object obviously).

I think you'll have all your checkboxes inside a For component so I
guess you'll iterate over a collection and have something like


component id=userList type=For
binding name=source value=nodes/
binding name=value value=currentNode/
/component

component id=nodeCheckBox type=Checkbox
binding name=value value=currentNode.selected/
/component

component id=nodeParent type=Hidden
binding name=value value=currentNode.parent/
/component

component id=nodeChild type=Hidden
binding name=value value=currentNode.child/
/component



Well I think guessed too much but as you haven't provided much information :-)

Depending on your model and on what you have to achieve things could
be even simpler as maybe you already have parent/child informations in
node itself

On 8/10/07, Mateus Lucio dos Santos [EMAIL PROTECTED] wrote:
 I like the idea!!
 But when the browser render this component will I be able to access
 those attributes?

 Martino Piccinato wrote:
  I think you could just make a component using a normal checkbox PLUS
  two Hidden components (
  http://tapestry.apache.org/tapestry4.1/components/form/hidden.html)
  containing the parent/child references.
 
  Just extend BaseComponent and use one Checkbox plus two Hidden in your
  new component.
 
  Adding strange, non standard, attributes to tags your browsers will
  see is never a good idea :-)
 
  On 8/10/07, Mateus Lucio dos Santos [EMAIL PROTECTED] wrote:
 
  Hi!
  I need to display a checkbox in a webpage. This checkbox work as a node
  in a treeview, so i need to save in the checkbox tag which node is his
  parent and which node are his children.
 
  I tried to simply add two attributes to the checkbox tag like this
  input id=test type=checkbox parent=parent children=children /
  it works just fine in I.E but firefox doesn't recognize the parent and
  children attributes, thats why i'm trying to solve this creating a
  component that has those attributes.
 
  I'm a beginner using tapestry so i'm clueless about how to create a
  component that works the this way.
  Can any one send me some material or explain me how to create this
  component?
 
  Thanks in advance
 
 
 
  -
  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: Create a custom checkbox component

2007-08-10 Thread Martino Piccinato
I think you could just make a component using a normal checkbox PLUS
two Hidden components (
http://tapestry.apache.org/tapestry4.1/components/form/hidden.html)
containing the parent/child references.

Just extend BaseComponent and use one Checkbox plus two Hidden in your
new component.

Adding strange, non standard, attributes to tags your browsers will
see is never a good idea :-)

On 8/10/07, Mateus Lucio dos Santos [EMAIL PROTECTED] wrote:
 Hi!
 I need to display a checkbox in a webpage. This checkbox work as a node
 in a treeview, so i need to save in the checkbox tag which node is his
 parent and which node are his children.

 I tried to simply add two attributes to the checkbox tag like this
 input id=test type=checkbox parent=parent children=children /
 it works just fine in I.E but firefox doesn't recognize the parent and
 children attributes, thats why i'm trying to solve this creating a
 component that has those attributes.

 I'm a beginner using tapestry so i'm clueless about how to create a
 component that works the this way.
 Can any one send me some material or explain me how to create this
 component?

 Thanks in advance


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



Re: Rounded Corners Service not working?

2007-08-10 Thread Henry Chen

Nobody ever used this rounded corner service? I downloaded the timetracker
snapshot war file and drop it in my tomcat 5.5. I didn't work and I get the
same error message below. Is it a bug? Can someone help? Thanks!


Henry Chen wrote:
 
 I tried it with the latest 4.1.3 snapshot without success. Please help.
 Thank you.
 
 In tomcat 5.5, the following error was generated when I run the
 timetracker example: 
 (http://localhost:8080/TimeTracker/rounded?c=FF9900bc=whitew=60h=60a=trsw=3o=.5):
 
 SEVERE: Image generated had zero length byte array from parameters of:
 [color:FF9900, bgColor:white, width:60, height:60, angle:tr,
 shadowWidth:3, shadowOpacity:0.5, side:null, wholeShadow: false, arcWidth:
 -1.0, arcHeigh
 t:-1.0
  image: [EMAIL PROTECTED]: type = 1 DirectColorModel: rmask=ff
 gmask=ff00 bmask=ff amask=0 IntegerInterleavedRaster: width = 66 height =
 66 #B
 ands = 3 xOff = -54 yOff = 0 dataOffset[0] 54
 

-- 
View this message in context: 
http://www.nabble.com/Rounded-Corners-Service-not-working--tf4245275.html#a12092163
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



[T5] Struggling with Grid

2007-08-10 Thread Watter

As the message title suggests, I'm really struggling just a bit with the Grid
component.

The Grid component seems fantastic for fairly simple use cases, and I have
no doubt that it works well in situations that are  a little more complex,
but I can't quite figure out the more complex usage situations. I have a
list of courses that I want to display in the Grid. If all I wanted to do
was output a row of textual information associated with each individual
attribute of a course, then Grid is wonderfully simple to use. In my case
however, the information that I want to display for each course not that
straightforward. Among other things, each row will contain a list of the
locations where that course is held as well as thumbnails next to each
location of the building. 

With a Loop component, this is extremely simple. I just pull the items from
the course and display them manually for each iteration of the loop. I
thought Grid would just be an enhancement of Loop with added benefits like
automatic paging and sortable columns, but that doesn't seem to be the case.

Speaking of paging, does anyone have an example of how to implement paging
without pulling back the entire list of objects from the database every time
a users switches pages? If I only pull back the 20 I plan to show on a page,
then I end up with just one page. I need to tell the Grid that there are a
total of xxx items so it generates the correct page links, but I must have
missed the property to do that; or perhaps it's handled in some other way
that I haven't yet figured out.

Thanks in advance for any suggestions you might have.


-- 
View this message in context: 
http://www.nabble.com/-T5--Struggling-with-Grid-tf4250632.html#a12097641
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: Rounded Corners Service not working?

2007-08-10 Thread Jesse Kuhnert
Dunno.   I have it working fine everywhere I use it.

You could try and set -Djava.awt.headless=true .

On 8/10/07, Chris Chiappone [EMAIL PROTECTED] wrote:
 Ya I was unable to get it to work also.  Not that important i guess.

 On 8/10/07, Henry Chen [EMAIL PROTECTED] wrote:
 
  Nobody ever used this rounded corner service? I downloaded the timetracker
  snapshot war file and drop it in my tomcat 5.5. I didn't work and I get the
  same error message below. Is it a bug? Can someone help? Thanks!
 
 
  Henry Chen wrote:
  
   I tried it with the latest 4.1.3 snapshot without success. Please help.
   Thank you.
  
   In tomcat 5.5, the following error was generated when I run the
   timetracker example:
   (http://localhost:8080/TimeTracker/rounded?c=FF9900bc=whitew=60h=60a=trsw=3o=.5):
  
   SEVERE: Image generated had zero length byte array from parameters of:
   [color:FF9900, bgColor:white, width:60, height:60, angle:tr,
   shadowWidth:3, shadowOpacity:0.5, side:null, wholeShadow: false, arcWidth:
   -1.0, arcHeigh
   t:-1.0
image: [EMAIL PROTECTED]: type = 1 DirectColorModel: rmask=ff
   gmask=ff00 bmask=ff amask=0 IntegerInterleavedRaster: width = 66 height =
   66 #B
   ands = 3 xOff = -54 yOff = 0 dataOffset[0] 54
  
 
  --
  View this message in context: 
  http://www.nabble.com/Rounded-Corners-Service-not-working--tf4245275.html#a12092163
  Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 ~chris

 -
 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]



Re: Rounded Corners Service not working?

2007-08-10 Thread Chris Chiappone
Ya I was unable to get it to work also.  Not that important i guess.

On 8/10/07, Henry Chen [EMAIL PROTECTED] wrote:

 Nobody ever used this rounded corner service? I downloaded the timetracker
 snapshot war file and drop it in my tomcat 5.5. I didn't work and I get the
 same error message below. Is it a bug? Can someone help? Thanks!


 Henry Chen wrote:
 
  I tried it with the latest 4.1.3 snapshot without success. Please help.
  Thank you.
 
  In tomcat 5.5, the following error was generated when I run the
  timetracker example:
  (http://localhost:8080/TimeTracker/rounded?c=FF9900bc=whitew=60h=60a=trsw=3o=.5):
 
  SEVERE: Image generated had zero length byte array from parameters of:
  [color:FF9900, bgColor:white, width:60, height:60, angle:tr,
  shadowWidth:3, shadowOpacity:0.5, side:null, wholeShadow: false, arcWidth:
  -1.0, arcHeigh
  t:-1.0
   image: [EMAIL PROTECTED]: type = 1 DirectColorModel: rmask=ff
  gmask=ff00 bmask=ff amask=0 IntegerInterleavedRaster: width = 66 height =
  66 #B
  ands = 3 xOff = -54 yOff = 0 dataOffset[0] 54
 

 --
 View this message in context: 
 http://www.nabble.com/Rounded-Corners-Service-not-working--tf4245275.html#a12092163
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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




-- 
~chris

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



Re: Memory leaks in Tapestry 4.1

2007-08-10 Thread Chris Chiappone
I think one of the recommendations would be to upgrade your tapestry.

Tapestry 4.1.2
Ognl 2.7

~chris

On 8/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Has anyone got a list of recommended non-leaking third party frameworks ?

 We are using:

 - Tapestry 4.1
 - Cayenne 1.2.1
 - Postgres Driver 8.2.5.0.4
 - JDBC3 8.2-504
 - JDBC API 2.0
 - OGNL 2.6.7
 - Log4j 1.2.13
 - Hivemind DWR 1.1.beta3
 - Commons Loggings 1.0.3



  Original-Nachricht 
 Datum: Fri, 10 Aug 2007 04:58:18 +0200
 Von: Hans Jörg Hessmann [EMAIL PROTECTED]
 An: Tapestry users users@tapestry.apache.org
 Betreff: Re: Memory leaks in Tapestry 4.1

  There is an excellent tool for post-mortem memory analyzation:
  https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0eaafd5-6ffd-2910-019c-9007a92b392f.
  Just add -XX:+HeapDumpOnOutOfMemoryError to the startup parameters of
  your JVM. This will produce a memory dump when your JVM dies because of
  an OutOfMemoryError. With the memory analyzer you can see which objects
  consumed all the memory and find out the cause for the the garbage
  collector not collecting them. (See the corresponding documentation and
  the wiki to find out how to do this.)
 
  Todd Orr wrote:
   True enough. I'll get more details from our side. I was merely
   pointing in that direction based on experience.
  
   On 8/9/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:
  
   Whatever this mysterious issue is that you seem to think exists it'd
   be impossible to fix whatever memory leaks you think you have found
   without knowing about them.
  
   There is a map that grows as large as the system using it internally
   to javassist of various cached reflection info - but it doesn't leak
   in any way.
  
   Anyways,  vague comments with no specific versions or specific issues
   that you have faced don't really help anyone.
  
   On 8/9/07, Todd Orr [EMAIL PROTECTED] wrote:
  
   We've run into this problem on a production system. It was a not a
   good situation. One of our developers narrowed down the issue to
   Hivemind. There is some Map that continually grows and grows (I can
   speak to our dev to get more detail). After some research into similar
   posts it became evident that this issue was brought up to HLS, but the
   bug's existence was denied. We've since dropped Tapestry for mission
   critical apps. I'm hoping this is no longer an issue in future
   versions of Tapestry, but time will tell.
  
   On 8/9/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:
  
   Tapestry 4.1.2 has no memory leaks.  Each and every object created /
   managed is accounted for and known.   I've done a lot of analysis in
   this area lately which is why I'm so sure.
  
   On 8/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  
   Within one day it rises slowly from 100 MByte to about 1 Gigabyte at
  night when it crashes due to the limt that was set to the virtual machine.
  It could be increased - but only with the effect of having an additional
  day or so before it crashes again.restarting Tomcat is also not a viable
  solution.
  
    Original-Nachricht 
   Datum: Thu, 09 Aug 2007 17:01:19 +0200
   Von: [EMAIL PROTECTED]
   An: Tapestry users users@tapestry.apache.org
   Betreff: Re: Memory leaks in Tapestry 4.1
  
  
   We have tried both enabling and disabling the cache. The same
  effect...
   it is only leaking a little bit slower in the other case.
  
    Original-Nachricht 
   Datum: Thu, 9 Aug 2007 15:33:43 +0200
   Von: Kristian Marinkovic [EMAIL PROTECTED]
   An: Tapestry users users@tapestry.apache.org
   Betreff: Re: Memory leaks in Tapestry 4.1
  
  
   do you have Tapestry caching deactivated?
  
  
  
  
   andyhot [EMAIL PROTECTED]
   Gesendet von: Andreas Andreou [EMAIL PROTECTED]
   09.08.2007 15:28
   Bitte antworten an
   Tapestry users users@tapestry.apache.org
  
  
   An
   Tapestry users users@tapestry.apache.org
   Kopie
  
   Thema
   Re: Memory leaks in Tapestry 4.1
  
  
  
  
  
  
   Well, we did lots of tests with 4.1.2 and
   have yet to observe such memory leaks.
  
   [EMAIL PROTECTED] wrote:
  
   Have you ever observed the memory usage for your Tapestry
  application?
  
   For example, make a simple HelloWorld Application and load the
  page
  
   regularly using HTTP_LOAD. Then watch how the memory consumption
  grows
  
   and
  
   grows  especially after an hour.
  
   Has anyone got a solution how avoid this leakage?
  
  
  
  -
   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 

Re: Memory leaks in Tapestry 4.1

2007-08-10 Thread munich
Has anyone got a list of recommended non-leaking third party frameworks ?

We are using:

- Tapestry 4.1
- Cayenne 1.2.1
- Postgres Driver 8.2.5.0.4
- JDBC3 8.2-504
- JDBC API 2.0
- OGNL 2.6.7
- Log4j 1.2.13
- Hivemind DWR 1.1.beta3
- Commons Loggings 1.0.3



 Original-Nachricht 
Datum: Fri, 10 Aug 2007 04:58:18 +0200
Von: Hans Jörg Hessmann [EMAIL PROTECTED]
An: Tapestry users users@tapestry.apache.org
Betreff: Re: Memory leaks in Tapestry 4.1

 There is an excellent tool for post-mortem memory analyzation:
 https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0eaafd5-6ffd-2910-019c-9007a92b392f.
 Just add -XX:+HeapDumpOnOutOfMemoryError to the startup parameters of
 your JVM. This will produce a memory dump when your JVM dies because of
 an OutOfMemoryError. With the memory analyzer you can see which objects
 consumed all the memory and find out the cause for the the garbage
 collector not collecting them. (See the corresponding documentation and
 the wiki to find out how to do this.)
 
 Todd Orr wrote:
  True enough. I'll get more details from our side. I was merely
  pointing in that direction based on experience.
 
  On 8/9/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:

  Whatever this mysterious issue is that you seem to think exists it'd
  be impossible to fix whatever memory leaks you think you have found
  without knowing about them.
 
  There is a map that grows as large as the system using it internally
  to javassist of various cached reflection info - but it doesn't leak
  in any way.
 
  Anyways,  vague comments with no specific versions or specific issues
  that you have faced don't really help anyone.
 
  On 8/9/07, Todd Orr [EMAIL PROTECTED] wrote:
  
  We've run into this problem on a production system. It was a not a
  good situation. One of our developers narrowed down the issue to
  Hivemind. There is some Map that continually grows and grows (I can
  speak to our dev to get more detail). After some research into similar
  posts it became evident that this issue was brought up to HLS, but the
  bug's existence was denied. We've since dropped Tapestry for mission
  critical apps. I'm hoping this is no longer an issue in future
  versions of Tapestry, but time will tell.
 
  On 8/9/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:

  Tapestry 4.1.2 has no memory leaks.  Each and every object created /
  managed is accounted for and known.   I've done a lot of analysis in
  this area lately which is why I'm so sure.
 
  On 8/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  
  Within one day it rises slowly from 100 MByte to about 1 Gigabyte at
 night when it crashes due to the limt that was set to the virtual machine.
 It could be increased - but only with the effect of having an additional
 day or so before it crashes again.restarting Tomcat is also not a viable
 solution.
 
   Original-Nachricht 
  Datum: Thu, 09 Aug 2007 17:01:19 +0200
  Von: [EMAIL PROTECTED]
  An: Tapestry users users@tapestry.apache.org
  Betreff: Re: Memory leaks in Tapestry 4.1
 

  We have tried both enabling and disabling the cache. The same
 effect...
  it is only leaking a little bit slower in the other case.
 
   Original-Nachricht 
  Datum: Thu, 9 Aug 2007 15:33:43 +0200
  Von: Kristian Marinkovic [EMAIL PROTECTED]
  An: Tapestry users users@tapestry.apache.org
  Betreff: Re: Memory leaks in Tapestry 4.1
 
  
  do you have Tapestry caching deactivated?
 
 
 
 
  andyhot [EMAIL PROTECTED]
  Gesendet von: Andreas Andreou [EMAIL PROTECTED]
  09.08.2007 15:28
  Bitte antworten an
  Tapestry users users@tapestry.apache.org
 
 
  An
  Tapestry users users@tapestry.apache.org
  Kopie
 
  Thema
  Re: Memory leaks in Tapestry 4.1
 
 
 
 
 
 
  Well, we did lots of tests with 4.1.2 and
  have yet to observe such memory leaks.
 
  [EMAIL PROTECTED] wrote:

  Have you ever observed the memory usage for your Tapestry
 application?
 
  For example, make a simple HelloWorld Application and load the
 page
  
  regularly using HTTP_LOAD. Then watch how the memory consumption
 grows

  and
  
  grows  especially after an hour.

  Has anyone got a solution how avoid this leakage?
 
 
 
 -
  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]
  
 
 -
  To unsubscribe, e-mail: 

Re: Rounded Corners Service not working?

2007-08-10 Thread Henry Chen

Just tried. Not work either. Same error in Tomcat.

SEVERE: Image generated had zero length byte array from parameters of:
[color:FF9900, bgColor:white, width:60, height:60, angle:tr, shadowWidth:3,
shadowOpacity:-1.0, side:null, wholeShadow: false, arcWidth: -1.0,
arcHeight:-1.0
 image: [EMAIL PROTECTED]: type = 1 DirectColorModel: rmask=ff
gmask=ff00 bmask=ff amask=0 IntegerInterleavedRaster: width = 66 height = 66
#Bands = 3 xOff = -54 yOff = 0 dataOffset[0] 54


Jessek wrote:
 
 Dunno.   I have it working fine everywhere I use it.
 
 You could try and set -Djava.awt.headless=true .
 
 On 8/10/07, Chris Chiappone [EMAIL PROTECTED] wrote:
 Ya I was unable to get it to work also.  Not that important i guess.

 On 8/10/07, Henry Chen [EMAIL PROTECTED] wrote:
 
  Nobody ever used this rounded corner service? I downloaded the
 timetracker
  snapshot war file and drop it in my tomcat 5.5. I didn't work and I get
 the
  same error message below. Is it a bug? Can someone help? Thanks!
 
 
  Henry Chen wrote:
  
   I tried it with the latest 4.1.3 snapshot without success. Please
 help.
   Thank you.
  
   In tomcat 5.5, the following error was generated when I run the
   timetracker example:
  
 (http://localhost:8080/TimeTracker/rounded?c=FF9900bc=whitew=60h=60a=trsw=3o=.5):
  
   SEVERE: Image generated had zero length byte array from parameters
 of:
   [color:FF9900, bgColor:white, width:60, height:60, angle:tr,
   shadowWidth:3, shadowOpacity:0.5, side:null, wholeShadow: false,
 arcWidth:
   -1.0, arcHeigh
   t:-1.0
image: [EMAIL PROTECTED]: type = 1 DirectColorModel:
 rmask=ff
   gmask=ff00 bmask=ff amask=0 IntegerInterleavedRaster: width = 66
 height =
   66 #B
   ands = 3 xOff = -54 yOff = 0 dataOffset[0] 54
  
 
  --
  View this message in context:
 http://www.nabble.com/Rounded-Corners-Service-not-working--tf4245275.html#a12092163
  Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 ~chris

 -
 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/Rounded-Corners-Service-not-working--tf4245275.html#a12098590
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Create a custom checkbox component

2007-08-10 Thread Mateus Lucio dos Santos

Hi!
I need to display a checkbox in a webpage. This checkbox work as a node 
in a treeview, so i need to save in the checkbox tag which node is his 
parent and which node are his children.


I tried to simply add two attributes to the checkbox tag like this 
input id=test type=checkbox parent=parent children=children / 
it works just fine in I.E but firefox doesn't recognize the parent and 
children attributes, thats why i'm trying to solve this creating a 
component that has those attributes.


I'm a beginner using tapestry so i'm clueless about how to create a 
component that works the this way.
Can any one send me some material or explain me how to create this 
component?


Thanks in advance


T5: asset: prefix

2007-08-10 Thread Chris Lewis

Hello,

I was looking at the Palette source and saw the following param 
annotation for the _source property:


@Parameter(value = *asset:select.png*)

The only thing I've been able to find about the asset: prefix is on the 
T5 start page, where it mentions that this prefix allows asset files to 
be bound to parameters. Could someone explain this and how it's useful? 
Aside from seeking a better understanding, I'm curious how tapestry 
actually resolves the path to the file, select.png. It would seem that 
this prefix allows one to easily swap in a different image file (for 
theming purposes, etc), but don't understand how it is resolved. Any 
insight is appreciated.


Tapestry5.0.5 Chinese Firefox can show normal, and in IE6 or not.

2007-08-10 Thread sun58224
Tapestry5.0.5 Chinese Firefox can show normal, and in IE6 or not.


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



Re: Tapestry5.0.5 Chinese Firefox can show normal, and in IE6 or not.

2007-08-10 Thread sun58224
sun58224 sun58224 at sina.com writes:

 
 Tapestry5.0.5 Chinese Firefox can show normal, and in IE6 or not.
 
 -
 To unsubscribe, e-mail: users-unsubscribe at tapestry.apache.org
 For additional commands, e-mail: users-help at tapestry.apache.org
 
 
RequestGlobals.getHTTPServletRequest (). SetCharacterEncoding ( UTF-8) into
which packets?




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



Re: Tapestry5.0.5 Chinese Firefox can show normal, and in IE6 or not.

2007-08-10 Thread Donyee
Looks here!
http://groups.google.com/group/t5hrm/web/tapestry-5?hl=zh-CN


2007/8/11, sun58224 [EMAIL PROTECTED]:
 sun58224 sun58224 at sina.com writes:

 
  Tapestry5.0.5 Chinese Firefox can show normal, and in IE6 or not.
 
  -
  To unsubscribe, e-mail: users-unsubscribe at tapestry.apache.org
  For additional commands, e-mail: users-help at tapestry.apache.org
 
 
 RequestGlobals.getHTTPServletRequest (). SetCharacterEncoding ( UTF-8) into
 which packets?




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




-- 
徐 依伟


Re: Tapestry5.0.5 Chinese Firefox can show normal, and in IE6 or not.

2007-08-10 Thread Nick Westgate (Work)

I don't think that's the problem as T5.0.5 defaults to UTF-8 encoding.

That is, the decoratePageResponseRenderer() is NOT needed any more, but the
contributeRequestHandler() with Utf8Filter IS needed for UTF-8 form submits.

Cheers,
Nick.



Donyee wrote:
 
 Looks here!
 http://groups.google.com/group/t5hrm/web/tapestry-5?hl=zh-CN
 
 
 2007/8/11, sun58224 [EMAIL PROTECTED]:
 sun58224 sun58224 at sina.com writes:

 
  Tapestry5.0.5 Chinese Firefox can show normal, and in IE6 or not.
 
  -
  To unsubscribe, e-mail: users-unsubscribe at tapestry.apache.org
  For additional commands, e-mail: users-help at tapestry.apache.org
 
 
 RequestGlobals.getHTTPServletRequest (). SetCharacterEncoding ( UTF-8)
 into
 which packets?




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


 
 
 -- 
 徐 依伟
 
 

-- 
View this message in context: 
http://www.nabble.com/Tapestry5.0.5-Chinese-Firefox-can-show-normal%2C-and-in-IE6-or-not.-tf4252347.html#a12102447
Sent from the Tapestry - User mailing list archive at Nabble.com.


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