Unable to resolve 't5components/Accordion' to a component class name

2008-06-25 Thread Tan [EMAIL PROTECTED]
hi all,

I have a problem to deploy t5components.
even i use t5c/Accordion , Acordion or t5compoents/Accordion also facing the
same problem.
is there any path wrong?

Unable to resolve 't5c/Accordion' to a component class name. Available
component types: ActionLink, AddRowLink, AjaxFormLoop, Any, BeanDisplay,
BeanEditForm, BeanEditor, Checkbox, DateField, Delegate, Errors, EventLink,
ExceptionDisplay, Form, FormFragment, FormInjector, Grid, GridCell,
GridColumns, GridPager, GridRows, If, Label, Loop, Output, OutputRaw,
PageLink, Palette, PasswordField, PropertyDisplay, PropertyEditor, Radio,
RadioGroup, RemoveRowLink, RenderObject, Select, Submit, SubmitNotifier,
TextArea, TextField, TextOutput, Unless, Zone, dojocomponent.


Thank you.

Regards,
TanMH


Re: T5: Hibernate warning

2008-06-25 Thread Daniel Jue
It's just a warning, not an error, you can safely ignore this one.
=)


On Wed, Jun 25, 2008 at 11:13 PM, Angelo Chen <[EMAIL PROTECTED]>
wrote:

>
> Hi,
>
> This is an old problem that I was not able to fix, applications runs, but
> always get this error
>
> [WARN] AnnotationBinder Package not found or wo package-info.java:
> org.bfe.sample.t5.entities
>
> I do have a hibernate.cfg.xml as follow and it works well:
>
>
>  
> name="hibernate.connection.driver_class">com.mysql.jdbc.Driver
>
>
>
>
>  
>
>
> I do remember that somebody suggests putting a package-info.java in the
> entitiies directory, but what needed to be listed?
>
> Thanks,
>
> Angelo
> --
> View this message in context:
> http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18125776.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Javassist exception on deploy time

2008-06-25 Thread Martijn Brinkers (List)
Hi,

I get this long Javassist exception when I startup Jetty from within
eclipse. This only happens when I start Jetty with the Tapestry projects
as a dependend project.

Any idea?

Martijn


HTTP ERROR: 500
java.lang.ClassNotFoundException: caught an exception while obtaining a class 
file for org.apache.tapestry5.corelib.components.Loop


Caused by:
org.apache.tapestry5.ioc.internal.util.TapestryException: 
java.lang.ClassNotFoundException: caught an exception while obtaining a class 
file for org.apache.tapestry5.corelib.components.Loop [at 
classpath:org/apache/tapestry5/corelib/pages/ExceptionReport.tml, line 27, 
column 91]
at 
org.apache.tapestry5.internal.services.PageElementFactoryImpl.newComponentElement(PageElementFactoryImpl.java:234)
at 
$PageElementFactory_11ac3363bd8.newComponentElement($PageElementFactory_11ac3363bd8.java)
at 
org.apache.tapestry5.internal.services.PageLoaderProcessor.startComponent(PageLoaderProcessor.java:656)
at 
org.apache.tapestry5.internal.services.PageLoaderProcessor.loadTemplateForComponent(PageLoaderProcessor.java:501)
at 
org.apache.tapestry5.internal.services.PageLoaderProcessor.workComponentQueue(PageLoaderProcessor.java:808)
at 
org.apache.tapestry5.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:393)
at 
org.apache.tapestry5.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:59)
at $PageLoader_11ac3363bd6.loadPage($PageLoader_11ac3363bd6.java)
at 
org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210)
at 
org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:107)
at $PagePool_11ac3363bd5.checkout($PagePool_11ac3363bd5.java)
at 
org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:43)
at $RequestPageCache_11ac3363bd4.get($RequestPageCache_11ac3363bd4.java)
at $RequestPageCache_11ac3363bcc.get($RequestPageCache_11ac3363bcc.java)
at 
org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:47)
at 
$RequestExceptionHandler_11ac3363bba.handleRequestException($RequestExceptionHandler_11ac3363bba.java)
at 
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42)
at $RequestHandler_11ac3363bbc.service($RequestHandler_11ac3363bbc.java)
at 
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79)
at $RequestHandler_11ac3363bbc.service($RequestHandler_11ac3363bbc.java)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:1)
at 
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:75)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106)
at $RequestHandler_11ac3363bbc.service($RequestHandler_11ac3363bbc.java)
at $RequestHandler_11ac3363bb4.service($RequestHandler_11ac3363bb4.java)
at 
org.apache.tapestry5.services.TapestryModule$11.service(TapestryModule.java:918)
at 
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
at 
$HttpServletRequestFilter_11ac3363bb3.service($HttpServletRequestFilter_11ac3363bb3.java)
at 
$HttpServletRequestHandler_11ac3363bb5.service($HttpServletRequestHandler_11ac3363bb5.java)
at 
$HttpServletRequestHandler_11ac3363bb2.service($HttpServletRequestHandler_11ac3363bb2.java)
at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:168)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at 
org.mortbay.io.nio.SelectChannelEndPoin

how to deploy t5components in existing T5 project?

2008-06-25 Thread Tan [EMAIL PROTECTED]
Hi,

May i know how to deploy t5components in existing T5 project? there are not
really many documentation
to guide how to deploy it in T5 project.
Thank you.

Regards,
CYberTAn


T5: Hibernate warning

2008-06-25 Thread Angelo Chen

Hi,

This is an old problem that I was not able to fix, applications runs, but
always get this error

[WARN] AnnotationBinder Package not found or wo package-info.java:
org.bfe.sample.t5.entities

I do have a hibernate.cfg.xml as follow and it works well:


  
com.mysql.jdbc.Driver




  


I do remember that somebody suggests putting a package-info.java in the
entitiies directory, but what needed to be listed?

Thanks,

Angelo  
-- 
View this message in context: 
http://www.nabble.com/T5%EF%BC%9A-Hibernate-warning-tp18125776p18125776.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T4.1.5] Creating Tapestry links, client-side.

2008-06-25 Thread Andreas Andreou
It's usual to generate a direct link with a dummy parameter (like "{0}")
at the server and pass that to the javascript that when needed will replace
{0} with the dynamic parameter.

For forms, the @Hidden component (check also its encode parameter) is helpful

On 6/26/08, Jim <[EMAIL PROTECTED]> wrote:
> Hello,
>
>  Is there a clean way to dynamically (on the client-side) generate Tapestry
> Direct/Service/Page links?  e.g. if you wanted to generate a link to a
> Tapestry listener, but you don't know the parameters until after the page is
> rendered, such as if you're generating links/behavior to attach to items
> that are retrieved via AJAX.
>
>  I could just "View Source", paste the URL, and hack it.  Or I could
> dynamically update the fields of a hidden @Form.  My concern, however, is
> that I'd be locking my application into that specific version of Tapestry --
> it would be comparable to basing logic off of a class's toString()
> implementation.
>
>  I'm using Tap 4.1.5, though, so perhaps this is a reasonable risk since
> upgrading to Tap 5 would require a near-rewrite anyway?
>
>  Thanks,
>  Jim
>
> -
>  To unsubscribe, e-mail:
> [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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



Re: Igor´s and Renat´s Presentation of Tapest ry 5 yesterday evening in Düsseldorf

2008-06-25 Thread Geoff Callender

Just had a look at the slides.  Very succinct presentation.  Nice work.

Geoff

On 26/06/2008, at 6:12 AM, Renat Zubairov wrote:


Thanks Nils!

I've just put our slides online and since they were written in English
everyone may also have a look inside :)

Indeed, we skipped allot of interesting staff, e.g. Tapestry IOC,  
Testing, etc.
On the day before presentation we reduced the slideset from 65 to 35  
slides.

(basically we just moved the last "Questions" slide in the middle so
you still will be able to see them)

I've published PDF on the google-code project of the
Tapestry4Nontbelievers article here:

http://code.google.com/p/tapestry4nonbelievers/downloads/detail?name=Tapestry%205.pdf

Photos will be online soon.

BR
Renat

2008/6/25 nille hammer <[EMAIL PROTECTED]>:


Hi all,

I wanted to know whether anyone else from this list had the  
opportunity to be in Düsseldorf yesterday.


Igor and Renat did a really good job showing how quickly and easily  
you get an application running with Tapestry 5. They have been  
given a hard time by the audience asking loads of questions. They  
have passed that with flying colours (I looked this up in a  
dictionary). They have left no question unanswered (well, maybe one  
or two ;-) ).


The only downside (as often with this kind of events) was the lack  
of time. A lot of topics had to be left uncovered. And could not   
be covered either in the session after the presentation. I  
personally would like them to follow up with events focussing on  
particular topics like Tapestry-IOC or the Contribution concept.  
Especially the latter one still is a bit obscure to me.


All in all I enjoyed the opportunity to meet some fellows from this  
list and even some open source celebrities personally. And free  
beer is allways a bonus. I hope to see some photos online soon. You  
guys get a vote +1 (non-binding) from me!


Regards nillehammer

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






--
Best regards,
Renat Zubairov



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



[T4.1.5] Creating Tapestry links, client-side.

2008-06-25 Thread Jim

Hello,

Is there a clean way to dynamically (on the client-side) generate 
Tapestry Direct/Service/Page links?  e.g. if you wanted to generate a 
link to a Tapestry listener, but you don't know the parameters until 
after the page is rendered, such as if you're generating links/behavior 
to attach to items that are retrieved via AJAX.


I could just "View Source", paste the URL, and hack it.  Or I could 
dynamically update the fields of a hidden @Form.  My concern, however, 
is that I'd be locking my application into that specific version of 
Tapestry -- it would be comparable to basing logic off of a class's 
toString() implementation.


I'm using Tap 4.1.5, though, so perhaps this is a reasonable risk since 
upgrading to Tap 5 would require a near-rewrite anyway?


Thanks,
Jim

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



Re: [T5] Return HTTP Error from AJAX Call

2008-06-25 Thread Filip S. Adamsen
Maybe this will help, it's a HttpStatusCode class and a 
ComponentEventResultProcessor that handles it:

http://www.mail-archive.com/users@tapestry.apache.org/msg23885.html

-Filip

On 2008-06-25 23:01, Dave Dombrosky wrote:

I would like to return an HTTP error from an AJAX call, so that it
will be interpreted as a failed request by my response handlers.  Is
there any way to bypass Tapestry's ExceptionReport and instead have an
Exception bubble up to Tomcat (so that a 500 Error is generated)?

-Dave

-
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: What if "Page" was removed from page names?

2008-06-25 Thread Alejandro Scandroli
Hi Howard

I'm experimenting with this, I'm trying to get it to work for what it
could be Trails 2, and it was actually pretty easy to do.
I just needed to create a coercion for classes, and then provide
default pages: ListPage, EditPage and ViewPage. Way easier than what I
needed to do to make it work for T4.
Now I'm stuck with providing editors for relationships:
http://www.nabble.com/Contributing-to-BeanBlockSource-and-HibernateEntityValueEncoder-td17642661.html

Saludos.
Alejandro.

On Wed, Jun 25, 2008 at 8:05 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> Eventually, I want tapestry-hibernate to hook in to thing such that,
> if you don't define a page named "edit/blog" (for entity Blog), it
> provides one for you. Ditto for "add/blog", 'view/blog" and
> "search/blog".  But that's for 5.1 or beyond.
>
> On Wed, Jun 25, 2008 at 10:53 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote:
>> Yep, uses a tiny annotation scanner lib that only scans
>> WEB-INF/classes (by default) at app startup time.
>>
>> Can't really tell how this messes up with synthetic pages
>> cause i don't quite know what you have in mind... in our
>> current T4 project, we've been using synthetic components
>> though which (i believe) is an equally powerful concept and
>> has the benefit of not messing with page names.
>>
>> On 6/25/08, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
>>> I haven't been keeping up with what's going on in T4, alas.
>>>
>>>  This would imply that you must load/scan all pages at application
>>>  startup?  Otherwise, how could you know which aliases exist for which
>>>  pages?  This is something I've been trying to avoid for T5, as it will
>>>  ultimately get in the way of synthetic pages (that I have planned for
>>>  more Trails-like functionality in tapestry-hibernate).
>>>
>>>
>>>  On Wed, Jun 25, 2008 at 7:16 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote:
>>>  > I'd really like to suggest an approach similar to the UriTemplate 
>>> annotation for
>>>  > T4 pages that's included in tacos...
>>>  >
>>>  > See 
>>> http://fisheye3.atlassian.com/browse/tacos/tacos-4.1/trunk/tacos-annotations/src/java/net/sf/tacos/rest
>>>  >
>>>  > It even supports aliases, so, no worries if you decide to change names
>>>  > and still want to old bookmarks - just use:
>>>  >
>>>  > @UriTemplate(value="index", alias = {"home", "default"})
>>>  > public class Home { ... }
>>>  >
>>>  >
>>>  > On 6/25/08, Lutz Hühnken <[EMAIL PROTECTED]> wrote:
>>>  >> Shouldn't that be up to the developer (or whoever decides on the
>>>  >>  URLs)? If you don't want the page suffix, why not just name the page
>>>  >>  "Blogger" instead of "BloggerPage"? What if I wanted a url that reads
>>>  >>  "mypage"? Would I have to name the page "MyPagePage"? I'm all for
>>>  >>  convention over configuration, but here I feel some arbitrary rule
>>>  >>  would be unnecessarily imposed on the developer.
>>>  >>
>>>  >>  Just my two cents,
>>>  >>
>>>  >>
>>>  >>  Lutz
>>>  >>
>>>  >>
>>>  >>  -
>>>  >>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>  >>  For additional commands, e-mail: [EMAIL PROTECTED]
>>>  >>
>>>  >>
>>>  >
>>>  >
>>>  > --
>>>  > Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
>>>  > Tapestry / Tacos developer
>>>  > Open Source / JEE Consulting
>>>  >
>>>  > -
>>>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>  > For additional commands, e-mail: [EMAIL PROTECTED]
>>>  >
>>>  >
>>>
>>>
>>>
>>>  --
>>>
>>> Howard M. Lewis Ship
>>>
>>>  Creator Apache Tapestry and Apache HiveMind
>>>
>>>  -
>>>
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>> --
>> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
>> Tapestry / Tacos developer
>> Open Source / JEE Consulting
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> -
> 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: Igor´s and Renat´s Presentation of Tapestry 5 yesterday evening in Düsseldorf

