Re: Non trivial example application?

2007-05-10 Thread Otho

Hello Juan,
thank you very much. This is exactly what i was looking for. Seeing things
in context makes all the difference.
Regards,
Otho

2007/5/11, Juan Maya <[EMAIL PROTECTED]>:


Otto, i just send u an application that contains mostly all of what i have
experienced with tapestry 5.
It's not complex but u could see a Template strategy, Custom components
and
a basic integration with Acegi.

Don;t doubt to contact me if u have any questions.




AW: instantiate abstract asset class

2007-05-10 Thread Peter Schröder
hi paul,

is there no way of delegating to your asset-class? or using a wrapper or adpter?

something about writing an abstract asset class that works with injection and 
then passing stuff to your asset?

you may also use the hivemind registry to directly call services at runntime. 
Registry.constructDefaultRegistry.getService(), something like that. 

-Ursprüngliche Nachricht-
Von: Paul Stanton [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 11. Mai 2007 04:16
An: Tapestry users
Betreff: Re: instantiate abstract asset class

maybe my problem is more to do with hivemind:

basically i have an asset class (developed by someone else) which is non 
abstract, but still needs to reference a hivemind service.

How can I have the service injected?

I've tried using setter method injection, but since the asset class is 
not registered with hivemind injection never occurs.

help appreciated.

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]



Re: instantiate abstract asset class

2007-05-10 Thread Paul Stanton

maybe my problem is more to do with hivemind:

basically i have an asset class (developed by someone else) which is non 
abstract, but still needs to reference a hivemind service.


How can I have the service injected?

I've tried using setter method injection, but since the asset class is 
not registered with hivemind injection never occurs.


help appreciated.

thanks.


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



Re: T5 - Changing Locale

2007-05-10 Thread petros

tapestry version 5.0.4

I have the following code in the html template of my LayoutCmpnt
Greek
English

and the following code in the LayoutCmpnt.java
@Inject
@Service("ThreadLocale")
private ThreadLocale threadLocaleService;

@Inject
private Locale currentLocale; 

@OnEvent(value = "action", component = "greekLocaleLink")
Object onActionFromGreekLocaleLink()
{
threadLocaleService.setLocale(new Locale("el"));
return null;
}

@OnEvent(value = "action", component = "englishLocaleLink")
Object onActionFromEnglishLocaleLink()
{
threadLocaleService.setLocale(new Locale("en"));
return null;
}   

When the Greek link is clicked the onActionFromGreekLocaleLink() method is
called as expected, but just before the method is returned the currentLocale
object is still set to the "en" Locale. Is this the right way to change the
Locale programmatically ?

Petros


Howard Lewis Ship wrote:
> 
> I think that comment is out of date.
> 
> You should be able to inject the ThreadLocale service and change the
> locale there.  Tapestry will pick up on that and write out an updated
> cookie, which will cause the subsequent render request to be in the
> new locale.
> 
> On 3/9/07, Bogdan Calmac <[EMAIL PROTECTED]> wrote:
>> Thanks guys, I saw that, but there was no mention about the ability to
>> change the locale at application level. So I can assume that for my
>> use case I would inject a new service in my page and use it to change
>> the locale programatically?
>>
>> Thanks,
>>
>> Bogdan Calmac.
>>
>> On 3/9/07, Hugo Palma <[EMAIL PROTECTED]> wrote:
>> > Take a look at the bottom of this page
>> >
>> http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html.
>> >
>> > /"Tapestry does not yet support changing the locale, but that will be
>> > available shortly."/
>> >
>> > Bogdan Calmac wrote:
>> > > Is it possible in Tapestry 5 to programatically change the locale for
>> > > a sesison similar to IEngine.setLocale() from Tapestry 4?
>> > >
>> > > In my case I want to set the locale after the login into the
>> > > application (locale is stored in the user profile) and not rely on
>> the
>> > > browser locale.
>> > >
>> > > Thank you,
>> > >
>> > > Bogdan Calmac.
>> > >
>> > > -
>> > > 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
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5---Changing-Locale-tf3376399.html#a10424282
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: T5 - JDBC path

2007-05-10 Thread Bill Holloway

I put my outside jars in /src/main/resources.  I believe WEB-INF/lib
should work as well.  Then in Eclipse I also configure them info the
build-time path.

Bill

On 5/7/07, Marcus <[EMAIL PROTECTED]> wrote:

Hi,

Using T5 and Jetty, where should I put my JDBC jar?
With T4 and Tomcat I just put on /common/lib or WEB-INF/lib and it
works.

Thank's
Marcus




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



Re: Non trivial example application?

2007-05-10 Thread Juan Maya

Otto, i just send u an application that contains mostly all of what i have
experienced with tapestry 5.
It's not complex but u could see a Template strategy, Custom components and
a basic integration with Acegi.

Don;t doubt to contact me if u have any questions.

On 5/10/07, Otho <[EMAIL PROTECTED]> wrote:


Hello Juan,
thank you very much for the links. I didn't know the second one yet. But
they don't really help. Maybe they are crystal clear if you have previous
knowledge of Tapestry but unfortunately I don't, so this somewhat
disconnected and abbreviated snippets don't tell me much. Is there really
no
example application for tapestry 5 out there where you can see a more
complex/dynamic layout in working form? With all necessary classes and
templates?
Regards,
Otho

