Re: 5.0.5-SNAPSHOTS

2007-05-18 Thread Robin Ericsson

On 5/17/07, sun [EMAIL PROTECTED] wrote:

Howard Lewis Ship hlship at gmail.com writes:


 I've  been making a number of important T5 bug fixes; I've just uploaded the
 latest snapshots to http://people.apache.org/~hlship/tapestry-repository/

 Feedback is always welcome!

T5.0.5 did not solve the problem of Chinese


First of all, this is not the final 5.0.5 release, it's a snapshot.

Second, give it a rest, Howard is working hard on T5, he will fix your
issue sooner or later. If it's really that important maybe should give
it a try yourself? The code is available.

--
   regards,
   Robin

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



Re: T5: How to logout or kill the Session

2007-05-18 Thread Sabine K.

Hi,

the ASO are not the problem, the @Persist variables are a problem.

To the pdf: i open the page which generates the pdf by  Or klick here to
get a pdf.  in a new window. Did u mean that?


Marcus-11 wrote:
 
 HI Sabine,
 
 Maybe this help:
 
 Assigning null to an ASO field will remove the ASO (reading the field
 subsequently will force a new ASO instance to be created).
 
 http://tapestry.apache.org/tapestry5/tapestry-core/guide/appstate.html
 
 
 
 By the way, you post a message about open PDF, do you know how to open it
 in
 another window?
 
 
 Marcus
 
 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-How-to-logout-or-kill-the-Session-tf3763291.html#a10679044
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



any idea to inject a ejb to tapestry?

2007-05-18 Thread Heping Zhang

hi, I use tapestry as web tier and want get a slsb in this tier. this is my
code:
public abstract class Home extends BasePage {

// @EJB
// Calculator bean;

public String getResult() {
 // Double message = bean.calculate(11, 22, 0.08, 44);
 // return message.toString();

 InitialContext ctx = null;
 Calculator bean = null;
 try {
  ctx = new InitialContext();
  bean = (Calculator) ctx
.lookup(ejb3TapestryJboss/CalculatorBean/local);
 } catch (NamingException e) {
  e.printStackTrace();
 }

 Double message = bean.calculate(22, 22, 0.08, 22);
 return ok!  + message.toString();
}
}
When I use JNDI's lookup, as showed above, it works. But when I want to
inject a slsb to this page, as the commented code showed, it get nothing. No
bean is injected. do I misues this annotation? and how can I inject a bean
to tapestry? or I can only do this in servlet? By the way, I use jbossAs 5
beta2 as the server.
Thanks for your help in advance.


Re: any idea to inject a ejb to tapestry?

2007-05-18 Thread Andrea Chiumenti

With T4 ?
Have a look here:
http://hivemind.apache.org/hivemind1/hivedocs/service/hivemind.lib.EJBProxyFactory.html

ciao,
kiuma

On 5/18/07, Heping Zhang [EMAIL PROTECTED] wrote:

hi, I use tapestry as web tier and want get a slsb in this tier. this is my
code:
public abstract class Home extends BasePage {

 // @EJB
 // Calculator bean;

 public String getResult() {
  // Double message = bean.calculate(11, 22, 0.08, 44);
  // return message.toString();

  InitialContext ctx = null;
  Calculator bean = null;
  try {
   ctx = new InitialContext();
   bean = (Calculator) ctx
 .lookup(ejb3TapestryJboss/CalculatorBean/local);
  } catch (NamingException e) {
   e.printStackTrace();
  }

  Double message = bean.calculate(22, 22, 0.08, 22);
  return ok!  + message.toString();
 }
}
When I use JNDI's lookup, as showed above, it works. But when I want to
inject a slsb to this page, as the commented code showed, it get nothing. No
bean is injected. do I misues this annotation? and how can I inject a bean
to tapestry? or I can only do this in servlet? By the way, I use jbossAs 5
beta2 as the server.
Thanks for your help in advance.



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



Re: foreach In scriptDTD