2008-06-25 Thread Howard Lewis Ship
Looks very nice; I liked the user of "Tapestry Green", etc.  Looks
like you covered some nice stuff.

On Wed, Jun 25, 2008 at 1:12 PM, Renat Zubairov
<[EMAIL PROTECTED]> wrote:
> Thanks Nils!
>
> I've just put our slides online and since they were written in English
> everyone may also have a look inside :)
>
> Indeed, we skipped allot of interesting staff, e.g. Tapestry IOC, Testing, 
> etc.
> On the day before presentation we reduced the slideset from 65 to 35 slides.
> (basically we just moved the last "Questions" slide in the middle so
> you still will be able to see them)
>
> I've published PDF on the google-code project of the
> Tapestry4Nontbelievers article here:
>
> http://code.google.com/p/tapestry4nonbelievers/downloads/detail?name=Tapestry%205.pdf
>
> Photos will be online soon.
>
> BR
> Renat
>
> 2008/6/25 nille hammer <[EMAIL PROTECTED]>:
>>
>> Hi all,
>>
>> I wanted to know whether anyone else from this list had the opportunity to 
>> be in Düsseldorf yesterday.
>>
>> Igor and Renat did a really good job showing how quickly and easily you get 
>> an application running with Tapestry 5. They have been given a hard time by 
>> the audience asking loads of questions. They have passed that with flying 
>> colours (I looked this up in a dictionary). They have left no question 
>> unanswered (well, maybe one or two ;-) ).
>>
>> The only downside (as often with this kind of events) was the lack of time. 
>> A lot of topics had to be left uncovered. And could not  be covered either 
>> in the session after the presentation. I personally would like them to 
>> follow up with events focussing on particular topics like Tapestry-IOC or 
>> the Contribution concept. Especially the latter one still is a bit obscure 
>> to me.
>>
>> All in all I enjoyed the opportunity to meet some fellows from this list and 
>> even some open source celebrities personally. And free beer is allways a 
>> bonus. I hope to see some photos online soon. You guys get a vote +1 
>> (non-binding) from me!
>>
>> Regards nillehammer
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> --
> Best regards,
> Renat Zubairov
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: [T5] Return HTTP Error from AJAX Call

2008-06-25 Thread Thiago H. de Paula Figueiredo
Em Wed, 25 Jun 2008 18:01:53 -0300, Dave Dombrosky <[EMAIL PROTECTED]>  
escreveu:



I would like to return an HTTP error from an AJAX call, so that it
will be interpreted as a failed request by my response handlers.  Is
there any way to bypass Tapestry's ExceptionReport and instead have an
Exception bubble up to Tomcat (so that a 500 Error is generated)?


In addition, how could I bypass an AJAX request and force a traditional  
request? I tried to simply return null or "this" in the event handler  
method, but it is handled as an AJAX request.


Thiago

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



[T5] Return HTTP Error from AJAX Call

2008-06-25 Thread Dave Dombrosky
I would like to return an HTTP error from an AJAX call, so that it
will be interpreted as a failed request by my response handlers.  Is
there any way to bypass Tapestry's ExceptionReport and instead have an
Exception bubble up to Tomcat (so that a 500 Error is generated)?

-Dave

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



Re: Igor´s and Renat´s Presentation of Tapestry 5 yesterday evening in Düsseldorf

2008-06-25 Thread Renat Zubairov
Thanks Nils!

I've just put our slides online and since they were written in English
everyone may also have a look inside :)

Indeed, we skipped allot of interesting staff, e.g. Tapestry IOC, Testing, etc.
On the day before presentation we reduced the slideset from 65 to 35 slides.
(basically we just moved the last "Questions" slide in the middle so
you still will be able to see them)

I've published PDF on the google-code project of the
Tapestry4Nontbelievers article here:

http://code.google.com/p/tapestry4nonbelievers/downloads/detail?name=Tapestry%205.pdf

Photos will be online soon.

BR
Renat

2008/6/25 nille hammer <[EMAIL PROTECTED]>:
>
> Hi all,
>
> I wanted to know whether anyone else from this list had the opportunity to be 
> in Düsseldorf yesterday.
>
> Igor and Renat did a really good job showing how quickly and easily you get 
> an application running with Tapestry 5. They have been given a hard time by 
> the audience asking loads of questions. They have passed that with flying 
> colours (I looked this up in a dictionary). They have left no question 
> unanswered (well, maybe one or two ;-) ).
>
> The only downside (as often with this kind of events) was the lack of time. A 
> lot of topics had to be left uncovered. And could not  be covered either in 
> the session after the presentation. I personally would like them to follow up 
> with events focussing on particular topics like Tapestry-IOC or the 
> Contribution concept. Especially the latter one still is a bit obscure to me.
>
> All in all I enjoyed the opportunity to meet some fellows from this list and 
> even some open source celebrities personally. And free beer is allways a 
> bonus. I hope to see some photos online soon. You guys get a vote +1 
> (non-binding) from me!
>
> Regards nillehammer
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Best regards,
Renat Zubairov


Re: New website using T5: www.ingamenow.com

2008-06-25 Thread Daniel Leffel
We're using Continuum to do continuous builds. Gave the designer access to
that too and when he wants to see his changes, he commits and kicks off a
manual build. Pretty cool.

On Wed, Jun 25, 2008 at 11:17 AM, Howard Lewis Ship <[EMAIL PROTECTED]>
wrote:

> That's cool about your HTML designer; I always picture it as a pair
> programming deal, with the coder running the app so that the designer
> can view changes.
>
> On Wed, Jun 25, 2008 at 11:03 AM, Daniel Leffel <[EMAIL PROTECTED]>
> wrote:
> > Hi Howard,
> > Absolutely happy to share.
> >
> > We're running .12 because .13 happened too close to the release and we
> > didn't want to introduce any more changes. We're planning on moving to
> .13
> > at the next release.
> >
> > There are 27 pages on the site, although the bulk of the functionality
> > exists on about 12 of them. The site is heavily componentized though -
> there
> > are 19 components we created and reuse throughout the site. Making heavy
> use
> > of components has really aided in the build and iterate cycle because of
> the
> > way that we isolated functionality within them - many of the pages are
> > nothing more than containers for lots of independent components.
> >
> > There were 3 developers on the project working part time over the past 4
> > months. Much of that effort was in building back-end services, aim/gtalk
> > integration and statistics computation. I'd estimate that around 30% of
> the
> > effort was on the front-end and I regard that as a credit to T5 more than
> > the complexity of the back-end.
> >
> > One fantastic point to make (which isn't unique to T5 but Tapestry more
> > over) is the fact that for our HTML/CSS developer, we actually were able
> to
> > give him SVN access and he, without Java experience (much less Tapestry),
> > was able to make pretty large modification to page and component layouts.
> > That was awesome to not have to bother Java developers with!
> >
> > Danny
> >
> >
> > On Wed, Jun 25, 2008 at 10:47 AM, Howard Lewis Ship <[EMAIL PROTECTED]>
> > wrote:
> >
> >> I'd love it if you could share some details about it, such as number
> >> of pages, number of developers, and size of developer effort.
> >>
> >> Looks like you are on .12-SNAPSHOT.  Plans to upgrade to .13?
> >>
> >> On Wed, Jun 25, 2008 at 10:31 AM, Daniel Leffel <
> [EMAIL PROTECTED]>
> >> wrote:
> >> > Guys,
> >> > I just wanted to pass along a site that we've just launched:
> >> > www.ingamenow.com. The site is best described as Twitter for sports
> and
> >> > sporting events. Users can interact over teams, players and games -
> most
> >> > notable, they can receive real-time scores and banter through Gtalk,
> AOL
> >> > Instant Messenger and email.
> >> >
> >> > The front-end is Tapestry 5 making use of a few of the AJAX features.
> I
> >> > believe strongly that using T5 sped the development immensely and all
> >> > members of the teams are converts now.
> >> >
> >> > The rest of the architecture is Spring + Hibernate.
> >> >
> >> > Thanks to Howard and everyone who has helped make Tapestry what it is
> >> today!
> >> >
> >> > Danny
> >> >
> >>
> >>
> >>
> >> --
> >> Howard M. Lewis Ship
> >>
> >> Creator Apache Tapestry and Apache HiveMind
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: New website using T5: www.ingamenow.com

2008-06-25 Thread Howard Lewis Ship
That's cool about your HTML designer; I always picture it as a pair
programming deal, with the coder running the app so that the designer
can view changes.

On Wed, Jun 25, 2008 at 11:03 AM, Daniel Leffel <[EMAIL PROTECTED]> wrote:
> Hi Howard,
> Absolutely happy to share.
>
> We're running .12 because .13 happened too close to the release and we
> didn't want to introduce any more changes. We're planning on moving to .13
> at the next release.
>
> There are 27 pages on the site, although the bulk of the functionality
> exists on about 12 of them. The site is heavily componentized though - there
> are 19 components we created and reuse throughout the site. Making heavy use
> of components has really aided in the build and iterate cycle because of the
> way that we isolated functionality within them - many of the pages are
> nothing more than containers for lots of independent components.
>
> There were 3 developers on the project working part time over the past 4
> months. Much of that effort was in building back-end services, aim/gtalk
> integration and statistics computation. I'd estimate that around 30% of the
> effort was on the front-end and I regard that as a credit to T5 more than
> the complexity of the back-end.
>
> One fantastic point to make (which isn't unique to T5 but Tapestry more
> over) is the fact that for our HTML/CSS developer, we actually were able to
> give him SVN access and he, without Java experience (much less Tapestry),
> was able to make pretty large modification to page and component layouts.
> That was awesome to not have to bother Java developers with!
>
> Danny
>
>
> On Wed, Jun 25, 2008 at 10:47 AM, Howard Lewis Ship <[EMAIL PROTECTED]>
> wrote:
>
>> I'd love it if you could share some details about it, such as number
>> of pages, number of developers, and size of developer effort.
>>
>> Looks like you are on .12-SNAPSHOT.  Plans to upgrade to .13?
>>
>> On Wed, Jun 25, 2008 at 10:31 AM, Daniel Leffel <[EMAIL PROTECTED]>
>> wrote:
>> > Guys,
>> > I just wanted to pass along a site that we've just launched:
>> > www.ingamenow.com. The site is best described as Twitter for sports and
>> > sporting events. Users can interact over teams, players and games - most
>> > notable, they can receive real-time scores and banter through Gtalk, AOL
>> > Instant Messenger and email.
>> >
>> > The front-end is Tapestry 5 making use of a few of the AJAX features. I
>> > believe strongly that using T5 sped the development immensely and all
>> > members of the teams are converts now.
>> >
>> > The rest of the architecture is Spring + Hibernate.
>> >
>> > Thanks to Howard and everyone who has helped make Tapestry what it is
>> today!
>> >
>> > Danny
>> >
>>
>>
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator Apache Tapestry and Apache HiveMind
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: What if "Page" was removed from page names?

2008-06-25 Thread Howard Lewis Ship
Eventually, I want tapestry-hibernate to hook in to thing such that,
if you don't define a page named "edit/blog" (for entity Blog), it
provides one for you. Ditto for "add/blog", 'view/blog" and
"search/blog".  But that's for 5.1 or beyond.

On Wed, Jun 25, 2008 at 10:53 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote:
> Yep, uses a tiny annotation scanner lib that only scans
> WEB-INF/classes (by default) at app startup time.
>
> Can't really tell how this messes up with synthetic pages
> cause i don't quite know what you have in mind... in our
> current T4 project, we've been using synthetic components
> though which (i believe) is an equally powerful concept and
> has the benefit of not messing with page names.
>
> On 6/25/08, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
>> I haven't been keeping up with what's going on in T4, alas.
>>
>>  This would imply that you must load/scan all pages at application
>>  startup?  Otherwise, how could you know which aliases exist for which
>>  pages?  This is something I've been trying to avoid for T5, as it will
>>  ultimately get in the way of synthetic pages (that I have planned for
>>  more Trails-like functionality in tapestry-hibernate).
>>
>>
>>  On Wed, Jun 25, 2008 at 7:16 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote:
>>  > I'd really like to suggest an approach similar to the UriTemplate 
>> annotation for
>>  > T4 pages that's included in tacos...
>>  >
>>  > See 
>> http://fisheye3.atlassian.com/browse/tacos/tacos-4.1/trunk/tacos-annotations/src/java/net/sf/tacos/rest
>>  >
>>  > It even supports aliases, so, no worries if you decide to change names
>>  > and still want to old bookmarks - just use:
>>  >
>>  > @UriTemplate(value="index", alias = {"home", "default"})
>>  > public class Home { ... }
>>  >
>>  >
>>  > On 6/25/08, Lutz Hühnken <[EMAIL PROTECTED]> wrote:
>>  >> Shouldn't that be up to the developer (or whoever decides on the
>>  >>  URLs)? If you don't want the page suffix, why not just name the page
>>  >>  "Blogger" instead of "BloggerPage"? What if I wanted a url that reads
>>  >>  "mypage"? Would I have to name the page "MyPagePage"? I'm all for
>>  >>  convention over configuration, but here I feel some arbitrary rule
>>  >>  would be unnecessarily imposed on the developer.
>>  >>
>>  >>  Just my two cents,
>>  >>
>>  >>
>>  >>  Lutz
>>  >>
>>  >>
>>  >>  -
>>  >>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  >>  For additional commands, e-mail: [EMAIL PROTECTED]
>>  >>
>>  >>
>>  >
>>  >
>>  > --
>>  > Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
>>  > Tapestry / Tacos developer
>>  > Open Source / JEE Consulting
>>  >
>>  > -
>>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  > For additional commands, e-mail: [EMAIL PROTECTED]
>>  >
>>  >
>>
>>
>>
>>  --
>>
>> Howard M. Lewis Ship
>>
>>  Creator Apache Tapestry and Apache HiveMind
>>
>>  -
>>
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: New website using T5: www.ingamenow.com

