Re: Javascript module isn't generating css asset url

2022-04-15 Thread Ben Weidig
Hi George, I can't help with a "good" solution, only what we did to get the Monaco Editor running which loads css/js by itself. IIRC the underlying problem is that JS using require() builds the "wrong" URL for the requested asset/tapestry on the client-side. Tapestry expects modules to be in META

Javascript module isn't generating css asset url

2022-04-14 Thread George Christman
Hi, I upgraded to Tapestry 5.8.1 and I moved all my js, css and modules to the webapp directory. I have a ckeditor module that is trying to load some ckeditor css and image files. In older versions of tapestry I resolved this with ClasspathAssetAliasManager, but that seems to be deprecated and no l

Javascript module can't access css / image urls

2022-04-14 Thread George Christman
Hi, I upgraded to Tapestry 5.8.1 and I moved all my js, css and modules to the webapp directory. I have a ckeditor module that is trying to load some ckeditor css and image files. In older versions of tapestry I resolved this with ClasspathAssetAliasManager, but that seems to be deprecated and no l

How to force the loading order of javascript libraries and modules? (jquery, jquery-ui, bootstrap)

2021-04-14 Thread Wilson Velez
"/ims/assets/commons/zc46018e5/components/Menu.js", "/ims/assets/ctx/ze4024904/js/mermaid.min.js", . but after loading the page scripts look like this <script type="text/javascript" charset="utf-8" async="" data-requirecontext="

Re: How to Show a Div using Javascript

2020-10-08 Thread Thiago H. de Paula Figueiredo
; > > Hello! > > > > > > > Thanks a lot for your reply it works fine but the problem is using this > > > line of code in beginRender() function shows the "div" when the page is > > > loaded. but What I want is to show the div after a button is p

Re: How to Show a Div using Javascript

2020-10-05 Thread marwa hussein
is using this > > line of code in beginRender() function shows the "div" when the page is > > loaded. but What I want is to show the div after a button is pressed. > > > > In this case, just write the same JavaScript you'd do as if you weren't > using Tapestry

Re: How to Show a Div using Javascript

2020-10-05 Thread Thiago H. de Paula Figueiredo
after a button is pressed. > In this case, just write the same JavaScript you'd do as if you weren't using Tapestry. > When I used this line of code in the onSubmit() button function it gives > me "No object of type > org.apache.tapestry5.services.javascript.J

Re: How to Show a Div using Javascript

2020-10-04 Thread marwa hussein
Hi Thiago, Thanks a lot for your reply it works fine but the problem is using this line of code in beginRender() function shows the "div" when the page is loaded. but What I want is to show the div after a button is pressed. When I used this line of code in the onSubmit() button function it gives

Re: How to Show a Div using Javascript

2020-10-03 Thread Thiago H. de Paula Figueiredo
Hello! @Inject private JavaScriptSuport javaScriptSupport; void beginRender() { javaScriptSupport.addScript("document.getElementById("div1").style.display = '';"); } On Sat, Oct 3, 2020 at 10:06 AM marwa hussein wrote: > Hello all, > I am new to Tapestry and to Web development in general but

How to Show a Div using Javascript

2020-10-03 Thread marwa hussein
Hello all, I am new to Tapestry and to Web development in general but I have to implement a simple web application for my research. I use a div that when loading the page I need to hide it, so I use this line: The div contains "inside it" a grid that will contain some elements after a "load" but

Re: redirect after javascript ajax call

2020-09-03 Thread Marcel Schepers
Check this and let us know whether it's what you need: https://tapestry.apache.org/ajax-and-zones.html#AjaxandZones-Invokingserver-sideeventhandlermethodsfromJavaScript Thank you the link. It did help a bit, but it mainly made me realize that my JavaScript/jQuery knowledge is by no

Re: redirect after javascript ajax call

2020-08-28 Thread Thiago H. de Paula Figueiredo
omewhat visual representation of the problem looks like: > request -> index page -> javascript with a server call -> new page. > > Is there an easy way to get this done in Tapestry? > Check this and let us know whether it's what you need: https

redirect after javascript ajax call

2020-08-28 Thread Marcel Schepers
far so good. What I would like to do now is to run a client-side script that sends some screen dimensions to the server _before_ the new page renders its response. A somewhat visual representation of the problem looks like: request -> index page -> javascript with a server call ->