2007-05-18 Thread Kushan Jayathilake
Thank you very much, I did it already
 
 
Kushan Jayathilake
Member - Java Community Process (http://jcp.org)
---Original Message---
 
From: Andrea Chiumenti
Date: 5/18/2007 4:24:27 PM
To: Tapestry users
Subject: Re: In scriptDTD
 
?
 
try this:
input-symbol key=mapPlotPoints class=Java.util.List required=no/
var varCapArray = new Array(${mapPlotPoints.size()});
foreach expression=mapPlotPoints key=item index=count
   varCapArray[count] = {caption: '${item.caption}', lat: ${item.lat},
longi: ${item.longi}};
/foreach
 
or
 
input-symbol key=mapPlotPoints class=Java.util.List required=no/
var varCapArray = new Array();
foreach expression=mapPlotPoints key=item index=count
   varCapArray.push( {caption: '${item.caption}', lat: ${item.lat},
longi: ${item.longi}} );
/foreach
 
ciao,
kiuma
On 5/17/07, Kushan Jayathilake [EMAIL PROTECTED] wrote:

 Hi

 Im sorry previous mail contains wrong information. Please refer this one


 I have an abstract method calls
 Public abstract ListMapPlotPoint getMapPlotPoints();
 MapPlotPoint class contains getters and setters of following objects
 Private Double lat;
 Private Double longi;
 Private String caption;
 Private ILink link;


 I added that to Map like this
 Map symbols = new HashMap();
 Symbols.put(mapPlotPoints, getMapPlotPoints());
 Below codings appear in my script DTD
 input-symbol key=mapPlotPoints class=Java.util.List required=no/
 foreach expression=mapPlotPoints key=item index=count
 Var varCap = ${item.caption};
 /foreach

 I want to get lat,longi,caption and link value of all the instances of
 MapPlotPoint class to the javascript

 Please help me
 Kushan Jayathilake
 Member - Java Community Process (http://jcp.org)
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

Re: foreach In scriptDTD

2007-05-18 Thread Andrea Chiumenti

?

try this:
input-symbol key=mapPlotPoints class=Java.util.List required=no/
var varCapArray = new Array(${mapPlotPoints.size()});
foreach expression=mapPlotPoints key=item index=count
  varCapArray[count] = {caption: '${item.caption}', lat: ${item.lat},
longi: ${item.longi}};
/foreach

or

input-symbol key=mapPlotPoints class=Java.util.List required=no/
var varCapArray = new Array();
foreach expression=mapPlotPoints key=item index=count
  varCapArray.push( {caption: '${item.caption}', lat: ${item.lat},
longi: ${item.longi}} );
/foreach

ciao,
kiuma
On 5/17/07, Kushan Jayathilake [EMAIL PROTECTED] wrote:


Hi

Im sorry previous mail contains wrong information. Please refer this one


I have an abstract method calls
Public abstract ListMapPlotPoint getMapPlotPoints();
MapPlotPoint class contains getters and setters of following objects
Private Double lat;
Private Double longi;
Private String caption;
Private ILink link;


I added that to Map like this
Map symbols = new HashMap();
Symbols.put(mapPlotPoints, getMapPlotPoints());
Below codings appear in my script DTD
input-symbol key=mapPlotPoints class=Java.util.List required=no/
foreach expression=mapPlotPoints key=item index=count
Var varCap = ${item.caption};
/foreach

I want to get lat,longi,caption and link value of all the instances of
MapPlotPoint class to the javascript

Please help me
Kushan Jayathilake
Member - Java Community Process (http://jcp.org)


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



Re: General Tapestry Question - File permissions

2007-05-18 Thread Andrea Chiumenti

of course it's not a bug in java!
but the permissin you tomcat/jetty/whatever is running with!

kiuma

On 5/18/07, Peter Dawn [EMAIL PROTECTED] wrote:

guys,

this is a general java question, but since i am using tapestry i
thought i will raise it here. i am using tap3.

now whats happening is, that i am running a postgres backup command
from within my tapestry web app. the user enters a folder location in
a form, which i grab and run the postgres backup command and backup
this backedup file at that location. so its a general tapestry form
implementation and java io.

now when the user submits the location, i check if the location exists
using .exists() and only then perform the backup. now my concern is
that i can backup files to folders the user does not have access to. i
mean if using windows explorer, i set the access permissions to a set
folder, as full control deny all (read, write etc) by me, and then if
i click on it it says the folder is inaccessible, access denied. now
if i enter this location in my tapestry form, the system performs a
backup and generates the required backup file in that folder, even
though i do not have access rights to that folder and cant access it.

so i guess my question is, this a bug in java, postgres or its
actually meant to happen. and how can i tell the user that the system
cannot write to the folder as you dont have access permissions to it.

any help please. 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]



AW: localization oddity

2007-05-18 Thread Holger Stolzenberg
It would be very intresting for if you could tell me how you could convert the 
messages properties files to UTF-8 because as I know java properties files can 
only be ISO-8859-1 encoded.


Mit lieben Grüßen aus dem eWerk

  |  Holger Stolzenberg
  |  Softwareentwickler
  |
  |  Geschäftsführer: 
  |  Frank Richter, Erik Wende, Hendrik Schubert
  |
  |  eWerk IT GmbH
  |  Markt 16
  |  Leipzig 04109
  |  http://www.ewerk.com
  |  HRB 9065, AG Leipzig
  |  Hauptniederlassung Leipzig
  |
  |  fon +49.341.4 26 49-0
  |  fax +49.341.4 26 49-88
  |  mailto:[EMAIL PROTECTED]
  |
  |  Support:
  |  fon 0700 CALLME24 (0700 22556324)
  |  fax 0700 CALLME24 (0700 22556324)
  |
  | Auskünfte und Angebote per Mail
  | sind freibleibend und unverbindlich. 

-Ursprüngliche Nachricht-
Von: Daniel Kleine-Albers [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 17. Mai 2007 21:45
An: Tapestry users
Betreff: Re: localization oddity

Hi there,

I had the same problem with German umlauts not rendering correctly.  
Have a look at the character encoding of your files. I converted all my files 
to UTF-8 and since then all the labels (regardless in which message file) 
render correctly.

Best regards
Daniel


On 10.05.2007, at 11:43, Jesse Kuhnert wrote:

 Not much - and definitely not anything that would be related to what 
 you are seeingSo if you see an oddity that would explain it it has 
 to in there, or your copy  paste of the characters didn't come 
 through ok in the new file,.

 On 5/9/07, Eric Schneider [EMAIL PROTECTED] wrote:

 I'm still using 4.0.2.   Not sure how much has changed since then.

 e.


 On 5/9/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:
 
  I don't know what version you are on but most of that happens in
 here:
 
 
 
 http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-
 framework/src/java/org/apache/tapestry/services/impl/
 ComponentMessagesSourceImpl.java?view=markup
 
  I haven't changed things ~too~ much in 4.1.2 but there are slight 
  differences...Reading the code leads me to believe that the
 namespace
  properties (ie the global) would be read from the same
 service...In fact
 I
  know it is since I added something in for appfuse to be able to
 place
 them
  in different locations.
 
  Maybe you'll see a slight difference in component vs. namespace
 reading
 in
  there? If you do let me know.
 
  On 5/9/07, Eric Schneider [EMAIL PROTECTED] wrote:
  
   Thanks for the tip, I'll give it shot.
  
   I'm still very curious about why it would behave
 differently.  :-|
  
   e.
  
   On 5/9/07, Michael Maier [EMAIL PROTECTED] wrote:
   
I wonder that 'recap_label=Récapitulation' works...
   
try
   
man native2ascii
   
*.properties are invented by english speaking man, so
 everything is
ascii...:-)
   
maybe this will help
   
   
Am 10.05.2007 um 00:16 schrieb Eric Schneider:
   
 I'm in the process of moving my page and component message
 bundles
 into a
 global file.  In the long run this seems like a much more
 manageable
 approach.  But, I'm seeing some results that I didn't expect.

 For example, moving recap_label=Récapitulation from a page 
 property file to the global property file causes the label to 
 render
 differently.

 When it was in the page_fr.properties file it would
 render in
 the
 browser
 properly, Récapitulation.  When being pulled from the
 global
 file
 (app_name_fr.properties) it would render like
 RÈcapitulation.

 Another example of the oddness, RÉSERVATION BLESSÉE  
 renders as
 R...SERVATION BLESS...E from the global properties file.
   
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
 
 
 
  --
  Jesse Kuhnert
  Tapestry/Dojo team member/developer
 
  Open source based consulting work centered around 
  dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
 




 --
 Jesse Kuhnert
 Tapestry/Dojo team member/developer

 Open source based consulting work centered around 
 dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


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


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



Re: any idea to inject a ejb to tapestry?

2007-05-18 Thread Heping Zhang

thanks for your reply! however, as I use ejb3, it seems that hivemind
doesn't support *EJB3:
http://www.nabble.com/EJB3-and-EJBProxyFactory...-t943423.html  Since this
message is one year ago, I don't know is there any more development of
hivemind on this subject? Or any other way to inject slsb to tapestry?*
I also looked through HiveMind 2's homepage, but it does not mention this
thing. So, I just have no idea.
Thank you!



2007/5/18, Andrea Chiumenti [EMAIL PROTECTED]:


With T4 ?
Have a look here:

http://hivemind.apache.org/hivemind1/hivedocs/service/hivemind.lib.EJBProxyFactory.html

ciao,
kiuma

On 5/18/07, Heping Zhang [EMAIL PROTECTED] wrote:
 hi, I use tapestry as web tier and want get a slsb in this tier. this is
my
 code:
 public abstract class Home extends BasePage {

  // @EJB
  // Calculator bean;

  public String getResult() {
   // Double message = bean.calculate(11, 22, 0.08, 44);
   // return message.toString();

   InitialContext ctx = null;
   Calculator bean = null;
   try {
ctx = new InitialContext();
bean = (Calculator) ctx
  .lookup(ejb3TapestryJboss/CalculatorBean/local);
   } catch (NamingException e) {
e.printStackTrace();
   }

   Double message = bean.calculate(22, 22, 0.08, 22);
   return ok!  + message.toString();
  }
 }
 When I use JNDI's lookup, as showed above, it works. But when I want to
 inject a slsb to this page, as the commented code showed, it get
nothing. No
 bean is injected. do I misues this annotation? and how can I inject a
bean
 to tapestry? or I can only do this in servlet? By the way, I use jbossAs
5
 beta2 as the server.
 Thanks for your help in advance.


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




Re: any idea to inject a ejb to tapestry?

2007-05-18 Thread Andrea Chiumenti

Then it shouldn't be hard to create an hivemind service that does what
you are doing in your page

kiuma

On 5/18/07, Heping Zhang [EMAIL PROTECTED] wrote:

thanks for your reply! however, as I use ejb3, it seems that hivemind
doesn't support *EJB3:
http://www.nabble.com/EJB3-and-EJBProxyFactory...-t943423.html  Since this
message is one year ago, I don't know is there any more development of
hivemind on this subject? Or any other way to inject slsb to tapestry?*
I also looked through HiveMind 2's homepage, but it does not mention this
thing. So, I just have no idea.
Thank you!



2007/5/18, Andrea Chiumenti [EMAIL PROTECTED]:

 With T4 ?
 Have a look here:

 
http://hivemind.apache.org/hivemind1/hivedocs/service/hivemind.lib.EJBProxyFactory.html

 ciao,
 kiuma

 On 5/18/07, Heping Zhang [EMAIL PROTECTED] wrote:
  hi, I use tapestry as web tier and want get a slsb in this tier. this is
 my
  code:
  public abstract class Home extends BasePage {
 
   // @EJB
   // Calculator bean;
 
   public String getResult() {
// Double message = bean.calculate(11, 22, 0.08, 44);
// return message.toString();
 
InitialContext ctx = null;
Calculator bean = null;
try {
 ctx = new InitialContext();
 bean = (Calculator) ctx
   .lookup(ejb3TapestryJboss/CalculatorBean/local);
} catch (NamingException e) {
 e.printStackTrace();
}
 
Double message = bean.calculate(22, 22, 0.08, 22);
return ok!  + message.toString();
   }
  }
  When I use JNDI's lookup, as showed above, it works. But when I want to
  inject a slsb to this page, as the commented code showed, it get
 nothing. No
  bean is injected. do I misues this annotation? and how can I inject a
 bean
  to tapestry? or I can only do this in servlet? By the way, I use jbossAs
 5
  beta2 as the server.
  Thanks for your help in advance.
 

 -
 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: Is onActivate a robust place for authentication?

2007-05-18 Thread Martino Piccinato

I think what you are looking for is interface PageValidateListener

http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/event/PageValidateListener.html

it's thought just for this kind of things afaik.

On 5/18/07, Eric Chatellier [EMAIL PROTECTED] wrote:


2007/5/18, Bill Holloway [EMAIL PROTECTED]:
 I'm not sure yet how to integrate ACEGI, but I can look at an ASO in
 onActivate for a page.  Is returning a page name from onActivate() a
 robust solution for basic user authentication?

 Bill

I bill

I'm interested by the answer too...

Where can we put redirect to login form (for exmple) if the user has
not logged in ?

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




Re: Is onActivate a robust place for authentication?

2007-05-18 Thread Eric Chatellier

This doesn't exist in tapestry 5

2007/5/18, Martino Piccinato [EMAIL PROTECTED]:

I think what you are looking for is interface PageValidateListener

http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/event/PageValidateListener.html

it's thought just for this kind of things afaik.

On 5/18/07, Eric Chatellier [EMAIL PROTECTED] wrote:

 2007/5/18, Bill Holloway [EMAIL PROTECTED]:
  I'm not sure yet how to integrate ACEGI, but I can look at an ASO in
  onActivate for a page.  Is returning a page name from onActivate() a
  robust solution for basic user authentication?
 
  Bill

 I bill

 I'm interested by the answer too...

 Where can we put redirect to login form (for exmple) if the user has
 not logged in ?

 -
 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: any idea to inject a ejb to tapestry?

2007-05-18 Thread SergeEby

Hi,

This post might be helpful:

http://www.nabble.com/Inject-EJB-3-into-Tapestry-4-page-tf2841494.html#a8468544

/Serge


Heping Zhang wrote:
 
 hi, I use tapestry as web tier and want get a slsb in this tier. this is
 my
 code:
 public abstract class Home extends BasePage {
 
  // @EJB
  // Calculator bean;
 
  public String getResult() {
   // Double message = bean.calculate(11, 22, 0.08, 44);
   // return message.toString();
 
   InitialContext ctx = null;
   Calculator bean = null;
   try {
ctx = new InitialContext();
bean = (Calculator) ctx
  .lookup(ejb3TapestryJboss/CalculatorBean/local);
   } catch (NamingException e) {
e.printStackTrace();
   }
 
   Double message = bean.calculate(22, 22, 0.08, 22);
   return ok!  + message.toString();
  }
 }
 When I use JNDI's lookup, as showed above, it works. But when I want to
 inject a slsb to this page, as the commented code showed, it get nothing.
 No
 bean is injected. do I misues this annotation? and how can I inject a bean
 to tapestry? or I can only do this in servlet? By the way, I use jbossAs 5
 beta2 as the server.
 Thanks for your help in advance.
 
 

-- 
View this message in context: 
http://www.nabble.com/any-idea-to-inject-a-ejb-to-tapestry--tf3776725.html#a10681972
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Is onActivate a robust place for authentication?

2007-05-18 Thread Howard Lewis Ship

For the meantime, an activate event handler method (in a base class) is
how I've envisioned authentication.

However, I want to open up a kind of pipeline between the Dispatcher and the
PageLinkHandler that can be injected, so that you can do this kind of
operation across the entire application.

On 5/17/07, Bill Holloway [EMAIL PROTECTED] wrote:


I'm not sure yet how to integrate ACEGI, but I can look at an ASO in
onActivate for a page.  Is returning a page name from onActivate() a
robust solution for basic user authentication?

Bill

--
The future is here.  It's just not evenly distributed yet.

 -- Traditional

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





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

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


Re: 5.0.5-SNAPSHOTS

2007-05-18 Thread Howard Lewis Ship

It looks like there's a pass at the bug fix attached. I, or someone, will
get to it eventually.

I want Tapestry to continue to have the best localization support; there's a
vast market there that is not well served by the other available solutions.
However, in the short term, there are other bugs and features that are of
more value.

On 5/17/07, Robin Ericsson [EMAIL PROTECTED] wrote:


On 5/17/07, sun [EMAIL PROTECTED] wrote:
 Howard Lewis Ship hlship at gmail.com writes:

 
  I've  been making a number of important T5 bug fixes; I've just
uploaded the
  latest snapshots to
http://people.apache.org/~hlship/tapestry-repository/
 
  Feedback is always welcome!
 
 T5.0.5 did not solve the problem of Chinese

First of all, this is not the final 5.0.5 release, it's a snapshot.

Second, give it a rest, Howard is working hard on T5, he will fix your
issue sooner or later. If it's really that important maybe should give
it a try yourself? The code is available.

--
regards,
Robin

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





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

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


Re: [Tap 411] Friendly urls and images

2007-05-18 Thread Thomas Wiz



Andreas Andreou-3 wrote:
 
 How are the js, images, css folders made web accessible?
 Perhaps you can use the base tag (
 http://www.w3schools.com/tags/tag_base.asp ) ?
 
 If you're using the @Shell component, you can take a look at the
 renderBaseTag parameter (
 http://tapestry.apache.org/tapestry4.1/components/general/shell.html )
 and the
 http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/service/tapestry.url.BaseTagWriter.html
 service which you can override.
 

Of course it works! Thank you. I love the OneParameterOnlySolutions :)

-- 
View this message in context: 
http://www.nabble.com/-Tap-411--Friendly-urls-and-images-tf3773662.html#a10682197
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



EventListener is not working in 4.1.2

2007-05-18 Thread Eric BIANCHI

Hello List,

I've been happily using the EventListener Annotation in Tapestry  
4.1.1 and everything works fine.


Using the latest snapshot (4.1.2), my EventListener doesn't work  
anymore.


Here's my code :

form jwcid=[EMAIL PROTECTED] async=true  
delegate=ognl:validationDelegate clientValidationEnabled=false

select jwcid=[EMAIL PROTECTED]
  model=ognl:page.affirmationSelectionModel
  value=ognl:visit.medicalHistory.hasTransplant
  class=text
  displayName=message:form.transplant
  validators=validators:required/
/form

@EventListener(targets = transplant_has_history, events =  
onchange, submitForm = myForm, async = true)

public void transplantSelected(IRequestCycle cycle) {
System.out.println (Called !!);
	getRequestCycle().getResponseBuilder().updateComponent 
(transplant_condition);	

}

I can see that my form is being submitted (the annotation works  
great) but my method never get called. I changed the method's  
parameters (no parameters, BrowerEvent), but it still doesn't work.  
Switching back to 4.1.1 and everything works fine again.


Any hints would be *much* appreciated.

Eric


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



Clientside persistence - Tapestry 4.1.1 - size restriction

2007-05-18 Thread Jan Vissers

Hi,

I've been experimenting with Client side persistence in Tapestry 4.1.1 
(@Persist(client))
Everything works smoothly until I use a @DirectLink outside of the 
form/form context.


The object BLURB is added to the end of the URL and this results in my 
object basically not being
able to be transmitted between requests, is this a size limitation of 
the URL?


What is considered best practices when using DirectLink and client side 
persistence and/or

client side persistence in general?

Thanks,
-J


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



Re: any idea to inject a ejb to tapestry?

2007-05-18 Thread Heping Zhang

thank you very much! I will try that.Thank you again!


BeanForm Caching Problems

2007-05-18 Thread Paulo Ramos

Hello everyone.

   I'm using BeanForm to generate dynamic forms like this:
  
   component id=teste type=bf:BeanForm 

   binding name=bean value=ognl:objectForm /
   binding name=properties 
value=objectForm.propertiesList /

   binding name=save value=listener:generate /
   binding name=cancel value=listener:cancel /
   /component

   I'm setting different Pojo to objectForm to get different forms. The 
objectForm.propertiesList returns a String with the Form properties and 
validations.
   When i have Tapestry cache disabled  this works right, but when it 
is enabled the propertiesList is only loaded one time. When i access 
this page, with a different Pojo i get errors because it keeps the 
properties from the first Pojo.

   Can anyone help me?

Thank's in advance.



smime.p7s
Description: S/MIME Cryptographic Signature


Very unusual issue passing parameters 4.1.2 Any help appreciated greatly

2007-05-18 Thread Chris Chiappone

This has been mind boggling me for the last two days.  All I want to
do is pass a string value to a component and I can't seem to get it
work.

The weird thing is this EXACT same code works on two of my other
tapestry apps but not the one I need it to work in.

Here is the exact code I have been using to test:

Test.jwc

?xml version=1.0 encoding=UTF-8?
!DOCTYPE component-specification PUBLIC
 -//Apache Software Foundation//Tapestry Specification 4.0//EN
 http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd;

component-specification class=com.tapestry.components.Test
   allow-body=no
   allow-informal-parameters=no

   descriptionDownload Link/description

   reserved-parameter name=include/

   parameter name=include required=true/

/component-specification

Test.java

public abstract class Test extends BaseComponent {
private static org.apache.commons.logging.Log logger =
   org.apache.commons.logging.LogFactory.getLog(Test.class.getName());
public abstract String getInclude();
public abstract void setInclude(String include);

protected void renderComponent(IMarkupWriter writer, IRequestCycle 
cycle) {
logger.info(Passed Parameter = + getInclude());
   }


}

Border.html

span jwcid=@Test include=THIS_IS_THE_PARAM_I_NEED_TO_PASS/

So on two of my tapestry applications this code works fine and I the
string value gets printed out in my log file.  On the other tapestry
app I get a null value.  This app is quite a bit larger and combines
both a struts/jsp like framework and a tapestry framework with quite a
bit of servlet mappings and filters in place.  Does anyone have any
clue into why this would be happening???  Much appreciated if anyone
just has an idea.

PS this must be java 1.4 (and yes it did work when i used the
@Parameter annotation in java 1.5 but I need to move back to 1.4 for
this project)

Thanks!!!

--
~chris

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



Re: T5: How to logout or kill the Session

2007-05-18 Thread Marcus

Hi,

In T4, I feel certain you know, we're using:

a href=./app?service=restartLogout/a

but in T5, sorry.

Thank's
Marcus


BeanForm Caching Problems

2007-05-18 Thread Paulo Ramos

Hello everyone.

  I'm using BeanForm to generate dynamic forms like this:
component id=teste type=bf:BeanForm 
  binding name=bean value=ognl:objectForm /
  binding name=properties 
value=objectForm.propertiesList /

  binding name=save value=listener:generate /
  binding name=cancel value=listener:cancel /
  /component

  I'm setting different Pojo to objectForm to get different forms. The 
objectForm.propertiesList returns a String with the Form properties and 
validations.
  When i have Tapestry cache disabled  this works right, but when it is 
enabled the propertiesList is only loaded one time. When i access this 
page, with a different Pojo i get errors because it keeps the properties 
from the first Pojo.

  Can anyone help me?

Thank's in advance.


smime.p7s
Description: S/MIME Cryptographic Signature


Trouble getting Tapestry up and running

2007-05-18 Thread jbeall

Hi All,

I'm new to Tapestry and have spent the better portion of the day attempting
to get it running by going through Enjoying Web Development with Tapestry
by Kent Tong.  I have been unsuccessful in getting the HelloWorld app up and
running.  When I attempt to access localhost:8080/HelloWorld/app, I get an
error about not being able to find the class HiveMindClassPool.

I'm running Tomcat 5.5.23, JDK/JRE 1.6.0_01, Tapestry 4.1.1, on XP Pro.  In
my Tomcat shared/lib folder I have all the Tapestry jars, including
hivemind-1.1.1.jar -- when I use JODE to inspect this jar I can see that it
does indeed have org.apache.hivemind.service.impl.HiveMindClassPool, so I'm
not sure why Tomcat isn't picking it up.  Interestingly enough, if I delete
the jars out of that folder, I simply get a not available error at
HelloWorld/app (as opposed to a 500 error with a stack trace).

Any pointers?  I'm stumped, and I've been searching and haven't been able to
find any references to this sort of problem that others are experiencing. 
Here's my complete stack trace:

May 18, 2007 2:05:15 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.NoClassDefFoundError:
org/apache/hivemind/service/impl/HiveMindClassPool
at
org.apache.hivemind.service.impl.ClassFactoryImpl.init(ClassFactoryImpl.java:34)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.apache.hivemind.util.InstanceCreationUtils.createInstance(InstanceCreationUtils.java:54)
at
org.apache.hivemind.impl.CreateClassServiceConstructor.constructCoreServiceImplementation(CreateClassServiceConstructor.java:35)
at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:108)
at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:158)
at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:140)
at
org.apache.hivemind.impl.servicemodel.PrimitiveServiceModel.getService(PrimitiveServiceModel.java:41)
at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:210)
at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:223)
at
org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:207)
at org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:105)
at org.apache.hivemind.impl.ProxyBuilder.init(ProxyBuilder.java:73)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:145)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:102)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:210)
at
org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:223)
at
org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:207)
at
org.apache.hivemind.impl.RegistryInfrastructureImpl.startup(RegistryInfrastructureImpl.java:434)
at
org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:154)
at
org.apache.tapestry.ApplicationServlet.constructRegistry(ApplicationServlet.java:253)
at 
org.apache.tapestry.ApplicationServlet.init(ApplicationServlet.java:194)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at

