RE: T5: UploadedFile problem

2011-02-22 Thread Newham, Cameron
Thanks Thiago.

Although that begs the question as to why there is a getFilePath().

c.


-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 22 February 2011 14:22
To: Tapestry users
Subject: Re: T5: UploadedFile problem

On Tue, 22 Feb 2011 11:01:22 -0300, Newham, Cameron   
wrote:

> Hi,

Hi!

> I notice that: getFileName() and getFilePath()
> of UploadedFile return the same thing (the name of the file) on Windows.
> This seems to be a bug. I'd like to get the path - is there any way to
> do this?

It isn't a bug. For security reasons, browsers usually don't report the  
path.

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

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


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



T5: UploadedFile problem

2011-02-22 Thread Newham, Cameron
Hi,

 

I notice that:

 

getFileName()

 

and

 

getFilePath()

 

of UploadedFile return the same thing (the name of the file) on Windows.
This seems to be a bug. I'd like to get the path - is there any way to
do this?

 

 

Thanks,

c.

 



RE: Dynamic combo box - Tapestry 5.2.2

2011-02-11 Thread Newham, Cameron
The biggest problem I have with using Zones for dynamic combo boxes is
that the browser back button causes the whole thing to fail from a user
perspective.

Tapestry doesn't solve this out of the box - which is rather
disappointing.* Especially when it is advertised how easy AJAX is to use
with Tapestry.

I found it all to frustrating and gave up and returned to using some
Javascript to submit a form on combobox select to do the dynamics. Slow
- but at least it works.

c.


* of course, I'm always happy to have any error in my thinking pointed
out, but from an earlier question I asked on this list it appears that
this is a known issue with AJAX and the only way around it is to use
third-party hacks.


-Original Message-
From: Mark [mailto:mark-li...@xeric.net] 
Sent: 10 February 2011 20:07
To: Tapestry users
Subject: Re: Dynamic combo box - Tapestry 5.2.2

> Atcach, can you give a complete example (with .tml and controler
code), with
> multiple select to refresh.

Take a look at this as well:
http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/aja
xselect1

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


**
Experience the British Library online at http://www.bl.uk/
 
The British Library’s new interactive Annual Report and Accounts 2009/10 : 
http://www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
http://www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the 
mailto:postmas...@bl.uk : The contents of this e-mail must not be disclosed or 
copied without the sender's consent.
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author.
 
*
 Think before you print

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



RE: Noticed another stackoverflow question on Tapestry 5, go vote

2011-02-09 Thread Newham, Cameron
Bit of an odd statement!

I'm using Hibernate with Spring and Tapestry and you can use multiple
data sources with that solution. No hacking involved.

I never have used Tapestry-Hibernate.



-Original Message-
From: antalk [mailto:ant...@intercommit.nl] 
Sent: 09 February 2011 08:32
To: users@tapestry.apache.org
Subject: Re: Noticed another stackoverflow question on Tapestry 5, go
vote


True,

But they have forgotten to ask if the original poster wants to use
multiple
databases, if so i wouldn't encourage using Tapestry (sigh).

For me this is one of the biggest letdown's , i have written 2 apps in
Tap
5.2 who both require access to multiple datasources, but the inability
to
use multiple databases (through tap-hibernate) has required me to do
some
hacking around to get this working.

If i knew this beforehand i dont think i had choosen Tapestry.. 

On the other hand i think the framework is great and provides me with
enough
flexibilty to do what i want to do.
-- 
View this message in context:
http://tapestry.1045711.n5.nabble.com/Noticed-another-stackoverflow-ques
tion-on-Tapestry-5-go-vote-tp3377101p3377198.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


**
Experience the British Library online at http://www.bl.uk/
 
The British Library’s new interactive Annual Report and Accounts 2009/10 : 
http://www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
http://www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the 
mailto:postmas...@bl.uk : The contents of this e-mail must not be disclosed or 
copied without the sender's consent.
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author.
 
*
 Think before you print

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



RE: Discussion

2010-12-21 Thread Newham, Cameron
Some people just have an enormous chip on their shoulder and love to
shout about it.

There are some pretty serious projects out there using Tapestry, if I'm
not mistaken. I don't see why someone wouldn't have it on their
short-list of choices if starting a project.

I think the only serious point these denouncers have is the lack of
documentation - but even that has been addressed.

c.

-Original Message-
From: George Banus [mailto:georgeba...@gmail.com] 
Sent: 21 December 2010 10:48
To: users@tapestry.apache.org
Subject: Discussion

Hi,

I am a newbie to Tapestry and while googling to learn more about
tapestry, I
found this discussion going on at
http://www.theserverside.com/news/thread.tss?thread_id=61537. Some of
the
comments look very disappointing.
Is Tapestry really used for serious projects?

George

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



RE: [Tapestry Central] Announcing Tapestry 5.2

2010-12-17 Thread Newham, Cameron
Wow. Thank you very much.

Indeed, as I upgraded to 5.2 a couple of days ago I'm pleased to see
I've been running your final stable release.

I see the Wikipedia page has had a clean sweep - perhaps controversially
removing references to earlier versions.  Mmmm - they must have been
disappeared to the gulag.

Great work guys - looking forward to future releases.

c.


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



RE: T5: Javascript problem

2010-12-16 Thread Newham, Cameron

Thanks Andreas.

Yes, name attribute was the problem. I've changed to using getElementById and 
it's working again.

c.


-Original Message-
From: andre...@gmail.com [mailto:andre...@gmail.com] On Behalf Of Andreas 
Andreou
Sent: 16 December 2010 10:12
To: Tapestry users
Subject: Re: T5: Javascript problem

I dont like this way of refering to nodes (  document.entryForm.oosComment )
i'm not sure how many browsers fully support this but it looks like
this can work
when nodes have the name attribute set.

If i remember correctly, T5.1 used to include a name in each form but
this was removed
in 5.2 - see https://issues.apache.org/jira/browse/TAP5-796

So, anyway, see if your nodes have id, and just reference them in that
way using either
document.getElementById or prototype's $$

On Thu, Dec 16, 2010 at 10:51, Newham, Cameron  wrote:
> Hi!
>
>
>
> Another simple question.
>
>
>
> I had an application running under T5.1 and I've now moved to 5.2. I
> notice my Javascript is now broken. I have this function in my .tml
> file:
>
>
>
> 
>
>
>
> function checkOOS(myCheck)
>
> {
>
>   if(myCheck.checked)
>
>   {
>
>      document.entryForm.oosComment.disabled = false;
>
>      document.entryForm.oosComment.focus();
>
>   }
>
>   else
>
>   {
>
>      document.entryForm.oosComment.disabled = true;
>
>   }
>
> }
>
>
>
> 
>
>
>
> Which turns a select on and off by clicking a checkbox via onclick.
> While the JavaScript function is called, it no longer updates the
> disabled attribute of oosComment.
>
>
>
> Should I be adding my JavaScript with JavaScriptSupport (and if so,
> where is documentation or an example? The only mention of JavaScript I
> can find is in the HOW-TOs which show it being added to the .tml file
> directly in a script block).
>
>
>
> Also, why is this now partially non-functioning in 5.2? It seems that
> document.entryForm.oosComment.disabled is incorrect for referring to
> component oosComment. Yet this works fine under 5.1. My Form is called
> "entryForm" and oosComment is inside that. The page hasn't changed since
> it worked under 5.1 but, in that case, it seems I've been doing
> something wrong all along even though it worked.
>
>
>
> c.
>
>
>
>



-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry PMC / Tacos developer
Open Source / JEE Consulting

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


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



RE: T5: Progress indicator and AJAX example?

2010-12-14 Thread Newham, Cameron

Thanks Taha.

Now it all makes sense. I don't know why I didn't see the alert() - duh!

c.


-Original Message-
From: Taha Hafeez [mailto:tawus.tapes...@gmail.com] 
Sent: 14 December 2010 17:31
To: Tapestry users
Subject: Re: T5: Progress indicator and AJAX example?

Hi,

The reason that it did not work is because you have to handle the event
onUpdate in your page otherwise it throws a NPE. I have modified that
and
indicated that in bold.

The alert that you saw was a debug alert...(Oops!!).



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



RE: T5: Progress indicator and AJAX example?

2010-12-14 Thread Newham, Cameron
Further to this.

The part I think I am not understanding that is critical to the operation of 
this is:

resources.triggerEvent("update", new Object[]{value}, callback);
value = callback.getResult();

getResult() is always null. So I'm failing to understand how you are getting 
value set (it triggers an event - but...?)  Sorry if this seems obvious, but it 
unfortunately isn't to me.

c.


-Original Message-
From: Newham, Cameron [mailto:cameron.new...@bl.uk] 
Sent: 14 December 2010 09:35
To: Tapestry users
Subject: RE: T5: Progress indicator and AJAX example?

Thanks Taha for going to the trouble of providing source.

> It is very simple.

LOL. When people say this it usually isn't! And I'm afraid my knowledge of AJAX 
and Javascript make your code fairly impenetrable to me. When I use your code I 
just get a dialogue box tell me that the page says {} was returned and the 
value on the page is printed as undefined.

I've read your follow-up below and looked at the code and understand the gist 
of how it works but I'm afraid I don't understand what is wrong.

Thanks,
c.


-Original Message-
From: Taha Hafeez [mailto:tawus.tapes...@gmail.com] 
Sent: 12 December 2010 01:35
To: Tapestry users
Subject: Re: T5: Progress indicator and AJAX example?

Hi

It is very simple. In ProgressBar#afterRender an event "timer" is created
which is passed on to javascript. Javascript is a periodicExecuter
with period passed as a parameter. For each period it calls the event url
with the previous value of percentage as a parameter.

When the event is called onTimer() method is invoked in ProgressBar which
triggers an update event and expects a percentage value.
It then returns this percentage as a JSON object to the javascript ajax
call.

Finally javascript calls the method passed as clientFunc parameter of the
ProgressBar. In case the percentage has reached 100, it stops the
PeriodicExecuter

regards
Taha

2010/12/11 françois facon 

> Hi Taha,
>
> Thanks for sharing your code.
>
> It make me discover the CaptureResultCallback (new in 5.2).
>
> If I understand well your sample, to get progress value
> the progressBar component raise a server side event called 'update' and
> get the value from this callback.
>
> is it right?
>
>
>
>
> 2010/12/11 Taha Hafeez 
>
> > Hi,
> >
> > Here is a simple example
> >
> > Java Code :-
> >
> > import org.apache.tapestry5.BindingConstants;
> > import org.apache.tapestry5.ComponentResources;
> > import org.apache.tapestry5.Link;
> > import org.apache.tapestry5.MarkupWriter;
> > import org.apache.tapestry5.annotations.AfterRender;
> > import org.apache.tapestry5.annotations.Environmental;
> > import org.apache.tapestry5.annotations.Import;
> > import org.apache.tapestry5.annotations.Parameter;
> > import org.apache.tapestry5.internal.util.CaptureResultCallback;
> > import org.apache.tapestry5.ioc.annotations.Inject;
> > import org.apache.tapestry5.json.JSONObject;
> > import org.apache.tapestry5.services.Request;
> > import org.apache.tapestry5.services.javascript.JavaScriptSupport;
> >
> > @Import(library = "progressbar.js")
> > public class ProgressBar {
> >   @Parameter(value = "1", defaultPrefix=BindingConstants.LITERAL)
> >   private int period;
> >
> >   @Parameter(defaultPrefix = BindingConstants.LITERAL)
> >   private String clientFunc;
> >
> >   @Inject
> >   private ComponentResources resources;
> >
> >   @Environmental
> >   private JavaScriptSupport javaScriptSupport;
> >
> >   @Inject
> >   private Request request;
> >
> >   @AfterRender
> >   void afterRender(MarkupWriter writer){
> >  Link link = resources.createEventLink("timer");
> >  JSONObject spec = new JSONObject();
> >  spec.put("url", link.toAbsoluteURI());
> >  spec.put("period", period);
> >  spec.put("clientFunc", clientFunc);
> >  javaScriptSupport.addScript("new ProgressBar(%s);", spec);
> >   }
> >
> >   Object onTimer(){
> >  JSONObject spec = new JSONObject();
> >  double value = 0.0;
> >  try {
> > value = Double.parseDouble(request.getParameter("value"));
> >  }catch(NumberFormatException nfe){
> > return spec;
> >  }
> >
> >  CaptureResultCallback callback = new
> > CaptureResultCallback();
> >  resources.triggerEvent("update", new Object[]{value}, callback);
> >  value = callback.getResult();
> >  System.out.println("Value = " 

RE: T5: Progress indicator and AJAX example?

2010-12-14 Thread Newham, Cameron
gt; > method:"get",
> > onSuccess:function(transport){
> > this.onSuccess(transport);
> > }.bind(this)
> >  }, this.period);
> >   },
> >
> >   onSuccess:function(transport){
> >  var json = transport.responseText.evalJSON();
> >  if(typeof(json.value) == "undefined"){
> >  alert(transport.responseText + ": returned")
> >  this.stopExecuter();
> >  }
> >  this.value = json.value;
> >  if(this.clientFunc){
> >  var func = this.clientFunc +"(" + json.value+")";
> >  eval(func);
> >  }
> >
> >  if(json.value >= 100){
> > this.stopExecuter();
> >  }
> >   },
> >
> >   stopExecuter:function(){
> >   this.executer.stop();
> >   }
> > });
> >
> >
> > Usage :-
> >
> >  
> >  
> >  
> >  
> > updateFunc = function(percentage){
> >$("progressBar").update(percentage + "%");
> > };
> >  
> >
> >
> > Hope it helps
> > regards
> > Taha
> >
> > On Fri, Dec 10, 2010 at 6:55 PM, Richard Hill 
> > wrote:
> >
> > > Hi Cameron,
> > >
> > > For an example of how to make an ajax call from your own js see the
> mail
> > > I sent yesterday.
> > >
> > > Richard.
> > >
> > >
> > >
> > > On Fri, 2010-12-10 at 09:14 -0200, Thiago H. de Paula Figueiredo wrote:
> > > > On Fri, 10 Dec 2010 09:04:49 -0200, Newham, Cameron <
> > > cameron.new...@bl.uk>
> > > > wrote:
> > > >
> > > > > Hi,
> > > >
> > > > Hi!
> > > >
> > > > > I imagine that if I wanted just a simple field on a page that
> updated
> > > > > with a % then I would have Javascript make an AJAX get and obtain a
> > > > > value from the server. However, as I'm a complete newbie to AJAX,
> an
> > > > > example of how to do this would be extremely helpful.
> > > >
> > > > The AJAX part itself is completely Tapestry-unrelated and there are
> > many
> > > > examples in the Internet, maybe even in this mailing list archives. I
> > > > answered something similar yesterday. The AJAX Prototype
> documentation
> > is
> > > > here: http://api.prototypejs.org/ajax/Ajax/Request/.
> > > >
> > > > > Example silly
> > > > > questions: does my field have to be in a Zone?
> > > >
> > > > No, as long as you write your own JavaScript code to do and handle an
> > > AJAX
> > > > request and then update the page DOM.
> > > >
> > > > > Also, would the % value updated by my process just be held in a
> > > @Persist
> > > > > field?
> > > >
> > > > Absolutely no. Just get the % value when handling the request. You
> > don't
> > > > even need a field for that.
> > > >
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > > For additional commands, e-mail: users-h...@tapestry.apache.org
> > >
> > >
> >
>

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



RE: T5: Progress indicator and AJAX example?

2010-12-13 Thread Newham, Cameron
Thank you Thiago and Richard.



-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 10 December 2010 11:14
To: Tapestry users
Subject: Re: T5: Progress indicator and AJAX example?

On Fri, 10 Dec 2010 09:04:49 -0200, Newham, Cameron   
wrote:

> Hi,

Hi!

> I imagine that if I wanted just a simple field on a page that updated
> with a % then I would have Javascript make an AJAX get and obtain a
> value from the server. However, as I'm a complete newbie to AJAX, an
> example of how to do this would be extremely helpful.

The AJAX part itself is completely Tapestry-unrelated and there are many  
examples in the Internet, maybe even in this mailing list archives. I  
answered something similar yesterday. The AJAX Prototype documentation is  
here: http://api.prototypejs.org/ajax/Ajax/Request/.

> Example silly
> questions: does my field have to be in a Zone?

No, as long as you write your own JavaScript code to do and handle an AJAX  
request and then update the page DOM.

> Also, would the % value updated by my process just be held in a @Persist
> field?

Absolutely no. Just get the % value when handling the request. You don't  
even need a field for that.

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

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


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



T5: Progress indicator and AJAX example?

2010-12-10 Thread Newham, Cameron
Hi,

 

