Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
how to use maven to compile this component? for T5.3. thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061023.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread Geoff Callender
Do these help? http://jumpstart.doublenegative.com.au/jumpstart/examples/localization/bymessagecatalog http://jumpstart.doublenegative.com.au/jumpstart/examples/localization/bytemplate Geoff On 09/12/2011, at 6:47 PM, wesleywj2 wrote: > hi all, > > i facing a very difficult s

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dragan Sahpaski
Just install gradle and do gradle install. This will install the ajax upload artifact in your local repo. Cheers, Dragan Sahpaski On Fri, Dec 9, 2011 at 9:17 AM, angelochen wrote: > how to use maven to compile this component? for T5.3. thanks. > > -- > View this message in context: > http://ta

Re: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread wesleywj2
hi angelo, thanks for the quick reply, you pointed it, my url has "zh" when locale took place, when i click on the navigation , the zh disappear!, wonder why is that? something i need to tweak on the navigation link? perhaps? a symbol? -- View this message in context: http://tapestry.1045711.n5.

Re: [t5.1] ajaxFormLoop disabled once page reloaded and returning a PDFStreamResponse

2011-12-09 Thread Joost Schouten (mailing lists)
Another option (if an upgrade is not possible) is to download your pdf to a hidden iframe. No new page opens and the zonemanager does not get unload'ed. On Dec 8, 2011, at 4:54 PM, antalk wrote: > I've 'fixed' a similair issue by using an eventlink where the user can > download the document, bu