Filter for javascript files

2019-11-28 Thread Ric 2000
Dear all, I want to do a really simple task, but running into problems when doing it in a Tapestry web application: The task: replace or remove some content in js files sent to the client. My approach: I wrote a normal servlet filter with a wrapper for the HttpServletResponse, which allows to pu

Re: Trigger Alert from javascript

2019-03-04 Thread D. R.
ok, very easy: include "t5/core/alert" as 'alert' and call: var alertObject = {   message: 'hi from javascript',   severity: 'ERROR', // SUCCESS, INFO, WARN, ERROR }; alert(alertObject); Any concerns about that? Kind regards David Am 05.03.19 um 06:23

Trigger Alert from javascript

2019-03-04 Thread D. R.
Hi, we want to trigger an t5-Alert from javascript, how can we do that? Kind regards David - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: Add javascript to every request response

2018-12-24 Thread Nathan Quirynen
Thanks a lot for the very detailed answer! Exactly what I needed. Op 21/12/18 om 21:05 schreef Cezary Biernacki: Yes, it possible. There are probably several ways to do that, one of them is by contributing to MarkupRenderer and PartialMarkupRenderer. Start first by putting your JavaScript in a

Re: Add javascript to every request response

2018-12-21 Thread Thiago H. de Paula Figueiredo
ezary Biernacki wrote: > Yes, it possible. There are probably several ways to do that, one of them > is by contributing to MarkupRenderer and PartialMarkupRenderer. Start first > by putting your JavaScript in a JavaScript module, META-INF/modules > directory define a JavaScript file lik

Re: Add javascript to every request response

2018-12-21 Thread Cezary Biernacki
Yes, it possible. There are probably several ways to do that, one of them is by contributing to MarkupRenderer and PartialMarkupRenderer. Start first by putting your JavaScript in a JavaScript module, META-INF/modules directory define a JavaScript file like this (of course customise it to whatever

Add javascript to every request response

2018-12-21 Thread Nathan Quirynen
Hi, Is it possible to add javascript or some javascript module call to every (also xhr) requests response? Nathan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h

Re: JavaScript not invoked on zone refresh

2018-10-01 Thread Christopher Dodunski
its former counterpart. The first two display the button 90 degrees offset (hence the animation). **The Component's Java Code** public void afterRender(){ //Invoke client-side javascript to rotate the 'accordion' helm for this component/zone javaScriptSuppor

Re: Using JavaScript during Ajax request

2018-09-28 Thread Chris Poulsen
e this using Trigger but it wouldn't have been the right way ? > > In any case, as usual I solved my problem by asking here, thanks again. > > > -Original Message- > From: JumpStart > Sent: Thursday, September 27, 2018 14:21 > To: Tapestry users >

RE: Using JavaScript during Ajax request

2018-09-27 Thread Davide Vecchi
ubject: Re: Using JavaScript during Ajax request An example: http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/modal/1 <http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/modal/1> > On 27 Sep 2018, at 7:06 pm, Nathan Quirynen > wrote:

Re: Using JavaScript during Ajax request

2018-09-27 Thread JumpStart
An example: http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/modal/1 <http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/modal/1> > On 27 Sep 2018, at 7:06 pm, Nathan Quirynen > wrote: > > When your request is an ajax cal

Re: Using JavaScript during Ajax request

2018-09-27 Thread Nathan Quirynen
uot; that occurs only if the event handler is handling an Ajax request: http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/No-object-of-type-org-apache-tapestry5-services-javascript-JavaScriptSupport-is-available-from-the-E-tp5551633p5551729.html My stacktrace is at the bottom of

Using JavaScript during Ajax request

2018-09-27 Thread Davide Vecchi
ax request: http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/No-object-of-type-org-apache-tapestry5-services-javascript-JavaScriptSupport-is-available-from-the-E-tp5551633p5551729.html My stacktrace is at the bottom of this email. The event being handled in my case is the c

Re: JavaScript not invoked on zone refresh

2018-09-26 Thread JumpStart
Examples can be found in JumpStart, starting here: http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/javascript > On 26 Sep 2018, at 3:19 pm, Chris Poulsen wrote: > > Reacting to the zone events sounds like the best option IMO. Controlling > this fro

Re: JavaScript not invoked on zone refresh

2018-09-26 Thread Chris Poulsen
stopher.net.nz> wrote: > After exploring a little further, I discovered the below thread on > invoking javascript from within Tapestry. > > > https://stackoverflow.com/questions/27988473/pass-parameter-from-java-to-js-in-tapestry > > Joost writes: > > You will need to u

Re: JavaScript not invoked on zone refresh

2018-09-25 Thread Christopher Dodunski
After exploring a little further, I discovered the below thread on invoking javascript from within Tapestry. https://stackoverflow.com/questions/27988473/pass-parameter-from-java-to-js-in-tapestry Joost writes: You will need to use the JavaScriptSupport service. Your java file: @Import

Re: JavaScript not invoked on zone refresh

2018-09-25 Thread Christopher Dodunski
with a collapse button. And vice versa. Below is the TML: Chris, invoking my javascript within the page's Java code sounds interesting. I'v

Re: JavaScript not invoked on zone refresh

2018-09-24 Thread Chris Poulsen
, 2018 at 7:22 AM Christopher Dodunski < chrisfromtapes...@christopher.net.nz> wrote: > Hi all, > > I suspect there's a simple solution to this small, but annoying problem. > > My Tapestry page uses a simple javascript to rotate an image 90 degrees > the moment the image is

Re: JavaScript not invoked on zone refresh

2018-09-24 Thread Chung Duy
Your javascript register when document is ready , it means just affect when page load or refresh page. If you want handle it via button, please register onclick event for this button and implement new small function with call the same snippet. Assume you're using jquery, so here is my tho

JavaScript not invoked on zone refresh

2018-09-24 Thread Christopher Dodunski
Hi all, I suspect there's a simple solution to this small, but annoying problem. My Tapestry page uses a simple javascript to rotate an image 90 degrees the moment the image is rendered on screen. It does this by adding a CSS class to the button element that contains the image.

Re: How to pass a variable from Javascript code to Java

2018-08-30 Thread Cezary Biernacki
. tracking some per-user state), but more often they are not. Cezary On Thu, Aug 30, 2018 at 12:23 AM heph estos wrote: > And how about storing the value to a session or a cookie from javascript > and reading from java server through an implemantation of observer > parttern? It would work in

Re: How to pass a variable from Javascript code to Java

2018-08-29 Thread heph estos
And how about storing the value to a session or a cookie from javascript and reading from java server through an implemantation of observer parttern? It would work in any case, in any framework. Στις Τετ, 29 Αυγ 2018, 2:39 μ.μ. ο χρήστης marwa hussein < marwa.huss...@gmail.com> έγραψε:

Re: How to pass a variable from Javascript code to Java

2018-08-29 Thread marwa hussein
mpler. > Just put your data in a data attribute of a tag and then use the tutorial > ajax and zones to send this data to a server side event handler. > If you want to do it automatically without triggering a javascript event, > just put you script in an on document ready event,

Re: How to pass a variable from Javascript code to Java

2018-08-28 Thread Numa Schmeder
Hello Marwa, The answer provided by Thiago is much simpler. Just put your data in a data attribute of a tag and then use the tutorial ajax and zones to send this data to a server side event handler. If you want to do it automatically without triggering a javascript event, just put you script

Re: How to pass a variable from Javascript code to Java

2018-08-28 Thread marwa hussein
Hello, Thanks all for your suggestions. I followed the example shown in https://tapestry.apache.org/ajax-and-zones.html in "Invoking server-side event handler methods from JavaScript" but here the event is in the java code "server-side" and is invoked from the Javascript co

Re: How to pass a variable from Javascript code to Java

2018-08-27 Thread Thiago H. de Paula Figueiredo
> >> I am building a web application and I have to use an open source >> Javascript package that is responsible for the visualization tasks. Now, I >> need to pass a "string variable" from the javascript code to the java >> code?? how to do this in tapestry5 ..

Re: How to pass a variable from Javascript code to Java

2018-08-27 Thread Thiago H. de Paula Figueiredo
Hello! See the Invoking server-side event handler methods from JavaScript in https://tapestry.apache.org/ajax-and-zones.html. It has an example of how to do it in Tapestry 5.4.2+. There's no easy way of doing it than this. On Mon, Aug 27, 2018 at 4:47 AM wrote: > Hi Marwa, > &g

Re: How to pass a variable from Javascript code to Java

2018-08-27 Thread Thiago H. de Paula Figueiredo
On Sat, Aug 25, 2018 at 3:33 AM marwa hussein wrote: > Hello, Hi! > I am building a web application and I have to use an open source > Javascript package that is responsible for the visualization tasks. Now, I > need to pass a "string variable" from the javascript c

Re: How to pass a variable from Javascript code to Java

2018-08-27 Thread peter . skala
Hi Marwa, there is an example in the bottom part of this page https://tapestry.apache.org/ajax-and-zones.html which you can use for your development. The paragraph "Invoking server-side event handler methods from JavaScript" contains the corresponding explanation. If you do not w

Re: How to pass a variable from Javascript code to Java

2018-08-26 Thread marwa hussein
Thanks for your replay but actually I scanned all the links and I couldn't find an answer for my issue... Let me explain it in more details ..in the .tml code I have this line Name: and in the javascript code, there is a function that calculates the "name" for this element a

How to pass a variable from Javascript code to Java

2018-08-24 Thread marwa hussein
Hello, I am building a web application and I have to use an open source Javascript package that is responsible for the visualization tasks. Now, I need to pass a "string variable" from the javascript code to the java code?? how to do this in tapestry5 ..Please refer me to a working exam

Re: [Announcement] New feature for Tapestry 5.4.2 and 5.5: easily call event handler methods from JavaScript

2017-04-27 Thread abangkis
5.4.2 and 5.5: easily > call event handler methods from JavaScript > > On Thu, Apr 27, 2017 at 6:43 AM, abangkis <[hidden > email]> wrote: > > > Hi. Thanks for the awesome improvement. I want to adopt it immediately. > > > Hi! Nice! :) > > > > But I've