Can anyone point me to an example of a progress indicator or, more
simply, how one would go about having a page with a % complete field? I
have a process that ingests a file and takes quite a long time and I
would like to indicate to the user how much of it has been done.

 

I recall from research I did a few months ago that there is a progress
bar in one of the T5 component archives but there are no examples as to
how to use it and I'm not even sure if it works.

 

I imagine that if I wanted just a simple field on a page that updated
with a % then I would have Javascript make an AJAX get and obtain a
value from the server. However, as I'm a complete newbie to AJAX, an
example of how to do this would be extremely helpful. Example silly
questions: does my field have to be in a Zone? Or aren't Zones relevant
seeing as I would be making the AJAX get in my own Javascript. Also,
would the % value updated by my process just be held in a @Persist
field?

 

Anyway - some pointers or hints would be greatly appreciated.

 

Regards,

c.

 

 



RE: For the one at the Devoxx

2010-11-30 Thread Newham, Cameron
 

I plead guilty. I got the images but never find the time to post them.

 

I'll do it later.

^^^

 

;-)

 

 



From: Igor Drobiazko [mailto:igor.drobia...@gmail.com] 
Sent: 30 November 2010 13:56
To: Tapestry users
Subject: Re: For the one at the Devoxx

 

I plead guilty. I got the images but never find the time to post them.
I'll do it later.

On Tue, Nov 30, 2010 at 2:39 PM, Katia Aresti 
wrote:

 

2010/11/30 Andreas Andreou 

 

Hey - all you Tapestry guys/gals that met in Devoxx... I didn't
see any blog entry 


i'm a gal ? :D
 

(with photos) about your meeting.. is there any in the works?


I took some photos and I send them to the tespestry bloggers here. My
blog is in french - and some part in spanish too - . I'm going to
publish something related to Devoxx soon, but something more general. My
blog is a community blog. People don't care about what happy I was
meeting Christophe and Igor at Devoxx :) Even if for me this was one of
the very very very bests (BESTS!) events of this conference  
 

 

On Tue, Nov 30, 2010 at 15:07, Katia Aresti
 wrote:

Matt Raible has republished his comparatif

:)




http://spreadsheets.google.com/pub?key=0AtkkDCT2WDMXdC1HOEtnUHpCejJMbUhG
eGJWUmh5dVE&hl=en&output=html





2010/11/24 Werner Keil 

 

Oops, did his talk or the controversial discussion
following it cause his own (Java EE powered, at least he eats his own
dogfood ) servers to crash with not enough memory ?! 

 

That would be a poor signal, especially to "Real world"
customers, but he's not alone in this.

 

Another "star" among DevoXX presenters, this year he had
a scheduling conflict has turned out to fail a similar "reality test", a
very smart team mate at my old mobile project last year presented him. 

 

It happens to the best of us and maybe the DevOps guys
some of them also at the same event could help him to prevent this in
future...?

 

Werner

 

On Fri, Nov 19, 2010 at 10:29 PM, Massimo Lusetti
 wrote:

On Fri, Nov 19, 2010 at 5:37 PM, Christophe Cordenier
 wrote:

> Hi
>
> Actually, you can send him en email if you think
values are not justified,
> he told to the audience that he will update it !

Oh... maybe they're still using a pooling mechanism
 (no rage just fun:)

http://raibledesigns.com/contact.jsp

Unexpected Exception

Status Code 500
Message javax.servlet.ServletException:
java.lang.OutOfMemoryError:
unable to create new native thread
Type
Exception   Roller has encountered and logged an
unexpected exception.



--

Massimo
http://meridio.blogspot.com


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

 

 





-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry PMC / Tacos developer
Open Source / JEE Consulting

 




-- 
Best regards,

Igor Drobiazko
http://tapestry5.de



Tapestry Mailing List vs Forum

2010-11-25 Thread Newham, Cameron
An interesting discussion.

However, while I do see that a forum would, perhaps, be initially more user 
friendly for new people to join, in the end the creation of such a thing would 
either divide the community into those on the ML and those on the forum, or at 
worst the forum would end up with new users joining and no answers because all 
of the old hands are on this ML. It wouldn't look good either way.

Personally I prefer the ML for Tapestry - mainly because the signal to noise 
ratio is high, there aren't huge numbers of posts, and the things drop into my 
mailbox where I can easily see them. People on here are (for the most part) 
friendly and very helpful. I'd rather that wasn't damaged by changing things 
just for the sake of change.

I'd rather that the effort going into this discussion was instead directed to 
providing better documentation. It's one thing I find most frustrating in the 
computer industry. I'm afraid I'm not as geeky as some who reside on here and 
elsewhere; I like instructions to have all the parts filled in, rather than 
instructions where large parts are missing and only the "juicy details" given 
because the author assumes you understand and can fill in background yourself. 
Some of the HOW-TOs are unfortunately like that. I have a job to do and I don't 
spend my weekends building my own server or bed time reading of IPv6 (anything 
but computers! You know what I mean) so better documentation (along the lines 
of the new Tutorial and docs) is better for me, better for my employer, and 
better for those coming to Tapestry for the first time.

Paul, if the user base increased to such an extent that there were scores of 
emails per day then I think we should look again at a forum. Until then I think 
it's not worth exploring.

c.


-Original Message-
From: Paul Stanton [mailto:p...@mapshed.com.au] 
Sent: 25 November 2010 09:20
To: Tapestry users
Subject: Re: Tapestry Web Site Updated

"I don't see why those questions can't be asked and answered on the 
mailing lists. "

you are missing the point. they probably haven't been asked on the ml 
because the user doesn't want to register/subscribe/manage the ml. some 
people have a general aversion to ml's.

p.

On 25/11/2010 7:07 PM, Ulrich Stärk wrote:
> I don't see why those questions can't be asked and answered on the 
> mailing lists.
>
> If you want to ask or answer questions on stackoverflow, do it. If you 
> want to create a forum that's fine too. But the only *official* help 
> source will be the mailing lists. Everything else will just partition 
> the community.
>
> Uli
>
> On 25.11.2010 02:12, Paul Stanton wrote:
>> Andreas,
>>
>> Agreed 100%.
>>
>> http://stackoverflow.com/questions/tagged/tapestry
>> or as a feed:
>> http://stackoverflow.com/feeds/tag/tapestry
>>
>> Maybe the tapestry site can leverage stackoverflow as it's 
>> recommended question/answer forum?
>>
>> To work however, this would require some of the people here to take 
>> interest.
>>
>> p.
>>
>> On 25/11/2010 11:41 AM, Andreas Andreou wrote:
>>> You're probably right on the reasons, but the thing is that it's a 
>>> pain having
>>> to monitor multiple sources of user feedback - there's just never 
>>> enought free
>>> time to do so.
>>>
>>> And there's also a few big risks:
>>> 1) Making the community appear to be unresponsive
>>> 2) Frustrating users who never get their questions answered
>>> 3) Spreading the info to multiple places is hard to update
>>> and easy to get obsolete
>>>
>>> So, anyway, Tapestry has the mailing list, its website/documentation 
>>> and there's
>>> always StackOverflow. Perhaps it makes sense to define a strategy on 
>>> how to take
>>> advantage of that last one though
>>>
>>> On Thu, Nov 25, 2010 at 01:36, Paul Stanton wrote:
 it did. it's still there but doesn't have the community.

 the reason it dies was twofold:

 1. it was very spam prone: the way it was set up did not do enough to
 limit/kill spammers
 2. it did not get the tapestry community support - it was not even
 acknowledged by the tapestry site

 that's not to say a forum wouldn't work if setup and supported by 
 the core
 tapestry community.

 p.

 On 25/11/2010 8:18 AM, Robert Zeigler wrote:
> Tapestry had a forum for awhile. I think it died.
>
> Robert
>
> On Nov 24, 2010, at 11/244:46 AM , Paul Stanton wrote:
>
>> i know most of you guys, who have been using ml for so long probably
>> prefer ml, that's not the point!
>>
>> i guarantee there's a number of users who don't want to configure 
>> their
>> inbox for ml and give up.
>>
>> just a thought, if no one can see the benefit i guess it isn't 
>> going to
>> happen!
>>
>> i use stackoverflow a lot and attempt to answer or contribute to 
>> most
>> tapestry questions.
>>
>> p.
>>
>> On 24/11/2010 8:35 PM, Ivano Luberti wrote:
>>> 

RE: Disabling submit button after click

2010-11-23 Thread Newham, Cameron
It's exactly this kind of thing that should appear as an example on the
new website.

c.

-Original Message-
From: Inge Solvoll [mailto:inge.tapes...@gmail.com] 
Sent: 23 November 2010 12:36
To: Tapestry users
Subject: Re: Disabling submit button after click

Easy:

Create a mixin that:
- uses javascript to apply "disabled"-looking css styles when clicking
the
button
- hooks a javascript handler to the button that cancels future submits.
- on AJAX return, revert 2 previous actions from a javascript listener.

On Tue, Nov 23, 2010 at 12:56 PM, Hugo Palma 
wrote:

> I would like to disable a form submit button after click in order to
avoid
> multiple clicking.
> This can easily be done by calling "this.disabled = true" on the
onclick
> event of the button but this also prevents the submit event from
executing.
>
> I could do "this.disabled = true;form.submit()" but in my case i have
an
> ajax form with the zone parameter and the form.submit() forces the
"normal"
> submit with full page reload.
> So, any idea how i can disable the submit button and not cancel the
ajax
> form submit ?
>
> Thanks,
> Hugo
>
> --
>
> LinkedIn 
> Twitter
>

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



RE: Tapestry Web Site Updated

2010-11-22 Thread Newham, Cameron
I think the new site is an excellent start. I agree with Javier's comments and 
would like to add that the red stop signs in the tutorial are a worry. For 
instance, the first one:

"This chapter may look long, but almost all of it is one-time setup for Maven 
and Eclipse. The actual Tapestry part is really small and simple. Enjoy!"

It looks like there is a problem with the page, along the lines of Wikipedia's 
article warnings made by those editing the text, and with a cursory glance 
looks more like: "This article is too long and needs cleaning up". i.e.: an 
instruction aimed at the authors rather than the reader. It's also rather 
disconcerting, in this example, that the word "enjoy" appears in a big scary 
warning!

There is also a problem with verbosity. I think it's great to have lengthy 
discussions, but possibly place some of the non-directly-related material and 
asides in separate boxes titled something like "Additional Information".

c.


-Original Message-
From: Javier Molina [mailto:jav...@comunicamultimedia.com] 
Sent: 22 November 2010 09:37
To: users@tapestry.apache.org
Subject: Re: Tapestry Web Site Updated

I haven't explored the site thoroughly, but here are some comments:

- in general, the new site looks prettier

- it doesn't look good to have a "Tapestry 5.2.3 -- canceled" post on 
the front page. It's scary and you have to read the rest to know that 
it's just a release that didn't pass the vote. I know there's now a post 
above that saying 5.2.4 beta release, I'm commenting about the concept 
of "fear-about-the-future-of-tapestry" content with such visibility. Do 
we want things like that to see what potential new users get on their 
first visit?

- news feed titles have too large a font

- there's too much text in the left column. I know there are a lot of 
benefits and features to tapestry, but it looks intimidating.

- in the "create your first tapestry project" tutorial, don't make the 
user choose an archetype or a tapestry version. Write the instructions 
for the latest stable version. It's better to have that be out of date 
when a new version comes out (because it still will work) than have the 
user decide at this stage. Same for the groupId, artifactId, version and 
package. It's a test project the user is creating, those values are not 
going to matter. Give the defaults so people can copy and paste the 
command and have the project created, built and run.

- the big red scary warning about the project layout changing across 
different versions has no reason to be. By the time the user has this 
problem he will know how to solve it.

- after the test project has been created, give the user some pointers 
on where to find things (pages go in src/main/java/com/example/pages, 
page templates go in webapp). I know there is a link to the tutorial but 
if this first experience is too frustrating, people might not even 
bother to go there.

- add something to the archetype with commented out code that the user 
can uncomment and see something cool happen. It has to be a few lines 
only, to be easily understandable, and clearly link components in the 
template with their methods in the page class.

- the tapestry tutorial starts unnecessarily verbose about topics not 
really related to me getting code running and out the door. Strip it to 
the essentials. If you want to mention Struts and the Servlet API 
compared to the tapestry way, mention them in a separate chapter so they 
are easy to find / skip as needed.

- there is no table of contents for the tutorial and no indication of 
how long it takes to complete.

- there are too many callouts, warnings and decorations in the tutorial. 
It is very distracting visually and that makes it hard to follow. It's 
impossible to scan the pages to get a feel for what you've got ahead of you.

Basically, what most of the above boils down to is: make the barrier to 
entry as absolutely low as possible. All the magic tapestry does for you 
and how great a framework it is will not matter if people don't get past 
the initial experience.

El 19/11/10 22:15, Howard Lewis Ship escribió:
> We're still working out the kinks ... and I've been working hard on revising
> the tutorial ... but at long last, we're debuting the new Tapestry Web Site:
>
> http://tapestry.apache.org/
>
> Feedback is encouraged; just post to users@tapestry.apache.org with [SITE]
> in the subject.
>



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


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



RE: Upcoming Tapestry Training: Howard Lewis Ship and SkillsMatter

2010-11-17 Thread Newham, Cameron
I attended the last Tapestry course in London and it was excellent. I
recommend it to anyone using Tapestry.

c.


-Original Message-
From: Howard Lewis Ship [mailto:hls...@gmail.com] 
Sent: 16 November 2010 21:34
To: Tapestry users
Subject: Upcoming Tapestry Training: Howard Lewis Ship and SkillsMatter

I have two public training sessions for Tapestry coming up.  These are
my
hands-on workshop, a four day course that takes you from zero to writing
testable, Ajax-enhanced, database-driven applications by day four.

An outline of the course is available at:
http://howardlewisship.com/training.html

The first training will be Dec 6 - 9 in Paris.

The second will be Mar 7 - 10 in London.

Details about pricing and availability are here:
http://skillsmatter.com/course/java-jee/tapestry-web-development


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn
how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

**
Experience the British Library online at http://www.bl.uk/
 
The British Library’s new interactive Annual Report and Accounts 2009/10 : 
http://www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
http://www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the 
mailto:postmas...@bl.uk : The contents of this e-mail must not be disclosed or 
copied without the sender's consent.
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author.
 
*
 Think before you print

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



RE: Lots of Tapestry problems - quickstart and tutorial

2010-07-23 Thread Newham, Cameron

Thanks Andreas. Much appreciated.


-Original Message-
From: andre...@gmail.com [mailto:andre...@gmail.com] On Behalf Of Andreas 
Andreou
Sent: 22 July 2010 12:22
To: Tapestry users
Subject: Re: Lots of Tapestry problems - quickstart and tutorial

ok, my bad - i've left some https references in
http://tapestry.apache.org/archetype-catalog.xml
and that's probably causing this.

I've changed them all to http but it may take some time
before changes are propagated to public server.
In the meantime, just wget the file, change https->http
and point to that catalog file using
mvn archetype:generate -DarchetypeCatalog=myfile.xml

