Re: Is there some way I can see the source code generated by tapestry?

2007-03-03 Thread 黄翔

thanks! :-)

2007/3/2, Howard Lewis Ship [EMAIL PROTECTED]:


Ther'es a debugging option, -Djavassist-write-dir=target/javassist

With that enable, Tapestry will write out the bytecode for any classes
it creates or transforms.

I then used the Jad decompiler to view the source.

Alternately, you can see the transformations for a particular
component class by enabling debug logging for that class (i.e., in
log4j properties).  That shows you the Javassist code from which the
bytecode is generated.

Or you could trust in the force, it is strong in this one :-)

On 3/2/07, 黄翔 [EMAIL PROTECTED] wrote:
 I think the code generated for components is  really useful  for
debugging
 and understanding. So , is there some way I can view the source code.

 --
 huang xiang
 Guangzhou, China.



--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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





--
huang xiang
Guangzhou, China.


Fwd: T5 JBoss Exception Redeploy Exception

2007-03-03 Thread Howard Lewis Ship

Ugly, and certainly a class loader problem.  So you had a running
application, and you created and deployed a new .war on top of the old
one.

On 3/2/07, Todd Orr [EMAIL PROTECTED] wrote:

My problem happens after an exception occurs. Firstly, my tapestry
example deploys fine. If any exception occurs I make the appropriate
changes and then redeploy to jboss. Then I get the following error
when trying to resolve a page.

stack trace:

20:15:29,077 ERROR [ExceptionReport] Render queue error in
BeginRender[org.apache.tapestry.corelib.pages.ExceptionReport:loop]:
No object of type org.apache.tapestry.services.Heartbeat is available
from the Environment.  Available types are
org.apache.tapestry.MarkupWriter,
org.apache.tapestry.ValidationDecorator,
org.apache.tapestry.dom.Document,
org.apache.tapestry.services.Heartbeat,
org.apache.tapestry.services.PageRenderSupport.
java.lang.RuntimeException: No object of type
org.apache.tapestry.services.Heartbeat is available from the
Environment.  Available types are org.apache.tapestry.MarkupWriter,
org.apache.tapestry.ValidationDecorator,
org.apache.tapestry.dom.Document,
org.apache.tapestry.services.Heartbeat,
org.apache.tapestry.services.PageRenderSupport.
at 
org.apache.tapestry.internal.services.EnvironmentImpl.peekRequired(EnvironmentImpl.java:73)
at $Environment_110852b4624.peekRequired($Environment_110852b4624.java)
at $Environment_110852b45c9.peekRequired($Environment_110852b45c9.java)
at 
org.apache.tapestry.corelib.components.Loop._$environment_read_heartbeat(Loop.java)
at 
org.apache.tapestry.corelib.components.Loop.startHeartbeat(Loop.java:302)
at org.apache.tapestry.corelib.components.Loop.begin(Loop.java:297)
at org.apache.tapestry.corelib.components.Loop.beginRender(Loop.java)
at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10$1.run(ComponentPageElementImpl.java:334)
at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:931)
at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl.access$100(ComponentPageElementImpl.java:68)
at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10.render(ComponentPageElementImpl.java:338)
at 
org.apache.tapestry.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:57)
at 
org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:40)
at 
$PageMarkupRenderer_110852b4621.renderPageMarkup($PageMarkupRenderer_110852b4621.java)
at 
org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:45)
at 
$PageResponseRenderer_110852b45e1.renderPageResponse($PageResponseRenderer_110852b45e1.java)
at 
org.apache.tapestry.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:56)
at 
$RequestExceptionHandler_110852b45b8.handleRequestException($RequestExceptionHandler_110852b45b8.java)
at 
org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:523)
at $RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
at 
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:56)
at $RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
at 
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
at $RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
at 
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
at $RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
at $RequestHandler_110852b45ef.service($RequestHandler_110852b45ef.java)
at 
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:402)
at 
$HttpServletRequestHandler_110852b45ee.service($HttpServletRequestHandler_110852b45ee.java)
at org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:114)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 

Re: BeanEditForm

2007-03-03 Thread Howard Lewis Ship

