Re: Integrating Tapstry IOC only

2016-04-23 Thread Basile Chandesris

Le 21/04/2016 09:18, Adam X a écrit :

Hi

I have a rest project (no gui) with CDI backed by Weld. I would like to
switch to Tapestry IOC instead. Are there any good tutorials that cover
this?

Adam


http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/OT-T5-IoC-in-Fantom-td5722767.html

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-11 Thread Basile Chandesris

https://wiki.apache.org/tapestry/Tapestry5Trolls

Le 11/02/2016 21:25, JT a écrit :

No wonder itv sucks.
On Dec 25, 2015 5:40 PM, "Kalle Korhonen" 
wrote:


No, T5.4 was still firmly headed by Howard. He created the first T5.4
branch over three years (see for example
http://tapestryjava.blogspot.com/2012/10/zeroing-in-on-tapestry-54.html)
and you can see the results of his mastermind everywhere in the T5.4 code.
I guess you could say it was the first release not finished by Howard.

Kalle


On Thu, Dec 24, 2015 at 10:23 AM, Alex Kotchnev 
wrote:


Pretty epic, congrats to all who contributed and participated ! Most
notably, this seems like the first Tapestry release that was not headed

by

Howard (of course, I don't have any stats to back that up).

Cheers - Alex K

On Tue, Dec 22, 2015 at 8:48 PM, Bob Harner  wrote:


The Apache Tapestry developers are proud to announce that Tapestry 5.4,
a long-awaited major release, is now available for immediate download:

 http://tapestry.apache.org/download

Tapestry 5.4 represents a tremendous effort by a large number of
people, and includes almost 200 enhancements and over 300 bug fixes.
Full details are in the release notes, but here are a few highlights:

* A JavaScript abstraction layer that removes Tapestry's dependence
on Prototype and lets you swap in jQuery (or potentially other
JavaScript framewords) instead.

* JavaScript modules based on RequireJS

* A new module, tapestry-webresources, which provides support for
automatically compiling CoffeeScript into JavaScript and Less into
CSS, and for minimizing CSS and JavaScript. And, best of all, this
processing takes place at runtime.

* Greatly improved asset caching based on the checksums of file
contents, to intelligently cache assets like images and CSS only
until their content changes.

* The adoption of Bootstrap 3 CSS styling by default, with built-in
glyphicon support.

... and many dozens of other significant changes.

Despite all the changes, Tapestry 5.4 is still mostly a drop-in

replacement

for
5.3 users, with the caveat that the adoption of Bootstrap 3 CSS may

require

some
CSS tweaks if you're not already using Bootstrap 3.

Please see https://tapestry.apache.org/release-notes-54.html for a

full

list of
changes and upgrade instructions.




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: jss.require(...) code is not executed when using ajaxResponseRenderer.addCallback(new JavaScriptCallback())

2016-02-06 Thread Basile Chandesris

http://callbackhell.com/

Le 06/02/2016 23:13, danny de cock a écrit :

the atmos library works fine with the chatdemo page and the table in
index.java gets updated correctly...
it seems to me that the jss.require(..).invoke(..).with(..) is not
executed correctly...
I think the jss that is triggered through the "new
JavaScriptCallback().run(JavaScriptSupport jss)" does not function
correctly...

On 6 February 2016 at 21:45, Chris Poulsen  wrote:

Your "onStockPriceReceived2" seems to be triggered from some atmos library
callback.

As your AddPoint button clearly works, then I think it is a stretch to say
that the callback stuff does not work - It does not work when using the
atmos library, but does when called the "normal" way.

You should probably start off by making sure that the third party library
(atmos) actually works like you expect.

--
Chris



On Sat, Feb 6, 2016 at 9:06 PM, g  wrote:


hello,

I stripped down the demo to make it easy to test and illustrate the issue
:)

you can download a working project from

http://gwiki.be/tapestry/tapestry-atmosphere-cometd-demo.5.4.0.simplified.tgz

after unpacking the tar file and executing `mvn jetty:run`, the page
http://localhost:8080/ will show a graph and a table.

after a couple of seconds, the table will start showing updates. if
the javascript calls would be executed fine, the graph would follow
the updates shown in the table.

you will see straightforward feedback in the console where you
executed the mvn jetty:run.

the javascript code that is added through the addDataPoint call in
line 69 of org.lazan.t5.atmosphere.demo.pages.Index.java is not
executed, where the same call to addDataPoint gets executed when
called by addRandomPoint in afterRender and onSuccess.

click the 'AddPoint' button a couple of times to confirm that the same
addCallback gets executed correctly when clicked interactively, but
not when called automatically...

thanks for your feedback, g.

On 5 February 2016 at 13:33, danny de cock  wrote:

yes, they are ajax calls...  I will produce a stripped-down version of
the project that illustrates the problem...  when adding a submit
button that executes the same javascript script or when called from
afterRender, it works, when called through the onAjaxEvent call, it
does not...

will upload the source  this evening...

thanks, g.

On 5 February 2016 at 13:00, JumpStart
 wrote:

Crazy thought, but have you confirmed with a web inspector that your

request is XHR?

On 5 Feb 2016, at 6:59 PM, g  wrote:

yes, the js file is a module and is found in META-INF/modules.

the file looks as follows:
define(["jquery"], function($) {
var privateFunc = function(args) {
alert('bingo! it works! ==');
var arg=args.arg;
console.log('arg',arg);
};
return { publicFunc: privateFunc};
});

this is a simplification of the javascript file of


https://stackoverflow.com/questions/18796381/tapestry-5-4-call-jquery-more-than-once

the difference between my code and probably your and Geoff's code is
that I call the ajaxResponseRender.addCallback(...) directly from an
onAjaxEvent() method and that you are using the ajaxResponseRender it
only if request.isXHR() is true:
void onEventHandler(...) {
if (request.isXHR()) {
ajaxResponseRenderer.addCallback(new JavaScriptCallback...);
}
}

where my handler is structured without the request test:
void onEventHandler(...) {
ajaxResponseRenderer.addCallback(new JavaScriptCallback...);
}

I have already tested whether adding the test would solve the issue,
but to no avail...

I am porting the cometd-demo from uklance (cf.
https://github.com/uklance/tapestry-cometd) to tapestry 5.4.  this is
a push application in which this addCallback structure without the
request.isXHR-test works fine in 5.3.8...

thanks for your feedback, g.

On 5 February 2016 at 11:23, Carlos Montero Canabal
 wrote:

Hi,

Your js file you required is a js module??? I use many times require

in a callback in tapestry 5.4.0 and it works perfect.

Regards

Carlos Montero

Enviado desde mi iPhone


El 5 feb 2016, a las 2:15, g  escribió:

hello geoff,

thanks for your feedback, and indeed: I believe it looks very much
like a tapestry 5.4 bug ;-)

thanks & kind regards, g.

On 5 February 2016 at 02:00, JumpStart
 wrote:

Sorry, just looked at your stack overflow example and I’m baffled

as to why it wouldn’t work.

Geoff


On 5 Feb 2016, at 8:55 AM, JumpStart <

geoff.callender.jumpst...@gmail.com> wrote:

Here are some working examples that may help.

In a callback:



http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/modal/1

In afterRender:



http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/robust

Geoff


On 5 Feb 2016, at 

Re: [ANNOUNCE] Apache Tapestry 5.4

2016-01-09 Thread Basile Chandesris

Hi,

I noticed that the 'Tapestry 5.4 Announce' is not available on Apache 
www-announce mailing list.



The Apache News Round-up: week ending 8 January 2016:
http://mail-archives.apache.org/mod_mbox/www-announce/201601.mbox/browser

https://blogs.apache.org/
https://blogs.apache.org/foundation/search?q=tapestry

regards,
Basile


Re: angularjs with tapestry

2016-01-01 Thread Basile Chandesris

Le 30/12/2015 13:10, Robson Pires a écrit :

Hi,

I am trying to integrate angularjs with tapestry, any advice about it?

Bests regards,

Rob


https://github.com/ffacon/tapestry5-angular-demo

https://www.google.com/?gfe_rd=cr=AoqGVpmDEcr6caiflOgE_rd=cr#q=site:http:%2F%2Fmail-archives.apache.org%2Fmod_mbox%2Ftapestry-users+angular

http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=search_page=2375124=angular





-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Is tapestry plastic incompatible with JEE specs?

2015-12-13 Thread Basile Chandesris

https://translate.google.com/translate?sl=fr=en=y=_t=fr=UTF-8=http%3A%2F%2Fjavaetmoi.com%2F2013%2F01%2Fisoler-classloader-ear-jboss%2F==url

Le 12/12/2015 15:08, Luca Arzeni a écrit :

Hi Jens,
core module contains some EJBs: I'm using JPA for the persistence and SLSB as 
facade to achieve a transactional demarcation strategy. So I could roughly say 
that the core module contains the persistence layer and the business logic, 
which is used by different client application, few of them are webapps, while 
other are desktop apps.

I use this strategy in the web app and in a desktop GUI app:
- the web apps use the SLSB approach, looking up the beans in the webapp 
module, and allowing them to be injected  the pages ad T5 services;
- the desktop and command line apps use directly the IOC of T5 to inject 
services when I need them

So, an EAR usually contains three or more war module and a EJB module, while 
desktop and command line apps are usually a GUI around some services.

As you can undestand, the real app is more complex than the simple project that 
I used for test, and replicating EJB and T5 jars every where could make my EAR 
to explode for size and complexity.

Anyway the testcase, that I used to pinpoint the problem, should be simple 
enough to demonstrate the issue.

I often see that people is deploy t5 as war inside tomcat or jetty.

I'm wondering if there is someone around that is usually deploying EARs with 
jboss and glassfish that has found similar issues...

Thanks,
Luca




Sent: Saturday, December 12, 2015 at 2:02 PM
From: "mailingl...@j-b-s.de" 
To: "Tapestry users" 
Subject: Re: Is tapestry plastic incompatible with JEE specs?

What is in your core Module? Services using T5 IOC? Why is the core Module not 
part of the war?
To me it looks more like a structural / serup problem than a real Tapestry 
issue, to be honest. But I can be entirely wrong because I do not know the 
requirements of your project and why it is structured this way.

If you need these libs in different classloaders not belonging to same hiererchy, you 
can't share them. The same class loaded from different classloaders will cause trouble 
anyway, too. Maybe you only need it on compile time and "maven provided" on 
your war pom.xml is the solution?

Jens

Von meinem iPhone gesendet


Am 11.12.2015 um 22:20 schrieb Luca Arzeni :

Hi Jens,
the point is that I need them in the lib since I use them also in the core 
module.

I can place them in the lib AND in the war, but I cannot place them ONLY in the 
war.

Also, I ask about compatibility because if I have properly spotted the issue, 
some kind of problem could arise also in the core (read: ejb.jar) module.

The real showstopper is the pervasive usage that I'm doing of tapestry IOC.

I like it, but if these problems cannot be solved, it may be better for me to 
migrate to Guice or Spring.

Thanks,
larzeni



Sent: Friday, December 11, 2015 at 8:00 PM
From: "mailingl...@j-b-s.de" 
To: "Tapestry users" 
Subject: Re: Is tapestry plastic incompatible with JEE specs?

Hi!

IWhy not having all T5 related jars in your war? Any particular reason why they 
are located in your ear?

Jens



Von meinem iPhone gesendet


Am 11.12.2015 um 19:05 schrieb Luca Arzeni :

Hi there,
my environment is:
JBoss 7.2+  (actually 6.1.1.GA) or Wildfly 8.0 Final
Tapestry5 5.3.7

I'm developing a little ear, which has the following structure

myear.ear
|  core-1.1.jar
|  webclient-1.1.war
|  lib/
  |  plastic-5.3.7.jar
  |  tapestry5-annotations-5.3.7.jar
  |  tapestry-core-5.3.7.jar
  |  tapestry-func-5.3.7.jar
  |  tapestry-ioc-5.3.7.jar
  |  tapestry-json-5.3.7.jar
  |  tapestry-upload-5.3.7.jar
  |  ... omissis ...

the core-1.1.jar module contains few EJBs,
the webclient-1.1.war module contains my t5 app (pages, components and so on)

I routinely use and appreciate t5 IOC, so I used it also in the core module; at this 
point I need to have the t5 jars available to the core AND to the webclient, so I put 
them in the shared "lib" folder of the EAR.

So far, so good: the app worked and I had no problem.

Today I was needing to place an object (a simple bean with 3 strings attributes 
and their getters and setters) and serialize/deserialize it into a file.

The bean is needed only in the webclient (I need to place it in session), so I 
placed it in the webclient.war.

Now my webapp crashed when I try to instantiate a page that refers to the bean.

Looking at the problem, it seems to be caused by plastic that tries to reach 
the class by using the jboss classloader.

This is the relevant part of the stack:

---
org.apache.tapestry5.internal.plastic.asm.ClassWriter.getCommonSuperClass(ClassWriter.java:1588)
org.apache.tapestry5.internal.plastic.asm.ClassWriter.getMergedType(ClassWriter.java:1559)

Re: [T5.4 build 22] Exception in ExceptionReport.tml

2015-07-18 Thread Basile Chandesris

http://mail-archives.apache.org/mod_mbox/shiro-user/201211.mbox/%3ccaatvd4wla_gu_1qofjbloo7ubyolmssa2yrxch-5tq-yzut...@mail.gmail.com%3E

Le 18/07/2015 11:49, mailingl...@j-b-s.de a écrit :

What exactly are you doing on your exception page? This error looks like a new thread is 
created which is not possible in GAE

Jens



Von meinem iPhone gesendet


Am 18.07.2015 um 10:47 schrieb Michał Więckowski michal.wieckows...@gmail.com:

Hello everyone,

I've got a question regarding tapestry 5.4. I try to integrate my
application with tynamo tapestry security and Google App Engine.  After
some development I started to get these exception when something in
application is not working. I have written something because problem
concerns ExceptionPage (as you can see on stacktrace attached below).
Has anybody faced such a problem?

Of course I can post some configuration files, but since I have no idea
what can cause this exception of error page, I not posing any at the
moment.


HTTP ERROR 500

Problem accessing /. Reason:

org.apache.tapestry5.internal.services.RenderQueueException: Render
queue error in SetupRender[core/ExceptionReport:loop_0]: Failure reading
parameter 'source' of component core/ExceptionReport:loop_0: access denied
(java.lang.RuntimePermission modifyThreadGroup) [at
classpath:org/apache/tapestry5/corelib/pages/ExceptionReport.tml, line 110]
Caused by:

org.apache.shiro.subject.ExecutionException:
org.apache.tapestry5.internal.services.RenderQueueException: Render queue
error in SetupRender[core/ExceptionReport:loop_0]: Failure reading
parameter 'source' of component core/ExceptionReport:loop_0: access denied
(java.lang.RuntimePermission modifyThreadGroup) [at
classpath:org/apache/tapestry5/corelib/pages/ExceptionReport.tml, line 110]
at
org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:385)
at
org.tynamo.security.services.impl.SecurityConfiguration.service(SecurityConfiguration.java:54)
at $HttpServletRequestFilter_12a67d391b5c.service(Unknown Source)
at $HttpServletRequestHandler_12a67d391b5f.service(Unknown Source)
at
org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:59)
at $HttpServletRequestHandler_12a67d391b5f.service(Unknown Source)
at
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
at $HttpServletRequestFilter_12a67d391b59.service(Unknown Source)
at $HttpServletRequestHandler_12a67d391b5f.service(Unknown Source)
at
org.apache.tapestry5.modules.TapestryModule$1.service(TapestryModule.java:804)
at $HttpServletRequestHandler_12a67d391b5f.service(Unknown Source)
at $HttpServletRequestHandler_12a67d391b58.service(Unknown Source)
at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:166)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocketFilter.java:74)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:127)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:125)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectRequest(DevAppServerModulesFilter.java:366)
at
com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectModuleRequest(DevAppServerModulesFilter.java:349)
at
com.google.appengine.tools.development.DevAppServerModulesFilter.doFilter(DevAppServerModulesFilter.java:116)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at

