Re: tapestry5-jquery simple sample not working

2012-04-03 Thread Chris Mylonas
Well if someone could relay this into the google group that would be great. I'm logged into google but cannot create a new topic :( pfft! Thanks Chris On 04/04/2012, at 4:12 PM, Chris Mylonas wrote: > Hi All, > > I'll post this in the google groups linked to the tapestry5-jquery project as > w

tapestry5-jquery simple sample not working

2012-04-03 Thread Chris Mylonas
Hi All, I'll post this in the google groups linked to the tapestry5-jquery project as well. To repeat what I have done: 1) Create a package under pages called test. 2) Create class JQuery.java with this in it. package org.example.jquerytest.pages.test; import org.apache.tapestry5.annotation

Re: Issue with Component Parameter

2012-04-03 Thread ksrijith
Thanks I was able to fix the issue by rewriting the code and removing all the static references. No easy way around :) - -- Don't Forget to Rate -- View this message in context: http://tapestry.1045711.n5.nabble.com/Issue-with-Component-Parameter-tp5612950p5616931.html Sent from the Tapestry

Deveopment mode suggestion

2012-04-03 Thread Chris Mylonas
Hi All, In development mode, is adding the ability to browse to a page e.g. example/TapestrySymbols, to view the currently loaded/configured symbols on the cards? Maybe enabled by a contributeApplicationDefaults setting. I was having some class reloading problems after removing some @Import an

tapestry5-jquery js question

2012-04-03 Thread Chris Mylonas
Howdy tapestry list, i'm mucking around with the jquery module and it's pretty simple to get the quickstart going. i'm adding my own stuff now and i seem to be breaking ALL jquery from working. In my Index.java I have @Import(library={"context:js/recept.js"}) @ImportJQueryUI("jquery.ui.core")

Re: Calling fnStandingRedraw to retain the current pagination settings using javaScriptSupport.addInitializerCall

2012-04-03 Thread Paul Stanton
Have you tried javaScriptSupport.addScriptCall("fnStandingRedraw();"); instead? I'm not sure if fnStandingRedraw is in fact a simple javascript method or a valid initializer. p. On 4/04/2012 2:39 AM, russellJB wrote: Hello All! I am using the CreateEventLink method of the ComponentResource

Re: Tapestry 5.3.2 throws TapestryException even though the original Exception was caught and properly handled

2012-04-03 Thread George Ludwig
Thiago, Thanks for the rapid reply. While putting together a test case to send you (the actual code is very long and complex), I figured out this was an error on my part. Basically, I assumed the exception was being thrown by one method, when in fact it was being thrown by a different method Obv

Re: image shown & not shown