On 3/2/07, Terry [EMAIL PROTECTED] wrote:


Going forwards, is the plan to try and default the max length values of the
input fields to the maxlength validation annotation on the model?


I'm thinking about how to handle this in the best way; it'll probably
end up being yet another annotation ... the trick is that when the
EJB3/Hibernate support comes it, there will be an annotation there to
be used, so I need to build something that can be tuned a bit.



Is there a way to clear the form if it is set in the ApplicationState?


_myAso = null;
_form.clearErrors();

The ASO will be re-created (empty) and any tracked errors or input in
the Form will be discarded.



Can you get hold of the IP address of the client through the request object
somehow?


Not yet, but there's a but about that. Just get the HttpServletRequest
from the RequestGlobals service for now.



Will I ever run out of stupid questions?

;)

Terry
--
View this message in context: 
http://www.nabble.com/BeanEditForm-tf3337016.html#a9280833
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



Re: T5 IOC - Pass string to module on load

2007-03-03 Thread Peter Beshai

Thanks! That is exactly what I needed :-)

On 3/2/07, Filip S. Adamsen [EMAIL PROTECTED] wrote:


You could perhaps use a symbol?

http://tapestry.apache.org/tapestry5/tapestry-ioc/symbols.html

-Filip

Peter Beshai skrev:
 I have a jar with a module in it, configured to be autoloaded (through
 maven2 editing the manifest). One of my services in the module reads
from a
 properties file which is passed in by a string. Rather than hard-coding
the
 string into the service, I was hoping to be able to configure it
 externally.
 That is, when I include this jar in my tapestry project, I want to be
able
 to configure the properties file it points to.

 From reading the docs, I'm not entirely sure on the best approach. Do
 I use
 a contribution (it seems like you can only contribute unordered
 collections,
 lists or maps -- not just single objects)?

 Any pointers in the right direction would be greatly appreciated.


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





--
Peter Beshai

Pure Mathematics/Computer Science Student
University of Waterloo


Re: T5 JBoss Exception Redeploy Exception

2007-03-03 Thread Todd Orr

What I exactly did:

1. code
2. mvn jboss:undeploy clean package jboss:deploy (no current
deployment, I just do this so I only have to press up arrow
subsequently)
3. attempt to resolve url
4. observe runtime error
5. make code changes
6. mvn jboss:undeploy clean package jboss:deploy
7. attempt to resolve url
8. observe tomcat error page
9. observe printstack listed below in stdout

On 3/3/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:

Ugly, and certainly a class loader problem.  So you had a running
application, and you created and deployed a new .war on top of the old
one.

On 3/2/07, Todd Orr [EMAIL PROTECTED] wrote:
 My problem happens after an exception occurs. Firstly, my tapestry
 example deploys fine. If any exception occurs I make the appropriate
 changes and then redeploy to jboss. Then I get the following error
 when trying to resolve a page.

 stack trace:

 20:15:29,077 ERROR [ExceptionReport] Render queue error in
 BeginRender[org.apache.tapestry.corelib.pages.ExceptionReport:loop]:
 No object of type org.apache.tapestry.services.Heartbeat is available
 from the Environment.  Available types are
 org.apache.tapestry.MarkupWriter,
 org.apache.tapestry.ValidationDecorator,
 org.apache.tapestry.dom.Document,
 org.apache.tapestry.services.Heartbeat,
 org.apache.tapestry.services.PageRenderSupport.
 java.lang.RuntimeException: No object of type
 org.apache.tapestry.services.Heartbeat is available from the
 Environment.  Available types are org.apache.tapestry.MarkupWriter,
 org.apache.tapestry.ValidationDecorator,
 org.apache.tapestry.dom.Document,
 org.apache.tapestry.services.Heartbeat,
 org.apache.tapestry.services.PageRenderSupport.
 at 
org.apache.tapestry.internal.services.EnvironmentImpl.peekRequired(EnvironmentImpl.java:73)
 at 
$Environment_110852b4624.peekRequired($Environment_110852b4624.java)
 at 
$Environment_110852b45c9.peekRequired($Environment_110852b45c9.java)
 at 
org.apache.tapestry.corelib.components.Loop._$environment_read_heartbeat(Loop.java)
 at 