Re: Module-auto-loading not working when Manifest.mf line is wrapped

2015-05-14 Thread Basile Chandesris

Hi,

http://stackoverflow.com/questions/3057841/too-long-line-in-manifest-file-while-trying-to-create-jar
http://stackoverflow.com/questions/7402271/maven-archiver-putting-in-weird-line-breaks-in-classpath-for-manifest
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=719094
https://bugs.eclipse.org/bugs/show_bug.cgi?id=91309

Did you try with Maven 3.3.3, JDK 7u79, maven-jar-plugin 2.6, 
maven-war-plugin 2.6 ?


https://issues.apache.org/jira/browse/TAP5/fixforversion/12324358/?selectedTab=com.atlassian.jira.jira-projects-plugin:version-summary-panel 
5.3.8



Le 12/05/2015 17:29, Daniel Jue a écrit :

Hi, I recently ran into this problem that causes my module to not
auto-load, and in fact prevents the Tomcat server from starting my T5 war
file.

The error starts with
Exception loading module(s) from manifest
jar:file:/path-to-jar-file-in-web-inf-lib/MANIFEST.MF: Failure loading
Tapestry IoC module class:
stack trace starts at IOCUtilities.java:123


The culprit was that the MANIFEST.MF can't have lines longer than 72
characters, and if it is longer it [Maven] will wrap on the next line
including an additional space.  The total of my manifest is right at 72,
but it wrapped it at 70 characters anyway.  This is strange since I didn't
have problems with it last week.