2012-04-03 Thread sommeralex
I found the solution, but it still is wired. WORKING STARTPAGE url(img/user/thumb/r7wqdd1at3l8mvz5fvzf.jpg) NOT WORKING ON ANOTHER PAGE url(img/user/thumb/r7wqdd1at3l8mvz5fvzf.jpg) WORKING STARTPAGE url(/img/user/thumb/r7wqdd1at3l8mvz5fvzf.jpg) WORKING ON ANOTHER PAGE url(/img/user/thumb/r7

Re: Tapestry 5.3.2 throws TapestryException even though the original Exception was caught and properly handled

2012-04-03 Thread Thiago H. de Paula Figueiredo
On Tue, 03 Apr 2012 18:34:11 -0300, George Ludwig wrote: Hi all, Hi! The problem is that when an Exception is thrown during the calculation of the number, Tapestry detects that an Exception was thrown even though it was gracefully handled, and throws a TapestryException. This completely d

Re: image shown & not shown

2012-04-03 Thread Thiago H. de Paula Figueiredo
On Tue, 03 Apr 2012 17:34:23 -0300, sommeralex wrote: Hi! Hi! I have a component which is loading an image. The wired thing: the same component is not showing the (same) image on another page. so, if i am embedding the component on another page, it is not shown. Even the page-source (html

Tapestry 5.3.2 throws TapestryException even though the original Exception was caught and properly handled

2012-04-03 Thread George Ludwig
Hi all, In my page there is a method that calculates a number, which might throw a divide by zero or null pointer Exception. This number is used in other methods that do some calculation and return a useful String to be displayed by the UI. The problem is that when an Exception is thrown during t

Re: Dynamic CSS depending on URL

2012-04-03 Thread Lance Java
Take a look at my RequestDelegate class which delegates every method to another class. I then override one method which I want to change. You could do exactly the same and create a LinkDelegate. After all, it's just an interface :) On Tuesday, 3 April 2012, Juan Alba wrote: > First of all thank

Re: Tapestry 4 chrome support

2012-04-03 Thread zeewolf
Thanks for the quick response Howard. Your comment on the DTD sounds spot on and I didn't consider that (probably the most obvious thing) earlier today. The framework is pretty ancient compared to what's currently vogue, but our Tapestry 4 application is a mature product that has established a str

Re: Tapestry 4 chrome support

2012-04-03 Thread Howard Lewis Ship
Alas, Tapestry 4 is pretty out of date at this point; all the effort for several years has gone into Tapestry 5. Which version of Tapestry 4 are you using? For the most part, T4 renders straight HTML and does a lot less client and JavaScript than T5. Chances are, your (now ancient :-) applicatio

Calling fnStandingRedraw to retain the current pagination settings using javaScriptSupport.addInitializerCall

2012-04-03 Thread russellJB
Hello All! I am using the CreateEventLink method of the ComponentResources class to create a link to a delete event on my page called UserList using the following: "resources.createEventLink("delete", user.getUserId()).toURI();" The UserList page uses datatables to create a list of user's data

Tapestry 4 chrome support

2012-04-03 Thread Stephen Munro
Hello, Can anyone tell me if there are any Tapestry 4 issues with Chrome? Today, I viewed one of our Tapestry 4 applications in Chrome and it didn't render properly. Some of the forms and components created via Tapestry 4 wouldn't work correctly. I've going to investigate this further tomorrow, bu

Re: Dynamic CSS depending on URL

2012-04-03 Thread Juan Alba
First of all thanks a lot for all your time and help Lance. I have used your example and worked perfect. I could use the mode to put the css dynamically as I wished. Thanks a lot. Now my problem is trying to use it in my web app. In tapestry 5.1.0.5 LinkImpl doesn't have getBasePath(), or copyWith

Re: Lightweight TapestryTools update site

2012-04-03 Thread Igor Drobiazko
Yep, thanks. On Tue, Apr 3, 2012 at 4:34 PM, Gavin Lei wrote: > Hi Igor, > > I think you mean "supporting Indigo and Juno" :-D > > 2012/4/3 Igor Drobiazko : > > @All: guys, please don't forget that this tool is built within a limited > > time frame of GSoC. In order to provide a kick-ass tool fo

Re: Broke something! In contributeApplicationDefaults when adding tapestry5-jquery (jetty:run)

2012-04-03 Thread Chris Mylonas
Hmmm...never seen that DevelopmentModule before Thanks & Sorry! On 04/04/2012, at 12:33 AM, trsvax wrote: > It looks like you might be contributing > > "tapestry.production-mode", false > "tapestry.compress-whitespace", false > > in your AppModule and DevelopmentModule > > -- > View this mes

Re: First Custom Component -> Confused; source = null, but values populated mysteriously

2012-04-03 Thread Chris Mylonas
>> tapestry could benefit from a "rosetta stone" of the equivalent methods of >> doing the same thing. > > That's a good documentation suggestions . . . JIRA please? :) Usually, > Tapestry avoids to provide more than one way of doing the same thing. On the > other hand, sometimes the Tapestry f

Re: Lightweight TapestryTools update site

2012-04-03 Thread Gavin Lei
Hi Igor, I think you mean "supporting Indigo and Juno" :-D 2012/4/3 Igor Drobiazko : > @All: guys, please don't forget that this tool is built within a limited > time frame of GSoC. In order to provide a kick-ass tool for the Tapestry > community, Gavin needs to concentrate on a limited feature s

Re: Broke something! In contributeApplicationDefaults when adding tapestry5-jquery (jetty:run)

2012-04-03 Thread trsvax
It looks like you might be contributing "tapestry.production-mode", false "tapestry.compress-whitespace", false in your AppModule and DevelopmentModule -- View this message in context: http://tapestry.1045711.n5.nabble.com/Broke-something-In-contributeApplicationDefaults-when-adding-tapestry5-

Re: Lightweight TapestryTools update site

2012-04-03 Thread Igor Drobiazko
@All: guys, please don't forget that this tool is built within a limited time frame of GSoC. In order to provide a kick-ass tool for the Tapestry community, Gavin needs to concentrate on a limited feature set. Of course, it would be cool to cover older eclipse versions too, but Elipse June will be

Broke something! In contributeApplicationDefaults when adding tapestry5-jquery (jetty:run)

2012-04-03 Thread Chris Mylonas
Tapes-Try, I broke something. Prior to adding tapestry5-jquery to my pom as per the suggestions on the Usage tab @ http://tapestry5-jquery.com/ I had some contributeApplicationDefaults added. Namely: configuration.add("tapestry.production-mode", false); configuration.add("tap

Re: Lightweight TapestryTools update site

2012-04-03 Thread Gavin Lei
Hi Thiago, Yeah, we will focus on TapestryTools core features implementation first. Support for past Eclipse version is in my plan, but low priority, it depends on future users' demand and my free time 2012/4/3 Thiago H. de Paula Figueiredo : > On Tue, 03 Apr 2012 08:02:01 -0300, Gavin Lei > wro

Re: First Custom Component -> Confused; source = null, but values populated mysteriously

2012-04-03 Thread Thiago H. de Paula Figueiredo
On Tue, 03 Apr 2012 10:06:38 -0300, Chris Mylonas wrote: thanks again Mr T heheheh I don't look like him much, but I sometimes read some questions in this mailing lists (fortunately, just a few) and think "what's this jibber-jabber you're talking?", hehehe tapestry could benefit from

Re: Lightweight TapestryTools update site

2012-04-03 Thread Gavin Lei
Hi Chris, Thank you for your trial and response 在 2012年4月3日 下午8:40,Chris Mylonas 写道: > Gavin, > > Looking forward to more template editing now that I don't have to refer to > (or try to remember) all the available attributes! > I reckon I've referred to the Grid apidocs at least 2 dozen times i

Re: First Custom Component -> Confused; source = null, but values populated mysteriously

2012-04-03 Thread Chris Mylonas
thanks again Mr T tapestry could benefit from a "rosetta stone" of the equivalent methods of doing the same thing. i've spent a few hours today templating my first component with MarkupWriter.element()/end(), writeRaw() and .tml files. Each have their strengths. In this case e.g. VM arguments

Re: Lightweight TapestryTools update site

2012-04-03 Thread Chris Mylonas
+1 but i didn't want to say it :) I checked out that 3.5 (Galileo?) is still available for d/l and it was released in 2009 - so it looks like the product life-cycle is 3 years. Helios will be EOL in 15 months anyway. On 03/04/2012, at 10:57 PM, Thiago H. de Paula Figueiredo wrote: > On Tue, 0

Re: Lightweight TapestryTools update site

2012-04-03 Thread Thiago H. de Paula Figueiredo
On Tue, 03 Apr 2012 08:02:01 -0300, Gavin Lei wrote: Hi Athneria, Hi, guys! Thank you for your response. I just start my development job it in Eclipse Indigo, and does not test Eclipse 3.6 yet, this seems to be a compatible issue. We will try to cover 3.6 in the future once we have a

Re: Lightweight TapestryTools update site

2012-04-03 Thread Chris Mylonas
The unicorn icon in the editor pane is handy to differentiate between .java files and .tml files with late-night bleary eyes :) Can't wait for Convenient Switch On 03/04/2012, at 9:25 PM, Gavin Lei wrote: > This project in still in proposal prepare period and this is still a > *trial* version

Re: Lightweight TapestryTools update site

2012-04-03 Thread Chris Mylonas
Gavin, Looking forward to more template editing now that I don't have to refer to (or try to remember) all the available attributes! I reckon I've referred to the Grid apidocs at least 2 dozen times in the last 6 months. Is #3 (Convenient switch) implemented yet? I haven't got a CMD-R feature

Re: First Custom Component -> Confused; source = null, but values populated mysteriously

2012-04-03 Thread Thiago H. de Paula Figueiredo
On Tue, 03 Apr 2012 00:02:36 -0300, Chris Mylonas wrote: That's awesome!!! Thanks a lot Thiago VM arguments for the unwashed are: -Dtapestry.production-mode=false -Dtapestry.compress-whitespace=false You can use contributeApplicationDefaults() in your AppModule instead if you want. --

Re: Readable HTML output

2012-04-03 Thread Chris Mylonas
Hi Thaigo, oh yeah good point. i associate firebug with css only really from my drupal days. i was going to get onto that next now that i've sorted out my asset:context:layout/images/email.png stuff. i have a several plugins in firefox for privacy and no tracking that most of the b.s. interne

Re: Readable HTML output

2012-04-03 Thread Thiago H. de Paula Figueiredo
On Tue, 03 Apr 2012 06:23:28 -0300, Chris Mylonas wrote: Hi Tap List, Hi! I've got production mode set to false and the parts of the html document that I haven't created come out quite nicely. The parts I have rendered in my component (below) are coming out on one line. It's the eye-s

Re: Lightweight TapestryTools update site

2012-04-03 Thread Gavin Lei
This project in still in proposal prepare period and this is still a *trial* version for Eclipse Indigo. We will think about covering Helios in the future, thank you for your feedback, Lance :-) 在 2012年4月3日 下午7:17,Lance Java 写道: > Hi Gavin, I'm also on eclipse Helios so it sounds like that's the

