Re: tapestry5-db-migrations

2012-03-09 Thread Massimo Lusetti
On Fri, Mar 9, 2012 at 3:18 AM, Taha Hafeez Siddiqi
tawus.tapes...@gmail.com wrote:

 Thanks Christian

 The only reservation we have against Liquibase is xml. There is a groovy 
 support but I am not sure how good it is.  But I think it is the only way to 
 go :-(

I've used that in the past and indeed is XML based but it serve just
for db schema updates, not data nor defaults.

Cheers
-- 
Massimo
http://meridio.blogspot.com

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



Re: tapestry5-db-migrations

2012-03-09 Thread Dmitriy Vsekhvalnov
Take a look: http://code.google.com/p/flyway/



On Fri, Mar 9, 2012 at 11:05 AM, Massimo Lusetti mluse...@gmail.com wrote:

 On Fri, Mar 9, 2012 at 3:18 AM, Taha Hafeez Siddiqi
 tawus.tapes...@gmail.com wrote:

  Thanks Christian
 
  The only reservation we have against Liquibase is xml. There is a groovy
 support but I am not sure how good it is.  But I think it is the only way
 to go :-(

 I've used that in the past and indeed is XML based but it serve just
 for db schema updates, not data nor defaults.

 Cheers
 --
 Massimo
 http://meridio.blogspot.com

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




Re: Testing Palette component with HTMLUnit

2012-03-09 Thread Stephan Windmüller
On 07.03.2012 10:30, Demey Emmanuel wrote:

 I had the same problem with the Selenium test of the Tapestry-jQuery
 version of the Palette component .

Thanks for the suggestion, but we do not use SeleniumTestCase in our
project. However, it would be interesting how the focus command could
be triggered for HTMLUnit.

Regards
 Stephan



signature.asc
Description: OpenPGP digital signature


Re: tapestry5-db-migrations

2012-03-09 Thread Taha Hafeez Siddiqi
Thanks Dmitriy
 
I had a look at flyway, but the advantage liquibase has over flyway is 
hibernate support. Also flyway does not provide a generic way of writing 
sqls(not sure)

regards
Taha

On Mar 9, 2012, at 2:49 PM, Dmitriy Vsekhvalnov wrote:

 Take a look: http://code.google.com/p/flyway/
 
 
 
 On Fri, Mar 9, 2012 at 11:05 AM, Massimo Lusetti mluse...@gmail.com wrote:
 
 On Fri, Mar 9, 2012 at 3:18 AM, Taha Hafeez Siddiqi
 tawus.tapes...@gmail.com wrote:
 
 Thanks Christian
 
 The only reservation we have against Liquibase is xml. There is a groovy
 support but I am not sure how good it is.  But I think it is the only way
 to go :-(
 
 I've used that in the past and indeed is XML based but it serve just
 for db schema updates, not data nor defaults.
 
 Cheers
 --
 Massimo
 http://meridio.blogspot.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



How to get a page url?

2012-03-09 Thread Az Madu
Hi guys,

I'm new to using Tapestry and am trying to integrate an existing project
into Tapastry5.

I've added a new service method into the AppModule using
binder.bind(MyClass.class, new ServiceBuilderMyClass(){ .. } and am
now able to acces this by using the @Inject annotation on my page 1.  My
page 1 will only present the user with the 'start' link that will be called
from the onActionFromStart() method and direct the user to page2.

Page 1 is setting up all sorts of data but one piece that I need to pass is
the URL of page 2 as a parameter which is required by my service and will
be rendered on an iFrame in page2.tml.  Without knowing the location then
my service (which presents a login form inside the iFrame) will not know
where to land and currently I'm only displaying the iframe when I run the
app.

So my questions are:

1 -  can we know what the url is of any page in our application
programmatically?
2 -  can we use this information and pass it as a parameter into another
page even if it is the other page?

I hope I've explained this well enough and I'm grateful for any assistance.

Regards

Az


RE: tapestry5-db-migrations

2012-03-09 Thread Toby O'Rourke
Hi, 

I write as a heavy liquibase user - we've got about 15 projects here that are 
all using liquibase with the maven plugin. 

One of the great things vs. flyaway is the abstraction provided by the xml 
changesets - you are hiding away from the vendor specific SQL that always seems 
to crop up and makes using things like HSQLDB or H2 for integration tests 
harder than it should be. 

Cheers, 

Toby.

From: Taha Hafeez Siddiqi [tawus.tapes...@gmail.com]
Sent: 09 March 2012 11:46
To: Tapestry users
Subject: Re: tapestry5-db-migrations

Thanks Dmitriy

I had a look at flyway, but the advantage liquibase has over flyway is 
hibernate support. Also flyway does not provide a generic way of writing 
sqls(not sure)

regards
Taha

On Mar 9, 2012, at 2:49 PM, Dmitriy Vsekhvalnov wrote:

 Take a look: http://code.google.com/p/flyway/



 On Fri, Mar 9, 2012 at 11:05 AM, Massimo Lusetti mluse...@gmail.com wrote:

 On Fri, Mar 9, 2012 at 3:18 AM, Taha Hafeez Siddiqi
 tawus.tapes...@gmail.com wrote:

 Thanks Christian

 The only reservation we have against Liquibase is xml. There is a groovy
 support but I am not sure how good it is.  But I think it is the only way
 to go :-(

 I've used that in the past and indeed is XML based but it serve just
 for db schema updates, not data nor defaults.

 Cheers
 --
 Massimo
 http://meridio.blogspot.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: How to get a page url?

2012-03-09 Thread Thiago H. de Paula Figueiredo

On Fri, 09 Mar 2012 09:34:25 -0300, Az Madu azm...@gmail.com wrote:


Hi guys,


Hi!


So my questions are:

1 -  can we know what the url is of any page in our application
programmatically?


@Inject
private PageRenderLinkSource pageRenderLinkSource
...
then use one of its methods.


2 -  can we use this information and pass it as a parameter into another
page even if it is the other page?


Yes, but you can pass the page itself instead of its URL if you prefer (I  
would):


public class Page1 {

@InjectPage
private Page2 page2;

Object onActionFromStart() {
...
page2.setNextPage(SomeOtherPage.class);
}

}

public class Page2 {

@Persist(PersistenceConstants.FLASH)
private Class nextPage;

@Inject
private PageRenderLinkSource pageRenderLinkSource;

public void setNextPage(Class page) {
this.page = page;
}
public String getNextPageUrl() {
		return  
pageRenderLinkSource.createPageRenderLink(nextPage).toAbsoluteURI();

}
}

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



javascript to java question

2012-03-09 Thread csckid
I have created a text field dynamically using javascript. 
How can I retrieve that textfield value in java file once a button is
clicked?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/javascript-to-java-question-tp5550571p5550571.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: javascript to java question

2012-03-09 Thread Thiago H. de Paula Figueiredo

On Fri, 09 Mar 2012 10:31:48 -0300, csckid testnowsh...@gmail.com wrote:


I have created a text field dynamically using javascript.
How can I retrieve that textfield value in java file once a button is
clicked?


Use ComponentResources.createEventLink() to create an event, write some  
JavaScript that does an AJAX request containing the textfield value as a  
query parameter to the event URL and a Java method to handle this event.


--
Thiago H. de Paula Figueiredo
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
http://www.arsmachina.com.br

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



Re: tapestry5-db-migrations

2012-03-09 Thread Dmitriy Vsekhvalnov
sure thing. just sharing options.

honestly none of available migration frameworks for java works for me. so
ended up with home grown.

On Fri, Mar 9, 2012 at 2:46 PM, Taha Hafeez Siddiqi 
tawus.tapes...@gmail.com wrote:

 Thanks Dmitriy

 I had a look at flyway, but the advantage liquibase has over flyway is
 hibernate support. Also flyway does not provide a generic way of writing
 sqls(not sure)

 regards
 Taha

 On Mar 9, 2012, at 2:49 PM, Dmitriy Vsekhvalnov wrote:

  Take a look: http://code.google.com/p/flyway/
 
 
 
  On Fri, Mar 9, 2012 at 11:05 AM, Massimo Lusetti mluse...@gmail.com
 wrote:
 
  On Fri, Mar 9, 2012 at 3:18 AM, Taha Hafeez Siddiqi
  tawus.tapes...@gmail.com wrote:
 
  Thanks Christian
 
  The only reservation we have against Liquibase is xml. There is a
 groovy
  support but I am not sure how good it is.  But I think it is the only
 way
  to go :-(
 
  I've used that in the past and indeed is XML based but it serve just
  for db schema updates, not data nor defaults.
 
  Cheers
  --
  Massimo
  http://meridio.blogspot.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




Testing pages with spring usage issue

2012-03-09 Thread pieter
Hello,


In my application, I'm using tapestrySpringServlet in web.xml - loads
springcontext.xml to implement all my interfaces  make databaseconnection.
This all works fine.

But when I want to test my pages, I don't know how can I have this same
behaviour in an easy way (not that familiar with Spring  tapestry).

I tried to do the same as in normal junit test, but does not seem to
implement my interfaces.

And when i bind them in appmoduletest-class, my autowired jdbctemplates are
not working (ofcourse since i never passed database-info).

Thanks in advance !


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Testing-pages-with-spring-usage-issue-tp5550640p5550640.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 get a page url?

2012-03-09 Thread Az Madu
Hi Thiago,

Thanks for you assistance and reply.  Can I understand correctly what is
going on here and do the following:

The object 'SomeOtherPage' I need to be my Page 2 so:

public class Page1{
@Inject Page2 page2;

   Object onActionFromStart() {
   ...
   page2.setNextPage(Page2.class);  (This is what I need,
but is this the correct thing to do here?)
}
}

public class Page2{
   @Persist(PersistenceConstants.FLASH)
   private Page2 page2;  --- (You used Class nextPage in your
example, but is my understanding correct in what I've written, we are
referring to the page we are on (Page2 in this instance))

  @Inject
  private PageRenderLinkSource prls;

 public void setNextPage(Class page2){

 }



}


On Fri, Mar 9, 2012 at 1:12 PM, Thiago H. de Paula Figueiredo 
thiag...@gmail.com wrote:

 On Fri, 09 Mar 2012 09:34:25 -0300, Az Madu azm...@gmail.com wrote:

  Hi guys,


 Hi!


  So my questions are:

 1 -  can we know what the url is of any page in our application
 programmatically?


 @Inject
 private PageRenderLinkSource pageRenderLinkSource
 ...
 then use one of its methods.


  2 -  can we use this information and pass it as a parameter into another
 page even if it is the other page?


 Yes, but you can pass the page itself instead of its URL if you prefer (I
 would):

 public class Page1 {

@InjectPage
private Page2 page2;

Object onActionFromStart() {
...
page2.setNextPage(**SomeOtherPage.class);
}

 }

 public class Page2 {

@Persist(PersistenceConstants.**FLASH)
private Class nextPage;

@Inject
private PageRenderLinkSource pageRenderLinkSource;

public void setNextPage(Class page) {
this.page = page;
}
public String getNextPageUrl() {
return pageRenderLinkSource.**
 createPageRenderLink(nextPage)**.toAbsoluteURI();
}
 }

 --
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
 and instructor
 Owner, Ars Machina Tecnologia da Informação Ltda.
 http://www.arsmachina.com.br



Re: How to get a page url?

2012-03-09 Thread Thiago H. de Paula Figueiredo

On Fri, 09 Mar 2012 11:26:31 -0300, Az Madu azm...@gmail.com wrote:


Hi Thiago,


Hi!


The object 'SomeOtherPage' I need to be my Page 2 so:

public class Page1{
@Inject Page2 page2;

   Object onActionFromStart() {
   ...
   page2.setNextPage(Page2.class);  (This is what I need,
but is this the correct thing to do here?)
}
}


Oops, it should be Page1.class, not Page2. I'm sorry for the confusion.
If you just want to know which page you came from, yes, it's correct to do  
that, just pass the right Class instance. :)


Oops, I shouldn't have added the Page2 field. No need for it, as you're  
not any information besides the page itself.



public class Page2{
   @Persist(PersistenceConstants.FLASH)
   private Page2 page2;  --- (You used Class nextPage in your
example, but is my understanding correct in what I've written, we are
referring to the page we are on (Page2 in this instance))


You don't know what page you came from, so you cannot have this field be  
of type Page2. It should be class, otherwise the code won't even compile.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: How to get a page url?

2012-03-09 Thread Christian Riedel
Maybe it's appropriate to point to the excellent user guide for page navigation 
at this point? :-)

http://tapestry.apache.org/page-navigation.html



Am 09.03.2012 um 16:17 schrieb Thiago H. de Paula Figueiredo:

 On Fri, 09 Mar 2012 11:26:31 -0300, Az Madu azm...@gmail.com wrote:
 
 Hi Thiago,
 
 Hi!
 
 The object 'SomeOtherPage' I need to be my Page 2 so:
 
 public class Page1{
 @Inject Page2 page2;
 
   Object onActionFromStart() {
   ...
   page2.setNextPage(Page2.class);  (This is what I need,
 but is this the correct thing to do here?)
}
 }
 
 Oops, it should be Page1.class, not Page2. I'm sorry for the confusion.
 If you just want to know which page you came from, yes, it's correct to do 
 that, just pass the right Class instance. :)
 
 Oops, I shouldn't have added the Page2 field. No need for it, as you're not 
 any information besides the page itself.
 
 public class Page2{
   @Persist(PersistenceConstants.FLASH)
   private Page2 page2;  --- (You used Class nextPage in your
 example, but is my understanding correct in what I've written, we are
 referring to the page we are on (Page2 in this instance))
 
 You don't know what page you came from, so you cannot have this field be of 
 type Page2. It should be class, otherwise the code won't even compile.
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
 instructor
 Owner, Ars Machina Tecnologia da Informação Ltda.
 http://www.arsmachina.com.br
 
 -
 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



Dynamic mixins

2012-03-09 Thread Brian Long
Hi all,

have a problem that seems easy to resolve but I'm making hard work of
it, was hoping someone here can help me out. I have a simple component
I want to use on different pages in my application, and there's a
mixin associated with the select component in this simple component,
but I want to use a different mixin depending on which type of page
the component is located.

so I have in my component.tml

t:label t:for=residentFeeInquiry id=resident-label/
t:select t:id=residentFeeInquiry
t:validate=required t:value=residentFeeInquiry
t:model=senderHasIdSelectModel t:encoder=senderHasIdValueEncoder
t:mixins=mixin
t:blankOption=always
t:blankLabel=message:PLEASE_SELECT t:label=message:RESIDENT
tabindex=${getResidentTabIndex()}/

and in my component.java

public String getMixin() {
if (getContainer() instanceof SendMoneyTransfer) {
return feefromresidentupdater;
}
return singlesourceformfieldupdater;
}

getting Unable to resolve 'mixin' to a mixin class name. Have tried
prop:mixin, ${mixin}, ${prop:mixin} etc. to no avail, would like to
avoid having multiple select components with different mixins and an
if else(s) if possible?

Thanks for listening! Brian.

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



Re: Dynamic mixins

2012-03-09 Thread Christian Riedel
Hi,

thinking of the #1 mantra in tapestry static structure, dynamic behavior, I 
guess you need to look for another approach.

Try adding the mixin to your component, not to the component inside of the 
component. Maybe you need to change your implementation a bit (passing some 
parameters) but it should work without an additional if clause.

Cheers
Christian


Am 09.03.2012 um 17:00 schrieb Brian Long:

 Hi all,
 
 have a problem that seems easy to resolve but I'm making hard work of
 it, was hoping someone here can help me out. I have a simple component
 I want to use on different pages in my application, and there's a
 mixin associated with the select component in this simple component,
 but I want to use a different mixin depending on which type of page
 the component is located.
 
 so I have in my component.tml
 
t:label t:for=residentFeeInquiry id=resident-label/
t:select t:id=residentFeeInquiry
 t:validate=required t:value=residentFeeInquiry
 t:model=senderHasIdSelectModel t:encoder=senderHasIdValueEncoder
 t:mixins=mixin
t:blankOption=always
 t:blankLabel=message:PLEASE_SELECT t:label=message:RESIDENT
 tabindex=${getResidentTabIndex()}/
 
 and in my component.java
 
public String getMixin() {
   if (getContainer() instanceof SendMoneyTransfer) {
   return feefromresidentupdater;
   }
   return singlesourceformfieldupdater;
}
 
 getting Unable to resolve 'mixin' to a mixin class name. Have tried
 prop:mixin, ${mixin}, ${prop:mixin} etc. to no avail, would like to
 avoid having multiple select components with different mixins and an
 if else(s) if possible?
 
 Thanks for listening! Brian.
 
 -
 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: Dynamic mixins

2012-03-09 Thread Robert Zeigler
Hi Brian,

This is a case of static structure, dynamic behavior. Tapestry needs to know 
the mixin at page/component creation time, rather than at runtime.
This early binding, if you will, let's tapestry do a lot of optimizations and 
enables behavior that would be otherwise cost-prohibitive (eg: I can't think of 
a reasonable way to implement @BindParameter if runtime-mixin selection was 
allowed).

Here's a potential workaround:

t:block id=fee
  t:label t:for=residentFeeInquiryWithFeeMixin/
  t:select t:id=residentFeeInquiryWithFeeMixin 
t:mixins=feefromresidentupdater clientId=residentFeeInquiry .../
/t:block

t:block id=singlesource
  t:label t:for=residentFeeInquiryWithSSMixin/
  t:select t:id=residentFeeInquiryWithSSMixin 
t:mixins=singlesourceformfieldupdater clientId=residentFeeInquiry .../
/t:block

t:delegate to=prop:mixinBlock/

.java:

@Inject
private Block fee;
private Block singlesource;

public Block getMixinBlock() {
  if (getContainer() instanceof SendMoneyTransfer)
return fee;
  return singlesource;
}

HTH,

Robert

On Mar 9, 2012, at 3/910:00 AM , Brian Long wrote:

 Hi all,
 
 have a problem that seems easy to resolve but I'm making hard work of
 it, was hoping someone here can help me out. I have a simple component
 I want to use on different pages in my application, and there's a
 mixin associated with the select component in this simple component,
 but I want to use a different mixin depending on which type of page
 the component is located.
 
 so I have in my component.tml
 
t:label t:for=residentFeeInquiry id=resident-label/
t:select t:id=residentFeeInquiry
 t:validate=required t:value=residentFeeInquiry
 t:model=senderHasIdSelectModel t:encoder=senderHasIdValueEncoder
 t:mixins=mixin
t:blankOption=always
 t:blankLabel=message:PLEASE_SELECT t:label=message:RESIDENT
 tabindex=${getResidentTabIndex()}/
 
 and in my component.java
 
public String getMixin() {
   if (getContainer() instanceof SendMoneyTransfer) {
   return feefromresidentupdater;
   }
   return singlesourceformfieldupdater;
}
 
 getting Unable to resolve 'mixin' to a mixin class name. Have tried
 prop:mixin, ${mixin}, ${prop:mixin} etc. to no avail, would like to
 avoid having multiple select components with different mixins and an
 if else(s) if possible?
 
 Thanks for listening! Brian.
 
 -
 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: Tapestry Forums

2012-03-09 Thread Taha Hafeez Siddiqi
I was looking at the hits my blog is getting these days and on an average there 
are about 150 hits/day although I have not been blogging much. Also tapestry is 
being used across the world, see the post.

http://tawus.wordpress.com/2012/03/09/tapestry-conquering-the-world/

regards
Taha

On Mar 7, 2012, at 6:01 PM, TechniciuM wrote:

 @Alex,
 well currently my university which attends more than 1000 students has focus
 on Tapestry5.3., and strictly speaking we study only that framework in the
 web programming. Aside from it, I know one state university in Skopje which
 has similar program and is home to near 1500 students. If you do the math on
 only these two, you will see how much popularity is conserved for the
 upcoming years for Tapestry. ;)
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Tapestry-Forums-tp5541874p5543967.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



Re: Tapestry Forums

2012-03-09 Thread Thiago H. de Paula Figueiredo
On Fri, 09 Mar 2012 13:39:40 -0300, Taha Hafeez Siddiqi  
tawus.tapes...@gmail.com wrote:


I was looking at the hits my blog is getting these days and on an  
average there are about 150 hits/day although I have not been blogging  
much. Also tapestry is being used across the world, see the post.


http://tawus.wordpress.com/2012/03/09/tapestry-conquering-the-world/


Nice! But wait, no one from Greenland? :P

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Problem using t:output format for numbers

2012-03-09 Thread hese
Hi,

I have a Long object which has to be printed right justified in a table in
#,### format.  I tried 

t:output format=literal:#,### value=imps/

This writes it literally as #,### in the output.  What I am doing wrong? 
Also how to right justify it in the column?

Thanks


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Problem-using-t-output-format-for-numbers-tp5551573p5551573.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: Problem using t:output format for numbers

2012-03-09 Thread Thiago H. de Paula Figueiredo

On Fri, 09 Mar 2012 17:00:42 -0300, hese 1024h...@gmail.com wrote:


Hi,


Hi!

I have a Long object which has to be printed right justified in a table  
in

#,### format.  I tried

t:output format=literal:#,### value=imps/

This writes it literally as #,### in the output.  What I am doing wrong?


You can format the number in your Java class if you want. That's what I'd  
do.



Also how to right justify it in the column?


CSS.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



No object of type org.apache.tapestry5.services.javascript.JavaScriptSupport is available from the Environment.

2012-03-09 Thread Jochen Frey
When I am trying to access JavaScriptSupport while handling an AJAX event, I 
seem to consistently get this exception (below).  The code works fine if I am 
not trying to access JavaScriptSupport within the request handler.

Oddly enough, the error message in the browser says that it's available (see 
below as well).

This seems to be related to 
http://tapestry.1045711.n5.nabble.com/T5-2-No-object-of-type-ClientBehaviorSupport-is-available-from-the-Environment-td2652953.html,
 but it looks like the approach for generating this may have changed in 5.3?

Thanks!
Jochen



org.apache.tapestry5.ioc.util.UnknownValueException
No object of type org.apache.tapestry5.services.javascript.JavaScriptSupport is 
available from the Environment.
availableValues
Environmentals:

org.apache.tapestry5.TrackableComponentEventCallback
org.apache.tapestry5.services.ComponentEventResultProcessor
org.apache.tapestry5.services.javascript.JavaScriptSupport
Filter stack frames Stack trace
org.apache.tapestry5.internal.services.EnvironmentImpl.peekRequired(EnvironmentImpl.java:88)
org.apache.tapestry5.internal.services.EnvironmentalShadowBuilderImpl$1$1.advise(EnvironmentalShadowBuilderImpl.java:62)
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:86)
com.beckon.app.components.settings.org.OrgCategory.init(OrgCategory.java:91)
com.beckon.app.components.settings.org.OrgCategory.onAddSub(OrgCategory.java:107)
com.beckon.app.components.settings.org.OrgCategory.dispatchComponentEvent(OrgCategory.java)
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:923)
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1106)
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3200(ComponentPageElementImpl.java:61)
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1051)
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1048)
org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:146)
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1047)
org.apache.tapestry5.internal.services.AjaxComponentEventRequestHandler.handle(AjaxComponentEventRequestHandler.java:110)
org.apache.tapestry5.internal.services.ajax.AjaxFormUpdateFilter.handle(AjaxFormUpdateFilter.java:56)
org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
org.apache.tapestry5.upload.internal.services.UploadExceptionFilter.handle(UploadExceptionFilter.java:75)
org.apache.tapestry5.services.TapestryModule$40.handle(TapestryModule.java:2456)
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handleComponentEvent(ComponentRequestHandlerTerminator.java:43)
com.beckon.app.services.ValidAccountFilter.handleComponentEvent(ValidAccountFilter.java:42)
com.beckon.app.services.PageProtectionFilter.handleComponentEvent(PageProtectionFilter.java:42)
org.apache.tapestry5.services.InitializeActivePageName.handleComponentEvent(InitializeActivePageName.java:39)
org.tynamo.security.SecurityComponentRequestFilter.handleComponentEvent(SecurityComponentRequestFilter.java:42)
org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:46)
org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)
com.beckon.app.services.AppModule$1.service(AppModule.java:154)
com.beckon.app.services.AppModule$2.service(AppModule.java:255)
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902)
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892)
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:105)
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:95)
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:119)
org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:253)
org.tynamo.security.services.impl.SecurityConfiguration$2.call(SecurityConfiguration.java:106)
org.tynamo.security.services.impl.SecurityConfiguration$2.call(SecurityConfiguration.java:104)
org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)