Re: [Announcement] New feature for Tapestry 5.4.2 and 5.5: easily call event handler methods from JavaScript

2017-04-27 Thread abangkis
Thank you very much. I got it working. Now my code is going to be a whole lot cleaner. Good job Thiago. On Thu, Apr 27, 2017 at 7:10 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, Apr 27, 2017 at 6:43 AM, abangkis wrote: > > > Hi. Thanks for the awesome improvement. I

RE: [Announcement] New feature for Tapestry 5.4.2 and 5.5: easily call event handler methods from JavaScript

2017-04-27 Thread Svein-Erik Løken
...@n5.nabble.com] Sent: 27. april 2017 14:11 To: Svein-Erik Løken Subject: Re: [Announcement] New feature for Tapestry 5.4.2 and 5.5: easily call event handler methods from JavaScript On Thu, Apr 27, 2017 at 6:43 AM, abangkis <[hidden email]> wrote: > Hi. Thanks for the awesome improvemen

Re: [Announcement] New feature for Tapestry 5.4.2 and 5.5: easily call event handler methods from JavaScript

2017-04-27 Thread Thiago H. de Paula Figueiredo
On Thu, Apr 27, 2017 at 6:43 AM, abangkis wrote: > Hi. Thanks for the awesome improvement. I want to adopt it immediately. Hi! Nice! :) > But I've stumbled to one problem. How do I pass a parameter to the event? > You don't pass it to the event, but to the t5/core/ajax() function. Check the