2008-06-25 Thread Daniel Leffel
Hi Howard,
Absolutely happy to share.

We're running .12 because .13 happened too close to the release and we
didn't want to introduce any more changes. We're planning on moving to .13
at the next release.

There are 27 pages on the site, although the bulk of the functionality
exists on about 12 of them. The site is heavily componentized though - there
are 19 components we created and reuse throughout the site. Making heavy use
of components has really aided in the build and iterate cycle because of the
way that we isolated functionality within them - many of the pages are
nothing more than containers for lots of independent components.

There were 3 developers on the project working part time over the past 4
months. Much of that effort was in building back-end services, aim/gtalk
integration and statistics computation. I'd estimate that around 30% of the
effort was on the front-end and I regard that as a credit to T5 more than
the complexity of the back-end.

One fantastic point to make (which isn't unique to T5 but Tapestry more
over) is the fact that for our HTML/CSS developer, we actually were able to
give him SVN access and he, without Java experience (much less Tapestry),
was able to make pretty large modification to page and component layouts.
That was awesome to not have to bother Java developers with!

Danny


On Wed, Jun 25, 2008 at 10:47 AM, Howard Lewis Ship <[EMAIL PROTECTED]>
wrote:

> I'd love it if you could share some details about it, such as number
> of pages, number of developers, and size of developer effort.
>
> Looks like you are on .12-SNAPSHOT.  Plans to upgrade to .13?
>
> On Wed, Jun 25, 2008 at 10:31 AM, Daniel Leffel <[EMAIL PROTECTED]>
> wrote:
> > Guys,
> > I just wanted to pass along a site that we've just launched:
> > www.ingamenow.com. The site is best described as Twitter for sports and
> > sporting events. Users can interact over teams, players and games - most
> > notable, they can receive real-time scores and banter through Gtalk, AOL
> > Instant Messenger and email.
> >
> > The front-end is Tapestry 5 making use of a few of the AJAX features. I
> > believe strongly that using T5 sped the development immensely and all
> > members of the teams are converts now.
> >
> > The rest of the architecture is Spring + Hibernate.
> >
> > Thanks to Howard and everyone who has helped make Tapestry what it is
> today!
> >
> > Danny
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Select model issue

2008-06-25 Thread José Paumard
Thank you Ulrich, you put me on the right track to solve the problem. 
Here is what I did precisely, just for the ones who'd need it.


In fact EnumSelectModel is final, so you cant extend it, but it's easy 
to build one, and T5 does all the work behind, esp. finding the right 
labels :


EnumSelectModel esm = new EnumSelectModel(BaseType.class, messages) ; // 
messages is injected by T5 IoC


then the options with the right labels can be accessed with :

esm.getOptions()

and the base types you dont want can easily be removed from this list.

José


Ulrich Stärk a écrit :


getValidBaseTypes has to return an Object which implements 
org.apache.tapestry5.SelectModel. If you want to filter out some enum 
values that shouldn't be displayed you could extend EnumSelectModel 
and overwrite the getOptions() method. In your own implementation make 
a call to the super class' getOptions() and remove the desired 
elements from the list returned.

This just comes to my mind, there might be a more elegant method.

Uli

José Paumard schrieb:

Hello all,

My TML is the following :



The baseType property is of type BaseType, an enum with several 
values in it. When I declare theses values in the associated 
properties file, to make them readable, everything works fine.


Now if I declare my select like that :

model="prop:validbasetypes"/>


The getValidBaseTypes returns an array of some BaseType values. 
Without changing my properties file, I expect to see a subset of the 
BaseType values in the drop down list (it is the case), in the same 
human-readable form. This last point doesnt work, they are not 
converted, I have the raw values in the drop down list.


Has anyone saw the same thing ? Is it supposed to work like that, or 
is it a bug ?


Thank you,

José



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




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






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



Re: What if "Page" was removed from page names?

2008-06-25 Thread Andreas Andreou
Yep, uses a tiny annotation scanner lib that only scans
WEB-INF/classes (by default) at app startup time.

Can't really tell how this messes up with synthetic pages
cause i don't quite know what you have in mind... in our
current T4 project, we've been using synthetic components
though which (i believe) is an equally powerful concept and
has the benefit of not messing with page names.

On 6/25/08, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> I haven't been keeping up with what's going on in T4, alas.
>
>  This would imply that you must load/scan all pages at application
>  startup?  Otherwise, how could you know which aliases exist for which
>  pages?  This is something I've been trying to avoid for T5, as it will
>  ultimately get in the way of synthetic pages (that I have planned for
>  more Trails-like functionality in tapestry-hibernate).
>
>
>  On Wed, Jun 25, 2008 at 7:16 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote:
>  > I'd really like to suggest an approach similar to the UriTemplate 
> annotation for
>  > T4 pages that's included in tacos...
>  >
>  > See 
> http://fisheye3.atlassian.com/browse/tacos/tacos-4.1/trunk/tacos-annotations/src/java/net/sf/tacos/rest
>  >
>  > It even supports aliases, so, no worries if you decide to change names
>  > and still want to old bookmarks - just use:
>  >
>  > @UriTemplate(value="index", alias = {"home", "default"})
>  > public class Home { ... }
>  >
>  >
>  > On 6/25/08, Lutz Hühnken <[EMAIL PROTECTED]> wrote:
>  >> Shouldn't that be up to the developer (or whoever decides on the
>  >>  URLs)? If you don't want the page suffix, why not just name the page
>  >>  "Blogger" instead of "BloggerPage"? What if I wanted a url that reads
>  >>  "mypage"? Would I have to name the page "MyPagePage"? I'm all for
>  >>  convention over configuration, but here I feel some arbitrary rule
>  >>  would be unnecessarily imposed on the developer.
>  >>
>  >>  Just my two cents,
>  >>
>  >>
>  >>  Lutz
>  >>
>  >>
>  >>  -
>  >>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >>  For additional commands, e-mail: [EMAIL PROTECTED]
>  >>
>  >>
>  >
>  >
>  > --
>  > Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
>  > Tapestry / Tacos developer
>  > Open Source / JEE Consulting
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>
>
>  --
>
> Howard M. Lewis Ship
>
>  Creator Apache Tapestry and Apache HiveMind
>
>  -
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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



How to have localized translators

2008-06-25 Thread Ulrich Stärk

Hi List,

I'd like my users to be able to input data in their respective locale. 
For example in most european countries you use the ',' to seperate the 
decimal places from the integer part of a number.
For a quick workaround I'm using a patched version of Tapestry wich adds 
 a Locale parameter to Translator's parseClient and toClient methods, 
but I don't want to apply this patch to every release of Tapestry.
One solution could be to write my own translators that have a setter for 
the current user's locale and instantiate them on every page where they 
are needed but this feels kind of cumbersome to me especially if you 
want to use BeanEditForm to edit some entity whith fields that should 
accept localized valus. In that case I also have to do a lot of changes 
to my templates in order to tell BeanEditForm to use my own translators 
instead of Tapestry's own.

How do you solve that?

Uli

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



Re: New website using T5: www.ingamenow.com

2008-06-25 Thread Howard Lewis Ship
I'd love it if you could share some details about it, such as number
of pages, number of developers, and size of developer effort.

Looks like you are on .12-SNAPSHOT.  Plans to upgrade to .13?

On Wed, Jun 25, 2008 at 10:31 AM, Daniel Leffel <[EMAIL PROTECTED]> wrote:
> Guys,
> I just wanted to pass along a site that we've just launched:
> www.ingamenow.com. The site is best described as Twitter for sports and
> sporting events. Users can interact over teams, players and games - most
> notable, they can receive real-time scores and banter through Gtalk, AOL
> Instant Messenger and email.
>
> The front-end is Tapestry 5 making use of a few of the AJAX features. I
> believe strongly that using T5 sped the development immensely and all
> members of the teams are converts now.
>
> The rest of the architecture is Spring + Hibernate.
>
> Thanks to Howard and everyone who has helped make Tapestry what it is today!
>
> Danny
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: Select model issue

2008-06-25 Thread Ulrich Stärk
getValidBaseTypes has to return an Object which implements 
org.apache.tapestry5.SelectModel. If you want to filter out some enum 
values that shouldn't be displayed you could extend EnumSelectModel and 
overwrite the getOptions() method. In your own implementation make a 
call to the super class' getOptions() and remove the desired elements 
from the list returned.

This just comes to my mind, there might be a more elegant method.

Uli

José Paumard schrieb:

Hello all,

My TML is the following :



The baseType property is of type BaseType, an enum with several values 
in it. When I declare theses values in the associated properties file, 
to make them readable, everything works fine.


Now if I declare my select like that :



The getValidBaseTypes returns an array of some BaseType values. Without 
changing my properties file, I expect to see a subset of the BaseType 
values in the drop down list (it is the case), in the same 
human-readable form. This last point doesnt work, they are not 
converted, I have the raw values in the drop down list.


Has anyone saw the same thing ? Is it supposed to work like that, or is 
it a bug ?


Thank you,

José



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



New website using T5: www.ingamenow.com

2008-06-25 Thread Daniel Leffel
Guys,
I just wanted to pass along a site that we've just launched:
www.ingamenow.com. The site is best described as Twitter for sports and
sporting events. Users can interact over teams, players and games - most
notable, they can receive real-time scores and banter through Gtalk, AOL
Instant Messenger and email.

The front-end is Tapestry 5 making use of a few of the AJAX features. I
believe strongly that using T5 sped the development immensely and all
members of the teams are converts now.

The rest of the architecture is Spring + Hibernate.

Thanks to Howard and everyone who has helped make Tapestry what it is today!

Danny


Re: What if "Page" was removed from page names?

2008-06-25 Thread Howard Lewis Ship
I have a slightly clumsy way of accomplishing what I want today,
without changing the framework.

Instead of creating BlogPage, I create class blog.BlogIndex and
blog/BlogIndex.tml.  I can then refer to this page as "blog/index" and
it appears as "/blog" in URLs, which is what I want.

On Wed, Jun 25, 2008 at 9:56 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> I haven't been keeping up with what's going on in T4, alas.
>
> This would imply that you must load/scan all pages at application
> startup?  Otherwise, how could you know which aliases exist for which
> pages?  This is something I've been trying to avoid for T5, as it will
> ultimately get in the way of synthetic pages (that I have planned for
> more Trails-like functionality in tapestry-hibernate).
>
> On Wed, Jun 25, 2008 at 7:16 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote:
>> I'd really like to suggest an approach similar to the UriTemplate annotation 
>> for
>> T4 pages that's included in tacos...
>>
>> See 
>> http://fisheye3.atlassian.com/browse/tacos/tacos-4.1/trunk/tacos-annotations/src/java/net/sf/tacos/rest
>>
>> It even supports aliases, so, no worries if you decide to change names
>> and still want to old bookmarks - just use:
>>
>> @UriTemplate(value="index", alias = {"home", "default"})
>> public class Home { ... }
>>
>>
>> On 6/25/08, Lutz Hühnken <[EMAIL PROTECTED]> wrote:
>>> Shouldn't that be up to the developer (or whoever decides on the
>>>  URLs)? If you don't want the page suffix, why not just name the page
>>>  "Blogger" instead of "BloggerPage"? What if I wanted a url that reads
>>>  "mypage"? Would I have to name the page "MyPagePage"? I'm all for
>>>  convention over configuration, but here I feel some arbitrary rule
>>>  would be unnecessarily imposed on the developer.
>>>
>>>  Just my two cents,
>>>
>>>
>>>  Lutz
>>>
>>>
>>>  -
>>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>> --
>> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
>> Tapestry / Tacos developer
>> Open Source / JEE Consulting
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: What if "Page" was removed from page names?

2008-06-25 Thread Howard Lewis Ship
I haven't been keeping up with what's going on in T4, alas.

This would imply that you must load/scan all pages at application
startup?  Otherwise, how could you know which aliases exist for which
pages?  This is something I've been trying to avoid for T5, as it will
ultimately get in the way of synthetic pages (that I have planned for
more Trails-like functionality in tapestry-hibernate).

On Wed, Jun 25, 2008 at 7:16 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote:
> I'd really like to suggest an approach similar to the UriTemplate annotation 
> for
> T4 pages that's included in tacos...
>
> See 
> http://fisheye3.atlassian.com/browse/tacos/tacos-4.1/trunk/tacos-annotations/src/java/net/sf/tacos/rest
>
> It even supports aliases, so, no worries if you decide to change names
> and still want to old bookmarks - just use:
>
> @UriTemplate(value="index", alias = {"home", "default"})
> public class Home { ... }
>
>
> On 6/25/08, Lutz Hühnken <[EMAIL PROTECTED]> wrote:
>> Shouldn't that be up to the developer (or whoever decides on the
>>  URLs)? If you don't want the page suffix, why not just name the page
>>  "Blogger" instead of "BloggerPage"? What if I wanted a url that reads
>>  "mypage"? Would I have to name the page "MyPagePage"? I'm all for
>>  convention over configuration, but here I feel some arbitrary rule
>>  would be unnecessarily imposed on the developer.
>>
>>  Just my two cents,
>>
>>
>>  Lutz
>>
>>
>>  -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Select model issue

2008-06-25 Thread José Paumard

Hello all,

My TML is the following :



The baseType property is of type BaseType, an enum with several values 
in it. When I declare theses values in the associated properties file, 
to make them readable, everything works fine.


Now if I declare my select like that :



The getValidBaseTypes returns an array of some BaseType values. Without 
changing my properties file, I expect to see a subset of the BaseType 
values in the drop down list (it is the case), in the same 
human-readable form. This last point doesnt work, they are not 
converted, I have the raw values in the drop down list.


