Re: Tapestry5SelectObject problem with Tomcat - selection is not persisted

2009-09-14 Thread Vangel V. Ajanovski

On 15.09.2009 03:35, Vangel V. Ajanovski wrote:
In fact after lot's of debugging it turned out that the problem is 
again the same as in my other post - bad UTF received from browser 
after selecting an option.
The selection boxes were in fact coded with cyrillic character codes 
which were received incorrectly from the browser.


So once again I had the same problem, although Tapestry is supposed to 
work entirely in UTF-8, it does not, and depending on server it 
receives broken input.


I tried setting JAVA_OPTS="-Djavax.servlet.request.encoding=UTF-8" but 
it doesn't help.
Did I mention I was using Spring and Spring Security? There filters were 
possible messing with UTF-8 requests from browser and I found the 
following solution on several Spring forums, so I mention it also here 
just for reference.



encodingFilter

org.springframework.web.filter.CharacterEncodingFilter


encoding
UTF-8


forceEncoding
true




encodingFilter
/*






smime.p7s
Description: S/MIME Cryptographic Signature


Re: How to create analog of Spring FactoryBean?

2009-09-14 Thread Peter Niederwieser

I'd be interested to see a ServiceLifecycle implementation for prototype
scope. I recently tried to come up with one, but it didn't seem to be
doable.

Cheers,
Peter


Thiago H. de Paula Figueiredo wrote:
> 
> Then you can create a new Tapestry-IoC scope (ServiceLifecycle  
> implementation) that creates a new object everytime an injection is made.
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-create-analog-of-Spring-FactoryBean--tp25346888p25447319.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: How to .tml template access a class's static variable

2009-09-14 Thread Xuan Tran Le
Your StaticWrapper is very helpfull. Thank you.

On Sun, Sep 13, 2009 at 5:16 AM, Howard Lewis Ship  wrote:

> public class StaticWrapper{
>  public String getConstantA() return { StaticClass.A; }
>
>  public int getConstantB() return { OtherClass.B; }
>
>  ... etc.
> }
>
> public class MyPage
> {
>  private static final StaticWrapper wrapper = new StaticWrapper();
>
>  public StaticWrapper getWrapper() { return wrapper; }
> }
>
> 
>
>   ...
>
>
>
> On Thu, Sep 10, 2009 at 10:40 PM, DH  wrote:
>
> > One question is how you expect to access the variable/method in the
> > template and why you prefer to show/access so many static variable in the
> > template?
> >
> > DH
> > http://www.gaonline.com.cn
> >
> > - Original Message -
> > From: "Xuan Tran Le"
> > To: "Tapestry users" 
> > Sent: Friday, September 11, 2009 1:27 PM
> > Subject: Re: How to .tml template access a class's static variable
> >
> >
> > > Because I have so many methods
> > >
> > > On Fri, Sep 11, 2009 at 9:27 AM, Thiago H. de Paula Figueiredo <
> > > thiag...@gmail.com> wrote:
> > >
> > >> Em Thu, 10 Sep 2009 23:19:57 -0300, Xuan Tran Le <
> > lexuanttk...@gmail.com>
> > >> escreveu:
> > >>
> > >>  Thank you. But A have so many method, so I can't do that.
> > >>>
> > >>
> > >> Why not?
> > >>
> > >>
> > >> --
> > >> Thiago H. de Paula Figueiredo
> > >> Independent Java consultant, developer, and instructor
> > >> http://www.arsmachina.com.br/thiago
> > >>
> > >> -
> > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > >> For additional commands, e-mail: users-h...@tapestry.apache.org
> > >>
> > >>
> > >
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn
> how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>



-- 
Xuan Tran Le
Developer

Huu Ngoc JSC.("MVN")
460 Nguyen Kiem street, Phu Nhuan district - Ho Chi Minh City - Vietnam
Tel : (84-83) 9955331
Fax : (84-83) 8462596
Mobile: 093-3113122
Email: xua...@myvietnam.net
Web: www.myvietnam.net

IMPORTANT NOTICE:

The information in this email (and any attachments) is confidential. If you
are not the intended recipient, you must not use or disseminate the
information.If you have received this email in error, please immediately
notify me by "Reply" command and permanently delete the original and any
copies or printouts thereof.Although this email and any attachments are
believed to be free of any virus or other defect that might affect any
computer system into which it is received and opened,it is the
responsibility of the recipient to ensure that it is virus free and no
responsibility is accepted by Huu Ngoc JSC. ("MVN") or its subsidiaries or
affiliates either jointly or severally, for any loss or damage arising in
any way from its use.


Re: Tapestry5SelectObject problem with Tomcat - selection is not persisted

2009-09-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Sep 2009 22:35:32 -0300, Vangel V. Ajanovski   
escreveu:



Never initialize a Tapestry page field. Use some event handler method
to do that.

This was not the problem because I had several different cases.


It could not be the cause of your specific problem now, but initializing  
fields in their declaration causes one user to see information from other.  
Never do that.


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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



Re: Tapestry5SelectObject problem with Tomcat - selection is not persisted

2009-09-14 Thread Vangel V. Ajanovski

On 14.09.2009 22:13, Thiago H. de Paula Figueiredo wrote:
Em Mon, 14 Sep 2009 17:11:31 -0300, Vangel V. Ajanovski 
 escreveu:

 private List planList = new ArrayList();
Never initialize a Tapestry page field. Use some event handler method 
to do that.

This was not the problem because I had several different cases.

In fact after lot's of debugging it turned out that the problem is again 
the same as in my other post - bad UTF received from browser after 
selecting an option.
The selection boxes were in fact coded with cyrillic character codes 
which were received incorrectly from the browser.


So once again I had the same problem, although Tapestry is supposed to 
work entirely in UTF-8, it does not, and depending on server it receives 
broken input.


I tried setting JAVA_OPTS="-Djavax.servlet.request.encoding=UTF-8" but 
it doesn't help.




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Problem with ZoneUpdater in a component

2009-09-14 Thread Josh Canfield
I took a quick look at the page and it looked like it was getting
trimmed. Entering "something" would result in
"something"

I checked firebug and the response is:
{"content":"something"}

So I poked around a bit then just did a wide search for String.trim
usage. I found what looks like the culprit here in
PageRenderQueueImple.java at line 163:

String content = root.getChildMarkup().trim();

In the case of the full page usage, you always have something else
included in the result so the response is:

{"content":"Welcome   Dumpty."}

Josh

On Fri, Sep 11, 2009 at 3:41 PM, Geoff Callender
 wrote:
> That's right. ZoneUpdater works fine in a page, but not in a component.
>
> Here is ZoneUpdater in a page, working fine even when the field becomes
> empty or spaces::
>
>
>  http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/javascript/ajaxonevent
>
> Here is ZoneUpdater in a component, not working when the field becomes empty
> or spaces:
>
>
>  http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/javascript/ajaxcomponents1
>
> Does anyone know why?
>
> Geoff
>
>
> On 11/09/2009, at 1:02 PM, Kalle Korhonen wrote:
>
>> Yes, but I guess Geoff was asking why the same keyup event works fine
>> on the page, including non-printing chars.
>>
>> Kalle
>>
>>
>> On Thu, Sep 10, 2009 at 6:17 PM, Thiago H. de Paula Figueiredo
>>  wrote:
>>>
>>> Playing with them a little, it seems to me that the keyup event ignores
>>> non-printing chars. Try typing some spaces: nothing happens. Then type
>>> any
>>> letter: the AJAX update is triggered. Have you tried the change event?
>>>
>>> --
>>> Thiago H. de Paula Figueiredo
>>> Consultor, desenvolvedor e instrutor em Java
>>> http://www.arsmachina.com.br/thiago
>>>
>>> -
>>> 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
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

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



Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Dave Greggory
I created a ComponentLoader component (below) based off of PropertyEditor 
component and I got it working for the top most of layer of my 
ubercomponent-stack. It uses PropertyEditBlock page and the existing 
BeanBlockSource to provide the right Block containing my layouts / components. 
Does it look right to you?

Also, if I understand this correctly, the page that uses this ComponentLoader 
will not load all the other components mentioned in the PropertyEditBlocks 
page, just the ones refered to using the calling page, right?

public class ComponentLoader
{
  @Parameter(required = true)
  private String componentType;

  @Inject
  private BeanBlockSource beanBlockSource;

  @BeginRender
  Block selectComponent()
  {
return beanBlockSource.getEditBlock(componentType);
  }

  @BeforeRenderBody
  boolean noBodyForComponentLoader()
  {
return false;
  }
}


  


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



Re: Tapestry5SelectObject problem with Tomcat - selection is not persisted

2009-09-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Sep 2009 17:11:31 -0300, Vangel V. Ajanovski   
escreveu:



 private List planList = new ArrayList();


Never initialize a Tapestry page field. Use some event handler method to  
do that.


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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



Re: Tapestry5SelectObject problem with Tomcat - selection is not persisted

2009-09-14 Thread Vangel V. Ajanovski

On 14.09.2009 14:33, Thiago H. de Paula Figueiredo wrote:
Em Mon, 14 Sep 2009 00:02:44 -0300, Vangel V. Ajanovski 
 escreveu:

Then it might be related to how the filter works. The object
selectedPlan stays to null after selection and refresh.
Anyone any ideas?
This kind of error is typically cause by lack of proper equals() and 
hashcode() methods in the class that is put in a colletion.

Tried this and this does not help.
The selectobject component is backed by this:
@Property
private List planList = new ArrayList();

And Plan is an @Entity backed by Hibernate with equals and hashCode 
implemented based on the primary key.




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Website preview - update

2009-09-14 Thread Sergey Didenko
Documentation menu has a scrollbar. I think it's better to get rid of it.

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



Re: New Tapestry tutorial -> documentation structure

2009-09-14 Thread Sergey Didenko
I think it's important to show reusability of a custom component in
this tutorial.

It's better to be something practical. For example "ShortUserInfo" - a
component that shows a user avatar, his name and date of registration.
It can be used in the end of every forum post and every user article.

> We have to keep in mind that the tutorial doesn't have to show all features.
> It should satisfy the user in a way that he has finished a common use case
> (list, create, update, delete), he should learn the general concept of
> Tapestry and he should get a first impression that he can write large
> enterprise application very efficiently with a minimum of duplicated. The
> latter target is why I would like show component writing.
>

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



Re: Website preview - update

2009-09-14 Thread Sergey Didenko
Sebastian, first of all thanks for your efforts!

Grouping links into categories (menus) is a very good thing.

I have a few suggestions:

1. "http://tapestry.laliluna.de/"; :

1.1 "Apache Tapestry is an open-source framework"

- add "component-oriented" . As for me it's a very important feature
to be mentioned as soon as possible.

1.2 "Tapestry divides a web application into a set of pages, each
constructed from components. This provides a consistent structure"

- add something like this after the first sentence:

 "This allows to drastically encapsulate functionality and layout of a
logical page part (component), which increases its maintainability and
reusability"


2. The current menu item sometimes changes when a user selects submenu
item. I think it's very confusing and better be avoided. Here are the
details:

2.1 There is a strange "ghost" menu item "official tutorial" that is
shown when you press "Getting started" menu item. Pressing its submenu
items leads to confusing menu movements.

2.2 "Documentation" -> "User guide" actually switches to the top level
"User guide".

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



Re: Accessing page context from a component

2009-09-14 Thread Howard Lewis Ship
Otho is exactly right here.  Each piece of Tapestry has its purpose, and
pages act as a bridge between the client and the components within the page.

On Mon, Sep 14, 2009 at 4:13 AM, Otho  wrote:

> I wouldn't couple a component so tightly to a specific page. If you need to
> pass certain bits of information you can also use component parameters from
> within the page.
>
> 2009/9/14 chakra 
>
> >
> > thanks for the responses.
> > Is there any plan in future releases of tapestry, to add support for
> > onActivate method in components also,to get the page context?
> >
> > That will make life much easier.
> >
> > Chakra
> > --
> > View this message in context:
> >
> http://www.nabble.com/Accessing-page-context-from-a-component-tp25422102p25433429.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to learn
how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com


Re: First try with chenilleKit.

2009-09-14 Thread jose luis sanchez

There's a lib dependency problem between chenillekit and tapestry.
You should add and exclussion in the chenillekit tapestry dependency.
Add this to your pom.xml file

  
org.chenillekit
chenillekit-tapestry
1.1.0
   * 

javassist
jboss

*
   

I have mended the issue and it works! I made a change in the Eclipse
build path and added the jar file.

About the WEB-INF/lib it seems empty. I don't have much experience
with webapps, as it's obvious. But I'm running it with Maven and it
must be locating the libs in another place. I don't understand very
well why changing the Eclipse config did arrange it, but it's welcome.


Thanks for the hint, Sven. :-D

2009/9/14 Sven Homburg :
  

Are you sure, that the chenillekit libs are resists in you WEB-INF/lib ?

with regards
Sven Homburg
Founder of the Chenille Kit Project
http://www.chenillekit.org




2009/9/14 Madtyn 



I tried for the first time to use a chenilleKit component, so I was
reading about, and I only included a DateTimeField component.


1.- I added the repository and the dependencies to the pom xml of the
parent multiproject.
2.- I added the next code on the Java class:

  import org.chenillekit.tapestry.core.components.DateTimeField;

  /* some code */

  private Date date=null;

  @Component(parameters = {"value=date1", "datePattern=dd/MM/" })
  private DateTimeField _dateTimeField1;