2007/5/10, Juan Maya <[EMAIL PROTECTED]>:
>
> To define ur template strategy i recommend u to read this threads:
>
>
http://www.nabble.com/Templating-with-Tapestry-5-tf3659025.html#a10223765
>
>
http://www.nabble.com/T5%3A-Best-page-templating-strategy-tf3551324.html#a9914552
>
> After that is pretty straight forward.
>
> On 5/10/07, Otho <[EMAIL PROTECTED]> wrote:
> >
> > Hi all!
> >
> > I am new to Tapestry as a whole and tried to find my way through
> Tapestry
> > 5
> > docs with... mixed results.
> > What I really miss is a non trivial example application which shows
> > specifically how to do templating and component reuse in Tap5.
> >
> > From what I understood about the component orientation of tap it
should
> be
> > relatively easy to achieve something like a block-based setup like in
> some
> > well known cms (e.g. drupal) where you define which block is to be
> > rendered
> > with which preference in which page element. But... I was unable to
get
> a
> > hold on that from the existing docs unfortunately.
> >
> > So if someone could direct me to a link with codesamples I would be
> > grateful.
> >
> > Regards,
> > Otho
> >
>



Re: Non trivial example application?

2007-05-10 Thread Otho

Hello Juan,
thank you very much for the links. I didn't know the second one yet. But
they don't really help. Maybe they are crystal clear if you have previous
knowledge of Tapestry but unfortunately I don't, so this somewhat
disconnected and abbreviated snippets don't tell me much. Is there really no
example application for tapestry 5 out there where you can see a more
complex/dynamic layout in working form? With all necessary classes and
templates?
Regards,
Otho

2007/5/10, Juan Maya <[EMAIL PROTECTED]>:


To define ur template strategy i recommend u to read this threads:

http://www.nabble.com/Templating-with-Tapestry-5-tf3659025.html#a10223765

http://www.nabble.com/T5%3A-Best-page-templating-strategy-tf3551324.html#a9914552

After that is pretty straight forward.

On 5/10/07, Otho <[EMAIL PROTECTED]> wrote:
>
> Hi all!
>
> I am new to Tapestry as a whole and tried to find my way through
Tapestry
> 5
> docs with... mixed results.
> What I really miss is a non trivial example application which shows
> specifically how to do templating and component reuse in Tap5.
>
> From what I understood about the component orientation of tap it should
be
> relatively easy to achieve something like a block-based setup like in
some
> well known cms (e.g. drupal) where you define which block is to be
> rendered
> with which preference in which page element. But... I was unable to get
a
> hold on that from the existing docs unfortunately.
>
> So if someone could direct me to a link with codesamples I would be
> grateful.
>
> Regards,
> Otho
>



Re: I'm missing something obvious

2007-05-10 Thread Tony Nelson

Client side.. the nifty new dojo popup.

If I disable client side validation it works fine, and I will do that 
for now.. but I'd really rather not.


Thanks again
Tony

Andreas Andreou wrote:

well... the code is correct... i even tried it myself!

So, what kind of validation error you get?
Client side? or server side? What happens if you disable javascript?


On 5/11/07, Tony Nelson <[EMAIL PROTECTED]> wrote:


Sorry, I should have supplied that in my original e-mail.

public abstract Integer getTradeId();


Thanks again
Tony

Andreas Andreou wrote:
> What's the type of tradeId ?
>
> On 5/10/07, Tony Nelson <[EMAIL PROTECTED]> wrote:
>>
>> I have a simple form that includes this:
>>
>> >   validators="validators:required,min=0,max=100"
>>   translator="translator:number,pattern=0"
>>   displayName="Trade ID"
>>   />
>>
>>
>> And no matter what legal numeric value I enter, I always get a
>> validation error.
>>
>> Where is my typo?  Because I certainly can't find it.
>>
>> I'm using yesterdays 4.1.2 snapshot.
>>
>>   
>>   tapestry
>>   tapestry-annotations
>>   4.1.2-20070509.030104-65
>>   
>> true
>>   
>>   
>>   
>>   tapestry
>>   tapestry-contrib
>>   4.1.2-20070509.030104-68
>>   
>> true
>>   
>>   
>>   
>>   tapestry
>>   tapestry-framework
>>   4.1.2-20070509.030104-76
>>   
>> true
>>   
>>   
>>
>> Thanks in advance for any help.
>>
>> Tony
>>
>>
>>
>> -
>> 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: dojo Dialog, forms, asynchronous submission and javascript

2007-05-10 Thread Julian Wood
Ok I've got this working now, by doing the validation again, though  
that doesn't seem like the optimal way to do it.


dojo.event.connectOnce(tapestry.form, "submitAsync", function 
(e) {

if (e.id != "addBillableItemEventForm") return;
if (tapestry.form.validation.validateForm(dojo.byId 
(e.id), tapestry.form.forms[e.id])) {

dojo.widget.byId('addBillableItemEventDialog').hide();
}
});

Thanks,

J

On 9-May-07, at 5:19 PM, Jesse Kuhnert wrote:


Yes:

dojo.event.connectOnce(tapestry.form, "onFormSubmit" /** or even
"submitAsync" */, function(e){
// if you think it might be an issue you can double check the  
target

element id
if (evt.target.getAttribute("id") != "myExpectedId")
 return;

dojo.widget.byId("yourDialogComponentId").hide();

   //or if you ~really~ want it gone
   dojo.widget.byId("yourDialogComponentId").destroy();
});

That's it more or less .All of the event connections /  
reconnections /
etc can be seen if you take a look at the "registerForm" function  
in here,
it's the core function always called by tapestry whether the form  
is async