org.apache.tapestry.corelib.components.Loop.startHeartbeat(Loop.java:302)
 at org.apache.tapestry.corelib.components.Loop.begin(Loop.java:297)
 at org.apache.tapestry.corelib.components.Loop.beginRender(Loop.java)
 at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10$1.run(ComponentPageElementImpl.java:334)
 at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:931)
 at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl.access$100(ComponentPageElementImpl.java:68)
 at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10.render(ComponentPageElementImpl.java:338)
 at 
org.apache.tapestry.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:57)
 at 
org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:40)
 at 
$PageMarkupRenderer_110852b4621.renderPageMarkup($PageMarkupRenderer_110852b4621.java)
 at 
org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:45)
 at 
$PageResponseRenderer_110852b45e1.renderPageResponse($PageResponseRenderer_110852b45e1.java)
 at 
org.apache.tapestry.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:56)
 at 
$RequestExceptionHandler_110852b45b8.handleRequestException($RequestExceptionHandler_110852b45b8.java)
 at 
org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:523)
 at 
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
 at 
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:56)
 at 
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
 at 
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
 at 
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
 at 
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
 at 
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
 at 
$RequestHandler_110852b45ef.service($RequestHandler_110852b45ef.java)
 at 
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:402)
 at 
$HttpServletRequestHandler_110852b45ee.service($HttpServletRequestHandler_110852b45ee.java)
 at 

Re: T5 JBoss Exception Redeploy Exception

2007-03-03 Thread Todd Orr

Also, I am using the mvn archiveClassestrue/archiveClasses
setting. As well as the attribute
name=UseJBossWebLoadertrue/attribute config setting.

On 3/3/07, Todd Orr [EMAIL PROTECTED] wrote:

What I exactly did:

1. code
2. mvn jboss:undeploy clean package jboss:deploy (no current
deployment, I just do this so I only have to press up arrow
subsequently)
3. attempt to resolve url
4. observe runtime error
5. make code changes
6. mvn jboss:undeploy clean package jboss:deploy
7. attempt to resolve url
8. observe tomcat error page
9. observe printstack listed below in stdout

On 3/3/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:
 Ugly, and certainly a class loader problem.  So you had a running
 application, and you created and deployed a new .war on top of the old
 one.

 On 3/2/07, Todd Orr [EMAIL PROTECTED] wrote:
  My problem happens after an exception occurs. Firstly, my tapestry
  example deploys fine. If any exception occurs I make the appropriate
  changes and then redeploy to jboss. Then I get the following error
  when trying to resolve a page.
 
  stack trace:
 
  20:15:29,077 ERROR [ExceptionReport] Render queue error in
  BeginRender[org.apache.tapestry.corelib.pages.ExceptionReport:loop]:
  No object of type org.apache.tapestry.services.Heartbeat is available
  from the Environment.  Available types are
  org.apache.tapestry.MarkupWriter,
  org.apache.tapestry.ValidationDecorator,
  org.apache.tapestry.dom.Document,
  org.apache.tapestry.services.Heartbeat,
  org.apache.tapestry.services.PageRenderSupport.
  java.lang.RuntimeException: No object of type
  org.apache.tapestry.services.Heartbeat is available from the
  Environment.  Available types are org.apache.tapestry.MarkupWriter,
  org.apache.tapestry.ValidationDecorator,
  org.apache.tapestry.dom.Document,
  org.apache.tapestry.services.Heartbeat,
  org.apache.tapestry.services.PageRenderSupport.
  at 
org.apache.tapestry.internal.services.EnvironmentImpl.peekRequired(EnvironmentImpl.java:73)
  at 
$Environment_110852b4624.peekRequired($Environment_110852b4624.java)
  at 
$Environment_110852b45c9.peekRequired($Environment_110852b45c9.java)
  at 
org.apache.tapestry.corelib.components.Loop._$environment_read_heartbeat(Loop.java)
  at 
org.apache.tapestry.corelib.components.Loop.startHeartbeat(Loop.java:302)
  at org.apache.tapestry.corelib.components.Loop.begin(Loop.java:297)
  at 
