Re: Problem using t:output format for numbers
Thanks for the explanation Thiago! I implemented it through a get method and CSS. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Problem-using-t-output-format-for-numbers-tp5551573p5557987.html Sent from the Tapestry - User mailing list archive at Nabble.com. -
Re: Problem using t:output format for numbers
Thanks. I was hoping I could use 'format' to get this done by using something as simple as '%,13d', but looks like I'll have to resort to a java method and CSS. According to tapestry documentation format takes a java.text.Format, so wondering why '#,###' doesn't work. -- View this message in
Problem using t:output format for numbers
Hi, I have a Long object which has to be printed right justified in a table in #,### format. I tried This writes it literally as #,### in the output. What I am doing wrong? Also how to right justify it in the column? Thanks -- View this message in context: http://tapestry.1045711.n5.nab
Re: Error @Injecting Spring Datasource when there are more than one Datasources
ok got the answer from here - http://tapestry.apache.org/injection.html @Inject @Service("dataSourceFirewall") private DataSource dataSourceFirewall; -- View this message in context: http://tapestry.1045711.n5.nabble.com/Error-Injecting-Spring-Datasource-when-there-are-more-than-one-Datasou
Error @Injecting Spring Datasource when there are more than one Datasources
I am using tapestry spring integration. I have three datasources defined in my spring application context. When I try to inject one of them I get an error "Service interface javax.sql.DataSource is matched by 3 services: dataSourceAnalytics, dataSourceFirewall, dataSourceUser. Automatic depend
Re: problems getting rid of the JS confirm box from confirm mixin
Solution: // stop the event e.stop(); //store the href so I can post it myself if yes is clicked var href = jQuery('#'+this.elementId).attr("href"); // store the zone so we can update that later //zone id is passed into the mixin as a param var zoneManager = Tapestry.findZoneManagerForZone(
how to run javascript after returning from form submit
Hello, I have a form within a zone. On for submit I do some validations, and if there are errors, I want to remain on the same page, and run a javascript method on the client side. How do I achieve this? tml - [input elements here] java - Object onSuccess() { //do valid
Re: problems getting rid of the JS confirm box from confirm mixin
I think I might have my solution from here - http://code.google.com/p/flowlogix/source/browse/tapestry-services/src/main/resources/com/flowlogix/web/mixins/DisableAfterSubmit.js?r=caa40702061eee198cf2f82dfd48106e34316fce -- View this message in context: http://tapestry.1045711.n5.nabble.com/p
Re: problems getting rid of the JS confirm box from confirm mixin
No answers?? :(( Please help! -- View this message in context: http://tapestry.1045711.n5.nabble.com/problems-getting-rid-of-the-JS-confirm-box-from-confirm-mixin-tp5444911p5450938.html Sent from the Tapestry - User mailing list archive at Nabble.com. --
Re: form within a form scenario
Yeah ok. Thats how I've handled it now...was wondering if there is another way. Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/form-within-a-form-scenario-tp5444872p5445619.html Sent from the Tapestry - User mailing list archive at Nabble.com. -
Re: form within a form scenario
The reason I want the entire thing enclosed within a form is that I have other fields along with t:ContactCrud for each row, which have to be submitted as a whole. -- View this message in context: http://tapestry.1045711.n5.nabble.com/form-within-a-form-scenario-tp5444872p5444886.html Sent fro
form within a form scenario
Hi, I want to create an ajax grid and do CRUD operations on single rows without having to post the entire form. So something like this - ContactCrud is my custom component which in turn deals each row in Edit, Delete, Create modes. Each row will have a Edit, Delete icons
Re: How to generate zone IDs dynamically via code?
Thiago...I was right. I knew you would post an answer that will work and it did work :) Thanks!! -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-generate-zone-IDs-dynamically-via-code-tp5347989p5366543.html Sent from the Tapestry - User mailing list archive at Na
Re: can someone explain what t:ac is?
Really? But according to this page http://tapestry.apache.org/tapestry5/apidocs/constant-values.html t:ac is the page's activation context. When I had t:context="program.id" the url generated was, '/programs/info.requestoverride:internalevent/10508?t:ac=10508' When I tried t:context="['test',
Re: can someone explain what t:ac is?
ok I got it, 'page context' is also being passed along with the context that i requested. If I dont want this, I just filter it out in my event handler. Right? -- View this message in context: http://tapestry.1045711.n5.nabble.com/can-someone-explain-what-t-ac-is-tp5143182p5143212.html Sent f
can someone explain what t:ac is?
Hi, I am using a customized version of chennillekit's (can never get the spelling right) onEvent mixin. I notice that it puts some query parameters after the context value. /programs/info.requestoverride:internalevent/10508?t:ac=10508 But this does not happen for all components. I read it is
Re: How to get resource handle in AppModule.java
Great, that worked, thanks. public EmailTemplate buildEmailTemplate(@Inject AssetSource assetSource) throws IOException { Asset asset = assetSource.getContextAsset("/templates/billing.stg", new Locale("en")); EmailTemplate emailTemplate = new EmailTemplate(asset.getResource().op
How to get resource handle in AppModule.java
Hi, I want to access a resource file from AppModule.java buildXXX method. Can anyone guide me how to go about it? public EmailTemplate buildEmailTemplate() { InputStream is = ?? // I want to get a handle to a text file residing in my context path. // obviously FileInputStream("/tem
Re: why does tapestry force variables to be private?
Got it! Thanks for the explanation. > In any case, I will be taking a crack at supporting this in 5.4 ... > allowing fields to be non-public, but not necessarily private. That'll be great! -- View this message in context: http://tapestry.1045711.n5.nabble.com/why-does-tapestry-force-varia
Re: why does tapestry force variables to be private?
just discovered that it is not just for property variables, i cant say - public String something; protected String something2; why?? -- View this message in context: http://tapestry.1045711.n5.nabble.com/why-does-tapestry-force-variables-to-be-private-tp4924925p4924955.html Sent from the Tapes
why does tapestry force variables to be private?
I understand encapsulation and the need for it, but isn't it very common for base classes to have protected variables which the derived classes can access freely without having accessor methods? Is there any architectural reason in tapestry for disallowing this for property and injected variabl
Re: whats the best way to differentiate create and update modes in a form
Thanks for the inputs Thiago! -- View this message in context: http://tapestry.1045711.n5.nabble.com/whats-the-best-way-to-differentiate-create-and-update-modes-in-a-form-tp4918970p4924893.html Sent from the Tapestry - User mailing list archive at Nabble.com. -
whats the best way to differentiate create and update modes in a form
I have a program wizard that has 5 tabs (so 5 java/tml one for each tab). A new program's id created on the first page, is passed on to the other 4 pages, where the other parts of the program are created. Initially I had the urls look like - /page1 (for create), /page1/24 (for update of id=24)
Re: redirect-after-post messes with my StreamResponse
@Taha - that'll be great! I'll create a separate app when today/tomorrow and share it. Thanks! @Martin - I've been trying all kinds of handlers (onSuccess, onSubmit, obSubmitFrom, onEvent) to see if anything works. So thats why you see a difference between the code and logs. Yes, my method i
Re: redirect-after-post messes with my StreamResponse
nope, i moved the class to another package, (util) and tried and that didn't work too. Same error. I guess I'll just go with returning the file during the reload. Thank you all for your help!! Really appreciate it. -- View this message in context: http://tapestry.1045711.n5.nabble.com/redi
Re: redirect-after-post messes with my StreamResponse
@Martin - wow, thats a great thought. Let me try it now. -- View this message in context: http://tapestry.1045711.n5.nabble.com/redirect-after-post-messes-with-my-StreamResponse-tp4763647p4765481.html Sent from the Tapestry - User mailing list archive at Nabble.com.
Re: redirect-after-post messes with my StreamResponse
We do content rating of web pages. So if you give a domain/url, we give you a safety rating (0-1000, 0 being low safety & 1000 being high safety) for that page in different categories, like Adult, Alcohol, Drugs, Torrents, Offensive Language, etc. This is used by ad agencies and networks - in re
Re: redirect-after-post messes with my StreamResponse
Hey Taha, there you are! Yes, it is getting called. The log message "Streaming back the results." is from within onSubmit. Also I debugged it and saw the method is being called. It works for you? Then i guess it is something to do with my env then..some jars not playing well together or som
Re: redirect-after-post messes with my StreamResponse
I upgraded to Tap 5.2.6 and now I see an interesting error message... Notice that just before the exception, I print the contents of the StreamResponse and it does print my test lines. Any idea? DEBUG [http-8080-6] UrlAnalysis._$advised$onSubmit(122) | Streaming back the results. DEBUG [http-80
Re: redirect-after-post messes with my StreamResponse
@Thiago - I am using Tapestry 5.1.0.5. @Martin - here is my code. This code works when called from onActivate() and returns the file. JAVA @Log StreamResponse onSuccess() { try { File tmpFile = File.createTempFile(urlFile.getFileName(), null); BufferedWriter br = new BufferedWrit
Re: redirect-after-post messes with my StreamResponse
(lol...looks like people are clamoring for you Thiago :) ) I dont mind having a separate page for streaming the csv, but i would like to know why my current onSuccess StreamResponse is not streaming back the file. I checked if it is null or something by printing it out in my onSuccess method bef
Re: redirect-after-post messes with my StreamResponse
I worked around the problem like this: storing the name of the return file in a property (FLASH, so it stays just for a single refresh), and returning the contents of the file in onActivate, so when the page reloads the file will be streamed back. But this seems ugly :( Still looking for a solut
Re: redirect-after-post messes with my StreamResponse
Please help tapestry gurus! Thiago? Taha?? Anyone? -- View this message in context: http://tapestry.1045711.n5.nabble.com/redirect-after-post-messes-with-my-StreamResponse-tp4763647p4763719.html Sent from the Tapestry - User mailing list archive at Nabble.com. --
redirect-after-post messes with my StreamResponse
I've started a new thread because my older post regarding this issue lead me to think on different lines, than my subject line and i didnt want to re-edit it and mess with all the following threads. (http://tapestry.1045711.n5.nabble.com/StreamResponse-onSuccess-does-not-stream-back-data-td4759347
Re: StreamResponse onSuccess does not stream back data
Thanks, I see it now. Yeah, I think it is not my code, because i tried using the LinkSubmit control, exactly as you did and I am still getting the same 302 error. Ok, i'll try to debug my post headers. thanks for the responses! -- View this message in context: http://tapestry.1045711.n5.nab
Re: StreamResponse onSuccess does not stream back data
I just see the string "CSV" within no link or anything else within it. The different in the java class between yours and mine is you've used @OnEvent and captured submit, and I've used onSuccess()...i tried changing it to your style, but still i get the 302 Moved Temporarily error. Not able to
Re: StreamResponse onSuccess does not stream back data
Thanks, I tried that and now the content length in the return headers shows the file size, but still I get the '302 Moved Temporarily' error :( Can u show me a sample of your tml file? Wonder if i am doing anything wrong there. Here is mine: Upload URL File (Pl
Re: StreamResponse onSuccess does not stream back data
These are the response headers of the POST...seeing 302 Moved status. Any idea why this is happening? HTTP/1.1 302 Moved Temporarily Server: Apache-Coyote/1.1 Content-Disposition: attachment; filename=test1.txt_scored.csv Location: http://localhost:8080/urlanalysis Content-Type: text/csv;charse
StreamResponse onSuccess does not stream back data
Hi, I have a form with a file upload control. When the user clicks submit, the file is posted. I read the file, process it and return results back in a file. I am facing a problem streaming back the results. No file is getting streamed back, instead the page reloads again (I see onActivate of
Re: How to control file types/extensions in t:upload
oh ok. Thanks for the reply! -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-control-file-types-extensions-in-t-upload-tp4746468p4746546.html Sent from the Tapestry - User mailing list archive at Nabble.com.
How to control file types/extensions in t:upload
Hi, I am using t:upload control in my form. I want the user to be able to upload only .txt or .csv files. How to I control this? Right now I can see all files enabled when the file dialog opens. Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-control
Re: Can i have class names different from the calling url path?
Cool!! You always have answers. Thanks! The thing I love about this forum is I know I will get a reply within an hour max! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Can-i-have-class-names-different-from-the-calling-url-path-tp4644276p4644490.html Sent from the
Can i have class names different from the calling url path?
All, What I want is to access pages.admin.users.UserEdit from the url /admin/users/edit pages.admin.users.ActiveUsers from the url /admin/users/active I dont want to change UserEdit to 'Edit' because Edit is a very generic name for a class...but when the same thing appears in the url from a res
Re: simple chenillekit button question - label doesn't show up
worked great! thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/simple-chenillekit-button-question-label-doesn-t-show-up-tp4640331p4640872.html Sent from the Tapestry - User mailing list archive at Nabble.com.
simple chenillekit button question - label doesn't show up
Hi, I have a chennilekit button, but the label that I give doesnt show up and just a blank button appears. I check the docs and there is no 'value' param... http://www.chenillekit.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/components/Button.html So how do I give a label for the
Re: Is it possible to access @SessionState at the "listener" level
Which class do I cast it to? = (??) servletContext.getAttribute(TapestryFilter.REGISTRY_CONTEXT_NAME); Looks like tapestry IOC is a bunch of classes? Not sure which one to use. Thanks!! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Is-it-possible-to-access-SessionSt
Is it possible to access @SessionState at the "listener" level
Hi All, I have a listener registered with my servlet container which adds users to the servlet context as they login (so i have a list of currently loged in active users). Depending on the user's settings I want to be able to set some values in @SessionState so that I can later use it across all
Re: how to dynamically turn "t:validate" off
@Thiago - Tried using null instead of "none" and it gave the error "Parameter validatorType was null or contained only whitespace". @Robert - thanks for the code. It worked great. I've pasted my code belowbut I am having to have a separate getValidator method for each of my components si
Re: how to dynamically turn "t:validate" off
ok, so I tried this - public FieldValidator getNameFieldValidator() { String validationString = programsGroup.getPrograms().size() == 1 ? "required" : "none"; Field f = (Field) componentResources.getEmbeddedComponent("name"); return fieldValidatorSource.createValidator(
how to dynamically turn "t:validate" off
I have a select control for which I want to set the t:validate attribute dynamically. For some cases when the form loads I dont want validation on the control. So in in the tml definition of the control I have - t:validate="${validate}" and in my java class I have public String getValidate(
Re: how do i highlight a text field with a different color?
Thanks for all the replies! @thiago - guess thats the simplest solution! Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-do-i-highlight-a-text-field-with-a-different-color-tp4529092p4529290.html Sent from the Tapestry - User mailing list archive at Nabble.c
Re: how do i highlight a text field with a different color?
Thanks. I get the general idea - have a css defined for highlighting and add the css class dynamically to the desired form component. How do I set the css class to the components in my java class? Would appreciate any lead. I've written custom components where I can add attributes to a componen
how do i highlight a text field with a different color?
Hi, I have a form for which I am trying to implement bulk edit functionality. Lets say it is a customer details form and I am bulk editing the members of the same family. What I want is, for the address field to have the values filled (because it is the same for everyone), and the age/dob/.. fi
Re: problems with submit when class variables are used in "value" attribute
The problem was the data type of campaign.status. It was a class, instead of a string. Guess tapestry didnt know how to convert it, so the onSelect handler was not called -- View this message in context: http://tapestry.1045711.n5.nabble.com/problems-with-submit-when-class-variables-ar
problems with submit when class variables are used in "value" attribute
Hi, I have a form with a table. Each row in the table has a select control, whose 'value' is being set from one of "row" class's instance variables. I have a submit button to post the form. The problem is the onSelectFromSubmit() handler is not getting called when I use value="campaignProgram.c
Re: how to add values to URL in onPassivate
Josh, it worked! "return this;" when the values are null took the values returned by onPassivate and it appeared in the URL. (Though I am having issues with infinite page loop error, guess I can fix that) Thiago, I shouldn't have used the word "override", I meant implementing onActivate in MyPa
how to add values to URL in onPassivate
Hi, I have two select controls on my page. I populate these two select controls based on the role and other settings for this user. Now, what I am trying to achieve is to add a restful URL access to the page depending on values in these two controls so the page can be bookmarked. Something lik
Re: how to make tapestry ignore processing some paths
ok it is "reportingservice/.*". got it. -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-make-tapestry-ignore-processing-some-paths-tp4407839p4407934.html Sent from the Tapestry - User mailing list archive at Nabble.com.
Re: how to make tapestry ignore processing some paths
Strange, I added this - public static void contributeIgnoredPathsFilter(Configuration configuration) { configuration.add("/reportingservice/*"); } expecting all paths starting with /reportingservice wont be handled by tapestry. But what happens is only if the path is ht
Re: how to make tapestry ignore processing some paths
Thanks Rich, I added it to AppModule. -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-make-tapestry-ignore-processing-some-paths-tp4407839p4407889.html Sent from the Tapestry - User mailing list archive at Nabble.com.
Re: how to make tapestry ignore processing some paths
Ok, I got the answer in another site http://tapestry.apache.org/configuration.html Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-make-tapestry-ignore-processing-some-paths-tp4407839p4407851.html Sent from the Tapestry - User mailing list archive at Nabble
how to make tapestry ignore processing some paths
Hi, I dont want tapestry to process some urls, and want it to be handled by another servlet. Here - http://tapestry.apache.org/tapestry5/guide/conf.html, it is mentioned to do it in a method like this... public static void contributeIgnoredPathsFilter(Configuration configuration) {
Re: Simple radiogroup question
Thanks Rich! Looks like mine was a page refresh problem (or god knows what!) but my code works now! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Simple-radiogroup-question-tp3377848p3378235.html Sent from the Tapestry - User mailing list archive at Nabble.com. -
Re: Simple radiogroup question
thanks. but, i saw this example and it doesn't talk about how to check a particular button in the group. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Simple-radiogroup-question-tp3377848p3377957.html Sent from the Tapestry - User mailing list archive at Nabble.com.
Simple radiogroup question
Hi, The task is simple. I have a radiogroup with two buttons. When the page loads I want to check one of the buttons depending on a logic. This is supposed to be very easy, but I am unable to get it working! here is my code: tml java @Property private String forbidRequireRadio;
Re: how to return value to a onCompleteCallback() function?
It worked!! Thank!! -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-return-value-to-a-onCompleteCallback-function-tp3360095p3360180.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---
how to return value to a onCompleteCallback() function?
Hi, I am using ck/onEvent mixin for capturing the onChange event of my select box. From my event handler I want to send a response text to onCompleteCallback function, so depending on the return value I can do stuff using java script in the UI. The problem is : what format do I return the valu
Re: creating an InPlaceSelect control
Yes, I solve my issue using OnEvent using this post: http://tapestry.1045711.n5.nabble.com/ck-OnEvent-with-Context-td2433888.html looks like chenille kit doesnt handle context values very well. but the problem with the solution offered in the above post is that the code tries to get the context
Re: creating an InPlaceSelect control
If you see my previous post, I have included my own context value.. context="program.id" Using firebug I see that the post for the onChange event looks like this - http://localhost:8080/fcc/programs.inplaceselect:internalevent/9007 9007 is program.id...but that doesnt get passed into the eve
Re: creating an InPlaceSelect control
ok, i tried the mixin ... i am not receiving the context parameter in the onEvent handler... I checked the chenillekit's onEvent documentation and they say: "The context for the link (optional parameter). This list of values will be converted into strings and included in the URI. The strings wi
Re: creating an InPlaceSelect control
thanks for your response. Yes, I saw some examples using onEvent mixins...but my use case is that i have to generate this select control for every row in a table/grid. So if I use this mixin, will it be able to get back the particular row id for which the onChange event occured, or just the val
creating an InPlaceSelect control
Hi, I am trying to create an ajax enabled select control, much like chenilleKits InPlaceCheckbox...so i copied the .js and .java files and tried to customize it for a select control. I ran into problems passing the 'model' parameter. instead of taking the model parameter to use it to generat
Re: can i have a button as an event link?
Thanks, will try it. -- View this message in context: http://tapestry.1045711.n5.nabble.com/can-i-have-a-button-as-an-event-link-tp3330657p3330712.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To un
can i have a button as an event link?
Hi, I want to have a button as an event link. I tried - But the button doesn't get displayed on the page. If I removed t:type and t:event the button gets displayed. Is this possible? How do i do it? Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/can-i-ha
Re: how to get a handle to a service from a POJO class?
Thanks for all the replies. I had it the way Thiago has mentioned, but I wanted to avoid passing arguments, since I was using more than two services in this util class, sometimes the long argument list was looking messy. I am using spring security and it allowed something like this - Authenti
Re: how to get a handle to a service from a POJO class?
Thanks for all the replies. I had it the way Thiago has mentioned, but I wanted to avoid passing arguments, since I was using more than two services in this util class, sometimes the long argument list was looking messy. I am using spring security and it allowed something like this - Authenti
Re: how to get a handle to a service from a POJO class?
oopss...just saw that ObjectLocator is an interface. Any inputs? -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-get-a-handle-to-a-service-from-a-POJO-class-tp3329328p3329343.html Sent from the Tapestry - User mailing list archive at Nabble.com. --
Re: how to get a handle to a service from a POJO class?
Can I use object locator? ObjectLocator objLoc = new ObjectLocator(); ...objLoc.getService(myClass); Is this correct? -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-get-a-handle-to-a-service-from-a-POJO-class-tp3329328p3329334.html Sent from the Tapestry - User
how to get a handle to a service from a POJO class?
Hi, In order to get a handle to a tapestry service we use @inject. Is there a way to get a handle to a tapestry service from a POJO class, in which I cannot use @Inject? Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-get-a-handle-to-a-service-from-a-PO
Paginate AjaxFormLoop
Hi, Is there a way to paginate an AjaxFormLoop? I read a post (Sep 2009) which says it is not possible. But hope something is possible now! Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Paginate-AjaxFormLoop-tp3316704p3316704.html Sent from the Tapestry - Use
Re: How to create a custom component
That one letter made a big difference...it worked! Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-create-a-custom-component-tp3306682p3307001.html Sent from the Tapestry - User mailing list archive at Nabble.com. --
Re: How to create a custom component
I tried creating a custom component as you have mentioned...The problem is the select box is not appearing on the page. Only the label 'Test:' I created for it appears. Where am I going wrong? This my tml http://tapestry.apache.org/schema/tapestry_5_2_0.xsd";> Test: JA
Re: How to create a custom component
Thanks for the quick response Robert! Looks pretty simple (probably because you've explained it well). Wil try one of those! -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-create-a-custom-component-tp3306682p3306714.html Sent from the Tapestry - User mailing li
How to create a custom component
Hi, Can any one tell me where I can find a T5 example of how to build a custom component and what the different files I should create are? My need is - I have a select box that populates from a database (Something like a country list...). And I want to be able to include this select box in any
Re: select model - focus goes to item with value 0!
Changing the value variable from long to Long solved it! The problem was long being a primitive time, was getting initialized with 0, and therefore automatically selecting the label with value 0. Thanks Thiago!! -- View this message in context: http://tapestry.1045711.n5.nabble.com/select-mo
select model - focus goes to item with value 0!
Hi, I am populating a select model using OptionModelImpl. The problem is when the page loads, the item with value=0 is getting the focus automatically. I want the focus to stay on the first item in the list. Why is this happening? for (Iterator it =idNames.keySet().iterator(); it.hasNext();
Re: moving to the next page after form submit
Howard - really appreciate that you take time to reply even to newbie questions! -- View this message in context: http://tapestry.1045711.n5.nabble.com/moving-to-the-next-page-after-form-submit-tp3277654p3278576.html Sent from the Tapestry - User mailing list archive at Nabble.com.
Re: moving to the next page after form submit
Thanks Howard! It worked in the first go! Link onSuccessFromThePage() { Link link = pageRenderLinkSource.createPageRenderLinkWithContext(ThePage.class, getNextPage()); return link; } -- View this message in context: http://tapestry.1045711.n5.nabble.com/moving-to-the-next-page-after-fo
Re: moving to the next page after form submit
LinkImpl constructor - LinkImpl(String absoluteURI, boolean optimizable, boolean forForm, Response response, RequestPathOptimizer optimizer) i dont understand what I should pass for - optimizable - forForm - reponse - optimizer -- View this message in context: http://tapestry.1045711.n5.nab
moving to the next page after form submit
Hi, I have form in my page. When the user submits the form, I want to process the info and move to the next page. e.g. http://localhost:8080/target/thepage/1 - when the user clicks submit here I want to go to http://localhost:8080/target/thepage/2 - when the user clicks submit here I want t
Re: a simple question
wow! A wealth of information. Thank you all! -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3260417.html Sent from the Tapestry - User mailing list archive at Nabble.com. --
Re: a simple question
ok thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259547.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-u
Re: a simple question
...and is it possible to pass parameters into the if evaluating function and receive a boolean/string back? something like if( foo('somevalue) ) { } else { } -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259456.html Sent from the Tap
a simple question
value') { } else { } Thanks Hese -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259452.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To u
Re: form submit doesnt work when using an encoder
Thanks Juan! Looks like this could have been the problem. Will try it and let you know. -- View this message in context: http://tapestry.1045711.n5.nabble.com/form-submit-doesnt-work-when-using-an-encoder-tp3257152p3258966.html Sent from the Tapestry - User mailing list archive at Nabble.com.
Re: form submit doesnt work when using an encoder
sorry, not sure I understand what you mean ... but I am initializing my souce values in setupRender() like this - @Property private List tagRows; void setupRender() { loadTags(); } should I be initializing it elsewhere? Actually, now I am doing it without the encoder (coz i cannot was
Re: how to make tapestry ignore some html tags while parsing tml file
Thanks for all your replies! Fernando, I like your solution. I was thinking on similar lines...but not as a component, but a function that would return the "<#=" tags which i could 'outputraw' into the tml, like data.yesterday.totalImpressions and have two functions String getBeginTag()
how to make tapestry ignore some html tags while parsing tml file
Hi, I am using html templates in my TML file...something like the below, to be used with jQuery and other libraries to dynamically fill values easily. ... ...note the '#' in the html, which is parsed by a JS funct <#= data.yesterday.totalImpressions #>
form submit doesnt work when using an encoder
hi I have a form in which I use a grid with an encoder. Strangely when I include the encoder attribute in the grid component onSubmit() or onSuccessFrom...() dont get called. When I remove the the encoder attribute they are called. Any ideas??? TML JAVA @Property
Re: dynamically reload a select control
yes it does get called, the logs that i have in that functions appear. anyways...will try out your links. -- View this message in context: http://tapestry.1045711.n5.nabble.com/dynamically-reload-a-select-control-tp3235533p3237369.html Sent from the Tapestry - User mailing list archive at Nabb