or normal.

http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry- 
framework/src/js/tapestry/form.js?view=markup


On 5/9/07, Julian Wood <[EMAIL PROTECTED]> wrote:


I'm experimenting with using a dojo Dialog for form input.

I open up a dojo dialog, add some data to my fields, and then click
on submit. Submit is just a regular old submit which submits my form
component. My form component is asynchronous and updates some parts
of the web page after its listener has finished. So far so good.

I also need it to close the dialog, and scrub the fields. How can I
invoke some javascript to do this, once the asynchronous submit has
returned successfully?

My current approach is to update a script component, which checks a
flag (set by the form listener) to see if we just had an asynchronous
form submission, and if true, includes a .script which takes the
desired javascript actions.

But it seems like a lot of work (and a lot of separate pieces) just
to invoke some javascript after the form submission. Is there a
better way?

Thanks,

J
--
Julian Wood <[EMAIL PROTECTED]>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca






--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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


--
Julian Wood <[EMAIL PROTECTED]>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca




Re: I'm missing something obvious

2007-05-10 Thread Andreas Andreou

well... the code is correct... i even tried it myself!

So, what kind of validation error you get?
Client side? or server side? What happens if you disable javascript?


On 5/11/07, Tony Nelson <[EMAIL PROTECTED]> wrote:


Sorry, I should have supplied that in my original e-mail.

public abstract Integer getTradeId();


Thanks again
Tony

Andreas Andreou wrote:
> What's the type of tradeId ?
>
> On 5/10/07, Tony Nelson <[EMAIL PROTECTED]> wrote:
>>
>> I have a simple form that includes this:
>>
>> >   validators="validators:required,min=0,max=100"
>>   translator="translator:number,pattern=0"
>>   displayName="Trade ID"
>>   />
>>
>>
>> And no matter what legal numeric value I enter, I always get a
>> validation error.
>>
>> Where is my typo?  Because I certainly can't find it.
>>
>> I'm using yesterdays 4.1.2 snapshot.
>>
>>   
>>   tapestry
>>   tapestry-annotations
>>   4.1.2-20070509.030104-65
>>   
>> true
>>   
>>   
>>   
>>   tapestry
>>   tapestry-contrib
>>   4.1.2-20070509.030104-68
>>   
>> true
>>   
>>   
>>   
>>   tapestry
>>   tapestry-framework
>>   4.1.2-20070509.030104-76
>>   
>> true
>>   
>>   
>>
>> Thanks in advance for any help.
>>
>> Tony
>>
>>
>>
>> -
>> 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 / JEE Consulting


Re: Tapestry 5 and Template Reloading

2007-05-10 Thread Andreas Andreou

http://jax.be/jettylauncher.jar

just copy + paste it in place of the old jar in the correct eclipse/plugin
folder ;)

On 5/10/07, bjornharvold <[EMAIL PROTECTED]> wrote:



This is still an issue. I have installed t5 5.0.4 with my app on two PCs
and
1 mac. Jetty launcher does not like jdk 1.6. All my laptops give me the
same
stacktace as noted.

--
View this message in context:
http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10420939
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
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 / JEE Consulting


Re: I'm missing something obvious

2007-05-10 Thread Tony Nelson

Sorry, I should have supplied that in my original e-mail.

   public abstract Integer getTradeId();


Thanks again
Tony

Andreas Andreou wrote:

What's the type of tradeId ?

On 5/10/07, Tony Nelson <[EMAIL PROTECTED]> wrote:


I have a simple form that includes this:




And no matter what legal numeric value I enter, I always get a
validation error.

Where is my typo?  Because I certainly can't find it.

I'm using yesterdays 4.1.2 snapshot.

  
  tapestry
  tapestry-annotations
  4.1.2-20070509.030104-65
  
true
  
  
  
  tapestry
  tapestry-contrib
  4.1.2-20070509.030104-68
  
true
  
  
  
  tapestry
  tapestry-framework
  4.1.2-20070509.030104-76
  
true
  
  

Thanks in advance for any help.

Tony



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

[T4] Must/should close output stream in engine services?

2007-05-10 Thread Dan Adams
When you have an engine service that serves up binary files, for
instance, and calls WebResponse.getOutputStream() should it or should it
not close the output stream when it's done with it?

-- 
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


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



Re: Dojo dialog is left aligned

2007-05-10 Thread Hugo Palma
I know, i'm using that to provide a custom look for the dialog. But i 
can't use the css to correct the placement of the dialog.

I've tried using the position css attribute with no luck.

Julian Wood wrote:

You can style that dialog to your preference. I use:

/* style the dojo dialog used for validation errors */
.alertDialog {
border: 1px dashed #191919;
padding: 5px;
background: #ffcc66;
}

.alertContent {
background: #ffcc66;
text-align: right;
}

.missingList {
text-align: left;
}

.alertButton {
}

J

On 10-May-07, at 11:37 AM, Hugo Palma wrote:

It seems that the dojo dialog that shows up when i use 
clientValidation is

