Re: [ANNOUNCEMENT] New Tapestry 5 book

2009-11-11 Thread Francisco Manzano
+1  ;)

2009/11/11 Antonio Fernández amiguel.fernan...@gmail.com


 +1


 Alfonso Quiroga escribió:

  +1

 On Wed, Nov 11, 2009 at 6:24 PM, keykubat sahinfati...@gmail.com wrote:


 :) +1

 Igor Drobiazko wrote:


 Good news. My publisher made the first step towards the translation.
 They
 contacted several publishers outside Germany to find one that is
 interested
 in translation. If some of them is interested then we will have the
 english
 version of the book.

 If you want to help me to make the translation possible make some noise
 here. The more comments here the more likely we will have a translation.
 I'll keep you informed about the progress.

 On Wed, Sep 16, 2009 at 7:28 PM, Igor Drobiazko
 igor.drobia...@gmail.comwrote:



 Hello folks,

 I am pleased to announce a new Tapestry 5 book. The book is written in
 German and is available as eBook on publisher's website:



 http://www.addison-wesley.de/main/main.asp?page=home/bookdetailsProductID=174975


 The hardcover version of the book will be available starting from Sep
 28
 2009.
 I'll make another announcement when the hardcover version is released.

 Among other things the book covers :
   * Getting Started with Tapestry 5
   * Concepts of the framework
   * Localization/internationalization
   * Creating Forms
   * Generation of user interfaces for JavaBeans
   * Writing own components and mixins
   * Ajax
   * Writing tests for Tapestry applications
   * Hibernate and Spring integration
   * Dependency Injection and Tapestry IoC
   * AOP and bytecode manipuation

 Special thanks go to Howard and Ulrich Stärk. Howard gave me some hints
 on
 how to write a better book and wrote a foreword.
 Ulrich was responsible for the technical review of the book and helped
 me
 to improve the quality.

 Enjoy

 --
 Best regards,

 Igor Drobiazko




 --
 Best regards,

 Igor Drobiazko




 --
 View this message in context:
 http://old.nabble.com/-ANNOUNCEMENT--New-Tapestry-5-book-tp25477922p26308914.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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





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






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




Re: T5: How to reverse engineer Tapestry Annotations with Hibernate

2008-10-30 Thread Francisco Manzano

James Sherwood wrote:

Hello,

 


I have the reverse engineering working correctly but I wish to modify it a
bit. 


Tapestry requires and @Validate(required) annotation in front of the
variables of the class that are required for global validation. (Unless
there is a way to do global validation without using @validate in the
entities class) I have to manually put these in each time I regenerate my
POJOs. Is there a way I can make this happen automatically when I generate
my POJO's? 



Currently it puts this annotation in front of required field's getters: 
@Column(name = fieldname, nullable = false, length = 100) 

Some information that may be needed: 

In the Hibernate Code Generation window: 

Tab: Main 
Reverse engineer from JDBC Connection checked 
Generate basic typed composite ids checked 
Detect optimistic lock columns checked 
Detect many-to-many tables checked 

Tab: Exporters 
Use Java 5 syntax checked 
Generate EJB3 annotations checked 
Domain code(.java) checked 



Thanks, 
--James



  

Why don't you use t:validate in the template?
Do you have a lot of templates that USE this entity ?
Example:
input t:type=TextField  value=MyEntity.myProperty 
t:validate=required /


Zan


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



Re: Explorer like tree component

2008-08-04 Thread Francisco Manzano

Yes, we are really waiting for it !!

Thanks

Hugo Palma wrote:

Hi again Toby,
please don't forget to add your code to the wiki.

Thanks again.

Toby Hobson wrote:
I have written a component based on treemenu. I'll happily send you 
the code but it comes with no warranty!!


Toby