On Thu, Jul 22, 2010 at 14:12, Andreas Andreou  wrote:
> Well, i retried here from an empty repo and it worked.
> Your problems seem to be that in one case http://tapestry.apache.org
> seems inaccessible through your proxy and in the other case (stack overflow)
> that https://ibiblio.org/maven2/ refuses connections
>
> Now, i'm not sure why there's the httpS there, so i'll investigate some more
>
> On Thu, Jul 22, 2010 at 11:58, Newham, Cameron  wrote:
>>
>>
>> -Original Message-
>> From: andre...@gmail.com [mailto:andre...@gmail.com] On Behalf Of
>> Andreas Andreou
>> Sent: 21 July 2010 13:52
>> To: Tapestry users
>> Subject: Re: Lots of Tapestry problems - quickstart and tutorial
>>
>> Even better to use
>> mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org
>>
>> We've tried to move stuff away from formos infrastructure
>>
>> --
>>
>>
>>
>> Thanks for your comments Andreas. However, I still get the same
>> problems.
>>
>> In the interests of making no errors I switched back to a clean install
>> of Maven 2.2.1, removed my repository, made sure my settings.xml was
>> pointing to our proxy and executed the command given by you. It chokes
>> on getting the tapestry catalog, getting a NPE, as shown at the end of
>> this email.
>>
>> I then deleted my repository and moved back to using maven with our
>> proxy hard-coded. It downloads the catalog fine but when it now attempts
>> to get
>>
>> https://www.ibiblio.org/maven2//org/apache/tapestry/quickstart/5.1.
>> 0.5/quickstart-5.1.0.5.jar
>>
>> It gets a stack overflow thus (short excerpt):
>>
>> --
>> ...
>> Downloading:
>> http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1
>> .1.8/plexus-velocity-1.1.8.jar
>>
>> [INFO] [archetype:generate {execution: default-cli}]
>> [INFO] Generating project in Interactive mode
>> [INFO] No archetype defined. Using maven-archetype-quickstart
>> (org.apache.maven.
>> archetypes:maven-archetype-quickstart:1.0)
>> Choose archetype:
>> 1: http://tapestry.apache.org -> quickstart (Tapestry 5.2.0-SNAPSHOT
>> Quickstart
>> Project)
>> 2: http://tapestry.apache.org -> tapestry-archetype (Tapestry 4.1.6
>> Archetype)
>> Choose a number: : 1
>> Choose version:
>> 1: 5.0.19
>> 2: 5.1.0.5
>> 3: 5.2.0-SNAPSHOT
>> Choose a number: : 2
>> Downloading:
>> https://www.ibiblio.org/maven2//org/apache/tapestry/quickstart/5.1.
>> 0.5/quickstart-5.1.0.5.jar
>> [INFO]
>> 
>> [ERROR] FATAL ERROR
>> [INFO]
>> 
>> [INFO] null
>> [INFO]
>> 
>> [INFO] Trace
>> java.lang.StackOverflowError
>>        at java.lang.System.getProperty(System.java:649)
>>        at
>> sun.security.action.GetPropertyAction.run(GetPropertyAction.java:67)
>>        at
>> sun.security.action.GetPropertyAction.run(GetPropertyAction.java:32)
>>        at java.security.AccessController.doPrivileged(Native Method)
>>        at java.io.BufferedWriter.(BufferedWriter.java:91)
>>        at java.io.BufferedWriter.(BufferedWriter.java:70)
>>        at java.io.PrintStream.init(PrintStream.java:83)
>>        at java.io.PrintStream.(PrintStream.java:125)
>>        at sun.net.www.http.HttpClient.openServer(HttpClient.java:396)
>>        at sun.net.www.http.HttpClient$4.run(HttpClient.java:457)
>>        at java.security.AccessController.doPrivileged(Native Method)
>>        at
>> sun.net.www.http.HttpClient.privilegedOpenServer(HttpClient.java:439)
>>
>>        at sun.net.www.http.HttpClient.openServer(HttpClient.java:520)
>>        at
>> sun.net.www.proto

RE: Lots of Tapestry problems - quickstart and tutorial

2010-07-22 Thread Newham, Cameron


-Original Message-
From: andre...@gmail.com [mailto:andre...@gmail.com] On Behalf Of
Andreas Andreou
Sent: 21 July 2010 13:52
To: Tapestry users
Subject: Re: Lots of Tapestry problems - quickstart and tutorial

Even better to use
mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org

We've tried to move stuff away from formos infrastructure

--



Thanks for your comments Andreas. However, I still get the same
problems.

In the interests of making no errors I switched back to a clean install
of Maven 2.2.1, removed my repository, made sure my settings.xml was
pointing to our proxy and executed the command given by you. It chokes
on getting the tapestry catalog, getting a NPE, as shown at the end of
this email.

I then deleted my repository and moved back to using maven with our
proxy hard-coded. It downloads the catalog fine but when it now attempts
to get 

https://www.ibiblio.org/maven2//org/apache/tapestry/quickstart/5.1.
0.5/quickstart-5.1.0.5.jar

It gets a stack overflow thus (short excerpt):

--
...
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1
.1.8/plexus-velocity-1.1.8.jar

[INFO] [archetype:generate {execution: default-cli}]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart
(org.apache.maven.
archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: http://tapestry.apache.org -> quickstart (Tapestry 5.2.0-SNAPSHOT
Quickstart
Project)
2: http://tapestry.apache.org -> tapestry-archetype (Tapestry 4.1.6
Archetype)
Choose a number: : 1
Choose version:
1: 5.0.19
2: 5.1.0.5
3: 5.2.0-SNAPSHOT
Choose a number: : 2
Downloading:
https://www.ibiblio.org/maven2//org/apache/tapestry/quickstart/5.1.
0.5/quickstart-5.1.0.5.jar
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.StackOverflowError
at java.lang.System.getProperty(System.java:649)
at
sun.security.action.GetPropertyAction.run(GetPropertyAction.java:67)
at
sun.security.action.GetPropertyAction.run(GetPropertyAction.java:32)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.BufferedWriter.(BufferedWriter.java:91)
at java.io.BufferedWriter.(BufferedWriter.java:70)
at java.io.PrintStream.init(PrintStream.java:83)
at java.io.PrintStream.(PrintStream.java:125)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:396)
at sun.net.www.http.HttpClient$4.run(HttpClient.java:457)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.net.www.http.HttpClient.privilegedOpenServer(HttpClient.java:439)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:520)
at
sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:271)
at
sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:328)
at
sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:309)
at
sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:301)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.proxied
Connect(AbstractDelegateHttpsURLConnection.java:130)
at
sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnec
tion.java:1363)
at
sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:762)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at
sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnec
tion.java:1372)
at
sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:762)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at
sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnec
tion.java:1372)
.



So I seem to be stuck. I have had no problems in the past accessing
things through our firewall.

Suggestions?  I am at a complete loss now. Is this a firewall problem, a
Maven problem or a Tapestry archive problem?

I have tried the old formos command again and it works (using my
modified Maven with the hard-coded proxy)

C:\UKRR>mvn archetype:generate
-DarchetypeCatalog=http://tapestry.formos.com/maven-repository

Giving a BUILD SUCCESSFUL.


Clean install Maven result referred to at the start of this email given
here:



C:\UKRR>mvn archetype:generate
-DarchetypeCatalog=http://tapestry.apache.org
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
chec

Lots of Tapestry problems - quickstart and tutorial

2010-07-21 Thread Newham, Cameron
Hi,

 

I've been away from Tapestry for quite a while and haven't done any
serious Tapestry stuff for at least 9 months. I have come back to find
everything broken and I feel like a complete newbie . Could
someone set me straight.

 

Problem 1 (which I have solved) is that I found Maven refused, when
using the "Quickstart Archetype", to download
http://tapestry.formos.com/maven-snapshot-repository/archetype-catalog.x
ml  giving "connection refused" even though it had no trouble
downloading everything else and I could access this file via my browser.
I am behind a corporate firewall, so there seems to be an issue here
with this Tapestry repository location (I had no problems when I
attempted this at home). I spent two days on this and eventually got the
Maven source and modified LightweightWagon and hardcoded our proxy
server. Probably not the right thing to do but it worked - perhaps
someone can suggest what should be done (I tried everything including
various things in my settings.xml, the global settings.xml and even went
as far as using cntlm, although that was not necessary and didn't solve
it anyway).

 

Problem 2 - http://tapestry.apache.org/tapestry5.1/tutorial1/first.html
is out of date and doesn't work. As I'm sure you are aware "create" is
deprecated. When it's changed to "generate" it does d/l a lot of stuff
but the build fails (it throws an exception inside Maven).

 

Problem 3 - Having failed on (2) I tried the "Quickstart Archtype"
http://tapestry.apache.org/tapestry5.1/quickstart/  .  Great - it does
work and mvn jetty:run works. However, when I create a new Project and
place the code into Eclipse it does not work. I can't import it as it's
not an Eclipse Project. Jetty runs when the project is run in Eclipse
but the Index page in the browser just has "[[missing key: greeting]]"
and nothing else.

 

 

To add to this tale of woe, my last big Tapestry project no longer
works. I fire it up and now get Jetty giving me a 503 code, yet it was
working fine a year ago.

 

Anyway, I would just like a nice clean simple example that works in
Eclipse so I can begin coding a new webapp.

 

I am at my wits end... :-(

 

 



RE: About T5 integration modules

2009-12-30 Thread Newham, Cameron

Interesting.

I'd hardly call myself even an advanced-intermediate Tapestry user (some
of the stuff you guys talk about is way over my head!) but really, is it
that difficult to create a Dispatcher and custom page annotations?!

I included simple security with roles very early on in my webapp by
going the page annotation route because it was a) understandable  and b)
simple to implement by following the examples I'd seen. I had even less
of an understanding of Tapestry than I do now.

I found it very easy to understand and code, and it works so well. I
shudder to think how long it would have taken ploughing through
documents on security solutions, like Spring Security, when all I wanted
was half a dozen roles and some way to mark my pages as general viewing
or requiring login under a certain role.

As I've said all along, I think the only thing lacking big time for
Tapestry is clear, easy to understand documentation with good simple
examples of each feature. That said - I had no troubles with the above
security stuff (and I didn't even have to look at Tapestry source code
;-)

Rather than providing large cumbersome bolt-ons for features that may
not even solve all problems, I'd rather see well-defined methods and
example solutions for particular problems which allows scope for people
to customise if they so wish. Isn't that an example of "convention over
configuration"? ;-) It would also be far quicker than developing modules
that try to be all things to all people - and perhaps lessen the
perceived gap between tech. like Wicket and Tapestry in a much shorter
time period.


-Original Message-
From: p...@sartini-its.com [mailto:p...@sartini-its.com] On Behalf Of Piero
Sartini
Sent: 24 December 2009 20:34
To: Tapestry users
Subject: Re: About T5 integration modules

...

Howard, I think people are looking for these kind of integrations
because there is no tapestry module allowing them to secure there
pages. Of course you may argument that it is easy to build a
Dispatcher and define some custom annotations. That's true if you
managed to understand how these things work. But if you've just
started with tapestry, in my experience this is not that easy. Then
you remember about Spring Security or any other solution you are used
to and try to make use of it in your new tapestry-world.

...

Piero

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


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



RE: [ADV] Upcoming Tapestry Training: London, Paris

2009-12-22 Thread Newham, Cameron
Looking forward to it.

SkillsMatter is in a new building too.


-Original Message-
From: Howard Lewis Ship [mailto:hls...@gmail.com] 
Sent: 22 December 2009 18:03
To: Tapestry users
Subject: [ADV] Upcoming Tapestry Training: London, Paris

I'll be doing two trainings with SkillsMatter
(http://skillsmatter.com) in London (Feb 10 2010) and in Paris (Feb 15
2010).  This is my standard three day Tapestry course, as described on
my web page (http://howardlewisship.com/training.html) delivered at a
much better price than I can normally offer ... especially if you act
fast enough to get the 2-for-1 training in London!
http://skillsmatter.com/course-details/java-jee/tapestry-web-development

I teach Tapestry as a hands-on workshop, oriented towards Tapestry
(and Java web development) newbies. The class has a proven track
record for getting people up-to speed in Tapestry 5 quickly.

This represents one of my many long-term goals for Tapestry: to offer
public enrollment training and grow the size of the T5 community. If
you are in the London or Paris areas, this is a great chance to learn
Tapestry from the source.

-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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


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



RE: Discussion

2009-12-22 Thread Newham, Cameron
I don't agree with the OP that the ServerSide discussion shows Tapestry "has 
lost the battle" - two posters state they don't want to see Tapestry mentioned. 
That's all there is.

However, I can't agree with you Thiago. The old saying is "if you say it enough 
times then people will believe it is true".

If you are just going to stand by and let "trolls" post bad things about 
Tapestry unchallenged then they have won the argument - regardless of how bad 
their argument may be and how incorrect their views may be.

After all, someone pitching up and wanting a framework will read what they've 
written and believe it. Who is to say these anti-Tapestry people are wrong?  
Not you - because you won't counter their arguments! :-)

Sure - don't feed the trolls. But all that is necessary is to say something 
positive; not engage them in an argument.

Merry Xmas everyone.


-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 22 December 2009 15:26
To: Tapestry users
Subject: Re: Discussion

Em Tue, 22 Dec 2009 12:45:20 -0200, Banchi Liko   
escreveu:

> Hi guys,

Hi!

> There is a discussion going on here
> http://www.theserverside.com/news/thread.tss?thread_id=58858 and seems  
> like Tapestry ihas already been ruled out as a viable and serious web  
> framework.

TheServerSide comments has too many trolls to have a good, reasonable  
discussion there.

> Wicket seems to be the favorite.

Some people who bother to post there like Wicket. Most people who like  
Tapestry, maybe all of them, don't bother to post there.

> I'm sad Tapestry has lost the battle and afraid it might die soon.

Please source or explain your statements or you'll be treated like a troll  
here.

> Please go and contribute and let your voice be
> heard before Tapestry dies a horrible death.

No, thank you. Posting there will not change Tapestry's fate. Using it,  
exchanging ideas in the mailing lists and contributing code will (and  
already is).

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

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


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



RE: Affortable Hosting solutions for Tapestry WebApps

2009-12-18 Thread Newham, Cameron
I've been using Groove Systems since 2005 to host a Tapestry 3 app.
Their support is first rate.

However looking just now I see their company website doesn't seem to
show any hosting solutions, so I'm not sure what happened there (my site
still functions just fine - so no idea).



-Original Message-
From: Eldred Mullany [mailto:eldred.mull...@easypay.co.za] 
Sent: 17 December 2009 15:45
To: Tapestry users
Subject: Affortable Hosting solutions for Tapestry WebApps

Hi everyone 

 

Some time ago there was a discussion suitable hosting solutions
specifically relating to tapestry applications. 

 

All I would like to know if anyone can recommend an affordable ISP,
either in USA, Europe or better still in South Africa where I live. 

 

Just a few links would be appreciated. 

 

Thank you. 

Eldred Mullany 

 


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



RE: Select does not submit form on change

2009-12-08 Thread Newham, Cameron
The only way I got this to work was via Javascript called from the
select to do the submit.



-Original Message-
From: Mite [mailto:mitemeis...@gmail.com] 
Sent: 08 December 2009 10:58
To: users@tapestry.apache.org
Subject: Re: Select does not submit form on change


Thank you for the reply.
It does not make any difference. Still the same result.

This is really bad. Trying to get to work an event on a select for a
whole
day.
It is so much easier with .NET or only JavaScript and HTML. 



Try

this.form.submit()

-- 
View this message in context:
http://old.nabble.com/Select-does-not-submit-form-on-change-tp26687467p2
6692063.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


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



RE: [Tapestry Central] Next Steps for Tapestry

2009-11-09 Thread Newham, Cameron
You need to write the book IMO.

We've seen several attempts to start a book* on here but it hasn't
happened and probably won't.

Others will contribute to the current code. 5.2 can wait, I'm sure.


* an English Tapestry 5 book, that is.

-Original Message-
From: Howard [mailto:hls...@gmail.com] 
Sent: 07 November 2009 18:11
To: users@tapestry.apache.org
Subject: [Tapestry Central] Next Steps for Tapestry

I've been consciously letting Tapestry 5.1 sit and stabilize for a
while ... a time that's stretched a few months longer than I initially
intended.
This is due to a number of factors: my return to independent
consulting, my desire to write a definitive Tapestry 5 book, and
preparations for many trips and speaking engagements.
All of these factors have worked on each other: I've been improving and
extending my Tapestry Workshop training materials which can be quite
time consuming. I've also (over the last several months) been on the
road several times, talking about Tapestry or doing Tapestry training.
I do want to write a book on Tapestry but if I start writing 5.2 code,
I know I'll be sucked right in ... lots of code (that darn Spring Web
Flow integration for sure this time) and bug fixes.
In addition, I've had an embarassment of riches: two main clients, one
regular part time, and the other requesting (but not always getting)
all my remaining time. I also have additional clients and training
engagements waiting in the wings. I simply have a lot of draws on my
time.
As usual, working on real-world projects lets me experience the "rough
edges" of Tapestry and fills me with ideas on how to address those in
the next release ... often by splitting up Tapestry services into
smaller, more easily overridden chunks and carefully moving internal
services out into the public APIs.
Finally, I've been very pleased by the fact that as I've stepped back
temporarily from my normal stream of commits, the other Tapestry
developers have stepped in and filled the gap. There's been quite a bit
of activity especially from Igor that I've barely had a chance to keep
up on.
So the question is: do I wait and see if time opens up in Q1 to
actually start on a T5 book ... or do I jump into 5.2 coding and leave
books to others? It's much, much easier to write code than to write a
book ... a book is a large amount of concentrated effort. It's very
hard to accomplish anything on a book using an hour here or an evening
there ... whereas Tapestry's code base lends itself to that kind of
effort quite nicely.

--
Posted By Howard to Tapestry Central at 11/07/2009 10:11:00 AM

**
 
Experience the British Library online at http://www.bl.uk/
 
The British Library’s new interactive Annual Report and Accounts 2008/09 : 
http://www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
http://www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the 
mailto:postmas...@bl.uk : The contents of this e-mail must not be disclosed or 
copied without the sender's consent.
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author.
 
