ascii code 153 (tm) not displaying properly

2011-03-28 Thread Paul Stanton

Hi all,

I'm having some character set issues in that I can't get #153; to 
display as ™ in my tapestry page.


Here's my doctype and html declarations:

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; 
xmlns:p=tapestry:parameter


In the same page #169; displays fine as ©

Any ideas?

thanks, paul.

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



Writing a commandline script that uses IOC+Hibernate

2011-03-28 Thread tmarx78
hello everyone!

i am trying to write a script that will use tapestry-hibernate to will do some 
database processing tasks from a command line. It also needs to access IOC 
Services:


public static void main(String[] args) {
RegistryBuilder builder = new RegistryBuilder();
builder.add(HibernateCoreModule.class);

Registry registry = builder.build();
registry.performRegistryStartup();

HibernateSessionSource hello = registry
.getService(HibernateSessionSource.class);
Session session = hello.getSessionFactory().openSession();

Something something = new Something();
something.setName(test);

session.persist(type);
registry.cleanupThread();
registry.shutdown();
}

could it work like that or is there something fundamentally wrong here or 
missing?

thanks!

tobias

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



Re: Writing a commandline script that uses IOC+Hibernate

2011-03-28 Thread Ulrich Stärk
Don't forget to commit your transactions. But apart from that this should work.

Uli

On 28.03.2011 11:24, tmar...@gmx.de wrote:
 hello everyone!
 
 i am trying to write a script that will use tapestry-hibernate to will do 
 some database processing tasks from a command line. It also needs to access 
 IOC Services:
 
 
 public static void main(String[] args) {
   RegistryBuilder builder = new RegistryBuilder();
   builder.add(HibernateCoreModule.class);
 
   Registry registry = builder.build();
   registry.performRegistryStartup();
 
   HibernateSessionSource hello = registry
   .getService(HibernateSessionSource.class);
   Session session = hello.getSessionFactory().openSession();
   
   Something something = new Something();
   something.setName(test);
 
   session.persist(type);
   registry.cleanupThread();
   registry.shutdown();
   }
 
 could it work like that or is there something fundamentally wrong here or 
 missing?
 
 thanks!
 
 tobias
 
 -
 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 combo box - Tapestry 5.2.2

2011-03-28 Thread robnangle

Mark wrote:
 
 gt; Atcach, can you give a complete example (with .tml and controler
 code), with
 gt; multiple select to refresh.
 
 Take a look at this as well:
 http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/ajaxselect1
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


Hi,
I have a similar problem and would like to implement the above ajax select.
However having not really used javascript before im wondering where does the
javascript file go in the tapestry file system?

Cheers

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4267334.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: Dynamic combo box - Tapestry 5.2.2

2011-03-28 Thread robnangle
I could possibly have it in the correct place but am gettint this error:

Failure creating embedded component 'carMake' of
FantasyGaa.pages.ajax.AjaxSelect1: Unable to resolve 'zoneUpdater' to a
mixin class name. Available mixin types: Autocomplete, DiscardBody,
NotEmpty, RenderDisabled, RenderInformals, TriggerFragment.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4267337.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: ascii code 153 (tm) not displaying properly

2011-03-28 Thread Nikola Milikic
Hi Paul,

I recently had the same problem and solved it by putting the next doctype
declaration in my layout page

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;


It should also work if you are not using the layout page but in that case
you need to set this in every page separately.

Best,
Nikola

Email: nikola.mili...@gmail.com
URL:   nikola.milikic.info


On Mon, Mar 28, 2011 at 8:58 AM, Paul Stanton p...@mapshed.com.au wrote:

 Hi all,

 I'm having some character set issues in that I can't get #153; to display
 as ™ in my tapestry page.

 Here's my doctype and html declarations:

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
 html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
 xmlns:p=tapestry:parameter

 In the same page #169; displays fine as ©

 Any ideas?

 thanks, paul.

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




Generic beaneditorform