Re: Lightweight TapestryTools update site

2012-04-03 Thread Lance Java
Hi Gavin, I'm also on eclipse Helios so it sounds like that's the problem. I wasn't able to see any working features. On Tuesday, 3 April 2012, Gavin Lei wrote: > Hi Lance, > > Cann't you see Tapestry component list at all ? Or some features work > well, but in some special conditions, error occu

Re: Lightweight TapestryTools update site

2012-04-03 Thread Chris Mylonas
FYI - (i have not tried the Lightweight TapestryTools update site) For anyone concerned, I have Indigo installed separately to whatever 3.6 was called (it has been a month or so already) and run-jetty-run and m2eclipse are working fine. Gavin I will give your stuff a shot tomorrow! Cheers Chri

Re: Hide/remove with hidden inputs in a beaneditor

2012-04-03 Thread Lance Java
> Lance! That worked perfectly :) Great > Mesa is a happy dev right now. Good to hear that jar-jar ;) If you'd like to add your mixin to every beaneditor without explicitely setting your mixin, checkout Taha's post http://tawus.wordpress.com/2011/08/01/tapestry-mixins-classtransformations/ I sho

Re: Lightweight TapestryTools update site

2012-04-03 Thread Gavin Lei
Hi Lance, Cann't you see Tapestry component list at all ? Or some features work well, but in some special conditions, error occur? 在 2012年4月2日 下午7:37,Lance Java 写道: > Hi, code completion is not working for me. Details below > > Cheers, > Lance > > Unexpected runtime error while computing a text

