Persist variable being lost

2012-03-09 Thread Seamus
So I have a page which is basically just updating three persisted variables.
(Code below). One is being updated when a user changes selection on a
 input  (selectedNode). One is a string when a user enters text in a
simple text field (nodeNameValue). The last is a string I am manipulating in
the code (parentPath).

The select and parentPath are in a zone so when the user changes the select
it updates both.

This works fine and when setting a breakpoint in the onValueChanged I can
see all 3 variables hold what I expect. The problem is when I click the
submit button selectedNode is null and all the others are exactly as I would
expect.

This is an application written with Tapestry 5.3.2. I am thinking its some
odd behavior from the Zone? Probably not a bug just that I am doing
something wrong. I have put in a work around (hack) but would really like to
understand what my mistake is.

TML:


Java:



For the GenericSelectModel The source can be found:
http://jumpstart.doublenegative.com.au/jumpstart/examples/select/easyobject

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Persist-variable-being-lost-tp5551835p5551835.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: random generated ids inside zone after update

2011-12-12 Thread Seamus Minogue
This may not be the most elegant solution but I helge it has worked for me in 
the past. I assigned a bogus class to the element class="whatever" and then in 
jquery or prototype I selected by class. I am on my phone at the moment or I 
would look up and post the exact HTML and is but I think you should be able to 
get the idea.

-Seamus 

On Dec 12, 2011, at 3:38 AM, Andreas Bohnert  wrote:

> Thanks Dragan for your quick response!
> 
> I have tried 2. und 3. but I still get the random id for my form (I have 
> bound the .submit() to an button pressed event, so I can not do 1.).
> 
> I just wonder why your focus is on the zoneId (and not on the formId), 
> because my zoneId do not change after the zone update.
> 
> regards,
> andreas

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [5.3] JSONArray Error while submitting forms

2011-12-07 Thread Seamus Minogue
I too am using chrome... My form is simple, 5 radio buttons and a submit button.
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry 5.2.6 combine javascript

2011-12-07 Thread Seamus Minogue
I should also mention that no core.js file is being created either. 
Scriptaculous and Prototype are both seperate js files. I took a look at 
this: http://tapestry.1045711.n5.nabble.com/Combine-scripts-doesn-t-work-in-5-2-4-td3343378.html
 and from there went and looked into the hotel-booking application on github 
but I dont see any stack being created for core? Am I just not seeing it?

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Tapestry 5.2.6 combine javascript

2011-12-07 Thread Seamus Minogue
Having a problem with a Tapestry 5.2.6 project. We are using JavaScriptStack:

public JQueryBTStack(SymbolSource symbolSource, AssetSource assetSource) {
this.js = new Asset[] {
assetSource.getContextAsset("/js/excanvas.compiled.js", null),
assetSource.getContextAsset("/js/jquery.bgiframe.min.js", null),
assetSource.getContextAsset("/js/jquery.hoverIntent.js", null),
assetSource.getContextAsset("/js/jquery.bt.min.js", null)
};
this.css = new StylesheetLink[] { new StylesheetLink(
assetSource.getContextAsset("/css/bt.css", null)) };
}

But when I go to a page and look in the source or check the network tab in in 
chrome's developer tools I see all those JS files being individually 
downloaded. When I look in the source each one has its own 

Re: Tapestry 5.3 and tapestry5-cayenne

2011-12-07 Thread Seamus Minogue
Cool thanks for the detailed Explanation. 

Re: Tapestry 5.3 and tapestry5-cayenne