2011-03-28 Thread nquirynen
I have a page where i can edit 1 object that has been selected to edit. This
object can be a different datatype everytime depending on some properties
set in the page.


//Here i get the right object
public Object getObject() {
return dao.getDaoForEntityType(entityType).get(objectId);
}
//the beaneditform
t:beaneditform object=object include=${fields} /


Ofcourse this results in Bean editor model for java.lang.Object does not
contain a property named ...

Any tutorials or examples on this done before, or hints on how to achieve
this are really appreciated. 

Thanks!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Generic-beaneditorform-tp4267477p4267477.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



Leaving the tapestry community

2011-03-28 Thread Inge Solvoll
Hi!

In a couple of weeks, I'm leaving my current employer. You probably won't
hear from me for a while, since my new employer isn't into web development
yet. But they might be soon. In that case, I hope to bring T5 to the table
like I have done in my current job. If I manage to do that, it's a
win-win-win situation: Me, my employer and the tapestry community wins.

Wish me luck :)


Re: Leaving the tapestry community

2011-03-28 Thread Josh Kamau
 ..nobody *ever got fired for buying IBM ...


GOOD LUCK.

JOSH.
*


Re: Leaving the tapestry community

2011-03-28 Thread Igor Drobiazko
Good luck and hope to see you soon.

On Mon, Mar 28, 2011 at 2:50 PM, Inge Solvoll inge.tapes...@gmail.comwrote:

 Hi!

 In a couple of weeks, I'm leaving my current employer. You probably won't
 hear from me for a while, since my new employer isn't into web development
 yet. But they might be soon. In that case, I hope to bring T5 to the table
 like I have done in my current job. If I manage to do that, it's a
 win-win-win situation: Me, my employer and the tapestry community wins.

 Wish me luck :)




-- 
Best regards,

Igor Drobiazko
http://tapestry5.de


Re: Generic beaneditorform

2011-03-28 Thread Taha Hafeez
1) You must return the correct type e.g

public SomeObject getObject(){
return (SomeObject)dao.getDaoForEntityType(entityType).get(objectId);
}

2) Or you could create your own model and specify it using 'model' parameter

3) (AFAIK) Or wait for 5.3 as it will have this kind of support

regards
Taha



On Mon, Mar 28, 2011 at 5:33 PM, nquirynen nat...@pensionarchitects.bewrote:

 I have a page where i can edit 1 object that has been selected to edit.
 This
 object can be a different datatype everytime depending on some properties
 set in the page.


 //Here i get the right object
 public Object getObject() {
return dao.getDaoForEntityType(entityType).get(objectId);
 }
 //the beaneditform
 t:beaneditform object=object include=${fields} /


 Ofcourse this results in Bean editor model for java.lang.Object does not
 contain a property named ...

 Any tutorials or examples on this done before, or hints on how to achieve
 this are really appreciated.

 Thanks!

 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/Generic-beaneditorform-tp4267477p4267477.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: Leaving the tapestry community

2011-03-28 Thread Muhammad Mohsen
I wish I had a flexible employer like you do :(

Good luck with your new job :)

On Mon, Mar 28, 2011 at 3:13 PM, Igor Drobiazko igor.drobia...@gmail.comwrote:

 Good luck and hope to see you soon.

 On Mon, Mar 28, 2011 at 2:50 PM, Inge Solvoll inge.tapes...@gmail.com
 wrote:

  Hi!
 
  In a couple of weeks, I'm leaving my current employer. You probably won't
  hear from me for a while, since my new employer isn't into web
 development
  yet. But they might be soon. In that case, I hope to bring T5 to the
 table
  like I have done in my current job. If I manage to do that, it's a
  win-win-win situation: Me, my employer and the tapestry community wins.
 
  Wish me luck :)
 



 --
 Best regards,

 Igor Drobiazko
 http://tapestry5.de




-- 
*Regards,*
*Muhammad Gelbana
Java Developer*


Re: Generic beaneditorform

2011-03-28 Thread Alejandro Scandroli
Hi

