how to make a File upload server code for a Android Client

2012-10-30 Thread dinesh707
Hi, My android client program wants to upload a file though server code. Can i write this through tapestry? I found a way to do it through a tapestry form. But if im sending it by another java app (android) how to do it? -- View this message in context: http://tapestry.1045711.n5.nabble.com/ho

Re: Stale Link Exception on Disabled Select Component

2012-10-30 Thread shekharreddy
bryans gmail.com> writes: > > > This worked. Thank you. > > Andreas Andreou-4 wrote: > > > > try setting volatile to true in the @For component > > > > > > > hi , @For component having volatile true in html page but still i am getting stale link exception. please help to solve this e

Only update specific table zone on delete of object?

2012-10-30 Thread membersound
I want to delete an object within a table grid, and after that only update the table itself, but not the rest of the page. UserPage.tml: Heading DEL UserPage (excerpt): @InjectComponent Zone outer; onDelete(long id) { dao.delete(id); return outer.getBody

Tapestry URLs inside iFrame (Facebook canvas)

2012-10-30 Thread Jelle Van Gompel
Hi all, I'm having a problem with the URLs that Tapestry renders inside an iFrame, more specific for a Facebook canvas application I'm developing. When you create a Facebook canvas application, it will be available under the url http://apps.facebook.com/myapp. That page will include an iFrame that

Re: how to make a File upload server code for a Android Client

2012-10-30 Thread Lance Java
FYI, (android != java). It's dalvik! This question is not really tapestry related and would be better asked on android forums. The fact that you're posting the file to a tapestry server is irrelevant at this point. If there's not a core android API to upload a file via HTTP you should consider usi

Re: Tapestry URLs inside iFrame (Facebook canvas)

2012-10-30 Thread Felix Gonschorek
Hi Jelle, the image is missing for me, please post the link. felix Am 30.10.2012 10:38, schrieb Jelle Van Gompel: > Hi all, > > I'm having a problem with the URLs that Tapestry renders inside an > iFrame, more specific for a Facebook canvas application I'm developing. > When you create a Face

Re: how to make a File upload server code for a Android Client

2012-10-30 Thread dinesh707
Thankx -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-make-a-File-upload-server-code-for-a-Android-Client-tp5717405p5717411.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Tapestry URLs inside iFrame (Facebook canvas)

2012-10-30 Thread jellevangompel
Here's the image I wanted to include: -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-URLs-inside-iFrame-Facebook-canvas-tp5717408p5717412.html Sent from the Tapestry

Re: how to make a File upload server code for a Android Client

2012-10-30 Thread Lance Java
Since you will be constructing a HTTP post programatically (instead of posting a form generated by a tapestry page) you might want to consider reading the File via MultipartDecoder.getFileUpload(String parameterName) on the server side. http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/u

Re: Only update specific table zone on delete of object?

2012-10-30 Thread Thiago H de Paula Figueiredo
Hi! On Tue, 30 Oct 2012 07:28:14 -0200, membersound wrote: Result: org.apache.tapestry5.runtime.ComponentEventException Render queue error in SetupRender[UserPage:grid.columns]: Bean editor model for User already contains a property model for property 'action'. Full stack trace and code th

Re: Tapestry URLs inside iFrame (Facebook canvas)

2012-10-30 Thread Christian Riedel
Just contribute a symbol called "tapestry.hostname". BaseURLSource is using it. See http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/SymbolConstants.html Am 30.10.2012 um 11:19 schrieb jellevangompel: > Here's the image I wanted to include: > >

Re: Tapestry URLs inside iFrame (Facebook canvas)

2012-10-30 Thread jellevangompel
Hey Christian, I have contribute the hostname symbol, but links are still not rendered as I suspected (meaning they are still like: http://my.server.com/app/link). I used following code: public static void contributeApplicationDefaults(MappedConfiguration configuration) {

Re: Tapestry Book purchase question

2012-10-30 Thread Nicolas Barrera
Thank you Igor, I 've already purchased it, is it still on EAP? it seems so finished and complete!, I recommend everyone who 's doubting about it to buy it. :) cheers! Nicolás.- On Sun, Oct 28, 2012 at 9:18 AM, Igor Drobiazko wrote: > Hi Nicolas, > > yes, it's same. > > On Fri, Oct 26, 2012

Configurable site navigation menu?

2012-10-30 Thread John
Is there a dynamic and configurable tapestry menu component? Perhaps using a standard JavaScript library. I'm dreading creating a JavaScript based solution and then hacking at it with tapestry, and that would not be 100% dynamic because I'd create a complete menu using a web design package. Jo

Re: Configurable site navigation menu?

2012-10-30 Thread Emmanuel DEMEY
Hi, You can maybe have a look to the Tapestry5-jQuery Superfish Component : http://tapestry5-jquery.com/components/docssuperfish Manu 2012/10/30 John > Is there a dynamic and configurable tapestry menu component? Perhaps using > a standard JavaScript library. > > I'm dreading creating a JavaSc

Re: email validation stopped working

2012-10-30 Thread Jan Fryblik
We are not using any override, additional or any other modification of tapestry validations. There is no change since i updated tapestry and i am pretty sure, that it worked before. I am not sure, if i have to explicitly turn javascript logging on, but i cant see any error message in javascript

Re: Tapestry URLs inside iFrame (Facebook canvas)

2012-10-30 Thread Jonathan Barker
Check out: https://issues.apache.org/jira/browse/TAP5-1483 and the fix seems to be: configuration.add(SymbolConstants.ASSET_URL_FULL_QUALIFIED, "true"); I haven't tried it yet. On Tue, Oct 30, 2012 at 7:47 AM, jellevangompel wrote: > Hey Christian, > > I have contribute the hostname

Re: Only update specific table zone on delete of object?

2012-10-30 Thread membersound
I'm not getting this error anymore, though I don't know what is different now. Anyhow, the zone update is not working. Now I'm getting a red tapestry notification which points me to inner zones like: > Could not find zone element 'showRoom' to update on click of element > 'eventlink_4_13ab23fef82'

Re: Configurable site navigation menu?

2012-10-30 Thread John
This looks like just what I need. Is there any example showing an associated page class, can I include this in a Layout class so it goes on all pages? That would rock. John - Original Message - From: Emmanuel DEMEY To: Tapestry users Sent: Tuesday, October 30, 2012 2:06 PM S

use symbol value in POJO

2012-10-30 Thread devnull2000
Hi, I've got a properties file that gets added with contributeSymbolSource(...) in AppModule and injection of the values with @Inject @Symbol(value="myProperty") works well. Unfortunately, it doesn't work in classes that are subclasses of CayenneDataObject (I use cayenne as OR mapper), since th

Re: Only update specific table zone on delete of object?

2012-10-30 Thread Lance Java
If you explicitly set the (clientside) id, tapestry will not auto-generate one. eg -- View this message in context: http://tapestry.1045711.n5.nabble.com/Only-update-specific-table-zone-on-delete-of-object-tp5717407p5717423.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: use symbol value in POJO

2012-10-30 Thread Thiago H de Paula Figueiredo
On Tue, 30 Oct 2012 13:48:42 -0200, wrote: Hi, Hi! I've got a properties file that gets added with contributeSymbolSource(...) in AppModule and injection of the values with @Inject @Symbol(value="myProperty") works well. Unfortunately, it doesn't work in classes that are subclasses of

Re: Configurable site navigation menu?

2012-10-30 Thread John
This was really great. I just dropped the code into my Layout class and added the dependencies. I can't see how to customize the css though? I presume it's burried in a jar. Is there a best approach to change the default style? many thanks, John - Original Message - From: Emmanuel

Re: Configurable site navigation menu?

2012-10-30 Thread Thiago H de Paula Figueiredo
On Tue, 30 Oct 2012 14:14:21 -0200, John wrote: This was really great. I just dropped the code into my Layout class and added the dependencies. I can't see how to customize the css though? I presume it's burried in a jar. Is there a best approach to change the default style? Ordinary (as

Re: use symbol value in POJO

2012-10-30 Thread Lance Java
Firstly, I'm not familiar with Cayenne. Secondly, I'm not 100% sure that this is a good idea. With that in mind, does Cayenne provide a hook to intercept object creation? Can you decorate some form of CayenneDataObjectFactory? If you can, there's nothing to stop you reflectively iterating the Data

Suppressing t5 translations

2012-10-30 Thread Wechsung, Wulf
Hello Guys, Today I found issue: https://issues.apache.org/jira/browse/TAP5-2023 Short version is that a specific locale (zh_CN) produces an exception in conjunction with field validators because some messages don't use indexed format parameters. The work-around we thought of until this is fixe

Re: Suppressing t5 translations

2012-10-30 Thread Howard Lewis Ship
You can contribute an override message catalog, with overrides of the affected message keys, to the ComponentMessagesSource service. On Tue, Oct 30, 2012 at 10:25 AM, Wechsung, Wulf wrote: > Hello Guys, > > Today I found issue: https://issues.apache.org/jira/browse/TAP5-2023 > Short version is th

RE: Suppressing t5 translations

2012-10-30 Thread Wechsung, Wulf
Wow, that was quick. Thanks :) -Original Message- From: Howard Lewis Ship [mailto:hls...@gmail.com] Sent: Dienstag, 30. Oktober 2012 18:34 To: Tapestry users Subject: Re: Suppressing t5 translations You can contribute an override message catalog, with overrides of the affected message ke

Re: Tapestry URLs inside iFrame (Facebook canvas)

2012-10-30 Thread jellevangompel
Hi Jonathan, This seems to work partially. - This only works for asset files, but not for links. Do you know if there's a similar constant for urls? - There is a problem with the context of the asset link generated: my T5 app is deployed as the the root context, however the facebook app has an

Re: Tapestry URLs inside iFrame (Facebook canvas)

2012-10-30 Thread Jonathan Barker
When I originally dealt with this, I contributed an override to the BaseURLSource. That was the easy part. It was the assets that threw me. With the private bits removed, here's what I did: public void contributeServiceOverride(@Symbol(".production-server") final boolean productionS

Re: Tapestry URLs inside iFrame (Facebook canvas)

2012-10-30 Thread jellevangompel
Hi Jonathan, This solution doesn't seme to work. It also very much alike than the code I had (se earlier post) that did not work. Is there any other configuration that I might be overlooking? Regards, Jelle -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-URL

injecting the currently logged in user

2012-10-30 Thread Ulrich Stärk
>From a third-party module (tynamo-security) I have the id (principal) of a >Hibernate entity representing the currently logged in user in the HttpSession. I now want to inject that user into pages after loading it from persistent storage. The entity class shall be called User. Three options co

Re: Tapestry URLs inside iFrame (Facebook canvas)

2012-10-30 Thread Jonathan Barker
I looked back at your original post. Facebook aggressively caches assets (especially images), and it needs the absolute URL's to do that. That's the problem I faced. Only the initial request includes a bunch of information from Facebook in a signed_request. AFAIK, after that, your regular sessio

Re: Tapestry URLs inside iFrame (Facebook canvas)

2012-10-30 Thread jellevangompel
So what you're saying is that the Facebook signed_request is only needed for the first time the page is loaded, and that afterwards I should be able to work without it (until another page reload)? I'll redesign the application the application to work this way and see if this solves my issue. I'l

Re: injecting the currently logged in user

2012-10-30 Thread Thiago H de Paula Figueiredo
On Tue, 30 Oct 2012 17:44:29 -0200, Ulrich Stärk wrote: 2. Create a UserSource service that looks up the User instance, build a PropertyShadowBuilder around it and bind it to the interface of the User class. Downside: requires the User entity to have an interface. Why don't you implement a

Re: injecting the currently logged in user

2012-10-30 Thread Ulrich Stärk
On 30.10.2012 21:05, Thiago H de Paula Figueiredo wrote: > On Tue, 30 Oct 2012 17:44:29 -0200, Ulrich Stärk wrote: > >> 2. Create a UserSource service that looks up the User instance, build a >> PropertyShadowBuilder >> around it and bind it to the interface of the User class. Downside: requires

Re: use symbol value in POJO

2012-10-30 Thread devnull2000
Thanks for your replies. > Firstly, I'm not familiar with Cayenne. Well, I've been working with Tapestry and Cayenne for only a few months now, so I'm not that familiar with it, either. > Secondly, I'm not 100% sure that this is a good idea. You mean passing the value as a parameter is not a go

Displaying UploadedFile in the browser

2012-10-30 Thread bhorvat
Hi all, I would like to use the ajax to upload several images and once the user clicks the button he can then submit them, my question is how can I achieve this? Is it possible to return UploadedFile somehow so that I can get an image to display in the img tag? -- View this message in context:

Re: email validation stopped working

2012-10-30 Thread Muhammad Gelbana
Is it possible that any of your fields have any of the following words as it's ID (*reset,submit,select,id,method,action,onsubmit,cancel*) ? Have you tried handling the validation event and see if the server side validation is working ? What was your previous tapestry version before upgrading ? O

Re: email validation stopped working

2012-10-30 Thread Muhammad Gelbana
I think on the server side you can only check if the form has. Sorry I might have asked the wrong question about checking if the server side validation works but may be it could help debug this error, to check if the form component has the related error recorded. If this still persists. On Wed, Oc

Re: Displaying UploadedFile in the browser

2012-10-30 Thread Kristian Marinkovic
Hi, i just implemented an ajax upload using the AjaxUpload component from the tapestry5-jquery project. And i had to dive deeper into the documentation and code of the JS file-uploader component used by the AjaxUpload. There are examples in the documentation that almost solve your needs: http://f

Re: Displaying UploadedFile in the browser

2012-10-30 Thread bhorvat
Hi Yea I have seen that demo as well, and my problem is that I need to show the image that the user has uploaded. So my question is how can I get from UploadFile something that can be visible without storing it to the hard disk and then displaying it. My idea is to keep the UploadFiles in memor

Re: Displaying UploadedFile in the browser

2012-10-30 Thread Thiago H de Paula Figueiredo
On Tue, 30 Oct 2012 21:25:03 -0200, bhorvat wrote: Hi Hi! Yea I have seen that demo as well, and my problem is that I need to show the image that the user has uploaded. So my question is how can I get from UploadFile something that can be visible without storing it to the hard disk a

quarky page injection... late allocation

2012-10-30 Thread Ken in Nashua
Hi Folks, I am rendering my gallery widget and everything looks great... I got firstpage prevpage link link link nextPage lastPage which would look like |< < 1 2 3 > >| obj obj obj obj obj obj obj obj obj obj obj obj so I decide to click link 1 in order to render th

RE: quarky page injection... late allocation

2012-10-30 Thread Ken in Nashua
Due to hurricane and outage for past two days... I am operating my hotspot app (virtual router) on my droid III for my internet connection. So it's a bit slow... like alot But is it possible there could be a race condition? I am wondering if the page injection process is contending with the l