Re: Trouble getting Tapestry up and running

2007-05-18 Thread Konstantin Ignatyev
Yes, it is irritating not to have all the necessary
jars.
I think there always should be a starter.war that
should been a complete web application setup to drop
into a servlet container and start playing.

Bottom line: you need other jars: ognl, cglib , etc. 

--- jbeall [EMAIL PROTECTED] wrote:

 
 Hi All,
 
 I'm new to Tapestry and have spent the better
 portion of the day attempting
 to get it running by going through Enjoying Web
 Development with Tapestry
 by Kent Tong.  I have been unsuccessful in getting
 the HelloWorld app up and
 running.  When I attempt to access
 localhost:8080/HelloWorld/app, I get an
 error about not being able to find the class
 HiveMindClassPool.
 
 I'm running Tomcat 5.5.23, JDK/JRE 1.6.0_01,
 Tapestry 4.1.1, on XP Pro.  In
 my Tomcat shared/lib folder I have all the Tapestry
 jars, including
 hivemind-1.1.1.jar -- when I use JODE to inspect
 this jar I can see that it
 does indeed have
 org.apache.hivemind.service.impl.HiveMindClassPool,
 so I'm
 not sure why Tomcat isn't picking it up. 
 Interestingly enough, if I delete
 the jars out of that folder, I simply get a not
 available error at
 HelloWorld/app (as opposed to a 500 error with a
 stack trace).
 
 Any pointers?  I'm stumped, and I've been searching
 and haven't been able to
 find any references to this sort of problem that
 others are experiencing. 
 Here's my complete stack trace:
 
 May 18, 2007 2:05:15 PM
 org.apache.catalina.core.ApplicationContext log
 SEVERE: StandardWrapper.Throwable
 java.lang.NoClassDefFoundError:
 org/apache/hivemind/service/impl/HiveMindClassPool
   at