org.apache.tapestry.corelib.components.Loop.beginRender(Loop.java)
  at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10$1.run(ComponentPageElementImpl.java:334)
  at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:931)
  at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl.access$100(ComponentPageElementImpl.java:68)
  at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10.render(ComponentPageElementImpl.java:338)
  at 
org.apache.tapestry.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:57)
  at 
org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:40)
  at 
$PageMarkupRenderer_110852b4621.renderPageMarkup($PageMarkupRenderer_110852b4621.java)
  at 
org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:45)
  at 
$PageResponseRenderer_110852b45e1.renderPageResponse($PageResponseRenderer_110852b45e1.java)
  at 
org.apache.tapestry.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:56)
  at 
$RequestExceptionHandler_110852b45b8.handleRequestException($RequestExceptionHandler_110852b45b8.java)
  at 
org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:523)
  at 
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
  at 
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:56)
  at 
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
  at 
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
  at 
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
  at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
  at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
  at 
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
  at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
  at 
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
  at 
$RequestHandler_110852b45ef.service($RequestHandler_110852b45ef.java)

Re: T5 JBoss Exception Redeploy Exception

2007-03-03 Thread Todd Orr

Also note that my app is otherwise unremarkable. I'm not integrating
anything exotic. I have been only creating some components and
familiarizing myself with T5.

On 3/3/07, Todd Orr [EMAIL PROTECTED] wrote:

Also, I am using the mvn archiveClassestrue/archiveClasses
setting. As well as the attribute
name=UseJBossWebLoadertrue/attribute config setting.

On 3/3/07, Todd Orr [EMAIL PROTECTED] wrote:
 What I exactly did:

 1. code
 2. mvn jboss:undeploy clean package jboss:deploy (no current
 deployment, I just do this so I only have to press up arrow
 subsequently)
 3. attempt to resolve url
 4. observe runtime error
 5. make code changes
 6. mvn jboss:undeploy clean package jboss:deploy
 7. attempt to resolve url
 8. observe tomcat error page
 9. observe printstack listed below in stdout

 On 3/3/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:
  Ugly, and certainly a class loader problem.  So you had a running
  application, and you created and deployed a new .war on top of the old
  one.
 
  On 3/2/07, Todd Orr [EMAIL PROTECTED] wrote:
   My problem happens after an exception occurs. Firstly, my tapestry
   example deploys fine. If any exception occurs I make the appropriate
   changes and then redeploy to jboss. Then I get the following error
   when trying to resolve a page.
  
   stack trace:
  
   20:15:29,077 ERROR [ExceptionReport] Render queue error in
   BeginRender[org.apache.tapestry.corelib.pages.ExceptionReport:loop]:
   No object of type org.apache.tapestry.services.Heartbeat is available
   from the Environment.  Available types are
   org.apache.tapestry.MarkupWriter,
   org.apache.tapestry.ValidationDecorator,
   org.apache.tapestry.dom.Document,
   org.apache.tapestry.services.Heartbeat,
   org.apache.tapestry.services.PageRenderSupport.
   java.lang.RuntimeException: No object of type
   org.apache.tapestry.services.Heartbeat is available from the
   Environment.  Available types are org.apache.tapestry.MarkupWriter,
   org.apache.tapestry.ValidationDecorator,
   org.apache.tapestry.dom.Document,
   org.apache.tapestry.services.Heartbeat,
   org.apache.tapestry.services.PageRenderSupport.
   at 
org.apache.tapestry.internal.services.EnvironmentImpl.peekRequired(EnvironmentImpl.java:73)
   at 
$Environment_110852b4624.peekRequired($Environment_110852b4624.java)
   at 
$Environment_110852b45c9.peekRequired($Environment_110852b45c9.java)
   at 
org.apache.tapestry.corelib.components.Loop._$environment_read_heartbeat(Loop.java)
   at 
org.apache.tapestry.corelib.components.Loop.startHeartbeat(Loop.java:302)
   at 
org.apache.tapestry.corelib.components.Loop.begin(Loop.java:297)
   at 