Re: [Announcement] New feature for Tapestry 5.4.2 and 5.5: easily call event handler methods from JavaScript

2017-04-27 Thread abangkis
Hi. Thanks for the awesome improvement. I want to adopt it immediately. But I've stumbled to one problem. How do I pass a parameter to the event? Here's the onEvent method that will be invoked @OnEvent("updateNodes") void updateNodes(@RequestParameter(value = "param", allowBlank = false) String p

Re: [Announcement] New feature for Tapestry 5.4.2 and 5.5: easily call event handler methods from JavaScript

2017-04-22 Thread Thiago H. de Paula Figueiredo
Cool! It's nice to see a feature I've wanted for so long already being adopted by users. Thanks for the example! On Fri, Apr 21, 2017 at 11:18 AM, Svein-Erik Løken wrote: > The @PublishEvent was a big improvement 😊 > > > > I am using it already. I have created a working demo. I really like that

RE: [Announcement] New feature for Tapestry 5.4.2 and 5.5: easily call event handler methods from JavaScript

2017-04-21 Thread Svein-Erik Løken
The @PublishEvent was a big improvement 😊 I am using it already. I have created a working demo. I really like that it is so easy to stop hardcoding of event url. https://github.com/sveine/tapestry-multi-module-demo/blob/master/module1-root/module1/src/main/java/com/demo/module1/pages/Publi

[Announcement] New feature for Tapestry 5.4.2 and 5.5: easily call event handler methods from JavaScript

2017-03-19 Thread Thiago H. de Paula Figueiredo
Hi! This is something I've wanted for a really long time to implement in Tapestry, so I won't wait for it to be released or even the documentation to be updated in the site to post it here. Feedback welcome! Invoking server-side event handler methods from JavaScript Tapestry 5.4.2 intr

Re: Add javascript every request

2016-12-07 Thread Nathan Quirynen
t for all the pages, would be creating a mixin to include the JavaScript you want, plus implementing and contributing a ComponentClassTransformWorker to apply it to all pages. I can provide you examples if you want. On Wed, Dec 7, 2016 at 9:20 AM, David Diaz wrote: Hi Nathan, You can use a in

Re: Add javascript every request

2016-12-07 Thread Thiago H. de Paula Figueiredo
Hi! Another solution, specially if you don't have a single layout component for all the pages, would be creating a mixin to include the JavaScript you want, plus implementing and contributing a ComponentClassTransformWorker to apply it to all pages. I can provide you examples if you want. O

Re: Add javascript every request

2016-12-07 Thread David Diaz
} I've implemented this in my application - if you need more help, ill be happy to help! Thanks, David. On Wed, Dec 7, 2016 at 9:26 PM, Nathan Quirynen wrote: > Hi, > > I want to add a session timeout warning popup to a Tapestry5.4 > application. I thought of creating a java