*
 

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



RE: T5: query about onValidateForm()

2009-10-21 Thread Newham, Cameron

Something I've never done because it's not logical to have errors in "success".

BTW, I believe you mean onValidateForm().  onValidate() is called before values 
are set and they can't be tested correctly.

Thanks Christophe, Uli, and Geoff for clearing this up.



-Original Message-
From: Geoff Callender [mailto:geoff.callender.jumpst...@gmail.com] 
Sent: 21 October 2009 13:21
To: Tapestry users
Subject: Re: T5: query about onValidateForm()

And you'd be well advised to get in the habit of doing all the work in  
onValidate() because errors occurring in onSuccess() won't display  
properly:

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

Cheers,

Geoff   

On 21/10/2009, at 7:42 PM, Ulrich Stärk wrote:

> Please read the first paragraph of [1]. In short: submit gets fired  
> regardless of the validation outcome, success if validation was  
> successful, failure if not. validateForm is fired after the  
> individual field's validate events and allows for cross-field  
> validation.
>
> Uli
>
>
> [1] 
> http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html
>
> Am 21.10.2009 10:29 schrieb Newham, Cameron:
>> Apologies if this is obvious, but I'm getting confused over how and
>> where onValidateForm() should be used. I have a page with search  
>> fields
>> in a form and also a grid for the results.
>> Currently I have:
>>   public void onValidateForm()
>>  {
>>if (title == null && issn == null)
>>{
>>  searchHoldingsForm.recordError("Please provide a  
>> value
>> for Title or ISSN");
>>}
>>  }
>>   public void onSubmitFromSearchHoldingsForm()
>>  {
>>// perform database access using the form fields...
>>...
>>  However, the onSubmit...() will be called even if there is an  
>> error. Ok,
>> I could use a Boolean and set it in onValidate() and then bail out in
>> onSubmit...() if there is an error. Or I suppose I could dispense  
>> with
>> onValidateForm() altogether and set the error messages directly in
>> onSubmit...()  Or perhaps I should keep onValidateForm() and do the  
>> DB
>> stuff in onSuccess()?
>> What is the correct way to proceed and why?
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>


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



T5: query about onValidateForm()

2009-10-21 Thread Newham, Cameron
Apologies if this is obvious, but I'm getting confused over how and
where onValidateForm() should be used. I have a page with search fields
in a form and also a grid for the results.

 

Currently I have:

 

  public void onValidateForm()

  {

if (title == null && issn == null)

{

  searchHoldingsForm.recordError("Please provide a value
for Title or ISSN");

}

  }

 

  public void onSubmitFromSearchHoldingsForm()

  {

// perform database access using the form fields...

...

 

 

However, the onSubmit...() will be called even if there is an error. Ok,
I could use a Boolean and set it in onValidate() and then bail out in
onSubmit...() if there is an error. Or I suppose I could dispense with
onValidateForm() altogether and set the error messages directly in
onSubmit...()  Or perhaps I should keep onValidateForm() and do the DB
stuff in onSuccess()?

 

What is the correct way to proceed and why?

 

 

 

 



RE: [t5] upgrade to java 6 and javassist

2009-10-07 Thread Newham, Cameron
When I had trouble with javassist a few months ago it was because there
were multiple versions on the classpath.

I'm using Java 1.6 and have had no problems since sorting out what jars
were being included.

I see I'm currently using 3.8.0.GA.


-Original Message-
From: Ville Virtanen [mailto:ville.virta...@cerion.fi] 
Sent: 07 October 2009 05:11
To: users@tapestry.apache.org
Subject: Re: [t5] upgrade to java 6 and javassist


Hi,

Also make 100% sure that there aren't multiple javassists (different
versions in classpath) AND that the included javassist version is the
right
one. Check this from the produced war, do NOT trust what the ide is
saying
;)

Sometimes we have had problems like this, but those were because maven
dependencies affected to the included javassist version.

We use java 6, and our compile targets are 1.6 in about ten projects, we
have multiple developers compiling with different versions of java and
haven't had any problems besides those javaassist version related.

The version of javassist that gets included for us is 3.9.0.GA

 - Ville

Ps. Below is the mvn configuration we're using w/ netbeans


org.apache.maven.plugins
maven-compiler-plugin

1.6
1.6
true
UTF-8
true
true




Thiago H. de Paula Figueiredo wrote:
> 
> Em Tue, 06 Oct 2009 17:39:17 -0300, Fermin Da Costa Gomez  
>  escreveu:
> 
>> Using Eclipse, my Compiler compliance level is set at 1.5 already and

>> still. What OS are you using?
> 
> Ubuntu. But I guess it's not operating-system related.
> 
>> The @OnEvent i understand but i can't find a 'ready made' entry for
the
>> EventConstants.
> 
> What do you mean by ready-made? EventConstants is just a class that  
> declares String constants. You can use the event name directly if you
want  
> or need.
> 
>> Do i make my own enum for that?
> 
> No, event names are Strings.
> 
>> And if so, how does that
>> hook into the autocompleter mixin without additional coding?
> 
> I'm not following you here. All events are hooked by name and,
optionally,  
> component id, just that.
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/-t5--upgrade-to-java-6-and-javassist-tp25295834p25
780245.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


**
 
Experience the British Library online at http://www.bl.uk/
 
The British Library’s new interactive Annual Report and Accounts 2007/08 : 
http://www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
http://www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the 
mailto:postmas...@bl.uk : The contents of this e-mail must not be disclosed or 
copied without the sender's consent.
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author.
 
*
 

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



RE: passing values between pages (search -> result)

2009-10-06 Thread Newham, Cameron
I've never used onPassivate()

You need to have @Persist otherwise the value will be null.


-Original Message-
From: 976 [mailto:amsc...@gmail.com] 
Sent: 06 October 2009 14:48
To: users@tapestry.apache.org
Subject: Re: passing values between pages (search -> result)


Hi.
Thanks for the info - I've read it all again, and added passivate
returning
my search criteria client in SearchClient and list of clients in
ClientList
and still no luck;(
I added sysouts in activate and passivate methods and one in setter and
the
output is:
___setting client with name: John
___ List passivate
___ List activate
getting all
___ List passivate
_ search passivate return false
___ List passivate
___ List passivate
___ List passivate
___ List passivate
___ List passivate
___ List passivate
___ List passivate
___ List passivate
___ List passivate
___ List passivate
___ List passivate
___ List passivate
___ List passivate
___ List passivate
___ List passivate
___ List passivate

Somehow it says client is null in SearchClients - like it wasn't passed
from
SearchClient at all, but the setter is invoked - client property is set
and
in activate it says it's null;(
I think I don't understand onActivate and onPassivate in proper way;(

Thanks,
Adam

Hello

Have a look at http://tapestry.apache.org/tapestry5.1/guide/pagenav.html

If you want to use 'activate' you have also to define the pending
'passivate' method.

Christophe.


-- 
View this message in context:
http://www.nabble.com/passing-values-between-pages-%28search--%3E-result
%29-tp25765698p25769048.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


**
 
Experience the British Library online at http://www.bl.uk/
 
The British Library’s new interactive Annual Report and Accounts 2007/08 : 
http://www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
http://www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the 
mailto:postmas...@bl.uk : The contents of this e-mail must not be disclosed or 
copied without the sender's consent.
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author.
 
*
 

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



RE: Validation on textfields in a grid?

2009-09-27 Thread Newham, Cameron
Does anyone have any further thoughts on this? There must be a way to do
this - and if there isn't then perhaps there should be?


-Original Message-
From: Newham, Cameron [mailto:cameron.new...@bl.uk] 
Sent: 25 September 2009 10:08
To: Tapestry users
Subject: RE: Validation on textfields in a grid?

Using a validator would be ok, but unfortunately that assumes that the
component being validated exists in isolation. In my case I only want to
do the validation depending on parameters that have been set by other
components on the page, viz:

public void onValidateForm()
{
if ((tagSelectionId == -1) && (nsTagSelectionId == -1)
&& !removeLine && !addLine)
{
if (keywordVisual.getKeyword().getValue() ==
null)
{
tagForm.recordError(keywordField,
"Please provide a value");
}
}
}

As far as I can see page properties are not available in a validator and
there is no way to pass these to a validator.

Is there any way I can access the components on a page indirectly?
(i.e.: so I don't have to specify them with @Component). Then I could
iterate over the textfields in my grid and provide tagForm.recordError()
with the correct components to mark.

It seems odd to me that the facility onValidateForm() is provided for
doing validation of the entire form and yet access to the components in
that form, which may have been dynamically created in a Grid, does not
seem possible unless they have been statically created. Maybe I'm not
seeing something here or thinking about it the wrong way?


-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 24 September 2009 14:52
To: Tapestry users
Subject: Re: Validation on textfields in a grid?

Em Thu, 24 Sep 2009 10:46:10 -0300, Newham, Cameron
  
escreveu:

> Thanks again Thiago.
>
> Yes, my fault for not saying exactly what I wanted to achieve.
>
> I agree that one can iterate over the values in the source and check
> them, but I need to mark the field/fields which fail validation on the
> form with:
>
> tagForm.recordError(keywordField, "Please provide a value");

That's why using the TextField's validate parameter is recommended. It  
will put the error markers in the right places. If your needed
validation  
doesn't use other properties than the one edited by the TextField,  
implement your own Validator and use it. You also get an improved  
reusability. :)

> An easy way out would be just to have a single error line, but from a
UI
> perspective it would be much nicer to have the big red X next to the
> actual field that fails, not to mention being consistent with the rest
> of the application and how errors in forms are displayed.

I agree.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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



**
 
Experience the British Library online at http://www.bl.uk/
 
The British Library's new interactive Annual Report and Accounts 2007/08
: http://www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book.
http://www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 

*
 
The information contained in this e-mail is confidential and may be
legally privileged. It is intended for the addressee(s) only. If you are
not the intended recipient, please delete this e-mail and notify the
mailto:postmas...@bl.uk : The contents of this e-mail must not be
disclosed or copied without the sender's consent.
 
The statements and opinions expressed in this message are those of the
author and do not necessarily reflect those of the British Library. The
British Library does not take any responsibility for the views of the
author.
 

*
 

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


**
 
Experience the British Library online at http://www.bl.uk/
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
http://www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
http://www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi 

RE: Validation on textfields in a grid?

2009-09-25 Thread Newham, Cameron
Using a validator would be ok, but unfortunately that assumes that the
component being validated exists in isolation. In my case I only want to
do the validation depending on parameters that have been set by other
components on the page, viz:

public void onValidateForm()
{
if ((tagSelectionId == -1) && (nsTagSelectionId == -1)
&& !removeLine && !addLine)
{
if (keywordVisual.getKeyword().getValue() ==
null)
{
tagForm.recordError(keywordField,
"Please provide a value");
}
}
}

As far as I can see page properties are not available in a validator and
there is no way to pass these to a validator.

Is there any way I can access the components on a page indirectly?
(i.e.: so I don't have to specify them with @Component). Then I could
iterate over the textfields in my grid and provide tagForm.recordError()
with the correct components to mark.

It seems odd to me that the facility onValidateForm() is provided for
doing validation of the entire form and yet access to the components in
that form, which may have been dynamically created in a Grid, does not
seem possible unless they have been statically created. Maybe I'm not
seeing something here or thinking about it the wrong way?


-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 24 September 2009 14:52
To: Tapestry users
Subject: Re: Validation on textfields in a grid?

Em Thu, 24 Sep 2009 10:46:10 -0300, Newham, Cameron
  
escreveu:

> Thanks again Thiago.
>
> Yes, my fault for not saying exactly what I wanted to achieve.
>
> I agree that one can iterate over the values in the source and check
> them, but I need to mark the field/fields which fail validation on the
> form with:
>
> tagForm.recordError(keywordField, "Please provide a value");

That's why using the TextField's validate parameter is recommended. It  
will put the error markers in the right places. If your needed
validation  
doesn't use other properties than the one edited by the TextField,  
implement your own Validator and use it. You also get an improved  
reusability. :)

> An easy way out would be just to have a single error line, but from a
UI
> perspective it would be much nicer to have the big red X next to the
> actual field that fails, not to mention being consistent with the rest
> of the application and how errors in forms are displayed.

I agree.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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


**
 
Experience the British Library online at http://www.bl.uk/
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
http://www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
http://www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the 
mailto:postmas...@bl.uk : The contents of this e-mail must not be disclosed or 
copied without the sender's consent.
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author.
 
*
 

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



RE: Validation on textfields in a grid?

2009-09-24 Thread Newham, Cameron
Thanks again Thiago.

Yes, my fault for not saying exactly what I wanted to achieve.

I agree that one can iterate over the values in the source and check
them, but I need to mark the field/fields which fail validation on the
form with:

tagForm.recordError(keywordField, "Please provide a value");

So how do I get the correct keywordField object as any number of them
are created in the Grid, depending on how many rows there are, and the
names are generated by Tapestry, as is the connection from the field in
the form to the TextField Component object in my code.

An easy way out would be just to have a single error line, but from a UI
perspective it would be much nicer to have the big red X next to the
actual field that fails, not to mention being consistent with the rest
of the application and how errors in forms are displayed.


-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 24 September 2009 14:25
To: Tapestry users
Subject: Re: Validation on textfields in a grid?

Em Thu, 24 Sep 2009 10:19:37 -0300, Newham, Cameron
  
escreveu:

> Hi Thiago,

Hi!

> The row parameter is only accessing my data from the source parameter,
> not the components themselves.

I just remembered that Grids inside Forms typically only work when you
use  
the row parameter.

> Also, I am not clear about validation through the validate parameter -
> is there an example of this I can look at? However, I have to do the
> validation myself; I simplified the code posted and actually need to
do
> some other things besides checking for null from the text field.

Well, this information changes the solution. :)
In the validateForm event, you need to validate all the objects in the  
Grid, not just one, so you need to iterate over the collection used as
the  
Grid source. The event is not repeated for every element, being fired
just  
once.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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


**
 
Experience the British Library online at http://www.bl.uk/
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
http://www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
http://www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the 
mailto:postmas...@bl.uk : The contents of this e-mail must not be disclosed or 
copied without the sender's consent.
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author.
 
*
 

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



RE: Validation on textfields in a grid?

2009-09-24 Thread Newham, Cameron
Hi Thiago,

Thank you, but I'm not quite clear on what you mean.

The row parameter is only accessing my data from the source parameter,
not the components themselves.

Also, I am not clear about validation through the validate parameter -
is there an example of this I can look at? However, I have to do the
validation myself; I simplified the code posted and actually need to do
some other things besides checking for null from the text field.


-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 24 September 2009 13:51
To: Tapestry users
Subject: Re: Validation on textfields in a grid?

Try accessing the Grid elements using the row parameter and use the  
validation done by the validate parameter instead of doing it yourself.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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


**
 
Experience the British Library online at http://www.bl.uk/
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
http://www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
http://www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the 
mailto:postmas...@bl.uk : The contents of this e-mail must not be disclosed or 
copied without the sender's consent.
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author.
 
*
 

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



Validation on textfields in a grid?

2009-09-24 Thread Newham, Cameron
I could have sworn I had this working at one point, but now it doesn't.

 

Tml:

 



 

...

 







 

...

 

 

The Java:

 

...

 

@Component

private TextField keywordField;

 

...

 

 

public void onValidateForm()

{

if (keywordVisual.getKeyword().getValue() == null)

{

tagForm.recordError(keywordField, "Please
provide a value");

}

}

 

...

 

 

 

The validation is only occurring on the last field in the table - I
presume that is because keywordField is being set to the last value,
which is fair enough. In that case, how can I perform validation and
give error messages on the other keywordFields? I can't find an example
of this on JumpStart or in the docs (or maybe the example is there but I
just haven't seen it).

 

 


**
 
Experience the British Library online at http://www.bl.uk/
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
http://www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
http://www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the 
mailto:postmas...@bl.uk : The contents of this e-mail must not be disclosed or 
copied without the sender's consent.
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author.
 
*
 


RE: [Off-topic] Permanent Java Developers sought

2009-08-17 Thread Newham, Cameron
Well, you have proved your resource manager wrong. I live near York and
I use Tapestry at the BL. Sadly (err, happily!) I'm not looking to
change jobs just now.

;-)


-Original Message-
From: Ben Gidley [mailto:b...@gidley.co.uk] 
Sent: 17 August 2009 13:59
To: Tapestry users
Subject: [Off-topic] Permanent Java Developers sought

Apologies for using this list as a recruitment board - but I thought
some of
you may be interested.
ioko (www.ioko.com) are recruiting Java Developers at present in either
York
UK (preferred) or London (possible but not as preferred) to work on a
range
of projects with our existing clients. One of these projects is built
using
Tapestry 5 and as such I would love to find some candidates who have
used it
(also to prove our resourcing manager wrong who said I wouldn't be able
to
find anyone with it on their CV!).

If you are interested can you let me know and I can send you the Job
Specification and tell you who to contact to apply.
Ben Gidley

www.gidley.co.uk
b...@gidley.co.uk

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



RE: Antwort: Re: Upload component in onValidate

2009-08-14 Thread Newham, Cameron
>From JumpStart for a Form it is:

pageAttached()
onActivate()
...onPrepareForSubmit()
...onPrepare()
...onSelected()
...onValidateForm()
...onSuccess()
...onSubmit()
...Tapestry creates a URL to next page
pageDetached()
...Tapestry redirects to render next page


-Original Message-
...
The order of events seems to be now:

onValidate()
setters
onValidateForm()
onSuccess()/onFailure()
onSubmit

I didn't find a summary in the docs on the exact order, and on the
default 
event method names (that incorporate the form id).
Also, I don't know what happens if there is, for example, a onSubmit(), 
onSubmitFromXXX() and a method annotated with @OnEvent(value="submit", 
component="XXX")
in the page.

So, in short, try using onValidateForm() instead of onValidate().

Dirk

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



RE: T5.1.0.5: StackMapTable format error

2009-07-24 Thread Newham, Cameron
Thanks.

I'm gradually getting a grip on Maven and how to set up dependencies.

-Original Message-
From: Sergey Didenko [mailto:sergey.dide...@gmail.com] 
Sent: 24 July 2009 12:12
To: Tapestry users
Subject: Re: T5.1.0.5: StackMapTable format error

Cameron, you would better use Javassist 3.9. Tapestry 5.1 distribution
comes with that version.

P.S. When I read all threads like this I'm so glad that set my
dependencies manually without Maven.

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

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



RE: search hints for Tapestry 5

2009-07-23 Thread Newham, Cameron
One of the downsides of open source: the documentation is rubbish or
non-existent because geek programmers expect you to understand their
products source!  :)

(ok, I'm generalising, but there is an element of truth  :-)


BTW, thanks Sergey for raising the issue of how to find information.
Perhaps one day there will be a book on T5 (hint hint) or maybe Mr
Kolesnikov will update his?


-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 24 July 2009 05:34
To: Tapestry users
Subject: Re: search hints for Tapestry 5

...

One of the beauties of open source: the possibility to learn a package
by  
reading and debugging its sources. :)

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



RE: T5.1.0.5: StackMapTable format error

2009-07-22 Thread Newham, Cameron
Very odd.

I based my comment on what I observed in the M2 POM editor dependencies
tab...


-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 22 July 2009 14:22
To: Tapestry users
Subject: Re: T5.1.0.5: StackMapTable format error

Em Wed, 22 Jul 2009 07:40:24 -0300, Newham, Cameron
  
escreveu:

> I note that I found this out from an email sent by Howard in 2007
> addressing a query on StackMapTable error. I find it somewhat
surprising
> that this problem still occurs in 2009. Surely Tapestry 5.1.x should
be
> using the latest Javassist...

It does use the latest Javassist version:  
http://tapestry.apache.org/tapestry5.1/tapestry-core/dependencies.html.
I guess you had messed up dependencies then.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



RE: T5.1.0.5: StackMapTable format error

2009-07-22 Thread Newham, Cameron
Thanks Peter.

I do use ChenilleKit but haven't run into this problem (I presume that's
because Maven always uses the later version if there is a conflict? And
as I've explicitly brought in the later version of Javassist then that
overrides any earlier versions being included on the classpath)

I do notice that ChenilleKit wants to use Tapestry 5.0.18 and is causing
a conflict there. Is this likely to be updated soon?


-Original Message-
From: p.stavrini...@albourne.com [mailto:p.stavrini...@albourne.com] 
Sent: 22 July 2009 14:07
To: Tapestry users
Subject: Re: T5.1.0.5: StackMapTable format error

Be sure also to include an exclusion if you use ChenilleKit, or you will
run into similar issues. 


org.chenillekit
chenillekit-tapestry
1.0.0


jboss
javassist




Cheers,
Peter

- Original Message -
From: "Cameron Newham" 
To: "Tapestry users" 
Sent: Wednesday, 22 July, 2009 13:40:24 GMT +02:00 Athens, Beirut,
Bucharest, Istanbul
Subject: RE: T5.1.0.5: StackMapTable format error

Thanks Thiago, although it turned out to be because I'm using Java 1.6
and I had an old(ish) version of Javassist being brought in as a
dependency from tapestry-ioc that wants javassist-3.4.GA.

Specifying the latest Javassist (3.8.GA) in my POM solved the problem.

I note that I found this out from an email sent by Howard in 2007
addressing a query on StackMapTable error. I find it somewhat surprising
that this problem still occurs in 2009. Surely Tapestry 5.1.x should be
using the latest Javassist...



-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 21 July 2009 14:58
To: Tapestry users
Subject: Re: T5.1.0.5: StackMapTable format error

Em Tue, 21 Jul 2009 10:18:21 -0300, Newham, Cameron
  
escreveu:

> Hi,

Hi!

> My Index page comes up fine when running my app from Jetty in Eclipse.
> However, as soon as I attempt to log in and Tapestry tries to go to
the
> app "home" page I get a StackMapTable format error.

Typically, strange errors are caused by having more than one version of

the same library in your classpath. You can also try to recompile all
the  
classes.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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


**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08
: www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book.
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 

*
 
The information contained in this e-mail is confidential and may be
legally privileged. It is intended for the addressee(s) only. If you are
not the intended recipient, please delete this e-mail and notify the
postmas...@bl.uk : The contents of this e-mail must not be disclosed or
copied without the sender's consent. 
 
The statements and opinions expressed in this message are those of the
author and do not necessarily reflect those of the British Library. The
British Library does not take any responsibility for the views of the
author. 
 

*

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


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


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



RE: T5.1.0.5: StackMapTable format error

2009-07-22 Thread Newham, Cameron
Thanks Thiago, although it turned out to be because I'm using Java 1.6
and I had an old(ish) version of Javassist being brought in as a
dependency from tapestry-ioc that wants javassist-3.4.GA.

Specifying the latest Javassist (3.8.GA) in my POM solved the problem.

I note that I found this out from an email sent by Howard in 2007
addressing a query on StackMapTable error. I find it somewhat surprising
that this problem still occurs in 2009. Surely Tapestry 5.1.x should be
using the latest Javassist...



-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 21 July 2009 14:58
To: Tapestry users
Subject: Re: T5.1.0.5: StackMapTable format error

Em Tue, 21 Jul 2009 10:18:21 -0300, Newham, Cameron
  
escreveu:

> Hi,

Hi!

> My Index page comes up fine when running my app from Jetty in Eclipse.
> However, as soon as I attempt to log in and Tapestry tries to go to
the
> app "home" page I get a StackMapTable format error.

Typically, strange errors are caused by having more than one version of

the same library in your classpath. You can also try to recompile all
the  
classes.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



T5.1.0.5: StackMapTable format error

2009-07-21 Thread Newham, Cameron
Hi,

 

I'm still trying to move to 5.1.0.5 but have had to fight quite a few
fires. I've finally wrestled it into getting my app up, but have now hit
a brick wall.

 

My Index page comes up fine when running my app from Jetty in Eclipse.
However, as soon as I attempt to log in and Tapestry tries to go to the
app "home" page I get a StackMapTable format error.

 

Can anyone tell me what this is or what might cause it. The only example
I can find on searching the list archive was someone who had their page
incorrectly named - that isn't the case here as my app was working fine
under 5.0.18.

 

I should point out that I've done a clean and a new build for my
project.

 

 

[INFO] AppModule.TimingFilter Request time: 735 ms

[ERROR] TapestryModule.RequestExceptionHandler Processing of request
failed with uncaught exception: StackMapTable format error: bad class
index

java.lang.ClassFormatError: StackMapTable format error: bad class index

  at
$Instantiator_1229d6a6aa0.newInstance($Instantiator_1229d6a6aa0.java)

  at
org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.<
init>(InternalComponentResourcesImpl.java:132)

  at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.(
ComponentPageElementImpl.java:545)

  at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.(
ComponentPageElementImpl.java:564)

  at
org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.assembleRo
otComponent(ComponentAssemblerImpl.java:78)

  at
org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoade
rImpl.java:159)

  at $PageLoader_1229d6a6a1d.loadPage($PageLoader_1229d6a6a1d.java)

  at