Re: No object of type org.apache.tapestry5.services.javascript.JavaScriptSupport is available from the Environment.

2012-03-09 Thread Jochen Frey
To answer my own question:

Because there is nothing that is getting rendered at that stage (during the 
event handler), there is no JavaScriptSupport available (because there's no 
place it could write to just yet).

Once the Ajax response is rendered, JavaScriptSupport is available.

Two helpful links for this:

- The solution to the problem (how to get Tapestry Initializer Calls into the 
Response): 
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Trigger.html

- General information for how to deal with the Environment: 
http://comments.gmane.org/gmane.comp.java.tapestry.user/93303

J

On Mar 9, 2012, at 12:21 PM, Jochen Frey wrote:

 When I am trying to access JavaScriptSupport while handling an AJAX event, 
 I seem to consistently get this exception (below).  The code works fine if I 
 am not trying to access JavaScriptSupport within the request handler.
 
 Oddly enough, the error message in the browser says that it's available (see 
 below as well).
 
 This seems to be related to 
 http://tapestry.1045711.n5.nabble.com/T5-2-No-object-of-type-ClientBehaviorSupport-is-available-from-the-Environment-td2652953.html,
  but it looks like the approach for generating this may have changed in 5.3?
 
 Thanks!
 Jochen
 
 
 
 org.apache.tapestry5.ioc.util.UnknownValueException
 No object of type org.apache.tapestry5.services.javascript.JavaScriptSupport 
 is available from the Environment.
 availableValues
 Environmentals:
 
 org.apache.tapestry5.TrackableComponentEventCallback
 org.apache.tapestry5.services.ComponentEventResultProcessor
 org.apache.tapestry5.services.javascript.JavaScriptSupport
 Filter stack frames Stack trace
 org.apache.tapestry5.internal.services.EnvironmentImpl.peekRequired(EnvironmentImpl.java:88)
 org.apache.tapestry5.internal.services.EnvironmentalShadowBuilderImpl$1$1.advise(EnvironmentalShadowBuilderImpl.java:62)
 org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:86)
 com.beckon.app.components.settings.org.OrgCategory.init(OrgCategory.java:91)
 com.beckon.app.components.settings.org.OrgCategory.onAddSub(OrgCategory.java:107)
 com.beckon.app.components.settings.org.OrgCategory.dispatchComponentEvent(OrgCategory.java)
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:923)
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1106)
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3200(ComponentPageElementImpl.java:61)
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1051)
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1048)
 org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:146)
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1047)
 org.apache.tapestry5.internal.services.AjaxComponentEventRequestHandler.handle(AjaxComponentEventRequestHandler.java:110)
 org.apache.tapestry5.internal.services.ajax.AjaxFormUpdateFilter.handle(AjaxFormUpdateFilter.java:56)
 org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
 org.apache.tapestry5.upload.internal.services.UploadExceptionFilter.handle(UploadExceptionFilter.java:75)
 org.apache.tapestry5.services.TapestryModule$40.handle(TapestryModule.java:2456)
 org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handleComponentEvent(ComponentRequestHandlerTerminator.java:43)
 com.beckon.app.services.ValidAccountFilter.handleComponentEvent(ValidAccountFilter.java:42)
 com.beckon.app.services.PageProtectionFilter.handleComponentEvent(PageProtectionFilter.java:42)
 org.apache.tapestry5.services.InitializeActivePageName.handleComponentEvent(InitializeActivePageName.java:39)
 org.tynamo.security.SecurityComponentRequestFilter.handleComponentEvent(SecurityComponentRequestFilter.java:42)
 org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:46)
 org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)
 com.beckon.app.services.AppModule$1.service(AppModule.java:154)
 com.beckon.app.services.AppModule$2.service(AppModule.java:255)
 org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
 org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902)
 org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892)
 org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
 org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:105)
 