The relevant lines of my manifest.mf for the pluggable module looks like
this:

Tapestry-Module-Classes: graphene.augment.mitie.web.services.MITIEModu
  le


I'm using Maven 3.0.4, Tapestry 5.3.7, Jdk 1.7.0

I'm not sure if Tapestry could be made to take that into account and
coalesce the Strings.
I did discover it's part of the Java spec though:

http://docs.oracle.com/javase/7/docs/technotes/guides/jar/jar.html#Notes_on_Manifest_and_Signature_Files





Re: problem with rich text editor

2014-12-08 Thread Basile Chandesris

Le 08/12/14 22:56, nn kk a écrit :

  Hi everyone,
I'm using tynamo rich text area (tapestry-ckeditor-0.0.1.jar) I also use 
tapestry-jquery-3.4.1
I have a js error: document.observe is not a function. It looks like jquery 
breaks prototype, how can I fix this?

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



 CKEditor 4.4.6 http://ckeditor.com/release/CKEditor-4.4.6

Download .zip 
http://download.cksource.com/CKEditor/CKEditor/CKEditor%204.4.6/ckeditor_4.4.6_standard.zip 
or .gzip 
http://download.cksource.com/CKEditor/CKEditor/CKEditor%204.4.6/ckeditor_4.4.6_standard.tar.gz