org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCa
che.java:210)

  at
org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImp
l.java:99)

  at $PagePool_1229d6a6a1c.checkout($PagePool_1229d6a6a1c.java)

  at
org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestP
ageCacheImpl.java:51)

  at
$RequestPageCache_1229d6a6a1b.get($RequestPageCache_1229d6a6a1b.java)

  at
$RequestPageCache_1229d6a6a1a.get($RequestPageCache_1229d6a6a1a.java)

  at
org.apache.tapestry5.internal.services.ClassResultProcessor.processResul
tValue(ClassResultProcessor.java:48)

  at
org.apache.tapestry5.internal.services.ClassResultProcessor.processResul
tValue(ClassResultProcessor.java:27)

  at
$ComponentEventResultProcessor_1229d6a6a9f.processResultValue($Component
EventResultProcessor_1229d6a6a9f.java)

  at
$ComponentEventResultProcessor_1229d6a6a7f.processResultValue($Component
EventResultProcessor_1229d6a6a7f.java)

  at
org.apache.tapestry5.internal.services.ComponentResultProcessorWrapper.h
andleResult(ComponentResultProcessorWrapper.java:42)

  at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$7.handl
eResult(ComponentPageElementImpl.java:1053)

  at
org.apache.tapestry5.internal.services.EventImpl.storeResult(EventImpl.j
ava:74)

  at uk.bl.dportal.pages.Index.dispatchComponentEvent(Index.java)

  at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatc
hEvent(ComponentPageElementImpl.java:902)

  at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.trigger
ContextEvent(ComponentPageElementImpl.java:1081)

  at
org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.t
riggerContextEvent(InternalComponentResourcesImpl.java:263)

  at
org.apache.tapestry5.corelib.components.Form._$advised$onAction(Form.jav
a:405)

  at
org.apache.tapestry5.corelib.components.Form$onAction$invocation_1229d6a
b47d.invokeAdvisedMethod(Form$onAction$invocation_1229d6ab47d.java)

  at
org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation
.proceed(AbstractComponentMethodInvocation.java:71)

  at
org.apache.tapestry5.ioc.internal.services.LoggingAdvice.advise(LoggingA
dvice.java:37)

  at
org.apache.tapestry5.internal.transform.LogWorker$1.advise(LogWorker.jav
a:54)

  at
org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation
.proceed(AbstractComponentMethodInvocation.java:80)

  at
org.apache.tapestry5.corelib.components.Form.onAction(Form.java)

  at
org.apache.tapestry5.corelib.components.Form.dispatchComponentEvent(Form
.java)

  at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatc
hEvent(ComponentPageElementImpl.java:910)

  at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.trigger
ContextEvent(ComponentPageElementImpl.java:1081)

  at
org.apache.tapestry5.internal.services.ComponentEventRequestHandlerImpl.
handle(ComponentEventRequestHandlerImpl.java:75)

  at
org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilt
er.handle(ImmediateActionRenderResponseFilter.java:42)

  at
$ComponentEventRequestHandler_1229d6a6a9b.handle($ComponentEventRequestH
andle

RE: t5: moving to 5.1.0.5 and can't find @Inject

2009-07-16 Thread Newham, Cameron
Brilliant.

Thanks Joakim!


-Original Message-
From: Joakim Olsson [mailto:argo...@lingonpaj.com] 
Sent: 16 July 2009 13:45
To: Tapestry users
Subject: RE: t5: moving to 5.1.0.5 and can't find @Inject

Hi,

I would recommend you (and anyone else looking for classes) to take a
look at http://www.jarvana.com

http://www.jarvana.com/jarvana/search?search_type=class&java_class=Commi
tAfter

Regards,
Joakim



On Thu, 2009-07-16 at 13:09 +0100, Newham, Cameron wrote:
> Thanks Kristian. I had to manually add it to my POM - that did the
> trick.
> 
> However, sorry to be a pest everyone, but I cannot now find:
> 
> org.apache.tapestry5.hibernate.annotations.CommitAfter
> 
> This is in the 5.0.18 version of the tapestry-hibernate jar but not in
> the 5.1.0.5 version.
> 
> Is there anywhere I can find out exactly what things have been moved
> between jars and what re-ordering has taken place? I can't find
anything
> on the Tapestry 5 website that is relevant. Surely this should be
> documented in release notes?
> 
> Also, is there anywhere I can find a list of classes and what jars
they
> are in. There doesn't appear to be any way to find this out on-line.
> 
> Thanks.
> 
> 
> -Original Message-
> From: Kristian Marinkovic [mailto:kristian.marinko...@porsche.co.at] 
> Sent: 15 July 2009 11:47
> To: Tapestry users
> Subject: RE: t5: moving to 5.1.0.5 and can't find @Inject
> 
> @Inject is located in tapestry5-annotations-5.1.0.5.jar
> 
> steps i have in mind
> 
> 1) have you run mvn eclipse:eclipse... it will add any maven 
> dependency as external library. remove all entries except
> the JRE entry and the "Maven Dependencies" entry.
> 
> 2) deactivate the maven offline mode and do a dependency 
> update 
> 
> g,
> kris
> 
> 
> 
> 
> "Newham, Cameron"  
> 15.07.2009 11:56
> Bitte antworten an
> "Tapestry users" 
> 
> 
> An
> "Tapestry users" 
> Kopie
> 
> Thema
> RE: t5: moving to 5.1.0.5 and can't find @Inject
> 
> 
> 
> 
> 
> 
> 
> I actually have M2 already installed. I hadn't looked at the
dependency
> feature in the editor - thanks Thiago.
> 
> I now know tapestry-ioc-5.0.18.jar is being used by Chenillekit.
> 
> However, I am still unable to locate:
> 
> org.apache.tapestry5.ioc.annotations.Inject
> 
> It just doesn't exist - anywhere!
> 
> Could someone please tell me in which JAR file it is supposed to be?
It
> isn't in tapestry-ioc-5.0.18.jar (which is the only version of
> tapestry-ioc-xxx that Maven is downloading) as far as I can see.
> 
> I don't understand why moving to 5.1.0.5 has caused this problem nor
do
> I understand why @Inject has disappeared as it obviously existed
before;
> I've been quite happily using that annotation throughout my project!
> 
> If it would help to show my project POM I can post it...
> 
> Thanks.
> 
> 
> -Original Message-
> From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
> Sent: 14 July 2009 14:58
> To: Tapestry users
> Subject: Re: t5: moving to 5.1.0.4 and can't find @Inject
> 
> Em Tue, 14 Jul 2009 10:19:49 -0300, Newham, Cameron
>  
> escreveu:
> 
> > If I don't include:
> >
> > 
> >
org.apache.tapestry
> >tapestry-ioc
> > ${tapestry-release-version}
> >
> >
> > In the POM I get 5.1.0.5 for all jars *except* tapestry-ioc which
> always
> > downloads the 5.0.18 version  /:-(
> 
> This looks like some other package you're using depends on
Tapestry-IoC
> 
> 5.0.18. If you're using Eclipse, install the Sonatype's m2eclipse
> plugin. 
> In its Maven pom.xml editor, it has a very nice feature that shows
what
> 
> dependencies are being included and by which dependency (transitive 
> dependency).
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
>

> **
>  
> Experience the British Library online at www.bl.uk
>  
> The British Library's new interactive Annual Report and Accounts
2007/08
> : 
> www.bl.uk/knowledge
>  
> Help the British Library conserve the world's knowledge. Adopt a Book.

> www.bl.uk/adoptabook
>  
> The Library's St Pancras site is 

RE: t5: moving to 5.1.0.5 and can't find @Inject

2009-07-16 Thread Newham, Cameron
Thanks Kris, it would be nice if it did!

I already have tapestry-hibernate-5.1.0.5.  No tapestry-hibernate-core
though.

Maven is such a heap of ***


Again, it would be nice if the classes and their whereabouts were
actually documented. It seems to be such a lapse not to do so - not to
mention a lot of pain having to ask on here!


-Original Message-
From: Kristian Marinkovic [mailto:kristian.marinko...@porsche.co.at] 
Sent: 16 July 2009 13:20
To: Tapestry users
Subject: RE: t5: moving to 5.1.0.5 and can't find @Inject

you have to include tapestry-hibernate-5.1.0.5 this will in turn 
include tapestry-hibernate-core that contains the annotation

g
kris



"Newham, Cameron"  
16.07.2009 14:09
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
RE: t5: moving to 5.1.0.5 and can't find @Inject







Thanks Kristian. I had to manually add it to my POM - that did the
trick.

However, sorry to be a pest everyone, but I cannot now find:

org.apache.tapestry5.hibernate.annotations.CommitAfter

This is in the 5.0.18 version of the tapestry-hibernate jar but not in
the 5.1.0.5 version.

Is there anywhere I can find out exactly what things have been moved
between jars and what re-ordering has taken place? I can't find anything
on the Tapestry 5 website that is relevant. Surely this should be
documented in release notes?

Also, is there anywhere I can find a list of classes and what jars they
are in. There doesn't appear to be any way to find this out on-line.

Thanks.


-Original Message-
From: Kristian Marinkovic [mailto:kristian.marinko...@porsche.co.at] 
Sent: 15 July 2009 11:47
To: Tapestry users
Subject: RE: t5: moving to 5.1.0.5 and can't find @Inject

@Inject is located in tapestry5-annotations-5.1.0.5.jar

steps i have in mind

1) have you run mvn eclipse:eclipse... it will add any maven 
dependency as external library. remove all entries except
the JRE entry and the "Maven Dependencies" entry.

