T5: zone in a grid

2011-01-13 Thread Angelo C.
Hi, I have a grid with a actionLink in each row, it links to a zone, it works. but the zone's location is fixed in the first row, is there way to put the zone in each row ? Thanks, Angelo < a t:type="actionlink" t:id="review" context="msg.id" zone="output" > action

Re: T5: zone in a grid

2011-01-13 Thread Joost Schouten (ml)
Make sure each zone has a unique DOM id. So something like: < a t:type="actionlink" t:id="review" context="msg.id" zone="prop:outputZoneId"> action where your java file has: public String getOutputZoneId() { return unique

Re: T5: zone in a grid

2011-01-13 Thread Angelo C.
Hi, Thanks for the fast reply, how to generate the unique id? i use this: public String getOutputZoneId() { return msg.getId().toString(); } but got error: Exception invoking function Tapestry.Initializer.zone with parameters [{"element": "1086"}]: [Exception... "An invalid or ill

utf-8 (swedish) characters in the URL

2011-01-13 Thread Mats Andersson
I have tried hard to get this working in Tapestry 5.1, but can't get it to work 100%. My intention is to have search parameters in the activation context to support RESTful URL:s for my search results page. This works out of the box in Tapestry, but since the Tapestry specific encoding of no

Grid onAction Problem IEM6

2011-01-13 Thread Tooobi
Dear all, I have a curious problem with my grid component. The grid works fine on firefox and IE desktop, as well as opera and safari moblie. The grid produces only errors on the IEmobile on WM6.5. Thanks in advance! Tooobi My Grid component is: ${fahrzeug.kennzeichenNummer} t

Re: T5: zone in a grid

2011-01-13 Thread Taha Hafeez
You can try //If it is a component @Parameter(value="myzone") private String clientZoneId; public String getOutputZoneId(){ return clientZoneId + msg.getId(); } othewise public String getOutputZoneId(){ return "myzone" + msg.getId(); } What you are generating is a number and AFAIK dom

Re: T5: zone in a grid

2011-01-13 Thread Angelo C.
works! thanks. Taha Hafeez wrote: > > > public String getOutputZoneId(){ >return "myzone" + msg.getId(); > } > > > > What you are generating is a number and AFAIK dom id cant start with a > numeric > > regards > taha > > > On Thu, Jan 13, 2011 at 4:34 PM, Angelo C. > wrote: > >> >>

Re: utf-8 (swedish) characters in the URL

2011-01-13 Thread Martin Strand
Hi Mats. I believe you need to URLEncode those characters before returning them from your custom URLEncoder. This is what I'm doing and it works fine in our app - Unicode characters show up "pretty" in the address field. /searchresult/övrigt /searchresult/日本 PrettyURLEncoder.java: public

Re: Grid onAction Problem IEM6

2011-01-13 Thread LLTYK
Bad relative link in the css or something sending asset requests to the page itself? -- View this message in context: http://tapestry-users.832.n2.nabble.com/Grid-onAction-Problem-IEM6-tp5917903p5917932.html Sent from the Tapestry Users mailing list archive at Nabble.com. --

Re: Grid onAction Problem IEM6

2011-01-13 Thread Tooobi
Thanky ou very much for your fast response. I checked my css and saw configurations for assets like: - button images .tologinareaimage { background-image: url(../pics/button_zum_anmelden.png); background-color: transparent; width: 150px; height: 50px; border: 0;} - taxtarea background: #FE

Re: Grid onAction Problem IEM6

2011-01-13 Thread Thiago H. de Paula Figueiredo
On Thu, 13 Jan 2011 10:32:05 -0200, Tooobi wrote: The corresponding code in the class is: @Inject @Path("context:pics/button_zum_anmelden.png") @Property private Asset _toLoginAreaImage; In the tml-file I have also assets like: asset:context:pics/black.gif

Re: Grid onAction Problem IEM6

2011-01-13 Thread Tooobi
Thank you very much for your response! I removed the whole ... block containing the image, but the problem still exist. I will revise my code as you described. Is there any other possible error? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-onAction-Problem-IEM6

Clearing session data T 5.1.0.5

2011-01-13 Thread Richard Hill
Hi All, I have an app that's stateful, a fair number of @Persist'd fields on various pages + an SSO with logged in user info. What I want to do is clear all of this session data when a user logs in. The scenario here is a user logging in when he's already logged in (or logging in as a different u

Re: Grid onAction Problem IEM6

2011-01-13 Thread LLTYK
I would log all HTTP requests to the server and see which one is triggering the error. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Grid-onAction-Problem-IEM6-tp5917903p5918246.html Sent from the Tapestry Users mailing list archive at Nabble.com.

Re: Clearing session data T 5.1.0.5

2011-01-13 Thread Joost Schouten (ml)
Go with the suggestion you already posted or try to invalidate the session on the setupRender of the login page in stead. Cheers, Joost On 13/01/11 2:50 PM, Richard Hill wrote: Hi All, I have an app that's stateful, a fair number of @Persist'd fields on various pages + an SSO with logged in

Re: Clearing session data T 5.1.0.5

2011-01-13 Thread Richard Hill
Hi Joost, I'd prefer not to do it in setupRender as that will clear the session even if the logged-in user has accidently hit the back button - when he goes forward to the app the state will be cleared. So I'll loop over the objects and do it manually. Cheers On Thu, 2011-01-13 at 15:09 +0100

Re: Clearing session data T 5.1.0.5

2011-01-13 Thread Joost Schouten (ml)
Good point. I think looping over the objects sounds like a good option. I personally try to keep all persisted state for a user in one object So that I have tight conrol over what is in the session and what is not. Then you only have to alter/remove one object from the session and you know wh

Re: Grid onAction Problem IEM6

2011-01-13 Thread Josh Canfield
> .tologinareaimage { background-image: url(../pics/button_zum_anmelden.png); How are you including your css? Tapestry puts assets in a virtual folder so your relative reference won't be good. On Jan 13, 2011 4:32 AM, "Tooobi" wrote: > > > Thanky ou very much for your fast response. > > I

Re: Discussion- the verdict

2011-01-13 Thread Elin
I started with tapestry 5.1.2 some months ago thanks to a book called "Tapestry 5" from "Alexander Kolesnikov". It was a bit hard to understand how to create sites with this framework and yes, i also noticed the lack of documentation but with each new release it went better. Each time i had a pro

Grid / Ajax and checkbox

2011-01-13 Thread jean.JBN
Hello Everyone I have a page with two grid inside I add checkbox column in each gride And it's work

Re: Clearing session data T 5.1.0.5

2011-01-13 Thread Richard Hill
Yes agreed - I have just one ClientState object that I keep in the session, and this wraps global state values. But I do have lots of page-scoped @Persist'd fields - timestamps, various context/selection id's etc which need to get cleared too. I haven't extensively tested, but this seems to do th

Re: Grid / Ajax and checkbox

2011-01-13 Thread Thiago H. de Paula Figueiredo
On Thu, 13 Jan 2011 12:42:14 -0200, jean.JBN wrote: Hello Everyone Hi! Communication with the server failed: Render queue error in SetupRender[admin/Page:selectA]: The Select A component must be enclosed by a Form component. Tapestry's form field components must be declared inside a F

Re: Grid / Ajax and checkbox

2011-01-13 Thread LLTYK
Well if you *must* use the ajax grid paging... then don't use tapestry checkboxes. Use ordinary html checkboxes that have onclick javascript handlers that ping the server with their new value. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Grid-Ajax-and-checkbox-tp59184

Updating a page with a JSONObject

2011-01-13 Thread Mark Shead
The documentation says that the event handler for an Ajax call can return (among other things) a JSONObject. This lead me to believe that I could replace: return new MultiZoneUpdate("totalPriceZone", totalPriceZone); With something like: return new JSONObject().put("totalPriceZone", getTotalPrice(

Re: Updating a page with a JSONObject

2011-01-13 Thread Taha Hafeez
On Thu, Jan 13, 2011 at 8:54 PM, Mark Shead wrote: > The documentation says that the event handler for an Ajax call can > return (among other things) a JSONObject. This lead me to believe that > I could replace: > return new MultiZoneUpdate("totalPriceZone", totalPriceZone); > > In this case the

Re: Updating a page with a JSONObject

2011-01-13 Thread Thiago H. de Paula Figueiredo
On Thu, 13 Jan 2011 13:24:32 -0200, Mark Shead wrote: The documentation says that the event handler for an Ajax call can return (among other things) a JSONObject. Correct. This lead me to believe that I could replace: return new MultiZoneUpdate("totalPriceZone", totalPriceZone); Not c

Re: Updating a page with a JSONObject

2011-01-13 Thread Mark
>> With something like: >> return new JSONObject().put("totalPriceZone", getTotalPrice()); >> > In this case a JSONObject is returned to the caller which can be any > javascript and then the object can be > used in any way. If you want to update the zone you have to do it yourself Ok that makes se

Re: Updating a page with a JSONObject

2011-01-13 Thread Mark
>> This lead me to believe that >> I could replace: return new MultiZoneUpdate("totalPriceZone", >> totalPriceZone); > > Not correct. The second parameter should be a component or a block. Zone and > MuitiZoneUpdate are meant to be used without custom written JavaScript. > >> With something like: >

Re: utf-8 (swedish) characters in the URL

2011-01-13 Thread Mats Andersson
Thanks, that did it! The characters are handled correctly in the app and show up pretty in Firefox and Google Chrome. MSIE ( 8 ) shows the encoded characters in the URL (%nn%mm), but that is probably not my fault. I see that other sites have the same issue in MSIE. Mats Martin Strand skr

Re: Updating a page with a JSONObject

2011-01-13 Thread Taha Hafeez
public class SomePage { @Inject private ComponentResources resources; @Inject private JavaScriptSupport javaScriptSupport; void afterRender(){ //Create an event link Link link = resources.createEventLink("update"); javaScriptSupport("yourUpdateFunc('%s')", link.toAbsoluteURI()); } //Ha

Re: Grid onAction Problem IEM6

2011-01-13 Thread Tooobi
The css-file is included in a seperate layout.java with @IncludeStylesheet("context:layout/layout.css"). The corresponding layout.tml includes the content of the other tml-files which one of them contains the grid. I saw an example to build a submit button with an image on the following website.

Re: Grid / Ajax and checkbox

2011-01-13 Thread jean.JBN
Thanks everyone ! I will try using ordinary HTML and javascript. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-Ajax-and-checkbox-tp3339872p3340070.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Grid / Ajax and checkbox

2011-01-13 Thread Taha Hafeez
Another point i may add. This will create many checkboxes with same id and that javascript won't like regards Taha On Thu, Jan 13, 2011 at 10:03 PM, jean.JBN wrote: > > Thanks everyone ! > I will try using ordinary HTML and javascript. > -- > View this message in context:

Re: Discussion- the verdict

2011-01-13 Thread Joel Halbert
Yes, it's a pity that someone might be put off using the framework because of vocal, and misinformed minority. There's really no substitute for trying something yourself... On Wed, 2011-01-12 at 09:50 -0200, Thiago H. de Paula Figueiredo wrote: > On Wed, 12 Jan 2011 08:53:41 -0200, George Banus

Re: attn howard: live reloading breaking using jetty

2011-01-13 Thread Howard Lewis Ship
Another alternative is to set up src/main/resources as a class folder, not a source folder. It is added to the classpath as is, rather than copying its contents around at runtime. On Tue, Jan 11, 2011 at 11:56 PM, Sven Homburg wrote: > since using tapestry, there is more time for gaming ;-) > > w

Confirm Mixin

2011-01-13 Thread mwilliamson
I have a confirm mixin that I use. I can added it to a and it works fine. When I try to use it with a the confirmation box is displayed but the cancel button doesn't stop the submit. Dose anyone know how to make this work with a LinkSubmit or know of another way to do this? Confirm.java /**

Re: Grid onAction Problem IEM6

2011-01-13 Thread Josh Canfield
I'm sorry I said won't, what I meant was might not be good. Have you logged the requests to figure out which one's are no good? It looks like you are getting the error when you click a paging button? Have you turned off redirect after post? Josh On Thu, Jan 13, 2011 at 8:25 AM, Tooobi wrote: > >

Re: Confirm Mixin

2011-01-13 Thread Shing Hing Man
Have you tried the confirm Mixin in Tapx ? https://github.com/hlship/tapx/ Shing --- On Fri, 14/1/11, mwilliam...@kcp.com wrote: > From: mwilliam...@kcp.com > Subject: Confirm Mixin > To: "Tapestry users" > Date: Friday, 14 January, 2011, 2:01 > I have a confirm mixin that I > use.  I can

Re: Confirm Mixin

2011-01-13 Thread Josh Canfield
The answer is somewhere on the list. Essentially you need to put your confirm on a span around the text of the link because you can't prevent other handlers on the same element from running (browser/js limitation). something like: myconfirm Josh On Thu, Jan 13, 2011 at 10:01 AM, wrote: > I hav

Re: Need help upgrading JumpStart examples to Tapestry 5.2

2011-01-13 Thread françois facon
Hi I looking for the repository location for chenillekit 1.3.0. I tried https://nexus.codehaus.org/index.html#nexus-search;quick~chenille and I tried https://nexus.codehaus.org/content/repositories/snapshots/org/chenillekit/c

Re: Need help upgrading JumpStart examples to Tapestry 5.2

2011-01-13 Thread françois facon
In order to resolve some installation issues with the first version, a new repository is available. https://github.com/frafac-JumpStart/jumpstart-5.2.4.0 François Le 13 janvier 2011 20:49, françois facon a écrit : > Hi > > I looking for the repository location for chenillekit 1.3.0. > > I tri

Re: [5.2.4] Binding not found for required parameter called zone in mixin

2011-01-13 Thread françois facon
Hi all Do you see any raison that could explain why tapestry search this kind of parameter in the form? Where is this strategie dfine? Regards François Le 10 janvier 2011 14:09, Facon François a écrit : > in Jumpstart the page > http://jumpstart.doublenegative.com.au/jumpstart/examples/javasc

Re: [5.2.4] Binding not found for required parameter called zone in mixin

2011-01-13 Thread Josh Canfield
/** * Binding the zone parameter will cause any change of Select's value to be handled as an Ajax request that updates * the * indicated zone. The component will trigger the event {@link EventConstants#VALUE_CHANGED} to inform its * container that Select's value has changed.

Re: attn howard: live reloading breaking using jetty

2011-01-13 Thread Paul Stanton
ah, i did not know that. sounds like a good idea .. but since there is no documentation (eclipse) regarding the .classpath schema (as it's internal) can you explain how to do this? currently I have: output="target/dummy-resouces" /> output="target/test-classes"/> output="target/server-class

Re: attn howard: live reloading breaking using jetty

2011-01-13 Thread Kalle Korhonen
On Thu, Jan 13, 2011 at 3:44 PM, Paul Stanton wrote: > ah, i did not know that. sounds like a good idea .. but since there is no > documentation (eclipse) regarding the .classpath schema (as it's internal) > can you explain how to do this? Just read the instructions at http://tynamo.org/Developin

Re: attn howard: live reloading breaking using jetty

2011-01-13 Thread Paul Stanton
Kalle, are you referring to: "For src/main/resources folder, set the output to the same as the source folder (i.e. src/main/resources, Eclipse doesn't have a separate checkbox for "don't copy")" i was worried about windows throwing an error "dest can't be same as source" on every build ...

Re: Context of a Zone

2011-01-13 Thread Mark
It turns out there is a simple way to do this. So simple I was overlooking it. When you create a multizone update you give it the client id and the zone you wish to update. The zone will render with the present context. However, you can also simply give it a string with the contents you want rende

Re: Context of a Zone

2011-01-13 Thread Thiago H. de Paula Figueiredo
On Thu, 13 Jan 2011 23:16:32 -0200, Mark wrote: It turns out there is a simple way to do this. So simple I was overlooking it. When you create a multizone update you give it the client id and the zone you wish to update. The zone will render with the present context. However, you can also simp

Re: Tapestry 5.1.0.5 and HTML 5 Doctype

2011-01-13 Thread Benny Law
I have looked at the patch provided in https://issues.apache.org/jira/browse/TAP5-840 but it seems to be dealing with the issue of entities only and it's not for Tapestry 5.1.0.5. What I really want is to be able to output . Putting this in the .tml file isn't working. Can somebody suggest a soluti