Has anyone saw the same thing ? Is it supposed to work like that, or is 
it a bug ?


Thank you,

José



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



AW: What if "Page" was removed from page names?

2008-06-25 Thread Maximilian Weißböck
+1 for this

keep it simple and clear!

Max


-Ursprüngliche Nachricht-
Von: Don Ryan [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 25. Juni 2008 13:08
An: Tapestry users
Betreff: Re: What if "Page" was removed from page names?


On 25 Jun 2008, at 01:12, Filip S. Adamsen wrote:

> As long as it's configurable, I'm fine with it. :)

Except you lose some of the intrinsic simplicity of convention over  
configuration when you decide to offer both. Note that, depending on  
how it's implemented, this change need not break any existing  
Tapestry 5 applications. If the page class has a -Page suffix, then  
Tapestry would map to that. (You might have to throw an exception if  
Foo and FooPage both existed under the pages package hierarchy.)

On the naming issue itself, I think it would be a positive  
development. I think the historical convention of using entity-like  
names for pages is a regrettable fuzziness. I've shown Tapestry to  
some undergraduate students and a common beginner's mistake is to put  
code in a page class that really belongs in an entity class. The  
naming didn't help there. I'm sure something similar would apply with  
junior developers in a software house. There's very little point in  
making the hurdles any higher for people learning their craft.

To really set the cat amongst the pigeons (and infuriate the  
keystroke tax collectors), I think a similar mapping of a -Component  
suffix would be good for components (again optional). Although it's  
unfortunately a longer suffix, the conceptual clarity would probably  
be worth it. (Why refer to something as, say, an "account component"  
when discussing it but refuse to actually call it that. Because it's  
too long?)

Lastly, I don't think I would go along with Hugo's idea of list of  
optional suffixes. I can't imagine any sensible suffix for pages and  
components other than -Page and -Component. (Although that could just  
be my limited imagination.) :-)

Don.
This message has been scanned for content and viruses by the DIT Information 
Services E-Mail Scanning Service, and is believed to be clean. http://www.dit.ie

-
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: [T5] Grid paging refresh the whole document , can it be done in AJAX-way ?

2008-06-25 Thread nille hammer

Hi CG,

the inPlace attribute of the t:grid tag does what you are asking for. For 
further infos look here: 
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html

Cheers nillehammer

- original Nachricht 

Betreff: [T5] Grid paging refresh the whole document , can it be done in 
AJAX-way ?
Gesendet: Mi, 25. Jun 2008
Von: CG<[EMAIL PROTECTED]>

> The T5 Grid compoment come with paging functionality , however,
> whenever a click on the pager component , it will refresh the whole
> page(document) instead of the grid area.
> 
> I wonder can it only refresh the Grid body rather than refresh the
> whole page , maybe using  and  ?
> 
> Or any way we can override the existing function to archive that ?
> 
> Thanks.
> 
> CG
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

--- original Nachricht Ende 


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



[T5] Grid paging refresh the whole document , can it be done in AJAX-way ?

2008-06-25 Thread CG
The T5 Grid compoment come with paging functionality , however,
whenever a click on the pager component , it will refresh the whole
page(document) instead of the grid area.

I wonder can it only refresh the Grid body rather than refresh the
whole page , maybe using  and  ?

Or any way we can override the existing function to archive that ?

Thanks.

CG

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



Igor´s and Renat´s Presentation of Tapestry 5 yesterday evening in Düsseldorf

2008-06-25 Thread nille hammer
 
Hi all,

I wanted to know whether anyone else from this list had the opportunity to be 
in Düsseldorf yesterday.

Igor and Renat did a really good job showing how quickly and easily you get an 
application running with Tapestry 5. They have been given a hard time by the 
audience asking loads of questions. They have passed that with flying colours 
(I looked this up in a dictionary). They have left no question unanswered 
(well, maybe one or two ;-) ).

The only downside (as often with this kind of events) was the lack of time. A 
lot of topics had to be left uncovered. And could not  be covered either in the 
session after the presentation. I personally would like them to follow up with 
events focussing on particular topics like Tapestry-IOC or the Contribution 
concept. Especially the latter one still is a bit obscure to me.

All in all I enjoyed the opportunity to meet some fellows from this list and 
even some open source celebrities personally. And free beer is allways a bonus. 
I hope to see some photos online soon. You guys get a vote +1 (non-binding) 
from me!

Regards nillehammer

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



Re: T5: ActionLink/Zone components inside a loop (solved, better)

2008-06-25 Thread grashopper


Corin Lawson wrote:
> 
> But it gave me another idea to free my code from getCurrentZoneId method.
> I am now significantly satisfied with the following solution. It makes for
> one very lean POJO.
> 

But in cases like mine, where the zone comes after the links in the markup
(which should be a quite common case) - the problem sadly remains, since the
name of the zone can't be determined before rendering it :-(
-- 
View this message in context: 
http://www.nabble.com/T5%3A-ActionLink-Zone-components-inside-a-loop-tp15374193p18115824.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: t5: Returning block works in Firefox but not in IE

2008-06-25 Thread Lance Java
Yep, that's what I meant

2008/6/25 9902468 <[EMAIL PROTECTED]>:

>
> Better yet:
>
> Tapestry could be so smart that it would return null even if the handler
> returns block if the request is not ajax.
>
> if(return_value == block && is_not_xhdr){
>block = null;
> }
>
> That wouldn't break anything?
>
>  -99
>
>
> Lance Java wrote:
> >
> > Could returning null be built in as default behaviour? Since returning a
> > block from a non-xhr request is an error case, it would save putting
> > checks
> > throughout the code and I can't see it breaking anything.
> >
> > Cheers,
> > Lance.
> >
> > 2008/6/24 Howard Lewis Ship <[EMAIL PROTECTED]>:
> >
> >> For full graceful degradation, you can inject the Request object can
> >> check its isXHR() method, then decide on an appropriate return value
> >> (typically, a Block or null).
> >>
> >> On Tue, Jun 24, 2008 at 9:24 AM, Lance Java <[EMAIL PROTECTED]>
> >> wrote:
> >> > I have solved the issue, I think I understand what was going wrong.
> >> > - Tapestry first draws action links as hrefs which cause a page reload
> >> for
> >> > graceful degredation
> >> > - Tapestry javascript magic then goes over all ajax action links and
> >> changes
> >> > them to javascript method calls
> >> > - I had a javascript error which stopped the tapestry javascript magic
> >> from
> >> > hapening, thus I was seeing the graceful degredation, thus no XHR's
> >> >
> >> > Cheers,
> >> > Lance.
> >> >
> >> > 2008/6/24 Francisco Manzano <[EMAIL PROTECTED]>:
> >> >
> >> >> Hi, I am inexperienced in Tapestry, but I had east problem recently:
> >> >> You have like result a valid xhtml page? You can look for if you have
> >> >> "scripts of tapestry" inserted at the end of the page.
> >> >> something  like this  :
> >> >> ...
> >> >>  >> >> type="text/javascript">
> >> >>  >> >> type="text/javascript">
> >> >>  >> >> type="text/javascript">
> >> >>  >> >> type="text/javascript">
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >>
> >> >> If these scripts are not, you can have this problem., and you can
> >> solve
> >> it
> >> >> obtaining a valid xhtml like result.
> >> >>
> >> >> I hope can help you
> >> >>
> >> >> &
> >> >> DiPegotDeis
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> Lance Java wrote:
> >> >>
> >> >>> I have an actionlink that returns a block and populates a zone in my
> >> page
> >> >>>
> >> >>> FundGraph.tml
> >> >>>   edit
> >> >>>
> >> >>>   ...
> >> >>>
> >> >>>   
> >> >>>   
> >> >>>
> >> >>>
> >> >>> FundGraph.java
> >> >>>@Inject
> >> >>>private Block editorBlock;
> >> >>>
> >> >>>@OnEvent(value="action", component="edit")
> >> >>>protected Object onActionFromEdit() {
> >> >>>return editorBlock;
> >> >>>}
> >> >>>
> >> >>> In Firefox, this works fine. In IE, I get the following error:
> >> >>> A component event handler method returned the value
> >> >>> [EMAIL PROTECTED] Return
> type
> >> >>> org.apache.tapestry5.internal.structure.BlockImpl can not be
> handled.
> >> >>> Configured return types are java.lang.Class, java.lang.String,
> >> >>> java.net.URL,
> >> >>> org.apache.tapestry5.Link, org.apache.tapestry5.StreamResponse,
> >> >>> org.apache.tapestry5.runtime.Component.
> >> >>>
> >> >>> I have looked at previous posts on this list and it seems that this
> >> is
> >> >>> because request.isXHR() is false. What can I do to fix this in IE? I
> >> >>> thought
> >> >>> that XHR should be true in this case?
> >> >>>
> >> >>> I am using tapestry 5.0.13 and IE 6.0
> >> >>>
> >> >>> Full stack trace:
> >> >>> %d 192408 ERROR
> >> >>>
> >> [org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler]
> >> >>> (http-127.0.0.1-8080-2:) Processing of request failed with uncaught
> >> >>> exception: A component event handler method returned the value
> >> >>> [EMAIL PROTECTED] Return
> type
> >> >>> org.apache.tapestry5.internal.structure.BlockImpl can not be
> >> >>> handled.  Configured return types are java.lang.Class,
> >> java.lang.String,
> >> >>> java.net.URL, org.apache.tapestry5.Link,
> >> >>> org.apache.tapestry5.StreamResponse,
> >> >>> org.apache.tapestry5.runtime.Component.
> >> >>> org.apache.tapestry5.runtime.ComponentEventException: A component
> >> event
> >> >>> handler method returned the value
> >> >>> [EMAIL PROTECTED] Return
> type
> >> >>> org.apache.tapestry5.internal.structure.BlockImpl can not be
> >> >>> handled.  Configured return types are java.lang.Class,
> >> java.lang.String,
> >> >>> java.net.URL, org.apache.tapestry5.Link,
> >> >>> org.apache.tapestry5.StreamResponse,
> >> >>> org.apache.tapestry5.runtime.Component.
> >> >>> [at
> >> >>>
> >> classpath:com/bglobal/isharesnet/tapestry/components/fund/FundGraph.tml,
> >> >>> line 2, column 44]
> >> >>> at
> >> >>>
> >> 

Re: 5.0.13 IE javascript error

2008-06-25 Thread Sven Homburg
here some ugly code sequences
hope that helps

example javascript class (SelectSwapper.js)

var SelectSwapper = Class.create();
SelectSwapper.prototype = {
  initialize: function(selectComponentId, linkId)
  {
this.selectComponent = selectComponentId;
this.linkId = linkId;
this.selectedValue = "";
Event.observe($(this.selectComponent), 'change',
this._change.bindAsEventListener(this));
Event.observe($(this.linkId), 'click',
this._click.bindAsEventListener(this));
  },
  _change: function(myEvent)
  {
this.selectedValue = $F(this.selectComponent).trim();
  },
  _click: function(myEvent)
  {
if (this.selectedValue.length() > 0)
{
   $$('.Artifact-type-').each(function
show(object){object.style.display='block';});
   $$('.Artifact-type-TASK').each(function
show(object){object.style.display='block';});
   $$('.Artifact-type-PERS').each(function
show(object){object.style.display='none';});
   $$('.Artifact-type-LEAR').each(function
show(object){object.style.display='none';});
}
  }
}

than add this to you page/component class
@IncludeJavaScriptLibrary(value = {"SelectSwapper.js"})
public class BlaBlaBla
{
@Environmental
private RenderSupport _renderSupport;

@Component
private Select mySelect;

@Component(parameters = {"element=a", "href=literal:#"})
private Any myLink;

void afterRender(MarkupWriter writer)
{
_renderSupport.addScript("new SelectSwapper('%s', '%s')",
mySelect.getClientId(), myLink.getClientId());
}
}


2008/6/25 Joachim Van der Auwera <[EMAIL PROTECTED]>:

> Ok template (layout) starts like this :
>
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> 
>   http://yui.yahooapis.com/2.4.0/build/reset/reset-min.css"; />
> 
>   
>   
>   
>   
> 
>
> Where the layout class includes
>
>   @Inject
>   @Path( "${tapestry.scriptaculous}/prototype.js" )
>   private Asset prototypeJs;
>
> The page contains some select components with onclick code like the
> following
>
>
> onchange="$(('Show-Artifact-type-'+this.options[this.selectedIndex].value).trim()).onclick();"
>
>
> One of these objects on which the onclick is invoked look like this :
>
> TASK
>
>
>
> Thanks for your help.
>
>
> Joachim
>
>
>
> Sven Homburg wrote:
>
>> please share i bit more code around your problem
>> tml and js snippet should help
>>
>> 2008/6/24 Joachim Van der Auwera <[EMAIL PROTECTED]>:
>>
>>
>>
>>> Thanks Sven, but what exactly are you referring to?
>>>
>>> If you are referring to the use of RenderSupport for javascript, then I
>>> should explain a bit.
>>>
>>> I have already had to make various changes in my Layout classes etc to
>>> assure they work with the move of the javascript to the bottom of the
>>> page.
>>> The last problem I faced was that the onchange on some of my select items
>>> use prototype and were run (causing javascript errors in IE) before
>>> prototype.js is loaded. To fix that, I explicitly refer to prototype in
>>> "" section in my Layout class. I know this results in prototype
>>> being
>>> included twice, but I don't know of a way to fix this as I seem to have a
>>> chicken and egg problem here.
>>>
>>> Thanks for the help,
>>> Joachim
>>>
>>>
>>> Sven Homburg wrote:
>>>
>>>
>>>
 please read
 http://tapestry.apache.org/news.html#Tapestry%205.0.13




>>>  2008/6/23 Joachim Van der Auwera <[EMAIL PROTECTED]>:
>>>
>>>



> Hi,
>
> after upgrade of my application to tapestry 5.0.13 I get a "unknown
> runtime
> error" on loading the page in IE.
>
> This is reported at line 2403 of prototype.js on the line
> "else element.innerHTML = content.stripScripts()"
>
> Does anybody have any idea how this problem can be remedied?
>
> Kind regards,
> Joachim
>
> --
> Joachim Van der Auwera
> PROGS bvba, progs.be
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>




