Re: guidance with integrating yet another js library as custom component

2013-07-02 Thread George Ludwig
Cool, thanks a lot! On Tue, Jul 2, 2013 at 3:50 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 02 Jul 2013 19:47:14 -0300, George Ludwig > wrote: > > I think I got it...so to initialize my graph I need to pas it a file >> name...is it most appropriate to use JavaScript

Re: guidance with integrating yet another js library as custom component

2013-07-02 Thread Thiago H de Paula Figueiredo
On Tue, 02 Jul 2013 19:47:14 -0300, George Ludwig wrote: I think I got it...so to initialize my graph I need to pas it a file name...is it most appropriate to use JavaScriptSupport.addInitializerCall() so that the name of the file can be pulled from the @parameter of the component? For t

Re: guidance with integrating yet another js library as custom component

2013-07-02 Thread George Ludwig
I think I got it...so to initialize my graph I need to pas it a file name...is it most appropriate to use JavaScriptSupport.addInitializerCall() so that the name of the file can be pulled from the @parameter of the component? On Tue, Jul 2, 2013 at 3:42 PM, Thiago H de Paula Figueiredo < thiag...

Re: guidance with integrating yet another js library as custom component

2013-07-02 Thread Thiago H de Paula Figueiredo
On Tue, 02 Jul 2013 17:25:14 -0300, George Ludwig wrote: Thanks for the info Thiago! Couldn't you just @Import to get the JS files included and JavaScriptSupport.addScript() to invoke JS functions? That's the route I ended up taking to import the necessary js files, but I'm still unclear

Re: HTTPS ActionLink not behaving properly

2013-07-02 Thread Kalle Korhonen
Or, just provide values for the HOST* symbols, see http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/BaseURLSource.html. Also, make sure to configure your servlet container properly. Without any other information, Tapestry uses the values from the request which may not be wha

Re: HTTPS ActionLink not behaving properly

2013-07-02 Thread Lenny Primak
You probably need to override BaseURLSource like it shows at the bottom of this page: http://tapestry.apache.org/https.html On Jul 2, 2013, at 11:21 AM, George Christman wrote: > Hello, I have an app that runs on a secure intranet using the following > configuration, > > configuration.add(Meta

Re: guidance with integrating yet another js library as custom component

2013-07-02 Thread George Ludwig
Thanks for the info Thiago! >> Couldn't you just @Import to get the JS files included and JavaScriptSupport.addScript() to invoke JS functions? That's the route I ended up taking to import the necessary js files, but I'm still unclear on exactly how to use JavaScriptSupport.addScript() to creat

Re: Event Bubbling not working

2013-07-02 Thread Lance Java
Ah, gotcha. Can you elaborate on this complicated logic? On 2 Jul 2013 20:30, "Cezary Biernacki" wrote: > Hi Lace, > > PagerContainer is not a parent to Pager. > Pager is part of PageDemo page. > It is just rendered in body of of PagerContainer, > but it is not belong to PagerContainer, they do

Re: Event Bubbling not working

2013-07-02 Thread Cezary Biernacki
Hi Lace, PagerContainer is not a parent to Pager. Pager is part of PageDemo page. It is just rendered in body of of PagerContainer, but it is not belong to PagerContainer, they do not form any hierarchy. That is why the event bubbling seems not to work in this case. You would need more complica

Re: Event Bubbling not working

2013-07-02 Thread Dmitry Gusev
Can you verify that container of stitch.pager is PageContainer using ComponentResources.getContainer()? I can suggest its parent is actually PagerDemo. Can you move handlers there and check if bubbling works there? The only difference in your examples is that stitch.pager physically located in Pa

Re: Tapestry grid with enum override localization

2013-07-02 Thread Miguel Figueiredo
Hi Chris, Your suggestion works perfectly. In the getColumnLabel() implementation, I also tried the following: public String getColumnLabel() { return TapestryInternalUtils.getLabelForEnum(messages, rowElement.getColumn()); } Like this I can use the standard properties for enums

Re: Event Bubbling not working

2013-07-02 Thread Lance Java
Ok, I'm totally stumped. Event bubbling works here: http://tapestry-stitch.uklance.cloudbees.net/eventbubbledemo But doesn't work here: http://tapestry-stitch.uklance.cloudbees.net/pagerdemo I have eventlinks in Pager.tml Event1 Event2 Event3 And I have handlers in PagerContainer.java