2011-12-06 Thread Seamus Minogue
So I dont get it. I have used Tapestry/Cayenne in several projects and 
integration is basically nothing. Just a filter and making sure you drop the 
xml files into src/main/resources if I remember correctly. I was looking at the 
project page for tapestry5-cayenne (http://code.google.com/p/tapestry5-cayenne/ 
& http://t5cayenne.saiwai-solutions.com/tutorial/) and its just not very clear 
to me exactly what this project buys me. 

Anyone used this that can point me at what using this gets me?

-Seamus


- Original Message -
From: Hugi Thordarson 
To: Tapestry users 
Cc: 
Sent: Monday, December 5, 2011 7:55 AM
Subject: Re: Tapestry 5.3 and tapestry5-cayenne

Hi Dragan.
Thank you, this will definitely be useful for us.

Cheers,
- hugi

PS: I'm impressed with the helpfulness of the community!


On 5.12.2011, at 10:41, Dragan Sahpaski wrote:

> Hi,
> I haven't used  tapestry5-cayenne, but I'd like to point you to another
> project that uses Cayenne with tapestry, if you like to browse it and see
> how cayenne is used in this project.
> 
> https://github.com/bobharner/Tapestry-finder
> 
> Hope it helps.
> 
> Cheers,
> Dragan Sahpaski
> 
> 
> 
> On Mon, Dec 5, 2011 at 11:31 AM, Hugi Thordarson  wrote:
> 
>> Hi all!
>> 
>> First time Tapestry user here, just started coding this weekend and liking
>> it so far.
>> 
>> Now, for my first question: I'm using Cayenne (3.0.2) so I just downloaded
>> the tapestry5-cayenne extension (0.5-snapshot) and installed it. Now, when
>> I start my application, I get the following exception:
>> 
>> --
>> 
>> 2011-12-05 10:29:57.846::WARN:  Failed startup of context
>> org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@7817bcd4
>> {/tap,/Users/hugi/Documents/workspace/tap/src/main/webapp}
>> java.lang.RuntimeException: Exception loading module(s) from manifest
>> jar:file:/Users/hugi/.m2/repository/com/googlecode/tapestry5-cayenne/tapestry5-cayenne-server/0.5-SNAPSHOT/tapestry5-cayenne-server-0.5-SNAPSHOT.jar!/META-INF/MANIFEST.MF:
>> Failure loading Tapestry IoC module class
>> com.googlecode.tapestry5cayenne.services.TapestryCayenneModule: Error
>> invoking service binder method
>> com.googlecode.tapestry5cayenne.services.TapestryCayenneCoreModule.bind(ServiceBinder)
>> (at TapestryCayenneCoreModule.java:93):
>> org/apache/tapestry5/PrimaryKeyEncoder
>>       at
>> org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123)
>>       at
>> org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
>>       at
>> org.apache.tapestry5.internal.TapestryAppInitializer.(TapestryAppInitializer.java:124)
>> 
>> [ … ]
>> 
>> Caused by: java.lang.RuntimeException: Failure loading Tapestry IoC module
>> class com.googlecode.tapestry5cayenne.services.TapestryCayenneModule: Error
>> invoking service binder method
>> com.googlecode.tapestry5cayenne.services.TapestryCayenneCoreModule.bind(ServiceBinder)
>> (at TapestryCayenneCoreModule.java:93):
>> org/apache/tapestry5/PrimaryKeyEncoder
>>       at
>> org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:162)
>>       at
>> org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
>>       at
>> org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)
>> 
>> --
>> 
>> Any ideas what might be happening?
>> 
>> Cheers,
>> - hugi
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [5.3] JSONArray Error while submitting forms

2011-12-06 Thread Seamus
Anyone have a solution to this. I have a form which I dont believe is making
use of any ajax (unless tapestry is and I dont know about it I am using the
current T5.3 release) and I get this error. When inspecting my page in
chrome and looking at the resources I see prototype 1.7 and scriptaculous
1.9. 

I dont see any other versions loaded for me to try and remove.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/5-3-JSONArray-Error-while-submitting-forms-tp5011831p5052214.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: security

2011-12-05 Thread Seamus Minogue
Very nice. I wonder if you would be willing to post your 3.0.0 version 
somewhere. Anybody know if that would be a problem with the localhost.nu folks? 
Or maybe just post somewhere how you changed the library for T5.3. I'm sure 
plenty of people would be interested in following your example.

-Seamus 

On Dec 5, 2011, at 6:09 AM, antalk  wrote:

> We are using a build of the spring-security module from localhost.nu to do
> (client/server)certificate processing  and also user / password logins.
> 
> Both authorization methods use the same user database to authorize against
> and both use the same library. Although the project is not updated for a
> long time it i have a custom build 3.0.0 version (whats i a name) that works
> with Tapestry 5.2.6
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/security-tp5045892p5048531.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: security

2011-12-04 Thread Seamus Minogue
Sorry I was on my phone when I wrote the earlier message and didnt have the 
complete URL handy.
http://www.localhost.nu/java/tapestry-spring-security/ is the URL of that 
library I mentioned. Looking at it I dont think I would recommend it. I used it 
back when I was on Tapestry 5.1.0.5 which appears to be the last time they 
updated it.

-Seamus



 From: Seamus Minogue 
To: Tapestry users  
Cc: Tapestry users  
Sent: Sunday, December 4, 2011 9:06 AM
Subject: Re: security
 
But in answer to your question... Yes you could use spring security if you were 
so inclined. Localhost.nu has a library I have used.

Although I am with Dragan on using Tynamo it's the route I would recommend.

-Seamus 

On Dec 4, 2011, at 5:06 AM, Dragan Sahpaski  wrote:

> Hi,
> I've been using tapestry-security (from the tynamo team) for quite some
> time now and I highly recommend it.
> It's based on apache shiro which is very mature.
> 
> Cheers,
> Dragan Sahpaski
> 
> 
> 
> On Sun, Dec 4, 2011 at 10:01 AM, csckid  wrote:
> 
>> Can I use spring security in my tapestry project? though there is Tynamo
>> tapestry security
>> 
>> --
>> View this message in context:
>> http://tapestry.1045711.n5.nabble.com/security-tp5045892p5045892.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Re: security

2011-12-04 Thread Seamus Minogue
But in answer to your question... Yes you could use spring security if you were 
so inclined. Localhost.nu has a library I have used.

Although I am with Dragan on using Tynamo it's the route I would recommend.

-Seamus 

On Dec 4, 2011, at 5:06 AM, Dragan Sahpaski  wrote:

> Hi,
> I've been using tapestry-security (from the tynamo team) for quite some
> time now and I highly recommend it.
> It's based on apache shiro which is very mature.
> 
> Cheers,
> Dragan Sahpaski
> 
> 
> 
> On Sun, Dec 4, 2011 at 10:01 AM, csckid  wrote:
> 
>> Can I use spring security in my tapestry project? though there is Tynamo
>> tapestry security
>> 
>> --
>> View this message in context:
>> http://tapestry.1045711.n5.nabble.com/security-tp5045892p5045892.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org