Persist variable being lost

2012-03-09 Thread Seamus
So I have a page which is basically just updating three persisted variables.
(Code below). One is being updated when a user changes selection on a
select input  (selectedNode). One is a string when a user enters text in a
simple text field (nodeNameValue). The last is a string I am manipulating in
the code (parentPath).

The select and parentPath are in a zone so when the user changes the select
it updates both.

This works fine and when setting a breakpoint in the onValueChanged I can
see all 3 variables hold what I expect. The problem is when I click the
submit button selectedNode is null and all the others are exactly as I would
expect.

This is an application written with Tapestry 5.3.2. I am thinking its some
odd behavior from the Zone? Probably not a bug just that I am doing
something wrong. I have put in a work around (hack) but would really like to
understand what my mistake is.

TML:


Java:



For the GenericSelectModel The source can be found:
http://jumpstart.doublenegative.com.au/jumpstart/examples/select/easyobject

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Persist-variable-being-lost-tp5551835p5551835.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



problem logging into webapp using acegi

2012-03-09 Thread Harish Patharla
Hi,

I get this error when trying to login in. I searched forums where this 
exception was asked about but nobody answered.one answer was to use log4j but 
don't know how to do it.

Here is the stacktrace:
org.acegisecurity.intercept.AbstractSecurityInterceptor 
(AbstractSecurityInterceptor.java:284) - Secure object: 
[ROLE_RLE-BLR-DEV-JUNIOR AUTOMATION DEVELOPER-STAFF, 
ROLE_RLE-BLR-DEV-AUTOMATION QA TEAM LEADER, ROLE_RLE-BLR-DEV-QA Engineer 
4-staff]; ConfigAttributes: [ROLE_RLE-BLR-DEV-JUNIOR AUTOMATION 
DEVELOPER-STAFF, ROLE_RLE-BLR-DEV-AUTOMATION QA TEAM LEADER, 
ROLE_RLE-BLR-DEV-QA Engineer 4-staff]
2012-03-08 12:26:37,660 DEBUG [http-apr-8080-exec-8] 
org.acegisecurity.intercept.AbstractSecurityInterceptor 
(AbstractSecurityInterceptor.java:317) - Previously Authenticated: 
org.acegisecurity.providers.UsernamePasswordAuthenticationToken@415cd0cc: 
Username: org.acegisecurity.userdetails.ldap.LdapUserDetailsImpl@1679bb1; 
Password: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: 
ROLE_RLE-BLR-DEV-QA ENGINEER 4-STAFF
2012-03-09 14:25:14,208 ERROR [http-apr-8080-exec-6] 
org.apache.tapestry5.internal.services.RenderQueueImpl 
(RenderQueueImpl.java:82) - Render queue error in BeginRender[Start]: Access is 
denied
org.apache.tapestry5.ioc.internal.util.TapestryException: Access is denied
at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:922)
at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$300(ComponentPageElementImpl.java:50)
at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$11.render(ComponentPageElementImpl.java:351)
at 
org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72)
at 
org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:108)
at 
$PageRenderQueue_135f7b2bc8c.render($PageRenderQueue_135f7b2bc8c.java)
at 
$PageRenderQueue_135f7b2bc8a.render($PageRenderQueue_135f7b2bc8a.java)
at 
org.apache.tapestry5.services.TapestryModule$19.renderMarkup(TapestryModule.java:1199)
at 
org.apache.tapestry5.services.TapestryModule$28.renderMarkup(TapestryModule.java:1550)
at 
$MarkupRenderer_135f7b2bc8e.renderMarkup($MarkupRenderer_135f7b2bc8e.java)