>>> --
>>> Joachim Van der Auwera
>>> PROGS bvba, progs.be
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
> --
> Joachim Van der Auwera
> PROGS bvba, progs.be
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com


Re: empty block in grid - how?

2008-06-25 Thread Thiago H. de Paula Figueiredo
Em Wed, 25 Jun 2008 12:06:03 -0300, Udo Abel <[EMAIL PROTECTED]>  
escreveu:



Hi,

I wanted to define a message as a replacement of the default  
empty-message in the Grid component, but I could not find any hint on  
how to define such a block. Casting the parameter to "message" or  
"literal" does not work.


It is not a parameter that you set in the tag. Example:





No result found





Thiago

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



empty block in grid - how?

2008-06-25 Thread Udo Abel
Hi,

I wanted to define a message as a replacement of the default empty-message in 
the Grid component, but I could not find any hint on how to define such a 
block. Casting the parameter to "message" or "literal" does not work.

Btw., I think the documentations lacks some essential information. E.g., I 
searched the internet quite a while in order to find out how an "onclick" 
handler can be called from a Link. Just by chance I came across an example from 
which I concluded that any parameter of a PageLink not interpreted by Tapestry, 
is literally taken into the  tag. Another example is the "context" 
parameter, for which the documentations says that it can be an array - but 
there's no explanation whatsoever on how one can define it as an array. Again, 
only after long searches I found that there is a list: prefix, that regrettably 
isn't part of tapestry yet.
I'm sure, the authors of the documentation are just too familiar with tapestry 
to recognize that a new user just don't know HOW to do it, when they say e.g. 
"define a block".

Regards,
Udo.

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]

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



Re: Re: What if "Page" was removed from page names?

2008-06-25 Thread nille hammer

Hi list,

to answer Howard´s question, yes I would like that feature. Exactly as 
described. At the moment I prefix my page class names with the package name. I 
am not happy with that. I´d prefer to suffix them with "Page".

And my opinion to the discussion whether generation of urls should be 
configurable. I think it should NOT be configurable. The mechanism is good as 
it is.
1.) The generated urls serve the important purposes like being bookmarkable, no 
request-parameters etc. That is what is important about an url.
2.) I could imagine matching a class name to a small set of predefined values 
might be a bit easier than to something dynamically configurated. This might 
even ipmacht performance. Although surely not much and only at startup time. I 
haven´t looked into that part of the source code though.
3.) None of my customers really cares about how urls look like. Let it be 
"blogger", "myblogger" or "mybloggerpage". I am sure if you asked your 
customers, they would not be able to tell what the url is.  If we are honest, 
the desire to make url generation configurable ist to give us developers 
something else to play with.

Regards, nillehammer

- original Nachricht 

Betreff: Re: What if "Page" was removed from page names?
Gesendet: Mi, 25. Jun 2008
Von: Andreas Andreou<[EMAIL PROTECTED]>

> I'd really like to suggest an approach similar to the UriTemplate annotation
> for
> T4 pages that's included in tacos...
> 
> See
> http://fisheye3.atlassian.com/browse/tacos/tacos-4.1/trunk/tacos-annotations
> /src/java/net/sf/tacos/rest
> 
> It even supports aliases, so, no worries if you decide to change names
> and still want to old bookmarks - just use:
> 
> @UriTemplate(value="index", alias = {"home", "default"})
> public class Home { ... }
> 
> 
> On 6/25/08, Lutz Hühnken <[EMAIL PROTECTED]> wrote:
> > Shouldn't that be up to the developer (or whoever decides on the
> >  URLs)? If you don't want the page suffix, why not just name the page
> >  "Blogger" instead of "BloggerPage"? What if I wanted a url that reads
> >  "mypage"? Would I have to name the page "MyPagePage"? I'm all for
> >  convention over configuration, but here I feel some arbitrary rule
> >  would be unnecessarily imposed on the developer.
> >
> >  Just my two cents,
> >
> >
> >  Lutz
> >
> >
> >  -
> >  To unsubscribe, e-mail: [EMAIL PROTECTED]
> >  For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

--- original Nachricht Ende 


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



Re: T5 version 5.0.13 Index page suppressing other servlets?

2008-06-25 Thread Thiago H. de Paula Figueiredo

Em Wed, 25 Jun 2008 11:32:05 -0300, kranga <[EMAIL PROTECTED]> escreveu:

I have Index.tml setup in my app root for the home page. I also have a  
servlet defined that listens to requests to /broker. There is no folder  
by the name of /broker. I find that Tapestry takes over the /broker  
request and serves up the home page! Unless there is a /broker folder  
with some file Tapestry takes over! Why is the Tapestry servlet  
over-reaching and is there any configuration to prevent it from doing so?


NOTE: This behavior is not present when I use Start.tml as my home page.


Tapestry is behaving exactly as it should. For any request, the Tapestry  
servlet filter (it is not a servlet), checks if the request can be handled  
by it. If it cannot, it just ignores it, giving a chance to other servlet  
filters and servlets to process the request.


Having an Index page, Tapestry receives a request to /broker and thinks  
that "broker" is the activation context for the Index page.


You can leave your Index page and tell Tapestry to ignore requests to  
/broker adding this lines to you AppModule:


public static void  
contributeIgnoredPathsFilter(UnorderedCollection configuration) {

configuration.add("/broker/.*");
}

More details at the end of  
http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html.


Thiago

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



Re: 5.0.13 IE javascript error

2008-06-25 Thread Joachim Van der Auwera

Ok template (layout) starts like this :

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

   href="http://yui.yahooapis.com/2.4.0/build/reset/reset-min.css"; /> 
   

   
   
   
   


Where the layout class includes

   @Inject
   @Path( "${tapestry.scriptaculous}/prototype.js" )
   private Asset prototypeJs;

The page contains some select components with onclick code like the 
following
  


   
onchange="$(('Show-Artifact-type-'+this.options[this.selectedIndex].value).trim()).onclick();"


One of these objects on which the onclick is invoked look like this :


$$('.Artifact-type-TASK').each(function 
show(object){object.style.display='block';});
$$('.Artifact-type-PERS').each(function 
show(object){object.style.display='none';});
$$('.Artifact-type-LEAR').each(function 
show(object){object.style.display='none';});
">TASK



Thanks for your help.

Joachim



Sven Homburg wrote:

please share i bit more code around your problem
tml and js snippet should help

2008/6/24 Joachim Van der Auwera <[EMAIL PROTECTED]>:

  

Thanks Sven, but what exactly are you referring to?

If you are referring to the use of RenderSupport for javascript, then I
should explain a bit.

I have already had to make various changes in my Layout classes etc to
assure they work with the move of the javascript to the bottom of the page.
The last problem I faced was that the onchange on some of my select items
use prototype and were run (causing javascript errors in IE) before
prototype.js is loaded. To fix that, I explicitly refer to prototype in
"" section in my Layout class. I know this results in prototype being
included twice, but I don't know of a way to fix this as I seem to have a
chicken and egg problem here.

Thanks for the help,
Joachim


Sven Homburg wrote:



please read
http://tapestry.apache.org/news.html#Tapestry%205.0.13


  

 2008/6/23 Joachim Van der Auwera <[EMAIL PROTECTED]>:



  

Hi,

after upgrade of my application to tapestry 5.0.13 I get a "unknown
runtime
error" on loading the page in IE.

This is reported at line 2403 of prototype.js on the line
"else element.innerHTML = content.stripScripts()"

Does anybody have any idea how this problem can be remedied?

Kind regards,
Joachim

--
Joachim Van der Auwera
PROGS bvba, progs.be


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








  

--
Joachim Van der Auwera
PROGS bvba, progs.be


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






  



--
Joachim Van der Auwera
PROGS bvba, progs.be


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



T5 version 5.0.13 Index page suppressing other servlets?

2008-06-25 Thread kranga
I have Index.tml setup in my app root for the home page. I also have a 
servlet defined that listens to requests to /broker. There is no folder by 
the name of /broker. I find that Tapestry takes over the /broker request and 
serves up the home page! Unless there is a /broker folder with some file 
Tapestry takes over! Why is the Tapestry servlet over-reaching and is there 
any configuration to prevent it from doing so?


NOTE: This behavior is not present when I use Start.tml as my home page. 



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



Re: T5:class reloading problem with Tomcat 6

2008-06-25 Thread Geoff Callender
Yep, that's normal.  It's an age-old JVM/class-loading issue (try  
googling it).   Try running with these java options (or even bigger  
numbers if you have the memory): -XX:MaxNewSize=96m -XX:MaxPermSize=96m.


On 25/06/2008, at 11:31 PM, Angelo Chen wrote:



hi,

althought reloadable="true" works, but i have memory problems now  
which not

there before:

Exception in thread "Timer-5" java.lang.OutOfMemoryError: PermGen  
space
[ERROR] RequestExceptionHandler Processing of request failed with  
uncaught

exception: PermGen space
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	at  
java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
124)

at
org 
.apache 
.catalina 
.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java: 
1819)

at
org 
.apache 
.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java: 
872)

at
org 
.apache 
.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
1327)

at
org 
.apache 
.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
1206)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	at  
java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
124)

at
org 
.apache 
.catalina 
.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java: 
1819)

at
org 
.apache 
.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java: 
872)

at
org 
.apache 
.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
1327)

at
org 
.apache 
.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
1206)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
org 
.hibernate 
.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:224)

at
org 
.hibernate 
.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)

at
org 
.hibernate 
.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
	at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java: 
77)



Geoff Callender-2 wrote:


Does setting reloadable="true" in the Context element of context.xml
fix it?

On 25/06/2008, at 6:58 PM, Angelo Chen wrote:



Hi,

I use tomcat 6 and IDEA IDE, in the IDEA I set the project's
exploded
directory to:

/Users/abc/myapp/ROOT

and the above directory is mapped as an entry under $CATALINA_HOME.
in the
IDEA i did not run or debug, just compile/build, the T5 picks up any
changes
I made to the template file, but not the page classes, I checked the
above
directory and can see the java class has been compiled and placed in
the
correct directory, just the changes are not reflected until I re-
boot the
server, any idea why? Thanks.

Angelo
--
View this message in context:
http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18107826.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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




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





--
View this message in context: 
http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18112541.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





Re: What if "Page" was removed from page names?

2008-06-25 Thread Andreas Andreou
I'd really like to suggest an approach similar to the UriTemplate annotation for
T4 pages that's included in tacos...

See 
http://fisheye3.atlassian.com/browse/tacos/tacos-4.1/trunk/tacos-annotations/src/java/net/sf/tacos/rest

It even supports aliases, so, no worries if you decide to change names
and still want to old bookmarks - just use:

@UriTemplate(value="index", alias = {"home", "default"})
public class Home { ... }


On 6/25/08, Lutz Hühnken <[EMAIL PROTECTED]> wrote:
> Shouldn't that be up to the developer (or whoever decides on the
>  URLs)? If you don't want the page suffix, why not just name the page
>  "Blogger" instead of "BloggerPage"? What if I wanted a url that reads
>  "mypage"? Would I have to name the page "MyPagePage"? I'm all for
>  convention over configuration, but here I feel some arbitrary rule
>  would be unnecessarily imposed on the developer.
>
>  Just my two cents,
>
>
>  Lutz
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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



Re: [T5] About core components subclassing and methods with package visibility

2008-06-25 Thread Yunhua Sang
I have same pain with you, Thiago. It's not easy for subclasses to
access parameters in parent classes.

Delegation works perfectly, but you have to copy all parameters from
parent component.

Yunhua


On Tue, Jun 24, 2008 at 11:05 PM, Thiago H. de Paula Figueiredo
<[EMAIL PROTECTED]> wrote:
> I've faced the same situation more than once trying to build my own
> components that extend or slightly changes some existing T5-core component.
> For example, subclassing the Label component so it always ignores its body
> and generates the label name from the corresponding field id. That could be
> (almost) accomplished if I could override its afterRender() method
> (http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Label.java?view=markup).
> The only solution I've found yet was copying the original component class
> and then changing it.
>
> Other examples are an ActionLink and a PageLink subclasses that have it's
> own activation context logic, having an object as parameter, not the context
> value itself. Again, I had to copy code instead of subclassing.
>
> Question to Howard: instead of having package visibility, could the core
> components have methods with protected visibility? And could their fields
> hava protected getters, so component subclasses can access superclass'
> parameter values? Or the current situation is the best one?
>
> Thank you very much in advance.
>
> Thiago
>
> -
> 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: t5: Returning block works in Firefox but not in IE

2008-06-25 Thread 9902468

Better yet:

Tapestry could be so smart that it would return null even if the handler
returns block if the request is not ajax. 

if(return_value == block && is_not_xhdr){
block = null;
}

That wouldn't break anything?

 -99