aligned to the left instead of being in the middle.
I can see that the generated div with id "validationbDialog" has the 
correct
placement(it's right in the middle of the page) but the inner div 
that has
the contents of the dialog shows up left aligned. This happens in 
both FF

and IE.

I'm using 4.1.2 SNASHOT.
Is this a bug or am i missing something ?

Thanks


--
Julian Wood <[EMAIL PROTECTED]>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca





Re: I'm missing something obvious

2007-05-10 Thread Andreas Andreou

What's the type of tradeId ?

On 5/10/07, Tony Nelson <[EMAIL PROTECTED]> wrote:


I have a simple form that includes this:




And no matter what legal numeric value I enter, I always get a
validation error.

Where is my typo?  Because I certainly can't find it.

I'm using yesterdays 4.1.2 snapshot.

  
  tapestry
  tapestry-annotations
  4.1.2-20070509.030104-65
  
true
  
  
  
  tapestry
  tapestry-contrib
  4.1.2-20070509.030104-68
  
true
  
  
  
  tapestry
  tapestry-framework
  4.1.2-20070509.030104-76
  
true
  
  

Thanks in advance for any help.

Tony



-
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 / JEE Consulting


Re: Tapestry 5 and Template Reloading

2007-05-10 Thread bjornharvold

This is still an issue. I have installed t5 5.0.4 with my app on two PCs and
1 mac. Jetty launcher does not like jdk 1.6. All my laptops give me the same
stacktace as noted.

-- 
View this message in context: 
http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10420939
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: Non trivial example application?

2007-05-10 Thread Juan Maya

To define ur template strategy i recommend u to read this threads:

http://www.nabble.com/Templating-with-Tapestry-5-tf3659025.html#a10223765
http://www.nabble.com/T5%3A-Best-page-templating-strategy-tf3551324.html#a9914552

After that is pretty straight forward.

On 5/10/07, Otho <[EMAIL PROTECTED]> wrote:


Hi all!

I am new to Tapestry as a whole and tried to find my way through Tapestry
5
docs with... mixed results.
What I really miss is a non trivial example application which shows
specifically how to do templating and component reuse in Tap5.

From what I understood about the component orientation of tap it should be
relatively easy to achieve something like a block-based setup like in some
well known cms (e.g. drupal) where you define which block is to be
rendered
with which preference in which page element. But... I was unable to get a
hold on that from the existing docs unfortunately.

So if someone could direct me to a link with codesamples I would be
grateful.

Regards,
Otho



Re: [T4] ValidationDelegate to edit attributes?

2007-05-10 Thread Norman Franke
Alas, I decided to use 4.0.x due to the instability of 4.1 for this  
project. I guess for now, I'll just print the label in red and  
nothing else. I can't do the "**" after the field since that  
completely messes up the formatting (everything being placed rather  
precisely.)


I could probably do a writePrefix to insert a span with the class.

-Norman

On May 4, 2007, at 4:43 PM, Jesse Kuhnert wrote:

If using tap 4.1.2 (I know, sorry ) I think it just works as  
expected - but

there's also some new api calls for handling stuff like this - ie
appendAttribute() / getAttribute() / etc...

http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/ 
IMarkupWriter.html


On 5/4/07, Norman Franke <[EMAIL PROTECTED]> wrote:


I'm trying to develop a customized ValidationDelegate that add a
class to fields with an error. It works if the field doesn't already
have a class attribute. What I want to do is add the class name to
the existing attribute. Just adding one yields two class=""
attributes, which doesn't seem to render properly. (The second one is
completely ignored in some browsers.)

How can this be done? This is using Tapestry 4.0.2.

-Norman




-
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: Dojo dialog is left aligned

2007-05-10 Thread Julian Wood

You can style that dialog to your preference. I use:

/* style the dojo dialog used for validation errors */
.alertDialog {
border: 1px dashed #191919;
padding: 5px;
background: #ffcc66;
}

.alertContent {
background: #ffcc66;
text-align: right;
}

.missingList {
text-align: left;
}

.alertButton {
}

J

On 10-May-07, at 11:37 AM, Hugo Palma wrote:

It seems that the dojo dialog that shows up when i use  
clientValidation is