Thanks,
Harish P


The information contained in this email is strictly confidential and for the 
use of the addressee only, unless otherwise indicated. If you are not the 
intended recipient, please do not read, copy, use or disclose to others this 
message or any attachment. Please also notify the sender by replying to this 
email or by telephone (+44 (0)20 7896 0011) and then delete the email and any 
copies of it. Opinions, conclusions (etc) that do not relate to the official 
business of this company shall be understood as neither given nor endorsed by 
it. IG Group Holdings plc is a company registered in England and Wales under 
number 04677092. VAT registration number 761 2978 07. Registered Office: Cannon 
Bridge House, 25 Dowgate Hill, London EC4R 2YA. Listed on the London Stock 
Exchange. Its subsidiaries IG Markets Limited and IG Index Limited are 
authorised and regulated by the Financial Services Authority (IG Markets 
Limited FSA registration number 195355 and IG Index Limited FSA registration 
number 114059).


html pentaho report missing some data

2012-03-09 Thread ram89
in my project when i generate html report one agent record missing but his
records are calculated into grand total. instead of showing his records 

blank space is displayed at the reports.when i change orderby name the agent
who missed in previous report shows, but another agent data is missing in
report. but when i generate pdf or XML report for the same data it shows all
the records properly for the same design.

please give me the solution., i am in a hurry to complete the project.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/html-pentaho-report-missing-some-data-tp5550783p5550783.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: Persist variable being lost