Re: Lightweight TapestryTools update site

2012-04-03 Thread Gavin Lei
Hi Athneria, Thank you for your response. I just start my development job it in Eclipse Indigo, and does not test Eclipse 3.6 yet, this seems to be a compatible issue. We will try to cover 3.6 in the future once we have a stable release, but currently you should better try it in Indigo instead. 在

Re: Hide/remove with hidden inputs in a beaneditor

2012-04-03 Thread pantera9
Lance! That worked perfectly :) Mesa is a happy dev right now. For those interested in the implementation of the solution: - Add the mixin to the beaneditor: - Add this java class to your mixins namespace: package yournamespace.mixins; import java.util.List; import org.apache.tapestry5.Markup

Re: Readable HTML output

2012-04-03 Thread trsvax
I have not tried to use MarkupWriter to generate a CSV but I do return CSVs with StreamResponse. I usually use StreamReponse for XML also but sometimes it's more work than necessary. For example if you just want something like OK MarkupWriter is much easier than either StreamResponse or a .tml fi

Re: Readable HTML output

2012-04-03 Thread Lance Java
Nope, it must be XML as MarkupWriter is backed by a DOM. Consider a tempting language such as Freemarker and a StreamResponse for non-XML text formats On Tuesday, 3 April 2012, Chris Mylonas wrote: > wow! coolso you could essentially respond with csv files as well? > > On 03/04/2012, at 8:11

Re: Readable HTML output

2012-04-03 Thread Chris Mylonas
I like the .tml approach better so far by a mile. I can see it easily and it's not too much brain work to get it onto "paper" so to speak. On 03/04/2012, at 8:12 PM, Lance Java wrote: > I would still use .tml to generate XML. Tapestry is tied to http, it is > implemented as a http request filt

Re: Readable HTML output

2012-04-03 Thread Chris Mylonas
wow! coolso you could essentially respond with csv files as well? On 03/04/2012, at 8:11 PM, trsvax wrote: > It works fine for generating XML. I have many rest style web services that > are really Tapestry pages, but I have not tried to put at > the top of the document. I think that might be

Re: Readable HTML output