org.apache.tapestry.corelib.components.Loop.beginRender(Loop.java)
   at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10$1.run(ComponentPageElementImpl.java:334)
   at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:931)
   at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl.access$100(ComponentPageElementImpl.java:68)
   at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10.render(ComponentPageElementImpl.java:338)
   at 
org.apache.tapestry.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:57)
   at 
org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:40)
   at 
$PageMarkupRenderer_110852b4621.renderPageMarkup($PageMarkupRenderer_110852b4621.java)
   at 
org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:45)
   at 
$PageResponseRenderer_110852b45e1.renderPageResponse($PageResponseRenderer_110852b45e1.java)
   at 
org.apache.tapestry.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:56)
   at 
$RequestExceptionHandler_110852b45b8.handleRequestException($RequestExceptionHandler_110852b45b8.java)
   at 
org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:523)
   at 
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
   at 
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:56)
   at 
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
   at 
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
   at 
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
   at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
   at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
   at 
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
 

DropDownDatePicker fields are not validated in 4.1.2 after an ajax call

2007-03-03 Thread Markus Joschko

Hi all,
it seems like the DropDownDatePicker fields are not added to the list
of to-be-validated fields after an ajax request in the page was made
and the client side validation is reregistered. I shortly describe the
situation where I face the problem:

- I have a form which contains some text fields and two date pickers
- during page load I can see that all fields are registered properly
in the client side validation:

tapestry.form.registerProfile('testForm',{required:[name,urlShortcut,birthday,dateRange,closeDate]

- leaving a field blank pops up the client side validation dialog
which is fine.
- Now I provoke an error which can't be covered by client side
validation but only in my listener on the page (I haven't written
custom validators). E.g. a unique key validation.

- The form is asynchronously submitted, the error spotted on the
server side and a response element is rendered back to the client (not
the form but a dedicated response element). still everything as
expected. But together with the response the following javascript is
submitted:

tapestry.form.clearProfiles('testForm');
tapestry.form.registerProfile('testForm',{required:[name,urlShortcut,dateRange]

-These are all the fields EXCEPT the dropdowndatepicker once. So
during the next submit these fields are not validated. To make it
worse even the server side validation is suppressed for some reason.
No validation for these fields :-(

I don't know where I should start looking for the error, so you might
have a better idea what could cause the problem.

This is how I added the dropdowndatepicker to my HTML
div
 label jwcid=@FieldLabel 
field=component:birthdayBirthday/label
 input jwcid=[EMAIL PROTECTED]
value=ognl:bet.estimatedBirthday
validators=validators:required[%form.missing.error]
displayName=message:form.birthday/
/div


Thanks,
Markus

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



Re: [T4] Adding body of a sub-component w/o using a template

2007-03-03 Thread andyhot

You can't dynamically change the component structure

See http://tapestry.apache.org/tapestry5/
the part discussing Principal 1 -- Static Structure, Dynamic Behavior

Now, i still can't understand your use case, so i can't offer any help there
(what's the meaning of influence its body w/o using a template), but
perhaps you can build a custom component and pass parameters to it...


Christian Haselbach wrote:

On Thu, Mar 01, 2007 at 08:56:58PM +0200, andyhot wrote:
  

Can you give an example of what you're trying to accomplish ?



In this case I want to render customized LinkSubmit. For that I have
LinkSubmit as subcomponent, but want to influence its body w/o using a
template. With the addBody function I can add the custom renderer, but I
cannot find the right way to do it, as I explained formerly.

Regards,
Christian

  



--
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: tapestry 4 to focus on specified field

2007-03-03 Thread andyhot

haipeng du wrote:
I know these. But I just think that may be useful and helpful to add 
focus

fields order list to form.

Just add a tabindex informal parameter to the related form fields...
You have to manage focus ordering yourself.




On 3/2/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:


Tapestry will add JavaScript to focus on the first field that has an
error. If no fields are in error, then the first required field. If no
required fields, then the first field, period.

The focus parameter is used when you have multiple forms on one page,
and want to control which one gets to take focus.

On 3/2/07, haipeng du [EMAIL PROTECTED] wrote:
 How could I set up form and field to make tapestry form focus on
specified
 field. In the form, it is only one parameter called focus which is
 boolean. It should have parameter that takes a list of fields name 
or id

for
 focus order. Does t4 have that?
 Thanks a lot.


 --
 Haipeng Du
 Software Engineer
 Comphealth,
 Salt Lake City



--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

-
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: T5 JBoss Exception Redeploy Exception

2007-03-03 Thread Ben Sommerville
I also had this error when I was playing yesterday.
In my case it turned out that I had two copies of tapestry-core on the
classpath (one in a web app lib and the other in the ear that contained the
web app).  Removing the extra copy (in the web app) fixed this problem for
me. 

-Original Message-
From: Todd Orr [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 4 March 2007 8:18 AM
To: Tapestry users
Subject: Re: T5 JBoss Exception Redeploy Exception

Also note that my app is otherwise unremarkable. I'm not integrating
anything exotic. I have been only creating some components and familiarizing
myself with T5.

On 3/3/07, Todd Orr [EMAIL PROTECTED] wrote:
 Also, I am using the mvn archiveClassestrue/archiveClasses
 setting. As well as the attribute
 name=UseJBossWebLoadertrue/attribute config setting.

 On 3/3/07, Todd Orr [EMAIL PROTECTED] wrote:
  What I exactly did:
 
  1. code
  2. mvn jboss:undeploy clean package jboss:deploy (no current 
  deployment, I just do this so I only have to press up arrow
  subsequently)
  3. attempt to resolve url
  4. observe runtime error
  5. make code changes
  6. mvn jboss:undeploy clean package jboss:deploy 7. attempt to 
  resolve url 8. observe tomcat error page 9. observe printstack 
  listed below in stdout
 
  On 3/3/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:
   Ugly, and certainly a class loader problem.  So you had a running 
   application, and you created and deployed a new .war on top of the 
   old one.
  
   On 3/2/07, Todd Orr [EMAIL PROTECTED] wrote:
My problem happens after an exception occurs. Firstly, my 
tapestry example deploys fine. If any exception occurs I make 
the appropriate changes and then redeploy to jboss. Then I get 
the following error when trying to resolve a page.
   
stack trace:
   
20:15:29,077 ERROR [ExceptionReport] Render queue error in
BeginRender[org.apache.tapestry.corelib.pages.ExceptionReport:loop]:
No object of type org.apache.tapestry.services.Heartbeat is 
available from the Environment.  Available types are 
org.apache.tapestry.MarkupWriter, 
org.apache.tapestry.ValidationDecorator,
org.apache.tapestry.dom.Document, 
org.apache.tapestry.services.Heartbeat,
org.apache.tapestry.services.PageRenderSupport.
java.lang.RuntimeException: No object of type 
org.apache.tapestry.services.Heartbeat is available from the 
Environment.  Available types are 
org.apache.tapestry.MarkupWriter, 
org.apache.tapestry.ValidationDecorator,
org.apache.tapestry.dom.Document, 
org.apache.tapestry.services.Heartbeat,
org.apache.tapestry.services.PageRenderSupport.
at
org.apache.tapestry.internal.services.EnvironmentImpl.peekRequired(Environme
ntImpl.java:73)
at
$Environment_110852b4624.peekRequired($Environment_110852b4624.java)
at
$Environment_110852b45c9.peekRequired($Environment_110852b45c9.java)
at
org.apache.tapestry.corelib.components.Loop._$environment_read_heartbeat(Loo
p.java)
at
org.apache.tapestry.corelib.components.Loop.startHeartbeat(Loop.java:302)
at
org.apache.tapestry.corelib.components.Loop.begin(Loop.java:297)
at
org.apache.tapestry.corelib.components.Loop.beginRender(Loop.java)
at
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10$1.run(Com
ponentPageElementImpl.java:334)
at
org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(Compo
nentPageElementImpl.java:931)
at
org.apache.tapestry.internal.structure.ComponentPageElementImpl.access$100(C
omponentPageElementImpl.java:68)
at
org.apache.tapestry.internal.structure.ComponentPageElementImpl$10.render(Co
mponentPageElementImpl.java:338)
at
org.apache.tapestry.internal.services.RenderQueueImpl.run(RenderQueueImpl.ja
va:57)
at
org.apache.tapestry.internal.services.PageMarkupRendererImpl.renderPageMarku
p(PageMarkupRendererImpl.java:40)
at
$PageMarkupRenderer_110852b4621.renderPageMarkup($PageMarkupRenderer_110852b
4621.java)
at
org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageRes
ponse(PageResponseRendererImpl.java:45)
at
$PageResponseRenderer_110852b45e1.renderPageResponse($PageResponseRenderer_1
10852b45e1.java)
at
org.apache.tapestry.internal.services.DefaultRequestExceptionHandler.handleR
equestException(DefaultRequestExceptionHandler.java:56)
at
$RequestExceptionHandler_110852b45b8.handleRequestException($RequestExceptio
nHandler_110852b45b8.java)
at
org.apache.tapestry.services.TapestryModule$6.service(TapestryModule.java:52
3)
at
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
at
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesF
ilter.java:56)
at
$RequestHandler_110852b45f4.service($RequestHandler_110852b45f4.java)
 

T5 Message Catalog Override

2007-03-03 Thread SergeEby

Hi

I tried to override the default ComponentMessagesSource by creating a
contribution in my module (tapestry.ComponentMessagesSource) and a new
builder method, but it doesn't seem to work.
Am I missing something?

/Serge

-- 
View this message in context: 
http://www.nabble.com/T5-Message-Catalog-Override-tf3341408.html#a9293102
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: T5 OutOfMemoryError

2007-03-03 Thread Howard Lewis Ship

That's nice but please identify what led up to the OOME.

On 3/3/07, Todd Orr [EMAIL PROTECTED] wrote:

It seems that even a simple component causes an OutOfMemoryError
exception to be thrown. This happens with both JBoss4.0.4GA and Tomcat
5.5.

I've attached a simple sample project.

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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



Re: T5 Annotations Question

2007-03-03 Thread Howard Lewis Ship

Don't mistake the convenience of the annotations for an
annotations-only approach.

Tapestry can automatically build the necessary BeanModel (used by
BeanEditForm and Grid), or you can provide the BeanModel in code (say,
from a reusable service), or mix and match the two.

I'm not saying its perfect (yet :-), I'm just saying look a little deeper.


On 3/3/07, Tim Sawyer [EMAIL PROTECTED] wrote:

Hi Folks,

The new Tapestry 5 stuff relies heavily on annotations of the model, rather
than XML files, and it looks good.

However, our model is fixed and used for many applications for multiple
customers - we therefore can't make application specific annotations in the
model.

Is there some way being considered for T5 to handle this situation?

Cheers,

Tim.

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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



Re: T5 Message Catalog Override

2007-03-03 Thread Howard Lewis Ship

I haven't implemented the InfrastructureOverride service yet; there's
been other fish to fry.  If you try and contribute a conflicting
ComponentMessagesSource, you should see an error on the console
explaining that the conflicting definition was discarded.  It's not
deterministic (or at least, not predictable) which definition
(Tapestry's or yours) will be used!

On 3/3/07, SergeEby [EMAIL PROTECTED] wrote:


Hi

I tried to override the default ComponentMessagesSource by creating a
contribution in my module (tapestry.ComponentMessagesSource) and a new
builder method, but it doesn't seem to work.
Am I missing something?

/Serge

--
View this message in context: 
http://www.nabble.com/T5-Message-Catalog-Override-tf3341408.html#a9293102
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



Re: T5 OutOfMemoryError

2007-03-03 Thread Todd Orr

1. start jboss or tomcat
2. deploy war (using mvn tomcat:deploy, for example)
3. attempt to resolve url
4. OOME

Seems to be something about this particular component. I created a
simple Border component that uses no dynamic data, property access,
etc. It seemed to work. However, this component that is included in
the project is trouble.

Is there some specific information I could provide that would be more
useful? Is the exception not reproducible?

On 3/4/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:

That's nice but please identify what led up to the OOME.

On 3/3/07, Todd Orr [EMAIL PROTECTED] wrote:
 It seems that even a simple component causes an OutOfMemoryError
 exception to be thrown. This happens with both JBoss4.0.4GA and Tomcat
 5.5.

 I've attached a simple sample project.

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




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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