2012-03-09 Thread Thiago H. de Paula Figueiredo

Hi!

Your code and template weren't posted to the mailing list. Here's one  
method:


public Object onSubmitFromRequestForm() {

if (requestForm.isValid()) {
alertManager.alert(Duration.TRANSIENT, Severity.INFO, 
Request Sent);
return myOtherPage;
} else {
return this;
}
}

Never return this in event handler methods: return null instead. In  
onSubmitFromRequestForm, you're causing a redirect to the same page  
instead of letting it run normally. I don't know if this will solve your  
problem, but that's something you shouldn't do anyway.


Two additional comments:

* You don't need to use the Submit component for form submissions at all.  
You just need to use it when you have more than one submit button in order  
to know which one was clicked.


* Do validations in the validate event of Form.


On Fri, 09 Mar 2012 19:02:26 -0300, Seamus smino...@yahoo.com wrote:

So I have a page which is basically just updating three persisted  
variables.

(Code below). One is being updated when a user changes selection on a
select input  (selectedNode). One is a string when a user enters text  
in a
simple text field (nodeNameValue). The last is a string I am  
manipulating in

the code (parentPath).

The select and parentPath are in a zone so when the user changes the  
select

it updates both.

This works fine and when setting a breakpoint in the onValueChanged I can
see all 3 variables hold what I expect. The problem is when I click the
submit button selectedNode is null and all the others are exactly as I  
would

