Re: textchanged like clientEvent

2011-09-20 Thread LLTYK
Define doesn't work. What was wrong with keyup? -- View this message in context: http://tapestry-users.832.n2.nabble.com/textchanged-like-clientEvent-tp6798861p6811862.html Sent from the Tapestry Users mailing list archive at Nabble.com. --

Re: textchanged like clientEvent

2011-09-19 Thread LLTYK
You are stuck with onkeyup. Or maybe onblur. -- View this message in context: http://tapestry-users.832.n2.nabble.com/textchanged-like-clientEvent-tp6798861p6808066.html Sent from the Tapestry Users mailing list archive at Nabble.com. -

Re: ajaxformloop inside ajaxformlopp

2011-09-12 Thread LLTYK
You probably need a public List onAddRowFromOuterLoop(). Assuming each element in your outer loop is a list which is used by the inner loop. Then you'd need to store these multiple lists somewhere. -- View this message in context: http://tapestry-users.832.n2.nabble.com/ajaxformloop-inside-ajaxfo

Re: How to add add a random number in requset path to avoid IE cache?

2011-09-08 Thread LLTYK
In what context? I've found the cache option in jQuery.ajax automatically does it: http://api.jquery.com/jQuery.ajax/ -- View this message in context: http://tapestry-users.832.n2.nabble.com/How-to-add-add-a-random-number-in-requset-path-to-avoid-IE-cache-tp6771848p6772360.html Sent from the Tap

Re: javascript

2011-09-07 Thread LLTYK
Use tapestry generated paths, like ${context:icons/add.png} . That way they won't come out as relative paths. -- View this message in context: http://tapestry-users.832.n2.nabble.com/javascript-tp6767323p6767533.html Sent from the Tapestry Users mailing list archive at Nabble.com. -

Re: javaScriptSupport.addScript vs script in .tml file