3.- Then, I wrote this in the .tml:

  


mvn compile appears to work. It downloads many things from the
repository. But when I entered the page, I got his error:

# java.lang.RuntimeException
java.lang.ClassNotFoundException: caught an exception while obtaining
a class file for es.udc.madtyn.gimnasio.web.pages.find.FindIncidencias
# java.lang.ClassNotFoundException
caught an exception while obtaining a class file for
es.udc.madtyn.gimnasio.web.pages.find.FindIncidencias

exception
   org.apache.tapestry5.internal.services.TransformationException:
javassist.NotFoundException: DateTimeField

# org.apache.tapestry5.internal.services.TransformationException
javassist.NotFoundException: DateTimeField


   What I'm doing wrong? The only thing I didn't find on the inet was
the import, but I think it's all right.

Thank you very much.

-
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


  
  


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



Re: First try with chenilleKit.

2009-09-14 Thread Madtyn
I have mended the issue and it works! I made a change in the Eclipse
build path and added the jar file.

About the WEB-INF/lib it seems empty. I don't have much experience
with webapps, as it's obvious. But I'm running it with Maven and it
must be locating the libs in another place. I don't understand very
well why changing the Eclipse config did arrange it, but it's welcome.


Thanks for the hint, Sven. :-D

2009/9/14 Sven Homburg :
> Are you sure, that the chenillekit libs are resists in you WEB-INF/lib ?
>
> with regards
> Sven Homburg
> Founder of the Chenille Kit Project
> http://www.chenillekit.org
>
>
>
>
> 2009/9/14 Madtyn 
>
>> I tried for the first time to use a chenilleKit component, so I was
>> reading about, and I only included a DateTimeField component.
>>
>>
>> 1.- I added the repository and the dependencies to the pom xml of the
>> parent multiproject.
>> 2.- I added the next code on the Java class:
>>
>>   import org.chenillekit.tapestry.core.components.DateTimeField;
>>
>>   /* some code */
>>
>>   private Date date=null;
>>
>>   @Component(parameters = {"value=date1", "datePattern=dd/MM/" })
>>       private DateTimeField _dateTimeField1;
>>
>> 3.- Then, I wrote this in the .tml:
>>
>>   
>>
>>
>> mvn compile appears to work. It downloads many things from the
>> repository. But when I entered the page, I got his error:
>>
>> # java.lang.RuntimeException
>> java.lang.ClassNotFoundException: caught an exception while obtaining
>> a class file for es.udc.madtyn.gimnasio.web.pages.find.FindIncidencias
>> # java.lang.ClassNotFoundException
>> caught an exception while obtaining a class file for
>> es.udc.madtyn.gimnasio.web.pages.find.FindIncidencias
>>
>> exception
>>    org.apache.tapestry5.internal.services.TransformationException:
>> javassist.NotFoundException: DateTimeField
>>
>> # org.apache.tapestry5.internal.services.TransformationException
>> javassist.NotFoundException: DateTimeField
>>
>>
>>    What I'm doing wrong? The only thing I didn't find on the inet was
>> the import, but I think it's all right.
>>
>> Thank you very much.
>>
>> -
>> 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: First try with chenilleKit.