*Security Updates:*

 *

   Fixed XSS vulnerability in the HTML parser reported by Maco Cortes
   https://www.facebook.com/Maaac.

   Issue summary: It was possible to execute XSS inside CKEditor after
   persuading the victim to: (i) switch CKEditor to source mode, then
   (ii) paste a specially crafted HTML code, prepared by the attacker,
   into the opened CKEditor source area, and (iii) switch back to
   WYSIWYG mode.

*An upgrade is highly recommended!
*

http://ckeditor.com/whatsnew
http://en.wikipedia.org/wiki/CKEditor#Vulnerabilities

https://github.com/tynamo/tapestry-ckeditor/tree/master/src/main/resources/org/tynamo/ckeditor
https://github.com/plannowtech/tapestry5-ckeditor/tree/master/src/main/resources/com/plannow/tapestry5/ckeditor/mixins/ckeditor


Re: problem with rich text editor

2014-12-08 Thread Basile Chandesris

Le 08/12/14 22:56, nn kk a écrit :

  Hi everyone,
I'm using tynamo rich text area (tapestry-ckeditor-0.0.1.jar) I also use 
tapestry-jquery-3.4.1
I have a js error: document.observe is not a function. It looks like jquery 
breaks prototype, how can I fix this?

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




Maybe this will help: http://tapestry.apache.org/javascript-faq.html

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Change log level from DEBUG to INFO