Re: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread angelochen
in your tml you should use to generate links. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5061119.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread angelochen
in tml file, you should use < a t:type="pagelink" page="..." >my link< /> -- View this message in context: http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5061123.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
ok, i did that, it pulls down a lot of things, now stop at: Test method test_if_setup_render_sets_active_to_first_value_if_not_specified(com.googlecode.tawus.addons.components.TabPanelTest) PASSED Test method test_if_setup_render_throws_exception_if_no_tabs_are_specified(com.googlecode.tawus.addo

Returning an instance of a page

2011-12-09 Thread Hugi Thordarson
Hi all. Quick newbie question: How do I return an instance of a page whose class I do not know until at runtime? Example: I have a list page, listing objects of various types. when I click an object, I want to return a page class based on the class of the object I select ("UserDetailPage" for "

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
Hey, i got it working with some tweaks, but still experience some issues: 1. i've set @IncludeStylesheet("ajaxupload.css"), and it is not working. The stylesheet link generated on the page: /myapp/assets/classpath/2dc6971e4afe5b2f/com/googlecode/tawus/ajaxupload/components/ajaxupload.css but Re

Re: Returning an instance of a page

2011-12-09 Thread angelochen
how about: return "UserDetailPage" -- View this message in context: http://tapestry.1045711.n5.nabble.com/Returning-an-instance-of-a-page-tp5061220p5061225.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Returning an instance of a page

2011-12-09 Thread Hugi Thordarson
Yes, that would work for returning the page, but I need to initialize it (with the object). In pseudocode, what I'm looking for wouls be something along the lines of: Object onActionFromSelect() { Class detailPageClass = determineDetailPageClass( currentObject );

Re: [t5.1] ajaxFormLoop disabled once page reloaded and returning a PDFStreamResponse

2011-12-09 Thread Jérémie Charlet
Thanks a lot for your answers! I am going to discuss with my colleagues whether upgrade is possible. There is also a patch provided on the JIRA. Otherwise I'll try your solutions and explain what solution we chose and how I implemented it. Regards, Jérémie Unfortunately upgrade is not possible, so

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
I know this is not tapestry5 related, i just want to try out that ajaxupload, i already did a gradile build, believe its fully compiled, now what's next? wish it's maven based. Dragan Sahpaski wrote > > Just install gradle and do gradle install. This will install the ajax > upload artifact in

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
if you did: gradle install successfully, you can include it to your maven project: com.googlecode.tawus tawus-ajaxupload 0.1-SNAPSHOT then use with .tml: On Fri, Dec 9, 2011 at 12:51 PM, angelochen wrote: > I know this is not tapestry5 r

Re: Returning an instance of a page

2011-12-09 Thread Thiago H. de Paula Figueiredo
ROn Fri, 09 Dec 2011 07:48:46 -0200, Hugi Thordarson wrote: Yes, that would work for returning the page, but I need to initialize it (with the object). In pseudocode, what I'm looking for wouls be something along the lines of: Object onActionFromSelect() { Class detailPageClass

Re: Returning an instance of a page

2011-12-09 Thread Hugi Thordarson
Thank you, exactly what I was looking for! Cheers, - hugi On 9.12.2011, at 10:58, Thiago H. de Paula Figueiredo wrote: > ROn Fri, 09 Dec 2011 07:48:46 -0200, Hugi Thordarson wrote: > >> Yes, that would work for returning the page, but I need to initialize it >> (with the object). In pseudoco

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
i added that to pom.xml but get this: Downloading: https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/maven-metadata.xml Downloading: https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-a

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
this means, you didn't install ajaxupload to your local maven repo. Please do: gradle install. On Fri, Dec 9, 2011 at 2:01 PM, angelochen wrote: > i added that to pom.xml but get this: > > Downloading: > > https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload

Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
Hi again. Another noob question: I've been trying to google this one for quite some time, but I still can't figure out how I can pass a CayenneDataObject to a component using a binding. I have registered a Type Coercer from String to CayenneDataObject, and it's getting invoked when I read the

Re: pagecatalog still visible in production mode

2011-12-09 Thread Bob Harner
Bob Harner On Dec 8, 2011 10:11 PM, "Martin Strand" wrote: > You could configure your servlet container so that it doesn't return the > proxy IP as request.remoteAddr, but instead uses the X-Forwarded-For header > and returns the real client IP. > > For Jetty, this is just a matter of setting for

Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Thiago H. de Paula Figueiredo
On Fri, 09 Dec 2011 09:08:13 -0200, Hugi Thordarson wrote: Hi again. Hi! Another noob question: I've been trying to google this one for quite some time, but I still can't figure out how I can pass a CayenneDataObject to a component using a binding. Just do it. :) I have registered a

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
Hi Dmitriy, you just turned a maven user into gradle today:) ok, it works. now, after click 'upload', where is the file uploaded? second, why only one file? and this seems not got called: @Persist @Property private List uploads; void onSuccess(){ //Use uploads if (u

Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
Oh dear… After reading the sentence "Tapestry parameters can be of any type without any conversion" I performed a little sanity check on my code—turns out the example code I copied form somewhere had "defaultPrefix = BindingConstants.LITERAL" specified on the binding. Silly, silly… Thanks! - hu

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
did you wrap to ? There is maxFiles parameter which you can specify for AjaxUpload. Default is 1 :) On Fri, Dec 9, 2011 at 2:58 PM, angelochen wrote: > Hi Dmitriy, > > you just turned a maven user into gradle today:) ok, it works. now, > after click 'upload', where is the file uploaded?

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
Regarding where file is store: public void onSuccess() { UploadedFile uploadedFile = uploaded.get(0); File file = new File("/where/i-want/file-to-save"); uploadedFile.write(file); } On Fri, Dec 9, 2011 at 3:11 PM, Dmitriy Vsekhvalnov wrote: > did you wrap

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
here is my code/tml: < t:form t:id="myForm" > < input t:type="tawus/ajaxupload" t:id="uploads" type="file" / > < /t:form > @Persist @Property private List uploads; @OnEvent (value = EventConstants.VALIDATE, component = "myForm") void validateU

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
and what is the question with your code? On Fri, Dec 9, 2011 at 3:19 PM, angelochen wrote: > here is my code/tml: > > < t:form t:id="myForm" > > > < input t:type="tawus/ajaxupload" > t:id="uploads" type="file" / > >< /t:form > > > > > @Persist >@Property >private Li

Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
OK, now it _almost_ works Still, interestingly enough though, it doesn't seem to work in a loop. Consider the following code: ${currentObject.name} In the component "ObjectLink", I can print the value of currentObject.name. However, if I use the "object" binding in an action method (o

Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
Hmm, interesting. Doesn't seem to work even if I send the object as a context parameter, the object is still null in the action method :-/ - hugi On 9.12.2011, at 12:50, Thiago H. de Paula Figueiredo wrote: > On Fri, 09 Dec 2011 10:38:07 -0200, Hugi Thordarson wrote: > >> In the component

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
ohh.. i think you may be need to add Submit button? On Fri, Dec 9, 2011 at 4:14 PM, angelochen wrote: > onvalidate and onSuccess was never called. > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061699.html

