Hi!
I am somewhat new to Tapestry (loving it).
I am trying to piggy back updates/calls to JavaScript components on my page
onto responses to EventLink or ActionLink requests. Imagine a page with
multiple charts on it, and on any click I want to be able to update any chart
widget if the serv
This is what works for me in jquery
(function($) {
$.extend(Tapestry.Initializer, {
confirm: function(params) {
$("#" + params.element).bind(params.event, function(event) {
if (!confirm(params.message)) {
event.preventDefault();
Taha Hafeez wrote
>
> Try event.preventDefault() instead of Event.stop(event)
>
> I think that will do
>
>
>
It failed also.
thank you.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/mixins-Confirm-is-invalid-tp5118652p5118771.html
Sent from the Tapestry - User
Try event.preventDefault() instead of Event.stop(event)
I think that will do
On Wed, Jan 4, 2012 at 10:16 AM, dick_hu wrote:
> No, it means the confirm does not stop the event when I click the cancel
> button in the dialog.
> Taha Hafeez wrote
>>
>> Hi
>>
>> What do you mean when you say it is
No, it means the confirm does not stop the event when I click the cancel
button in the dialog.
Taha Hafeez wrote
>
> Hi
>
> What do you mean when you say it is invalid ?
>
> Is there any error ?
>
>
>
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/mixins-Confirm-is-
Hi
What do you mean when you say it is invalid ?
Is there any error ?
On Wed, Jan 4, 2012 at 9:20 AM, dick_hu wrote:
> I add a mixins "Confirm" to a EventLink,When the eventlink request is xhr
> will return a zone,the mixins
> is invalid.
>
> the mixins's java is
> @Import(library = "confirm.
> Is there some other solutions? If sometimes I put my existing complex
> Component into a Loop, It will not work.
There are many solutions. It all depends on where your complexity is.
It sounds like you need to work out a communication mechanism between
your component and it's container. Presuma
I add a mixins "Confirm" to a EventLink,When the eventlink request is xhr
will return a zone,the mixins
is invalid.
the mixins's java is
@Import(library = "confirm.js")
public class Confirm {
@InjectContainer
private ClientElement container;
@Inject
private Java
>> I have changed all the values I want to persist to context values and it
>> works for me now.> Is this the only way to solve this problem?
>
> Probably not, but it seems like a fine solution.
Is there some other solutions? If sometimes I put my existing complex Component
into a Loop, It will
configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "false");
Make your application use Prototype and the default tapestry.js with
jQuery in no-conflict mode but in this case $ is the shortcut for
Prototype.
That's why your code is not working.
in this "backward compatibility" mode you ca
On Wed, 28 Dec 2011 14:40:12 -0200, Javix wrote:
In javascript, I just replaced arguments by jsonObject:
function load(jsonObject){
...
//acces to the variable in JSON
errorText.text(jsonObject.m2)
}
Why in case of JSON it DOES NOT WORK ?
From the addInit() JavaDoc, specifically the first p
On Tue, 03 Jan 2012 13:00:42 -0200, captain_rhino
wrote:
Currently I have a very messy way of passing a context (the context
indicates which prtner site it is from) through so as the
PageRenderLinkTransformer can then use this context to dynamically create
the url displayed to the user?
I'd
On Tue, 03 Jan 2012 16:33:59 -0200, felipexz wrote:
Yes of course I agree. But when you have Annotated fields, it can be
instatiated in other classes, can't be ?
Remember: instantiate a class = using the Java "new" operator.
How I would know that it's not already been instatiated ? That's a
On Tue, 03 Jan 2012 16:02:50 -0200, felipexz wrote:
Hi Sven.. I read it but the method on"Something" is a convention ?
Sorry but I'm new on Tapestry so I don't know.
Yes: http://tapestry.apache.org/component-events.html
I only found about the "onPrepare" in the wiki
http://wiki.apache.org/t
Yes of course I agree. But when you have Annotated fields, it can be
instatiated in other classes, can't be ?
How I would know that it's not already been instatiated ? That's an
annotated field.
I'm justing asking.. as I said I'm a newbie.
Best regards
--
View this message in context:
http://ta
I wrote this two lines in the Appmodule
configuration.add(JQuerySymbolConstants.JQUERY_ALIAS, "$j");
configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "false");
Now everything is working i.e. autocomplete mixin, jquery/tooltip, tapestry
validation,
(function( $ ) {
$(document).ready
I have created a component to hide all the gubbins that I mentioned
earlier. All you need to do is create a more beautiful progress bar (my css
skills aren't great). I have created a simple page which adds 3
progressRunnableLinks on a page. Each fires a task that takes 10 seconds,
updating it's per
The prefered convention in java : instantiate an class before work with it.
the documentation advise you only, where it make sense to do this job ;-)
with regards
Sven Homburg
Founder of the Chenille Kit Project
http://chenillekit.codehaus.org
2012/1/3 felipexz :
> Hi Sven.. I read it but the
Hi Sven.. I read it but the method on"Something" is a convention ?
Sorry but I'm new on Tapestry so I don't know.
I only found about the "onPrepare" in the wiki
http://wiki.apache.org/tapestry/Tapestry5HowToUseForms
So I think if its a convention ok, right. But if not I think it should be in
the
It is not possible.
However, you can initialize a symbol with another symbol's value:
configuration.add("my.new.symbol", "${some.other.symbol}")
Tapestry does a good job of detecting and reporting any unintentional
cycles you might create this way.
On Tue, Jan 3, 2012 at 7:59 AM, Borut Bolčina
have a look at this page
http://tapestry.apache.org/forms-and-validation.html
""When rendering, the Form component emits two notifications: first,
"prepareForRender", then "prepare". These allow the Form's container
to setup any fields or properties that will be referenced in the form.
For exampl
> I have changed all the values I want to persist to context values and it
> works for me now.> Is this the only way to solve this problem?
Probably not, but it seems like a fine solution.
On Mon, Jan 2, 2012 at 6:04 PM, Elivoa wrote:
> I have a zone in my component. And an event link to refresh
Hi, now its working but I think you should add this "hint" in the
documentantion and at the Tutorial.
I know we need to initialize the class but where was my problem.
The working code is:
public class CreateMunicipio
{
@Property
@Persist
private Municipio municipio;
I Don't see you initializing the municipio variable anywhere in your code. You
need something like setupRender and initialize it via new if it is null.
On Jan 3, 2012, at 12:14 PM, felipexz wrote:
> I'm using Tomcat 7 and java 1.7.. its a problem ?
>
> --
> View this message in context:
>
I'm using Tomcat 7 and java 1.7.. its a problem ?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Beaneditor-sending-null-object-tp5115312p5117434.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Hi, I think the problem is not about Persistence... the problem is municipio
is coming null.
Anyway I tryed with session.merge.. anyway it says idMunicipio cannot be
null.
Best regards
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Beaneditor-sending-null-object-tp511531
On Tue, 03 Jan 2012 14:50:03 -0200, felipexz wrote:
I tryed.. after the beaneditor submit it should persist my object.. but
it comes null.
And I get this error:
Caused by: org.hibernate.PersistentObjectException: detached entity
passed to persist: com.icms.feam.entities.Municipio
Use Ses
I tryed.. after the beaneditor submit it should persist my object.. but it
comes null.
And I get this error:
Caused by: org.hibernate.PersistentObjectException: detached entity passed
to persist: com.icms.feam.entities.Municipio
Best regards
--
View this message in context:
http://tapestry.104
On Tue, 03 Jan 2012 14:38:14 -0200, felipexz wrote:
Hi, thank you Thiago.. the code is this:
public class CreateMunicipio
{
@Property
private Municipio municipio;
When I try to run it.. my object municipio is null in
CreateMunicipio.class
why ? I'm filling it in my beane
Hi, thank you Thiago.. the code is this:
public class CreateMunicipio
{
@Property
private Municipio municipio;
@Inject
private Session session;
@CommitAfter
Object onSuccess()
{
session.persist(municipio);
On Tue, 03 Jan 2012 14:19:00 -0200, felipexz wrote:
I'm sorry but my questions are not cleary ?
Hi!
No, they weren't clear. Please post code and the full stack trace (if
any). Without them, we can only guess what's happening. ;)
No, tapestry-hibernate doesn't support Hibernate 4 yet, but
I'm sorry but my questions are not cleary ?
Best regards
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Beaneditor-sending-null-object-tp5115312p5117279.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
http://catb.org/esr/faqs/smart-questions.html
On Mon, Jan 2, 2012 at 12:11 PM, felipexz wrote:
> Hi people, good evening. I'm trying to develop an application using
> Beaneditor like the Tapestry tutorial but when I try to persist is in my
> create java page my entity that I @Inject is comming nu
Hi people, good evening. I'm trying to develop an application using
Beaneditor like the Tapestry tutorial but when I try to persist is in my
create java page my entity that I @Inject is comming null.
I tryed at first with eclipselink and now with hibernate using Session I got
same problem. Would i
Hi,
I would still like an advice on the approach on how to initialize custom
symbol provider with tapestry provided symbol. The code below ends in
IllegalStateException
Construction of service 'SymbolSource' has failed due to recursion: the
service depends on itself in some way.
The code from A
I got some basic rewriting of differrent partners working. One for Lloyds
and one for Amex.
Simple requests such as
http://localhost:8080/makeaclaim/lloyds/test
or
http://localhost:8080/makeaclaim/amex/test
got url rewrote to
makeaclaim.partner.test
So good so far.
I have a Test class where
I guess most people still in holiday mood :-). Happy new year to everyone !
Let me try this again. Hopefully someone had experience with my issue.
Thanks in advance,
Simon
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/A-TAP5-586-alike-issue-tp5110620p5116997.html
Sent
Can you override the JQuerySymbolConstants.JQUERY_ALIAS constant in your
AppModule :
configuration.add(JQuerySymbolConstants.JQUERY_ALIAS, "$j");
in order to override the jQuery Alias.
2012/1/3 csckid
> With this line
> configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "false");
>
>
With this line
configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "false");
This code works
(function( $ ) {
$(document).ready(function(){
alert("ok");
});
}) ( jQuery );
But the problem is jquery/tooltip mixin doesn't work now.
--
View this message in context:
http://tapestry.1045711
With SUPPRESS_PROTOTYPE to false, all your jQuery code should work !
Can you test this code :
(function( $ ) {
$(document).ready(function(){
alert("ok");
});
}) ( jQuery );
There is probably a conflict between the "$".
2012/1/2 csckid
> I am using tapestry5-jquery version 2.6.1
>
> When I wro
On Wed, 28 Dec 2011 15:24:20 -0200, Andrew Dahl
wrote:
"Class us.venses.core.base.util.IndexedObject has been transformed and
may not be directly instantiated."
I am getting this error on a class after upgrading to 5.3.1 from 5.2.6.
The class is referenced from a component, but is not in
There are a couple of approaches to do this, since tapestry does not
support ajax push (aka reverse ajax) out-of-the box, a simple solution
would be to have the client poll the server for the current percentage
complete.
In order to display a progress bar to the client, you must do the actual
work
42 matches
Mail list logo