2) deactivate the maven offline mode and do a dependency 
update 

g,
kris




"Newham, Cameron"  
15.07.2009 11:56
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
RE: t5: moving to 5.1.0.5 and can't find @Inject







I actually have M2 already installed. I hadn't looked at the dependency
feature in the editor - thanks Thiago.

I now know tapestry-ioc-5.0.18.jar is being used by Chenillekit.

However, I am still unable to locate:

org.apache.tapestry5.ioc.annotations.Inject

It just doesn't exist - anywhere!

Could someone please tell me in which JAR file it is supposed to be?  It
isn't in tapestry-ioc-5.0.18.jar (which is the only version of
tapestry-ioc-xxx that Maven is downloading) as far as I can see.

I don't understand why moving to 5.1.0.5 has caused this problem nor do
I understand why @Inject has disappeared as it obviously existed before;
I've been quite happily using that annotation throughout my project!

If it would help to show my project POM I can post it...

Thanks.


-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 14 July 2009 14:58
To: Tapestry users
Subject: Re: t5: moving to 5.1.0.4 and can't find @Inject

Em Tue, 14 Jul 2009 10:19:49 -0300, Newham, Cameron
 
escreveu:

> If I don't include:
>
> 
>org.apache.tapestry
>tapestry-ioc
> ${tapestry-release-version}
>
>
> In the POM I get 5.1.0.5 for all jars *except* tapestry-ioc which
always
> downloads the 5.0.18 version  /:-(

This looks like some other package you're using depends on Tapestry-IoC

5.0.18. If you're using Eclipse, install the Sonatype's m2eclipse
plugin. 
In its Maven pom.xml editor, it has a very nice feature that shows what

dependencies are being included and by which dependency (transitive 
dependency).

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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


**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08
: 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 

*
 
The information contained in this e-mail is confidential and may be 
legally privileged. It is intended for the addressee(s) only. If you are

not the intended recipient, pleas

RE: t5: moving to 5.1.0.5 and can't find @Inject

2009-07-16 Thread Newham, Cameron
Thanks Kristian. I had to manually add it to my POM - that did the
trick.

However, sorry to be a pest everyone, but I cannot now find:

org.apache.tapestry5.hibernate.annotations.CommitAfter

This is in the 5.0.18 version of the tapestry-hibernate jar but not in
the 5.1.0.5 version.

Is there anywhere I can find out exactly what things have been moved
between jars and what re-ordering has taken place? I can't find anything
on the Tapestry 5 website that is relevant. Surely this should be
documented in release notes?

Also, is there anywhere I can find a list of classes and what jars they
are in. There doesn't appear to be any way to find this out on-line.

Thanks.


-Original Message-
From: Kristian Marinkovic [mailto:kristian.marinko...@porsche.co.at] 
Sent: 15 July 2009 11:47
To: Tapestry users
Subject: RE: t5: moving to 5.1.0.5 and can't find @Inject

@Inject is located in tapestry5-annotations-5.1.0.5.jar

steps i have in mind

1) have you run mvn eclipse:eclipse... it will add any maven 
dependency as external library. remove all entries except
the JRE entry and the "Maven Dependencies" entry.

2) deactivate the maven offline mode and do a dependency 
update 

g,
kris




"Newham, Cameron"  
15.07.2009 11:56
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
RE: t5: moving to 5.1.0.5 and can't find @Inject







I actually have M2 already installed. I hadn't looked at the dependency
feature in the editor - thanks Thiago.

I now know tapestry-ioc-5.0.18.jar is being used by Chenillekit.

However, I am still unable to locate:

org.apache.tapestry5.ioc.annotations.Inject

It just doesn't exist - anywhere!

Could someone please tell me in which JAR file it is supposed to be?  It
isn't in tapestry-ioc-5.0.18.jar (which is the only version of
tapestry-ioc-xxx that Maven is downloading) as far as I can see.

I don't understand why moving to 5.1.0.5 has caused this problem nor do
I understand why @Inject has disappeared as it obviously existed before;
I've been quite happily using that annotation throughout my project!

If it would help to show my project POM I can post it...

Thanks.


-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 14 July 2009 14:58
To: Tapestry users
Subject: Re: t5: moving to 5.1.0.4 and can't find @Inject

Em Tue, 14 Jul 2009 10:19:49 -0300, Newham, Cameron
 
escreveu:

> If I don't include:
>
> 
>org.apache.tapestry
>tapestry-ioc
> ${tapestry-release-version}
>
>
> In the POM I get 5.1.0.5 for all jars *except* tapestry-ioc which
always
> downloads the 5.0.18 version  /:-(

This looks like some other package you're using depends on Tapestry-IoC

5.0.18. If you're using Eclipse, install the Sonatype's m2eclipse
plugin. 
In its Maven pom.xml editor, it has a very nice feature that shows what

dependencies are being included and by which dependency (transitive 
dependency).

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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


**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08
: 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 

*
 
The information contained in this e-mail is confidential and may be 
legally privileged. It is intended for the addressee(s) only. If you are

not the intended recipient, please delete this e-mail and notify the 
postmas...@bl.uk : The contents of this e-mail must not be disclosed or 
copied without the sender's consent. 
 
The statements and opinions expressed in this message are those of the 
author and do not necessarily reflect those of the British Library. The 
British Library does not take any responsibility for the views of the 
author. 
 

*

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



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



RE: t5: moving to 5.1.0.5 and can't find @Inject

2009-07-15 Thread Newham, Cameron
I actually have M2 already installed. I hadn't looked at the dependency
feature in the editor - thanks Thiago.

I now know tapestry-ioc-5.0.18.jar is being used by Chenillekit.

However, I am still unable to locate:

org.apache.tapestry5.ioc.annotations.Inject

It just doesn't exist - anywhere!

Could someone please tell me in which JAR file it is supposed to be?  It
isn't in tapestry-ioc-5.0.18.jar (which is the only version of
tapestry-ioc-xxx that Maven is downloading) as far as I can see.

I don't understand why moving to 5.1.0.5 has caused this problem nor do
I understand why @Inject has disappeared as it obviously existed before;
I've been quite happily using that annotation throughout my project!

If it would help to show my project POM I can post it...

Thanks.


-Original Message-
From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] 
Sent: 14 July 2009 14:58
To: Tapestry users
Subject: Re: t5: moving to 5.1.0.4 and can't find @Inject

Em Tue, 14 Jul 2009 10:19:49 -0300, Newham, Cameron
  
escreveu:

> If I don't include:
>
> 
>   org.apache.tapestry
>   tapestry-ioc
>   ${tapestry-release-version}
>   
>
> In the POM I get 5.1.0.5 for all jars *except* tapestry-ioc which
always
> downloads the 5.0.18 version  /:-(

This looks like some other package you're using depends on Tapestry-IoC

5.0.18. If you're using Eclipse, install the Sonatype's m2eclipse
plugin.  
In its Maven pom.xml editor, it has a very nice feature that shows what

dependencies are being included and by which dependency (transitive  
dependency).

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



RE: t5: moving to 5.1.0.4 and can't find @Inject

2009-07-14 Thread Newham, Cameron
Thanks Otho, but I'm still having no luck.

Ok, I haven't been keeping up with events and didn't know 5 was the
latest, so now I have 5.1.0.5, but...

If I don't include:


org.apache.tapestry
tapestry-ioc
${tapestry-release-version}


In the POM I get 5.1.0.5 for all jars *except* tapestry-ioc which always
downloads the 5.0.18 version  /:-(

(I don't understand why the dependency does that)

And if I add the above lines I get 5.1.0.5 but tapestry-ioc-5.1.0.5.jar
does not contain @Inject.

I'm even more confused now than when I started...


-Original Message-
From: Otho [mailto:taa...@googlemail.com] 
Sent: 14 July 2009 12:58
To: Tapestry users
Subject: Re: t5: moving to 5.1.0.4 and can't find @Inject

Why don't you update to the official final version 5.1.0.5?

@Inject is in org.apache.tapestry5.ioc.annotations definitely but in the
maven artifact tapestry5-annotations which should be automatically
included
from tapestry5-core


2009/7/14 Newham, Cameron 

> I think I'm going mad...
>
>
>
> I'm moving from 5.0.18 to 5.1.0.4 and after doing a dependency update
> with Maven, Eclipse gives me errors saying it can't find
>
>
>
> org.apache.tapestry5.ioc.annotations.Inject
>
>
>
> Looking in tapestry-ioc-5.1.0.4.jar it isn't there, but looking in the
> 5.0.18 jar I can't see it there either - so which jar does it normally
> live in?
>
>
>
> Maven seems to have correctly downloaded all the 5.1.0.4 jars and I
> don't have any old Tapestry jars on the build path.
>
>
>
>
>
>

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



RE: Multiple submit button and client validations

2009-07-14 Thread Newham, Cameron
I had a dropdown box that in turn changed another field but this
wouldn't work if the user left a text field blank. As I only needed the
validation to occur when they did the final submit for the page, I used
Javascript to perform the submit from the drop-down which gets around
the client-side validation.

Perhaps the solution to your problem lies in that direction?


-Original Message-
From: jose luis sanchez [mailto:joseluis.sanc...@m-centric.com] 
Sent: 14 July 2009 10:01
To: Tapestry users
Subject: Multiple submit button and client validations

Hi all.
I have a form with two grid components inside.

i fill every grid with data input from several textfields, using its own

submit button.


Name Surname 
[ GRID ]

CarPlate CarName 
[ GRID ]


Every field has required validation constraints, and this is the
problem.

When i hit whichever 'addXX' button, i insert those fields inside the 
grid, BUT the client validation for the other textfields do not allow me

to insert it.

Is there another solution than to split this page into 2 pages ?


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


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



t5: moving to 5.1.0.4 and can't find @Inject

2009-07-14 Thread Newham, Cameron
I think I'm going mad...

 

I'm moving from 5.0.18 to 5.1.0.4 and after doing a dependency update
with Maven, Eclipse gives me errors saying it can't find

 

org.apache.tapestry5.ioc.annotations.Inject

 

Looking in tapestry-ioc-5.1.0.4.jar it isn't there, but looking in the
5.0.18 jar I can't see it there either - so which jar does it normally
live in?

 

Maven seems to have correctly downloaded all the 5.1.0.4 jars and I
don't have any old Tapestry jars on the build path.

 

 



RE: [Tapestry Central] Public Tapestry Training in London: Aug 10 - 12

2009-07-13 Thread Newham, Cameron
I'm looking forward to this.


-Original Message-
From: Howard [mailto:hls...@gmail.com] 
Sent: 30 June 2009 18:39
To: users@tapestry.apache.org
Subject: [Tapestry Central] Public Tapestry Training in London: Aug 10 -
12

Formos is partnering with London-based SkillsMatter to provide open
enrollment Tapestry training. The training will take place at the
SkillsMatter offices in downtown London.
This is the same course materials that I use for my on-site Tapestry
training ... and I'll be debuting a new lab on Ajax techniques.

--
Posted By Howard to Tapestry Central at 6/30/2009 10:33:00 AM

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



RE: Difference between @Retain and static attributes?

2009-06-25 Thread Newham, Cameron
I've used @Retain in several places.

It is a good idea :-)   I hope you don't have plans to deprecate it.


-Original Message-
From: Howard Lewis Ship [mailto:hls...@gmail.com] 
Sent: 24 June 2009 22:11
To: Tapestry users
Subject: Re: Difference between @Retain and static attributes?

@Retain are per-instance which can be much different than a static.

@Retain looked like a good idea at the time, but I have never used it in
a
project.

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



Tapestry course in London

2009-06-23 Thread Newham, Cameron
I just wondered if anyone else from this list is going to the Tapestry
course to be held in London in August at Skills Matter?

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*


RE: [Tapestry Central] Why chose Tapestry?

2009-06-18 Thread Newham, Cameron
I have found Maven is great for starting a T5 project, but if you aren't
careful later on then it can become a nightmarish hell.

Having to remove and rebuild the repository a tool has created because
it has gone and messed it up doth not a good tool make.


-Original Message-
From: Joel Halbert [mailto:j...@su3analytics.com] 
Sent: 18 June 2009 09:38
To: users@tapestry.apache.org
Subject: Re: [Tapestry Central] Why chose Tapestry?

I'm still not convinced that using Maven is a good thing.
It's fine for those people that use it day to day already, but for those

people who have no need/interest in picking up another framework and who
just 
want to get on with using Tapestry its a real bug bear.

...

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



RE: best book for T5

2009-06-17 Thread Newham, Cameron
I wonder how many people would be interested in the German version
compared to an English version.

Are there many German Tapestry developers? Perhaps it would be
interesting to know the geographic spread of developers using this
framework.

I assume the publishers have done their homework and know there will be
a big enough audience for the book to make money.


-Original Message-
From: Igor Drobiazko [mailto:igor.drobia...@gmail.com] 
Sent: 17 June 2009 08:06
To: Tapestry users
Subject: Re: best book for T5

First we have to release the german book. The expected publication date
is
29th september 2009.
After the book is released I will try to make the translation possible.
I've already spoken to my publisher. They have a mother company in US,
so
they could make an english version possible.
But let's wait until the german one is available.

On Tue, Jun 16, 2009 at 6:18 PM, ice  wrote:

>
> +1 when is the english version going to be released? :)
>
>


-- 
Best regards,

Igor Drobiazko

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



RE: best book for T5

2009-06-15 Thread Newham, Cameron
A book in English would be great.


-Original Message-
From: Igor Drobiazko [mailto:igor.drobia...@gmail.com] 
Sent: 15 June 2009 07:34
To: Tapestry users
Subject: Re: best book for T5

Well, this community can help to make the publisher's decision easier.
If
somebody of you is interested in a book translation, just comment here.
I
will forward this thread to the publisher. The more interests available
the
more likely they will do it. So give the publisher the impression how
big is
the market for the translated book.

P.S: Cover is really awful. I love it.

On Fri, Jun 12, 2009 at 10:03 PM, Blower, Andy
wrote:

> I meant Igor's book translated to English Thiago... there must be a
bigger
> market for an English version IMO, so his publishers would be crazy
not to
> do one surely, and I hope to see it soon. :-D
>
> Not that I wouldn't welcome another of course.
>
> > -Original Message-
> > From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com]
> > Sent: 12 June 2009 21:00
> > To: Tapestry users
> > Subject: Re: best book for T5
> >
> > Em Fri, 12 Jun 2009 16:52:46 -0300, Blower, Andy
> >  escreveu:
> >
> > > I can't believe that there wouldn't be an even bigger market for a
> > well
> > > written T5 book in English, so I hope to see it soon!
> >
> > I would love to be a co-author in a Tapestry 5 book, but I don't
have
> > the
> > resources nor I want to do this alone.
> >
> > > Love that cover, awesome.
> >
> > One of the most beautiful ones I've seen in a technical book. :)
> >
> > --
> > Thiago H. de Paula Figueiredo
> > Independent Java consultant, developer, and instructor
> > http://www.arsmachina.com.br/thiago
> >
> >
-
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko

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



RE: Authentification in Tapestry

2009-06-04 Thread Newham, Cameron
That's the way I've written the access control on our system.


-Original Message-
From: Christian Senk [mailto:senk.christ...@googlemail.com] 
Sent: 03 June 2009 20:24
To: Tapestry users
Subject: Re: Authentification in Tapestry