2009-09-14 Thread Sven Homburg
Are you sure, that the chenillekit libs are resists in you WEB-INF/lib ?

with regards
Sven Homburg
Founder of the Chenille Kit Project
http://www.chenillekit.org




2009/9/14 Madtyn 

> I tried for the first time to use a chenilleKit component, so I was
> reading about, and I only included a DateTimeField component.
>
>
> 1.- I added the repository and the dependencies to the pom xml of the
> parent multiproject.
> 2.- I added the next code on the Java class:
>
>   import org.chenillekit.tapestry.core.components.DateTimeField;
>
>   /* some code */
>
>   private Date date=null;
>
>   @Component(parameters = {"value=date1", "datePattern=dd/MM/" })
>   private DateTimeField _dateTimeField1;
>
> 3.- Then, I wrote this in the .tml:
>
>   
>
>
> mvn compile appears to work. It downloads many things from the
> repository. But when I entered the page, I got his error:
>
> # java.lang.RuntimeException
> java.lang.ClassNotFoundException: caught an exception while obtaining
> a class file for es.udc.madtyn.gimnasio.web.pages.find.FindIncidencias
> # java.lang.ClassNotFoundException
> caught an exception while obtaining a class file for
> es.udc.madtyn.gimnasio.web.pages.find.FindIncidencias
>
> exception
>org.apache.tapestry5.internal.services.TransformationException:
> javassist.NotFoundException: DateTimeField
>
> # org.apache.tapestry5.internal.services.TransformationException
> javassist.NotFoundException: DateTimeField
>
>
>What I'm doing wrong? The only thing I didn't find on the inet was
> the import, but I think it's all right.
>
> Thank you very much.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