2014-10-04 Thread Basile Chandesris


https://github.com/based2/tapestry-security-test/blob/master/tynamo-test-webapp/src/main/resources/logback.xml
https://github.com/based2/tapestry-security-test/blob/master/tynamo-test-webapp/pom.xml

Le 03/10/14 02:55, Chris Mylonas a écrit :
Thanks for pointing that out Lance - my part-time java foo is a bit 
rusty from 10 years ago, so the thinking pipeline is not so streamlined.


Sample logback.xml file - changed to info root level - in 
src/main/resources

http://logback.qos.ch/manual/configuration.html

did the trick




On Thu, 02 Oct 2014 17:29:11 +1000, Lance Java 
lance.j...@googlemail.com wrote:


From your earlier question... The logging framework is your choice. 
Hence

the config is dependent on the logging framework chosen.
 On 2 Oct 2014 07:49, Chris Mylonas ch...@opencsta.org wrote:


Hi All,

How do you turn the logging level down.  I would have thought 
there'd be a

symbol or configuration mention somewhere but can't find it.


There's too much info for me to find exceptions when thrown.


Thanks
Chris

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org








-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: tapestry5-jquery tabs

2014-08-11 Thread Basile Chandesris

With https://github.com/uklance/tapestry-stitch

html t:type=layout title=Dyns
xmlns:t=http://tapestry.apache.org/schema/tapestry_5_4.xsd;
  xmlns:p=tapestry:parameter
t:stitch.tabGroup active=projectsTab
t:loop source=projects value=project
  t:stitch.tab name=${project} label=${project}
  t:if test=!isHelp()
t:dyn.cnx project=${project} /
  /t:if
  t:if test=isHelp()
t:dyn.help /
  /t:if
 /t:stitch.tab
/t:loop
 /t:stitch.tabGroup
/html

import cnx.services.AppModule;
import cnx.services.MyService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.tapestry5.annotations.*;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tynamo.security.services.SecurityService;