org.apache.hivemind.service.impl.ClassFactoryImpl.init(ClassFactoryImpl.java:34)
   at

sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
   at

sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
   at

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
 Source)
   at
 java.lang.reflect.Constructor.newInstance(Unknown
 Source)
   at java.lang.Class.newInstance0(Unknown Source)
   at java.lang.Class.newInstance(Unknown Source)
   at

org.apache.hivemind.util.InstanceCreationUtils.createInstance(InstanceCreationUtils.java:54)
   at

org.apache.hivemind.impl.CreateClassServiceConstructor.constructCoreServiceImplementation(CreateClassServiceConstructor.java:35)
   at

org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:108)
   at

org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:158)
   at

org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:140)
   at

org.apache.hivemind.impl.servicemodel.PrimitiveServiceModel.getService(PrimitiveServiceModel.java:41)
   at

org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:210)
   at

org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:223)
   at

org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:207)
   at

org.apache.hivemind.impl.ModuleImpl.getService(ModuleImpl.java:105)
   at

org.apache.hivemind.impl.ProxyBuilder.init(ProxyBuilder.java:73)
   at

org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxyClass(SingletonServiceModel.java:145)
   at

org.apache.hivemind.impl.servicemodel.SingletonServiceModel.createSingletonProxy(SingletonServiceModel.java:102)
   at