Lance Java wrote:
> 
> Could returning null be built in as default behaviour? Since returning a
> block from a non-xhr request is an error case, it would save putting
> checks
> throughout the code and I can't see it breaking anything.
> 
> Cheers,
> Lance.
> 
> 2008/6/24 Howard Lewis Ship <[EMAIL PROTECTED]>:
> 
>> For full graceful degradation, you can inject the Request object can
>> check its isXHR() method, then decide on an appropriate return value
>> (typically, a Block or null).
>>
>> On Tue, Jun 24, 2008 at 9:24 AM, Lance Java <[EMAIL PROTECTED]>
>> wrote:
>> > I have solved the issue, I think I understand what was going wrong.
>> > - Tapestry first draws action links as hrefs which cause a page reload
>> for
>> > graceful degredation
>> > - Tapestry javascript magic then goes over all ajax action links and
>> changes
>> > them to javascript method calls
>> > - I had a javascript error which stopped the tapestry javascript magic
>> from
>> > hapening, thus I was seeing the graceful degredation, thus no XHR's
>> >
>> > Cheers,
>> > Lance.
>> >
>> > 2008/6/24 Francisco Manzano <[EMAIL PROTECTED]>:
>> >
>> >> Hi, I am inexperienced in Tapestry, but I had east problem recently:
>> >> You have like result a valid xhtml page? You can look for if you have
>> >> "scripts of tapestry" inserted at the end of the page.
>> >> something  like this  :
>> >> ...
>> >> > >> type="text/javascript">
>> >> > >> type="text/javascript">
>> >> > >> type="text/javascript">
>> >> > >> type="text/javascript">
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 
>> >>
>> >> If these scripts are not, you can have this problem., and you can
>> solve
>> it
>> >> obtaining a valid xhtml like result.
>> >>
>> >> I hope can help you
>> >>
>> >> &
>> >> DiPegotDeis
>> >>
>> >>
>> >>
>> >>
>> >> Lance Java wrote:
>> >>
>> >>> I have an actionlink that returns a block and populates a zone in my
>> page
>> >>>
>> >>> FundGraph.tml
>> >>>   edit
>> >>>
>> >>>   ...
>> >>>
>> >>>   
>> >>>   
>> >>>
>> >>>
>> >>> FundGraph.java
>> >>>@Inject
>> >>>private Block editorBlock;
>> >>>
>> >>>@OnEvent(value="action", component="edit")
>> >>>protected Object onActionFromEdit() {
>> >>>return editorBlock;
>> >>>}
>> >>>
>> >>> In Firefox, this works fine. In IE, I get the following error:
>> >>> A component event handler method returned the value
>> >>> [EMAIL PROTECTED] Return type
>> >>> org.apache.tapestry5.internal.structure.BlockImpl can not be handled.
>> >>> Configured return types are java.lang.Class, java.lang.String,
>> >>> java.net.URL,
>> >>> org.apache.tapestry5.Link, org.apache.tapestry5.StreamResponse,
>> >>> org.apache.tapestry5.runtime.Component.
>> >>>
>> >>> I have looked at previous posts on this list and it seems that this
>> is
>> >>> because request.isXHR() is false. What can I do to fix this in IE? I
>> >>> thought
>> >>> that XHR should be true in this case?
>> >>>
>> >>> I am using tapestry 5.0.13 and IE 6.0
>> >>>
>> >>> Full stack trace:
>> >>> %d 192408 ERROR
>> >>>
>> [org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler]
>> >>> (http-127.0.0.1-8080-2:) Processing of request failed with uncaught
>> >>> exception: A component event handler method returned the value
>> >>> [EMAIL PROTECTED] Return type
>> >>> org.apache.tapestry5.internal.structure.BlockImpl can not be
>> >>> handled.  Configured return types are java.lang.Class,
>> java.lang.String,
>> >>> java.net.URL, org.apache.tapestry5.Link,
>> >>> org.apache.tapestry5.StreamResponse,
>> >>> org.apache.tapestry5.runtime.Component.
>> >>> org.apache.tapestry5.runtime.ComponentEventException: A component
>> event
>> >>> handler method returned the value
>> >>> [EMAIL PROTECTED] Return type
>> >>> org.apache.tapestry5.internal.structure.BlockImpl can not be
>> >>> handled.  Configured return types are java.lang.Class,
>> java.lang.String,
>> >>> java.net.URL, org.apache.tapestry5.Link,
>> >>> org.apache.tapestry5.StreamResponse,
>> >>> org.apache.tapestry5.runtime.Component.
>> >>> [at
>> >>>
>> classpath:com/bglobal/isharesnet/tapestry/components/fund/FundGraph.tml,
>> >>> line 2, column 44]
>> >>> at
>> >>>
>> >>>
>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1042)
>> >>> at
>> >>>
>> >>>
>> org.apache.tapestry5.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:67)
>> >>> at
>> >>>
>> >>>
>> org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.h

Re: What if "Page" was removed from page names?

2008-06-25 Thread Lutz Hühnken
Shouldn't that be up to the developer (or whoever decides on the
URLs)? If you don't want the page suffix, why not just name the page
"Blogger" instead of "BloggerPage"? What if I wanted a url that reads
"mypage"? Would I have to name the page "MyPagePage"? I'm all for
convention over configuration, but here I feel some arbitrary rule
would be unnecessarily imposed on the developer.

Just my two cents,

Lutz

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



Re: [t5] form method="get", "old school" query parameters

2008-06-25 Thread Kristian Marinkovic
hi lutz,

by default the tapestry form will generate method="post". 
there is no way to change the method... you could add a 
jira issue to change the form component to accept an 
additional method parameter.

alternativley you could create a mixin that is attached to 
your form. The mixin could then overwrite the method 
property:

public class FormMethodOverrideMixin() {
..
public void afterRender(MarkupWriter writer) {
Element form = // get element representing from tag
form.forceAttributes("method","get");
   }
}

g,
kris



"Thiago H. de Paula Figueiredo" <[EMAIL PROTECTED]> 
25.06.2008 15:32
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
Re: [t5] form method="get", "old school" query parameters







Em Wed, 25 Jun 2008 10:23:27 -0300, Lutz Hühnken 
<[EMAIL PROTECTED]> escreveu:

> what is the way to create a form with method="GET" in Tapestry 5?
>
> I would like to create a simple form that produces a "GET" request
> with query parameters, such as
> www.example.com/books?author=king&category=crime. What is the
> straight-forward way to do that?

As long you don't want or need to process this form in T5's way (with 
event handler methods, binding HTML fields to values, etc), just don't use 
 
T5's Form component and use an ordinary HTML form.

Thiago

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




Re: Events from select component

2008-06-25 Thread Lutz Hühnken
Hi Brendan,

I think the "OnEvent" mixin from t5components does what you are looking for:

http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/mixins/OnEvent.html

(I haven't used it myself, though. Let me know if it works as described.)
Hth,

Lutz


On Tue, Jun 24, 2008 at 8:21 PM, Brendan McNichols
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
>
>
> I have a  component on a page and I need to know when the user
> changes its value.  I presume that I need to implement an event handler
> as described in:
> http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html, but
> I tried to do that and wasn't able to get it to work.  Is this the right
> approach?  Can anyone point out an example or let me know how to
> implement this behavior?
>
>
>
> Thanks very much,
>
> Brendan
>
>
>
>

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



Re: [t5] form method="get", "old school" query parameters

2008-06-25 Thread Thiago H. de Paula Figueiredo
Em Wed, 25 Jun 2008 10:23:27 -0300, Lutz Hühnken  
<[EMAIL PROTECTED]> escreveu:



what is the way to create a form with method="GET" in Tapestry 5?

I would like to create a simple form that produces a "GET" request
with query parameters, such as
www.example.com/books?author=king&category=crime. What is the
straight-forward way to do that?


As long you don't want or need to process this form in T5's way (with  
event handler methods, binding HTML fields to values, etc), just don't use  
T5's Form component and use an ordinary HTML form.


Thiago

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



Re: T5:class reloading problem with Tomcat 6

2008-06-25 Thread Angelo Chen

hi,

althought reloadable="true" works, but i have memory problems now which not
there before:

Exception in thread "Timer-5" java.lang.OutOfMemoryError: PermGen space
[ERROR] RequestExceptionHandler Processing of request failed with uncaught
exception: PermGen space
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1819)
at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:224)
at
org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)
at
org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)


Geoff Callender-2 wrote:
> 
> Does setting reloadable="true" in the Context element of context.xml  
> fix it?
> 
> On 25/06/2008, at 6:58 PM, Angelo Chen wrote:
> 
>>
>> Hi,
>>
>> I use tomcat 6 and IDEA IDE, in the IDEA I set the project's  
>> exploded
>> directory to:
>>
>> /Users/abc/myapp/ROOT
>>
>> and the above directory is mapped as an entry under $CATALINA_HOME.  
>> in the
>> IDEA i did not run or debug, just compile/build, the T5 picks up any  
>> changes
>> I made to the template file, but not the page classes, I checked the  
>> above
>> directory and can see the java class has been compiled and placed in  
>> the
>> correct directory, just the changes are not reflected until I re- 
>> boot the
>> server, any idea why? Thanks.
>>
>> Angelo
>> -- 
>> View this message in context:
>> http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18107826.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18112541.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



[t5] form method="get", "old school" query parameters

2008-06-25 Thread Lutz Hühnken
Hi everybody,

what is the way to create a form with method="GET" in Tapestry 5?

I would like to create a simple form that produces a "GET" request
with query parameters, such as
www.example.com/books?author=king&category=crime. What is the
straight-forward way to do that?

Thanks for your help,

Lutz

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



Re: T5:class reloading problem with Tomcat 6

2008-06-25 Thread Angelo Chen

hi,

i added reloadable="true", it works, but another error comes out:

[ERROR] RequestExceptionHandler Processing of request failed with uncaught
exception: Context values (which are added to the request URL) may not be
null or blank.
org.apache.tapestry5.runtime.ComponentEventException: 

any idea? Thanks.



Geoff Callender-2 wrote:
> 
> Does setting reloadable="true" in the Context element of context.xml  
> fix it?
> 
> On 25/06/2008, at 6:58 PM, Angelo Chen wrote:
> 
>>
>> Hi,
>>
>> I use tomcat 6 and IDEA IDE, in the IDEA I set the project's  
>> exploded
>> directory to:
>>
>> /Users/abc/myapp/ROOT
>>
>> and the above directory is mapped as an entry under $CATALINA_HOME.  
>> in the
>> IDEA i did not run or debug, just compile/build, the T5 picks up any  
>> changes
>> I made to the template file, but not the page classes, I checked the  
>> above
>> directory and can see the java class has been compiled and placed in  
>> the
>> correct directory, just the changes are not reflected until I re- 
>> boot the
>> server, any idea why? Thanks.
>>
>> Angelo
>> -- 
>> View this message in context:
>> http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18107826.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18112203.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga

Kristian,
   Thanks! That will work just fine. I suspected performance was the driver 
but was hoping that there was a way of selectively adding some script 
includes to the top!


- Original Message - 
From: "Kristian Marinkovic" <[EMAIL PROTECTED]>

To: "Tapestry users" 
Sent: Wednesday, June 25, 2008 8:22 AM
Subject: Re: T5 5.0.13 Javascript rendering at end of document - questions 
regd




reason for adding js libraries at the end of the document:

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

you could write an own Flash component that adds the js
libraries into the head section:

public class Flash() {

  beginRender(MarkupWriter writer) {
  Document d = writer.getDocument();
  Element head = d.find("html/head");

  head.element("script", ...);

  }
}

i think you get the idea

g,
kris




"kranga" <[EMAIL PROTECTED]>
25.06.2008 14:02
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
Re: T5 5.0.13 Javascript rendering at end of document - questions regd







Filip,
   That will not work because 1) the Flash player javascript is called
in-line to render the Flash player and 2) within the flash player
javascript, I've got some dynamic parameters being added. I can rework (2)

to make it a function parameter and put the dynamic nature in the inline
function call but that will still fail. Here is why:



   
   HTML tags 

renderFlashPlayer(${myParam}) 

   Other HTML tags ...


   
   
   


So if renderFlashPlayer lives in flashPlayer.js, it will simply not work!
My
only alternative is to manually include flashUtil.js in the header and
inline flashPlayer.js. This is unnatural and against the grain. I suspect
that there are other similar scenarios.

- Original Message - 
From: "Filip S. Adamsen" <[EMAIL PROTECTED]>

To: "Tapestry users" 
Sent: Wednesday, June 25, 2008 7:51 AM
Subject: Re: T5 5.0.13 Javascript rendering at end of document - questions

regd



Actually, you can just put the JavaScript in a .js file and then include



it with @IncludeJavaScriptLibrary. Then add a call to
RenderSupport#addScript in your page's afterRender handler that does the



setup you need.

For this and more, check
http://tapestry.apache.org/tapestry5/tapestry-core/guide/ajax.html.

-Filip

On 2008-06-25 13:46, kranga wrote:

One more addition: When including the flash player in a page, the
recommended technique is to put inline javascript that renders the

flash

player where the javascript appears in the page. The javascript relies

on

an external javascript file being included. If I do an asset injection

of

the Flash javascript, it ends up at the bottom of the page and the

flash

player inline javascript fails. So it seems like one would need to
override this behavior. Otherwise I'd have to package up the inline
javascript as a method, inject that and then call it in place. But I'm
concerned with putting all the javascript for the flash in a Java file.



That is not a natural fit.



I have some questions regarding the decision to render Javascript at

the

end of the document:

1) What was the rationale/dirver for this?
2a) The upgrade notes say to use RenderSupport. Can anyone provide a
short description of how to use RenderSupport to inject a simple
javascript function?
2b) This implies that a lot of inline javascript will have to be moved



from .tml to .java classes. It seems this will reduce the

"naturalness"

of being able to use javascript normally.



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



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




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






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



Re: dynamic link in actionlink

2008-06-25 Thread Geoff Callender

Alternatively, if you like this kind of syntax
context="list:student.id,student.rank"
then contribute a ListBindingFactory to AppModule as described in http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix 
 .


On 25/06/2008, at 7:18 AM, Sven Homburg wrote:


read the bottom of this page
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/ActionLink.html

2008/6/24 tapestry5 <[EMAIL PROTECTED]>:



I have a scenario where I am creating multiple actionlink in a  
loop. But I

want to use the same id for all the actionlinks.

Test.jsp


 rank
${student.rank}



So in my Test.java I have

Object onActionFromRank(final long _ student)
{
  Now here I am getting student.id but I also want selected  
rank. I

don't
know how to get selected rank from .tml. This is not inside form.

}

--
View this message in context:
http://www.nabble.com/dynamic-link-in-actionlink-tp18100111p18100111.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





--
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com



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



Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread Kristian Marinkovic
reason for adding js libraries at the end of the document:

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

you could write an own Flash component that adds the js 
libraries into the head section:

public class Flash() {

   beginRender(MarkupWriter writer) {
   Document d = writer.getDocument();
   Element head = d.find("html/head");
 
   head.element("script", ...);

   }
}