* The first (and simpler) options is to provide the beanModel via the
model parameter.
beanModel = beanModelSource.createEditModel(entityType, messages);

With this option you can't use the add, exclude or include
parameters in the template, if you need to change something you will
have to modify the beanModel in your Java code.

* Another option (how Tynamo is doing it) is to have a specific
Binding to compute the bindingType on the fly.
Check it out: 
http://svn.codehaus.org/tynamo/trunk/tapestry-model/tapestry-model-core/src/main/java/org/tynamo/bindings/
If you use this option your component could look something like this:
t:beaneditform object=mb:object include=${fields} 

Of course in this case the object property can't be null (never ever).

I hope it helps.
Cheers.
Alejandro.


On Mon, Mar 28, 2011 at 2:03 PM, nquirynen nat...@pensionarchitects.be wrote:
 I have a page where i can edit 1 object that has been selected to edit. This
 object can be a different datatype everytime depending on some properties
 set in the page.


 //Here i get the right object
 public Object getObject() {
        return dao.getDaoForEntityType(entityType).get(objectId);
 }
 //the beaneditform
 t:beaneditform object=object include=${fields} /


 Ofcourse this results in Bean editor model for java.lang.Object does not
 contain a property named ...

 Any tutorials or examples on this done before, or hints on how to achieve
 this are really appreciated.

 Thanks!

 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Generic-beaneditorform-tp4267477p4267477.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: Generic beaneditorform

2011-03-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Mar 2011 11:30:29 -0300, Alejandro Scandroli  
alejandroscandr...@gmail.com wrote:



Hi

* The first (and simpler) options is to provide the beanModel via the
model parameter.
beanModel = beanModelSource.createEditModel(entityType, messages);

With this option you can't use the add, exclude or include
parameters in the template, if you need to change something you will
have to modify the beanModel in your Java code.


I can't test it now, but providing your own BeanModel doesn't prevent you  
from using the add, exclude and include parameters at all. It may not make  
much sense, but I'm sure you can use them.


--
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: Generic beaneditorform

2011-03-28 Thread Alejandro Scandroli
On Mon, Mar 28, 2011 at 4:40 PM, Thiago H. de Paula Figueiredo
thiag...@gmail.com wrote:
 On Mon, 28 Mar 2011 11:30:29 -0300, Alejandro Scandroli
 alejandroscandr...@gmail.com wrote:

 Hi

 * The first (and simpler) options is to provide the beanModel via the
 model parameter.
 beanModel = beanModelSource.createEditModel(entityType, messages);

 With this option you can't use the add, exclude or include
 parameters in the template, if you need to change something you will
 have to modify the beanModel in your Java code.

 I can't test it now, but providing your own BeanModel doesn't prevent you
 from using the add, exclude and include parameters at all. It may not make
 much sense, but I'm sure you can use them.


Hmmm, maybe I'm doing something wrong, but I wasn't able to make it
work and believe me I've tried.
Also, if you look at the code both methods
BeanEditForm.onPrepareFromForm and BeanEditor.doPrepare will check for
model==null before applying BeanModelUtils.modify. Maybe it's an
unwanted behavior or a side effect, but it looks like you can't mix
them.
Please let me know if you think there is another way.

Saludos.
Alejandro.

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



dynamically changing event link context on client side using js

2011-03-28 Thread Joel Halbert
Hi,

I have a typical ajax event link e.g. 

a t:type=eventlink t:id=ignore zone=resultsZone

I want to be able to update the context on the clientside using
javascript, dynamically.
(or alternatively attach a request parameter and have this submitted
with the link).

What's the easiest way to accomplish this?

I can modify the link to change the url to append my context (or request
parameter)  but it seems these post page-load modifications to the
anchor href are ignored when the links is submitted.

Thanks,
Joel


Tapestry Perf4J

2011-03-28 Thread Jérôme BERNARD
Hi,

Quick email to let you know that if some of you are interested in using
Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a module
simplifying this a bit:
http://kalixia.github.com/tapestry-perf4j/


