tapestry 5 FormFragment validation with IE8/IE9

2012-08-06 Thread LanceWhite
There seems to be a problem with FormFragment validation and IE8/IE9, in that
validation in the fragment is always being performed, whether or not the
fragment is visible.

Is this a known problem that will be fixed, or can anyone offer a solution
to get round it?

I'm using Tapestry 5.3.3.


Cheers

Lance




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/tapestry-5-FormFragment-validation-with-IE8-IE9-tp5715086.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



linksubmit t:mode=CANCEL and t:errors

2012-07-23 Thread LanceWhite
I'm not sure if this is deliberate or not, but here goes...

I've got a form with some fields that have client side validation. I've also
got a linksubmit button for cancelling the  action if wanted, with the flag
t:mode=cancel.

In itself, this is working fine, *but* I've also got the t:errors component
in the form to show validation errors, and this is always getting shown with
the validation errors, whether the submit is acting on the validation or
not.

An example of this is shown in the JumpStart page - 
http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formsinaloopwithdeh
Ajax Forms in a Loop (With Deleted Entity Handling) 

Pick any of the rows and click the Edit button. Clear the First Name on the
row, and then press Cancel. The row goes back to its original state, so the
validation hasn't activated, but you still see the error message 'You must
provide a value for First Name.'

Surely this component display should not be rendered if the validation is
not required?


Cheers

Lance



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/linksubmit-t-mode-CANCEL-and-t-errors-tp5714696.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: Cannot get component library to load

2012-05-31 Thread LanceWhite
Yeeha!

That did it for me as well - have to look now & see exactly what that does
with the jar.


Thanks a lot folks!


Lance

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Cannot-get-component-library-to-load-tp5713444p5713558.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: Cannot get component library to load

2012-05-29 Thread LanceWhite
Using Jetty.

Nothing's inside a WAR file, everything's just referenced directly. I tried
copying my module jar to the same place as the tapestry jars just to see if
the location of the jar was the problem -but it wasn't...still nothing.

All you should have to do is ensure the library jar is on the classpath
isn't it? You don't have to set anything else for runtime?

Lance

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Cannot-get-component-library-to-load-tp5713444p5713498.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: Cannot get component library to load

2012-05-29 Thread LanceWhite
Yeah - that just returns an Enumeration of URLs for each call.

Each Enumeration has one entry, so

jar:file:/C:/Development/Projects/Test-Tapestry-Module/MyPlugin.jar!/org/test/pages/TestPage.class
 

for the class, and 

jar:file:/C:/Development/Projects/Test-Tapestry-Module/MyPlugin.jar!/org/test/pages/TestPage.tml
 

for the tmll, so no difference.


Lance


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Cannot-get-component-library-to-load-tp5713444p5713493.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: Cannot get component library to load

2012-05-29 Thread LanceWhite
Also, the classLoader here is an instance of
org.apache.tapestry5.internal.plastic.PlasticClassLoader which obviously
contains the module pages, whereas the one in the ClassNameLocator
implementation is looking at one called ContextLoader@TestApp (where TestApp
is the name in the web.xml).

(I'm probably doing something reealy dumb for this not to work, but
I just can't figure out what it is!)


Lance

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Cannot-get-component-library-to-load-tp5713444p5713489.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: Cannot get component library to load

2012-05-29 Thread LanceWhite
Interesting...

I had to change findResources to getResource as findResources isn't publicly
visible, but it dumped this :


jar:file:/C:/Development/Projects/Test-Tapestry-Module/MyPlugin.jar!/org/test/pages/TestPage.class
jar:file:/C:/Development/Projects/Test-Tapestry-Module/MyPlugin.jar!/org/test/pages/TestPage.tml


So something knows the pages are there.

Lance

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Cannot-get-component-library-to-load-tp5713444p5713488.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: Cannot get component library to load

2012-05-28 Thread LanceWhite
Jar Contents

META-INF
MANIFEST.MF
org
test
pages
TestPage.class
TestPage.tml
services
TestModule.class


Only one copy of Tapestry & my module jar. I've tried running it in Eclipse
and standalone, and with 5.3.2, and it's still doesn't find anything.

Lance

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Cannot-get-component-library-to-load-tp5713444p5713466.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: Cannot get component library to load

2012-05-28 Thread LanceWhite
Yep.


Tapestry-Module-Classes: org.test.services.TestModule

Where TestModule.java contains the contributeComponentClassResolver posted
above.

Lance

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Cannot-get-component-library-to-load-tp5713444p5713453.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: Cannot get component library to load

2012-05-28 Thread LanceWhite
OK,




The library contains a page rather than a component (although a component
copied in from teh tapestry upload library didn't work either...)



If I try & reference it from the main app, all I get is this :



I would also expect the library pages to show on the list of available pages
that Tapestry dumps when it starts running - the Upload component certainly
does, and I'm not using it, so it's not as if that list only shows pages
that are referenced.

Lance



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Cannot-get-component-library-to-load-tp5713444p5713450.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: Cannot get component library to load

2012-05-28 Thread LanceWhite
This is with 5.3.3 by the way.

Lance

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Cannot-get-component-library-to-load-tp5713444p5713446.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



Cannot get component library to load

2012-05-28 Thread LanceWhite
Hi.

I'm trying to write a small component library, and just cannot get any
component or pages linked in to my main Tapestry app.

1) I've got the component jar manifest file pointing at the module file in
the services.

2) the contributeComponentClassResolver *is* getting called - I can see this
in the log file - Adding module definition for class


3) My library module jar is on the classpath (I can call a static dummy
method in it from the main app).


I've traced down through the ComponentClassResolverImpl and
ClassNameLocatorImpl to the findClassesWithinPath call, for which the
packagePath is correct in my library, but the call cannot seem to find any
resource URLs in the contextClassLoader.

I've looked at the code for the uploader library, which is loading
correctly, but cannot see where I've gone wrong.

Anyone got any pointers?


Cheers

Lance


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Cannot-get-component-library-to-load-tp5713444.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: T5.3 Grid sorting

2012-01-12 Thread LanceWhite
Thanks, that gave me the info I needed!

(and found the JumpStart example where this was done)

Cheers

Lance

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-3-Grid-sorting-tp5140215p5140324.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



T5.3 Grid sorting

2012-01-12 Thread LanceWhite
How do you turn off the user sorting of a column in the T5.3 grid? Do you
have to set a specific GridSortModel, if so, is there an example of how this
is done - and what specifically the methods of an implementation of a
GridSortModel should return?


Cheers

Lance

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-3-Grid-sorting-tp5140215p5140215.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