First try with chenilleKit.

2009-09-14 Thread Madtyn
I tried for the first time to use a chenilleKit component, so I was
reading about, and I only included a DateTimeField component.


1.- I added the repository and the dependencies to the pom xml of the
parent multiproject.
2.- I added the next code on the Java class:

   import org.chenillekit.tapestry.core.components.DateTimeField;

   /* some code */

   private Date date=null;

   @Component(parameters = {"value=date1", "datePattern=dd/MM/" })
   private DateTimeField _dateTimeField1;

3.- Then, I wrote this in the .tml:

   


mvn compile appears to work. It downloads many things from the
repository. But when I entered the page, I got his error:

# java.lang.RuntimeException
java.lang.ClassNotFoundException: caught an exception while obtaining
a class file for es.udc.madtyn.gimnasio.web.pages.find.FindIncidencias
# java.lang.ClassNotFoundException
caught an exception while obtaining a class file for
es.udc.madtyn.gimnasio.web.pages.find.FindIncidencias

exception
org.apache.tapestry5.internal.services.TransformationException:
javassist.NotFoundException: DateTimeField

# org.apache.tapestry5.internal.services.TransformationException
javassist.NotFoundException: DateTimeField


What I'm doing wrong? The only thing I didn't find on the inet was
the import, but I think it's all right.

