Plz help with validators.

2006-12-13 Thread Andrea Chiumenti

Hello, I'm having problems with cutom validators (Tap 4.0.2).
I've put into my hivemind.xml:

contribution configuration-id=tapestry.valid.Validators
   bean name=jflyrequired class=
org.jfly.webcommons.webutils.tapestry.valid.form.Required /
   /contribution

then into my .page file:
component id=nameField type=TextField
   binding name=value value=ognl:itemLoop.name/
   binding name=validators value=validators:jflyrequired/
   binding name=displayName value=ognl:titleColumnCollection[0]/
   /component

When I try to access the page  I've back:
No validator named 'jflyrequired' has been defined.

What am I missing ?

Thx in advance,
kiuma


Re: InjectPageLink and InjectExternalLink

2006-12-13 Thread jimlaren

done!

http://issues.apache.org/jira/browse/TAPESTRY-1184

andyhot wrote:
 Looks interesting.
 Please add a JIRA and attach the files there.



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



Re: about Beanform and JPA (persistence)

2006-12-13 Thread Cyrille37

Hello Sam,

Thanks a lot for your long long explanation. It was really wonderfull 
for me.

Now I've understood some architecture's best practices.

I've applied your methods to my little project using Spring2.

Now I would like to practice the same little project with an Application 
Server. I've installed Glassfish.
I will use Tapestry for the Web UI and make EJBs for services (business 
layer).


So I've had a look at Hivemind's documentation about accessing EJBs from 
Hivemind to inject theirs references in Tapestry.
But the service hivemind.lib.EJBProxyFactory Service seems to handle 
only Stateless session bean 
(http://hivemind.apache.org/hivemind-lib/EJBProxyFactory.html).


So is it not possible to integrate Tapestry with EJBs services with 
Hivemind ?

Have I to integrate Spring to permit Tapestry / EJBs interaction ?

Thanks again to my master ;o)
Best regards from your disciple.
Cyrille.


Sam Gendler a écrit :

I'll clarify a little.  In general, you want to keep persistence code,

...

OK, that was a ton of information, but hopefully you'll find it very
useful, since you said you were new to Java web development.

--sam





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



Re: render a previously non-existing component on ajax submit

2006-12-13 Thread Karthik N

have an enclosing

div jwcid=[EMAIL PROTECTED]
   span jwcid=@If
  Form 1 here
   /span
   span jwcid=@Else
 Form 2 here
   /span
/div

and updateComponents will update twoForms


On 12/13/06, karthik G [EMAIL PROTECTED] wrote:


I have one page in my application. I want to display a panel/form
(FORM-1) in the page that allows user to do ajax submit. Once that is done
,
i want to replace FORM-1 with a different FORM-2 that didn't exist before
in
the page.
I see that AjaxSubmit has a property updateComponents where we are
supposed
to list the ids of the components that you want rendered as ajax response?
Now how do i go about getting this to work?
Form-2 needs to exist in the Page and not be visible / not rendered on
start
up?





--
Thanks, Karthik


Re: InjectPageLink and InjectExternalLink

2006-12-13 Thread Renat Zubairov

Hi,

Very good, indeed very good proposal. I'll use it right away. Thank you.

Renat

On 12/12/06, jimlaren [EMAIL PROTECTED] wrote:

As a return type of listener method,ILink can be used to perform a
redirect-after-post.So it will be a great convenience to inject ILink
using annotations.
@InjectPageLink(Home)
public abstract ILink getHomeLink();

@InjectExternalLink(ShowCategory)
public abstract ILink getCategoryLink(Long id);

public ILink goHome(){
return getHomeLink();
}
public ILink showCategory(Long id){
 return getCategoryLink(id);
}

The sources:

PageLink
@Target( { ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface InjectPageLink {
String value();
}

public class InjectPageLinkAnnotationWorker implements
MethodAnnotationEnhancementWorker {

public void performEnhancement(EnhancementOperation op,
IComponentSpecification spec, Method method, Location 
location) {
if (!method.getReturnType().equals(ILink.class))
throw new ApplicationRuntimeException(
InjectPageLink annotation must return 
ILink);

InjectPageLink injectPageLink = method
.getAnnotation(InjectPageLink.class);

String pageName = injectPageLink.value();

BodyBuilder builder = new BodyBuilder();

builder.begin();
builder
.addln(
return
getPage().getRequestCycle().getInfrastructure().getServiceMap().getService(org.apache.tapestry.Tapestry.PAGE_SERVICE).getLink(false,\{0}\);,
pageName);

builder.end();

op.addMethod(Modifier.PUBLIC, new MethodSignature(method), 
builder
.toString(), location);

if (isGetter(method))

op.claimReadonlyProperty(AnnotationUtils.getPropertyName(method));
}

boolean isGetter(Method method) {
return method.getName().startsWith(get)
 method.getParameterTypes().length == 0;
}
}

ExternalLink

@Target( { ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface InjectExternalLink {
String value();
}
public class InjectExternalLinkAnnotationWorker implements
MethodAnnotationEnhancementWorker {

public void performEnhancement(EnhancementOperation op,
IComponentSpecification spec, Method method, Location 
location) {
if (!method.getReturnType().equals(ILink.class))
throw new ApplicationRuntimeException(
injectExternalLink annotation must return 
ILink);

InjectExternalLink injectExternalLink = method
.getAnnotation(InjectExternalLink.class);

String pageName = injectExternalLink.value();

BodyBuilder builder = new BodyBuilder();

builder.begin();

Class[] parameterTypes = method.getParameterTypes();
int paramCount = Tapestry.size(parameterTypes);

if (paramCount  0) {
if (parameterTypes[0].isArray()) {
builder
.addln(
return
getPage().getRequestCycle().getInfrastructure().getServiceMap().getService(org.apache.tapestry.Tapestry.EXTERNAL_SERVICE).getLink(false,
new org.apache.tapestry.engine.ExternalServiceParameter(\{0}\,$1));,
pageName);
} else {
builder
.addln(
java.lang.Object[] 
params = new java.lang.Object[{0}];,
paramCount);
for (int i = 0; i  paramCount; i++) {
builder.add(params[{0}] = , i);
if (parameterTypes[i].isPrimitive())
builder.add(($w) );
builder.addln(${0};, i + 1);
}
builder
.addln(
return
getPage().getRequestCycle().getInfrastructure().getServiceMap().getService(org.apache.tapestry.Tapestry.EXTERNAL_SERVICE).getLink(false,
new org.apache.tapestry.engine.ExternalServiceParameter(\{0}\,params));,
   

PageValidateListener ListenerParameter DirectService

2006-12-13 Thread Manri Offermann
Hi Tapestry Users,

I have problems accessing listener parameters in pageValidate, when a page is 
called as a direct service.

When accessing the page (see below) as an external service with a parameter 
(sp=1), the listener parameters in pageValidate contains the value 1.

pageValidate[1]
activateExternalPage[1]
prepareForRender[1]

But when the same page is called as a Direct Service (clicking on the 
DirectLink), the listener parameter in pageValidate is null, whereas in 
prepareForRender the listener parameter contains the value 1.

pageValidatenull 
prepareForRender[1]

I am using 4.1.1-SNAPSHOT, does anybody have an idea, how i can access the 
listener parameters in pageValidate or why the parameters are null?

the page:

html jwcid=@Shell title=
 body jwcid=@Body
  a jwcid=@DirectLink listener=listener:onSubmit 
parameters=ognl:{1}test/a
 /body
/html

and the class:

public abstract class TestPage extends BasePage implements 
PageValidateListener, IExternalPage {

 public void onSubmit(IRequestCycle cycle) {
  // do nothing
 }

 public void activateExternalPage(Object[] parameters, IRequestCycle cycle) {
  System.out.println(activateExternalPage + 
Arrays.toString(cycle.getListenerParameters()));
 }

 public void pageValidate(PageEvent event) {
  System.out.println(pageValidate + 
Arrays.toString(event.getRequestCycle().getListenerParameters()));
 }

 protected void prepareForRender(IRequestCycle cycle) {
  System.out.println(prepareForRender + 
Arrays.toString(cycle.getListenerParameters()));
 }
}



Regards,


Manri Offermann



Fwd: Req. on JFlyEditTable validation validation design

2006-12-13 Thread Andrea Chiumenti

-- Forwarded message --
From: Andrea Chiumenti [EMAIL PROTECTED]
Date: Dec 13, 2006 11:44 AM
Subject: Req. on JFlyEditTable validation validation design
To: Tapestry development dev@tapestry.apache.org

Hello, I'm developint an ajax edit grid for Tapestry 4.0.2 + Tacos 4.0.2 and
I'm encoutering some problems for validation.

The problem is that if I add validation when I add/insert/post, a row of the
edit table, also components outside the edit table are validated, and this
is not what I'd like because when I add a row for example it doesn't mean
that I want to post the form. For example if I have a required field outside
the table and it is empty I'm not able to add a row to the grid without
having completed that field.

Of course I could put the table in its own form, but if I want to make
appear it positioned 'inside' another form it would not be trivial to
position it in absolute or relative position.
Another solution would be using an iframe but I personally don't love
iframes very much.

So, I'd appreciate very much a suggestion about solving this problem,
because I'm a bit stalled.

Cheers,
kiuma


Re: about Beanform and JPA (persistence)

2006-12-13 Thread andyhot
Cyrille37 wrote:
 Hello Sam,

 Thanks a lot for your long long explanation. It was really wonderfull
 for me.
 Now I've understood some architecture's best practices.

Indeed it was very helpful. Can't wait to see how
http://wiki.apache.org/tapestry/AnnotatedGuideToTapestrySource
develops!

BTW, I've found Pojos in action to be
an excellent resource on the subject.


 I've applied your methods to my little project using Spring2.

 Now I would like to practice the same little project with an
 Application Server. I've installed Glassfish.
 I will use Tapestry for the Web UI and make EJBs for services
 (business layer).

 So I've had a look at Hivemind's documentation about accessing EJBs
 from Hivemind to inject theirs references in Tapestry.
 But the service hivemind.lib.EJBProxyFactory Service seems to handle
 only Stateless session bean
 (http://hivemind.apache.org/hivemind-lib/EJBProxyFactory.html).

 So is it not possible to integrate Tapestry with EJBs services with
 Hivemind ?
 Have I to integrate Spring to permit Tapestry / EJBs interaction ?

 Thanks again to my master ;o)
 Best regards from your disciple.
 Cyrille.


 Sam Gendler a écrit :
 I'll clarify a little.  In general, you want to keep persistence code,
 ...
 OK, that was a ton of information, but hopefully you'll find it very
 useful, since you said you were new to Java web development.

 --sam




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





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


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



Tap5 classloading

2006-12-13 Thread bueggers

Did anyone observe Tap5-classloading working with other webcontainers than
Jetty?

Using Jetty, it is all well and extremely charming, but I just can't get it
running with Tomcat.
I tried sysdeo plugin and WTP plugin with the result, that Tap5 applications
do work, but there's no dynamic classloading. Have to reload context
instead.

So, there is actually no real problem. I can use Jetty. 
Just curious, since I stuck some hours with that problem and AFAIR Howard
announced support of sysdeo and WTP some times ago.

-- 
View this message in context: 
http://www.nabble.com/Tap5-classloading-tf2813404.html#a7851170
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



4.1 and get/setClientId()

2006-12-13 Thread Andy Pahne


Hello,

I have a component from the old 3.0 days that inherits from 
BaseComponent. After uprading to 4.1.1-SNAPSHOT I am supposed to 
implement both

  getClientId() and
  setClientId(),
but the Javadoc says that I only should do so if I knew what I am doing.

I don't. Can anybody please enlighten me on this?

Thanks,
Andy


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



Re: 4.1 and get/setClientId()

2006-12-13 Thread Andy Pahne


Now I have an idea: is it enough to simply make my ComponentClasss abstract?

A.



Andy Pahne schrieb:


Hello,

I have a component from the old 3.0 days that inherits from 
BaseComponent. After uprading to 4.1.1-SNAPSHOT I am supposed to 
implement both

  getClientId() and
  setClientId(),
but the Javadoc says that I only should do so if I knew what I am doing.

I don't. Can anybody please enlighten me on this?

Thanks,
Andy


-
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: 4.1 and get/setClientId()

2006-12-13 Thread andyhot
Andy Pahne wrote:

 Now I have an idea: is it enough to simply make my ComponentClasss
 abstract?

yep!


 A.



 Andy Pahne schrieb:

 Hello,

 I have a component from the old 3.0 days that inherits from
 BaseComponent. After uprading to 4.1.1-SNAPSHOT I am supposed to
 implement both
   getClientId() and
   setClientId(),
 but the Javadoc says that I only should do so if I knew what I am doing.

 I don't. Can anybody please enlighten me on this?

 Thanks,
 Andy


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




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


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



Re: Tapestry HiveDoc generation

2006-12-13 Thread andyhot
Jesse Kuhnert wrote:
 I did sit down and figure this out finally. Hivemind has an ant task
 you can use to read in registry files and output them into one main
 registry.xml file. 

That's some very useful info jesse...

Here's another outcome of this

https://nbtapestrysupport.dev.java.net/images/preview13.png


 From there it can be transformed with xsl into
 whatever you want. I added it into the build process for tap 4.1 today
 (using maven2) so you should be able to go from there.(i made a few
 enhancements but it should still basically be the same)

 The docs are of course generated and available for viewing from each
 specific module page:

 http://tapestry.apache.org/tapestry4.1/tapestry-framework/index.html
 http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/index.html



 On 11/25/06, fdegrassi [EMAIL PROTECTED] wrote:
 First of all, I'm just starting to dig into Tapestry and HiveMind.
 I want to generate the HiveDoc for Tapestry and (eventually) for my own
 project, but haven't found any documentation on how to do that. I've
 never tried to build tapestry from source, so i don't know if the build
 process would give me any hint regarding this issue.
 Anyone could please give me an hint on where to look ? Any help is
 appreciated.

 Francesco Degrassi

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






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


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



Re: Translator and formating

2006-12-13 Thread andyhot
Yiannis Mavroukakis wrote:
 Thank you Jesse..I assume this is available for 4.0.x correct?
   

http://tapestry.apache.org/tapestry4/tapestry-contrib/ComponentReference/MaskEdit.html

 On Tue, 2006-12-12 at 11:41 -0500, Jesse Kuhnert wrote:
   
 I think MaskEdit would work for you.

 http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/maskedit.html

 On 12/12/06, Yiannis Mavroukakis [EMAIL PROTECTED] wrote:
 
 Hello :-)

 Is it valid use to employ a translator to force input into a certain
 format? In particular, I want a string that is made up of
 4 letters and 7 number to be formatted with dashes at the letters
 and numbers boundary and once again for the final number, e.g.
 ABCD-123456-7. If so, which translator would you recommend?

 Thank you,

 Yiannis

   

 Note:__
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission.
 If you receive this message in error, please immediately delete it and
 all copies of it from your system, destroy any hard copies of it and
 notify the sender. You must not, directly or indirectly, use, disclose,
 distribute, print, or copy any part of this message if you are not the
 intended recipient. Jaguar Freight Services and any of its subsidiaries
 each reserve the right to monitor all e-mail communications through its
 networks.
 Any views expressed in this message are those of the individual sender,
 except where the message states otherwise and the sender is authorized
 to state them to be the views of any such entity.
 
 This e-mail has been scanned for all known viruses.

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


   


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


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



Hivemind and EJB access

2006-12-13 Thread Cyrille37

Hello,

After had some pratices with Tapestry running on Tomcat with and without 
Spring, I'm looking for running Tapestry under an Application Server 
like Glassfish.
I've read in Hivemind documentation about the EJBProxyFactory that it 
could only delegates to Stateless session bean. Is it true ? Is there 
another fashion for Hivemind to delegate to other kind of EJB 
(Statefull, Message driven) ?


Thanks for your knowledge sharing,
Cyrillle

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



Re: Automated Testing Tool

2006-12-13 Thread Ron Piterman
STIQ looks really neet, do you have some good information source about 
how to get start with it?
There is a great install-guide, but the usage-overview is completley 
missing...

Would really like to try it out...

Cheers,
Ron


Konstantin Ignatyev wrote:

Selenium and its wrapper STIQ.

--- Miguel Angel Hernández [EMAIL PROTECTED] wrote:



Hi all,

Are there any tools that allow to build automated
tests for tapestry apps?
Do they suport Tacos and Dojo?

cheers,

miguel





Konstantin Ignatyev




PS: If this is a typical day on planet earth, humans will add fifteen million 
tons of carbon to the atmosphere, destroy 115 square miles of tropical 
rainforest, create seventy-two miles of desert, eliminate between forty to one 
hundred species, erode seventy-one million tons of topsoil, add 2,700 tons of 
CFCs to the stratosphere, and increase their population by 263,000

Bowers, C.A.  The Culture of Denial:  Why the Environmental Movement Needs a 
Strategy for Reforming Universities and Public Schools.  New York:  State 
University of New York Press, 1997: (4) (5) (p.206)

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



popupLink 4.0

2006-12-13 Thread Peter Schröder
hi,

i was looking for a popup-component and found this:

2.5. How do I make a link popup a new window?

Use the contrib:PopupLink component.

here:
http://tapestry.apache.org/tapestry4/faq.html

but there isnt any PopupLink component in tap4 contrib-library!

instead i used this:
http://www.tapestryforums.com/how-to-display-a-window-like-a-popup-vt3282.html

kind regards
peter

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



RE: Tapestry 4.1 on a JVM 1.4

2006-12-13 Thread Greg.L.Cormier
I think I just found out the hard way that 4.1 can't be used on 1.4! Let me 
know if you find out anything. Too bad this wasn't mentioned anywhere on the 
website :(

-Greg

-Original Message-
From: Joseph Polanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 7:14 AM
To: Tapestry users
Subject: Tapestry 4.1 on a JVM 1.4


For various reasons my company must defer upgrading to Java 1.5 for at 
least 3-4 months.

I would like to upgrade to Tapestry 4.1 before then but attempting to 
use it results in a type mismatch error which seems to indicate that 
some part of the Tapestry 4.1  distribution requires Java 1.5.

Is there something I can do (like removing certain files/jars) to run 
Tapestry 4.1 with Java 1.4?

Thanks immensely for any information.

Joseph Polanik

-
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: Tapestry 4.1 on a JVM 1.4

2006-12-13 Thread andyhot
[EMAIL PROTECTED] wrote:
 I think I just found out the hard way that 4.1 can't be used on 1.4! Let me 
 know if you find out anything. Too bad this wasn't mentioned anywhere on the 
 website :(

   

Add a JIRA for this.

There are currently just 4 source files using the @Override annotation
and one using enums.

 -Greg

 -Original Message-
 From: Joseph Polanik [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 13, 2006 7:14 AM
 To: Tapestry users
 Subject: Tapestry 4.1 on a JVM 1.4


 For various reasons my company must defer upgrading to Java 1.5 for at 
 least 3-4 months.

 I would like to upgrade to Tapestry 4.1 before then but attempting to 
 use it results in a type mismatch error which seems to indicate that 
 some part of the Tapestry 4.1  distribution requires Java 1.5.

 Is there something I can do (like removing certain files/jars) to run 
 Tapestry 4.1 with Java 1.4?

 Thanks immensely for any information.

 Joseph Polanik

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



   


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


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



RE: Tapestry 4.1 on a JVM 1.4

2006-12-13 Thread Greg.L.Cormier
Opened up TAPESTRY-1187. Back to 4.0 for now!

-Original Message-
From: andreas a [mailto:[EMAIL PROTECTED] Behalf Of andyhot
Sent: Wednesday, December 13, 2006 10:06 AM
To: Tapestry users
Subject: Re: Tapestry 4.1 on a JVM 1.4


[EMAIL PROTECTED] wrote:
 I think I just found out the hard way that 4.1 can't be used on 1.4! Let me 
 know if you find out anything. Too bad this wasn't mentioned anywhere on the 
 website :(

   

Add a JIRA for this.

There are currently just 4 source files using the @Override annotation
and one using enums.

 -Greg

 -Original Message-
 From: Joseph Polanik [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 13, 2006 7:14 AM
 To: Tapestry users
 Subject: Tapestry 4.1 on a JVM 1.4


 For various reasons my company must defer upgrading to Java 1.5 for at 
 least 3-4 months.

 I would like to upgrade to Tapestry 4.1 before then but attempting to 
 use it results in a type mismatch error which seems to indicate that 
 some part of the Tapestry 4.1  distribution requires Java 1.5.

 Is there something I can do (like removing certain files/jars) to run 
 Tapestry 4.1 with Java 1.4?

 Thanks immensely for any information.

 Joseph Polanik

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



   


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


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


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



Re: Tapestry 4.1 on a JVM 1.4

2006-12-13 Thread andyhot
[EMAIL PROTECTED] wrote:
 Opened up TAPESTRY-1187. Back to 4.0 for now!
   

Can you give
http://andyhot.di.uoa.gr/tapfx/jars/tapestry-framework-4.1.1-SNAPSHOT-retro.jar
a try?

i simply retro-translated it (though can't test it right now)


 -Original Message-
 From: andreas a [mailto:[EMAIL PROTECTED] Behalf Of andyhot
 Sent: Wednesday, December 13, 2006 10:06 AM
 To: Tapestry users
 Subject: Re: Tapestry 4.1 on a JVM 1.4


 [EMAIL PROTECTED] wrote:
   
 I think I just found out the hard way that 4.1 can't be used on 1.4! Let me 
 know if you find out anything. Too bad this wasn't mentioned anywhere on the 
 website :(

   
 

 Add a JIRA for this.

 There are currently just 4 source files using the @Override annotation
 and one using enums.

   
 -Greg

 -Original Message-
 From: Joseph Polanik [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 13, 2006 7:14 AM
 To: Tapestry users
 Subject: Tapestry 4.1 on a JVM 1.4


 For various reasons my company must defer upgrading to Java 1.5 for at 
 least 3-4 months.

 I would like to upgrade to Tapestry 4.1 before then but attempting to 
 use it results in a type mismatch error which seems to indicate that 
 some part of the Tapestry 4.1  distribution requires Java 1.5.

 Is there something I can do (like removing certain files/jars) to run 
 Tapestry 4.1 with Java 1.4?

 Thanks immensely for any information.

 Joseph Polanik

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



   
 


   


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


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



Re: Tapestry 4.1 on a JVM 1.4

2006-12-13 Thread andyhot
andyhot wrote:
 [EMAIL PROTECTED] wrote:
   
 Opened up TAPESTRY-1187. Back to 4.0 for now!
   
 

 Can you give
 http://andyhot.di.uoa.gr/tapfx/jars/tapestry-framework-4.1.1-SNAPSHOT-retro.jar
 a try?

 i simply retro-translated it (though can't test it right now)
   

btw, perhaps
http://andyhot.di.uoa.gr/tapfx/jars/lib/retrotranslator-runtime-1.1.0.jar
must also be in your classpath now - i dunno


   
 -Original Message-
 From: andreas a [mailto:[EMAIL PROTECTED] Behalf Of andyhot
 Sent: Wednesday, December 13, 2006 10:06 AM
 To: Tapestry users
 Subject: Re: Tapestry 4.1 on a JVM 1.4


 [EMAIL PROTECTED] wrote:
   
 
 I think I just found out the hard way that 4.1 can't be used on 1.4! Let me 
 know if you find out anything. Too bad this wasn't mentioned anywhere on 
 the website :(

   
 
   
 Add a JIRA for this.

 There are currently just 4 source files using the @Override annotation
 and one using enums.

   
 
 -Greg

 -Original Message-
 From: Joseph Polanik [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 13, 2006 7:14 AM
 To: Tapestry users
 Subject: Tapestry 4.1 on a JVM 1.4


 For various reasons my company must defer upgrading to Java 1.5 for at 
 least 3-4 months.

 I would like to upgrade to Tapestry 4.1 before then but attempting to 
 use it results in a type mismatch error which seems to indicate that 
 some part of the Tapestry 4.1  distribution requires Java 1.5.

 Is there something I can do (like removing certain files/jars) to run 
 Tapestry 4.1 with Java 1.4?

 Thanks immensely for any information.

 Joseph Polanik

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



   
 
   
   
 


   


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


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



Re: Jesse, Howard has removed your comment.[OT]

2006-12-13 Thread Emmanuel Sowah

Sorry, the right link is:

https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024



On 12/13/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:


Hi Jesse,

The nice comment you posted on Howard's blog at 
https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024
to defend Tapestry against the Wicket Morons has been marked as troll and
removed by Howard.
Do you two disagree so much with each other? It's a pity.

regards,
Emmanuel



Contrib:table - session

2006-12-13 Thread Carlos.Fernandez
Can you use the contrib:table without the use of an httpsession?

I am currently mucking around with persisting page/sort state in the
client using the table's persist property.  However, contrib:TablePages
still uses direct links for page navigation.  It is my understanding
that by default the direct service will look for a pre-existing session.
If it does not exist it will throw a StateSessionException.

Carlos

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



OT: STIQ Anyone?

2006-12-13 Thread Ron Piterman
On one of the posts above someone mentioned STQI in conjuction with 
Selenium, so i took a look - it look really nice, but no docu - can 
someone give me a hint where to start from ( after installing...) ?


Cheers,
Ron


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



Re: Some Redirect after Post issues

2006-12-13 Thread Ron Piterman

Did you try to use
@Persist(client:page) ?

this will encode your property in a hidden form field (and in links 
URLs, so the become quite ugly) - but you don't need the hidden fields...


Cheers,
Ron


Bastian Voigt wrote:



Andreas Andreou schrieb:

 
Since the form is in an 'area page' and tapestry's submits trigger the

same page
(i.e. the listeners are found on the current page) it's only normal that
the
validation listener will complain...
Can't you include the current area as a hidden form field, so that it
gets submitted
and your validation listener gets satisfied?



Yes, this is my actual workaraound for the problem. But this means that 
I need to add the hidden field to each and every form component that 
might be used on an area page. This is not what I would call intuitive. 
If ever someone else is to work on my code and add another form, he/she 
will be totally confused by the error thrown by the page validation 
listener, imho.



This, (though I dislike it) could also work:
http://mail-archives.apache.org/mod_mbox/jakarta-tapestry-user/200512.mbox/[EMAIL PROTECTED] 

  


Maybe I'll try that one :-)
I could make an empty page which is used only for redirect-after-post 
and which has no page validation listener or begin render listener. 
However, this is also quite confusing since the listeners are in a 
separate class...



Regards
Bastian




-
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: Jesse, Howard has removed your comment.[OT]

2006-12-13 Thread Daniel Jue

Can't we all just get along?

We should just blatantly pillage any unique/better aspects of Wicket,
and code name the next release Wickestryor Tappet.
Borg style FTW!

And it will come with a bundled Vimacs editor component you can embed
in your app.

Sorry, I am full of coffee.


On 12/13/06, Martin Strand [EMAIL PROTECTED] wrote:

Do you use vi or emacs?

On Wed, 13 Dec 2006 16:47:52 +0100, Emmanuel Sowah [EMAIL PROTECTED]
wrote:

 Sorry, the right link is:

 https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024



 On 12/13/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:

 Hi Jesse,

 The nice comment you posted on Howard's blog at
 https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024
 to defend Tapestry against the Wicket Morons has been marked as troll
 and
 removed by Howard.
 Do you two disagree so much with each other? It's a pity.

 regards,
 Emmanuel

-
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: Jesse, Howard has removed your comment.[OT]

2006-12-13 Thread Mark Stang
Before we go ANY further, we must resolve the curly brace alignment issue.

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Daniel Jue [mailto:[EMAIL PROTECTED]
Sent: Wed 12/13/2006 10:01 AM
To: Tapestry users
Subject: Re: Jesse, Howard has removed your comment.[OT]
 
Can't we all just get along?

We should just blatantly pillage any unique/better aspects of Wicket,
and code name the next release Wickestryor Tappet.
Borg style FTW!

And it will come with a bundled Vimacs editor component you can embed
in your app.

Sorry, I am full of coffee.


On 12/13/06, Martin Strand [EMAIL PROTECTED] wrote:
 Do you use vi or emacs?

 On Wed, 13 Dec 2006 16:47:52 +0100, Emmanuel Sowah [EMAIL PROTECTED]
 wrote:

  Sorry, the right link is:
 
  https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024
 
 
 
  On 12/13/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:
 
  Hi Jesse,
 
  The nice comment you posted on Howard's blog at
  https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024
  to defend Tapestry against the Wicket Morons has been marked as troll
  and
  removed by Howard.
  Do you two disagree so much with each other? It's a pity.
 
  regards,
  Emmanuel

 -
 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: Type Converter question

2006-12-13 Thread Ed Cohen
Thanks Howard.

So, a TypeConverter converts a string (e.g., the string-representation
of some Object, for example, something persisted client-side) into the
Object. 

Am I right in assuming that the Object's type is added, so the correct
TypeConverter can be chosen?  Also, by what mechanism is the Object
converted to a String (in the first place)?  

Ed


-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 12, 2006 7:10 PM
To: Tapestry users
Subject: Re: Type Converter question

Chances are good this is related to a client-side persistent property,
or a
property stored inside a form using Hidden.

A type converter is most likely being used to convert from a string to
some
server-side type.  Perhaps you tried to update a property that is really
an
entity type?

A stack trace would help narrow it down.

On 12/12/06, Ed Cohen [EMAIL PROTECTED] wrote:

 When refreshing a form, I get the error: No type converter for type
 TypeABC



 My question is: Why does Tapestry (4.0) invoke a type converter.
What
 does Tapestry use it for?



 Ed









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

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

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



Re: Html Email Messages

2006-12-13 Thread explido

i'm concerned with the same problem and have tried to examine your solution
without getting it to work.

My first problem seems to imagine the EmailResponseBuilder class. I derived
the EmailResponseBuilder from the DefaultResponseBuilder overriding
renderResponse, render and getWriter without success. Your constructor
carries the cycle, how is this uses inside the EmailResponseBuilder?

My second Problem is your getRequestGlobals(IRequestCycle cycle) method.
Where do you get it from?
I've tried with the following injection:

   @InjectObject(service:tapestry.globals.RequestGlobals)
public abstract RequestGlobals getRequestGlobals();

... but there is no way to store the ResponseBuilder like you do.

where is the magic? can you give me a some advice? thx.

Marco
-- 
View this message in context: 
http://www.nabble.com/Html-Email-Messages-tf2776596.html#a7857759
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: Tapestry HiveDoc generation

2006-12-13 Thread Jesse Kuhnert

That's awesome Andy! I still plan on javadoc-linking the other
hivemind configuration areas besides just service interfaces at some
point as well, just need some time to do it.

NetBeans is looking more and more appealing with each feature you add
in, though it'll probably take a mountain of convincing to get me to
convert as it took a good couple years for me to finally move from
emacs - eclipse. =p

Some sort of very quick article with graphics would be really nice to
see. We could link to it from the home page.. ehh? ehh?

On 12/13/06, andyhot [EMAIL PROTECTED] wrote:

Jesse Kuhnert wrote:
 I did sit down and figure this out finally. Hivemind has an ant task
 you can use to read in registry files and output them into one main
 registry.xml file.

That's some very useful info jesse...

Here's another outcome of this

https://nbtapestrysupport.dev.java.net/images/preview13.png


 From there it can be transformed with xsl into
 whatever you want. I added it into the build process for tap 4.1 today
 (using maven2) so you should be able to go from there.(i made a few
 enhancements but it should still basically be the same)

 The docs are of course generated and available for viewing from each
 specific module page:

 http://tapestry.apache.org/tapestry4.1/tapestry-framework/index.html
 http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/index.html



 On 11/25/06, fdegrassi [EMAIL PROTECTED] wrote:
 First of all, I'm just starting to dig into Tapestry and HiveMind.
 I want to generate the HiveDoc for Tapestry and (eventually) for my own
 project, but haven't found any documentation on how to do that. I've
 never tried to build tapestry from source, so i don't know if the build
 process would give me any hint regarding this issue.
 Anyone could please give me an hint on where to look ? Any help is
 appreciated.

 Francesco Degrassi

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






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


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





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



Re: Html Email Messages

2006-12-13 Thread Jesse Kuhnert

This could be made more transparent by using the
ResponseDelegateFactory services to configure your specific type of
builder within tapestry proper.

http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/service/tapestry.services.ResponseDelegateFactory.html

All you would need to do then is make sure your builder knew which
types of requests it can handle and it would magically work with all
core tapestry services.

On 12/13/06, explido [EMAIL PROTECTED] wrote:


i'm concerned with the same problem and have tried to examine your solution
without getting it to work.

My first problem seems to imagine the EmailResponseBuilder class. I derived
the EmailResponseBuilder from the DefaultResponseBuilder overriding
renderResponse, render and getWriter without success. Your constructor
carries the cycle, how is this uses inside the EmailResponseBuilder?

My second Problem is your getRequestGlobals(IRequestCycle cycle) method.
Where do you get it from?
I've tried with the following injection:

   @InjectObject(service:tapestry.globals.RequestGlobals)
public abstract RequestGlobals getRequestGlobals();

... but there is no way to store the ResponseBuilder like you do.

where is the magic? can you give me a some advice? thx.

Marco
--
View this message in context: 
http://www.nabble.com/Html-Email-Messages-tf2776596.html#a7857759
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
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

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



Re: Html Email Messages

2006-12-13 Thread Dave Kallstrom

getRequestGlobals is injected into our BasePage as in the following...
@InjectObject(service:tapestry.globals.RequestGlobals)
   public abstract RequestGlobals getRequestGlobals();
the getRequestGlobals() is just a convenience method for returning
requestGlobals from the underlying page.
And attached is the EmailResponseBuilder as an example of how to implement
ResponseBuilder. I too tried extending the DefaultResponseBuilder but could
not get that to work.

On 12/13/06, explido [EMAIL PROTECTED] wrote:



i'm concerned with the same problem and have tried to examine your
solution
without getting it to work.

My first problem seems to imagine the EmailResponseBuilder class. I
derived
the EmailResponseBuilder from the DefaultResponseBuilder overriding
renderResponse, render and getWriter without success. Your
constructor
carries the cycle, how is this uses inside the EmailResponseBuilder?

My second Problem is your getRequestGlobals(IRequestCycle cycle) method.
Where do you get it from?
I've tried with the following injection:

   @InjectObject(service:tapestry.globals.RequestGlobals)
public abstract RequestGlobals getRequestGlobals();

... but there is no way to store the ResponseBuilder like you do.

where is the magic? can you give me a some advice? thx.

Marco
--
View this message in context:
http://www.nabble.com/Html-Email-Messages-tf2776596.html#a7857759
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





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

Re: Jesse, Howard has removed your comment.[OT]

2006-12-13 Thread DJ Gredler

Tabs or spaces?

On 12/13/06, Mark Stang [EMAIL PROTECTED] wrote:


Before we go ANY further, we must resolve the curly brace alignment issue.

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Daniel Jue [mailto:[EMAIL PROTECTED]
Sent: Wed 12/13/2006 10:01 AM
To: Tapestry users
Subject: Re: Jesse, Howard has removed your comment.[OT]

Can't we all just get along?

We should just blatantly pillage any unique/better aspects of Wicket,
and code name the next release Wickestryor Tappet.
Borg style FTW!

And it will come with a bundled Vimacs editor component you can embed
in your app.

Sorry, I am full of coffee.


On 12/13/06, Martin Strand [EMAIL PROTECTED] wrote:
 Do you use vi or emacs?

 On Wed, 13 Dec 2006 16:47:52 +0100, Emmanuel Sowah [EMAIL PROTECTED]
 wrote:

  Sorry, the right link is:
 
 
https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024
 
 
 
  On 12/13/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:
 
  Hi Jesse,
 
  The nice comment you posted on Howard's blog at
 
https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024
  to defend Tapestry against the Wicket Morons has been marked as troll
  and
  removed by Howard.
  Do you two disagree so much with each other? It's a pity.
 
  regards,
  Emmanuel

 -
 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: Jesse, Howard has removed your comment.[OT]

2006-12-13 Thread Daniel Tabuenca

While we're at it. What's the best platform to run tapestry? Linux,
FreeBSD, Windows, or Mac? Intel, AMD, or PowerPC? Should I use Tomcat
or Jetty? Postgres or MySql?


On 12/13/06, Mark Stang [EMAIL PROTECTED] wrote:

Before we go ANY further, we must resolve the curly brace alignment issue.

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Daniel Jue [mailto:[EMAIL PROTECTED]
Sent: Wed 12/13/2006 10:01 AM
To: Tapestry users
Subject: Re: Jesse, Howard has removed your comment.[OT]

Can't we all just get along?

We should just blatantly pillage any unique/better aspects of Wicket,
and code name the next release Wickestryor Tappet.
Borg style FTW!

And it will come with a bundled Vimacs editor component you can embed
in your app.

Sorry, I am full of coffee.


On 12/13/06, Martin Strand [EMAIL PROTECTED] wrote:
 Do you use vi or emacs?

 On Wed, 13 Dec 2006 16:47:52 +0100, Emmanuel Sowah [EMAIL PROTECTED]
 wrote:

  Sorry, the right link is:
 
  https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024
 
 
 
  On 12/13/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:
 
  Hi Jesse,
 
  The nice comment you posted on Howard's blog at
  https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024
  to defend Tapestry against the Wicket Morons has been marked as troll
  and
  removed by Howard.
  Do you two disagree so much with each other? It's a pity.
 
  regards,
  Emmanuel

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



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






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



Re: Html Email Messages

2006-12-13 Thread explido

hi Dave,

that's just the same injection i've done, but i can't do calls like

getRequestGlobals(cycle).store(builder);

i can not pass a cycle and can not store a ResponseBuilder since
getRequestGlobals().store() does only accept
an IRequestCycle

Instead i've tried:

innerCycle.setResponseBuilder(rb);

but still no fun.

... my implementation of EMailResponseBuilder looks like this:

public class EMailResponseBuilder extends DefaultResponseBuilder {
IMarkupWriter _writer;
AssetFactory _assetFactory;

private final static Log LOG =
LogFactory.getLog(EMailResponseBuilder.class);

public EMailResponseBuilder() {
this(null);
}

public EMailResponseBuilder(IMarkupWriter writer) {
super(writer);
_writer = writer;
}

@Override
public IMarkupWriter getWriter() {
if (_writer == null)
return NullWriter.getSharedInstance();
return _writer;
}

@Override
public IMarkupWriter getWriter(String id, String type) {
if (_writer == null)
return NullWriter.getSharedInstance();
return _writer;
}

@Override
public void render(IMarkupWriter writer, IRender render, IRequestCycle
cycle) {
if (writer == null)
render.render(_writer, cycle);
else
render.render(writer, cycle);
}

@Override
public void renderResponse(IRequestCycle cycle) throws IOException {
if (_writer == null) {
IPage page = cycle.getPage();
ContentType contentType = page.getResponseContentType();
String encoding = 
contentType.getParameter(ENCODING_KEY);
if (encoding == null)
{
encoding = 
cycle.getEngine().getOutputEncoding();
contentType.setParameter(ENCODING_KEY, 
encoding);
}

MarkupFilter filter = new AsciiMarkupFilter();
CharArrayWriter charArrayWriter = new CharArrayWriter();
PrintWriter printWriter = new 
PrintWriter(charArrayWriter);
_writer = new MarkupWriterImpl(text/html, 
printWriter, filter);
}
// render response
cycle.renderPage(this);
_writer.close();
}
}






Dave Kallstrom wrote:
 
 getRequestGlobals is injected into our BasePage as in the following...
 @InjectObject(service:tapestry.globals.RequestGlobals)
 public abstract RequestGlobals getRequestGlobals();
 the getRequestGlobals() is just a convenience method for returning
 requestGlobals from the underlying page.
 And attached is the EmailResponseBuilder as an example of how to implement
 ResponseBuilder. I too tried extending the DefaultResponseBuilder but
 could
 not get that to work.
 
 On 12/13/06, explido [EMAIL PROTECTED] wrote:


 i'm concerned with the same problem and have tried to examine your
 solution
 without getting it to work.

 My first problem seems to imagine the EmailResponseBuilder class. I
 derived
 the EmailResponseBuilder from the DefaultResponseBuilder overriding
 renderResponse, render and getWriter without success. Your
 constructor
 carries the cycle, how is this uses inside the EmailResponseBuilder?

 My second Problem is your getRequestGlobals(IRequestCycle cycle) method.
 Where do you get it from?
 I've tried with the following injection:

@InjectObject(service:tapestry.globals.RequestGlobals)
 public abstract RequestGlobals getRequestGlobals();

 ... but there is no way to store the ResponseBuilder like you do.

 where is the magic? can you give me a some advice? thx.

 Marco
 --
 View this message in context:
 http://www.nabble.com/Html-Email-Messages-tf2776596.html#a7857759
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Html-Email-Messages-tf2776596.html#a7858611
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: Hivemind and EJB access

2006-12-13 Thread James Carman

Well, I was answering the question of whether HiveMind's
EJBProxyFactory supports stateful session beans and it does not (the
reason is that the create method requires params).  If you want to use
a stateless session bean, then check EJBProxyFactory's documentation
on how to set it up in your hivemodule.xml file.  Basically, you use
EJBProxyFactory rather than BuilderFactory to construct your
implementation object.


On 12/13/06, Cyrille37 [EMAIL PROTECTED] wrote:

James Carman a écrit :
 No, because typically with SFSBs, you have to pass in a paramter to
 the create method and there's no way to set up the proxy to do that
 for you automatically.  With SLSBs, there is no parameter to the
 create method.
Hello James,
Thank you for your response, but I'm afraid to do not understand it ;-(

Perhaps I have to reformulate my question :

When Tapestry runs in an Application Server (Glassfish,JBoss), how to
access EJB (Stateless and Statefull) from a Tapestry page ??

Cyrille.




 On 12/13/06, Cyrille37 [EMAIL PROTECTED] wrote:
 Hello,

 After had some pratices with Tapestry running on Tomcat with and without
 Spring, I'm looking for running Tapestry under an Application Server
 like Glassfish.
 I've read in Hivemind documentation about the EJBProxyFactory that it
 could only delegates to Stateless session bean. Is it true ? Is there
 another fashion for Hivemind to delegate to other kind of EJB
 (Statefull, Message driven) ?

 Thanks for your knowledge sharing,
 Cyrillle





-
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: Html Email Messages

2006-12-13 Thread explido

my intention was simply to implement a listener on a page in order to send an
email.
the body of this email in turn should be generated out of another tapestry
page.

so the main problem is to simply return a rendered page as a string or
similar, instead of writing it to a response.

is there no simple way to achieve this?




Jessek wrote:
 
 This could be made more transparent by using the
 ResponseDelegateFactory services to configure your specific type of
 builder within tapestry proper.
 
 http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/service/tapestry.services.ResponseDelegateFactory.html
 
 All you would need to do then is make sure your builder knew which
 types of requests it can handle and it would magically work with all
 core tapestry services.
 
 On 12/13/06, explido [EMAIL PROTECTED] wrote:

 i'm concerned with the same problem and have tried to examine your
 solution
 without getting it to work.

 My first problem seems to imagine the EmailResponseBuilder class. I
 derived
 the EmailResponseBuilder from the DefaultResponseBuilder overriding
 renderResponse, render and getWriter without success. Your
 constructor
 carries the cycle, how is this uses inside the EmailResponseBuilder?

 My second Problem is your getRequestGlobals(IRequestCycle cycle) method.
 Where do you get it from?
 I've tried with the following injection:

@InjectObject(service:tapestry.globals.RequestGlobals)
 public abstract RequestGlobals getRequestGlobals();

 ... but there is no way to store the ResponseBuilder like you do.

 where is the magic? can you give me a some advice? thx.

 Marco
 --
 View this message in context:
 http://www.nabble.com/Html-Email-Messages-tf2776596.html#a7857759
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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

-- 
View this message in context: 
http://www.nabble.com/Html-Email-Messages-tf2776596.html#a7858821
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: Jesse, Howard has removed your comment.[OT]

2006-12-13 Thread Howard Lewis Ship

I've never mentioned this before, but I originally intended Tapestry to run
on AIX systems, with all coding in cross-compiled Scheme against a Dbase IV
backend. I expect all of your to reconfigure your deployment architectures
immediately or bring down My Fiery Wrath.

On 12/13/06, Daniel Tabuenca [EMAIL PROTECTED] wrote:


While we're at it. What's the best platform to run tapestry? Linux,
FreeBSD, Windows, or Mac? Intel, AMD, or PowerPC? Should I use Tomcat
or Jetty? Postgres or MySql?


On 12/13/06, Mark Stang [EMAIL PROTECTED] wrote:
 Before we go ANY further, we must resolve the curly brace alignment
issue.

 Mark J. Stang
 Senior Engineer/Architect
 office: +1 303.468.2900
 mobile: +1 303.507.2833
 Ping Identity



 -Original Message-
 From: Daniel Jue [mailto:[EMAIL PROTECTED]
 Sent: Wed 12/13/2006 10:01 AM
 To: Tapestry users
 Subject: Re: Jesse, Howard has removed your comment.[OT]

 Can't we all just get along?

 We should just blatantly pillage any unique/better aspects of Wicket,
 and code name the next release Wickestryor Tappet.
 Borg style FTW!

 And it will come with a bundled Vimacs editor component you can embed
 in your app.

 Sorry, I am full of coffee.


 On 12/13/06, Martin Strand [EMAIL PROTECTED] wrote:
  Do you use vi or emacs?
 
  On Wed, 13 Dec 2006 16:47:52 +0100, Emmanuel Sowah [EMAIL PROTECTED]
  wrote:
 
   Sorry, the right link is:
  
  
https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024
  
  
  
   On 12/13/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:
  
   Hi Jesse,
  
   The nice comment you posted on Howard's blog at
  
https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024
   to defend Tapestry against the Wicket Morons has been marked as
troll
   and
   removed by Howard.
   Do you two disagree so much with each other? It's a pity.
  
   regards,
   Emmanuel
 
  -
  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]





--
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: Jesse, Howard has removed your comment.[OT]

2006-12-13 Thread Howard Lewis Ship

That's jumping to conclusions. I never delete comments from my blog.  That
one was listed as removed by author, I think Jesse may have removed it
himself.

I don't really care about Wicket; at most I'm envious of the amount of
marketting their community has done. Tapestry 5 will balance all scales aka
the proof is in the pudding.

On 12/13/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:


Hi Jesse,

The nice comment you posted on Howard's blog at

https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024to
defend Tapestry against the Wicket Morons has been marked as troll and
removed by Howard.
Do you two disagree so much with each other? It's a pity.

regards,
Emmanuel





--
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: Hivemind and EJB access

2006-12-13 Thread Cyrille37

James Carman a écrit :

Well, I was answering the question of whether HiveMind's
EJBProxyFactory supports stateful session beans and it does not (the
reason is that the create method requires params).  If you want to use
a stateless session bean, then check EJBProxyFactory's documentation
on how to set it up in your hivemodule.xml file.  Basically, you use
EJBProxyFactory rather than BuilderFactory to construct your
implementation object.

Thanks James, but ...

I understand that I could not use StateFull Bean with Hivemind.
But how to use StateFull Bean from a Tapestry page ?
Is something like this possible :
   ApplicationContext.getBean(TheStateFullOne);

I think the Application Server has to create the SateFullBean, but I've 
no idea on how it can make the link between the AppServer's session and 
Tapestry's session...


I'm a lost a little 

Cyrille.




On 12/13/06, Cyrille37 [EMAIL PROTECTED] wrote:

James Carman a écrit :
 No, because typically with SFSBs, you have to pass in a paramter to
 the create method and there's no way to set up the proxy to do that
 for you automatically.  With SLSBs, there is no parameter to the
 create method.
Hello James,
Thank you for your response, but I'm afraid to do not understand it ;-(

Perhaps I have to reformulate my question :

When Tapestry runs in an Application Server (Glassfish,JBoss), how to
access EJB (Stateless and Statefull) from a Tapestry page ??

Cyrille.




 On 12/13/06, Cyrille37 [EMAIL PROTECTED] wrote:
 Hello,

 After had some pratices with Tapestry running on Tomcat with and 
without

 Spring, I'm looking for running Tapestry under an Application Server
 like Glassfish.
 I've read in Hivemind documentation about the EJBProxyFactory that it
 could only delegates to Stateless session bean. Is it true ? Is there
 another fashion for Hivemind to delegate to other kind of EJB
 (Statefull, Message driven) ?

 Thanks for your knowledge sharing,
 Cyrillle









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



Re: Html Email Messages

2006-12-13 Thread Dave Kallstrom

getRequestGlobals(IRequestCycle cycle) simply calls cycle.getPage() to
return the our base paqe which has RequestGlobals injected into it. And if
you look at RequestGlobals you'll see the method void store(ResponseBuilder
builder) and like I mentioned earlier extending DefaultResponseBuilder did
not work for me. Which is why I created EmailResponseBuilder which is almost
identical to DefaultResponseBuilder.

On 12/13/06, explido [EMAIL PROTECTED] wrote:



hi Dave,

that's just the same injection i've done, but i can't do calls like

getRequestGlobals(cycle).store(builder);

i can not pass a cycle and can not store a ResponseBuilder since
getRequestGlobals().store() does only accept
an IRequestCycle

Instead i've tried:

innerCycle.setResponseBuilder(rb);

but still no fun.

... my implementation of EMailResponseBuilder looks like this:

public class EMailResponseBuilder extends DefaultResponseBuilder {
IMarkupWriter _writer;
AssetFactory _assetFactory;

private final static Log LOG =
LogFactory.getLog(EMailResponseBuilder.class);

public EMailResponseBuilder() {
this(null);
}

public EMailResponseBuilder(IMarkupWriter writer) {
super(writer);
_writer = writer;
}

@Override
public IMarkupWriter getWriter() {
if (_writer == null)
return NullWriter.getSharedInstance();
return _writer;
}

@Override
public IMarkupWriter getWriter(String id, String type) {
if (_writer == null)
return NullWriter.getSharedInstance();
return _writer;
}

@Override
public void render(IMarkupWriter writer, IRender render,
IRequestCycle
cycle) {
if (writer == null)
render.render(_writer, cycle);
else
render.render(writer, cycle);
}

@Override
public void renderResponse(IRequestCycle cycle) throws IOException
{
if (_writer == null) {
IPage page = cycle.getPage();
ContentType contentType =
page.getResponseContentType();
String encoding = contentType.getParameter
(ENCODING_KEY);
if (encoding == null)
{
encoding = cycle.getEngine
().getOutputEncoding();
contentType.setParameter(ENCODING_KEY,
encoding);
}

MarkupFilter filter = new AsciiMarkupFilter();
CharArrayWriter charArrayWriter = new
CharArrayWriter();
PrintWriter printWriter = new
PrintWriter(charArrayWriter);
_writer = new MarkupWriterImpl(text/html,
printWriter, filter);
}
// render response
cycle.renderPage(this);
_writer.close();
}
}






Dave Kallstrom wrote:

 getRequestGlobals is injected into our BasePage as in the following...
 @InjectObject(service:tapestry.globals.RequestGlobals)
 public abstract RequestGlobals getRequestGlobals();
 the getRequestGlobals() is just a convenience method for returning
 requestGlobals from the underlying page.
 And attached is the EmailResponseBuilder as an example of how to
implement
 ResponseBuilder. I too tried extending the DefaultResponseBuilder but
 could
 not get that to work.

 On 12/13/06, explido [EMAIL PROTECTED] wrote:


 i'm concerned with the same problem and have tried to examine your
 solution
 without getting it to work.

 My first problem seems to imagine the EmailResponseBuilder class. I
 derived
 the EmailResponseBuilder from the DefaultResponseBuilder overriding
 renderResponse, render and getWriter without success. Your
 constructor
 carries the cycle, how is this uses inside the EmailResponseBuilder?

 My second Problem is your getRequestGlobals(IRequestCycle cycle)
method.
 Where do you get it from?
 I've tried with the following injection:

@InjectObject(service:tapestry.globals.RequestGlobals)
 public abstract RequestGlobals getRequestGlobals();

 ... but there is no way to store the ResponseBuilder like you do.

 where is the magic? can you give me a some advice? thx.

 Marco
 --
 View this message in context:
 http://www.nabble.com/Html-Email-Messages-tf2776596.html#a7857759
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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




 --
 Dave Kallstrom

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


--
View this message in context:

RE: Tapestry 4.1 on a JVM 1.4

2006-12-13 Thread Greg.L.Cormier
Looks like Jesse has fixed it :)

Is there a nightly build of Tapestry I'll be able to fetch tomorrow? Or do we 
have to build it ourselves?

-Original Message-
From: andreas a [mailto:[EMAIL PROTECTED] Behalf Of andyhot
Sent: Wednesday, December 13, 2006 10:38 AM
To: Tapestry users
Subject: Re: Tapestry 4.1 on a JVM 1.4


andyhot wrote:
 [EMAIL PROTECTED] wrote:
   
 Opened up TAPESTRY-1187. Back to 4.0 for now!
   
 

 Can you give
 http://andyhot.di.uoa.gr/tapfx/jars/tapestry-framework-4.1.1-SNAPSHOT-retro.jar
 a try?

 i simply retro-translated it (though can't test it right now)
   

btw, perhaps
http://andyhot.di.uoa.gr/tapfx/jars/lib/retrotranslator-runtime-1.1.0.jar
must also be in your classpath now - i dunno


   
 -Original Message-
 From: andreas a [mailto:[EMAIL PROTECTED] Behalf Of andyhot
 Sent: Wednesday, December 13, 2006 10:06 AM
 To: Tapestry users
 Subject: Re: Tapestry 4.1 on a JVM 1.4


 [EMAIL PROTECTED] wrote:
   
 
 I think I just found out the hard way that 4.1 can't be used on 1.4! Let me 
 know if you find out anything. Too bad this wasn't mentioned anywhere on 
 the website :(

   
 
   
 Add a JIRA for this.

 There are currently just 4 source files using the @Override annotation
 and one using enums.

   
 
 -Greg

 -Original Message-
 From: Joseph Polanik [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 13, 2006 7:14 AM
 To: Tapestry users
 Subject: Tapestry 4.1 on a JVM 1.4


 For various reasons my company must defer upgrading to Java 1.5 for at 
 least 3-4 months.

 I would like to upgrade to Tapestry 4.1 before then but attempting to 
 use it results in a type mismatch error which seems to indicate that 
 some part of the Tapestry 4.1  distribution requires Java 1.5.

 Is there something I can do (like removing certain files/jars) to run 
 Tapestry 4.1 with Java 1.4?

 Thanks immensely for any information.

 Joseph Polanik

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



   
 
   
   
 


   


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


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


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



RE: Tapestry 4.1 on a JVM 1.4

2006-12-13 Thread Greg.L.Cormier
Awesome thanks! I will conviniently procrastinate fixing my getVisit() until I 
get 4.1.1 running :)

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 2:19 PM
To: Tapestry users
Subject: Re: Tapestry 4.1 on a JVM 1.4


I think it's deploying as we speak. Shouldn't be much longer than
another 10 minutes or so.

On 12/13/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Looks like Jesse has fixed it :)

 Is there a nightly build of Tapestry I'll be able to fetch tomorrow? Or do we 
 have to build it ourselves?

 -Original Message-
 From: andreas a [mailto:[EMAIL PROTECTED] Behalf Of andyhot
 Sent: Wednesday, December 13, 2006 10:38 AM
 To: Tapestry users
 Subject: Re: Tapestry 4.1 on a JVM 1.4


 andyhot wrote:
  [EMAIL PROTECTED] wrote:
 
  Opened up TAPESTRY-1187. Back to 4.0 for now!
 
 
 
  Can you give
  http://andyhot.di.uoa.gr/tapfx/jars/tapestry-framework-4.1.1-SNAPSHOT-retro.jar
  a try?
 
  i simply retro-translated it (though can't test it right now)
 

 btw, perhaps
 http://andyhot.di.uoa.gr/tapfx/jars/lib/retrotranslator-runtime-1.1.0.jar
 must also be in your classpath now - i dunno

 
 
  -Original Message-
  From: andreas a [mailto:[EMAIL PROTECTED] Behalf Of andyhot
  Sent: Wednesday, December 13, 2006 10:06 AM
  To: Tapestry users
  Subject: Re: Tapestry 4.1 on a JVM 1.4
 
 
  [EMAIL PROTECTED] wrote:
 
 
  I think I just found out the hard way that 4.1 can't be used on 1.4! Let 
  me know if you find out anything. Too bad this wasn't mentioned anywhere 
  on the website :(
 
 
 
 
  Add a JIRA for this.
 
  There are currently just 4 source files using the @Override annotation
  and one using enums.
 
 
 
  -Greg
 
  -Original Message-
  From: Joseph Polanik [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, December 13, 2006 7:14 AM
  To: Tapestry users
  Subject: Tapestry 4.1 on a JVM 1.4
 
 
  For various reasons my company must defer upgrading to Java 1.5 for at
  least 3-4 months.
 
  I would like to upgrade to Tapestry 4.1 before then but attempting to
  use it results in a type mismatch error which seems to indicate that
  some part of the Tapestry 4.1  distribution requires Java 1.5.
 
  Is there something I can do (like removing certain files/jars) to run
  Tapestry 4.1 with Java 1.4?
 
  Thanks immensely for any information.
 
  Joseph Polanik
 
  -
  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]
 
 
 
 
 
 
 
 
 
 
 


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


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


 -
 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

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



Custom StateObjectFactory

2006-12-13 Thread Carlos.Fernandez
I posted a similar question a few weeks ago -- I decided to post again,
because I find myself creating another StateObjectFactory.

From time to time I need to generate an ASO that contains some
preconfigured state.  It is my understanding that in order to do this I
need to use the invoke-factory element in my
tapestry.state.ApplicationObjects contribution.  invoke-factory in
turn points to an impl of StateObjectFactory:

state-object name=mySessionBean scope=session
invoke-factory object=service:factoryThatBuildsBeans/
/state-object

service-point id=factoryThatBuildsBeans
interface=org.apache.tapestry.engine.state.StateObjectFactory
invoke-factory
construct class=gov.usitc.BeanBuilderFactory
set property=propName value=some
value/
/construct
/invoke-factory
/service-point

My StateObjectFactories tend to just copy/inject their immutable state
to the new instance they are generating.

Is there a simpler way to do this?

The factory code I write mimics, in a very inflexible and watered down
way, the DI facilities provided by Hivemind.  Avoiding the need for this
factory code, and the tests that come with it ;), is a reason why I like
DI so much.

Which makes me think I am not using Hivemind properly.

Carlos

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



Re: Jesse, Howard has removed your comment.[OT]

2006-12-13 Thread Jesse Kuhnert

Yes, it was me.

Originally I had written a long diatribe praising the many virtues of
wicket developers, users and the overall design of their framework.

After careful reflect I did eventually realize that this was
completely off-topic with the original posting and so removed it for
the greater good of the blog.

I hope that clears everything up for everyone. :)

On 12/13/06, Howard Lewis Ship [EMAIL PROTECTED] wrote:

That's jumping to conclusions. I never delete comments from my blog.  That
one was listed as removed by author, I think Jesse may have removed it
himself.

I don't really care about Wicket; at most I'm envious of the amount of
marketting their community has done. Tapestry 5 will balance all scales aka
the proof is in the pudding.

On 12/13/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:

 Hi Jesse,

 The nice comment you posted on Howard's blog at

 https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024to
 defend Tapestry against the Wicket Morons has been marked as troll and
 removed by Howard.
 Do you two disagree so much with each other? It's a pity.

 regards,
 Emmanuel




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





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



RE: Jesse, Howard has removed your comment.[OT]

2006-12-13 Thread Mark Stang
I have a JDBC driver for dBase III, will that work or did you use special 
feature from Dbase IV?

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
Sent: Wed 12/13/2006 11:50 AM
To: Tapestry users
Subject: Re: Jesse, Howard has removed your comment.[OT]
 
I've never mentioned this before, but I originally intended Tapestry to run
on AIX systems, with all coding in cross-compiled Scheme against a Dbase IV
backend. I expect all of your to reconfigure your deployment architectures
immediately or bring down My Fiery Wrath.

On 12/13/06, Daniel Tabuenca [EMAIL PROTECTED] wrote:

 While we're at it. What's the best platform to run tapestry? Linux,
 FreeBSD, Windows, or Mac? Intel, AMD, or PowerPC? Should I use Tomcat
 or Jetty? Postgres or MySql?


 On 12/13/06, Mark Stang [EMAIL PROTECTED] wrote:
  Before we go ANY further, we must resolve the curly brace alignment
 issue.
 
  Mark J. Stang
  Senior Engineer/Architect
  office: +1 303.468.2900
  mobile: +1 303.507.2833
  Ping Identity
 
 
 
  -Original Message-
  From: Daniel Jue [mailto:[EMAIL PROTECTED]
  Sent: Wed 12/13/2006 10:01 AM
  To: Tapestry users
  Subject: Re: Jesse, Howard has removed your comment.[OT]
 
  Can't we all just get along?
 
  We should just blatantly pillage any unique/better aspects of Wicket,
  and code name the next release Wickestryor Tappet.
  Borg style FTW!
 
  And it will come with a bundled Vimacs editor component you can embed
  in your app.
 
  Sorry, I am full of coffee.
 
 
  On 12/13/06, Martin Strand [EMAIL PROTECTED] wrote:
   Do you use vi or emacs?
  
   On Wed, 13 Dec 2006 16:47:52 +0100, Emmanuel Sowah [EMAIL PROTECTED]
   wrote:
  
Sorry, the right link is:
   
   
 https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024
   
   
   
On 12/13/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:
   
Hi Jesse,
   
The nice comment you posted on Howard's blog at
   
 https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024
to defend Tapestry against the Wicket Morons has been marked as
 troll
and
removed by Howard.
Do you two disagree so much with each other? It's a pity.
   
regards,
Emmanuel
  
   -
   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]




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



T41: how to render the ID attribute in an abstract component

2006-12-13 Thread Ron Piterman

Hi all,
I have an custom component which is inheriting from AbstractComponent - 
it is a custom image, which renders IMG src=.../ - now what would be 
the right way to render the ID attribute into it ( the clientId which is 
auto generated... or an informal id parameter) ?


Cheers,
Ron


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



Re: Hivemind and EJB access

2006-12-13 Thread James Carman

You would lookup the Home object using JNDI.


On 12/13/06, Cyrille37 [EMAIL PROTECTED] wrote:

James Carman a écrit :
 Well, I was answering the question of whether HiveMind's
 EJBProxyFactory supports stateful session beans and it does not (the
 reason is that the create method requires params).  If you want to use
 a stateless session bean, then check EJBProxyFactory's documentation
 on how to set it up in your hivemodule.xml file.  Basically, you use
 EJBProxyFactory rather than BuilderFactory to construct your
 implementation object.
Thanks James, but ...

I understand that I could not use StateFull Bean with Hivemind.
But how to use StateFull Bean from a Tapestry page ?
Is something like this possible :
ApplicationContext.getBean(TheStateFullOne);

I think the Application Server has to create the SateFullBean, but I've
no idea on how it can make the link between the AppServer's session and
Tapestry's session...

I'm a lost a little 

Cyrille.



 On 12/13/06, Cyrille37 [EMAIL PROTECTED] wrote:
 James Carman a écrit :
  No, because typically with SFSBs, you have to pass in a paramter to
  the create method and there's no way to set up the proxy to do that
  for you automatically.  With SLSBs, there is no parameter to the
  create method.
 Hello James,
 Thank you for your response, but I'm afraid to do not understand it ;-(

 Perhaps I have to reformulate my question :

 When Tapestry runs in an Application Server (Glassfish,JBoss), how to
 access EJB (Stateless and Statefull) from a Tapestry page ??

 Cyrille.


 
 
  On 12/13/06, Cyrille37 [EMAIL PROTECTED] wrote:
  Hello,
 
  After had some pratices with Tapestry running on Tomcat with and
 without
  Spring, I'm looking for running Tapestry under an Application Server
  like Glassfish.
  I've read in Hivemind documentation about the EJBProxyFactory that it
  could only delegates to Stateless session bean. Is it true ? Is there
  another fashion for Hivemind to delegate to other kind of EJB
  (Statefull, Message driven) ?
 
  Thanks for your knowledge sharing,
  Cyrillle
 
 





-
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: T41: how to render the ID attribute in an abstract component

2006-12-13 Thread Jesse Kuhnert

just call renderIdAttribute(writer,cycle)

On 12/13/06, Ron Piterman [EMAIL PROTECTED] wrote:

Hi all,
I have an custom component which is inheriting from AbstractComponent -
it is a custom image, which renders IMG src=.../ - now what would be
the right way to render the ID attribute into it ( the clientId which is
auto generated... or an informal id parameter) ?

Cheers,
Ron


-
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

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



How to Intergrate GWT into Tapestry pages Article by Geoff Longman

2006-12-13 Thread Emmanuel Sowah

Hi all,

Geoff Longman, our Spindle man and former Tapestry commiter has written an
article on how to integrate Google Web Toolkit into a generated Tapestry
page.
http://www.cleancode.com/blog/2006/12/13/glongman/gwt-article/

Enjoy.
Emmanuel


Re: How to Intergrate GWT into Tapestry pages Article by Geoff Longman

2006-12-13 Thread Jesse Kuhnert

Awesome! Thanks for the link. I was worried/wondering how hard this
was for tap users and now I remember Geoff's work. Maybe we should add
a link to the home page referencing gwt support via this article.

On 12/13/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:

Hi all,

Geoff Longman, our Spindle man and former Tapestry commiter has written an
article on how to integrate Google Web Toolkit into a generated Tapestry
page.
http://www.cleancode.com/blog/2006/12/13/glongman/gwt-article/

Enjoy.
Emmanuel





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



RE: Tapestry 4.1 on a JVM 1.4

2006-12-13 Thread Greg.L.Cormier
TAPESTRY-1188

I'm going to add what seems to be a Barebones runtime requirement for all the 
JAR's, it could be useful for the quickstart.

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 4:24 PM
To: Tapestry users
Subject: Re: Tapestry 4.1 on a JVM 1.4


You guessed right. ;)

On 12/13/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 I'm testing it now.

 I guess it needs Codec?

 http://jakarta.apache.org/commons/codec/

 Caused by: java.lang.NoClassDefFoundError: 
 org/apache/commons/codec/net/URLCodec
 at 
 org.apache.tapestry.services.impl.LinkFactoryImpl.init(LinkFactoryImpl.java:48)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
 Method)
 at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java(Compiled
  Code))
 at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java(Compiled
  Code))
 at 
 java.lang.reflect.Constructor.newInstance(Constructor.java(Compiled Code))
 at 
 org.apache.hivemind.util.ConstructorUtils.invoke(ConstructorUtils.java:139)
 ... 90 more

 -Original Message-
 From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 13, 2006 2:19 PM
 To: Tapestry users
 Subject: Re: Tapestry 4.1 on a JVM 1.4


 I think it's deploying as we speak. Shouldn't be much longer than
 another 10 minutes or so.

 On 12/13/06, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
  Looks like Jesse has fixed it :)
 
  Is there a nightly build of Tapestry I'll be able to fetch tomorrow? Or do 
  we have to build it ourselves?
 
  -Original Message-
  From: andreas a [mailto:[EMAIL PROTECTED] Behalf Of andyhot
  Sent: Wednesday, December 13, 2006 10:38 AM
  To: Tapestry users
  Subject: Re: Tapestry 4.1 on a JVM 1.4
 
 
  andyhot wrote:
   [EMAIL PROTECTED] wrote:
  
   Opened up TAPESTRY-1187. Back to 4.0 for now!
  
  
  
   Can you give
   http://andyhot.di.uoa.gr/tapfx/jars/tapestry-framework-4.1.1-SNAPSHOT-retro.jar
   a try?
  
   i simply retro-translated it (though can't test it right now)
  
 
  btw, perhaps
  http://andyhot.di.uoa.gr/tapfx/jars/lib/retrotranslator-runtime-1.1.0.jar
  must also be in your classpath now - i dunno
 
  
  
   -Original Message-
   From: andreas a [mailto:[EMAIL PROTECTED] Behalf Of andyhot
   Sent: Wednesday, December 13, 2006 10:06 AM
   To: Tapestry users
   Subject: Re: Tapestry 4.1 on a JVM 1.4
  
  
   [EMAIL PROTECTED] wrote:
  
  
   I think I just found out the hard way that 4.1 can't be used on 1.4! 
   Let me know if you find out anything. Too bad this wasn't mentioned 
   anywhere on the website :(
  
  
  
  
   Add a JIRA for this.
  
   There are currently just 4 source files using the @Override annotation
   and one using enums.
  
  
  
   -Greg
  
   -Original Message-
   From: Joseph Polanik [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, December 13, 2006 7:14 AM
   To: Tapestry users
   Subject: Tapestry 4.1 on a JVM 1.4
  
  
   For various reasons my company must defer upgrading to Java 1.5 for at
   least 3-4 months.
  
   I would like to upgrade to Tapestry 4.1 before then but attempting to
   use it results in a type mismatch error which seems to indicate that
   some part of the Tapestry 4.1  distribution requires Java 1.5.
  
   Is there something I can do (like removing certain files/jars) to run
   Tapestry 4.1 with Java 1.4?
  
   Thanks immensely for any information.
  
   Joseph Polanik
  
   -
   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]
  
  
  
  
  
  
  
  
  
  
  
 
 
  --
  Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
  Tapestry / Tacos developer
  Open Source / J2EE Consulting
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  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

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




-- 
Jesse Kuhnert
Tapestry/Dojo team 

Problem w/ Tacos AjaxForm AjaxSubmit

2006-12-13 Thread Leffel, Daniel
My project uses Tacos 4.0.1 and Tapestry 4.0.2. I'm trying to implement
a simple AjaxForm. I've confirmed the listener method is being called
but then the form does a postback. The debug console reads  Received
error response of type error with error XMLHttpTransport Error: 0. What
error is 0?

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

page-specification
class=com.savedsearchpro.priceitright.web.action.PlayGame
component id=entryForm type=tacos:AjaxForm 
binding name=updateComponents
value=ognl:{'entryForm'} /
binding name=listener
value=listener:updateGameEntry /
/component
/page-specification

--
public abstract class PlayGame extends BasePage {   
@Persist
public abstract Double getGuess();
public abstract void setGuess(Double guess);

public void updateGameEntry(IRequestCycle cycle){

}   
}

---
html jwcid=@Shell
script type=text/javascript
djConfig = { isDebug: true,
 baseRelativePath: js/dojo/,
 preventBackButtonFix: false
   };
/script
script type=text/javascript src=js/dojo/dojo.js/script
body jwcid=@Body
form jwcid=entryForm
fieldset
legendGuess/legend
input jwcid=[EMAIL PROTECTED] value=ognl:guess /
input jwcid=@tacos:AjaxSubmit/  
/form
/body
/html

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



Re: Node not found... any1 :( ? helpp

2006-12-13 Thread kit

Same as before ? meaning ?


Jessek wrote:
 
 I think the answer is the same as before. I'd sure appreciate a
 precise example showing the exact scenario in which to re-produce this
 issue.
 
 Otherwise we will just have to wait until I personally run into the
 same thing, and there's no telling how long that may be.
 
 On 12/6/06, kit [EMAIL PROTECTED] wrote:

 Any clue !? is this a bug or I missed out anything ?
 --
 View this message in context:
 http://www.nabble.com/Node-not-found...-any1-%3A%28---helpp-tf2762493.html#a7731133
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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

-- 
View this message in context: 
http://www.nabble.com/Node-not-found...-any1-%3A%28---helpp-tf2762493.html#a7865702
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: For Component Question

2006-12-13 Thread Andy Pahne


Oh, and there is contrib:Table of course:

http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html

A.



Ashish Kheterpal schrieb:

I am new to Tapestry and want to display a collection of items in a
table with the ability to control the number of rows and columns to
display the entries 

 


Is there a component that exists in Tapestry or Contrib library that can
be used ?

 


Any help is much appreciated

 


Thanks,

 


- Ashish K

 

 






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



[SOT] Tapestry, Maven, Cargo

2006-12-13 Thread Kevin Menard
Hi all,

I've been testing for a while using Cargo to start up a new JVM for Tomcat 5.x. 
 Due to speed issues and debugging hassle, I'm looking to have Cargo start up 
an embedded container instead (here, Jetty 6.x).  Not terribly surprisingly, 
I'm running into the duplicate JAR issue, since maven has the JARs on the 
classpath (or classworld) and the WAR I need to feed Cargo also has the JARs.  
At least now I remember why I've been running the container in a separate JVM 
instance . . .

Anyway, is anyone here running a similar setup and if so, how are you working 
around this?  One naïve approach is to change the scope of the hivemind and 
tapestry JARs in the POM to provided, so they're not on the classpath, but 
then they won't get added to the packaged WAR either.  I've been at this one 
for a bit now, so any help would be appreciated.

Thanks,
Kevin

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



RE: [SOT] Tapestry, Maven, Cargo

2006-12-13 Thread Kevin Menard
Nevermind.  The whole thing is just more work than it's worth.  Especially 
since an embedded Jetty 6.x will not place nicely with Selenium.

Thanks anyway,
Kevin 

 -Original Message-
 From: Kevin Menard [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, December 13, 2006 10:05 PM
 To: Tapestry users
 Subject: [SOT] Tapestry, Maven,  Cargo
 
 Hi all,
 
 I've been testing for a while using Cargo to start up a new 
 JVM for Tomcat 5.x.  Due to speed issues and debugging 
 hassle, I'm looking to have Cargo start up an embedded 
 container instead (here, Jetty 6.x).  Not terribly 
 surprisingly, I'm running into the duplicate JAR issue, since 
 maven has the JARs on the classpath (or classworld) and the 
 WAR I need to feed Cargo also has the JARs.  At least now I 
 remember why I've been running the container in a separate 
 JVM instance . . .
 
 Anyway, is anyone here running a similar setup and if so, how 
 are you working around this?  One naïve approach is to change 
 the scope of the hivemind and tapestry JARs in the POM to 
 provided, so they're not on the classpath, but then they 
 won't get added to the packaged WAR either.  I've been at 
 this one for a bit now, so any help would be appreciated.
 
 Thanks,
 Kevin
 
 -
 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]