org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getService(SingletonServiceModel.java:57)
   at

org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:210)
   at

org.apache.hivemind.impl.ServicePointImpl.getService(ServicePointImpl.java:223)
   at

org.apache.hivemind.impl.RegistryInfrastructureImpl.getService(RegistryInfrastructureImpl.java:207)
   at

org.apache.hivemind.impl.RegistryInfrastructureImpl.startup(RegistryInfrastructureImpl.java:434)
   at

org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:154)
   at

org.apache.tapestry.ApplicationServlet.constructRegistry(ApplicationServlet.java:253)
   at

org.apache.tapestry.ApplicationServlet.init(ApplicationServlet.java:194)
   at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
   at

org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
   at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:127)
   at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at


Re: 5.0.5-SNAPSHOTS

2007-05-18 Thread Thiago HP

Regarding localization, what about the possibility of a single properties
file for the application?

Thiago


Re: BeanForm Caching Problems

2007-05-18 Thread Andreas Andreou

http://beanform.sourceforge.net/component-reference.html

the cacheProperties parameter

On 5/18/07, Paulo Ramos [EMAIL PROTECTED] wrote:


Hello everyone.

   I'm using BeanForm to generate dynamic forms like this:
 component id=teste type=bf:BeanForm 
   binding name=bean value=ognl:objectForm /
   binding name=properties