Re: guidance with integrating yet another js library as custom component

2013-07-02 Thread Thiago H de Paula Figueiredo
On Tue, 02 Jul 2013 15:35:20 -0300, George Ludwig wrote: I'm working on a custom component of the SigmaJS visualization library ( http://sigmajs.org). Specifically, this example: http://sigmajs.org/examples/gexf_example.html Interesting! I've been studying the got5 examples of js library

guidance with integrating yet another js library as custom component

2013-07-02 Thread George Ludwig
I'm working on a custom component of the SigmaJS visualization library ( http://sigmajs.org). Specifically, this example: http://sigmajs.org/examples/gexf_example.html I'm starting with the simplest use case, which is to create a sigma viewer, passing it a single parameter, which is the name of a

HTTPS ActionLink not behaving properly

2013-07-02 Thread George Christman
Hello, I have an app that runs on a secure intranet using the following configuration, configuration.add(MetaDataConstants.SECURE_PAGE, "true"); When the user adds https to the domain, tapestry generates the following actionlink which works perfectly. /eprs/login.usernotice However, when a user

Re: Event Bubbling not working

2013-07-02 Thread Lance Java
Hmm... I've stripped my example down to it's bare bones and events are now bubbling up... I must be doing something stupid in my original code. And yes, the parent component is in the components package, it's in mybasepackage.components. On 2 July 2013 16:19, Howard Lewis Ship wrote: > This is

Re: Event Bubbling not working

2013-07-02 Thread Howard Lewis Ship
This is odd; it feels like something in Tapestry that's too rock-solid to fail. Is there any chance the parent class is not being instrumented as a component class? What package is it in? On Tue, Jul 2, 2013 at 1:58 AM, Lance Java wrote: > As I said in my previous message, I've tried triggerEven

Re: T5.1 -> T5.3 migration question

2013-07-02 Thread Dmitriy Vsekhvalnov
Thanks, got it. On Tue, Jul 2, 2013 at 12:46 PM, Kristian Marinkovic < kristian.marinko...@gmail.com> wrote: > Hi, > > Tapestry over time added additional checks to detect whether the classes in > the Tapestry specific packages are really only relevant to Tapestry. Not > doing so can cause unexpe

Re: Event Bubbling not working

2013-07-02 Thread Lance Java
As I said in my previous message, I've tried triggerEvent on the ComponentResources and ComponentResources.getContainerResources(). Neither bubble up to the parent.

Re: Event Bubbling not working

2013-07-02 Thread D.R.
Hi, ComponentResources.triggerEvent(...) is the way to go, isn't it? Parent.java: @OnEvent(component = "child", value = "childEventCall") void childEventCall(final String someString, final int someInt) { //dosomething } Child.java: void onSomeEvent() { _resources.tri

Re: T5.1 -> T5.3 migration question

2013-07-02 Thread Kristian Marinkovic
Hi, Tapestry over time added additional checks to detect whether the classes in the Tapestry specific packages are really only relevant to Tapestry. Not doing so can cause unexpected exceptions due to classloading issues. in other words: only page, component and mixin classes go into the respecti

Re: T5.1 -> T5.3 migration question

2013-07-02 Thread Lance Java
This is likely caused by having classes in the pages / components packages that shouldn't be there. Move any non page / component classes out of the controlled packages (pages / components / base). This includes interfaces, enums and utilities.

T5.1 -> T5.3 migration question

2013-07-02 Thread Dmitriy Vsekhvalnov
Hi everyone, doing app migration from 5.1 to 5.3, currently face with weird exception: Caused by: org.apache.tapestry5.ioc.internal.OperationException: Base class java.lang.Enum (super class of xxx.xx.xx) is not in a controlled package and is therefore not valid. You should try moving the class

Re: Event Bubbling not working

2013-07-02 Thread Lance Java
No typos, if I move the event handler from parent to child it fires as expected. I've also tried ComponentResources.triggerEvent(...) and ComponentResources.getContainerResources().triggerEvent(...) in the child but nothing seems to bubble up. FYI This is tapestry 5.3.7

Re: Tapestry grid with enum override localization

2013-07-02 Thread Christian Köberl
2013/7/1 Miguel Figueiredo : > Hi, Hi > I need to add a column override that contains an enum, but I am having > trouble localizing it. > > For example: > > > > ${rowElement.column} > > > > My rowElement.column corresponds to an enum like: > > enum Column { > A, B > } Just create a