Re: Simpler Select configuration

2011-06-03 Thread Howard Lewis Ship
A reminder: org.apache.tapestry5.components.Select is not the only class allowed to render a or tag. Rather than bending code ment for one purpose too far, why not think in terms of a family of components that do similar things, but are applicable to different situations? On Fri, Jun 3, 2011 at

Re: Simpler Select configuration

2011-06-03 Thread Taha Hafeez
Wrote a post about it. http://tawus.wordpress.com/2011/06/04/tapestry-magic-14-easy-selection/ and if you find it useful I can add it to the wiki. regards Taha On Fri, Jun 3, 2011 at 8:54 PM, Taha Hafeez wrote: > I use a configuration, which is similar to the one suggested by inge. The > usag

Re: java enterprise spesification with tapestry

2011-06-03 Thread ronizedsynch
Thank a lot MR. HLS How about specification of JEE (Java Enterprise Edition). I want to expert in tapestry, but I am a newbie in web application. would you tell me the right steps to learn it. "a bit sentences is the expensive knowledge for newbie" Regard, Rony -- View this message in context

Re: java enterprise spesification with tapestry

2011-06-03 Thread Howard Lewis Ship
Tapestry requires JDK 1.5 or better, and a servlet container (either Servlet API 2.4 or 2.5, I'd have to check which is the base version). Any recent version of Jetty or Tomcat will do fine. On Fri, Jun 3, 2011 at 3:59 PM, ronizedsynch wrote: > good morning all :D > > However this question is new

java enterprise spesification with tapestry

2011-06-03 Thread ronizedsynch
good morning all :D However this question is newbie question. please mention me the requirement of java enterprise specification. thank all :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/java-enterprise-spesification-with-tapestry-tp4452845p4452845.html Sent from the

PageRenderLinkTransformer and rewriting urls for root requests

2011-06-03 Thread tapes...@bg.cdev.de
Hello, I'm trying to use the PageRenderLinkTransformer to rewrite my urls but it doesn't seem to be the right way for my case. The problem is that the decodePageRenderRequest method isnt invoked when I request the root without a page name. I would like to rewrite dynamically urls by the requested

Re: 301 vs 302

2011-06-03 Thread Mark
Perfect. Thank you. On Fri, Jun 3, 2011 at 12:41 PM, Josh Canfield wrote: >> Is there a simple way to do something similar and get a 301 permanent >> redirect? In particular, can I modify the PageRenderLinkWithContext to >> control the type of redirect? > > Tapestry eventually calls ServletRespo

Re: Render a specific component in an AJAX request

2011-06-03 Thread Thiago H. de Paula Figueiredo
On Fri, 03 Jun 2011 15:33:19 -0300, Clément Uster wrote: Hi all, Hi! I could wrap all my component into Tapestry Blocks (in my page), and then return the block at the end of the @OnEvent method. But I can't do this, because in some cases, the page may not know all the component names. Do

Render a specific component in an AJAX request

2011-06-03 Thread Clément Uster
Hi all, Let's say my page has an AJAX actionlink. This link has a context that specifies the component name to render in a zone. The @OnEvent method called in my page should return to the browser the body of the component (which name has been specified as a context parameter). It looks like this

Re: 301 vs 302

2011-06-03 Thread Josh Canfield
> Is there a simple way to do something similar and get a 301 permanent > redirect? In particular, can I modify the PageRenderLinkWithContext to > control the type of redirect? Tapestry eventually calls ServletResponse.sendRedirect, which is always a 302. If you want to send a 301 you have to do i

301 vs 302

2011-06-03 Thread Mark
A have an onActivate method like this: Object onActivate(EventContext context) { //we have what we need to render the page if(context.getCount() == 2) { this.keyword = context.get(String.class,0); this.page = context.get(Integer.class, 1);

Re: Simpler Select configuration

2011-06-03 Thread Taha Hafeez
I use a configuration, which is similar to the one suggested by inge. The usage is @InjectSelectSupport(type = User.class, label = "${name}(${address})", index = "id") private List users; Using a class transformation, it introduces a method public SelectSupport getUsersSupport(); in the compon

Re: Simpler Select configuration

2011-06-03 Thread Bob Harner
I would prefer to see something more familiar-looking: ${oneItem.name} Not sure how possible that is. But it sure would be a lot more flexible, and a lot easier for newbies to understand. On Fri, Jun 3, 2011 at 7:38 AM, Thiago H. de Paula Figueiredo wrote: > On Fri, 03 Jun 2011 08:22:13

Re: Simpler Select configuration

2011-06-03 Thread Thiago H. de Paula Figueiredo
On Fri, 03 Jun 2011 08:22:13 -0300, LLTYK wrote: How about a shorthand for selectmodelfactory calls. Something like This could (or should) be implemented as a binding prefix. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and ins

Re: Simpler Select configuration

2011-06-03 Thread LLTYK
How about a shorthand for selectmodelfactory calls. Something like -- View this message in context: http://tapestry-users.832.n2.nabble.com/Simpler-Select-configuration-tp6421890p6434883.html Sent from the Tapestry Users mailing list archive at Nabble.com. --

Re: StackMapTable format error: bad class index

2011-06-03 Thread Brian Long
Oops! I'm currently using tapetry version 5.2.5 java 1.6.0.24 jetty 6.1.21 javassist 3.7 GA I might try changing the javaassist to an older revision to see it that fixes the problem . . . /Brian. On 2 June 2011 16:27, Taha Hafeez wrote: > Hi > > You have not mentioned which tapestry version y