@Secure
@RequiresPermissions({AppModule.PERMISSION_XXX})
public class Index {
private final static Logger LOG = LoggerFactory.getLogger(Index.class);

@Persist
@Property
private String project;

@Persist
@Property
private ListString projects;

@Inject
private MyService service;

@Inject
private SecurityService securityService;

@PageActivationContext
@Property
private String projectsTab;

private static final String XXX = XXX;
private static final String HELP = Help;

@SetupRender
void initializeValue() {
projects = service.getAllCustomersProjects();

// Move XXX at the end and check authorisation
projects.remove(XXX);
try {
if (!securityService.hasRole(AppModule.ROLE_XXX)) 
projects.add(XXX);

} catch (Exception e) {
LOG.error(, e);
}

// Caused by: java.lang.IllegalStateException: Duplicate tab 
name Help

if (!projects.contains(HELP)) projects.add(HELP);
}

   public boolean isHelp(){
if (HELP.equals(project)) return true;
return false;
}
}

https://issues.apache.org/jira/browse/TAP5-2373

Le 08/08/14 23:45, Chris Mylonas a écrit :

Hi John,
Not really a tapestry question but it's something I need to do for a
project-of-the-future

Maybe checking jquery-ui will help
e.g.
http://stackoverflow.com/questions/14702631/in-jquery-ui-1-9-how-do-you-create-new-tabs-dynamically

Chris



On Tue, Aug 5, 2014 at 3:56 PM, John j...@quivinco.com wrote:


Has anyone got code to share for a jquery tabs example where the tabs are
created dynamiclly? The given example only allows for a fixed number of
tabs.

John

---
This email is free from viruses and malware because avast! Antivirus
protection is active.
http://www.avast.com





Re: [5.4-beta-6] How to update a Zone inside a loop ?

2014-08-10 Thread Basile Chandesris
https://git-wip-us.apache.org/repos/asf?p=tapestry-5.gita=searchh=HEADst=commits=TAP5-2329 
- 2014-05-27

https://git-wip-us.apache.org/repos/asf?p=tapestry-5.gita=searchh=HEADst=commits=zone+

https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=0119f9a890c8becb80fa1d5f36c1ab1f4ec8660c
Thu, 7 Aug 2014 - 5.4-beta-16 is available

https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=90766995f59048cb7f7d4cf042a21a9d728583db
Sun, 20 Jul 2014 - 5.4-beta-15 is available

https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=ded30cceeca17469c7081255756599703bd6cd40
Thu, 17 Jul 2014 - 5.4-beta-14 is available

https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=57171a34a8fcbaf8fe25749096a00b262ab4c871
Mon, 23 Jun 2014 - 5.4-beta-13 is available

https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=6ee341ae2578d0a455a6deccb392a0f352c6f624
Fri, 20 Jun 2014 - 5.4-beta-12 is available

https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=4780b04b5c2bdebbd3f4f96691e3f15727b5cb09 


Tue, 17 Jun 2014 - 5.4-beta-11 is available

https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=326786c8b739e8b093794710d20a7a28631813da
Tue, 3 Jun 2014 - 5.4-beta-10 is available

https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=d49ddd604f4387b8d0c0f42ccee75191967a6fa1
Tue, 3 Jun 2014 - 5.4-beta-9 is available

https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=2650b107c194a06cfc855b1526d8fa06012ec2c0
Mon, 2 Jun 2014 - 5.4-beta-8 is available

http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=search_pagenode=2375124query=votesort=date

http://www.apache.org/dev/release.html


Le 09/08/14 23:14, Muhammad Gelbana a écrit :