Job Offer - Tapestry developer

2011-12-09 Thread Florian Parain
Hi, I'm working on Contract Live, a Contract Management Software based on Tapestry. http://www.contract-live.com/ Contract Live office is located in Paris, France. We are currently looking for Tapestry developers. Below, you can find a job offer in French. If you have any questions, be pleased

Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
>> (just ignore the commented out code, it's what I'm using to work around the >> problem until I find a solution) > > What's the rendered HTML? Well, if I disable the ValueEncoder I made for CayenneDataObjects, it will look like this: http://localhost:8080/tap/userlist.objectlink2.select/$007

Re: T5.3: form/submit stop working

2011-12-09 Thread angelochen
have to roll back to t5.2.6 release, major difference between these two versions is servlet 2.4 and 2.5, will that cause the problem? a related question is, is tomcat 6.0.20 enough for servlet 2.5 as it's required by T5.3? thanks. -- View this message in context: http://tapestry.1045711.n5.nabble

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
right, submit works, thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5062123.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Thiago H. de Paula Figueiredo
On Fri, 09 Dec 2011 13:01:10 -0200, Hugi Thordarson wrote: What's the rendered HTML? Well, if I disable the ValueEncoder I made for CayenneDataObjects, it will look like this: http://localhost:8080/tap/userlist.objectlink2.select/$007b$003cObjectId:User$002c$0020id$003d2$003e$003b$0020c

Re: Artifacts in T5.3 tree component

2011-12-09 Thread Howard Lewis Ship
On Thu, Dec 8, 2011 at 12:02 PM, Chris Collins wrote: > Got no response so I filed TAP5-1782.  Also there doesn't seem to be a > version 5.3 available in jira. That's odd; I just added a bug and typing "5.3" in the "Affects Versions" field worked fine. Generally, report a bug as affecting a rel

Re: pagecatalog still visible in production mode

2011-12-09 Thread Howard Lewis Ship
You can do this: @Contribute(ClientWhitelist.class) public static void overrideWhiteList(OrderedConfiguration configuration, @Symbol(SymbolConstants.PRODUCTION_MODE) boolean productionMode) { if (productionMode) { configuration.override("LocalhostOnly", null); } } This is

Re: pagecatalog still visible in production mode