- Original Message 
From: Hugo Palma [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Friday, 25 July, 2008 6:41:02 PM
Subject: Explorer like tree component

I was wondering if anyone knows of a component for T5 that displays a 
tree with behaviour similar to this 
http://www.treemenu.net/treemenu/3fr_beenthere.html
I just need expanded / collapsible nodes, with the plus / minus sign 
and configurable node icons.


Thanks.

-
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: t5: pass few parameters to 2nd page

2008-07-09 Thread Francisco Manzano
Or, you can use the new @PageActivationContext  annotation for a greater 
simplicity


Zanius

Ted Steen wrote:

Just add more parameters to the activate/passivate-methods.
Or you can use (Object[] parameters).
Or you can use (EventContext context)

The way to go for you would be to just add more parameters to the
activate/passivate-methods.

2008/7/9 t [EMAIL PROTECTED]:
  

void onActivate(String message)
 {
   System.out.println(Another page is activated! The
 message is:  + message);
   this.passedMessage = message;
 }
 String onPassivate()
 {
   System.out.println(Another page is passivated...);
   return passedMessage;
 }

This is the snippet that i got from t5 book on how to pass parameter from first
page to 2nd page. if i need to pass more than 1 parameter to 2nd pages, how to
do it?




-
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: t5: pass few parameters to 2nd page

2008-07-09 Thread Francisco Manzano

why don't ?

Ted Steen wrote:

I dont think you can use that with multiple values as the context :/

2008/7/9 Francisco Manzano [EMAIL PROTECTED]:
  

Or, you can use the new @PageActivationContext  annotation for a greater
simplicity

Zanius

Ted Steen wrote:


Just add more parameters to the activate/passivate-methods.
Or you can use (Object[] parameters).
Or you can use (EventContext context)

The way to go for you would be to just add more parameters to the
activate/passivate-methods.

2008/7/9 t [EMAIL PROTECTED]:

  

void onActivate(String message)
 {
  System.out.println(Another page is activated! The
message is:  + message);
  this.passedMessage = message;
 }
 String onPassivate()
 {
  System.out.println(Another page is passivated...);
  return passedMessage;
 }

This is the snippet that i got from t5 book on how to pass parameter from
first
page to 2nd page. if i need to pass more than 1 parameter to 2nd pages,
how to
do it?




-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



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



Re: t5: pass few parameters to 2nd page

2008-07-09 Thread Francisco Manzano
I thought that its main contribution to be able to use it for multiple 
values,

and not yet I understand why this functionality has not been implemented.
So, I agree for jira.


Ted Steen wrote:

At the moment you should think of the @PageActivationContext as a
convenience annotation for you to use when you only want to place a
single value in the context. Personally I think it would make more
sense if you where able to use it for multiple values.

Maybe worth adding a JIRA for that?
For example, when multiple values are annotated they are added to the
context in alphabetical order.

2008/7/9 Francisco Manzano [EMAIL PROTECTED]:
  

why don't ?

Ted Steen wrote:


I dont think you can use that with multiple values as the context :/

2008/7/9 Francisco Manzano [EMAIL PROTECTED]:

  

Or, you can use the new @PageActivationContext  annotation for a greater
simplicity

Zanius

Ted Steen wrote:



Just add more parameters to the activate/passivate-methods.
Or you can use (Object[] parameters).
Or you can use (EventContext context)

The way to go for you would be to just add more parameters to the
activate/passivate-methods.

2008/7/9 t [EMAIL PROTECTED]:


  

void onActivate(String message)
 {
 System.out.println(Another page is activated! The
   message is:  + message);
 this.passedMessage = message;
 }
 String onPassivate()
 {
 System.out.println(Another page is passivated...);
 return passedMessage;
 }

This is the snippet that i got from t5 book on how to pass parameter
from
first
page to 2nd page. if i need to pass more than 1 parameter to 2nd pages,
how to
do it?




-
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: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: t5: Returning block works in Firefox but not in IE

2008-06-24 Thread Francisco Manzano

Hi, I am inexperienced in Tapestry, but I had east problem recently:
You have like result a valid xhtml page? You can look for if you have 
scripts of tapestry inserted at the end of the page.

something  like this  :
...
script src=../../assets/scriptaculous/5.0.13/prototype.js 
type=text/javascript/script
script src=../../assets/scriptaculous/5.0.13/scriptaculous.js 
type=text/javascript/script
script src=../../assets/scriptaculous/5.0.13/effects.js 
type=text/javascript/script
script src=../../assets/tapestry/5.0.13/tapestry.js 
type=text/javascript/script

script type=text/javascript
!--
Tapestry.DEBUG_ENABLED = true;
Tapestry.onDOMLoaded(function() {
Tapestry.init({zone:[zoneToUpdate],linkZone:[[theLink4,zoneToUpdate],[theForm,zoneToUpdate]]});
});
// --
/script
/body
/html

If these scripts are not, you can have this problem., and you can solve 
it obtaining a valid xhtml like result.


I hope can help you


DiPegotDeis



Lance Java wrote:

I have an actionlink that returns a block and populates a zone in my page

FundGraph.tml
   t:actionLink t:id=edit zone=editZoneedit/t:actionLink

   t:block t:id=editorBlock.../t:block

   t:zone t:id=editZone
   /t:zone


FundGraph.java
@Inject
private Block editorBlock;

@OnEvent(value=action, component=edit)
protected Object onActionFromEdit() {
return editorBlock;
}

In Firefox, this works fine. In IE, I get the following error:
A component event handler method returned the value
[EMAIL PROTECTED] Return type
org.apache.tapestry5.internal.structure.BlockImpl can not be handled.
Configured return types are java.lang.Class, java.lang.String, java.net.URL,
org.apache.tapestry5.Link, org.apache.tapestry5.StreamResponse,
org.apache.tapestry5.runtime.Component.

I have looked at previous posts on this list and it seems that this is
because request.isXHR() is false. What can I do to fix this in IE? I thought
that XHR should be true in this case?

I am using tapestry 5.0.13 and IE 6.0

Full stack trace:
%d 192408 ERROR
[org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler]
(http-127.0.0.1-8080-2:) Processing of request failed with uncaught
exception: A component event handler method returned the value
[EMAIL PROTECTED] Return type
org.apache.tapestry5.internal.structure.BlockImpl can not be
handled.  Configured return types are java.lang.Class, java.lang.String,
java.net.URL, org.apache.tapestry5.Link,
org.apache.tapestry5.StreamResponse, org.apache.tapestry5.runtime.Component.
org.apache.tapestry5.runtime.ComponentEventException: A component event
handler method returned the value
[EMAIL PROTECTED] Return type
org.apache.tapestry5.internal.structure.BlockImpl can not be
handled.  Configured return types are java.lang.Class, java.lang.String,
java.net.URL, org.apache.tapestry5.Link,
org.apache.tapestry5.StreamResponse, org.apache.tapestry5.runtime.Component.
[at classpath:com/bglobal/isharesnet/tapestry/components/fund/FundGraph.tml,
line 2, column 44]
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1042)
at
org.apache.tapestry5.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:67)
at
org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
at
$ComponentEventRequestHandler_11abad25fdc.handle($ComponentEventRequestHandler_11abad25fdc.java)
at
org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
at
$ComponentEventRequestHandler_11abad25fdc.handle($ComponentEventRequestHandler_11abad25fdc.java)
at
org.apache.tapestry5.services.TapestryModule$37.handle(TapestryModule.java:1987)
at
$ComponentEventRequestHandler_11abad25fdc.handle($ComponentEventRequestHandler_11abad25fdc.java)
at
$ComponentEventRequestHandler_11abad25f81.handle($ComponentEventRequestHandler_11abad25f81.java)
at
org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:135)
at $Dispatcher_11abad25f84.dispatch($Dispatcher_11abad25f84.java)
at $Dispatcher_11abad25f76.dispatch($Dispatcher_11abad25f76.java)
at
org.apache.tapestry5.services.TapestryModule$12.service(TapestryModule.java:938)
at
org.apache.tapestry5.internal.services.LocalizationFilter.service(LocalizationFilter.java:42)
at $RequestHandler_11abad25f77.service($RequestHandler_11abad25f77.java)
at
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:586)
at $RequestHandler_11abad25f77.service($RequestHandler_11abad25f77.java)
at
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
at $RequestHandler_11abad25f77.service($RequestHandler_11abad25f77.java)
at
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79)
at $RequestHandler_11abad25f77.service($RequestHandler_11abad25f77.java)
at