i think you get the idea

g,
kris




"kranga" <[EMAIL PROTECTED]> 
25.06.2008 14:02
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
Re: T5 5.0.13 Javascript rendering at end of document - questions regd







Filip,
That will not work because 1) the Flash player javascript is called 
in-line to render the Flash player and 2) within the flash player 
javascript, I've got some dynamic parameters being added. I can rework (2) 

to make it a function parameter and put the dynamic nature in the inline 
function call but that will still fail. Here is why:




HTML tags 

 renderFlashPlayer(${myParam}) 

Other HTML tags ...







So if renderFlashPlayer lives in flashPlayer.js, it will simply not work! 
My 
only alternative is to manually include flashUtil.js in the header and 
inline flashPlayer.js. This is unnatural and against the grain. I suspect 
that there are other similar scenarios.

- Original Message - 
From: "Filip S. Adamsen" <[EMAIL PROTECTED]>
To: "Tapestry users" 
Sent: Wednesday, June 25, 2008 7:51 AM
Subject: Re: T5 5.0.13 Javascript rendering at end of document - questions 

regd


> Actually, you can just put the JavaScript in a .js file and then include 

> it with @IncludeJavaScriptLibrary. Then add a call to 
> RenderSupport#addScript in your page's afterRender handler that does the 

> setup you need.
>
> For this and more, check 
> http://tapestry.apache.org/tapestry5/tapestry-core/guide/ajax.html.
>
> -Filip
>
> On 2008-06-25 13:46, kranga wrote:
>> One more addition: When including the flash player in a page, the 
>> recommended technique is to put inline javascript that renders the 
flash 
>> player where the javascript appears in the page. The javascript relies 
on 
>> an external javascript file being included. If I do an asset injection 
of 
>> the Flash javascript, it ends up at the bottom of the page and the 
flash 
>> player inline javascript fails. So it seems like one would need to 
>> override this behavior. Otherwise I'd have to package up the inline 
>> javascript as a method, inject that and then call it in place. But I'm 
>> concerned with putting all the javascript for the flash in a Java file. 

>> That is not a natural fit.
>>
>>
>>> I have some questions regarding the decision to render Javascript at 
the 
>>> end of the document:
>>>
>>> 1) What was the rationale/dirver for this?
>>> 2a) The upgrade notes say to use RenderSupport. Can anyone provide a 
>>> short description of how to use RenderSupport to inject a simple 
>>> javascript function?
>>> 2b) This implies that a lot of inline javascript will have to be moved 

>>> from .tml to .java classes. It seems this will reduce the 
"naturalness" 
>>> of being able to use javascript normally.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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




Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga

Filip,
   That will not work because 1) the Flash player javascript is called 
in-line to render the Flash player and 2) within the flash player 
javascript, I've got some dynamic parameters being added. I can rework (2) 
to make it a function parameter and put the dynamic nature in the inline 
function call but that will still fail. Here is why:




   
   HTML tags 

renderFlashPlayer(${myParam}) 

   Other HTML tags ...


   
   
   


So if renderFlashPlayer lives in flashPlayer.js, it will simply not work! My 
only alternative is to manually include flashUtil.js in the header and 
inline flashPlayer.js. This is unnatural and against the grain. I suspect 
that there are other similar scenarios.


- Original Message - 
From: "Filip S. Adamsen" <[EMAIL PROTECTED]>

To: "Tapestry users" 
Sent: Wednesday, June 25, 2008 7:51 AM
Subject: Re: T5 5.0.13 Javascript rendering at end of document - questions 
regd



Actually, you can just put the JavaScript in a .js file and then include 
it with @IncludeJavaScriptLibrary. Then add a call to 
RenderSupport#addScript in your page's afterRender handler that does the 
setup you need.


For this and more, check 
http://tapestry.apache.org/tapestry5/tapestry-core/guide/ajax.html.


-Filip

On 2008-06-25 13:46, kranga wrote:
One more addition: When including the flash player in a page, the 
recommended technique is to put inline javascript that renders the flash 
player where the javascript appears in the page. The javascript relies on 
an external javascript file being included. If I do an asset injection of 
the Flash javascript, it ends up at the bottom of the page and the flash 
player inline javascript fails. So it seems like one would need to 
override this behavior. Otherwise I'd have to package up the inline 
javascript as a method, inject that and then call it in place. But I'm 
concerned with putting all the javascript for the flash in a Java file. 
That is not a natural fit.



I have some questions regarding the decision to render Javascript at the 
end of the document:


1) What was the rationale/dirver for this?
2a) The upgrade notes say to use RenderSupport. Can anyone provide a 
short description of how to use RenderSupport to inject a simple 
javascript function?
2b) This implies that a lot of inline javascript will have to be moved 
from .tml to .java classes. It seems this will reduce the "naturalness" 
of being able to use javascript normally.



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



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




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



Re: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread Filip S. Adamsen
Actually, you can just put the JavaScript in a .js file and then include 
it with @IncludeJavaScriptLibrary. Then add a call to 
RenderSupport#addScript in your page's afterRender handler that does the 
setup you need.


For this and more, check 
http://tapestry.apache.org/tapestry5/tapestry-core/guide/ajax.html.


-Filip

On 2008-06-25 13:46, kranga wrote:
One more addition: When including the flash player in a page, the 
recommended technique is to put inline javascript that renders the flash 
player where the javascript appears in the page. The javascript relies 
on an external javascript file being included. If I do an asset 
injection of the Flash javascript, it ends up at the bottom of the page 
and the flash player inline javascript fails. So it seems like one would 
need to override this behavior. Otherwise I'd have to package up the 
inline javascript as a method, inject that and then call it in place. 
But I'm concerned with putting all the javascript for the flash in a 
Java file. That is not a natural fit.



I have some questions regarding the decision to render Javascript at 
the end of the document:


1) What was the rationale/dirver for this?
2a) The upgrade notes say to use RenderSupport. Can anyone provide a 
short description of how to use RenderSupport to inject a simple 
javascript function?
2b) This implies that a lot of inline javascript will have to be moved 
from .tml to .java classes. It seems this will reduce the 
"naturalness" of being able to use javascript normally. 



-
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: T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga
I take that back. Putting the flash player inline javascript in a method 
will not help since when it is called, the flash player external javascript 
will still not have been processed. So now I'm forced to statically or 
conditionally include the flash player javascript in my layout at the top. 
This defeats the goal of allowing components to contribute javascript to a 
page.


I think a mechanism to override the inclusion of javascript at the bottom of 
the page is needed. There are far too many javascript utilities that have 
been written that will fail to work in the mode. And I suspect almost all 
inline-rendering techniques that depend on an included javascript file will 
fail.



One more addition: When including the flash player in a page, the 
recommended technique is to put inline javascript that renders the flash 
player where the javascript appears in the page. The javascript relies on 
an external javascript file being included. If I do an asset injection of 
the Flash javascript, it ends up at the bottom of the page and the flash 
player inline javascript fails. So it seems like one would need to 
override this behavior. Otherwise I'd have to package up the inline 
javascript as a method, inject that and then call it in place. But I'm 
concerned with putting all the javascript for the flash in a Java file. 
That is not a natural fit.



I have some questions regarding the decision to render Javascript at the 
end of the document:


1) What was the rationale/dirver for this?
2a) The upgrade notes say to use RenderSupport. Can anyone provide a 
short description of how to use RenderSupport to inject a simple 
javascript function?
2b) This implies that a lot of inline javascript will have to be moved 
from .tml to .java classes. It seems this will reduce the "naturalness" 
of being able to use javascript normally.





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



T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga
One more addition: When including the flash player in a page, the 
recommended technique is to put inline javascript that renders the flash 
player where the javascript appears in the page. The javascript relies on an 
external javascript file being included. If I do an asset injection of the 
Flash javascript, it ends up at the bottom of the page and the flash player 
inline javascript fails. So it seems like one would need to override this 
behavior. Otherwise I'd have to package up the inline javascript as a 
method, inject that and then call it in place. But I'm concerned with 
putting all the javascript for the flash in a Java file. That is not a 
natural fit.



I have some questions regarding the decision to render Javascript at the 
end of the document:


1) What was the rationale/dirver for this?
2a) The upgrade notes say to use RenderSupport. Can anyone provide a short 
description of how to use RenderSupport to inject a simple javascript 
function?
2b) This implies that a lot of inline javascript will have to be moved 
from .tml to .java classes. It seems this will reduce the "naturalness" of 
being able to use javascript normally. 



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



T5 5.0.13 Javascript rendering at end of document - questions regd

2008-06-25 Thread kranga
I have some questions regarding the decision to render Javascript at the end 
of the document:


1) What was the rationale/dirver for this?
2a) The upgrade notes say to use RenderSupport. Can anyone provide a short 
description of how to use RenderSupport to inject a simple javascript 
function?
2b) This implies that a lot of inline javascript will have to be moved from 
.tml to .java classes. It seems this will reduce the "naturalness" of being 
able to use javascript normally. 



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



Re: What if "Page" was removed from page names?

2008-06-25 Thread Don Ryan


On 25 Jun 2008, at 01:12, Filip S. Adamsen wrote:


As long as it's configurable, I'm fine with it. :)


Except you lose some of the intrinsic simplicity of convention over  
configuration when you decide to offer both. Note that, depending on  
how it's implemented, this change need not break any existing  
Tapestry 5 applications. If the page class has a -Page suffix, then  
Tapestry would map to that. (You might have to throw an exception if  
Foo and FooPage both existed under the pages package hierarchy.)


On the naming issue itself, I think it would be a positive  
development. I think the historical convention of using entity-like  
names for pages is a regrettable fuzziness. I've shown Tapestry to  
some undergraduate students and a common beginner's mistake is to put  
code in a page class that really belongs in an entity class. The  
naming didn't help there. I'm sure something similar would apply with  
junior developers in a software house. There's very little point in  
making the hurdles any higher for people learning their craft.


To really set the cat amongst the pigeons (and infuriate the  
keystroke tax collectors), I think a similar mapping of a -Component  
suffix would be good for components (again optional). Although it's  
unfortunately a longer suffix, the conceptual clarity would probably  
be worth it. (Why refer to something as, say, an "account component"  
when discussing it but refuse to actually call it that. Because it's  
too long?)


Lastly, I don't think I would go along with Hugo's idea of list of  
optional suffixes. I can't imagine any sensible suffix for pages and  
components other than -Page and -Component. (Although that could just  
be my limited imagination.) :-)


Don.
This message has been scanned for content and viruses by the DIT Information 
Services E-Mail Scanning Service, and is believed to be clean. http://www.dit.ie

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



Re: 答复: Chinese can not display correctly

2008-06-25 Thread Donyee
There is a eclipse plugin,
propedit
It can eidt the prop file!
Enjoy it!

2008/6/25 Korben Zhang <[EMAIL PROTECTED]>:

> Is there any ways  doesn't need native2ascii?
>
> 2008/6/25 滕训华 <[EMAIL PROTECTED]>:
>
> > Yes,chinese display correctly after compile by native tool,thanks very
> much
> >
> > -邮件原件-
> > 发件人: dhning [mailto:[EMAIL PROTECTED]
> > 发送时间: 2008年6月25日 14:38
> > 收件人: Tapestry users
> > 主题: Re: Chinese can not display correctly
> >
> > Hi,
> >  You should first utilize native2ascii(in jdk/bin) to convert the
> > appname_zh_CN.properties to asc, then it should solve your probelem.
> >  I don't know why T5 deal with internationalization differently from T4.
> In
> > T4, we developer don't have to convert the resource files, we just need
> > input Chinese and it displays correctly.
> >
> >  And if your IDE is eclipse, you can find some plugin to help you convert
> > encoding automatically.
> >
> > Thanks!
> >
> > DH
> >
> >
> > - Original Message -
> > From: "滕训华" <[EMAIL PROTECTED]>
> > To: "'Tapestry users'" 
> > Sent: Wednesday, June 25, 2008 8:44 AM
> > Subject: Chinese can not display correctly
> >
> >
> > >I use the ${message:labelKey} in the tml and define the labelKey in the
> > > properties with Chinese characters,but when the page display ,the
> Chinese
> > > can not display correctly.
> > >
> > >
> > >
> > > By the way,my properties file is define with UTF-8
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Korben Zhang
> Blog: http://korben-zhang.blogspot.com | http://korbenzh.spaces.live.com
>



-- 
Yet Another Java EE Developer!


Re: What if "Page" was removed from page names?

2008-06-25 Thread Hugo Palma

I also agree.
Maybe this could take the form of a configuration property. You could 
specify a list of optional suffixes for page/component names.
When configured, you could either access the page/component by it's 
complete name or by it's stripped version.


Geoff Callender wrote:

Agreed.  Don't make it a default.

On 25/06/2008, at 12:05 PM, Chris Lewis wrote:


I heartily agree with Filip. Even though the page name 'optimization' is
documented, I loathe the fact that I can do nothing to stop it. Please,
if this is implemented at least allow users the power to say 'yay' or
'nay' in our apps.

Filip S. Adamsen wrote:

As long as it's configurable, I'm fine with it. :)

-Filip

On 2008-06-25 01:53, Howard Lewis Ship wrote:

I think it's common that you have an entity type, say Blog or Blogger,
and a corresponding page for viewing or editting that type.  A natural
name might be BlogPage or BloggerPage ... but that creates ugly URLs.

What if Tapestry stripped off a "Page" suffix from page names?  Thus
you might have a BloggerPage class and BloggerPage.tml template, but
the page name would be "Blogger" and the URL would be "/blogger".

Peeking over people's shoulders at Formos, I've been seeing people
using the -Page suffix already.  I just want to neaten up the URL
related to that.


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




--
http://thegodcode.net


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




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




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



Re: T5:class reloading problem with Tomcat 6

2008-06-25 Thread Geoff Callender
Does setting reloadable="true" in the Context element of context.xml  
fix it?


On 25/06/2008, at 6:58 PM, Angelo Chen wrote:



Hi,