2011-12-09 Thread Howard Lewis Ship
Just added a FAQ for this; will show up live in a couple of hours. On Fri, Dec 9, 2011 at 10:08 AM, Howard Lewis Ship wrote: > You can do this: > >    @Contribute(ClientWhitelist.class) >    public static void > overrideWhiteList(OrderedConfiguration > configuration, @Symbol(SymbolConstants.PRODU

Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Robert Zeigler
So it looks like the value is being put into the url, as expected for the context of an action link. Is your onAction method receiving that context? onActionFromSelect(CayenneDataObject object) {...} If you have your original method: onActionFromSele

Re: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread wesleywj2
hi angelo, thanks much, it's really the link problem; thank you very much for pointing out -- View this message in context: http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5062656.html Sent from the Tapestry - User mailing list archive at

Re: smarter css

2011-12-09 Thread Alex Objelean
Just a small note: you can reuse the provided processors (like LessCssProcessor, CoffeeScriptProcessor, SassCssProcessor, etc) without being forced to use a filter or a maven plugin. The processors interface is pretty simple and can be used like this: new CoffeeScriptProcessor().process(Reader r

Re: smarter css

2011-12-09 Thread Howard Lewis Ship
I'm looking forward to integrating these! I think using the raw processor may fit into Tapestry's overall lifecycle best. On Fri, Dec 9, 2011 at 10:48 AM, Alex Objelean wrote: > Just a small note: > > you can reuse the provided processors (like LessCssProcessor, > CoffeeScriptProcessor, SassCssP

Tapestry 5 Laptop Stickers

2011-12-09 Thread Howard Lewis Ship
Well, I just got back from the post office; I'm finally all caught up with the laptop stickers ... but I still have a few left, and another big batch coming from StickerMule. Do you want a Tapestry 5 Laptop Sticker? Just follow the directions here: http://tapestryjava.blogspot.com/2011/08/tapestr

Tapestry 5.3.1-rc1 release

2011-12-09 Thread Massimo Lusetti
I've created and uploaded a release of Tapestry 5.3.1-rc1, ready to betested. The source and source downloads are uploaded to: http://people.apache.org/~mlusetti/tapestry-releases/ and the Maven artifacts staged to: https://repository.apache.org/content/repositories/orgapachetapestry-308/ This

Re: Tapestry 5.3.1-rc1 release

2011-12-09 Thread Howard Lewis Ship
I don't think this is the right procedure. We will vote on the final release (the 5.3.1 when its ready). Unfortunately, we'll need to check the mail archives for the details we worked out for how releases operate, but the summary (as followed for most of the 5.3 alphas and betas) was: Just creat

Re: Tapestry 5.3.1-rc1 release

2011-12-09 Thread Massimo Lusetti
On Sat, Dec 10, 2011 at 12:02 AM, Howard Lewis Ship wrote: > I don't think this is the right procedure. > > We will vote on the final release (the 5.3.1 when its ready). > > Unfortunately, we'll need to check the mail archives for the details > we worked out for how releases operate, but the summ

Re: AjaxFormLoop not populating values for the newly created form elements after submission

2011-12-09 Thread shaan
Not sure if I confused people, the problem is with the ValueEncoder toValue() method - it returns a new Promotion() class, whose member values should get overridden by the values entered in the web form, but instead it's reading 0's (values used to initialize). Any help will be really appreciated.

Re: ajaxformloop: syncValue is never called for added rows on form submit

2011-12-09 Thread shaan
I've the same problem; what should we store as ID for the newly created rows so that during form submission the fields get overwritten. Any help would be appreciated. Thanks, Shaan -- View this message in context: http://tapestry.1045711.n5.nabble.com/ajaxformloop-syncValue-is-never-called-for-

Re: AjaxFormLoop not populating values for the newly created form elements after submission

2011-12-09 Thread Geoff Callender
Can you provide the whole code - java and tml? On 10/12/2011, at 10:42 AM, shaan wrote: > Not sure if I confused people, the problem is with the ValueEncoder toValue() > method - it returns a new Promotion() class, whose member values should get > overridden by the values entered in the web form,

Re: How to return raw page render result on event link

2011-12-09 Thread Howard Lewis Ship
See http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/StreamPageContent.html On Wed, Dec 7, 2011 at 2:17 AM, Guillaume Bodet wrote: > Hi, > > I'm using a nice js component called DHTMLX Grid in my T5 application. > DhtmlxGrid fetched its data in an ajax request. Data is fo

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
how to allow multiple file uploads? -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5063748.html Sent from the Tapestry - User mailing list archive at Nabble.com. --