I hope this can be useful to some of you.

Regards,
Jerome.


Re: dynamically changing event link context on client side using js

2011-03-28 Thread Mark
Normally the context is going to be used to figure out the state when
the link was rendered.  This is particularly useful in a loop were you
need to figure out which eventlink was actually clicked.  It sounds
like you want to make the eventlink do different things based on some
type of ajax event on another part of the page.

If that is what you are trying to do, are you sure you even need to
use an eventlink context?  Can you just have the other Ajax event
update a persistent variable on the page and read it (instead of the
context) when the eventlink is triggered?

Mark

On Mon, Mar 28, 2011 at 1:46 PM, Joel Halbert j...@su3analytics.com wrote:
 Hi,

 I have a typical ajax event link e.g.

 a t:type=eventlink t:id=ignore zone=resultsZone

 I want to be able to update the context on the clientside using
 javascript, dynamically.
 (or alternatively attach a request parameter and have this submitted
 with the link).

 What's the easiest way to accomplish this?

 I can modify the link to change the url to append my context (or request
 parameter)  but it seems these post page-load modifications to the
 anchor href are ignored when the links is submitted.

 Thanks,
 Joel


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



Re: Tapestry Perf4J

2011-03-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Mar 2011 17:05:38 -0300, Jérôme BERNARD  
jerome.bern...@gmail.com wrote:



Hi,


Hi!


Quick email to let you know that if some of you are interested in using
Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a module
simplifying this a bit: http://kalixia.github.com/tapestry-perf4j/


Bookmarked! This seems very interesting. :) Thanks for sharing!

There has been many Tapestry and Tapestry-IoC based projects being  
announced lately. This shows how the framework and its community are alive  
and thriving. :)


--
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: Tapestry Perf4J

2011-03-28 Thread Kalle Korhonen
Brilliant! I have way too much benchmarking code in my applications as
is. I have just a project lined up to try this on, thanks!

Kalle


On Mon, Mar 28, 2011 at 1:05 PM, Jérôme BERNARD
jerome.bern...@gmail.com wrote:
 Hi,

 Quick email to let you know that if some of you are interested in using
 Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a module
 simplifying this a bit:
 http://kalixia.github.com/tapestry-perf4j/


 I hope this can be useful to some of you.

 Regards,
 Jerome.


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



Re: Tapestry Perf4J

2011-03-28 Thread Jérôme BERNARD
On Mon, Mar 28, 2011 at 22:44, Thiago H. de Paula Figueiredo 
thiag...@gmail.com wrote:

 On Mon, 28 Mar 2011 17:05:38 -0300, Jérôme BERNARD 
 jerome.bern...@gmail.com wrote:

  Hi,


 Hi!

  Quick email to let you know that if some of you are interested in using
 Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a module
 simplifying this a bit: http://kalixia.github.com/tapestry-perf4j/


 Bookmarked! This seems very interesting. :) Thanks for sharing!


You're welcome. I have some few ideas on how to enhance the components, so I
will most likely update it in a short time.
I'd like at least to add auto-refresh (simple as I already use a zone for
the graph).
I'd like also to dynamically generate the appenders from Java code instead
of relying on log4j configuration files.
This would give the ability to dynamically add/remove appenders hence graphs
;-)


 There has been many Tapestry and Tapestry-IoC based projects being
 announced lately. This shows how the framework and its community are alive
 and thriving. :)


Definitely!
And TIA book will also help a lot the community ;-)


Jerome.


Re: Tapestry Perf4J

2011-03-28 Thread Jérôme BERNARD
On Mon, Mar 28, 2011 at 23:07, Kalle Korhonen kalle.o.korho...@gmail.comwrote:

 Brilliant! I have way too much benchmarking code in my applications as
 is. I have just a project lined up to try this on, thanks!


Great!
Let me know if you're in lack of some features.
Most of the stuff is actually done by Perf4J.
All I try to do is some plumbing in order to make it natural to use ;-)


Jerome.


Re: Tapestry Perf4J