Add javascript every request

2016-12-07 Thread Nathan Quirynen
Hi, I want to add a session timeout warning popup to a Tapestry5.4 application. I thought of creating a javascript module that counts down the remaining time left before the session times out and then shows a popup warning with the option to logout or keep on going and if no action is taken

RE: Javascript function not present in html source

2016-11-04 Thread Lherm Nicolas

RE: Javascript function not present in html source

2016-11-02 Thread Lherm Nicolas

Re: Javascript function not present in html source

2016-11-02 Thread Cezary Biernacki
Hi Nicolas, are you sure that the string you observed "" is actually sent from the server, not result of manipulation of some JavaScript later? I do not see any reason for Tapestry to render your TML differently between 5.2 and 5.3 (assuming your application uses Tapestry's bui

RE: Javascript function not present in html source

2016-11-02 Thread Lherm Nicolas

Re: Javascript function not present in html source

2016-11-02 Thread Thiago H. de Paula Figueiredo
30" > id="typeFacture" name="typeFacture" type="text"> > > And this is the same code but with Tapestry 5.3.8 (nothing change in the > tml...) : > > type="text"> > > So, somes portions of the code have disappeared (all of the javascript > functions..) but I don't know why ? > > I didn't find any reference to this problem in the release of the 5.3. > > Thanks, > > -- Thiago

Javascript function not present in html source

2016-11-02 Thread Lherm Nicolas
e but with Tapestry 5.3.8 (nothing change in the tml...) : So, somes portions of the code have disappeared (all of the javascript functions..) but I don't know why ? I didn't find any reference to this problem in the release of the 5.3. Thanks,

Re: Javascript black fade window on everypage unil js loaded.

2016-08-29 Thread Pavel Chernyak
Thank you, exactly what i need. On 29 August 2016 at 13:14, Carlos Montero Canabal < carlosmonterocana...@gmail.com> wrote: > You can disable loading mask into your AppModule with the symbol > > /** > * If true, then when a page includes any JavaScript, a {@code script

Re: Javascript black fade window on everypage unil js loaded.

2016-08-29 Thread Carlos Montero Canabal
You can disable loading mask into your AppModule with the symbol /** * If true, then when a page includes any JavaScript, a {@code script} block is added to insert * a pageloader mask into the page; the pageloader mask ensure that the user can't interact with the

Javascript black fade window on everypage unil js loaded.

2016-08-29 Thread Pavel Chernyak
Greetings. I think everyone already noticed when page is opened on t5.4 - there some time till all js libralies loaded. Is there any options, how to optimize and speed it up? Or maybe disable it? -- With best regards, Pavel Chernyak

Re: Hiding FormFragment via javascript

2016-03-29 Thread JumpStart
I can’t remember all the problems I had when combining FormFragment with Loop with modals, but I do know that I solved them all by moving the FormFragment to above the loop, adding an If, putting the modal inside it and, on submit of the modal, the server-side updated the relevant loop item’s va

Re: Hiding FormFragment via javascript

2016-03-29 Thread Hendrik Grewe
Hi Dimitris! we are currently running Tapestry 5.3.8. An Upgrade to T5.4 is currently not feasible. Hendrik Am 24.03.2016 um 00:17 schrieb Dimitris Zenios: > hendrk what version of tapestry are you using? > On 23 Mar 2016 16:00, "Hendrik Grewe" wrote: > ---

Re: Hiding FormFragment via javascript

2016-03-23 Thread Dimitris Zenios
hin the > modal dialog are flagged as errornous because they are not filled in. > > Why is the formfragment seen as "visible" and thus it is tried to submit > when the containing div is NOT visible? > > Is there a way to force the visibility status of a formfragment (via

Hiding FormFragment via javascript

2016-03-23 Thread Hendrik Grewe
s tried to submit when the containing div is NOT visible? Is there a way to force the visibility status of a formfragment (via clientSide javascript?) Is there any further documentation about when a formFragment is seen as visible/hidden? I played a little with visibleBound on the formfrag

Re: [5.4] request from javascript to Tapestry event

2016-02-15 Thread Nathan Quirynen
Thanks for the link. I think I fixed it adding just the following in my request callback function: pageinit.handlePartialPageRenderResponse({ json : r }); On 05/02/16 15:04, Chris Poulsen wrote: Have a look at http://tapestry.apache.org/current/coffeescript/ajax.html -

Re: [5.4] request from javascript to Tapestry event

2016-02-05 Thread Chris Poulsen
Faking a "click" on an invisible async eventlink could also be a very simple way to get this working without having to mock around with much javascript. -- Chris On Fri, Feb 5, 2016 at 3:04 PM, Chris Poulsen wrote: > Have a look at http://tapestry.apache.org/current/coffeescr

Re: [5.4] request from javascript to Tapestry event

2016-02-05 Thread Chris Poulsen
Have a look at http://tapestry.apache.org/current/coffeescript/ajax.html -- Chris On Fri, Feb 5, 2016 at 2:54 PM, Nathan Quirynen wrote: > Hi, > > I have finally started the process of updating to 5.4. > Some components have an initializer javascript where an eventlink url is &

[5.4] request from javascript to Tapestry event

2016-02-05 Thread Nathan Quirynen
Hi, I have finally started the process of updating to 5.4. Some components have an initializer javascript where an eventlink url is passed as a parameter to be used as the url for a request from javascript to a Tapestry event. To handle the response (zone updates, scripts, ..) I added in the

Re: send data from javascript to tapestry.

2015-12-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Dec 2015 08:57:54 -0200, wrote: Hi, Hi! I have one question, how can i send parameter from javascript to tapestry? I read about ComponentResources but i dont have idea how does it work. I use Tapestry ver. 5.3.5. See http://apache-tapestry-mailing-list-archives.1045711.n5

send data from javascript to tapestry.

2015-12-15 Thread wtf117
Hi, I have one question, how can i send parameter from javascript to tapestry? I read about ComponentResources but i dont have idea how does it work. I use Tapestry ver. 5.3.5. - To unsubscribe, e-mail: users-unsubscr

Re: javascript error

2015-10-09 Thread Christine
On 08-10-15 15:49, Christine wrote: The page has a submit button, that doesn't seem to do anything. The problem seems to be in regexp. This works: but this doesn't: (I do have the regexp definition in a properties file). When I put I get an error message for the input, always. dagdag

Re: javascript error

2015-10-08 Thread Christine
I forgot that I recently added a line in my module file configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER, "jquery"); as suggested on my previous question on this list. My good friend Martijn reminded me of this :-) Removing the line solves the current issue. So now I'm l

javascript error

2015-10-08 Thread Christine
Hi, I have a form in a page that worked fine until recently. It stopped working after I reinstalled Ubuntu and after I switched from Tapestry beta26 to beta35. I am not aware of changes in my code. The page has a submit button, that doesn't seem to do anything. This is the error I get, Form

Re: How do I unit test Javascript in Tapestry applications?

2015-08-19 Thread Lance Java
12:55, "Poggenpohl, Daniel" < daniel.poggenp...@isst.fraunhofer.de> wrote: > Hello, > > We're trying to test our Tapestry application. We know that we can test > our pages with > https://tapestry.apache.org/unit-testing-pages-or-components.html > > But h

How do I unit test Javascript in Tapestry applications?

2015-08-17 Thread Poggenpohl, Daniel
Hello, We're trying to test our Tapestry application. We know that we can test our pages with https://tapestry.apache.org/unit-testing-pages-or-components.html But how do we test the JavaScript we implemented? It would seem that we would need a Tapestry generated html page and then cal

Re: JavaScriptSupport dynamic javascript

2015-02-27 Thread Thiago H de Paula Figueiredo
On Thu, 26 Feb 2015 19:18:58 -0300, David Cline wrote: Hey all, Hi! Using Tapestry 5.4.28 is there a way to inject dynamically generated javascript into JavaScriptSupport.Require() instead of an external javascript file? No. You can use the deprecated JavaScriptSupport.addScript

JavaScriptSupport dynamic javascript

2015-02-26 Thread David Cline
Hey all, Using Tapestry 5.4.28 is there a way to inject dynamically generated javascript into JavaScriptSupport.Require() instead of an external javascript file? **Example** @Environmental private JavaScriptSupport jss; void afterRender() { jss.require(**dynamically generated

Re: Tapestry 5.4 JavaScript support .... support request

2015-02-24 Thread Lance Java
p...@isst.fraunhofer.de> wrote: > Hello everyone, > > I'm trying to add some functionality to a grid: > > Every grid row should be an area where you can click to go to the details > page of the row object. > > But enough of that, even a simple javascript like alert o

AW: Tapestry 5.4 JavaScript support .... support request

2015-02-24 Thread Poggenpohl, Daniel
y 5.4 JavaScript support support request On 24 Feb 2015, at 9:59 am, Poggenpohl, Daniel wrote: > Hello, > > the Jumpstart tutorial says "They reside in resources/META-INF/modules." > > Is it src/main/resources/META-INF/modules ? > If you go to any of the examp

Re: Tapestry 5.4 JavaScript support .... support request

2015-02-23 Thread Geoff Callender
ot; you'll see the answer. > Regards, > Daniel P. > > Von: Geoff Callender [geoff.callender.jumpst...@gmail.com] > Gesendet: Montag, 23. Februar 2015 22:13 > An: Tapestry users > Betreff: Re: Tapestry 5.4 JavaScript support sup

AW: Tapestry 5.4 JavaScript support .... support request

2015-02-23 Thread Poggenpohl, Daniel
5 22:13 An: Tapestry users Betreff: Re: Tapestry 5.4 JavaScript support support request On 24 Feb 2015, at 5:38 am, Poggenpohl, Daniel wrote: > Hello everyone, > > I'm trying to add some functionality to a grid: > > Every grid row should be an area where you can click to go to

Re: Tapestry 5.4 JavaScript support .... support request

2015-02-23 Thread Geoff Callender
On 24 Feb 2015, at 5:38 am, Poggenpohl, Daniel wrote: > Hello everyone, > > I'm trying to add some functionality to a grid: > > Every grid row should be an area where you can click to go to the details > page of the row object. > > But enough of that, even a si

Re: Tapestry 5.4 JavaScript support .... support request

2015-02-23 Thread Thiago H de Paula Figueiredo
On Mon, 23 Feb 2015 15:38:30 -0300, Poggenpohl, Daniel wrote: Hello everyone, I'm trying to add some functionality to a grid: Every grid row should be an area where you can click to go to the details page of the row object. But enough of that, even a simple javascript like ale

AW: Tapestry 5.4 JavaScript support .... support request

2015-02-23 Thread Poggenpohl, Daniel
, an alertbox should appear, containing nonsense text. Just for debugging. But that didn't work, either. Regards, Daniel P. Von: George Christman [gchrist...@cardaddy.com] Gesendet: Montag, 23. Februar 2015 20:46 An: Tapestry users Betreff

Re: Tapestry 5.4 JavaScript support .... support request

2015-02-23 Thread George Christman
bject. > > But enough of that, even a simple javascript like alert on click doesn't > seem to work. > > The js is added via jss.addScript(), which is deprecated in 5.4 . Doing it > this way doesn't seem to work. What happens is I apply the script via a > @MixinAfter mix

AW: Tapestry 5.4 JavaScript support .... support request

2015-02-23 Thread Poggenpohl, Daniel
Hello everyone, oh, I forgot, I use Tapestry 5.4 Beta 22. Regards, Daniel P. Hello everyone, I'm trying to add some functionality to a grid: Every grid row should be an area where you can click to go to the details page of the row object. But enough of that, even a simple javascript

Tapestry 5.4 JavaScript support .... support request

2015-02-23 Thread Poggenpohl, Daniel
Hello everyone, I'm trying to add some functionality to a grid: Every grid row should be an area where you can click to go to the details page of the row object. But enough of that, even a simple javascript like alert on click doesn't seem to work. The js is added via jss.addScrip

Re: Trying to load non AMD javascript in tapestry 5.4

2015-02-19 Thread abangkis
Hi Diego and Geoff thanks a lot for the examples. Will work on it again next week. On Wed, Feb 18, 2015 at 11:01 PM, Diego Socaceti wrote: > Hi Geoff, > > here the missing parts :) > > The JavaScriptLibraryModule now have configured four new modules based on > non-AMD JavaScr

Re: Trying to load non AMD javascript in tapestry 5.4

2015-02-18 Thread Diego Socaceti
Hi Geoff, here the missing parts :) The JavaScriptLibraryModule now have configured four new modules based on non-AMD JavaScript: ["modernizr", "class", "font-picker", "date-format"]. - "modernizr" js stores itself in a browser global called

Re: Trying to load non AMD javascript in tapestry 5.4

2015-02-18 Thread Diego Socaceti
> > ... use JavaScriptModuleConfiguration#exports() for 'exports' of shim > config > > > > 2015-02-18 14:58 GMT+01:00 Diego Socaceti : > > > >> Hi @all, > >> > >> if you want to shim non-AMD JavaScript files you should use > &g

Re: Trying to load non AMD javascript in tapestry 5.4

2015-02-18 Thread Geoff Callender
x27; of shim config > > 2015-02-18 14:58 GMT+01:00 Diego Socaceti : > >> Hi @all, >> >> if you want to shim non-AMD JavaScript files you should use >> JavaScriptModuleConfiguration. >> It offers everything you need to create shim configs. >> >> use Java

Re: Trying to load non AMD javascript in tapestry 5.4

2015-02-18 Thread Diego Socaceti
sorry, copy, paste-error ... use JavaScriptModuleConfiguration#exports() for 'exports' of shim config 2015-02-18 14:58 GMT+01:00 Diego Socaceti : > Hi @all, > > if you want to shim non-AMD JavaScript files you should use > JavaScriptModuleConfiguration. > It offers ever

Re: Trying to load non AMD javascript in tapestry 5.4

2015-02-18 Thread Diego Socaceti
Hi @all, if you want to shim non-AMD JavaScript files you should use JavaScriptModuleConfiguration. It offers everything you need to create shim configs. use JavaScriptModuleConfiguration#dependsOn() for 'deps' of shim config use JavaScriptModuleConfiguration#dependsOn() for 'e

Re: Trying to load non AMD javascript in tapestry 5.4

2015-02-18 Thread Geoff Callender
Despite what I said 9 months ago in the thread you referenced, I'm not sure that I've ever seen the shimming [1] ever work, but I haven't pursued it because the many javascript libraries I use work fine anyway without being modules. [1] http://tapestry.apache.org/5.4/api

Re: Trying to load non AMD javascript in tapestry 5.4

2015-02-17 Thread abangkis
js documentation about this. You just cannot use > Require.js with non AMD .js files and expect it to work without no further > work. > > > > On Sat, 14 Feb 2015 14:04:36 -0200, abangkis wrote: > > > >> Hello. I'm trying to load a simple regular javascript that&

  1   2   3   4   5   6   7   8   9   10   >