I use tomcat 6 and IDEA IDE, in the IDEA I set the project's  
exploded

directory to:

/Users/abc/myapp/ROOT

and the above directory is mapped as an entry under $CATALINA_HOME.  
in the
IDEA i did not run or debug, just compile/build, the T5 picks up any  
changes
I made to the template file, but not the page classes, I checked the  
above
directory and can see the java class has been compiled and placed in  
the
correct directory, just the changes are not reflected until I re- 
boot the

server, any idea why? Thanks.

Angelo
--
View this message in context: 
http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18107826.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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




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



Re: What if "Page" was removed from page names?

2008-06-25 Thread Geoff Callender

Agreed.  Don't make it a default.

On 25/06/2008, at 12:05 PM, Chris Lewis wrote:

I heartily agree with Filip. Even though the page name  
'optimization' is
documented, I loathe the fact that I can do nothing to stop it.  
Please,

if this is implemented at least allow users the power to say 'yay' or
'nay' in our apps.

Filip S. Adamsen wrote:

As long as it's configurable, I'm fine with it. :)

-Filip

On 2008-06-25 01:53, Howard Lewis Ship wrote:
I think it's common that you have an entity type, say Blog or  
Blogger,
and a corresponding page for viewing or editting that type.  A  
natural
name might be BlogPage or BloggerPage ... but that creates ugly  
URLs.


What if Tapestry stripped off a "Page" suffix from page names?  Thus
you might have a BloggerPage class and BloggerPage.tml template, but
the page name would be "Blogger" and the URL would be "/blogger".

Peeking over people's shoulders at Formos, I've been seeing people
using the -Page suffix already.  I just want to neaten up the URL
related to that.


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




--
http://thegodcode.net


-
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: 答复: Chinese can not display correctly

2008-06-25 Thread Korben Zhang
Is there any ways  doesn't need native2ascii?

2008/6/25 滕训华 <[EMAIL PROTECTED]>:

> Yes,chinese display correctly after compile by native tool,thanks very much
>
> -邮件原件-
> 发件人: dhning [mailto:[EMAIL PROTECTED]
> 发送时间: 2008年6月25日 14:38
> 收件人: Tapestry users
> 主题: Re: Chinese can not display correctly
>
> Hi,
>  You should first utilize native2ascii(in jdk/bin) to convert the
> appname_zh_CN.properties to asc, then it should solve your probelem.
>  I don't know why T5 deal with internationalization differently from T4. In
> T4, we developer don't have to convert the resource files, we just need
> input Chinese and it displays correctly.
>
>  And if your IDE is eclipse, you can find some plugin to help you convert
> encoding automatically.
>
> Thanks!
>
> DH
>
>
> - Original Message -
> From: "滕训华" <[EMAIL PROTECTED]>
> To: "'Tapestry users'" 
> Sent: Wednesday, June 25, 2008 8:44 AM
> Subject: Chinese can not display correctly
>
>
> >I use the ${message:labelKey} in the tml and define the labelKey in the
> > properties with Chinese characters,but when the page display ,the Chinese
> > can not display correctly.
> >
> >
> >
> > By the way,my properties file is define with UTF-8
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Korben Zhang
Blog: http://korben-zhang.blogspot.com | http://korbenzh.spaces.live.com


Re: BeanModel and complex types?

2008-06-25 Thread Udo Abel
Hi Kris,

thank you for the quick response! Thats what I was looking for.

Udo.

 Original-Nachricht 
> Datum: Wed, 25 Jun 2008 10:18:33 +0200
> Von: Kristian Marinkovic <[EMAIL PROTECTED]>
> An: "Tapestry users" 
> Betreff: Re: BeanModel and complex types?

> hi udo,
> 
> you have to  contribute the child property type to the 
> DefaultDataTypeAnaylzer
> so the BeanModelSource will not ignore it
> 
> public static void contributeDefaultDataTypeAnalyzer...{
>configuration.add(MyType.class,"myType");
> 
> take a look https://issues.apache.org/jira/browse/TAPESTRY-2460
> it has two examples how to display a complex child property with another
> block (containing another BeanEditor)
> 
> g,
> kris
> 
> 
> 
> 
> "Udo Abel" <[EMAIL PROTECTED]> 
> 25.06.2008 10:05
> Bitte antworten an
> "Tapestry users" 
> 
> 
> An
> users@tapestry.apache.org
> Kopie
> 
> Thema
> BeanModel and complex types?
> 
> 
> 
> 
> 
> 
> 
> Hi,
> 
> in many situations I have objects containing other objects as fields, 
> resulting from a 1:1 reference in a database. E.g., an employee has a 
> refrence to the subsidiary where he is working.
> In those cases I want to display the name of the subsidiary in a Grid 
> component.
> The property can be accessed by something like
> employee.getSubsidiary().getName();
> 
> Is there a way to extend the BeanModel to access those properties?
> Or do I have to duplicate all fields from complex types in simple fields 
> at the top level object, like
> employee.getSubsidiaryName();
> ?
> 
> Thanks,
> Udo.
> -- 
> Pt! Schon vom neuen GMX MultiMessenger gehört?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

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



T5:class reloading problem with Tomcat 6

2008-06-25 Thread Angelo Chen

Hi,

I use tomcat 6 and IDEA IDE, in the IDEA I set the project's exploded
directory to:

/Users/abc/myapp/ROOT

and the above directory is mapped as an entry under $CATALINA_HOME. in the
IDEA i did not run or debug, just compile/build, the T5 picks up any changes
I made to the template file, but not the page classes, I checked the above
directory and can see the java class has been compiled and placed in the
correct directory, just the changes are not reflected until I re-boot the
server, any idea why? Thanks.

Angelo
-- 
View this message in context: 
http://www.nabble.com/T5%3Aclass-reloading-problem-with-Tomcat-6-tp18107826p18107826.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



dynamic validation

2008-06-25 Thread Joachim Van der Auwera
I have a page which contains an input component for which the limits 
should be determined at runtime. Does anybody know how this can be best 
achieved?


I tried something like the following in my template

t:validate="min=${value.MinimumValue},max=${value.MaximumValue}"/>


But this fails.

Any ideas?

Thanks,
Joachim

--
Joachim Van der Auwera
PROGS bvba, progs.be


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



Re: BeanModel and complex types?

2008-06-25 Thread Kristian Marinkovic
hi udo,

you have to  contribute the child property type to the 
DefaultDataTypeAnaylzer
so the BeanModelSource will not ignore it

public static void contributeDefaultDataTypeAnalyzer...{
   configuration.add(MyType.class,"myType");

take a look https://issues.apache.org/jira/browse/TAPESTRY-2460
it has two examples how to display a complex child property with another
block (containing another BeanEditor)

g,
kris




"Udo Abel" <[EMAIL PROTECTED]> 
25.06.2008 10:05
Bitte antworten an
"Tapestry users" 


An
users@tapestry.apache.org
Kopie

Thema
BeanModel and complex types?







Hi,

in many situations I have objects containing other objects as fields, 
resulting from a 1:1 reference in a database. E.g., an employee has a 
refrence to the subsidiary where he is working.
In those cases I want to display the name of the subsidiary in a Grid 
component.
The property can be accessed by something like
employee.getSubsidiary().getName();

Is there a way to extend the BeanModel to access those properties?
Or do I have to duplicate all fields from complex types in simple fields 
at the top level object, like
employee.getSubsidiaryName();
?

Thanks,
Udo.
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

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




BeanModel and complex types?

2008-06-25 Thread Udo Abel
Hi,

in many situations I have objects containing other objects as fields, resulting 
from a 1:1 reference in a database. E.g., an employee has a refrence to the 
subsidiary where he is working.
In those cases I want to display the name of the subsidiary in a Grid component.
The property can be accessed by something like
employee.getSubsidiary().getName();

Is there a way to extend the BeanModel to access those properties?
Or do I have to duplicate all fields from complex types in simple fields at the 
top level object, like
employee.getSubsidiaryName();
?

Thanks,
Udo.
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

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



答复: Chinese can not display correctly

2008-06-25 Thread 滕训华
Yes,chinese display correctly after compile by native tool,thanks very much

-邮件原件-
发件人: dhning [mailto:[EMAIL PROTECTED] 
发送时间: 2008年6月25日 14:38
收件人: Tapestry users
主题: Re: Chinese can not display correctly

Hi,
  You should first utilize native2ascii(in jdk/bin) to convert the
appname_zh_CN.properties to asc, then it should solve your probelem.
  I don't know why T5 deal with internationalization differently from T4. In
T4, we developer don't have to convert the resource files, we just need
input Chinese and it displays correctly.
  
  And if your IDE is eclipse, you can find some plugin to help you convert
encoding automatically.

Thanks!

DH


- Original Message - 
From: "滕训华" <[EMAIL PROTECTED]>
To: "'Tapestry users'" 
Sent: Wednesday, June 25, 2008 8:44 AM
Subject: Chinese can not display correctly


>I use the ${message:labelKey} in the tml and define the labelKey in the
> properties with Chinese characters,but when the page display ,the Chinese
> can not display correctly. 
> 
> 
> 
> By the way,my properties file is define with UTF-8
> 
>


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



Re: programmatic component rendering

2008-06-25 Thread Udo Abel
Thank you for your hints - 
I'm very new to Tapestry, so I need to do some experimenting to get the 
concepts right.
As a traditional servlet programmer, I would want something like
Component.render(writer);
but that would of course be incompatible with the framework.
Nevertheless, the framework itself must do the trick, since it invokes the 
components in a template somehow.
Because of that and the documentation, which states for the 
BeforeRenderTemplate Phase: 
"This phase exists to allow a component to decorate its template...",
I thought there might be  way to dynamically change the template at that point.

Regards,
Udo,

 Original-Nachricht 
> Datum: Mon, 23 Jun 2008 18:06:18 -0700
> Von: "Howard Lewis Ship" <[EMAIL PROTECTED]>
> An: "Tapestry users" 
> Betreff: Re: programmatic component rendering

> Actually, sounds like a large amount of what you want could be covered
> quite easily using the If and Unless components.
> 
> On Mon, Jun 23, 2008 at 2:32 AM, Kristian Marinkovic
> <[EMAIL PROTECTED]> wrote:
> > hi udo,
> >
> > there are different approaches to it... :) ...
> >
> > you can configure the view using blocks ...
> >
> > i do it by defining some Blocks that are then composed using
> > certain rules through my pimped BeanEditor component.
> >
> > eg. a new Dealer has at least one employee. Therefore when a new
> > Dealer is created i get the input fields to create a new employee as
> > well. when i edit a Dealer i only get a select option where i can select
> > the main employee. which block is displayed is controlled by a service
> > that has some rules contributed. so all i have to do is to define the
> > rules
> > ( fine granular: uses the beantype, propertytype, the current page, and
> a
> > state) and pass in my bean to my pimped BeanEditor component. The
> > contributed rules have a reference to the current bean and therefore can
> > excute some logic and control the displayed block respectively.
> >
> > i hope this helps :)
> >
> > g,
> > kris
> >
> >
> >
> >
> > "Udo Abel" <[EMAIL PROTECTED]>
> > 23.06.2008 10:26
> > Bitte antworten an
> > "Tapestry users" 
> >
> >
> > An
> > users@tapestry.apache.org
> > Kopie
> >
> > Thema
> > programmatic component rendering
> >
> >
> >
> >
> >
> >
> >
> > Hi,
> >
> > we're planning a highly dynamic web app, where it is necessary to
> display
> > certain components depending of the application state. E.g., in an
> address
> > detail view there should be a paragraph which contains different details
> > for a "customer" and a "supplier". Or if the balance of an account is
> > greater than a certain amnout, another component should be redered on
> the
> > current page (or within the current component, respectively).
> > Since there are many such situations and combinations, we can't build
> > static tml files for all of them.
> >
> > So, is it possible to render an arbitrary component based on a
> > programmatic choice from within the rendering of a component?
> >
> > Thanks,
> > Udo.
> > --
> > GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
> > Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> 
> 
> -- 
> Howard M. Lewis Ship
> 
> Creator Apache Tapestry and Apache HiveMind
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

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



Re: Required parameters: also not null?

2008-06-25 Thread Kristian Marinkovic
don't forget the BeanEditorForm... object may as well be null




"Howard Lewis Ship" <[EMAIL PROTECTED]> 
25.06.2008 00:06
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
Re: Required parameters: also not null?







Working on this now, and there are plenty of cases where a binding is
required but the value may be null; for example, TextField (the value
may initially be null, but must be bound).

On Tue, Jun 24, 2008 at 1:17 PM, Matt Kerr <[EMAIL PROTECTED]> wrote:
> the 'value' proposition you mention is forward compatibility, no?
>
> i guess if fwd compatibility is not a concern - sure, do whatever.
>
>
> On Tue, Jun 24, 2008 at 3:23 PM, Howard Lewis Ship <[EMAIL PROTECTED]> 
wrote:
>> True, my concern is that we'll find that every use of required=true
>> also has acceptNull=false, in which case we add complexity without
>> providing value.
>>
>> On Tue, Jun 24, 2008 at 12:12 PM, Filip S. Adamsen <[EMAIL PROTECTED]> 
wrote:
>>> +1 on something like that.
>>>
>>> -Filip
>>>
>>> On 2008-06-24 19:48, Thiago H. de Paula Figueiredo wrote:

 Em Tue, 24 Jun 2008 14:32:15 -0300, Matt Kerr <[EMAIL PROTECTED]>
 escreveu:

> why not specify whether params allow null - rather than break things 
?
> default to the old behavior.
>
> it's not uncommon to have a null param - dunno why it would be
> different in a component.

 Agreed 100%. Required = some value must be given to the parameter. 
Not
 null = some not null value must be given. Required != not null.

 We could add some like this to @Parameter and support it in 
tapestry-core
 easily:

 boolean acceptNull() default true;

 Then anyone writing components would get the automatic null value 
checking
 if wanted or needed without disrupting old code or changing how 
parameters
 work.

 Thiago

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

>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator Apache Tapestry and Apache HiveMind
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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