Hi Thiago!
Using your advice, I managed to generate the link easily. I have also moved
the script to a separate file as advised.
Now what remains unclear to me is that the *addScript* method takes a
String and not a url to my javascript file.
So on the one hand I have my link, on the other my ja
Hi Julien,
did you try the use of @Import to import your js file as explained
http://tapestry.apache.org/javascript.html?
Regards
François
2012/1/30 Julien Martin :
> Hi Thiago!
>
> Using your advice, I managed to generate the link easily. I have also moved
> the script to a separate file as adv
Thanks François,
I have actually. The issue is how to replace a variable within the js file
with the appropriate value. This seems easy enough with an inline script as
above but if the script is located in its own file I don't know how to
achieve the desired effect.
Regards,
Julien.
Le 30 janvier
Take a look at these:
http://code.google.com/p/flowlogix/source/browse/tapestry-services/src/main/java/com/flowlogix/web/mixins/ColorHighlight.java
http://code.google.com/p/flowlogix/source/browse/tapestry-services/src/main/resources/com/flowlogix/web/mixins/ColorHighlight.js
On Jan 30, 2012, at
It would be better to use js object and pass parameter to constructor.
for prototype see
http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained
http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/robust
for jquery
https://github.com/got5/tapestry5-jquery/blob/master/src/
Thanks Lenny,
Is the dependency to "com.flowlogix.web.services.AssetMinimizer" necessary?
Is there a "pure-T5" way of retrieving the string from the script?
Here is what I came up with borrowing from your code:
*javaScriptSupport.addScript(getString(openStream(jsAutocomplete)), link);*
*
*
*
pri
Hi François,
I like your solution as it seems more flexible. I tried to implement it as
follows:
/js/jquery.autocomplete.js:
*jQuery.noConfict();*
*(function($) {*
* $.extend(Tapestry.Initializer, {*
* bignibou_autocomplete : function(specs) {*
* $("#accountPostcode").autocomplete({*
* source : fu
This should work. Perhaps a conflict regading inclusion order of your js file.
At this point you have to debug with firebug to see why
Tapestry.Initializer.bignibou_autocomplete() is not defined.
perhaps extend failed as jquery was already there.
Regards
François
---
You're right François,
It is an issue with the inclusion order of my files.
I noticed that the files @Import(ed) by my main layout component come after
the files @Import(ed) by the pages that use that layout. It should be the
other way around.
Is there a way to have more control over that?
Julien.
@Thiago: ok will do.
2012/1/30 Thiago H. de Paula Figueiredo
> On Mon, 30 Jan 2012 08:14:40 -0200, Julien Martin
> wrote:
>
> I have actually. The issue is how to replace a variable within the js
>> file with the appropriate value.
>>
>
> You don't. Make it a parameter of a function you'll cal
I tried using the "@Import stack=" in order to include the jquery libraries
to no avail.
I get this:
Render queue error in SetupRender[Index:childminderlayout.layout]: No
JavaScriptStack with name 'context:/js/jquery-1.6.2.js'.
Any one has any clue?
Regards,
Julien.
2012/1/30 Julien Martin
> @Th
@Thiago,
I actually wanted to avoid an additional dependency.
I am going to include the autocomplete javascript within the root layout as
a library.
@All
Thanks all for helping me with this issue!! I understand how Tapestry deals
with javascript much better now!! [?]
Regards,
Julien.
2012/1/30 T
On Mon, 30 Jan 2012 11:03:16 -0200, Julien Martin wrote:
@Thiago,
I actually wanted to avoid an additional dependency.
That's ok, but then you're not using a stack. It would have worked if you
included it as a library. I've never used tapestry5-jquery myself, but I
do think it deserves to
Hello all,
I was wondering whether it is possible to build a JAR library which uses
Tapestry-IoC internally which is then used by another application without being
aware of Tapestry at all.
The reason is that we already use a framework architecture for NLP related
processing (UIMA). This frame
Hello Tapestry Users,
Does anyone know how to fraction form error messages:
Example of the expected result:
_Personal data_
_Adress_
Is there something similar in Tapestry (out of the box). If not, are
there tools that can help me achieve this result.
Thanks in advance.
--
*Thi
Not sure. Perhaps you can override the ValidationTracker?
On Jan 30, 2012, at 11:21 AM, Thim Anneesens wrote:
> Hello Tapestry Users,
>
> Does anyone know how to fraction form error messages:
>
> Example of the expected result:
>
>
> _Personal data_
>
>
>
>
>
>
> _Adress_
>
>
>
>
>
On Mon, 30 Jan 2012 13:56:42 -0200, Erik Fäßler
wrote:
Hello all,
Hi!
I was wondering whether it is possible to build a JAR library which uses
Tapestry-IoC internally which is then used by another application
without being aware of Tapestry at all.
Short answer: yes.
Long answer: yee
Hi all,
I have a component with:
@Parameter(defaultPrefix = BindingConstants.LITERAL, value = "30")
private int maxResults;
and I also have a subclass component for which I would like to change
the default the value for 'maxResults' to 10.
When either component (super or sub) is used
Hi!
I am looking for a clean way to generically rewrite URLs as follows:
Publicly we want to have an account name to be the first part of the path in
URLs like so: /SomeAccount/settings/page1. Since (I believe) that in Tapestry
I can't bind the first part of the path to a variable, I would l
OK - so I resolved conceptual problem #1:
String pageName = componentClassResolver.canonicalizePageName(newPath);
where "newPath" is the manipulated pass (after removing the
"SomeAccount").
Remains problem #2: How do I generically pass a parameter in a page URL (that
the page
20 matches
Mail list logo