2011-03-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Mar 2011 18:13:38 -0300, Jérôme BERNARD  
jerome.bern...@gmail.com wrote:



Great!
Let me know if you're in lack of some features.
Most of the stuff is actually done by Perf4J.
All I try to do is some plumbing in order to make it natural to use ;-)


But you've got this plumbing already done, so this is very nice too. :)  
Many Tapestry users will probably at least try it due to having a  
ready-to-use integration.


--
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: Tapestry Perf4J

2011-03-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Mar 2011 18:07:14 -0300, Jérôme BERNARD  
jerome.bern...@gmail.com wrote:


I'd like also to dynamically generate the appenders from Java code  
instead of relying on log4j configuration files.
This would give the ability to dynamically add/remove appenders hence  
graphs ;-)


That would fit the Tapestry almost complete lack of configuration files  
very nicely.


--
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: Tapestry Perf4J

2011-03-28 Thread Howard Lewis Ship
Have you looked at http://code.google.com/p/rrd4j/ as a way to
aggregate performance metrics over time?  I used this on a project a
couple of years ago and, outside some hassles involving dates and time
zones (we were attempting to aggregate information from multiple
servers) it worked quite nicely.  (This may be  more of a question for
Perf4J than for your integration).

On Mon, Mar 28, 2011 at 2:07 PM, Jérôme BERNARD
jerome.bern...@gmail.com wrote:
 On Mon, Mar 28, 2011 at 22:44, Thiago H. de Paula Figueiredo 
 thiag...@gmail.com wrote:

 On Mon, 28 Mar 2011 17:05:38 -0300, Jérôme BERNARD 
 jerome.bern...@gmail.com wrote:

  Hi,


 Hi!

  Quick email to let you know that if some of you are interested in using
 Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a module
 simplifying this a bit: http://kalixia.github.com/tapestry-perf4j/


 Bookmarked! This seems very interesting. :) Thanks for sharing!


 You're welcome. I have some few ideas on how to enhance the components, so I
 will most likely update it in a short time.
 I'd like at least to add auto-refresh (simple as I already use a zone for
 the graph).
 I'd like also to dynamically generate the appenders from Java code instead
 of relying on log4j configuration files.
 This would give the ability to dynamically add/remove appenders hence graphs
 ;-)


 There has been many Tapestry and Tapestry-IoC based projects being
 announced lately. This shows how the framework and its community are alive
 and thriving. :)


 Definitely!
 And TIA book will also help a lot the community ;-)


 Jerome.




-- 
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: dynamically changing event link context on client side using js

2011-03-28 Thread Joel Halbert
Hi Mark,

I need a way of submitting the dynamic content back to the server as
part of an ajax request I'm not clear how I would be able to do this in
the manner you suggest. 

- Joel

On Mon, 2011-03-28 at 15:43 -0500, Mark wrote:
 Normally the context is going to be used to figure out the state when
 the link was rendered.  This is particularly useful in a loop were you
 need to figure out which eventlink was actually clicked.  It sounds
 like you want to make the eventlink do different things based on some
 type of ajax event on another part of the page.
 
 If that is what you are trying to do, are you sure you even need to
 use an eventlink context?  Can you just have the other Ajax event
 update a persistent variable on the page and read it (instead of the
 context) when the eventlink is triggered?
 
 Mark
 
 On Mon, Mar 28, 2011 at 1:46 PM, Joel Halbert j...@su3analytics.com wrote:
  Hi,
 
  I have a typical ajax event link e.g.
 
  a t:type=eventlink t:id=ignore zone=resultsZone
 
  I want to be able to update the context on the clientside using
  javascript, dynamically.
  (or alternatively attach a request parameter and have this submitted
  with the link).
 
  What's the easiest way to accomplish this?
 
  I can modify the link to change the url to append my context (or request
  parameter)  but it seems these post page-load modifications to the
  anchor href are ignored when the links is submitted.
 
  Thanks,
  Joel
 
 
 -
 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 Perf4J