But even if I can submit a context value, how can I know the which zone to
update ? (i.e. what is zone's id ?)​

I mentioned that zones and select components are repeated in a loop.

*-*
*Muhammad Gelbana*
http://www.linkedin.com/in/mgelbana


On Sat, Aug 9, 2014 at 4:59 PM, Muhammad Gelbana m.gelb...@gmail.com
wrote:


I can't figure out the version having this fix !

I can only see that 5.4-beta-6 was announced on tapestry.apache.org few
days before Thiago committed the fox on GIT but I cannot figure out the
exact version having this fix and I don't know how the developers organize
their brnaches

*-*
*Muhammad Gelbana*
http://www.linkedin.com/in/mgelbana


On Sat, Aug 9, 2014 at 4:11 PM, Lance Java lance.j...@googlemail.com
wrote:


Here's the jira

https://issues.apache.org/jira/plugins/servlet/mobile#issue/TAP5-2301

Looks like you're in luck... Thiago has implemented it!






-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Section 508 Compliance

2014-06-12 Thread Basile Chandesris
It seems that Kawwa Components tries to support W3C/WAI (Web 
Accessibility Initiative):


https://kawwa.atosworldline.com/accessibility
https://kawwa.atosworldline.com/componentapproach
https://kawwa.atosworldline.com/components

--
http://www.jimthatcher.com/sidebyside.htm
http://www.jimthatcher.com/webcourse1.htm

Le 12/06/14 14:31, Barry Books a écrit :

I need to make a Tapestry 5.4 site 508 compliant. I've looked thru the
requirements and what HTML is generated now and I don't see anything that
looks to difficult but I'd like to get Tapestry to do most/all the work.

My plan is to write mixins to handle thinks like access keys. For example

t:pagelink page=search/

Would look in the message catalog for

search-title=Do Search
search-text=Search
search-accesskey=s

and create

t:pagelink page=search accesskey=s title=Do Searchspan
class=accesskeyS/spanearcht:pagelink

I'm also going to create a visitor to patch up things like grid link sort
titles.

Has anyone else built a 508 Tapestry site? If so any suggestions

Lastly some things might be better (like grid sort link titles) if they
were included in the base code. Would someone be willing to accept patches
and if so should they be enabled all the time or should 508 be a feature
you need to turn on?

Thanks
Barry





Re: 5.4-Beta6 does not work with Tomcat JDBC pool interceptors

2014-05-28 Thread Basile Chandesris

As your link links, you should try with Hibernate 4.3.5.Final

https://hibernate.atlassian.net/browse/HHH-8853
http://mvnrepository.com/artifact/org.hibernate/hibernate-core/4.3.5.Final


Le 28/05/14 19:14, Barry Books a écrit :

While not exactly a Tapestry Beta problem I ran into this issue when
upgrading to 5.4.Beta-6



Apparently the Tomcat JDBC pool and Hibernate 4.3.1.Final do not get along.
I’m posting this because the error is pretty obscure.



https://issues.apache.org/bugzilla/show_bug.cgi?id=56088



2014-05-28 11:48:03,087 [qtp3831981-17] PerthreadManagerImpl.java146 [WARN]
TapestryIOCModule.PerthreadManager Error invoking callback
org.apache.tapestry5.ioc.internal.services.PerthreadManagerImpl$2@ab6c9d:
*java.lang.reflect.UndeclaredThrowableException*

*java.lang.reflect.UndeclaredThrowableException*

at com.sun.proxy.$Proxy82.hashCode(Unknown Source)

at java.util.HashMap.hash(Unknown Source)

at java.util.HashMap.getEntry(Unknown Source)

at java.util.HashMap.get(Unknown Source)

at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.release(
*JdbcCoordinatorImpl.java:399*)

at
org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.releaseStatements(
*AbstractBatchImpl.java:173*)

at
org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.release(
*AbstractBatchImpl.java:210*)

at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.close(
*JdbcCoordinatorImpl.java:193*)

at
org.hibernate.engine.transaction.internal.TransactionCoordinatorImpl.close(
*TransactionCoordinatorImpl.java:283*)

at org.hibernate.internal.SessionImpl.close(*SessionImpl.java:365*)

at
org.apache.tapestry5.internal.hibernate.HibernateSessionManagerImpl.threadDidCleanup(
*HibernateSessionManagerImpl.java:67*)

at
org.apache.tapestry5.ioc.internal.services.PerthreadManagerImpl$2.run(
*PerthreadManagerImpl.java:117*)

at
org.apache.tapestry5.ioc.internal.services.PerthreadManagerImpl.cleanup(
*PerthreadManagerImpl.java:143*)

at org.apache.tapestry5.ioc.internal.RegistryImpl.cleanupThread(
*RegistryImpl.java:466*)

at org.apache.tapestry5.ioc.internal.RegistryWrapper.cleanupThread(
*RegistryWrapper.java:38*)

at org.apache.tapestry5.TapestryFilter.doFilter(
*TapestryFilter.java:175*)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
*ServletHandler.java:1331*)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(
*ServletHandler.java:477*)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(
*ScopedHandler.java:119*)

at org.eclipse.jetty.security.SecurityHandler.handle(
*SecurityHandler.java:524*)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(
*SessionHandler.java:227*)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(
*ContextHandler.java:1031*)

at org.eclipse.jetty.servlet.ServletHandler.doScope(
*ServletHandler.java:406*)

at org.eclipse.jetty.server.session.SessionHandler.doScope(
*SessionHandler.java:186*)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(
*ContextHandler.java:965*)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(
*ScopedHandler.java:117*)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
*HandlerWrapper.java:111*)

at org.eclipse.jetty.server.Server.handle(*Server.java:349*)

at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(
*AbstractHttpConnection.java:452*)