expect.

This is an application written with Tapestry 5.3.2. I am thinking its  
some

odd behavior from the Zone? Probably not a bug just that I am doing
something wrong. I have put in a work around (hack) but would really  
like to

understand what my mistake is.

TML:


Java:



For the GenericSelectModel The source can be found:
http://jumpstart.doublenegative.com.au/jumpstart/examples/select/easyobject

--
View this message in context:  
http://tapestry.1045711.n5.nabble.com/Persist-variable-being-lost-tp5551835p5551835.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




--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
http://www.arsmachina.com.br

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



Re: html pentaho report missing some data

2012-03-09 Thread Thiago H. de Paula Figueiredo
Are you sure you sent this message to the right mailing list? ;) In  
addition, without posting the Tapestry code and template related to your  
problem, you'll never get good answers.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Problem using t:output format for numbers

2012-03-09 Thread hese

Thanks.  I was hoping I could use 'format' to get this done by using
something as simple as '%,13d', but looks like I'll have to resort to a java
method and CSS.

According to tapestry documentation format takes a java.text.Format, so
wondering why '#,###' doesn't work.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Problem-using-t-output-format-for-numbers-tp5551573p5551851.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: Problem with generated javascript and zone update

2012-03-09 Thread trsvax
My guess would be there is something in your script that cannot be sent in a
JSONObject. Without a zone the script is just included in the HTML but a
zone update returns a JSONObject and there are rules about what can be
included. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Problem-with-generated-javascript-and-zone-update-tp5550938p5551858.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: Simple CMS / content editor component