2011-03-28 Thread Jérôme BERNARD
I've heard of it and used it in the past.
Hopefully, it has changed to an Apache license which was not the case at the
time I looked into it (it used to be LGPL).

I can't find much information about the pro  cons of Perf4J vs rrd4j though
:-(

I just saw many OSS projects using it and it proved to be simple to use and
understand.

Jerome.

On Mon, Mar 28, 2011 at 23:57, Howard Lewis Ship hls...@gmail.com wrote:

 Have you looked at http://code.google.com/p/rrd4j/ as a way to
 aggregate performance metrics over time?  I used this on a project a
 couple of years ago and, outside some hassles involving dates and time
 zones (we were attempting to aggregate information from multiple
 servers) it worked quite nicely.  (This may be  more of a question for
 Perf4J than for your integration).

 On Mon, Mar 28, 2011 at 2:07 PM, Jérôme BERNARD
 jerome.bern...@gmail.com wrote:
  On Mon, Mar 28, 2011 at 22:44, Thiago H. de Paula Figueiredo 
  thiag...@gmail.com wrote:
 
  On Mon, 28 Mar 2011 17:05:38 -0300, Jérôme BERNARD 
  jerome.bern...@gmail.com wrote:
 
   Hi,
 
 
  Hi!
 
   Quick email to let you know that if some of you are interested in using
  Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a
 module
  simplifying this a bit: http://kalixia.github.com/tapestry-perf4j/
 
 
  Bookmarked! This seems very interesting. :) Thanks for sharing!
 
 
  You're welcome. I have some few ideas on how to enhance the components,
 so I
  will most likely update it in a short time.
  I'd like at least to add auto-refresh (simple as I already use a zone for
  the graph).
  I'd like also to dynamically generate the appenders from Java code
 instead
  of relying on log4j configuration files.
  This would give the ability to dynamically add/remove appenders hence
 graphs
  ;-)
 
 
  There has been many Tapestry and Tapestry-IoC based projects being
  announced lately. This shows how the framework and its community are
 alive
  and thriving. :)
 
 
  Definitely!
  And TIA book will also help a lot the community ;-)
 
 
  Jerome.
 



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



--
Jérôme Bernard
Blog : http://www.jerome-bernard.com


Re: dynamically changing event link context on client side using js

2011-03-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Mar 2011 19:10:00 -0300, Joel Halbert j...@su3analytics.com  
wrote:



I need a way of submitting the dynamic content back to the server as
part of an ajax request I'm not clear how I would be able to do this in
the manner you suggest.


Define an event name, @Inject ComponentResources and use its
createEventLink() method. It returns a Link. To get an absolute URL out of
it, invoke its toAbsoluteURI() method. Now just pass this URL to your AJAX
code, most probably using JavascriptSupport.addScript(). Add your data as  
query parameters.


--
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: RegexAuthorizer missing

2011-03-28 Thread Dan Griffin
Thank you for your answer, Robert. I inserted the dependecy to 
AssetProtectionDispetcher in my local component library, but then some 
other js assets in my application (not from the component library) 
stopped loading.


Is there another way to extend client access for assets, without 
regexAuthorizer in component library in tapestry 5.2.4?




url: http://maven.saiwai-solutions.com
group id: com.saiwaisolutions
artifact id: AssetProtectionDispatcher
version: 1.0.0

Note that 1.0.0 is tested against Tapestry 5.1.0.5, but I have used it fine 
with 5.2.4.  The main caveat is that some of the default contributions for 
tapestry assets are potentially out of date (due to, eg, javascript stacks and 
so forth).

Robert

On Mar 16, 2011, at 3/167:24 AM , Dan Griffin wrote:

   

Hi all,

I found out 
herehttp://osdir.com/ml/users-tapestry-apache/2010-08/msg00547.html  that 
RegexAuthorizer is now a part of a 3rd party module in some maven repo, but I 
couldn`t find out which one, because the link left there has been broken. Quick 
google search didn`t help either. I would be grateful if someone could point me in 
the right direction.

