RE: a form that have an upload, submit button

2011-04-05 Thread Amr Mohamed Mahmoud Hassanien
===The first file Edit.Java /** * Article Edit page * * @author mailto:isid...@awraqpublishing.com";>Ismail O. M. Sidiya * @version 1.0 */ @Secured(Role.ROLE_USER) public

Re: [tapestry-security] Redirecting to original page after login

2011-04-05 Thread wkm
Hi Alejandro, I did indeed create my own login form. But the code you sent works perfectly, thank you very much. Wiktor On 4/5/2011 3:08 AM, Alejandro Scandroli wrote: Hi Wiktor This is the default behavior in the LoginForm component, are you using or did you write your own login form too?

Re: updating a zone which does not exist...

2011-04-05 Thread Paul Stanton
Well, I could do that, but it seems more complicated than just a) duplicating my conditional logic where I request the zone update (ie not update the zone based on the same conditional logic) or b) putting the t:if inside the t:zone both of these are workarounds, however - I think tapestry sho

Re: Implementation mixin and persistence

2011-04-05 Thread Taha Hafeez
Hi There was a discussion related to 'Parameters in Implementation Mixins'... http://tapestry.1045711.n5.nabble.com/Parameters-in-implementation-mixins-td3395407.html Hope it helps regards Taha On Wed, Ap

Re: Using @Environmental and "JavaScriptSupport Object" to dynamically load css based on browser

2011-04-05 Thread Taha Hafeez
Sorry typo!! On Wed, Apr 6, 2011 at 3:25 AM, Howard Lewis Ship wrote: > Oops, sorry Taha, you got this a bit wrong. > > You use @Inject on a field, so this would be > > @Inject > private Request request; > > > > The rest is the same ... > > ... but Tapestry supports IE conditional stylesheets,

Re: [ANNOUNCE] tapx-prototype is back

2011-04-05 Thread Howard Lewis Ship
I've updated the snapshots with some additional fixes. tapx-prototype now includes patches on Tapestry 5.2.5's tapestry.js and palette.js files. Enjoy! On Thu, Mar 31, 2011 at 7:43 AM, Howard Lewis Ship wrote: > Right, this is for 5.2.5. > > There are some minor issues with 5.2.5 and this libra

Re: Loading of Localized bundles, Stylesheets, etc..

2011-04-05 Thread Adam Zimowski
You guys rock. Thanks. On Tue, Apr 5, 2011 at 5:12 PM, Igor Drobiazko wrote: > Hi Adam, > > On Wed, Apr 6, 2011 at 12:00 AM, Adam Zimowski wrote: > >> Is this something you are planning for 5.3? > > > Probably yes. If not in 5.3, then in 5.4. > > >> And if so, do you think 5.3 will be out befor

Re: Loading of Localized bundles, Stylesheets, etc..

2011-04-05 Thread Igor Drobiazko
Hi Adam, On Wed, Apr 6, 2011 at 12:00 AM, Adam Zimowski wrote: > Is this something you are planning for 5.3? Probably yes. If not in 5.3, then in 5.4. > And if so, do you think 5.3 will be out before end of this year? > > Both 5.3 and 5.4 are planned for 2011. -- Best regards, Igor Drob

Re: Loading of Localized bundles, Stylesheets, etc..

2011-04-05 Thread Adam Zimowski
Thanks for the feedback on this Howard. This would certainly help us! Is this something you are planning for 5.3? And if so, do you think 5.3 will be out before end of this year? Adam On Tue, Apr 5, 2011 at 4:04 PM, Howard Lewis Ship wrote: > This is something Igor and I have been discussing.  C

Re: Using @Environmental and "JavaScriptSupport Object" to dynamically load css based on browser