2012-03-09 Thread Ville
Hi,

if there is need to dual / triple license, I'm happy to add those. Also, if
anyone is interested to continue the work on T5 fck/ck editor I'm more than
happy to share it under any license wished.

We've been using the CK variant in production about a year but I have never
had the time to finish the work and publish it. I hope that this will change
in the near future, but I can't make any promises.

 - Ville

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Simple-CMS-content-editor-component-tp5494712p5551907.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: Simple CMS / content editor component

2012-03-09 Thread Kalle Korhonen
Dragan's tapestry-ckeditor is now available as Tynamo module
(https://nexus.codehaus.org/content/groups/snapshots-group/org/tynamo/tapestry-ckeditor/0.0.1-SNAPSHOT/).
 I did evaluate yours/the fckeditor on Kenai but Dragan's approach
seemed cleaner. Are the any major advantages or features this codebase
has over Dragan's? If so, perhaps we could just combine all of them
into one.

Kalle


On Fri, Mar 9, 2012 at 2:46 PM, Ville ville.virta...@cerion.fi wrote:
 Hi,

 if there is need to dual / triple license, I'm happy to add those. Also, if
 anyone is interested to continue the work on T5 fck/ck editor I'm more than
 happy to share it under any license wished.

 We've been using the CK variant in production about a year but I have never
 had the time to finish the work and publish it. I hope that this will change
 in the near future, but I can't make any promises.

  - Ville

 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Simple-CMS-content-editor-component-tp5494712p5551907.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



Re: Service internal state and reload

2012-03-09 Thread Howard Lewis Ship
Not currently; I've had some thoughts on that, but didn't pursue it.

Live reloading is meant to be useful during development ONLY; it is
not intended for use during production and is largely disabled in
production.

On Fri, Mar 9, 2012 at 3:13 PM, Dimitris Zenios
dimitris.zen...@gmail.com wrote:
 Is there a way to pass service internal state(listeners) from old
 service to new service when reloading?

 Regards
 Dimitris Zenios

 -
 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

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



Re: Service internal state and reload

2012-03-09 Thread Dimitris Zenios
The idea of a map passed to the old instance and then to the new
instance (https://issues.apache.org/jira/browse/TAP5-1287) looks
really nice and simple to implement.I dont know if you have anything
better in mind though. Shall i file a jira for that?

Dimitris Zenios

On Sat, Mar 10, 2012 at 2:20 AM, Howard Lewis Ship hls...@gmail.com wrote:
 Not currently; I've had some thoughts on that, but didn't pursue it.

 Live reloading is meant to be useful during development ONLY; it is
 not intended for use during production and is largely disabled in
 production.

 On Fri, Mar 9, 2012 at 3:13 PM, Dimitris Zenios
 dimitris.zen...@gmail.com wrote:
 Is there a way to pass service internal state(listeners) from old
 service to new service when reloading?

 Regards
 Dimitris Zenios

 -
 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

 -
 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: Problem using t:output format for numbers

2012-03-09 Thread Thiago H. de Paula Figueiredo

On Fri, 09 Mar 2012 19:14:40 -0300, hese 1024h...@gmail.com wrote:


Thanks.  I was hoping I could use 'format' to get this done by using
something as simple as '%,13d', but looks like I'll have to resort to a  
java method and CSS.

According to tapestry documentation format takes a java.text.Format, so
wondering why '#,###' doesn't work.


Yep, it takes a Format, but you provided a String, and Tapestry itself  
only provides a coercion from String to DateFormat, not to NumberFormat.  
Summary: the component is using a DateFormat instead of a NumberFormat. If  
you passed a NumberFormat to the format parameter, it would work.


You can very easily create an OutputNumber component if you want. Or, not  
so easily, create a binding in which you can specify the value and the  
format.


Regarding the alignment: it should be done by CSS because there's no other  
way of doing that (unless you want to resort to formatting attributes in  
HTML, which suck). This is not a limitation of Tapestry: it's just how  
HTML works.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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