Thank you in advance,
Dan
 


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

2011-03-28 Thread Patrick Moore
Looks like you should get your work added here:
http://perf4j.codehaus.org/index.html under Integrated Tools

beat the wicket people to the punch ;-)

Patrick Moore
Amplafi
http://amplafi.com
mobile: 650-207-9792
Put your front window on your front page
personal blog : http://sworddance.com/blog


On Mon, Mar 28, 2011 at 3:10 PM, Jérôme BERNARD jerome.bern...@gmail.comwrote:

 I've heard of it and used it in the past.
 Hopefully, it has changed to an Apache license which was not the case at
 the
 time I looked into it (it used to be LGPL).

 I can't find much information about the pro  cons of Perf4J vs rrd4j
 though
 :-(

 I just saw many OSS projects using it and it proved to be simple to use and
 understand.

 Jerome.

 On Mon, Mar 28, 2011 at 23:57, Howard Lewis Ship hls...@gmail.com wrote:

  Have you looked at http://code.google.com/p/rrd4j/ as a way to
  aggregate performance metrics over time?  I used this on a project a
  couple of years ago and, outside some hassles involving dates and time
  zones (we were attempting to aggregate information from multiple
  servers) it worked quite nicely.  (This may be  more of a question for
  Perf4J than for your integration).
 
  On Mon, Mar 28, 2011 at 2:07 PM, Jérôme BERNARD
  jerome.bern...@gmail.com wrote:
   On Mon, Mar 28, 2011 at 22:44, Thiago H. de Paula Figueiredo 
   thiag...@gmail.com wrote:
  
   On Mon, 28 Mar 2011 17:05:38 -0300, Jérôme BERNARD 
   jerome.bern...@gmail.com wrote:
  
Hi,
  
  
   Hi!
  
Quick email to let you know that if some of you are interested in
 using
   Perf4J (http://perf4j.codehaus.org) with Tapestry, I've released a
  module
   simplifying this a bit: http://kalixia.github.com/tapestry-perf4j/
  
  
   Bookmarked! This seems very interesting. :) Thanks for sharing!
  
  
   You're welcome. I have some few ideas on how to enhance the components,
  so I
   will most likely update it in a short time.
   I'd like at least to add auto-refresh (simple as I already use a zone
 for
   the graph).
   I'd like also to dynamically generate the appenders from Java code
  instead
   of relying on log4j configuration files.
   This would give the ability to dynamically add/remove appenders hence
  graphs
   ;-)
  
  
   There has been many Tapestry and Tapestry-IoC based projects being
   announced lately. This shows how the framework and its community are
  alive
   and thriving. :)
  
  
   Definitely!
   And TIA book will also help a lot the community ;-)
  
  
   Jerome.
  
 
 
 
  --
  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
 
 

 --
 Jérôme Bernard
 Blog : http://www.jerome-bernard.com



Re: Dynamic combo box - Tapestry 5.2.2

2011-03-28 Thread Yohan Yudanara
What version of tapestry are you using?

If you use Tapestry 5.2, you don't need to follow jumpstart
(http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/ajaxselect1)
to create Ajax Select. You just need to follow this:
http://tapestry.apache.org/tapestry5.2-dev/tapestry-core/ref/org/apache/tapestry5/corelib/components/Select.html
on Chaining of Select Components section.

If you use T5.1, follow jumpstart tutorial, and follow it completely.
You need to create ZoneUpdater.java and also zone_updater.js at the
bottom of jumpstart tutorial.



On Mon, Mar 28, 2011 at 5:34 PM, robnangle robnan...@gmail.com wrote:
 I could possibly have it in the correct place but am gettint this error:

 Failure creating embedded component 'carMake' of
 FantasyGaa.pages.ajax.AjaxSelect1: Unable to resolve 'zoneUpdater' to a
 mixin class name. Available mixin types: Autocomplete, DiscardBody,
 NotEmpty, RenderDisabled, RenderInformals, TriggerFragment.

 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4267337.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