2012-04-03 Thread Lance Java
I would still use .tml to generate XML. Tapestry is tied to http, it is implemented as a http request filter. The only way to use tapestry without http is using tapx-templating, even then you would still probably choose .tml for generating XML On Tuesday, 3 April 2012, Chris Mylonas wrote: > I g

Re: Readable HTML output

2012-04-03 Thread trsvax
It works fine for generating XML. I have many rest style web services that are really Tapestry pages, but I have not tried to put at the top of the document. I think that might be tricky but doable one way or another. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Readabl

Re: Readable HTML output

2012-04-03 Thread Chris Mylonas
I guess the MarkupWriter comes in handy for generating XML documents as well does tapestry allow the output of say, That would come in handy for submitting xml documents to other services without HTTP. On 03/04/2012, at 7:54 PM, Lance Java wrote: > I always favour .tml for generating mar

Re: Hide/remove with hidden inputs in a beaneditor

2012-04-03 Thread trsvax
see https://github.com/trsvax/tapestry-bootstrap/blob/master/src/main/java/com/trsvax/bootstrap/services/bootstrapprovider/FormProvider.java It contains a visitor that could be used by a mixin in cleanupRender. The visitor converts the BeanEditForm DOM to one that can be styled with Bootstrap CSS

Re: Readable HTML output

2012-04-03 Thread Chris Mylonas
Hmmm .tml fragments for the components seems to be the way to go for me in this instance, I'll look further down this track. I've already knocked up most of the html/css/js from some prototyping the UI last year - I'd rather just keep it XML-like rather than do it in code for this particula

Re: Readable HTML output

2012-04-03 Thread Lance Java
I always favour .tml for generating markup. The MarkupWriter gives you complete control but in this case, I think that .tml would suit your use case better On Tuesday, 3 April 2012, Lance Java wrote: > This should work: > > private static final String NEWLINE = System.getProperty("line.separator

Re: Readable HTML output

2012-04-03 Thread Chris Mylonas
Thanks Lance, but not quite what I'm after. It's only given new lines but no indentation (which I presume will disappear in production mode) It's made my code look a bit ugly. Maybe I should look at a .tml file set up. writer.element("div", "class", "userbackground");

Re: Readable HTML output

2012-04-03 Thread Lance Java
This should work: private static final String NEWLINE = System.getProperty("line.separator"); ... writer.element("div", "class", "userbackground"); writer.writeRaw(NEWLINE); writer.element("div","id",currentPhone.getNumber(), "class","user"); ... On Tuesday, 3 April 2012, Chris Mylonas wrote: >

Readable HTML output

2012-04-03 Thread Chris Mylonas
Hi Tap List, I've got production mode set to false and the parts of the html document that I haven't created come out quite nicely. The parts I have rendered in my component (below) are coming out on one line. It's the eye-sore of the document!! How do I fix this? I'm also wondering what th

Re: Problem setting request parameters using PageRenderLinkSource

2012-04-03 Thread ksrijith
No the url that comes out in the debug works perfectly fine. - -- Don't Forget to Rate -- View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-setting-request-parameters-using-PageRenderLinkSource-tp5614443p5614551.html Sent from the Tapestry - User mailing list archive

Re: Hide/remove with hidden inputs in a beaneditor

2012-04-03 Thread Lance Java
You could write a mixin to decorate the generated markup however you like by implementing afterRender(MarkupWriter writer) MarkupWriter has getElement() to get the current element and also getDocument() Cheers, Lance On Tuesday, 3 April 2012, pantera9 wrote: > Is there any way at all to hide th

Re: Problem setting request parameters using PageRenderLinkSource

2012-04-03 Thread Chris Mylonas
out of curiosity, do you still get the exception when you put teh debug URL into your browser address bar? On 03/04/2012, at 5:34 PM, ksrijith wrote: > Hi, > I have a select component onchange of whose value I'm returning a PageLink > with request parameters. The id for the select component is "

Hide/remove with hidden inputs in a beaneditor

2012-04-03 Thread pantera9
Is there any way at all to hide the DIVs with class t-beaneditor-row that only contains hidden input values? These rows are made by the excellent beaneditor in tapestry. The problem is that we style the class t-beaneditor-row with some padding, inline-block, width, etc. The rows with hidden fields

Problem setting request parameters using PageRenderLinkSource

2012-04-03 Thread ksrijith
Hi, I have a select component onchange of whose value I'm returning a PageLink with request parameters. The id for the select component is "pcat". Please find the method being called on change of the value. public Object onValueChangedFromPcat(ItemCategory pcat) { this.pcat = pcat;