2011-09-06 Thread LLTYK
If you declare a function (your plusOneCalled) inside another function (Tapestry.onDOMLoaded), it won't be visible outside the function. Don't use addScript, unless you can initialize the button itself in addScript as well. Or you can use addScript and add the function to the window variable ( win

Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread LLTYK
5.2.6 has Prototype 1.7 and presumably those fixes. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Patching-Tapestry-for-IE9-Prototype-Bug-tp6719594p6719989.html Sent from the Tapestry Users mailing list archive at Nabble.com. ---

Re: Loop and javascript

2011-07-21 Thread LLTYK
Use a mixin. They allow you to get the autogenerated Tapestry ids and pass those to javascript. Or you can change your javascript to use event.target instead of the id. That will let you know what image was clicked, and then you can traverse the dom for the nearest radiobutton. -- View this messa

Re: what is called when - ajax version

2011-07-19 Thread LLTYK
Not really. -- View this message in context: http://tapestry-users.832.n2.nabble.com/what-is-called-when-ajax-version-tp6593136p6598840.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-ma

Re: No context for a t:select?

2011-07-05 Thread LLTYK
Here's mine: @Log void onChange(String primary, String secondary, String categoryName) { And what it does: 2011-07-05 16:52:07,899 [qtp1317701801-91] DEBUG -[ENTER] onChange("e1718719-df6e-4bc4-a25d-4b7c83b0baae", "7486318b-3f15-4735-be78-0d42ec778e1b", "category1") -- View this message in

Re: No context for a t:select?

2011-07-05 Thread LLTYK
I have something like that floating in my code. Doesn't have to be selectobject and could be a plain select, but you need zoneupdater. -- View this message in context: http://tapestry-users.832.n2.nabble.com/No-context-for-a-t-select-tp6060602p6551150.html Sent from the Tapestry

Re: T5.2.4 - Unexpected illegal argument exception: Input string '${context:css' is not valid

2011-07-05 Thread LLTYK
That's what I changed mine to, I found something commented with . There definitely aren't bots on my staging server though. Just IE browsers... -- View this message in context: http://tapestry-users.832.n2.nabble.com/T5-2-4-Unexpected-illegal-argument-exception-Input-string-context-css-is-not-va

Re: filtering Ajax requests

2011-06-20 Thread LLTYK
The TimingFilter is part of the tapestry quickstart project. Here's mine: public RequestFilter buildTimingFilter(final Logger log) { return new RequestFilter() { @Override public boolean service(Request request, Response response, RequestHandler handler) throws IOException {

Re: T5.2.4 - Unexpected illegal argument exception: Input string '${context:css' is not valid

2011-06-17 Thread LLTYK
This happens randomly for me. Exact same page/template, suddenly decide to error 1 time out of 100. My guess is it sometimes doesn't process the expansions. -- View this message in context: http://tapestry-users.832.n2.nabble.com/T5-2-4-Unexpected-illegal-argument-exception-Input-string-context-c

Re: T5.2.4 - Unexpected illegal argument exception: Input string '${context:css' is not valid

2011-06-17 Thread LLTYK
I see it too. Haven't tracked it down though. I'd think the only clientside indicator of the problem would be a missing image. -- View this message in context: http://tapestry-users.832.n2.nabble.com/T5-2-4-Unexpected-illegal-argument-exception-Input-string-context-css-is-not-valid-tp6486339p6486

Re: $T deprecated in Tapestry

2011-06-07 Thread LLTYK
Apparently it's still used in 5.3. Looks like the replacement hasn't been decided on. -- View this message in context: http://tapestry-users.832.n2.nabble.com/T-deprecated-in-Tapestry-tp6444160p6448959.html Sent from the Tapestry Users mailing list archive at Nabble.com.

Re: Simpler Select configuration

2011-06-06 Thread LLTYK
Whatever the solution is for making this simpler, it'd be nice if it came with Tapestry by default. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Simpler-Select-configuration-tp6421890p6444986.html Sent from the Tapestry Users mailing list archive at Nabble.com. -

Re: Simpler Select configuration

2011-06-03 Thread LLTYK
How about a shorthand for selectmodelfactory calls. Something like -- View this message in context: http://tapestry-users.832.n2.nabble.com/Simpler-Select-configuration-tp6421890p6434883.html Sent from the Tapestry Users mailing list archive at Nabble.com. --

Re: Strange behaviour in tapestry app

2011-06-01 Thread LLTYK
Tapestry always rewrites page classes. I haven't had much trouble debugging them in in 5.2 though. 5.2.4 did the null variable thing, 5.2.5 'fixed' it. Stepping around in the debugger would result in you finding code Tapestry added to your methods (logging at the start/end of a method if you used @

Re: [Slightly OT] Jetty "manager"/deployer

2011-05-31 Thread LLTYK
Jetty has an API, not sure if it's accessible from an application. Would be neat to have an app that can redeploy the other apps. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Slightly-OT-Jetty-manager-deployer-tp6422979p6423600.html Sent from the Tapestry Users mailing

Re: Maven-Tapestry Problem

2011-05-23 Thread LLTYK
It says "firefox.exe" not found. I'm not sure how you configure selenium to find firefox, it complained about my having 4.0 before so I had to copy it to a different directory and install 3.6. Assuming you really want to run the tests that bad. I just do -Dmaven.test.skip=true. -- View this m

Re: which is better for AJAX Implementation in Tapestry 4.0

2011-05-18 Thread LLTYK
This is in my pom: org.apache.tapestry tapestry-framework 4.1.6 org.apache.tapestry tapestry-core

Easier way to have multiple submits doing different things?

2011-05-11 Thread LLTYK
Right now the pattern below is peppered all over my code. It annoys me, having to create these booleans all the time. I think most of the time I need to do things after the submitted data is sent in, so I can't do it in the onSelected itself. Anyone have any alternatives? public class Page {

Re: Using JavascriptSupport addInitializerCall

2011-05-10 Thread LLTYK
addInitializer only calls on the Tapestry.Initializer object. addScript calls global functions. So: Tapestry.Initializer.createDroppable = function() { Droppables.add('rightContent'); alert('added RightContent to droppables'); }; And: addInitializerCall("createDroppable"); -- View thi

Re: Execute JavaScript from dynamic component

2011-05-06 Thread LLTYK
Turn your script into a mixin, that will automatically call the mixin's addScript again on partial reloads. I think there was another way to do it as well, some other way of calling addScript again, can't recall it though. -- View this message in context: http://tapestry-users.832.n2.nabble.com/E

Re: Injecting spring beans in tapestry services?

2011-05-05 Thread LLTYK
Well the real problem was me trying to use the service to early during application startup. A plain @Inject private SomeDAO someDAO; worked after I moved my code to contributeRegistryStartup. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Injecting-spring-beans-in

Re: Injecting spring beans in tapestry services?

2011-05-05 Thread LLTYK
Why does it work in pages anyways, if they're not exposed as ioc services without compatibility mode? -- View this message in context: http://tapestry-users.832.n2.nabble.com/Injecting-spring-beans-in-tapestry-services-tp6334659p6334823.html Sent from the Tapestry Users mailing list archive at Na

Re: Injecting spring beans in tapestry services?

2011-05-05 Thread LLTYK
public SomeService(SomeDAO someDAO) { this.someDAO = someDAO; //nope } Still getting "No service implements the interface". Thiago, that would turn off injecting tapestry services into spring beans. I'm gonna hold out for a bit. -- View this message in context: http://tapestry-users.832.

Injecting spring beans in tapestry services?

2011-05-05 Thread LLTYK
So I have a DAO, with an interface and impl, and injecting it works fine in a page: public class SomePage { @Inject private SomeDAO someDAO; } But then I have some tapestry service: public class SomeService { @Inject private SomeDAO someDAO; //nope @Inject @Autowired private SomeDA

Re: Getting "page cannot be displayed" error in Tapestry 4 on submitting a form with 100+ dropdowns and text field components

2011-05-05 Thread LLTYK
I don't have that in my .application and I have lots of huge forms. I did have to adjust a jetty setting (3124208 ). -- View this message in context: http://tapestry-users.832.n2.nabble.com/Getting-page-cannot-be-displayed-error-in-Tapestry-4-on-submitting-a-form-with-100-dropdowns-and-texs-tp633

Re: Creating direct download links to files

2011-05-04 Thread LLTYK
Huh, wget has a bug in it where it ignores the Content-Dispostion. https://bugzilla.redhat.com/show_bug.cgi?id=239351 But that would only result in weird filenames being saved. You seem to be not streaming it right. Or maybe something inbetween is dropping the parameters. -- View this message in

Re: transposed form loop

2011-05-04 Thread LLTYK
No, it uses form injector to add exactly one element. If you really love ajax you can put a forminjector in each row, and fire them all at once when you do an add so they can each add a cell... sounds crazy. Even with a regular Loop it's hairy, I'd have a loop for each row, generating X many colu

Re: How to disable Tapestry javascript debugger

2011-05-04 Thread LLTYK
Just blow away Tapestry.error, warning, etc with your own versions. Redirect all messages to console.log(). console.log() should probably be moved to in general, blackbird seems to only be useful for IE6/IE7 and they seem to be winding down. If you're talking about errors that don't appear at al

Re: Help required regarding IPropertySelectionModel in Tapestry 4

2011-05-04 Thread LLTYK
Either give it an initial value in pageBeginRender and don't allow a blank selection, or allow it to be null and do null-safe equals checks in getCityModel (returning an empty city list on null or something). -- View this message in context: http://tapestry-users.832.n2.nabble.com/Help-required-r

Re: how to build dynamic URL showing tooltip in tapestry 5.1.0.5

2011-04-29 Thread LLTYK
Yes you can use them side by side. http://tapestry.1045711.n5.nabble.com/t5-5-2-4-and-IE8-td3345797.html-- View this message in context: http://tapestry-users.832.n2.nabble.com/how-to-build-dynamic-URL-showing-tooltip-in-tapestry-5-1-0-5-tp6315973p6316430.html Sent from the Tapestry Users mailing

Re: Creating direct download links to files

2011-04-27 Thread LLTYK
There's no difference between streaming and what you want. You're probably just missing a header or something. For example, 'Content-Disposition: attachment; filename=Textfile.txt' or such. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Creating-direct-download-links-to-

Re: Live reload in production?

2011-04-20 Thread LLTYK
Disabled, so you automatically get better performance. I don't think you should have to tweak Tapestry options to get better performance. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Live-reload-in-production-tp6288037p6291747.html Sent from the Tapestry Users mailing

How do I refresh form field components in a zone?

2011-04-20 Thread LLTYK
I see that magically does this somehow, I point it's zone parameter to zones containing other s all the time, and it works. Yet manually refreshing a zone with a results in complaints of not being in a form. How do I put form fields in a zone with the form being outside the zone? -- View this

Re: How to resolve --->>>>" [ +/- ] Exception: Unable to read OGNL expression '' "<<<----

2011-04-20 Thread LLTYK
value="ognl:cities" You need to spam "ognl:" all over. It's the T4 way. -- View this message in context: http://tapestry-users.832.n2.nabble.com/How-to-resolve-Exception-Unable-to-read-OGNL-expression-parsed-OGNL-expression-tp6290263p6290279.html Sent from the Tapestry Users mailing list archive

Re: How to implement AJAX for "Insert" jwcid in Tapestry 4.1 ?

2011-04-19 Thread LLTYK
I don't know. However, T5 can be run alongside T4. I have an old T4 app, and write all the new pages in T5. -- View this message in context: http://tapestry-users.832.n2.nabble.com/How-to-implement-AJAX-for-Insert-jwcid-in-Tapestry-4-1-tp6286999p6287572.html Sent from the Tapestry Users mailing

Re: New component library

2011-04-18 Thread LLTYK
Put it in Maven. -- View this message in context: http://tapestry-users.832.n2.nabble.com/New-component-library-tp6282982p6283152.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: us

Re: Displaying a progress message while processing a zone update

2011-04-15 Thread LLTYK
A javascripty approach would be to popup the progress indicator onclick and hide it when the ZONE_UPDATED event is fired on the zone. Or you can look up that periodic zone refresh example, and have the zone load over and over, with it saying "Still Loading" until the actual results arrive. Not su

IE7/8 performance issue at tapestry.js:1645

2011-04-14 Thread LLTYK
Yes, one line. This is 5.2.5. I have a huge number of form fields in my form (300+), and instantiating FieldEventManagers takes forever (multiple seconds) in IE. I profiled it and found that 60% of it was the up and down selectors used to find the label element. I'm not really sure what a general

Re: Help required in using AJAX Functionality in Tapestry 4.1

2011-04-14 Thread LLTYK
I never looked into how to receive values back in T4 ajax, I only did the send part. Although doing a search on that annotation I mentioned before might help. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Help-required-in-using-AJAX-Functionality-in-Tapestry-4-1-tp62715

Re: Required a sample program in Tapestry 4.1.3 which demonstrates AJAX Functionality

2011-04-12 Thread LLTYK
Here's an example of @EventListener I found floating around. Using the annotation magically adds a javascript method to a certain div on the page. @EventListener(elements = "FooJsEventSource", events = "foo") public void doFoo() { log.trace("doFoo"); } -- View this message

Re: Implementation mixin and persistence

2011-04-06 Thread LLTYK
Last time I did this I used a javascript cookie api. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Implementation-mixin-and-persistence-tp6243796p6246820.html Sent from the Tapestry Users mailing list archive at Nabble.com. -

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: Generating popup window after form success

2011-03-31 Thread LLTYK
So wait, is this form submit an ajax submit? Why wouldn't there always be a page refresh (and thus you can do that conditional javascript scenario you described). There's no way the transaction can be successful otherwise (unless you're submitting via ajax). -- View this message in context: http:

Re: Logon notification

2011-03-30 Thread LLTYK
An HttpSessionListener... -- View this message in context: http://tapestry-users.832.n2.nabble.com/Logon-notification-tp6223363p6223518.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-ma

How do I set the anchor of the current page?

2011-03-29 Thread LLTYK
So someone clicked something on my page, and whatever event handler returns null/is void. Is there a way to set the anchor in this case? I know there's a setAnchor on a Link, but that doesn't seem to be the easiest way (since all these event handlers weren't returning anything to begin with). -- V

Re: Dynamic combo box - Tapestry 5.2.2

2011-03-29 Thread LLTYK
The js file needs to be in the same package directory, but in the resources directory instead of the java directory. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp6011286p6218845.html Sent from the Tapestry Users mailing list archive a

Re: dynamically changing event link context on client side using js

2011-03-29 Thread LLTYK
I have a mixin that does this. It doesn't have to be a mixin though. I used the urlencoder from TAP5-637 since space characters and such tend to make things break. Basically you encoder a bunch of unique characters as the context of the url server side, then replace it with whatever value you want

Re: Disable Validation of a field

2011-03-17 Thread LLTYK
You can use a FormFragment to hide and disable the field. Or you can remove the builtin required validation and manually decide whether it's required in onValidateForm. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Disable-Validation-of-a-field-tp6176353p6180826.html Se

Re: Disable Validation of a field

2011-03-17 Thread LLTYK
Do you still use the textfield even when the checkbox is checked? If not, you can make some js for the click event of the checkbox and simply disable the textfield in your js. I suspect this disables validation. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Disable-Vali

Re: Uploading then displaying Images

2011-03-11 Thread LLTYK
Nobody's mentioned createEventLink. That's where you get the image url, create an event link pointing to the event handler that returns the stream response. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Uploading-then-displaying-Images-tp6159049p6161239.html Sent from t

Re: Updating a Field on event in Tapestry5

2011-03-10 Thread LLTYK
Define "update another textfield". Are you putting some result from the server in it? Read up ZoneUpdater: http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/ajaxonevent Although it's annoyingly tricky to refresh form fields. The example refreshes some plain text. -- View this

Re: Centralize error handling

2011-03-04 Thread LLTYK
My approach would be not to throw exceptions all the time. The exception handler is only used for fatal stuff, I don't throw stuff there by design. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Centralize-error-handling-tp6089256p6089399.html Sent from the Tapestry User

Re: Handling form events inside components

2011-03-04 Thread LLTYK
One hacky way of doing it is with onValidateFromXXX. Before the actual value is copied over from a field to the java object, this method is called. Not to be confused with onValidateForm. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Handling-form-events-inside-componen

Re: Invoke method after page is loaded; when method finishes, redirect to another page

2011-03-04 Thread LLTYK
Use a meta refresh (it'll probably have to be in the tag somehow). Or javascript, to hit the same url. @Inject private ComponentResources componentResources; @OnEvent("calculate") ResultPage calculate() { } public String getCalculateUrl() { return componentResources.createEventLink("calcul

Re: Defining validation properties for a textfield embedded within another component

2011-02-28 Thread LLTYK
I'd think of a way to avoid using a bunch of css class names to begin with. Perhaps a better css selector would work with no changes to the class names. Maybe you could stamp the class you want on the div or whatever that contains all these fields. -- View this message in context: http://tapestr

Re: JavaScript Stack aggregator

2011-02-28 Thread LLTYK
We can't really tell what you've forgotten if we haven't seen how you did it. -- View this message in context: http://tapestry-users.832.n2.nabble.com/JavaScript-Stack-aggregator-tp6074088p6074478.html Sent from the Tapestry Users mailing list archive at Nabble.com. ---

Re: Can mixins add validation serverside?

2011-02-28 Thread LLTYK
I in particular need to get the class of the parent of the property somehow. That's how I conditionally add validation. And the name of the property as well. It's a retread of what tapestry5-cayenne does, which seems castrated to me because it requires BeanEditor to provide this information to the

Re: Can mixins add validation serverside?

2011-02-28 Thread LLTYK
With that I'd have to get the class of the parent of the property somehow... you guys tightly integrate the annotation support to do this with @Validate. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Can-mixins-add-validation-serverside-tp6073177p6073903.html Sent from

Re: Pb in 'getOrCreateMethod()' ?

2011-02-28 Thread LLTYK
That setup sounds like something you shouldn't do. Two different instances of two different classes with the same name? -- View this message in context: http://tapestry-users.832.n2.nabble.com/Pb-in-getOrCreateMethod-tp6073648p6073867.html Sent from the Tapestry Users mailing list archive at Nab

Can mixins add validation serverside?

2011-02-28 Thread LLTYK
I'd like to conditionally add some validation using a mixin, maxLength and required for example. Can a mixin somehow alter the validate attribute of a field? -- View this message in context: http://tapestry-users.832.n2.nabble.com/Can-mixins-add-validation-serverside-tp6073177p6073177.html Sent

Re: Radio Button Event ??

2011-02-23 Thread LLTYK
I'd do it in more or less pure javascript, since you will have to add a javascript listener to the radio button either way (either to trigger an event java side or to directly add/remove the disabled attribute from the fields). -- View this message in context: http://tapestry-users.832.n2.nabble

Re: T5.2 mixin example

2011-02-23 Thread LLTYK
See the ZoneUpdater code: http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html Disable the builtin actionlink behavior and do all you want your self (zoneupdater shows how to do the zone part, with context parameter for sending little bits of information). I assume "fire back any

Re: T5.2 mixin example

2011-02-23 Thread LLTYK
The wiki examples aren't terribly different, just change RenderSupport to JavaScriptSupport. And the addScript method may have changed slightly as well. var SomeMixin = Class.create(); SomeMixin.prototype = { initialize : function(element,zone) { Event.observe($(el

RE: T5: UploadedFile problem

2011-02-22 Thread LLTYK
Hit your app with IE and it'll return something. Newer versions of IE actually return "c:\fakepath". -- View this message in context: http://tapestry-users.832.n2.nabble.com/T5-UploadedFile-problem-tp6052426p6053186.html Sent from the Tapestry Users mailing list archive at Nabble.com. -

Re: Error after logout

2011-02-17 Thread LLTYK
The problem here is the session somehow being accessed after invalidate() is called. Maybe you tried to set an @Persist'd variable or something, and the actual change didn't propagate until after you called invalidate(). I do my invalidate in an ajax request. The other solution is to call invalid

Re: Tapestry 5 & JBoss 6 - Silently Fails

2011-02-16 Thread LLTYK
// supports virtual filesystem used by JBoss 5.x try { URLConnection connection = url.openConnection(); Object virtualFile = invokerGetter(connection, "getContent"); Object zipEntryHandler = invokerGetter(virtualFile, "getHandler"); URL realUrl = (

Re: Tapestry 5 & JBoss 6 - Silently Fails

2011-02-16 Thread LLTYK
I'm on Jboss 5.1 here. Slightly different classpath converter. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Tapestry-5-JBoss-6-Silently-Fails-tp6021772p6031747.html Sent from the Tapestry Users mailing list archive at Nabble.com. -

Spring beans in the AppModule?

2011-02-15 Thread LLTYK
I'm trying to use a spring bean in my AppModule: public static void contributeApplicationDefaults(MappedConfiguration configuration, @Inject SomeSpringBean someSpringBean) { configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en"); configuration.add(SymbolConstants.APPLICATION_V

Re: Dynamic combo box - Tapestry 5.2.2

2011-02-10 Thread LLTYK
I use the ZoneUpdater mixin to do this. http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html @Log void onChangeFromFirstSelect(String value) { //set options for second select } The zone encompasses all the selects. -- View this message in context: http://tapest

Re: Annotation for Field Description

2011-02-08 Thread LLTYK
A more descriptive label would be easy, just add the keys to the properties file. More than that will probably delve into custom decorator or property block territory. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Annotation-for-Field-Description-tp6004837p6005098.html

Re: How to fix the id attribute of a select component

2011-02-08 Thread LLTYK
The current "solution" is to use a mixin instead of onchange. Mixins will get the newly generated id passed in to their initialize(), where you would then attach an onchange listener with prototype observe. -- View this message in context: http://tapestry-users.832.n2.nabble.com/How-to-fix-the-i

Re: How to fix the id attribute of a select component

2011-02-07 Thread LLTYK
When you load Tapestry components in an ajax request a new t:id is generated. Presumably because it's possible for a component with the same original id to still be on the page. I'm not sure how this relates to the client side id. -- View this message in context: http://tapestry-users.832.n2.nab

Re: Antwort: Tapestry 5 error "Caused by: java.lang.RuntimeException: Literal values are not updateable"

2011-02-07 Thread LLTYK
Because it's literal "false" and where changes would be stored is not specified. If you want to set it you have to have the parameter map to a property of the container. The example doesn't make clear what you are trying to do to begin with. -- View this message in context: http://tapestry-use

Re: Struggling with Ajax in T5 ...

2011-01-31 Thread LLTYK
The key part of zone updater that does what you want is this: void afterRender() { String url = resources.createEventLink(event, context).toAbsoluteURI(); ... renderSupport.addScript("%sZoneUpdater = new ZoneUpdater(%s)", prefix, spec.toString()); } This is the interface from Tap

Re: how to return value to a onCompleteCallback() function?

2011-01-27 Thread LLTYK
Return a JSONObject. -- View this message in context: http://tapestry-users.832.n2.nabble.com/how-to-return-value-to-a-onCompleteCallback-function-tp5967095p5967228.html Sent from the Tapestry Users mailing list archive at Nabble.com.

Re: creating an InPlaceSelect control

2011-01-26 Thread LLTYK
Just a guess, but change your tml to have a context along with changing the event handler. t:mixins="ck/OnEvent" t:event="change" t:context="contextyoumakeup" -- View this message in context: http://tapestry-users.832.n2.nabble.com/creating-an-InPlaceSelect-control-tp5963248p5963981.html Sent

Re: creating an InPlaceSelect control

2011-01-26 Thread LLTYK
Just use the chenillekit onevent mixin. Unfortunately it'll only pass the selected value as a string. So you'd have to translate the string back into your object. @OnEvent(component = "TheSelect", value = "change") void onSelected(String value) { } -- View this message in context:

Re: Dynamic Layout

2011-01-24 Thread LLTYK
You need to do it in Javascript (document.title = "Blah" + document.title). Or if you disable Tapestry javascript validation the layout will be rerendered as you expect. Tapestry doesn't seem to have a good place to hook into failed javascript validations though. As far as I can tell you'd hook i

JavaScriptStack demo

2011-01-19 Thread LLTYK
Here's an example of the 5.2 JavaScriptStack api. I used it to load Datatables (http://www.datatables.net/). The page: @Import( stack={"datatable"}) public class PageWithDatatable { void afterRender() { //connect datatable to tml here } } The AppModule: public static void contribu

Re: t5: 5.2.4 and IE8

2011-01-19 Thread LLTYK
I suspect you simply need to add noConflict to the end of the jquery js (without having to reminify). As long as it is in the same file it'll satisfy IE8. -- View this message in context: http://tapestry-users.832.n2.nabble.com/t5-5-2-4-and-IE8-tp5934819p5940730.html Sent from the Tapestry Users

Re: Service order in a tapestry library?

2011-01-19 Thread LLTYK
Nevermind, it was a maven classpath problem. It works fine regardless of the order of those "Adding module" statements. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Service-order-in-a-tapestry-library-tp5940301p5940531.html Sent from the Tapestry Users mailing list ar

Re: Resurrected: T5 Rendering a column as text box in a grid when the columnName is dynamic

2011-01-19 Thread LLTYK
Any tapestry identifiers in tml are not dynamically changeable. First step would be programmatically creating the bean model in the java code, and passing that to the grid. Customizing those dynamic blocks can be tricky though, probably involving PropertyEditBlocks in the appmodule or something.

Service order in a tapestry library?

2011-01-19 Thread LLTYK
I try to contribute a JavaScriptStack in a library module, and it ends up failing. The TapestryModule seems load after the libraries. I assume it would work fine if I put it in my AppModule instead. How would you use it in a library though? The contribution: public static void contributeJavaScr

Re: Combine scripts doesn't work in 5.2.4?

2011-01-19 Thread LLTYK
The only example I've seen is in TapestryModule.java: public static void contributeJavaScriptStackSource(MappedConfiguration configuration) { configuration.addInstance(InternalConstants.CORE_STACK_NAME, CoreJavaScriptStack.class); configuration.addInstance("core-datefield"

Re: Tapestry 5.2 Disable element id autogeneration

2011-01-19 Thread LLTYK
Put the submit button inside the zone as well, then it will link to the new id. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Tapestry-5-2-Disable-element-id-autogeneration-tp5938959p5939355.html Sent from the Tapestry Users mailing list archive at Nabble.com. ---

Re: Combine scripts doesn't work in 5.2.4?

2011-01-18 Thread LLTYK
The builtin tapestry stuff seems to combine itself into core.js if it's included as a stack. Maybe it works if you create a javascriptstack instead? Still a bug though. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Combine-scripts-doesn-t-work-in-5-2-4-tp5929290p593650

Re: Grid onAction Problem IEM6

2011-01-18 Thread LLTYK
If you wanted a servlet request you'd do "return new HttpServletRequestFilter()". And then you'd change the the return type, and the request and response type (HttpServletResponse, etc). I don't think you need to do that anyways. Just log Request.getPath(). Usually this ends up being a url() ref

Re: T5.2 - Activation context for ajax requests

2011-01-14 Thread LLTYK
I had an onPassivate. I realized something in my javascript was stripping the query parameters from the link from createEventLink. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Re-T5-2-Activation-context-for-ajax-requests-tp5921878p5922180.html Sent from the Tapestry U

T5.2 - Activation context for ajax requests

2011-01-14 Thread LLTYK
So I am using Inge's ZoneUpdater. Previously in 5.1, the createEventLink in it results in a "?t:ac=1/2" being tacked onto the end of the event link. Afterwards, when the event is triggered, the page's onActivate(Integer,Integer) is called. This initializes some instance variables that are then use

Re: Grid / Ajax and checkbox

2011-01-13 Thread LLTYK
Well if you *must* use the ajax grid paging... then don't use tapestry checkboxes. Use ordinary html checkboxes that have onclick javascript handlers that ping the server with their new value. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Grid-Ajax-and-checkbox-tp59184

Re: Grid onAction Problem IEM6

2011-01-13 Thread LLTYK
I would log all HTTP requests to the server and see which one is triggering the error. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Grid-onAction-Problem-IEM6-tp5917903p5918246.html Sent from the Tapestry Users mailing list archive at Nabble.com.

Re: Grid onAction Problem IEM6

2011-01-13 Thread LLTYK
Bad relative link in the css or something sending asset requests to the page itself? -- View this message in context: http://tapestry-users.832.n2.nabble.com/Grid-onAction-Problem-IEM6-tp5917903p5917932.html Sent from the Tapestry Users mailing list archive at Nabble.com. --

Re: Tapestry5 + Tomcat5 + Apache2

2011-01-11 Thread LLTYK
I think apache just isn't expecting urls to be in the js and isn't replacing it. I wonder if Chenillekit should be using toAbsoluteURI, wouldn't a relative path work just fine? As for the solution, well make your own copy of the mixin and fix it (I'd make it use a relative path instead). -- Vie

Re: T5.2.4 How to discard persistent fields when the user leaves a page ?

2010-12-27 Thread LLTYK
It's called discardPersistentFieldChanges: http://tapestry.1045711.n5.nabble.com/T5-Cleaning-page-s-persistent-field-td2419355.html -- View this message in context: http://tapestry-users.832.n2.nabble.com/T5-2-4-How-to-discard-persistent-fields-when-the-user-leaves-a-page-tp5867260p5869215.html

tapestry.disable-default-modules seems broken

2010-12-21 Thread LLTYK
If you specify this, it disables any modules on the classpath, leaving only the Tapestry stuff. I assumed that you'd be able to add other modules manually via tapestry.modules, but that also gets disabled. Is it supposed to be like that? -- View this message in context: http://tapestry-users.832

  1   2   >