aligned to the left instead of being in the middle.
I can see that the generated div with id "validationbDialog" has  
the correct
placement(it's right in the middle of the page) but the inner div  
that has
the contents of the dialog shows up left aligned. This happens in  
both FF

and IE.

I'm using 4.1.2 SNASHOT.
Is this a bug or am i missing something ?

Thanks


--
Julian Wood <[EMAIL PROTECTED]>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca




Re: dojo Dialog, forms, asynchronous submission and javascript

2007-05-10 Thread Julian Wood

Ok that is quite nice. Still a few things. I'm at this point:


dojo.event.connectOnce(tapestry.form, "submitAsync", function 
(e) {

if (e.id != "addBillableItemEventForm") return;
dojo.widget.byId("addBillableItemEventDialog").hide();
});
 

The thing is, if validation fails, which is client side, then it pops  
up the validation error dialog, but closes the form dialog anyway  
(immediately). I'm still digging to see what I'm supposed to do to  
prevent this.


Attaching to onFormSubmit didn't appear to have any effect at all in  
my case (ie the form dialog doesn't close when you submit).


Thanks,

J


On 9-May-07, at 5:19 PM, Jesse Kuhnert wrote:


Yes:

dojo.event.connectOnce(tapestry.form, "onFormSubmit" /** or even
"submitAsync" */, function(e){
// if you think it might be an issue you can double check the  
target

element id
if (evt.target.getAttribute("id") != "myExpectedId")
 return;

dojo.widget.byId("yourDialogComponentId").hide();

   //or if you ~really~ want it gone
   dojo.widget.byId("yourDialogComponentId").destroy();
});

That's it more or less .All of the event connections /  
reconnections /
etc can be seen if you take a look at the "registerForm" function  
in here,
it's the core function always called by tapestry whether the form  
is async

or normal.

http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry- 
framework/src/js/tapestry/form.js?view=markup


On 5/9/07, Julian Wood <[EMAIL PROTECTED]> wrote:


I'm experimenting with using a dojo Dialog for form input.

I open up a dojo dialog, add some data to my fields, and then click
on submit. Submit is just a regular old submit which submits my form
component. My form component is asynchronous and updates some parts
of the web page after its listener has finished. So far so good.

I also need it to close the dialog, and scrub the fields. How can I
invoke some javascript to do this, once the asynchronous submit has
returned successfully?

My current approach is to update a script component, which checks a
flag (set by the form listener) to see if we just had an asynchronous
form submission, and if true, includes a .script which takes the
desired javascript actions.

But it seems like a lot of work (and a lot of separate pieces) just
to invoke some javascript after the form submission. Is there a
better way?

Thanks,

J


--
Julian Wood <[EMAIL PROTECTED]>

Software Engineer
Teaching & Learning Centre
University of Calgary

http://tlc.ucalgary.ca




Non trivial example application?

2007-05-10 Thread Otho

Hi all!

I am new to Tapestry as a whole and tried to find my way through Tapestry 5
docs with... mixed results.
What I really miss is a non trivial example application which shows
specifically how to do templating and component reuse in Tap5.


From what I understood about the component orientation of tap it should be

relatively easy to achieve something like a block-based setup like in some
well known cms (e.g. drupal) where you define which block is to be rendered
with which preference in which page element. But... I was unable to get a
hold on that from the existing docs unfortunately.

So if someone could direct me to a link with codesamples I would be
grateful.

Regards,
Otho


Dojo dialog is left aligned

2007-05-10 Thread Hugo Palma

It seems that the dojo dialog that shows up when i use clientValidation is
aligned to the left instead of being in the middle.
I can see that the generated div with id "validationbDialog" has the correct
placement(it's right in the middle of the page) but the inner div that has
the contents of the dialog shows up left aligned. This happens in both FF
and IE.

I'm using 4.1.2 SNASHOT.
Is this a bug or am i missing something ?

Thanks


I'm missing something obvious

2007-05-10 Thread Tony Nelson

I have a simple form that includes this:




And no matter what legal numeric value I enter, I always get a 
validation error.


Where is my typo?  Because I certainly can't find it.

I'm using yesterdays 4.1.2 snapshot.

 
 tapestry
 tapestry-annotations
 4.1.2-20070509.030104-65
 
   true
 
 
 
 tapestry
 tapestry-contrib
 4.1.2-20070509.030104-68
 
   true
 
 
 
 tapestry
 tapestry-framework
 4.1.2-20070509.030104-76
 
   true
 
 

Thanks in advance for any help.

Tony


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

Problem on Unit Testing Page with SpringBean injected

2007-05-10 Thread eko
Hi All,

So, I suceed in creating instance of Tapestry Page using PageTester.
But if the page contain Injected SpringBean, it'll cause error.
The error message says, "getAttribute() does not supported"
( more or less like that )

What is the Problem?
Is unit testing a Page containing Injected Spring Bean should be done with
another way?

Thanks in advance,
Eko SW
http://swdev.blogs.friendster.com/my_blog/


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



Re: T5 - Changing Locale

2007-05-10 Thread petros

I have the following link in my html tapestry page
English

and the following method in the corresponding Java Class but it doesn't get
called when the above link is clicked
@OnEvent(value = "action", component = "englishLocaleLink")
Object onActionFromEnglishLocaleLink(@InjectService("ThreadLocale")
ThreadLocale threadLocale)
{   
threadLocale.setLocale(new Locale("en"));
return null;
}

If I remove the ThreadLocale parameter the method gets called but obviously
the locale is not changed. 
Is the above the correct way to inject the ThreadLocale service in my page?
If yes then how can I force the above method to be called and consequently
change the locale. 

Thanks,
Petros


Howard Lewis Ship wrote:
> 
> I think that comment is out of date.
> 
> You should be able to inject the ThreadLocale service and change the
> locale there.  Tapestry will pick up on that and write out an updated
> cookie, which will cause the subsequent render request to be in the
> new locale.
> 
> On 3/9/07, Bogdan Calmac <[EMAIL PROTECTED]> wrote:
>> Thanks guys, I saw that, but there was no mention about the ability to
>> change the locale at application level. So I can assume that for my
>> use case I would inject a new service in my page and use it to change
>> the locale programatically?
>>
>> Thanks,
>>
>> Bogdan Calmac.
>>
>> On 3/9/07, Hugo Palma <[EMAIL PROTECTED]> wrote:
>> > Take a look at the bottom of this page
>> >
>> http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html.
>> >
>> > /"Tapestry does not yet support changing the locale, but that will be
>> > available shortly."/
>> >
>> > Bogdan Calmac wrote:
>> > > Is it possible in Tapestry 5 to programatically change the locale for
>> > > a sesison similar to IEngine.setLocale() from Tapestry 4?
>> > >
>> > > In my case I want to set the locale after the login into the
>> > > application (locale is stored in the user profile) and not rely on
>> the
>> > > browser locale.
>> > >
>> > > Thank you,
>> > >
>> > > Bogdan Calmac.
>> > >
>> > > -
>> > > 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
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5---Changing-Locale-tf3376399.html#a10414090
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: dirty form checking ...

2007-05-10 Thread Marcus.Schulte
Ok, now I got it right, almost ;).

Somehow tapestry tapestry.form.onFormSubmit  is not called, when you use
tapestry.form.submit to submit the form, as @LinkSubmit does.
So I ended up with two connections for the defuser:

dojo.event.connect("before", tapestry.form ,"onFormSubmit", 
 tapestry.dirtyFormWarning,
"defuse");   
dojo.event.connect("around", tapestry.form,"submit", 
 tapestry.dirtyFormWarning,
"defuseAround");

Now, this works fine for FF out of the box. However there's an 
issue with (surprise, surprise) IE, which fires onbeforeunload 
twice under certain circumstances, the first time being before 
one has a chance to defuse the warning component. Afaik, this
occurs only with the  idiom as
it is used in @LinkSubmit. I have therefore in our app replaced
@LinkSubmit with an equivalent component whiche renders
   ...
instead of
 ...

So, for this component to be useful for Tacos, tapestry's 
LinkSubmit would have to be changed accordingly.
Andy has already submitted a jira for this, I see:

https://issues.apache.org/jira/browse/TAPESTRY-1245

regards,
Marcus


> 
> Ok, I tried
>   dojo.event.connect( tapestry.form
> ,"onFormSubmit",tapestry.dirtyFormWarning, "defuse"); now, 
> same result: works for @Submit, doesn't work for @LinkSubmit ...
>  
> 
> > -Original Message-
> > From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, May 09, 2007 5:52 PM
> > To: Tapestry users
> > Subject: Re: dirty form checking ...
> > 
> > I think you can connect to tapestry.form.onFormSubmit as per:
> > 
> > http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry
> > -framework/src/js/tapestry/form.js?view=markup
> > 

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



Re: Does anyone have the same problem of following the T5 tutorial

2007-05-10 Thread John Lee

I got it, My eclipse was set to use java 1.4 instead of 5.
too stupid.

Thanks
Regards
John

- Original Message - 
From: "Eugene Lozovan" <[EMAIL PROTECTED]>
To: "Tapestry users" ; "John Lee" 
<[EMAIL PROTECTED]>

Sent: Thursday, May 10, 2007 12:57 PM
Subject: Re: Does anyone have the same problem of following the T5 tutorial



I was able to get 5.0.3 working in eclipse, may be
this
can help you a bit.

E.L.

On 10/05/07, John Lee <[EMAIL PROTECTED]> wrote:


Dear List,

I follow the tutorial to download hilo game. Since 5.0.4-snapshot have
bug, I modified pom.xml to use 5.0.3 instead, and I get it running.

However, after important the project to eclipse, I get compile error in
org.example.hilo.services.AppModule.

1. The type MappedConfiguration is not generic; it cannot be 
parameterized

with arguments 

2. The method format(String, Object[]) in the type String is not
applicable for the arguments (String, long)

I use jdk1.5.0_11 in the build path, java 5 should support generic class
and boxing conversion.

What's wrong with the project?

Regards
John


MSN: [EMAIL PROTECTED]

__  __   __  __  __  __  
/\  _  \/\ \ /\ \/\__  _\/\ \/\ \/\  _`\
\ \ \L\ \ \ \\ \ \   \/_/\ \/\ \ \_\ \ \ \L\_\
\ \  __ \ \ \  __\ \ \  __ \ \ \ \ \  _  \ \  _\L
  \ \ \/\ \ \ \L\ \\ \ \L\ \ \ \ \ \ \ \ \ \ \ \L\ \
   \ \_\ \_\ \/ \ \/  \ \_\ \ \_\ \_\ \/
\/_/\/_/\/___/   \/___/\/_/  \/_/\/_/\/___/


 __
/\  _`\  /\  _`\ /\  _`\ /\__  _\
\ \ \L\ \\ \ \L\_\ \,\L\_\/_/\ \/
\ \  _ <'\ \  _\L\/_\__ \  \ \ \
  \ \ \L\ \\ \ \L\ \/\ \L\ \ \ \ \
   \ \/ \ \/\ `\\ \ \_\
\/___/   \/___/  \/_/  \/_/







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



Re: AW: AW: T5: Generate pdfs.

2007-05-10 Thread Sabine K.

Thx Peter,

i found a way with this:

public class PdfWriterTestPage
{
public StreamResponse onSubmit()
{
// Create PDF
InputStream is=generatePDF("Hello very nice world");

// Return response
return new PdfStreamResponse(is);
}

public InputStream generatePDF(String teststring) 
{
// step 1: creation of a document-object
Document document = new Document();

ByteArrayOutputStream baos=new ByteArrayOutputStream();
try 
{
// step 2:
// we create a writer that listens to the document
// and directs a PDF-stream to a file
PdfWriter.getInstance(document, baos);
// step 3: we open the document
document.open();
// step 4: we add a paragraph to the document
document.add(new Paragraph(teststring));
} 
catch (DocumentException de) 
{
System.err.println(de.getMessage());
} 
// step 5: we close the document
document.close();
ByteArrayInputStream bais=new 
ByteArrayInputStream(baos.toByteArray());
return bais;
}

class PdfStreamResponse implements StreamResponse
{
private InputStream is;
public PdfStreamResponse(InputStream is)
{
this.is=is;
}
public String getContentType()
{
return "application/pdf";
}
public InputStream getStream() throws IOException
{
return is;
}
}
}



Peter Schröder-2 wrote:
> 
> hi sabine,
> 
> i overlooked your topic!
> 
> there are other possibilities in T5, you can use the SreamResponse to
> return a PDF via a listener!
> http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html
> 
> -Ursprüngliche Nachricht-
> Von: Ulrich Stärk [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 10. Mai 2007 11:46
> An: Tapestry users
> Betreff: Re: AW: T5: Generate pdfs.
> 
> Especially have a look at how to create your own service to output raw
> bytes instead of rendering a 
> HTML page.
> 
> Uli
> 
> Peter Schröder schrieb:
>> hi sabine,
>> 
>> take a look at http://www.agileskills2.org/EWDT/  
>> 
>> -Ursprüngliche Nachricht-
>> Von: Sabine K. [mailto:[EMAIL PROTECTED] 
>> Gesendet: Donnerstag, 10. Mai 2007 11:11
>> An: users@tapestry.apache.org
>> Betreff: T5: Generate pdfs.
>> 
>> 
>> Hello,
>> 
>> i want to generate a pdf file from some textareas. To generate the pdfs i
>> want to use itext. Can u give me some hinds were i can get some
>> information
>> for generating pdfs?
>> 
>> Best regards
> 
> 
> -
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Generate-pdfs.-tf3720491.html#a10410947
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Service finalize

2007-05-10 Thread Paulo Ramos

Hi,

I need to delete a temp file in the end of a request to a Service.
I'm using IEngineService and i try to implement PageEndRenderListener 
and PageDetachListener but this doesn't work.

There is another way to do that?

Thanks,
   Paulo Ramos



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



AW: AW: T5: Generate pdfs.

2007-05-10 Thread Peter Schröder
hi sabine,

i overlooked your topic!

there are other possibilities in T5, you can use the SreamResponse to return a 
PDF via a listener!
http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html

-Ursprüngliche Nachricht-
Von: Ulrich Stärk [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 10. Mai 2007 11:46
An: Tapestry users
Betreff: Re: AW: T5: Generate pdfs.

Especially have a look at how to create your own service to output raw bytes 
instead of rendering a 
HTML page.

Uli

Peter Schröder schrieb:
> hi sabine,
> 
> take a look at http://www.agileskills2.org/EWDT/  
> 
> -Ursprüngliche Nachricht-
> Von: Sabine K. [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 10. Mai 2007 11:11
> An: users@tapestry.apache.org
> Betreff: T5: Generate pdfs.
> 
> 
> Hello,
> 
> i want to generate a pdf file from some textareas. To generate the pdfs i
> want to use itext. Can u give me some hinds were i can get some information
> for generating pdfs?
> 
> Best regards


-
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: AW: T5: Generate pdfs.

2007-05-10 Thread Ulrich Stärk
Especially have a look at how to create your own service to output raw bytes instead of rendering a 
HTML page.


Uli

Peter Schröder schrieb:

hi sabine,

take a look at http://www.agileskills2.org/EWDT/  


-Ursprüngliche Nachricht-
Von: Sabine K. [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 10. Mai 2007 11:11

An: users@tapestry.apache.org
Betreff: T5: Generate pdfs.


Hello,

i want to generate a pdf file from some textareas. To generate the pdfs i
want to use itext. Can u give me some hinds were i can get some information
for generating pdfs?

Best regards



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



AW: T5: Generate pdfs.

2007-05-10 Thread Peter Schröder
hi sabine,

take a look at http://www.agileskills2.org/EWDT/  

-Ursprüngliche Nachricht-
Von: Sabine K. [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 10. Mai 2007 11:11
An: users@tapestry.apache.org
Betreff: T5: Generate pdfs.


Hello,

i want to generate a pdf file from some textareas. To generate the pdfs i
want to use itext. Can u give me some hinds were i can get some information
for generating pdfs?

Best regards
-- 
View this message in context: 
http://www.nabble.com/T5%3A-Generate-pdfs.-tf3720491.html#a10409778
Sent from the Tapestry - User mailing list archive at Nabble.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: 4.1.2-SNAPSHOT and OGNL 2.7-SNAPSHOT out of sync

2007-05-10 Thread Hugo Palma

Thanks, that worked
I'm still getting JDK1.4 trouble though:

java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer;
ognl.ASTProperty.toSetSourceString(ASTProperty.java:548)
org.apache.tapestry.services.impl.HiveMindExpressionCompiler.generateSetter(
HiveMindExpressionCompiler.java:397)
org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression
(HiveMindExpressionCompiler.java:188)
ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:387)
ognl.Ognl.compileExpression(Ognl.java:123)

I guess you still haven't ran the JDK1.4 tests :o)

On 5/9/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:


Ah yes, ignore the slight of hand. ..

http://opencomponentry.com/repository/m2-snapshot-repo/

On 5/9/07, Hugo Palma <[EMAIL PROTECTED]> wrote:
>
> I'm getting the following error when i start my application. It seems to
> me that Tapestry is invoking an ognl API method that isn't there.
> Maybe the ongl snapshots feel a little behind the tapestry ones ?
>
> java.lang.NoSuchMethodError:
>
org.apache.tapestry.services.impl.HiveMindExpressionCompiler.getRootExpression
> (Lognl/Node;Ljava/lang/Object;Lognl/OgnlContext;)Ljava/lang/String;
>
>
org.apache.tapestry.services.impl.HiveMindExpressionCompiler.generateGetter
> (HiveMindExpressionCompiler.java:319)
>
>
org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression
> (HiveMindExpressionCompiler.java:154)
> ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:387)
> ognl.Ognl.compileExpression(Ognl.java:123)
> org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(
> ExpressionCacheImpl.java:129)
>
>
org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression
> (ExpressionCacheImpl.java:91)
>
>
$ExpressionCache_112724fc190.getCompiledExpression($ExpressionCache_112724fc190.java)
> org.apache.tapestry.binding.ExpressionBinding.resolveExpression(
> ExpressionBinding.java:122)
> org.apache.tapestry.binding.ExpressionBinding.getObject(
> ExpressionBinding.java:113)
> org.apache.tapestry.binding.AbstractBinding.getObject(
> AbstractBinding.java:84)
> org.apache.tapestry.enhance.EnhanceUtils.toBoolean(
> EnhanceUtils.java:176)
> $Style_5.finishLoad($Style_5.java)
>
>


--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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



Re: JavaFX

2007-05-10 Thread Robin Ericsson

On 5/10/07, Bill Holloway <[EMAIL PROTECTED]> wrote:

Oh, wait a minute...here's a possible purpose:  You HAVE to use
NetBeans to develop it!  (At least for now).


No, there is an Eclipse plugin available.

--
   regards,
   Robin

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



T5: Generate pdfs.

2007-05-10 Thread Sabine K.

Hello,

i want to generate a pdf file from some textareas. To generate the pdfs i
want to use itext. Can u give me some hinds were i can get some information
for generating pdfs?

Best regards
-- 
View this message in context: 
http://www.nabble.com/T5%3A-Generate-pdfs.-tf3720491.html#a10409778
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: JavaFX

2007-05-10 Thread Bill Holloway

Oh, wait a minute...here's a possible purpose:  You HAVE to use
NetBeans to develop it!  (At least for now).

On 5/9/07, Konstantin Ignatyev <[EMAIL PROTECTED]> wrote:

Yeah, JavaFX looks really weird and purposeless.



--- Bill Holloway <[EMAIL PROTECTED]> wrote:

> I've looked at sample code for JavaFX and it reminds
> me *greatly* of
> all the IDE-generated stuff when I do Swing
> applications in Eclipse or
> netbeans.  God help us generating UI's by hand with
> this stuff!
>
> bill
>
> On 5/8/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > Yes..quite.
> >
> > There's a related article.
> http://beust.com/weblog/archives/000446.html
> >
> > On 5/8/07, Bill Holloway <[EMAIL PROTECTED]>
> wrote:
> > >
> > > See the article,
> > >
>
http://www.internetnews.com/dev-news/article.php/3676226.
>  Slashdotted
> > > too.  Interesting stuff.
> > >
> > > 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]
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind.
> http://blog.opencomponentry.com
> >
>
>
> --
> "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]
>
>


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]





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



[ANN] Tapestry 4 Tutorial, issue 8

2007-05-10 Thread Kolesnikov, Alexander GNI
Please have look:

http://www.devshed.com/c/a/Apache/Making-a-CelebrityCollector-with-Apach
e-Tapestry-the-For-Component/

Apparently, DevShed decided to publish Tapestry tutorials daily. 

Cheers,

Alexander


--
CONFIDENTIALITY NOTICE: If you have received this email in error, please 
immediately notify the sender by e-mail at the address shown.  This email 
transmission may contain confidential information.  This information is 
intended only for the use of the individual(s) or entity to whom it is intended 
even if addressed incorrectly.  Please delete it from your files if you are not 
the intended recipient.  Thank you for your compliance.  Copyright 2007 CIGNA
==


page under web-inf subdirectory won't load

2007-05-10 Thread Paul Stanton

Hi,

Here's how I would like to organise my templates:

* security of storing my html files under web-inf
* organisation of subdirectories
* no page specifications

So my desired structure is:
name: "Page1" and "module/Page2"
template: "WEB-INF/Page1.html" and "WEB-INF/module/Page2.html"
java: "com.pages.Page1.java" and "com.pages.module.Page2.java"

However, I find the only way for tapestry to find my template if it's 
under a module directory and has no .page specification is to store it 
outside of WEB-INF, which is not desirable.


Is this expected behaviour in 4.1 or have I missed something?

If it is expected, is there an intended resolution for later versions?

Thanks.




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



RE: dirty form checking ...

2007-05-10 Thread Marcus.Schulte
> And hey, if that works, perhaps contribute back into tacos?
> 
> i'm sure we'll have to implement that eventually, so it'll be 
> a huge shortcut if we could use that!

sure, if I ever make it work ... :(


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



AW: instantiate abstract asset class

2007-05-10 Thread Peter Schröder
did you try using Tapestry-Creator? thats a helper-object for testing. i dont 
know, if its just for components... 

-Ursprüngliche Nachricht-
Von: Paul Stanton [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 10. Mai 2007 02:39
An: Tapestry users
Betreff: Re: instantiate abstract asset class

no, I have a class which implements IAsset, and I need to be able to 
keep it abstract for injections, yet instantiate it or get a handle to 
an instance on demand.

Is there a pool/procedure in tapestry I can retrieve an instance from?

Thanks.

Jesse Kuhnert wrote:
> I don't think you can instantiate an abstract class.
>
> Were you trying to test a component?
>
> http://tapestry.apache.org/tapestry4.1/tapestry-test/components.html
>
> On 5/8/07, Paul Stanton <[EMAIL PROTECTED]> wrote:
>>
>> What is the best way to instantiate an abstract class defining an asset?
>>
>>
>> -
>> 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]