at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(
*AbstractHttpConnection.java:884*)

at
org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(
*AbstractHttpConnection.java:938*)

at org.eclipse.jetty.http.HttpParser.parseNext(*HttpParser.java:634*)

at org.eclipse.jetty.http.HttpParser.parseAvailable(
*HttpParser.java:230*)

at org.eclipse.jetty.server.AsyncHttpConnection.handle(
*AsyncHttpConnection.java:77*)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(
*SelectChannelEndPoint.java:609*)

at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(
*SelectChannelEndPoint.java:45*)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
*QueuedThreadPool.java:599*)

at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(
*QueuedThreadPool.java:534*)

at java.lang.Thread.run(Unknown Source)

Caused by: *java.sql.SQLException*: Statement closed.

at
org.apache.tomcat.jdbc.pool.interceptor.AbstractQueryReport$StatementProxy.invoke(
*AbstractQueryReport.java:226*)

... 39 more





Re: [T5.4] Bootstrap and jQuery related JS libraries

2014-05-27 Thread Basile Chandesris

Since 5.4-alpha-15 , tapestry use Bootstrap 3.x.

https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=tree;h=f43e87abf9b77f08b99e90aa22b6d54f20ce7bd1;hb=bb23cdc21f68a655f8f2c24bb8c2c2ce5369ca12

http://getbootstrap.com/
http://getbootstrap.com/2.3.2/

5.4-beta-6:
  Bootstrap 3.0.3
https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=234ec514afc376252c5c526e4b2bd3cab6c83a5e
  jQuery 1.11.1 / 1.9.1
  RequireJS 2.1.11
https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=5b12cea9f97e12b1433cf960b83e7bcc45bee63d
 Moment.js 2.6.0
https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=36375f07cb45f6da87434f4c2ba2b010397d0e05
 Underscore 1.5.2
https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=d27925498a3589c8d53fb25b0cdf79e43482f2b0
Typeahead 0.9.3
CoffeeScript 1.7.1
https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=commit;h=218d4c722f15e0f142fa5c05e59b766cad714d0d

https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=blob;f=tapestry-core/src/main/java/org/apache/tapestry5/modules/JavaScriptModule.java;h=5bf078217acb821cb8628d34bc59cd5c4acd6e23;hb=5bf078217acb821cb8628d34bc59cd5c4acd6e23

Le 26/05/14 18:59, Ilya Obshadko a écrit :

Turns out I've got Uncaught TypeError: undefined is not a function in
dom.js, line 134. Don't have any idea where it might come from.


On Mon, May 26, 2014 at 8:26 PM, Ilya Obshadko ilya.obsha...@gmail.comwrote:


I've just started migrating from 5.3 to 5.4-beta3. My application already
heavily relies on Bootstrap and jQuery. Previously I was using Bootstrap
version 2.3.2, so that's a good time to upgrade Bootstrap as well.

Could someone clarify this for me: Tapestry 5.4 distribution already
contains everything needed to work out of the box? Or do I have to import
Bootstrap libraries manually? Because all Bootstrap controls just stopped
working, there are no event handlers installed and it seems to me that
bootstrap.js file bundled with Tapestry is very minimal one.


--
Ilya Obshadko








Re: Multi Select

2014-05-22 Thread Basile Chandesris

http://dmitrygusev.blogspot.fr/2013/04/render-tapestry5-block-to-string-from.html
http://wiki.apache.org/tapestry/Tapestry5MultipleSelectOnObjects
https://github.com/argoyle/tapestry-tagselect/wiki/Multi-select-string-tag-example

https://github.com/got5/tapestry5-jquery/issues/107

https://github.com/alxlit/bootstrap-chosen


Le 22/05/14 23:22, Balázs Palcsó a écrit :

Hi,

I can recommend http://ivaynberg.github.io/select2/
It is not an out of box tapestry component, but can be integrated easily.




On 22 May 2014 22:10, Lance Java lance.j...@googlemail.com wrote:


Select doesn't support multiple options. There is checklist and pallette
which do the same job  admittedly they look different.

There's nothing stopping you from creating a multiselect component by
extending AbstractField.
  On 22 May 2014 21:42, Sanket Sharma sanketsha...@gmail.com wrote:


Hi,

I was wondering if there is a multi select component available in

tapestry?

I looked at the palette component and a similar component in chenille

kit,

but the demo page isn't available anymore.

Reading through the email archives and some old links, it seems like

there

is a way to achieve it using custom encoders etc. - not sure if it is

still

applicable and valid?

Thank you for your assistance.


Sanket




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org