Bean editor model for User does not contain a property named 'id'.

2010-12-08 Thread Taha Hafeez
Hi I am getting "Bean editor model for User does not contain a property named 'id'" error while using beandisplay component. The User class does contain property id which is of type Long(has proper getter and setter methods). Only thing I suspect can be the problem is that User implements a generi

T5 Auto Generated Picture Gallery (Intranet)

2010-12-08 Thread ael
This code will get pictures from the file server then put it in the template automatically. .tml [img src="file:${imagepath1.filename}" /] .java /** * Start page of application TapestryAutoLoadPictures. */ public class Index { @Inject private AssetSource assetSource;

Re: Hello,How can I add a dynamic value in URL,just like encode current locale

2010-12-08 Thread jqzone
Thanks for all your replies! Actually,We are developing an application in Multi-Tenant mode,Every tenant shares the same web domain.In a private network(every tenant login in before use the app for example),tapestry works well.But now we meet a new problem,our customers need to publish some pages t

Re: Calling the Tapestry server from plain Javascript

2010-12-08 Thread Robert Zeigler
Why not pass your javascript an event link? Then your js can invoke getJSON, tapestry will handle the request and call an event handler server-side. Your event handler can then store the value and return a JSONObject. You can stick the value into the url as a request parameter and get it back ou

Re: Calling the Tapestry server from plain Javascript

2010-12-08 Thread Thiago H. de Paula Figueiredo
On Wed, 08 Dec 2010 20:55:27 -0200, Tim Koop wrote: I have a pile of Javascript on my page (it's a component really), and sometimes it comes up with a value it needs to store on the server (in a SessionState or something). Can someone please tell me the best way to call the server from pl

Calling the Tapestry server from plain Javascript

2010-12-08 Thread Tim Koop
I have a pile of Javascript on my page (it's a component really), and sometimes it comes up with a value it needs to store on the server (in a SessionState or something). Can someone please tell me the best way to call the server from plain Javascript? I'm using jQuery, which is already worki

Re: Adding a user-defined function to onclick of t:actionlink

2010-12-08 Thread Juan E. Maya
Richard, u could observe the Tapestry.ZONE_UPDATED_EVENT event that tapestry raises whenever a zone is updated as explained on http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Zone.html On Wed, Dec 8, 2010 at 3:30 PM, Richard Hill wrote: > Hi All,

Adding a user-defined function to onclick of t:actionlink

2010-12-08 Thread Richard Hill
Hi All, I have an t:actionlink in a t:loop that triggers a zone update. This zone is a page overlay and is initially hidden, that is style = visibility: hidden. On user-click, the zone updates, and then I want it to be rendered visible. Ideally I'd like just to change the style to visibility: vis

Re: Get referer url

2010-12-08 Thread Andreas Andreou
that's the only way but it's not bulletproof. Perhaps links to your app could require an extra parameter that would identify the source On Wed, Dec 8, 2010 at 11:44, Gnu Ubuntu wrote: > Hi, > In my app I'm redirected to an external url, and after I need to return to > my app. I'm looking for a wa

Get referer url

2010-12-08 Thread Gnu Ubuntu
Hi, In my app I'm redirected to an external url, and after I need to return to my app. I'm looking for a way to store the referer url before exiting my app to return to. For now, I'm using : String referer = request.getHeader("referer"); But it's not safe to referer to this browser information. Do

Re: T5 portuguese message for "minimum-string-length"

2010-12-08 Thread Ulrich Stärk
http://tapestry.apache.org/input-validation.html#InputValidation-CustomizingValidationMessages Uli On 07.12.2010 13:16, Sergio Esteves wrote: Sorry for the previous email, the correct message is: 'Tem de inserir pelo menos %d characteres para %s.' On 07-12-2010 12:14, Sergio Esteves wrote: H