2011-04-05 Thread Howard Lewis Ship
Oops, sorry Taha, you got this a bit wrong. You use @Inject on a field, so this would be @Inject private Request request; The rest is the same ... ... but Tapestry supports IE conditional stylesheets, which is much more accurate than checking the User-Agent header: @Inject @Path("ie-on

Re: GAE Tapestry5 FORM

2011-04-05 Thread Fernando Benjamin
Hi Alex, I was already using the commons-fileupload.jar 1.2.1 version which is semi-compatible with GAE! The problem here was that I still had the tapestry-upload.jar, in the path, and it got packed in the war! I had to remove the tapestry-upload.jar from the war, it works now! Thanks, Fernando

Re: New user and IDE issues

2011-04-05 Thread Guerin Laurent
You're welcome, t5.2.0.tld file has been generated with tapestry-tldgen plugin applied directly into tapestry sources. Tomorrow i'll try to generate and upload on wiki fresh versions of Tld for 5.2.5 and 5.3 Le 5 avr. 2011 à 22:22, "Grioni Stefano" a écrit : > Hi Laurent, > > Thanks for the

Re: Loading of Localized bundles, Stylesheets, etc..

2011-04-05 Thread Howard Lewis Ship
This is something Igor and I have been discussing. Currently, the "key" for a page is a combination of its name and its locale. The name is one dimension, the locale is a second. By changing the API would could support multiple arbitrary extra dimensions. There would need to be some overridable

Implementation mixin and persistence

2011-04-05 Thread Rich M
Hi, I have a Page and it has a search form, contained within an ID'ed DIV. I made an implementation mixin that initializes an Event observer on the on click event of a 'button' in the Page's HTML. The event triggers javascript that hides/shows the search form. That works fine, but I want to

Re: New user and IDE issues

2011-04-05 Thread Grioni Stefano
Hi Laurent, Thanks for the precision! Now I get why it didn't work :). One question though: How is that file (t5.2.0.tld) generated? And how can I update it (for instance when Tapestry will pass to 5.3) ? Thanks a bunch, Stefano On Apr 5, 2011, at 9:59 PM, Guerin Laurent wrote: > Hi Stephano

Re: New user and IDE issues

2011-04-05 Thread Guerin Laurent
Hi Stephano, This Maven plugin tool (tapestry-tldgen) allow you to generare a tld describing your own Tapestry 5 components library. If you want auto completion with the core Tapestry 5 component, you have to import this one in Eclipse : https://issues.apache.org/jira/secure/attachment/12468166

Re: New user and IDE issues

2011-04-05 Thread Stefano Grioni
Hello, Thank you very much for your help! This mailing list is really reactive! I *think* that my problem with Eclipse is actually not caused by Eclipse directly but rather by the TLD file. In fact, when I open it there is clearly something wrong with it (it only contains a handful of lines).

Loading of Localized bundles, Stylesheets, etc..

2011-04-05 Thread Adam Zimowski
Our app is brandable with the codebase being deployed to different environments, per business unit. So our common runtime will be packaged to ecommerce.jar, which will include service configuration (ejb definitions, etc), pages, etc... Then, when we configure website for company X, we will deploy t

Re: 5.2.x page instance variables & thread safety

2011-04-05 Thread Thiago H. de Paula Figueiredo
On Tue, 05 Apr 2011 11:26:21 -0300, fnuzbit wrote: HI All, Hi! private String foo; public String getFoo(){ return foo; } public void setFoo(String foo){ this.foo = foo; } This is thread-safe as any access to the field itself (reading or writing) is replaced internally by a pe

5.2.x page instance variables & thread safety

2011-04-05 Thread fnuzbit
HI All, I was reading the release notes for 5.2.0 about the removal of the page pool and just wanted to clarify a threading issue: Am I right in thinking this is not thread safe in a 5.2.x page/component: private String foo; public String getFoo(){ return foo; } public void setFoo(String

The right way to manually update a zone in tapestry

2011-04-05 Thread Support WebAlertPro
Hi, I am calling a Tapestry action link manually from js, it's an ajax call that returns a zone. I then swap out the old zone for the new zone html. This all works well, except for that fact that any Tapestry js callbacks that would normally be triggered when the zone loads on the page (i.e. if t

Re: The right way to manually update a zone in tapestry

2011-04-05 Thread Joel Halbert
OK figured it out... Trick is to use the ZoneManager for the zone id (see Tapestry.js) : So this ajax request, to update a zone, works, and all the tap js callbacks on components are registered correctly var zoneManager = Tapestry.findZoneManagerForZone('my-zone-id'); $.get("/h

Re: New user and IDE issues

2011-04-05 Thread Everton Agner
I'm still waiting for a nice plugin for Eclipse... Just XML editing is not good enough (at least for me). ___ Everton Agner Ramos 2011/4/4 ael > Im Using Netbeans 6.9.1 on Tapestry with the help of built in maven. If you > search this forum you can find how to create Tapest

Re: a form that have an upload, submit button

2011-04-05 Thread Taha Hafeez
attachment, where ? Just paste the template/class inline... regards Taha 2011/4/5 Amr Mohamed Mahmoud Hassanien > Hi again Taha, > > I spent more time as I told you to see if I did something wrong, and I > tried all the options on > http://mail-archives.apache.org/mod_mbox/tapestry-users/200

Re: Localization resources precedence

2011-04-05 Thread Hugo Palma
I've created an issue for this here https://issues.apache.org/jira/browse/TAP5-1498 On Fri, Feb 25, 2011 at 16:11, Everton Agner wrote: > Hey > > Does anybody know the answer for this question? I was hoping to understand > the mechanics for this case too... Since I might have coded some things n

Re: updating a zone which does not exist...

2011-04-05 Thread LLTYK
I haven't used multizoneupdate, but it looks like you can specify the id of the destination, and the source doesn't have to be the exact same zone. Put your stuff in a block, then do new MultiZoneUpdate("myzone", myblock); And render the zone outside of the conditional so it's always there, with m

RE: a form that have an upload, submit button

2011-04-05 Thread Amr Mohamed Mahmoud Hassanien
Hi again Taha, I spent more time as I told you to see if I did something wrong, and I tried all the options on http://mail-archives.apache.org/mod_mbox/tapestry-users/200703.mbox/browser also, and nothing worked. Please find the files attached... your help is much appericated Thanks Amr

Re: Tapestry Service Cache and Ioko-Cache conflict

2011-04-05 Thread Yury Luneff
> Hello again! > I have noticed there is a conflict with adding both the > tapestry-service-cache and the ioko cache to a Tapestry project. > The reason is different ehcache versions > Is there any way to "marry" those 2 projects, also to avoid conflicts in the > future? just a guess -- ex

Tapestry Service Cache and Ioko-Cache conflict

2011-04-05 Thread tmarx78
Hello again! I have noticed there is a conflict with adding both the tapestry-service-cache and the ioko cache to a Tapestry project. The reason is different ehcache versions Is there any way to "marry" those 2 projects, also to avoid conflicts in the future? Thanks! Tobias ---

Re: [tapestry-security] Redirecting to original page after login

2011-04-05 Thread Alejandro Scandroli
Hi Wiktor This is the default behavior in the LoginForm component, are you using or did you write your own login form too? If that's the case, you could be missing these lines: SavedRequest savedRequest = WebUtils.getAndClearSavedRequest(requestGlobals.getHTTPServletRequest()); response.sendRedi

RE: a form that have an upload, submit button

2011-04-05 Thread Amr Mohamed Mahmoud Hassanien
Its cumbersome to share the whole code over here... but please tell me if you see anything wrong from excerpts I added, only the breakpoint in onPrepare() got hit.. I will spend more time on it and tell you the results. Thanks Amr -Original Message- From: Taha Hafeez [mailto:tawus.ta

Re: a form that have an upload, submit button

2011-04-05 Thread Taha Hafeez
Can you share the full code/template of the page ? regards Taha On Tue, Apr 5, 2011 at 12:30 PM, Amr Mohamed Mahmoud Hassanien < amr.hassan...@dmi.ae> wrote: > Hello All, > > I have followed the example in > http://wiki.apache.org/tapestry/Tapestry5HowToUseForms to make multip

a form that have an upload, submit button

2011-04-05 Thread Amr Mohamed Mahmoud Hassanien
Hello All, I have followed the example in http://wiki.apache.org/tapestry/Tapestry5HowToUseForms to make multiple submit buttons in a page and it doesn't work very well. Actually my case is a little bit different where in the same form I have an upload button