Thank you very much.

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



Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Thiago H. de Paula Figueiredo

Em Mon, 14 Sep 2009 10:49:15 -0300, Stefan  escreveu:


I think the best, or most common and stable solution would be to extend
the always existing infrastructure to be able to register own
datatypes and their view/edit components.
But is that possible? And how?


Yes. Take a look at DataTypeAnalyzer and  
http://tapestry.apache.org/tapestry5.1/guide/beaneditform.html, section  
Adding New Property Editors.



All involved sources (PropertyEditor, BeanBlockSource etc) are internal


They aren't internal.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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



Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Stefan

I'm working on the same problem. (as i mentioned in some posts before)

I think the best, or most common and stable solution would be to extend
the always existing infrastructure to be able to register own  
datatypes and their view/edit components.
But is that possible? And how? All involved sources (PropertyEditor,  
BeanBlockSource etc) are internal

and i don't know where to "hook" in.





Am 14.09.2009 um 14:25 schrieb Jack Nuzbit:

I mean too much component nesting like what's been described in this  
thread.



On Mon, Sep 14, 2009 at 12:56 PM, Ivano Luberti  
wrote:



Jack, what "Uber component pattern" stands for ?

Jack Nuzbit ha scritto:

I'm concerned I may be falling foul of the Uber-component pattern as

well.

I'm regularly building container components that dynamically render
different sub-components.
Is there any chance somebody could document the recommended approach

here.


Many thanks,

Jack


On Fri, Sep 11, 2009 at 8:23 PM, Dave Greggory 
NYC.



- Original Message 
From: Howard Lewis Ship 
To: Tapestry users 
Sent: Friday, September 11, 2009 3:11:57 PM
Subject: Re: [T5.0.18] Out of Memory Error / Potential Leak  
(doesn't

reduce

after forced GC)

Although upgrading is a good idea for many reasons, I don't think  
it

will
solve your problem. You need a little re-architecting of your  
approach

to

get the component instance count back under control. Where are you

located?

On Fri, Sep 11, 2009 at 12:03 PM, Dave Greggory 
wrote:





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








--
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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






smime.p7s
Description: S/MIME cryptographic signature


Re: Tapestry5SelectObject problem with Tomcat - selection is not persisted

2009-09-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Sep 2009 00:02:44 -0300, Vangel V. Ajanovski   
escreveu:



Then it might be related to how the filter works. The object
selectedPlan stays to null after selection and refresh.
Anyone any ideas?