We are using a custom dispatcher called "AccessControlDispatcher".
It is like the AccessDispatcher described in the howto-wiki, but in
addition
it checks for certain roles.

This works through a SessionState object that implements an interface
used
by the dispatcher to determine if the SessionState object has the 
required role(s)
or not.

All you have to do is to annotate the desired page with 
"@Secured(Role.ADMIN)"
for example. the dispatcher checks if the current user has the required 
role for this page,
if not the dispatcher calls an AccessDeniedCallback, where you can 
redirect to the login page
or something like that. The Callback and the Class of the SessionState 
object that implements
the interface needed by the dispatcher are contributable over a mapped 
configuration.

It is very simple and i think there is a lot potential to improve this,
but
until now it works for us.

Maybe this idea helps you ^.^

Thibaut Gadiolet schrieb:
> OK, I stop using a full T5 solution to handle
authentication/authorization.
> I am using ACEGI with a basic configuration, you can easily integrate
it to
> your T5 projects, It's not as heavy as I thought, and it turned  out
to be
> very efficient.
>
> But if someone gets a better solution full T5, I'm open.
>
> Thanks,
>
> Thibaut
>
> On Fri, May 22, 2009 at 4:10 AM, Sergey Didenko
wrote:
>
>   
>> Thanks for tips, Thiago!
>>
>> 
>>> This has been discussed in this list before. Check the archives
>>> (http://www.nabble.com/Tapestry---User-f340.html) for some ideas.
>>> Usually they are centered around a RequestFilter or a
>>> ComponentClassTransformer.
>>>
>>>   
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>> 
>
>   


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

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



Has anyone used TreeGrid?

2009-05-21 Thread Newham, Cameron
TreeGrid:

 

http://code.google.com/p/tapestry5-treegrid/

 

 

Are there any examples of usage?

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*


RE: T5: What is NOT beautiful about Tapestry?

2009-05-05 Thread Newham, Cameron
3) Documentation - Good solid reference examples of how to do do simple
apps, explained in detail. Most developers want a framework to be like
lego
building blocks. I do A, B, C and D and I get E. I assemble a dozen
different pieces and I have my app. Really how complicated are most web
apps? They are forms and workflow and validation.  To get developers to
use
your framework you need good examples of how to do each, laid out and
described in simple guaranteed to work steps. There need to be examples
of
these  in both Netbeans and Eclipse; preferably several examples of
each.

---

All good points, but this above all others I think. Developers never
seem to fully appreciate this - or if they do, they make it a lesser
priority.

Documentation is critical. It doesn't matter how good something is (and
that those "in the know" know it), it's rendered useless if the
documentation doesn't exist or is not up to scratch. Tapestry 5
documentation is not up to scratch. I'll repeat that: Tapestry 5
documentation is not up to scratch.

Why?

Unfortunately there are a plethora of places to look in if you want to
find how to do something. It's not only annoying for people who are
developing in Tapestry, it is off-putting to new developers who are
looking at this as a possible solution to a development problem.