value=objectForm.propertiesList /
   binding name=save value=listener:generate /
   binding name=cancel value=listener:cancel /
   /component

   I'm setting different Pojo to objectForm to get different forms. The
objectForm.propertiesList returns a String with the Form properties and
validations.
   When i have Tapestry cache disabled  this works right, but when it is
enabled the propertiesList is only loaded one time. When i access this
page, with a different Pojo i get errors because it keeps the properties
from the first Pojo.
   Can anyone help me?

Thank's in advance.





--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


Re: 5.0.5-SNAPSHOTS

2007-05-18 Thread Howard Lewis Ship

You need to keep up with the commits logs :-)  That was added a couple of
days ago.

On 5/18/07, Thiago HP [EMAIL PROTECTED] wrote:


Regarding localization, what about the possibility of a single properties
file for the application?

Thiago





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

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


Re: T5 Templating and alternate css files based on current page

2007-05-18 Thread Howard Lewis Ship

Another option is to inject the AssetSource service into your component, so
you can calculate the path passed to it.

On 5/17/07, Bill Holloway [EMAIL PROTECTED] wrote:


I thought that if a directory in the context didn't conflict with a
tapestry page name (like 'start'), then the url to that directory
would reference it ok.  For example, I have a context dir (named
'webapp' under src/main) that looks like this:

/src/main/webapp:
- css
  - main_style.css
- images
- js
- WEB-INF

If I direct my browser to http://localhost:8080/css/main_style.css, I
get a raw dump of the css file to the browser screen as I would
expect.  This .css file also gets properly injected if I use

@Inject
@Path (context:css/main_style.css)
private Asset _mainStyle;

This is all properly working code (under Jetty at least :)

Bill

On 5/18/07, Martin Reurings [EMAIL PROTECTED] wrote:
 Hmmm, but that would generate a path to the webserver ('/static/')
 root and not to the root of the context ('[appContext]/static/...'),
 plus it would bypass internationalization. Now I admit for css files the
 internationalization wouldn't matter but for skin-related images it
 might matter a lot and I would like to work it out within the @Inject
 method if possible.

 However, this idea has created a work-around for me, I'm now using the
 @inject @path combo to create to url's to the separate skins and I'm
 switching between them  based on the value of the property 'skin'. I
 think it could be improved upon:
 public class SiteDesign {

 public final static String SKIN_PUBLISHER = publisher;
 public final static String SKIN_ADVERTISER = advertiser;

 @Parameter
 private String skin = publisher;

 @Inject
 @Path(context:static/css/advertiser/skin.css)
 private Asset skin1CSS;

 @Inject
 @Path(context:static/css/publisher/skin.css)
 private Asset skin2CSS;

 public Asset getSkinCSS() {
 if (skin.equalsIgnoreCase(SKIN_PUBLISHER)) return skin2CSS;
 return skin1CSS;
 }

 public String getSkin() {
 return skin;
 }

 }


 Bill Holloway wrote:
  If skin is a component property that's properly evaluated for you,
  you can return the evaluated path as a page property to an Any
  component in the template for the link:
 
  In TheComponent.java
 
  private String _skin // perhaps a parameter or resolved in onActivate?
 
  public String getStylesheetPath ()
  {
  return /static/css/ + _skin + /color-scheme.css;
  }
 
  In TheComponent.html:
 
  ...
  link t:type=any element=link rel=stylesheet type=text/css
  href=prop:stylesheetPath /
  ...
 
  Bill
 
  On 5/17/07, Martin Reurings [EMAIL PROTECTED] wrote:
  We've created a simple template component to render the generic html
  layout
  of the page and handle things like the navigation in the near future.
  Since
  we've just started to use tapestry I am still trying to get my head
  around
  some of the things that would probably seem obvious to anybody else.
 
  I will have several CSS files linked in the head of my html file,
  since the
  url to a specific page is unknown and may be nested in a directory
  structure
  these files need to be absolute and should have the context root
  included.
 
  Now I've figured out how to do that using this:
  @Inject
  @Path(context:static/css/layout.css)
  private Asset layoutCSS;
 
  The layout doesn't change, this is fine with me, but the color-scheme
  will
  change depending on which section of the site a user is browsing in
  and this
  introduces a variable in the directory structure. Now I've figured
  out how
  to use a property to pass that value on to my template component:
  t:SiteDesign title=literal:xyz skin=literal:advertiser xmlns:t=
  http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
 
  However, I have spent some time trying to figure out how to get this
  value
  injected into my accual url, as this doesn't work:
  @Inject
  @Path(context:static/css/${skin}/color-scheme.css)
  private Asset skinCSS;
 
  Can anybody tell me what the preferred way of solving this issue
  would be?
 
  Thanx,
 
   Martin
 
  --
  (   /'  _/_ __  _ _
  |/|///)(/(/(//_(-/
  _/
  Website: http://www.windgazer.nl
 
 
 

 --
 (   /'  _/_ __  _ _
 |/|///)(/(/(//_(-/
 _/
 E-mail: [EMAIL PROTECTED]
 Website: http://www.windgazer.nl

 The trouble with doing something right the first time, is nobody
  appreciates how difficult it was.
-- Unknown Artist


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




--
The future is here.  It's just not evenly distributed yet.

 -- Traditional

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





--
Howard M. Lewis Ship
TWD 

Re: Hopefully an easy one

2007-05-18 Thread Daniel Kleine-Albers

Hi Tony,

would using a minDate validator be an option - to restrict valid  
values to dates later as 01/01/2007 for example?


Best regards
Daniel


On 18.05.2007, at 04:24, Tony Nelson wrote:

No, it will accept user input as: 5/17/07 which gets translated in  
my queries to 5/17/0007 and causes hibernate to self destruct.


If a user enters 5/17/07 I expect an error to be raise, but alas, no.

Thanks
Tony

Andreas Andreou wrote:

doesn't translator=translator:date,pattern=MM/dd/ work?

On 5/17/07, Tony Nelson [EMAIL PROTECTED] wrote:


I have a simple DatePicker

input jwcid=[EMAIL PROTECTED]
value=ognl:tradeSearchKeys.receivedTimesheetForWeekEnding
translator=translator:date,pattern=M/d/ 


validators=validators:required
displayName=As of Date/


All that I want to do is verify that the user entered the date as
MM/DD/.

What is the correct validator to use in this situation?

Thanks again
Tony Nelson


 
-

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]



failed to deploy tapestry to jbossas 4.2.0

2007-05-18 Thread Heping Zhang

hi, I've ever deploy my app on jbossas 5 and it works well. but when today I
just want to use jbossas 4.2.0 since it is GA version, it crashed. here is
the message:
javax.servlet.ServletException:
org.apache.hivemind.ApplicationRuntimeException: Unable to construct service
tapestry.request.DisableCachingFilter: Error building service
tapestry.request.DisableCachingFilter: Failure invoking constructor for
class org.apache.tapestry.services.impl.DisableCachingFilter:
edu/emory/mathcs/backport/java/util/concurrent/locks/ReentrantLock
[jar:file:/D:/server/jboss-
4.2.0.GA/server/default/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.request.xml,
line 238, column 20]
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(
WebRequestServicerPipelineBridge.java:65)
$ServletRequestServicer_112a21e8bb3.service($ServletRequestServicer_112a21e8bb3.java)
could any one tell me why and how to resolve this? thank you!