This kind of error is typically cause by lack of proper equals() and  
hashcode() methods in the class that is put in a colletion.


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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



Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Jack Nuzbit
I mean too much component nesting like what's been described in this thread.


On Mon, Sep 14, 2009 at 12:56 PM, Ivano Luberti wrote:

> Jack, what "Uber component pattern" stands for ?
>
> Jack Nuzbit ha scritto:
> > I'm concerned I may be falling foul of the Uber-component pattern as
> well.
> > I'm regularly building container components that dynamically render
> > different sub-components.
> > Is there any chance somebody could document the recommended approach
> here.
> >
> > Many thanks,
> >
> > Jack
> >
> >
> > On Fri, Sep 11, 2009 at 8:23 PM, Dave Greggory  >wrote:
> >
> >
> >> NYC.
> >>
> >>
> >>
> >> - Original Message 
> >> From: Howard Lewis Ship 
> >> To: Tapestry users 
> >> Sent: Friday, September 11, 2009 3:11:57 PM
> >> Subject: Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't
> reduce
> >>  after forced GC)
> >>
> >> Although upgrading is a good idea for many reasons, I don't think it
> will
> >> solve your problem. You need a little re-architecting of your approach
> to
> >> get the component instance count back under control. Where are you
> located?
> >> On Fri, Sep 11, 2009 at 12:03 PM, Dave Greggory  >>
> >>> wrote:
> >>>
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
> >>
> >
> >
>
> --
> ==
> dott. Ivano Mario Luberti
> Archimede Informatica societa' cooperativa a r. l.
> Sede Operativa
> Via Gereschi 36 - 56126- Pisa
> tel.: +39-050- 580959
> tel/fax: +39-050-9711344
> web: www.archicoop.it
> ==
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Ivano Luberti
Jack, what "Uber component pattern" stands for ?

Jack Nuzbit ha scritto:
> I'm concerned I may be falling foul of the Uber-component pattern as well.
> I'm regularly building container components that dynamically render
> different sub-components.
> Is there any chance somebody could document the recommended approach here.
>
> Many thanks,
>
> Jack
>
>
> On Fri, Sep 11, 2009 at 8:23 PM, Dave Greggory wrote:
>
>   
>> NYC.
>>
>>
>>
>> - Original Message 
>> From: Howard Lewis Ship 
>> To: Tapestry users 
>> Sent: Friday, September 11, 2009 3:11:57 PM
>> Subject: Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce
>>  after forced GC)
>>
>> Although upgrading is a good idea for many reasons, I don't think it will
>> solve your problem. You need a little re-architecting of your approach to
>> get the component instance count back under control. Where are you located?
>> On Fri, Sep 11, 2009 at 12:03 PM, Dave Greggory > 
>>> wrote:
>>>   
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>> 
>
>   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-14 Thread Jack Nuzbit
I'm concerned I may be falling foul of the Uber-component pattern as well.
I'm regularly building container components that dynamically render
different sub-components.
Is there any chance somebody could document the recommended approach here.

Many thanks,

Jack


On Fri, Sep 11, 2009 at 8:23 PM, Dave Greggory wrote:

> NYC.
>
>
>
> - Original Message 
> From: Howard Lewis Ship 
> To: Tapestry users 
> Sent: Friday, September 11, 2009 3:11:57 PM
> Subject: Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce
>  after forced GC)
>
> Although upgrading is a good idea for many reasons, I don't think it will
> solve your problem. You need a little re-architecting of your approach to
> get the component instance count back under control. Where are you located?
> On Fri, Sep 11, 2009 at 12:03 PM, Dave Greggory  >wrote:
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Accessing page context from a component

2009-09-14 Thread Otho
I wouldn't couple a component so tightly to a specific page. If you need to
pass certain bits of information you can also use component parameters from
within the page.

2009/9/14 chakra 

>
> thanks for the responses.
> Is there any plan in future releases of tapestry, to add support for
> onActivate method in components also,to get the page context?
>
> That will make life much easier.
>
> Chakra
> --
> View this message in context:
> http://www.nabble.com/Accessing-page-context-from-a-component-tp25422102p25433429.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Accessing page context from a component

2009-09-14 Thread chakra

thanks for the responses. 
Is there any plan in future releases of tapestry, to add support for
onActivate method in components also,to get the page context?

That will make life much easier.

Chakra
-- 
View this message in context: 
http://www.nabble.com/Accessing-page-context-from-a-component-tp25422102p25433429.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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