debugging T5.3.6 with jetty into eclipse

2013-04-29 Thread Alberto Fernández
Hi,

I run jetty into eclipse as is explained in Tapestry Tutorial
http://tapestry.apache.org/loading-the-project-into-eclipse.html

It was working very well with tapestry 5.2.4, but after upgrade to Tapestry
5.3.6, every change on my code (on .tml files for example) I need to
restart to see the change.

Previously, I could check changes in my navigator inmediately wihout
restart jetty


Re: fckeditor for Tapestry 5.3

2013-04-16 Thread Alberto Fernández
tynamo/ckeditor works very well.

Thank you!

Alberto Fernández

Consultoría Informática EASIS, SL http://www.easis.es/
Email: afernan...@easis.es conta...@easis.es


2013/4/15 Michael Prescott michael.r.presc...@gmail.com

 +1 for Tynamo's CKeditor, I'm using it on my current project.

 Michael


 On 15 April 2013 13:24, Dragan Sahpaski dragan.sahpa...@gmail.com wrote:

  Probably there are javascript errors in the console. I haven't used the
  fckeditor plugin for tapestry but take a look at tynamo's fully
 functional
  ckeditor plugin, compatible with tapestry 5.3.6.
  http://tynamo.org/tapestry-ckeditor+guide
 
  Cheers,
  Dragan Sahpaski
 
 
  On Mon, Apr 15, 2013 at 6:01 PM, Alberto Fernandez 
 rancesvi...@gmail.com
  wrote:
 
   Hi,
  
   I was using right easyfck/fckeditor with tapestry 5.2.4 Now I've
 upgraded
   to 5.3.6 where instead easyfckeditor, only appears a textarea
  
   I didn't any change :S
  
   I'm thinking if maybe it's a context path problem related. Should I
  change
   something for T5.3.6??
  
   My config file...
  
   @Inject
   @Path(context:assets/js/fullfunctionality.js)
   private Asset2 customConf
  
   thanks a lot
  
 



Re: getting context from java Class

2013-04-08 Thread Alberto Fernández
Context is already working on my .tml classes, but I would like to invoke
it from .java

Alberto Fernández

Consultoría Informática EASIS, SL http://www.easis.es/
Email: afernan...@easis.es conta...@easis.es


2013/4/7 Dmitry Gusev dmitry.gu...@gmail.com

 Hi,

 context is a binding prefix, your code should be:

 img src=${context:CSS/images/modify.png} /

 Look here:
 http://tapestry.apache.org/assets.html



 On Sun, Apr 7, 2013 at 7:44 PM, Alberto Fernández afernan...@easis.es
 wrote:

  Hi everybody,
 
  From .tml classes I can get my images url usring context. For example:
 
  img src=${context:}/CSS/images/modify.png /
 
  But now I need the context in my .java class
 
  Are there a way to call context from here?
 
  Thanks a lot
 



 --
 Dmitry Gusev

 AnjLab Team
 http://anjlab.com



getting context from java Class

2013-04-07 Thread Alberto Fernández
Hi everybody,

From .tml classes I can get my images url usring context. For example:

img src=${context:}/CSS/images/modify.png /

But now I need the context in my .java class

Are there a way to call context from here?

Thanks a lot


upgrade to Tapestry 5.3.6

2013-03-31 Thread Alberto Fernández
I was using Tapestry 5.2.4 and I've upgraded to 5.3.6

I debug mvn jetty:run through eclipse as an external tool, but now

I get this error:

2013-03-31 05:31:34.397:WARN::Failed startup of context
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@1ad186f{/pojo-horarios,/home/alberto/easis/horarios/src/main/webapp}
java.lang.RuntimeException: Error invoking service binder method
es.udc.pojo.horarios.web.services.AppModule.bind(ServiceBinder):
Unresolved compilation problem: |
at 
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.bind(DefaultModuleDefImpl.java:562)
at 
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.init(DefaultModuleDefImpl.java:123)
at 
org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:131)
at 
org.apache.tapestry5.internal.TapestryAppInitializer.init(TapestryAppInitializer.java:142)
at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:103)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at 
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at 
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
at 
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
at 
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
at 
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
at 
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
2013-03-31 05:31:34.433:INFO::Started SelectChannelConnector@0.0.0.0:9090


Re: Tapestry AJAX Throbber

2013-03-29 Thread Alberto Fernández
I'm using Mozilla Firefox. In Google Chrome it doesn't work as well

Alberto Fernández

Consultoría Informática EASIS, SL http://www.easis.es/
Email: afernan...@easis.es conta...@easis.es


2013/3/28 Geoff Callender geoff.callender.jumpst...@gmail.com

 Which browser? I've just discovered it has a problem in IE 9. It's OK in IE
 9's compatibility mode but in normal mode it doesn't show the overlay.

 If IE 9 is your problem then try replacing this:

 new StylesheetOptions().withCondition(IE)

 with this (untested):

 new StylesheetOptions().withCondition((IE 7)|(IE 8))

 Geoff

 On 28 March 2013 03:52, Alberto Fernández afernan...@easis.es wrote:

  Hi,
 
  I am trying to show a spinner when I update a zone or submit a form. I
  tried copying fully this
  example
 
 http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/loadingspinner
  
  that
  uses that javascript (zone-overlay.js)
 
  Tapestry.onDOMLoaded(function() {
 
  function addZoneOverlay(event, element) {
  var mgr = Tapestry.findZoneManager(element);
  var zone = mgr  mgr.element;
 
  if (!zone) {
  return;
  }
 
  zone.insert({top:div class='zone-loading-overlay'/});
  var zoneDims = zone.getDimensions()
  var overlay = zone.down(div);
 
  overlay.setStyle({
  width: zoneDims.width + px,
  height: zoneDims.height + px
  });
  }
 
  // Tell document body to call addAjaxOverlay whenever a Form is
  submitted or a zone-related form or link is clicked.
 
  $(document.body).on(Tapestry.FORM_PROCESS_SUBMIT_EVENT,
  addZoneOverlay);
  $(document.body).on(Tapestry.TRIGGER_ZONE_UPDATE_EVENT,
  addZoneOverlay);
  });
 
 
  The spinner is not shown and If i add a console message below the last
 two
  lines of the document, it works, but it seems that the addZoneOverlay
  fucntion
  is never been called because adding a console.log(xx) message inside the
  function does not work.
 
  Only difference between my example and mine is that i use
  xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
 
  I'm using tapestry 5.2.4. Could be in my version the problem?
 
  Thanks a lot