We've now reached a stage in web development where things should be easy
to put together (Lego building blocks). I used to hate web development
and Tapestry 3 was the first thing I found which helped me dislike it a
lot less. Tapestry 5 even more so. However, having no good set of
central documentation, how-tos, cookbook solutions, etc makes the
development process that much harder and not like Lego blocks. I really
only want to have to think about business logic and know only the basics
of how Tapestry works. Turning to the source code should be a last
resort and I've had to do that once so far with Tapestry 5 because the
documentation I required was inadequate (can't remember what it was now,
but it wasn't even anything exotic I was trying to do!)

That said, I think this mailing list is fantastic and has certainly
ridden to my rescue on numerous occasions. The only off-putting thing is
the fear of asking the "dumb question". Sure, no questions are dumb, but
I always feel a lot better if I know I've made an effort to find out how
to do something before asking on here. Again, lack of good docs makes
that effort so much harder and also increases the traffic on here by the
same questions being asked multiple times.

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



RE: Hibernate.cfg or persistence.xml?

2009-04-02 Thread Newham, Cameron
I am just using hibernate.cfg.xml and it all works very well.



-Original Message-
From: daniel joyce [mailto:daniel.a.jo...@gmail.com] 
Sent: 02 April 2009 05:14
To: users@tapestry.apache.org
Subject: Hibernate.cfg or persistence.xml?

I want to use persistence annotations in my tapestry application, but
the documentation on the hibernate-tapestry integration is sparse and
contradictory.

Do I need to use Hibernate.cfg.xml, or can I use a persistence.xml
with  hibernate as the persistence provider? I see references to
acquiring a EntityManager, or setting up some kind of automatic
service in the AppModule, but all the info I've found is sparse at
best.

Any better sources out there?

-Daniel

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

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



RE: [T5] improve documentation

2009-01-21 Thread Newham, Cameron
I think we are all in agreement that the documentation needs a radical overhaul 
(and lots to be written).

The next question is, who is going to do it?

A while ago someone proposed a book on T5. A small group from here organised a 
separate discussion group and went off to work on it (I have no idea how it is 
going. Does anyone know?)

Maybe a similar thing should be done w.r.t this current issue?

c.


-Original Message-
From: Borut Bolčina [mailto:borut.bolc...@gmail.com] 
Sent: 21 January 2009 08:58
To: Tapestry users
Subject: Re: [T5] improve documentation

Hi,

also a guide/recipes/good practices/tips/chapter for converting JSP
applications to Tapestry 5 would be very welcome. At least a paragraph
clarifying questions like: "Can I have JSPs in my Tapestry 5 application or
do I have to have two web applications talking somehow to each other?", "How
to post a form from JSP to a Tapestry page or vice versa?", ...

A guide on clustering. I know this info can be found in many locations on
the net, but writing it in Tapestry documentation would imho greatly improve
the credibility of the framework for "serious" web applications. I feel
tapestry is missing the scope in the market. It is not advertised in any
way, nor as a framework which one can use to quickly make a simple news
site, as other frameworks (non java) are better at that (so I hear), nor as
a framework which is best for large teams and large applications. Just look
at the web page for Zend PHP framework (http://www.zend.com). Which page do
you think management like more, zend's or tapestry's? Unfortunately
sometimes (too often) the arguments of power outweight the power of
arguments and the consequence is, well, "We will use the framework which has
more flashy homepage!".

The community, us, must prove that a simple web application (some forms,
administration pages, publishing news, social "crap", etc) can be done
without having a PhD in Computer Science. Tapestry relies much on convention
over configuration paradigm, that is why the documentation must be excelent.
Say, for example
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html.
This page is clearly frightening - look at the first paragraph. So many
events and none/few of them has a decent explanation/usage scenario/example.
IMO all of them should be properly documented or not mentioned at all.

The authorization should have a chapter! Tapestry is a very powerful
framework and as such the same thing can be done differently, BUT...why
should one have to spend days/weeks to implement a decent
authentication/authorization system? There should be a guide for common
scenarios like form based authentication. Of course one can hunt for example
projects and study the guts of them, which in the end is very rewarding, but
time consuming. Newcomers should have clear goals on how to implement such
things, without jumping to the wiki and other places and fighting the
dependency incompatibilities.


-Borut

2009/1/13 Ulrich Stärk 

> Hi all,
>
> Tapestry's current documentation is very complete, covering almost
> everything a developer needs to know to be productive with Tapestry.
> Unfortunately this documentation is clustered across several locations thus
> making it hard to find information and very hard for beginners to get going.
> Sometimes even I am annoyed because I don't find the information I'm looking
> for at the expected place. There is the official user guide, which is no
> guide in the actual sense of the word but merely a collection of topics
> using Tapestry-specific vocabulary as the topics, making it hard for a
> beginner to get started. Then there is the tutorial that gets you started
> with Tapestry but doesn't go deep enough to know the name of the topic to
> look for in the user guide when a problem arises or more information on a
> subject is needed. Thirdly, there is the wiki that contains numerous
> examples on how to solve common use cases with Tapestry. And lastly there is
> the component reference that not only contains documentation for a specific
> component but also contains examples on how to use them to solve common use
> cases. Today for example, someone on the users mailing list asked for how to
> have some kind of a "dynamic component". He wanted to display a certain
> component based on the outcome of a function he wrote in his page class.
> This question has come up before on the list and because of the "Static
> Structure, Dynamic Behavior" paradigm - which is a key principle and is not
> mentioned in the documentation but at the bottom of the start page - the
> solution is to use the Delegate component with blocks. In the Delegate
> component reference documentation there is an example covering exactly that
> use case. But it seems that the user wasn't able to find it - either he
> didn't look at all or more probably, he looked in the wrong place. How could
> he possibly know, that the solution to his

RE: [T5] improve documentation

2009-01-14 Thread Newham, Cameron
I second this.

I much prefer the "cookbook" approach as opposed to having to wade through a 
complete application to find how to do something.

Jumpstart is excellent and has helped me many times. All it needs is perhaps a 
bit more explanation of what's going on, more cases covering solutions to 
common problems, and a bit more filling out.



-Original Message-
From: Andy Pahne [mailto:andy.pa...@googlemail.com] 
Sent: 13 January 2009 21:15
To: Tapestry users
Subject: Re: [T5] improve documentation


I'd prefer if it were more like jumpstart than petstore.

Any chance jumpstart becoming part of the framework?

Andy



superoverdr...@gmx.de schrieb:
> An good old pet-shop application...with lots of Ajax would be nice...or 
> something similiar.
>
> It could coves common questions on the Tapestry mailing list from the past
> by providing an example implementation.
>
> Would be good if it also contained one or the other things of the following 
> list:
>
> - Caching HTML fragments (e.g. expensive database queries) that only need to 
> be generated
> every 5 minutes or 5 hours.
>
> - Dynamic rendering of form elements (when the configuration is read from a 
> database, for dynamic
> form field definitions, e.g. in the backend "3 textfields with 50 chars max, 
> 10 checkboxes with 3 minimum selections.)
>
> - some "common" Ajax/DHTML stuff you see nowadays on most websites..e.g. 
> "animations", e.g. imagine you delete a row from a table that dissolves with 
> a small animation, or combining an Ajax List with autocomplete or something 
> like this here:
>
> http://www.interiders.com/2008/02/11/prototextboxlist-meets-autocompletion/
>
> and stuff like progress bars (e.g. during a search)
>
> Just a few suggestions!
>
> Toby
>
>  Original-Nachricht 
>   
>> Datum: Tue, 13 Jan 2009 10:15:44 -0800
>> Von: Howard Lewis Ship 
>> An: Tapestry users 
>> Betreff: Re: [T5] improve documentation
>> 
>
>   
>> I've been coming to the same conclusion.
>>
>> I'm clearing time with my boss to pursue this, along with several
>> online articles.
>>
>> I have an idea for an application that can demonstrate every bit of
>> Tapestry and be useful to boot.
>>
>> So the "guide" is the reference, what I have planned is the "tour".
>> It would replace the tutorial.
>>
>> On Tue, Jan 13, 2009 at 6:28 AM, Ulrich Stärk  wrote:
>> 
>>> Hi all,
>>>
>>> Tapestry's current documentation is very complete, covering almost
>>> everything a developer needs to know to be productive with Tapestry.
>>> Unfortunately this documentation is clustered across several locations
>>>   
>> thus
>> 
>>> making it hard to find information and very hard for beginners to get
>>>   
>> going.
>> 
>>> Sometimes even I am annoyed because I don't find the information I'm
>>>   
>> looking
>> 
>>> for at the expected place. There is the official user guide, which is no
>>> guide in the actual sense of the word but merely a collection of topics
>>> using Tapestry-specific vocabulary as the topics, making it hard for a
>>> beginner to get started. Then there is the tutorial that gets you
>>>   
>> started
>> 
>>> with Tapestry but doesn't go deep enough to know the name of the topic
>>>   
>> to
>> 
>>> look for in the user guide when a problem arises or more information on
>>>   
>> a
>> 
>>> subject is needed. Thirdly, there is the wiki that contains numerous
>>> examples on how to solve common use cases with Tapestry. And lastly
>>>   
>> there is
>> 
>>> the component reference that not only contains documentation for a
>>>   
>> specific
>> 
>>> component but also contains examples on how to use them to solve common
>>>   
>> use
>> 
>>> cases. Today for example, someone on the users mailing list asked for
>>>   
>> how to
>> 
>>> have some kind of a "dynamic component". He wanted to display a certain
>>> component based on the outcome of a function he wrote in his page class.
>>> This question has come up before on the list and because of the "Static
>>> Structure, Dynamic Behavior" paradigm - which is a key principle and is
>>>   
>> not
>> 
>>> mentioned in the documentation but at the bottom of the start page - the
>>> solution is to use the Delegate component with blocks. In the Delegate
>>> component reference documentation there is an example covering exactly
>>>   
>> that
>> 
>>> use case. But it seems that the user wasn't able to find it - either he
>>> didn't look at all or more probably, he looked in the wrong place. How
>>>   
>> could
>> 
>>> he possibly know, that the solution to his use case is documented in a
>>> component named Delegate?
>>> Because I think that the current arrangement of the documentation makes
>>>   
>> it
>> 
>>> hard to grasp the concepts of Tapestry, especially for beginners, and to
>>> quickly find the information one seeks, I propose the following steps to
>>>   
>> be

RE: [ANN] ChenilleKit Release 1.0.0

2009-01-08 Thread Newham, Cameron
Nice and thanks for the hard work, but please provide some
**documentation** !!!

I see very little information on the Chenille Kit site - some parts,
like the Scripting page, are just blank.

I'm currently using the t5 Components library and would move to this new
version but without documentation there doesn't seem to be much point.



-Original Message-
From: Massimo Lusetti [mailto:mluse...@gmail.com] 
Sent: 31 December 2008 10:29
To: Tapestry users
Subject: [ANN] ChenilleKit Release 1.0.0

Hi all,
  the ChenilleKit team is pleased to announce the availability of the
first release of the ChenilleKit Project.

The 1.0.0 release includes all the features present in the former
project T5Components from which the ChenilleKit is born plus more
features not present there.

Here is a comprehensive list of features available.

 * Core   core utilities we need for some of the following
modules
 * Access   library which provide access restriction constraints
to Tapestry 5 web application
 * Google   Google based services like geocoding, distance, etc
 * Hibernate  some utility classes and services to simplify the life
with Hibernate
 * Hivemind   a bridge from/to Apache's HiveMind to Apache's Tapestry5
 * Imagea simple image scaling service
 * LDAP simple search service against a LDAP server
 * Lucene  indexer and searcher service based on Apache's Lucene's
full text engine.
 * Mail   simple mail service based on Apache's Commons Email
 * Quartz  Quartz based scheduler services
 * Reports  Jasperreports based reporting services
 * Scripting   scripting service based on Apache's Bean Scripting
Framework
 * Tapestrycollection of components and services for your Apache's
Tapestry5 Framework based applications
 * Template   Apache's Velocity and FreeMarker based template services

Every feature is available as a separate module (Tapestry5 library).

If you use maven as a build project system you can access these
libraries using our repository.
In your pom.xml file specify the ChenilleKit repository:


chenillekit
http://www.chenillekit.org/mvnrepo/release

false



Then you are able to set dependency on ChenilleKit libraries the usual
way:


org.chenillekit
chenillekit-quartz
1.0.0


If you're not using maven you can download the libraries from the
project page:

http://code.google.com/p/chenillekit/

Project and documentation site is available at:

http://www.chenillekit.org

This 1.0.0 release is considered beta and the ChenilleKit is following
the Apache convention (the same as Tapestry5 project is doing) for
software release so following releases will be voted to gain final/GA
status release for 1.0 branch.

The current trunk (HEAD) will follow Tapestry 5.1 while we have
created branches/1.0 to succeeding 1.0.x releases which will be based
on Tapestry 5.0 branch releases.

Feedback is always welcome.

The ChenilleKit team would like to thank Sven Homburg for providing
the box and Internet connectivity fro ChenilleKit.org domain and last
but not least the original code of T5Components.

Happy new year to everyone!

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

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

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the postmas...@bl.uk : 
The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



RE: T5: The other misleading term is "encoder"?

2008-11-06 Thread Newham, Cameron
I agree - I found it confusing when I first read about it. It isn't an
"encoder" as it also "decodes".

Much prefer your term "mapper".



-Original Message-
From: Geoff Callender [mailto:[EMAIL PROTECTED] 
Sent: 06 November 2008 12:42
To: Tapestry users
Subject: T5: The other misleading term is "encoder"?

Has anyone else found the "encoder" concept in Loop misleading?  I'd  
suggest renaming it to "mapper".

I see a "mapper" as being something that maps between one thing and  
another, eg. between a key and an object.
An "encoder" is something that converts data between formats without  
loss - all the data is there and only its format has changed (eg. from  
chars to binhex).

In fact, the Loop component actually uses both - it asks our "mapper"  
to give it the key of the data, then it uses its own internal  
"encoder" to encode the keys into a hidden field. On submit, its  
internal "encoder" decodes the hidden field, then gives the keys to  
our "mapper" which has to return the corresponding object, possibly by  
going to the database.

I raise this thought because I found the name "encoder" blurred my  
understanding of what I really had to provide and how it would affect  
what went to the client.  I'd suggest "encoder" becomes "mapper", and  
(even more controversial?) PrimaryKeyEncoder becomes PrimaryKeyMapper.

Has anyone else found confusion in this?

G.

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

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2007/08 : 
www.bl.uk/knowledge
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] 
: The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*

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



RE: T5 : [ANN] The book - next steps

2008-09-04 Thread Newham, Cameron
Hear hear.

I too would love to see a complete application made from start to finish using 
T/S/H.

Something along the lines of what Howard suggested (but please - no "pet 
store"!)

I'm looking forward to seeing how this new book progresses.

C


-Original Message-
From: ProAdmin Dariusz Dwornikowski [mailto:[EMAIL PROTECTED] 
Sent: 03 September 2008 19:31
To: Tapestry users
Subject: Re: T5 : [ANN] The book - next steps

I really would love to see a walkthrough on making blog application in
tapestry5+spring+hibernate. Not only the integration, but how to implement
simple blog with it, design DAOs, where to put them etc. Tapestry alone is
no use if you do not have DB. In advanced topics I would like to see ex.
acegi integration, more ajax complex examples, own components etc. I find
examples very useful and most of people learn by examples very well.
That is my suggestion.

2008/9/3 Howard Lewis Ship <[EMAIL PROTECTED]>

> Looked at the TOC.
>
> My thoughts on writing the book line up closely with how I've written
> the Tapestry Workshop.  I can tell you that, in the Workshop, we are
> using Hibernate in the first session (the Workshop consists of themed
> sessions, with labs inside the session).
>
> In other words, focus on how people *use* Tapestry.  Yes, not everyone
> will be using Hibernate, but people understand the gist of it, and
> regardless of solution (Cayanne, iBatis, craptaculous) people will be
> moving data between the DB and the app and probably representing that
> data as beans.
>
> The Workshop largely follows the evolution of a Tapestry app, a simple
> (limited) clone of Blogger. With each successive lab, we implement
> more and more of the application. There's very little hand waving,
> because people understand blogs and comments and such.
>
> The Workshop has the advantage that it's a complete working
> environment, with database up and running and pre-populated.
>
> The mistake I made in "Tapestry in Action" was thinking too much in
> terms of explaining what the framework does.   I've learned a lot
> since then in terms of how to explain complex things, and part of it
> is to explore different solutions to a problem before coming to a
> conclusion.
>
> On Wed, Sep 3, 2008 at 10:25 AM, Hugo Palma <[EMAIL PROTECTED]>
> wrote:
> > Just an idea, maybe hosting the book on assembla (
> http://www.assembla.com)
> > would fit this project needs better.
> > I've used assembla with great success in the past, it has all the things
> we
> > need, an SVN repo, a forum, a chat room, an issue tracker, and more...
> >
> >
> > Alex Kotchnev wrote:
> >>
> >> I've created a new project for the proposed book at
> >> http://code.google.com/p/tapestry5-book , and posted the proposed table
> of
> >> contents at
> >> http://code.google.com/p/tapestry5-book/wiki/ProposedTableOfContents .
> Now
> >> that I'm looking at it, it's a little disappointing as the TOC doesn't
> >> really have anything new in it (e.g. some of it is covered in tutorials,
> >> other is in the project docs, etc). However, I guess that the content
> >> really
> >> can't be all that different - it's all about building web apps, covering
> >> the
> >> same materials as the other documentation. In the end, I think that the
> >> book
> >> will be different from the other existing documents based on its style
> and
> >> breadth of content, and not so much in the topics it covers.
> >>
> >> Anyway, I would like to create a mailing list and add everyone who has
> >> expressed an interest in contributing to the book. Unfortunately, Google
> >> Code doesn't have mailng lists, so I'll probably have to look around for
> >> that (Nabble, maybe?). Any suggestions would be welcome here.
> >>
> >> In terms of moving the proposed TOC forward, here are some of my next
> >> steps
> >> :
> >> 1. Attribute the main sections of the project documentation into
> possible
> >> chapters in the book.
> >> 2. Discuss feedback from this list on the content of the proposed TOC :
> >> e.g.
> >> any alternative ideas on how to organize the book, changes to the
> proposed
> >> chapter titles, order, etc.
> >>
> >> It would be great if there are any volunteers to investigate some of the
> >> issues that were discussed previously in the thread below, I'll probably
> >> post the needed tasks somewhere on the wiki as well.
> >>
> >> When we get our mailing list set up, I think that individuals or groups
> of
> >> individuals can claim ownership of each chapter (and thus get "voting
> >> rights" on the TOC, chapter layout, further modifications, etc.
> >>
> >> Cheers,
> >>
> >> Alex Kotchnev
> >>
> >>
> >>
> >> On Thu, Aug 28, 2008 at 4:59 AM, Hugo Palma <[EMAIL PROTECTED]>
> >> wrote:
> >>
> >>
> >>>
> >>> inline
> >>>
> >>> Alex Kotchnev wrote:
> >>>
> >>>
> 
>  Would there be any value to having a top-level domain for the book
> (e.g.
>  tapestry-book.org or something like that), or can we find it a home
> for
>  the
>  book somewhere under 

RE: Class not found exception

2008-07-17 Thread Newham, Cameron
Perfect.

Thanks Martijn.


-Original Message-
From: Martijn Brinkers (List) [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 16:29
To: Tapestry users
Subject: Re: Class not found exception

See:

http://wiki.apache.org/tapestry/Tapestry5HowToSetupEclipseRunJettyRun

Martijn

On Thu, 2008-07-17 at 14:13 +0100, Newham, Cameron wrote:
> I'm doing the Tapestry Tutorial. I'm getting the following for the
Forms
> part of the tutorial:
> 
>  
> 
> caught an exception while obtaining a class file for
> org.apache.tapestry5.corelib.components.Form
> 
> exception
> 
> org.apache.tapestry5.internal.services.TransformationException: Error
> obtaining injected value for field
> org.apache.tapestry5.corelib.components.Form.logger:
> java.lang.ClassNotFoundException: org.slf4j.Logger
> 
>  
> 
> 
> 
> I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do
> the Tapestry Tutorial.
> 
>  
> 
> I see this has been raised before and is supposedly a "Jetty Error".
> Unfortunately I am not knowledgable enough to fix this myself (and
> really, the Tutorial should say something about this and give a fix
> rather than leaving novices like me hanging with no idea what is going
> on. Apologies if there is something about this, but a Google search
> turns up very little).
> 
>  
> 
> One solution was for jetty.xml to have:
> 
>  
> 
> true
> 
>  
> 
> 
> 
> I've done this, but it doesn't fix the problem.
> 
>  
> 
> mvn jetty:run
> 
>  
> 
> does allow the page to load, but I want to be able to run Jetty from
> Eclipse.
> 
>  
> 
> Can someone either point me at a solution or provide one?  (and
please,
> it has to be in terms a novice can understand).
> 
>  
> 
> Thank you!
> 
>

**
>  
> Experience the British Library online at www.bl.uk
>  
> The British Library's new interactive Annual Report and Accounts
2006/07 : www.bl.uk/mylibrary
>  
> Help the British Library conserve the world's knowledge. Adopt a Book.
www.bl.uk/adoptabook
>  
> The Library's St Pancras site is WiFi - enabled
>  
>

*
>  
> The information contained in this e-mail is confidential and may be
legally privileged. It is intended for the addressee(s) only. If you are
not the intended recipient, please delete this e-mail and notify the
[EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or
copied without the sender's consent. 
>  
> The statements and opinions expressed in this message are those of the
author and do not necessarily reflect those of the British Library. The
British Library does not take any responsibility for the views of the
author. 
>  
>

*


-
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: Class not found exception

2008-07-17 Thread Newham, Cameron
Typo on my part. I meant Run Jetty Run:

http://code.google.com/p/run-jetty-run/

which is an Eclipse plugin.


-Original Message-
From: Russell Brown [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 16:23
To: Tapestry users
Subject: RE: Class not found exception

I'm not sure how you run jetty from eclipse with jetty runner. Is it an
eclipse plugin? 

-Original Message-
From: Newham, Cameron [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 16:10
To: Tapestry users
Subject: RE: Class not found exception

Thanks Russell.

I had seen that one too but I'm afraid that, while I understand the
underlying problem, the wiki entry solution doesn't mean a great deal to
me as I am have not been using Maven for very long and don't know much
about POMs or artifacts.

I don't see why I should have to have a "run class". Surely it should
just all work out of the box (or at worst, by modifying a Jetty XML file
as I initially tried).

Thanks.


-Original Message-
From: Russell Brown [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 15:15
To: Tapestry users
Subject: RE: Class not found exception

Hi,
I asked about this a few weeks back and Ben Gidley pointed me at the
wiki with these words

" What is happening is Jetty hides 'server' classes from the web
application unless they are also in WEB-INF/lib. When you run in the IDE
you don't have a WEB-INF/lib so it can't find the slf4j classes as they
are loaded by Jetty as server classes.

You are starting Tapestry inside your IDE using a Run class - you need
to add a line into your startup class saying

 // Remove slf4j from list of classes not exposed to webapp
webapp.setServerClasses(new String[]
{"-org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty."});



see http://wiki.apache.org/tapestry/Tapestry5RunViaMain for more
details.
"

Hope that helps

Russell

-Original Message-
From: Newham, Cameron [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 14:13
To: Tapestry users
Subject: Class not found exception

I'm doing the Tapestry Tutorial. I'm getting the following for the Forms
part of the tutorial:

 

caught an exception while obtaining a class file for
org.apache.tapestry5.corelib.components.Form

exception

org.apache.tapestry5.internal.services.TransformationException: Error
obtaining injected value for field
org.apache.tapestry5.corelib.components.Form.logger:
java.lang.ClassNotFoundException: org.slf4j.Logger

 

 

I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do
the Tapestry Tutorial.

 

I see this has been raised before and is supposedly a "Jetty Error".
Unfortunately I am not knowledgable enough to fix this myself (and
really, the Tutorial should say something about this and give a fix
rather than leaving novices like me hanging with no idea what is going
on. Apologies if there is something about this, but a Google search
turns up very little).

 

One solution was for jetty.xml to have:

 

true

 

 

I've done this, but it doesn't fix the problem.

 

mvn jetty:run

 

does allow the page to load, but I want to be able to run Jetty from
Eclipse.

 

Can someone either point me at a solution or provide one?  (and please,
it has to be in terms a novice can understand).

 

Thank you!


**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2006/07
: www.bl.uk/mylibrary
 
Help the British Library conserve the world's knowledge. Adopt a Book.
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 

*
 
The information contained in this e-mail is confidential and may be
legally privileged. It is intended for the addressee(s) only. If you are
not the intended recipient, please delete this e-mail and notify the
[EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or
copied without the sender's consent. 
 
The statements and opinions expressed in this message are those of the
author and do not necessarily reflect those of the British Library. The
British Library does not take any responsibility for the views of the
author. 
 

*


Communications on or through ioko's computer systems may be monitored or
recorded to secure effective system operation and for other lawful
purposes.

Unless otherwise agreed expressly in writing, this communication is to
be treated as confidential and the information in it may not be used or
disclosed except for the purpose for which it has been sent. If you have
reason to believe that you are not the intended recipient of this
communication, please contact the sender immediately. No employee is
authorised to conclude any b

RE: Class not found exception

2008-07-17 Thread Newham, Cameron
Thanks Russell.

I had seen that one too but I'm afraid that, while I understand the
underlying problem, the wiki entry solution doesn't mean a great deal to
me as I am have not been using Maven for very long and don't know much
about POMs or artifacts.

I don't see why I should have to have a "run class". Surely it should
just all work out of the box (or at worst, by modifying a Jetty XML file
as I initially tried).

Thanks.


-Original Message-
From: Russell Brown [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 15:15
To: Tapestry users
Subject: RE: Class not found exception

Hi,
I asked about this a few weeks back and Ben Gidley pointed me at the
wiki with these words

" What is happening is Jetty hides 'server' classes from the web
application unless they are also in WEB-INF/lib. When you run in the IDE
you don't have a WEB-INF/lib so it can't find the slf4j classes as they
are loaded by Jetty as server classes.

You are starting Tapestry inside your IDE using a Run class - you need
to add a line into your startup class saying

 // Remove slf4j from list of classes not exposed to webapp
webapp.setServerClasses(new String[]
{"-org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty."});



see http://wiki.apache.org/tapestry/Tapestry5RunViaMain for more
details.
"

Hope that helps

Russell

-Original Message-
From: Newham, Cameron [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 14:13
To: Tapestry users
Subject: Class not found exception

I'm doing the Tapestry Tutorial. I'm getting the following for the Forms
part of the tutorial:

 

caught an exception while obtaining a class file for
org.apache.tapestry5.corelib.components.Form

exception

org.apache.tapestry5.internal.services.TransformationException: Error
obtaining injected value for field
org.apache.tapestry5.corelib.components.Form.logger:
java.lang.ClassNotFoundException: org.slf4j.Logger

 

 

I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do
the Tapestry Tutorial.

 

I see this has been raised before and is supposedly a "Jetty Error".
Unfortunately I am not knowledgable enough to fix this myself (and
really, the Tutorial should say something about this and give a fix
rather than leaving novices like me hanging with no idea what is going
on. Apologies if there is something about this, but a Google search
turns up very little).

 

One solution was for jetty.xml to have:

 

true

 

 

I've done this, but it doesn't fix the problem.

 

mvn jetty:run

 

does allow the page to load, but I want to be able to run Jetty from
Eclipse.

 

Can someone either point me at a solution or provide one?  (and please,
it has to be in terms a novice can understand).

 

Thank you!


**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2006/07
: www.bl.uk/mylibrary
 
Help the British Library conserve the world's knowledge. Adopt a Book.
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 

*
 
The information contained in this e-mail is confidential and may be
legally privileged. It is intended for the addressee(s) only. If you are
not the intended recipient, please delete this e-mail and notify the
[EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or
copied without the sender's consent. 
 
The statements and opinions expressed in this message are those of the
author and do not necessarily reflect those of the British Library. The
British Library does not take any responsibility for the views of the
author. 
 

*


Communications on or through ioko's computer systems may be monitored or
recorded to secure effective system operation and for other lawful
purposes.

Unless otherwise agreed expressly in writing, this communication is to
be treated as confidential and the information in it may not be used or
disclosed except for the purpose for which it has been sent. If you have
reason to believe that you are not the intended recipient of this
communication, please contact the sender immediately. No employee is
authorised to conclude any binding agreement on behalf of ioko with
another party by e-mail without prior express written confirmation.

ioko365 Ltd.  VAT reg 656 2443 31. Reg no 3048367. All rights reserved.

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



Class not found exception

2008-07-17 Thread Newham, Cameron
I'm doing the Tapestry Tutorial. I'm getting the following for the Forms
part of the tutorial:

 

caught an exception while obtaining a class file for
org.apache.tapestry5.corelib.components.Form

exception

org.apache.tapestry5.internal.services.TransformationException: Error
obtaining injected value for field
org.apache.tapestry5.corelib.components.Form.logger:
java.lang.ClassNotFoundException: org.slf4j.Logger

 

 

I'm using Jetty 6 and Jetty Runner in Eclipse and I'm attempting to do
the Tapestry Tutorial.

 

I see this has been raised before and is supposedly a "Jetty Error".
Unfortunately I am not knowledgable enough to fix this myself (and
really, the Tutorial should say something about this and give a fix
rather than leaving novices like me hanging with no idea what is going
on. Apologies if there is something about this, but a Google search
turns up very little).

 

One solution was for jetty.xml to have:

 

true

 

 

I've done this, but it doesn't fix the problem.

 

mvn jetty:run

 

does allow the page to load, but I want to be able to run Jetty from
Eclipse.

 

Can someone either point me at a solution or provide one?  (and please,
it has to be in terms a novice can understand).

 

Thank you!

**
 
Experience the British Library online at www.bl.uk
 
The British Library's new interactive Annual Report and Accounts 2006/07 : 
www.bl.uk/mylibrary
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFi - enabled
 
*
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] 
: The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
*