Re: Loading templates at run-time in Tapestry 5.4

2016-02-29 Thread Andreas Fink
Hi David.

If you like the style of templating Tapestry offers i can only recommend using 
the Thymeleaf template engine over Freemarker.
http://www.thymeleaf.org/

>> early 80ies jsp tag libs

Haha, not bad :-)

Cheers,
Andi.


On 01 Mar 2016, at 2:25 , David Diaz  wrote:

> Hi Jens,
> 
> Yes, not all users will have software development backgrounds (of course).
> However, our users will not be the ones developing these renderer
> classes/templates, and thus it's fine if doing this requires some SDLC and
> Tapestry knowledge. I know it sounds a bit outlandish, but requirements are
> requirements.
> 
> It would be nice we could get our users to give us standardized data sets
> that matched the same data each time, but it's just not realistic in this
> case.
> 
> Thiago's suggestion of Freemarker seems like it can do the job for me just
> fine, and although having two templating systems isn't ideal, it's a lot
> better than the current system that is in place.
> 
> Thanks,
> David.
> 
> On Tue, Mar 1, 2016 at 12:05 PM, mailingl...@j-b-s.de 
> wrote:
> 
>> Hi David!
>> 
>> Thanks for the explanation. Unfortunately I doubt your approach is the way
>> to go. You are forcing all your users to get familiar with Tapestry, so
>> they are all really aware of software development, java, Testing, the dev
>> pipeline and everything? Who makes sure the tml and fictious jave class
>> works smoothly together?
>> 
>> I believe either they have to provide valid static html (no dynamic part,
>> but renderable by tapestry via outputraw). Or you provide base classes and
>> tmls and they send back derived version (tml / java inheritance, see T5
>> website), but again there must be some awareness for software dev and the
>> toolchain, which is not worth the effort as you still need to know all
>> dynamic parts in advance.
>> 
>> What about accepting e.g  xml / json and render the data in a generic way
>> on your side? Based an certain elements or attributes you should be able
>> even to render complex layouts and your users only need to know which
>> elements/attributes you support? Yes I know this sounds like the early
>> 80ies jsp tag libs or good old xml-dynamic-swing-ui systems-frameworks.
>> 
>> Jens
>> 
>> Von meinem iPhone gesendet
>> 
>>> Am 01.03.2016 um 00:03 schrieb David Diaz :
>>> 
>>> Hi all,
>>> 
>>> Thanks for the replies! I checked out your link Barry - it doesn't seem
>> to
>>> be exactly what I want. (I'll explain later in the reply... I'm still new
>>> to mailing lists).
>>> 
>>> Thiago & Jens:
>>> How I'm doing fetching-code-outside is someone writes a .java file that
>>> implements an interface. Say it has function a, b and c they have to
>>> implement. They then compile this into a class, put it into a program and
>>> link it to the set of data they want to render. Then, when using the web
>>> interface the application will detect when its loading the set of data
>> and
>>> load it into its own class (not overwriting), create a new instance and
>>> then use functions a, b and c to render the data into the webpage. This
>> is
>>> already working - but currently how it is done is that the user has to
>>> hardcode their HTML into the .class file and do things like \"" +
>>> escapeHTML(data) + "";\ instead of it having a template system
>> where
>>> they could go ${data} and then the application would use the
>>> tapestry template/component system.
>>> 
>>> An example usage for this would be, for example, a library that wants to
>>> digitize its pages and then have it available online to be viewed through
>>> the application. The library could store the files in an XML format like
>>> so: http://da.viddiaz.com/example.xml and then use the following
>>> hypothetical code and .tml to render it: http://da.viddiaz.com/code.txt
>>> http://da.viddiaz.com/code.tml
>>> 
>>> Then this library could have different sets of data that wouldn't match
>>> this exact set of data - it might have sets of emails (so then you could
>>> write an email renderer), MARC data and so on. These examples are basic -
>>> in the real world the data is a lot more complex! I hope this makes a bit
>>> more sense why I would need to take this approach.
>>> 
>>> In regards to the Dynamic component, I must have messed up using it.
>> Still
>>> though, the problem would be getting it linked up to the .class file that
>>> is loaded so that the user could then use tapestry in there (otherwise
>> the
>>> ComponentResources would be the .tml file that loaded it, not the
>>> dynamically loaded one).
>>> 
>>> The stack trace I was getting is here, although I don't think it's really
>>> useful: http://da.viddiaz.com/stacktrace.txt
>>> 
>>> Thanks,
>>> David.
>>> 
>>> On Tue, Mar 1, 2016 at 9:09 AM, mailingl...@j-b-s.de <
>> mailingl...@j-b-s.de>
>>> wrote:
>>> 
 I see. So a tapestry TML without a JAVA class is not considerably
>> dynamic
 as it has no business logic at all. Either your 3rd party delivers
 TML+CLASS (only components from my 

Re: Tapestry is a sinking Ship

2016-02-13 Thread Andreas Fink
I would rephrase it to: Everybody should be allowed to raise his voice but let 
me choose if i want to listen...
There are filter rules for 'He-Who-Must-Not-Be-Named in my mail client ;-)

Cheers,
Andi.

On 13 Feb 2016, at 13:17 , JT  wrote:

> Shitty idea. All voice should be heard. Not just the one you like to hear.
> On Feb 13, 2016 3:19 AM, "Ilya Obshadko"  wrote:
> 
>> Thiago, I have an idea.
>> 
>> Why don't we ban this poor excuse of an idiot from a mailing list and
>> address real problems latest release has?
>> 
>> On Fri, Feb 12, 2016 at 10:53 PM, Thiago H de Paula Figueiredo <
>> thiag...@gmail.com> wrote:


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



Re: T5.3.8 ClassNotFound error ONLY when running on a virtualized server?!

2016-01-18 Thread Andreas Fink
Hi George.

Are you sure the specific directory and its content is readable by Tomcat?
Maybe some File-specific exceptions get silently catched on the way and 
substituted with 'null' instead of empty array.

Just my 2c.

Cheers,
Andi.

On 18 Jan 2016, at 2:06 , George Ludwig  wrote:

> At that
> time it's trying to convert a Set of files to a List of files, and I can
> see that the directory that is being listed clearly has files, so the NPE
> should never have been thrown.


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



Re: Using Codes in Message Catalog

2015-09-11 Thread Andreas Fink
Tapestry handles properties files as UTF-8 ( 
https://tapestry.apache.org/localization.html ).
As long as you make sure that your ide saves those properties files as UTF-8 
instead of ISO 8859-1 which the Java API dictates you can just use the plain 
copyright glyph.

Cheers,
Andi.

On 11 Sep 2015, at 10:34 , Poggenpohl, Daniel 
 wrote:

> Hello,
> 
> we're trying to put a copyright sign into a message. I've tried the HTML code 
> for the sign and the UTF-8 code. Both are interpreted literally. What do I 
> have to do to print the sign?
> 
> Regards,
> Daniel P.


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



Re: Tapestry + Wro4j

2014-09-30 Thread Andreas Fink
Hi John

On 29 Sep 2014, at 9:52 , John  wrote:
> 
> Is there any documentation+examples for using Wro4j or other web resource 
> compiler technologies with Tapestry please?


That project here should give you some pointers on how to integrate these 
technologies: https://github.com/lltyk/tapestry-wro4j

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



Re: tapestry-offline maven problem

2014-08-15 Thread Andreas Fink
Thanks Lance!

On 15 Aug 2014, at 15:35 , Lance Java  wrote:

> I figured out a workaround for the moment, the functionality seems to have
> been altered on github but luckily a third party has a usable service.
> 
> Try:
> 
>
>  lazan-releases
>  https://raw.github.com/uklance/releases/master
>
> 


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



Re: tapestry-offline maven problem

2014-08-13 Thread Andreas Fink
Hi Nathan.

I had the same problem, recently.
In contrast to the provided README, there does not seem to exist a repo (poke 
@Lance).
I had to build the jar myself (0.0.2-SNAPSHOT).

Cheers,
Andi.

On 13 Aug 2014, at 11:48 , Nathan Quirynen  wrote:

> Hi,
> 
> I was searching for a solution to create templates for mailing. Then I
> found tapestry-offline which could be used for this. But when I add it
> to my project like following it doesn't find it:
> 
> 1) dependency:
> 
> 
>
>org.lazan
>tapestry-offline
>0.0.1
>
> 
> 
> 2) repository:
> 
> 
>
>lazan-releases
>https://github.com/uklance/releases/raw/master
>
> 
> 
> 
> It just keeps saying: Missing artifact org.lazan:tapestry-offline:jar:0.0.1
> Is there something wrong with the repository, or am I missing something
> here?
> 
> -
> 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: QName::=(NCName':')?NCName error when tml is parsed

2014-05-16 Thread Andreas Fink
Can you post DataManaging.tml

> Caused by: org.xml.sax.SAXParseException: Element or attribute do not match 
> QName production: QName::=(NCName':')?NCName.

The 'production' part seems odd.

Cheers,
Andi.


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



Re: tapestry-wro4j errors

2014-03-28 Thread Andreas Fink
Hi.

This is probably just a missing dependency to commons-io 
http://search.maven.org/#artifactdetails|org.apache.commons|commons-io|1.3.2|jar

I used tapestry-wro4j before, just for combining and minifying, without issues.

Cheers,
Andi.

On 28 Mar 2014, at 15:59 , Nathan Quirynen  wrote:

> Hi,
> 
> Is someone using tapestry-wro4j (0.9.8) with Tapestry 5.3.7 ?
> 
> I just wanted to use it for Less transformer.
> 
> I added the dependency in pom.xml:
> 
> 
>   com.github.lltyk
>   tapestry-wro4j
>   0.9.8
> 
> 
> Then I added a file named "main.less" at location src/main/webapp/css/
> 
> and added following to my page class:
> 
> @Import(stylesheet = { "context:css/main.less" })
> 
> But get the following error:
> 
> 
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.io.input.BOMInputStream
>at
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
>at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
>at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
>at
> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:401)
>at
> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363)
>... 110 more
> 
> Someone who's using this library sucessfully and sees what I am doing
> wrong here?
> 
> -
> 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: IndieGogo campaign: a month of Apache Tapestry 5

2013-11-25 Thread Andreas Fink
Hi Thiago.
What an interesting idea about filling "the gap".
I hope you can raise enough and that you get a gig in exactly 6 weeks :-)

Thanks for the relentless battle against/with the ML!

On Nov 25, 2013, at 22:08 , Thiago H de Paula Figueiredo wrote:

> Hi!
> 
> I've just went live with an IndieGogo campaign so I can work a whole month in 
> Tapestry itself and nothing else fixing bugs, implementing new stuff and 
> working on the documentation.
> 
> Here's the link: 
> http://www.indiegogo.com/projects/a-month-of-apache-tapestry-5.
> 
> Any questions, just ask. :) But I'll answer another one right now: regardless 
> of the campaign succeeding or not, I'll continue posting stuff in the mailing 
> list and doing my occasional code contributions the same way and I've been 
> doing until now. In other words, nothing changes.
> 
> Here's the campaign text, just in case, with all the details:
> 
> Introduction
> 
> Disclaimers: This campaign is done by me, Thiago, as an independent 
> individual, not by the Apache Software Foundation or the Apache Tapestry 
> project. I'm not representing the Foundation in any way in this campaign nor 
> Apache endorses it. The Foundation has a policy of not paying for development 
> work. All its members are voluntary, me included. Any code I'll write or 
> change will pass the usual Tapestry team approval process. If this campaign 
> isn't funded, I'll continue participating in the Tapestry project in the same 
> way as always.
> 
> I'm Thiago H. de Paula Figueiredo, an Apache Tapestry 5 committer and PMC 
> (Project Management Committee) member. I've posted more than 5700 times in 
> the user mailing lists. Apache Tapestry is an open-source, Java Web framework 
> built and supported by a team of voluntary members who work on it for free 
> and by love.
> 
> I dream about the idea of being able to work on Apache Tapestry itself, on 
> its codebase and documentation, not just in my free time. I'm very passionate 
> about this framework. I envy the people who are paid to work on open source 
> projects, so they can spend lots of time in the projects they love. I wish I 
> could do the same, even if it was for a short period of time. I love open 
> source, I love Apache Tapestry, I love to help people to solve their 
> problems, know the framework better and code happier. That's what this 
> campaign is about.
> 
> Right now, I'm in a period between gigs, so I have a free schedule to work on 
> it, and then I have an opportunity. But this free time cannot be free, 
> because I, as you and everyone else, have bills to pay. So I thought it would 
> be a perfect time to run a fixed-funding IndieGogo campaign to have me 
> working exclusively on the Apache Tapestry codebase for a whole month, 160 
> hours on the clock, fixing some stuff, build other stuff and hopefully 
> speeding up the 5.4 release. I'd work on the documentation too.
> 
> Notice that, in terms of dollar per worked hour, it is signicantly lower than 
> at my last gig. This campaign isn't about money, is about being able to work 
> in what I love.
> What will be done?
> 
> The actual issues to be worked will be discussed among the backers, but I've 
> took a long look at the Apache Tapestry issue tracker (JIRA), starting for 
> the most voted issues, checked which ones I could successfully fix or 
> implement, then I came up with the following initial (not final) list. The 
> order in which the issues will be tackled will also be discussed among the 
> backers.
> 
> Issue 
> Description
> 
> TAP5-2029 
> Copy annotations from service implementation to proxy
> 
> TAP5-2235 
> Implement JCache (JSR 107) support in Tapestry-IoC
> 
> TAP5-938  
> Expose ability to render a portion of a page (a Block, Component, etc.) 
> without using internal services
> 
> TAP5-244  
> Let Grid show column headings when no data
> 
> TAP5-1515 
> Support for external assets
> 
> TAP5-1470 
> Group CSS together to avoid IE's restriction of 31 external css files
> 
> TAP5-245  
> Better documentation on development environment.
> 
> TAP5-627  
> Allow injection of named spring beans
> 
> TAP5-1403 
> Add support for Arrays in request parameters
> 
> TAP5-1863 
> Rendering components in Alerts
> 
> TAP5-1659 
> PageLink: page parameter should accept page-classes and page-instances
> 
> TAP5-1941 
> Alerts component should check for XHR request in "dismiss" event handler
> 
> TAP5-1718 
> Tapestry-beanvalidator isn't validating nested DTO objects / Doesn't mark the 
> invalid fields in the UI
> 
> TAP5-2130 
> Services interfaces that inherit from "Runnable" cause @Startup methods being 
> called twice
> 
> TAP5-2192 
> Add support for distributed documentation
> 
> TAP5-2187 
> CSS relative URL rewriting isn't lenient enough
> 
> TAP5-2185 
> Problem with the asset checksums and relative paths based on them
> 
> TAP5-1998 
> DateField does not validate dates properly

Re: onActivate not called / Ajax / Shiro

2013-10-30 Thread Andreas Fink
Hi Jens

On Oct 28, 2013, at 19:44 , Lenny Primak wrote:

...

>> The statement above would make me think that Tapestry-Security does work for 
>> AJAX requests too, as onActivate() is invoked for every request for the 
>> page, render or action.
> 
> The way Tapestry-Securitiy filter is set up is that it prevents any page 
> calls if it's not authorized, Ajax or not.
> This is the correct behavior.

In cases like this an "AJAX ping" can help you keep the session alive.
Something along the lines of this: http://stackoverflow.com/a/12597339


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



Re: Configuring Tapestry to use TestNG, Selenium, and Cucumber Step Definitions.

2013-08-04 Thread Andreas Fink
Testify ( http://tapestrytestify.sourceforge.net/ ) has support for TestNG and 
i have used it successfully in the past.
As for the cucumber part i cannot help you but if you look on stackoverflow or 
github for Cucumber-TestNG integration you will find some integration projects 
like this one: https://github.com/lionhearth/cucumber-testng

Cheers,
Andi.

On Aug 2, 2013, at 21:22 , George Christman wrote:

> Hello, I've recently been asked to integrate Cucumber step defs in to my
> application which currently uses TestNG and Selenium. I've been looking
> around on the web for some documentation on how to do it, but have come up
> blank. Is there anybody using this test configuration and if so do you
> happen to know where I could go to find some documentation? Thanks in
> advance.


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



Re: Tapestry template encoding and GAE

2013-05-23 Thread Andreas Fink
wow, i didn't know that!
i had problems with encoding of properties in recent t5 projects but maybe 
maven got in the way or this service did not get used.

cheers,
andi.

On May 23, 2013, at 10:26 , Lance Java wrote:

> You underestimate tapestry :)
> 
> Tapestry's PropertiesFileParserImpl assumes UTF-8 properties files and
> performs a native2ascii transformation on the fly
> 
> http://tapestry.apache.org/current/apidocs/src-html/org/apache/tapestry5/internal/services/messages/PropertiesFileParserImpl.html#line.79


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



Re: Tapestry template encoding and GAE

2013-05-23 Thread Andreas Fink
Hi Lance.

Unfortunately this is not the case. Property files are treated ISO 8859-1 while 
reading/writing.
If you want to have special chars, you have to run the file through 
native2ascii first.

http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html

On May 22, 2013, at 9:49 , Lance Java wrote:

> I think you've hit the nail on the head and that this relates to TAP5-1778.
> 
> As a work around, can you put your special chars in a language specific
> properties file? By default, prop files are treated as UTF-8. You can also
> override the PropertiesFileParser if you need.
> 
> Another option is to override the TemplateParser service to use UTF-8. See
> the patch attached to the issue.


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



Re: onActivate UnknownValueException

2013-05-06 Thread Andreas Fink
Hi Jens.

I think it depends on what you want to do after finding out that you cannot 
coerce the parameter.
If you want to redirect to another page the logic should still be in the page 
class or maybe a T5-RequestFilter where you can move that logic/redirection 
code to.

If you want to "rewrite" to a default value, i would rather go for a custom 
type coercer like below.
Such a service could also do lookups in a persistence layer and provide 
meaningful defaults or notifications

public static void bind(final ServiceBinder binder)
{
binder.bind(MyEnumTypeCoercerInterface.class, 
MyEnumTypeCoercerImpl.class);
}

public void contributeTypeCoercer(
final Configuration> conf,
final @Local MyEnumTypeCoercerInterface tc)
{
conf.add(new CoercionTuple(String.class, MyEnum.class, 
tc.newString2MyEnum()));
conf.add(new CoercionTuple(MyEnum.class, String.class, 
tc.newMyEnum2String()));
}

public class MyEnumTypeCoercerImpl implements MyEnumTypeCoercerInterface
{

public Coercion newString2MyEnum()
{
return new Coercion()
{
@Override public MyEnum coerce(final String someString)
{
// logic be here

return someEnum;
}
};
}

public Coercion newMyEnum2String()
{
return new Coercion()
{
@Override public String coerce(final MyEnum someEnum)
{
// logic be here

return someString;
}
};
}

}


On May 4, 2013, at 16:41 , Jens Breitenstein wrote:

> Hi All!
> 
> I use an enum as activation context parameter. Unfortunately in case the enum 
> changes or more likely the user has a typo in the url Tapestry is unable to 
> coerce the url param to enum and fails by throwing an exception (fair 
> enough). Instead of using onActivate parameters I switched to EventContext to 
> get fine grained control here by simply catching the exception when coercing 
> the enum from a given event context value. I wonder if there es a more 
> elegant solution currently build in? If not what do you think about:
> 
> a) can't we create a new Tapestry annotation like 
> "CoerceExceptionDefaultsToNull" or something similar to allow this annotation 
> for parameters in onActivate (I know we can not limit it to onActivate, 
> but...) and supress the original exception (maybe not that developer 
> friendly). This introduces "if (null == xyz)" cascades but at least we won't 
> see an exception at the client side.
> 
> or
> 
> b) a callback like "Object onActivationCoercionError(final Object value, 
> final Class destinationClass, final Exception e)"  to make the developer 
> aware of problems, allow providing a default value and Tapestry continues 
> normally by calling the best fitting onActivate method afterwards?
> 
> Maybe EventContext is the route to go for proper error handling, but my gut 
> feeling is we are loosing much of Tapestry's onActivation magic.
> Any thoughts?
> 
> Jens
> 
> 
> -
> 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: non blocking code in T5?

2012-06-13 Thread Andreas Fink
If you do not want to go down the JEE route, try Hazelcast. I have had good 
experiences with it in the past.
Apart from shared maps, it also provides topics and queues like JMS.

The most basic setup can look like this:

public HazelcastInstance buildHazelcastInstance() {
final Config cfg = new InMemoryXmlConfig("");
cfg.setProperty("hazelcast.logging.type", "slf4j");
cfg.setProperty("hazelcast.rest.enabled", "false");

return Hazelcast.init(cfg);
}

If clustering is not needed or you think this dependency is way too huge, try 
building something on top of google-guava's event bus: 
http://docs.guava-libraries.googlecode.com/git-history/v12.0/javadoc/com/google/common/eventbus/package-summary.html

cheers,
andi.

On Jun 13, 2012, at 16:37 , Dmitry Gusev wrote:

> You need Java EE if you want to use Java Message Service, or you can use
> Apache TomEE which implements JMS (http://tomee.apache.org/tomcat-jms.html)
> -- I haven't used TomEE though.
> 
> Or you can implement your own queue (based on ArrayBlockingQueue, for
> instance) with consumer thread(s) which you should start manually.
> 
> Both approaches have their pros and cons, though.
> 
> On Wed, Jun 13, 2012 at 6:04 PM, Angelo C.  wrote:
> 
>> no, i don't need the response from the method, MS/JMS is new to me, can it
>> be
>> used even I 'm not using Java EE?
>> 
>> 
>> Dmitry Gusev wrote
>>> 
>>> Do you plan to consume method's response in the same request?
>>> 
>>> If not, some sort of MQ/JMS may be an option--just put your message there
>>> and return.
>>> The message itself will be processed in separate thread with MQ handler
>>> (Message-Driven Bean in case of Java EE).
>>> 
>>> Dmitry Gusev
>>> 
>>> AnjLab Team
>>> http://anjlab.com
>>> 
>> 
>> 
>> --
>> View this message in context:
>> http://tapestry.1045711.n5.nabble.com/non-blocking-code-in-T5-tp5713836p5713841.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> 
> -- 
> Dmitry Gusev
> 
> AnjLab Team
> http://anjlab.com


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



Re: Tapestry and JPA

2012-03-01 Thread Andreas Fink
Yes. I am using jetty (7) in development and production. It works perfectly 
fine.
I am following, pretty much directly, the setup here: 
http://open.bekk.no/embedded-jetty-7-webapp-executable-with-maven/
During development i start it from a main method / tools menu (eclipse), in 
production with yajsw: http://yajsw.sourceforge.net/
I do not define JNDI with jetty and so simplejndi works without problems.

Cheers,
Andi.


On Mar 1, 2012, at 13:19 , heapifyman wrote:

> Hi Andreas,
> 
> thanks for the hint. Indeed I hadn't defined a DS. I tried your example now
> and it seems to be working, At least I don't get any exceptions during
> startup anymore.
> I had to tweak your code a little though:
> Context envC = ic.createSubcontext("java:comp/env");
> Context jdbcC = envC.createSubcontext("jdbc");
> jdbcC.bind("myDS", ds);
> 
> Otherwise, jdbc/myDS wouldn't be found during lookup.
> 
> BTW, I'm using Eclipse Jetty Server here. Are you using Jetty as well, by
> any chance? Any experience of using simple-jndi in Jetty? I know, Jetty can
> be configured to use its own JNDI stuff but the configuration seems to be
> quite complicated so I would go with simple-jndi as well if there are no
> major drawbacks.
> 
> Thanks again.
> 
> 
> 
> 2012/3/1 Andreas Fink 
> 
>> Hi.
>> 
>> Did you specify a jndi datasource? T5-jpa relies on it.
>> Because i do not enable jndi in my container, i do it directly in my
>> PersistenceModule with simplejndi like this:
>> 
>> public class PersistenceModule {
>> 
>>   /**
>>* Eeagerly loaded for {@link TapestryPersistenceUnitInfo} to find
>> the {@link DataSource} via JNDI.
>>* @param config
>>* @return
>>* @throws NamingException
>>*/
>>   @EagerLoad
>>   public DataSource buildDataSource(final Map config,
>>   @Symbol("db.jdbc.driver") final String jdbcDriver,
>>   @Symbol("db.jdbc.url") final String jdbcUrl,
>>   @Symbol("db.username") final String user,
>>   @Symbol("db.password") final String password,
>>   @Symbol("db.bonecp.logging") final boolean loggingEnabled
>>   ) throws NamingException {
>> 
>>   final BoneCPDataSource ds = new BoneCPDataSource();
>> 
>>   ds.setDriverClass(jdbcDriver);
>>   ds.setJdbcUrl(jdbcUrl);
>>   ds.setUsername(user);
>>   ds.setPassword(password);
>>   ds.setLogStatementsEnabled(loggingEnabled);
>> //  ds.setConnectionTestStatement("select count(*) from
>> product");
>> 
>>   final Context ic = new InitialContext();
>>   try {
>>   ic.createSubcontext("java:comp/env");
>>   ic.bind("jdbc/myDs", ds);
>>   } catch (final NamingException ne) {
>>   throw new RuntimeException(ne.getExplanation(), ne);
>>   }
>> 
>>   return ds;
>>   }
>> 
>>   @EagerLoad
>>   public InitialContext buildInitialContext() throws NamingException {
>>   System.setProperty(Context.INITIAL_CONTEXT_FACTORY,
>> "org.osjava.sj.memory.MemoryContextFactory");
>>   System.setProperty("org.osjava.sj.jndi.shared", "true");
>> 
>>   return new InitialContext();
>>   }
>> 
>>   ...
>> 
>> }
>> 
>> 
>> 
>> On Feb 27, 2012, at 14:08 , heapifyman wrote:
>> 
>>> Hello,
>>> 
>>> I have problems configuring JPA for Tapestry following the documentation
>>> here: http://tapestry.apache.org/integrating-with-jpa.html.
>>> Are there examples or tutorials I could take a look at?
>>> 
>>> My persistence.xml looks like this:
>>> 
>>> http://java.sun.com/xml/ns/persistence";
>>> version="2.0">
>>> 
>>> org.hibernate.ejb.HibernatePersistence
>>> 
>>> 
>>> 
>>> 
>>> > value="org.hibernate.dialect.H2Dialect"
>>> />
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> In my pom.xml I added (using hibernate as JPA implementation):
>>>   
>>> 
>>> org.apache.tapestry
>>> tapestry-jpa
>>> ${

Re: Tapestry and JPA

2012-02-29 Thread Andreas Fink
Hi.

Did you specify a jndi datasource? T5-jpa relies on it.
Because i do not enable jndi in my container, i do it directly in my 
PersistenceModule with simplejndi like this:

public class PersistenceModule {

/**
 * Eeagerly loaded for {@link TapestryPersistenceUnitInfo} to find the 
{@link DataSource} via JNDI.
 * @param config
 * @return
 * @throws NamingException
 */
@EagerLoad
public DataSource buildDataSource(final Map config,
@Symbol("db.jdbc.driver") final String jdbcDriver,
@Symbol("db.jdbc.url") final String jdbcUrl,
@Symbol("db.username") final String user,
@Symbol("db.password") final String password,
@Symbol("db.bonecp.logging") final boolean loggingEnabled
) throws NamingException {

final BoneCPDataSource ds = new BoneCPDataSource();

ds.setDriverClass(jdbcDriver);
ds.setJdbcUrl(jdbcUrl);
ds.setUsername(user);
ds.setPassword(password);
ds.setLogStatementsEnabled(loggingEnabled);
//  ds.setConnectionTestStatement("select count(*) from product");

final Context ic = new InitialContext();
try {
ic.createSubcontext("java:comp/env");
ic.bind("jdbc/myDs", ds);
} catch (final NamingException ne) {
throw new RuntimeException(ne.getExplanation(), ne);
}

return ds;
}

@EagerLoad
public InitialContext buildInitialContext() throws NamingException {
System.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.osjava.sj.memory.MemoryContextFactory");
System.setProperty("org.osjava.sj.jndi.shared", "true");

return new InitialContext();
}

...

}



On Feb 27, 2012, at 14:08 , heapifyman wrote:

> Hello,
> 
> I have problems configuring JPA for Tapestry following the documentation
> here: http://tapestry.apache.org/integrating-with-jpa.html.
> Are there examples or tutorials I could take a look at?
> 
> My persistence.xml looks like this:
> 
> http://java.sun.com/xml/ns/persistence";
> version="2.0">
> 
> org.hibernate.ejb.HibernatePersistence
> 
> 
> 
> 
>  />
> 
> 
> 
> 
> 
> 
> 
> 
> In my pom.xml I added (using hibernate as JPA implementation):
>
> 
> org.apache.tapestry
> tapestry-jpa
> ${tapestry-release-version}
> 
> 
> 
> org.apache.tapestry
> tapestry-beanvalidator
> ${tapestry-release-version}
> 
> 
> 
> org.hibernate
> hibernate-entitymanager
> 4.1.0.Final
> 
> 
> org.hibernate
> hibernate-validator
> 4.2.0.Final
> 
> 
> 
> 
> com.h2database
> h2
> 1.3.164
> 
> 
> If I start Jetty (using run-jetty-run in Eclipse) with above configuration
> I get the following exception:
> [ERROR] hbm2ddl.SchemaExport HHH000231: Schema export unsuccessful
> java.lang.UnsupportedOperationException: The application must supply JDBC
> connections
> at
> org.hibernate.service.jdbc.connections.internal.UserSuppliedConnectionProviderImpl.getConnection(UserSuppliedConnectionProviderImpl.java:62)
> at
> org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)
> at
> org.hibernate.tool.hbm2ddl.DatabaseExporter.(DatabaseExporter.java:52)
> at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:368)
> at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:305)
> at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:294)
> at
> org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:475)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1740)
> at
> org.hibernate.ejb.EntityManagerFactoryImpl.(EntityManagerFactoryImpl.java:88)
> at
> org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
> at
> org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
> at
> org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
> at
> org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.createEntityManagerFactory(EntityManagerSourceImpl.java:204)
> at
> org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.getEntityManagerFactory(EntityManagerSourceImpl.java:185)
> at
> org.apache.tapestry5.internal.jpa.EntityManagerSourceImpl.create(EntityManagerSourceImpl.java:229)
> at $EntityManagerSource_1e5c8909313b4.create(Unknown Source)
> at
> org.apache.tapestry5.internal.jpa.EntityManagerManagerImpl.getOrCreateEntityManager(EntityManagerManagerImpl.java:78)
> at
> org.apache.tapestry5.internal.jpa.EntityManagerManagerImpl.createAllEntityManagers(EntityManagerManagerImpl.java:68)
> a

Re: Using Tapestry-IoC libraries in non-Tapestry application

2012-01-31 Thread Andreas Fink
Hi Erik.

Be aware of the fact that many classes you will use through T5 will be 
rewritten.
So if your "wrapping" application needs to work on annotations, make sure those 
are on interfaces, not implementing classes.

Cheers,
Andi.

On Jan 30, 2012, at 16:56 , Erik Fäßler wrote:

> 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 framework defines components - annotators - which can 
> be put in line flexibly to create a variety of different pipeline 
> architectures, reusing the same components.
> 
> One of our components has grown quite big and I feel Tapestry's service and 
> IoC mechanisms would work just fine here. The UIMA framework, however, does 
> not use any external IoC container, AFAIK. Thus, my bigger components for 
> which I would like to use Tapestry IoC would do so silently.
> 
> But I should not use multiple registry objects if I'm correct. But I also 
> don't have a main application to hold the registry - this would be the UIMA 
> Framework itself which I'd rather not alter for this purpose. Is it perhaps 
> possible to create one central registry which can be used by all UIMA 
> components? I could use a static class with a static registry variable, for 
> example. By Tapestry's module-autoloading, all modules should be included in 
> this central registry. But I don't know if I don't just run straight into 
> bigger problems with that approach. So I'd like to ask for your advice.
> 
> Thanks and best regards,
> 
> Erik
> -
> 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: smarter css

2011-12-08 Thread Andreas Fink
Awesome. Thank you!!

On Dec 8, 2011, at 21:47 , Cezary Biernacki wrote:

> You can use both Less and CoffeeScript with Tapestry even today with
> my t5conduit
> <https://github.com/cezary-biernacki/t5conduit>library.
> 
> It works directly with Tapestry 5.3.0, and with help of
> t52transformers<https://github.com/cezary-biernacki/t52transformers>
> also
> with 5.2.6.
> 
> Best regards,
> Cezary
> 
> 
> On Thu, Dec 8, 2011 at 6:57 PM, Howard Lewis Ship  wrote:
> 
>> Most of the support needed for Less and CoffeeScript is already
>> present; the trick is finding a reliable Java-compatible library that
>> can execute the necessary code transformations (which are generally
>> written in Ruby or JavaScript).
>> 
>> http://code.google.com/p/wro4j/wiki/Features  looks promising, but is
>> geared more for build-time conversions, rather than runtime.  I just
>> haven't had spare cycles to spare on this.
>> 
>> 
>> On Thu, Dec 8, 2011 at 8:13 AM, Thiago H. de Paula Figueiredo
>>  wrote:
>>> On Thu, 08 Dec 2011 12:31:35 -0200, Andreas Fink <
>> fink.a...@googlemail.com>
>>> wrote:
>>> 
>>>> Sorry for my hasty and not well formulated rant.
>>>> 
>>>> I was just thinking about the announcment of the Rails-team to switch to
>>>> Coffeescript and what an impact that has on developers and existing
>> apps.
>>>> 
>>>> There is always that compromise between flexibility and high-level tools
>>>> but as the server side of Tapestry focusses so much on
>> flexibilty/modularity
>>>> i think it would make sense to follow that route also for the browser
>> side.
>>> 
>>> 
>>> In this case, it would be just an out-of-the-box support for a given
>> package
>>> that wouldn't prevent support for other similar packages. In addition,
>> it's
>>> quite probable that it would make it easier to add support for other
>> similar
>>> packages. ;)
>>> 
>>> 
>>> --
>>> Thiago H. de Paula Figueiredo
>>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
>> and
>>> instructor
>>> Owner, Ars Machina Tecnologia da Informação Ltda.
>>> http://www.arsmachina.com.br
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>> 
>> 
>> 
>> --
>> Howard M. Lewis Ship
>> 
>> Creator of Apache Tapestry
>> 
>> The source for Tapestry training, mentoring and support. Contact me to
>> learn how I can get you up and productive in Tapestry fast!
>> 
>> (971) 678-5210
>> http://howardlewisship.com
>> 
>> -
>> 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: smarter css

2011-12-08 Thread Andreas Fink
Sorry for my hasty and not well formulated rant.

I was just thinking about the announcment of the Rails-team to switch to 
Coffeescript and what an impact that has on developers and existing apps.

There is always that compromise between flexibility and high-level tools but as 
the server side of Tapestry focusses so much on flexibilty/modularity i think 
it would make sense to follow that route also for the browser side.

All this highly sofisticated tools (eg: sass, activerecord, hibernate, ...) 
cover maybe 90% of the use cases but become a major road block if they cannot 
easily be circumvented for the other 10%.

Cheers,
Andi.

On Dec 8, 2011, at 2:13 , Chris Collins wrote:

> Is prototype a good comparison here?  It seems that both the tools mentions 
> here somewhat become an extension to the template engine "server side" part 
> of the T5 equation.  
> 
> After quickly playing with Tapestry-jquery it wasn't a case of "getting rid 
> of" prototype, but adding safely jquery.  I certainly want to use javascript 
> libraries that use both prototype and jquery.  I can imagine that one day 
> there maybe extensions for tapestry that incorporate not only these competing 
> js libraries but potentially leverage competing css macro languages like less 
> and sass.  I guess I personally wouldn't care too much if it was one or the 
> other but it certainly would be nice if as a component of tapestry you could 
> perhaps have them as components that can co-exist in their own namespace.
> 
> 1 1/2 cents worth.
> 
> C
> On Dec 7, 2011, at 4:57 PM, Andreas Fink wrote:
> 
>> Please do not include this kind of technologies in the core.
>> It took us long enough to get rid of prototype.js.
>> Sure, it can be overridden but why not just offer it as part of an external 
>> CoolKidsJavascriptStack.
>> 
>> Just my 2c.
>> Andi.
>> 
>> On Dec 8, 2011, at 1:15 , Howard Lewis Ship wrote:
>> 
>>> Less or SCSS are both promising, but I'd love to see it integrated
>>> into tapestry-core so that it could be used for Tapestry's default
>>> stylesheet.
>>> 
>>> On Wed, Dec 7, 2011 at 3:32 PM, Greg Pagendam-Turner
>>>  wrote:
>>>> Hey Howard what about less?
>>>> 
>>>> 
>>>> On 08/12/11 04:49, Howard Lewis Ship wrote:
>>>>> 
>>>>> One thing we need to do is support SASS (http://sass-lang.com/) so
>>>>> that we can code concise&  configurable SASS stylesheets and let
>>>>> 
>>>>> Tapestry expand them into ugly, redundant CSS for the client web
>>>>> browser.
>>>>> 
>>>>> On Tue, Dec 6, 2011 at 6:59 PM, Chris Collins  wrote:
>>>>>> 
>>>>>> Makes sense.  Working in Java for too long has made me soft.  I need to
>>>>>> read some c code to repent for my sins ;-}
>>>>>> 
>>>>>> Thanks Bob.
>>>>>> 
>>>>>> C
>>>>>> On Dec 6, 2011, at 6:41 PM, Bob Harner wrote:
>>>>>> 
>>>>>>> Rather than having separate IE-only style sheets, a technique I prefer
>>>>>>> is to use IE conditional comments to add an additional div around the
>>>>>>> body in my layout.tml, like this:
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Once that's done, then it becomes trivially easy to add all sorts of
>>>>>>> IE-specific CSS rules in your app's main (or only) style sheet file:
>>>>>>> 
>>>>>>> DIV.menu {
>>>>>>>  /* CSS rules for most browsers go here */
>>>>>>> }
>>>>>>> DIV.ie-old DIV.menu {
>>>>>>>  /* some IE-specific rules go here */
>>>>>>> }
>>>>>>> 
>>>>>>> Hope this helps...
>>>>>>> 
>>>>>>> On Tue, Dec 6, 2011 at 12:10 PM, Chris Collins  wrote:
>>>>>>>> 
>>>>>>>> Thanks Peter, makes total sense.  I am so happy that css3 helped
>>>>>>>> standardize cross browser support :-}
>>>>>>>> 
>>>>>>>> So I probably would want to detect a non HTML5 browser such as earlier
>>>>>>>> IE's with something that would throw in to the css another technique 
>>>>>&g

Re: smarter css

2011-12-07 Thread Andreas Fink
Please do not include this kind of technologies in the core.
It took us long enough to get rid of prototype.js.
Sure, it can be overridden but why not just offer it as part of an external 
CoolKidsJavascriptStack.

Just my 2c.
Andi.

On Dec 8, 2011, at 1:15 , Howard Lewis Ship wrote:

> Less or SCSS are both promising, but I'd love to see it integrated
> into tapestry-core so that it could be used for Tapestry's default
> stylesheet.
> 
> On Wed, Dec 7, 2011 at 3:32 PM, Greg Pagendam-Turner
>  wrote:
>> Hey Howard what about less?
>> 
>> 
>> On 08/12/11 04:49, Howard Lewis Ship wrote:
>>> 
>>> One thing we need to do is support SASS (http://sass-lang.com/) so
>>> that we can code concise&  configurable SASS stylesheets and let
>>> 
>>> Tapestry expand them into ugly, redundant CSS for the client web
>>> browser.
>>> 
>>> On Tue, Dec 6, 2011 at 6:59 PM, Chris Collins  wrote:
 
 Makes sense.  Working in Java for too long has made me soft.  I need to
 read some c code to repent for my sins ;-}
 
 Thanks Bob.
 
 C
 On Dec 6, 2011, at 6:41 PM, Bob Harner wrote:
 
> Rather than having separate IE-only style sheets, a technique I prefer
> is to use IE conditional comments to add an additional div around the
> body in my layout.tml, like this:
> 
> 
> 
> 
> 
> 
> 
> Once that's done, then it becomes trivially easy to add all sorts of
> IE-specific CSS rules in your app's main (or only) style sheet file:
> 
> DIV.menu {
>/* CSS rules for most browsers go here */
> }
> DIV.ie-old DIV.menu {
>/* some IE-specific rules go here */
> }
> 
> Hope this helps...
> 
> On Tue, Dec 6, 2011 at 12:10 PM, Chris Collins  wrote:
>> 
>> Thanks Peter, makes total sense.  I am so happy that css3 helped
>> standardize cross browser support :-}
>> 
>> So I probably would want to detect a non HTML5 browser such as earlier
>> IE's with something that would throw in to the css another technique 
>> such as
>> using a gradient filled image file (in this example)?  I don't think I 
>> would
>> want to throw in the technique of last resort because in the gradient 
>> image
>> case it would compete with the html5 technique right? For the conditional
>> method there is a technique proposed in:
>> 
>> http://tapestry.apache.org/css.html
>> 
>> Of course I am actually not literally talking about gradient fills I am
>> talking about the general new vs old vs cross browser css challenge.
>> 
>> This client side commenting conditional logic seems to be only for IE.
>>  Would that be correct? I am guessing from a browser laggard perspective 
>> the
>> only older browsers people would care about would be IE in general?
>> 
>> Sorry for all the novice questions, by day I normally do non ui data
>> crunching like engineering :-}
>> 
>> Best
>> 
>> C
>> 
>> 
>> 
>> 
>> On Dec 5, 2011, at 11:23 PM, Peter Stavrinides wrote:
>> 
>>> Hi Chris,
>>> 
>>> 
 So when it comes to css3 is it really so ugly?
>>> 
>>> If you really want an answer to that, unfortunately yes... and no its
>>> not just gradients.
>>> 
>>> 
 So say I was trying to add browser specific css to my layout
 component what would people suggest as the best strategy?
>>> 
>>> Browser detection is pretty awful, as its a moving target and not
>>> perfectly accurate, but granted in some cases a necessary evil... avoid 
>>> it
>>> if you can. Its not uncommon to simply specify all the styles for the
>>> various browsers because those that are not understood will simply be
>>> ignored... be sure though that they are not understood or you might
>>> encounter a nasty surprise or two. In your example there should be no 
>>> need
>>> for detection.
>>> 
>>> 
>>> Cheers,
>>> Peter
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> - Original Message -
>>> 
>>> From: "Chris Collins"
>>> To: "Tapestry users"
>>> Sent: Tuesday, 6 December, 2011 7:48:57 AM
>>> Subject: smarter css
>>> 
>>> So when it comes to css3 is it really so ugly? Ok perhaps its just
>>> things like gradients:
>>> 
>>> 
>>> http://ie.microsoft.com/testdrive/graphics/cssgradientbackgroundmaker/default.html
>>> 
>>> So in the microsoft example above for getting a gradient background
>>> you have to use different css properties per browser. So say I was 
>>> trying to
>>> add browser specific css to my layout component what would people 
>>> suggest as
>>> the best strategy?
>>> 
>>> Random thoughts:
>>> 
>>> - You can't tml-ify css, if you could then you could condition parts
>>> of it by browser right?
>>> - Would you create a 

Re: Who can recommend a hosting plan with jdk1.6, resin, dedicated IP addy, 6 domains, web admin interface & shell access?

2011-09-28 Thread Andreas Fink
Hi Jon.

If it really has to be resin, i would as the directly ask the caucho folks. 
They are quite a friendly bunch.

Cheers,
Andi.

On Sep 28, 2011, at 21:12 , Jon Williams wrote:

> Hi y'all,
> 
> Who can recommend a hosting plan with jdk1.6, resin, dedicated IP addy, 6
> domains, web admin interface & shell access that isn't in India or Tibuktoo?
> OFF TOPIC I KNOW.
> I trust you guys/gals.
> Opinions?


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



Re: Error in T5.3 & openJDK = java.lang.reflect.GenericSignatureFormatError

2011-09-27 Thread Andreas Fink
On Sep 27, 2011, at 17:12 , Ernesto Arroyo wrote:

> in fact we should use sun jdk, not openjdk,

why do you think so? now that openjdk is the standard on linux and soon on 
osx...
btw., if i remember correctly it was this issue: 
https://issues.apache.org/jira/browse/TAP5-1554

cheers,
andi.


> but we will find some time to test this and let you know the results
> 
> Ernesto Arroyo
> 
> ... enviado desde mi iPad
> 
> El 26/09/2011, a las 22:07, Howard Lewis Ship  escribió:
> 
>> That's a pretty old alpha version; I'd use "5.3-beta-10" which is
>> latest-and-greatest.
>> 
>> On Mon, Sep 26, 2011 at 12:57 PM, Ernesto Arroyo  wrote:
>>> we use 5.3.0 in the pom.xml for all tapestry artifacts
>>> 
>>> --
>>> View this message in context: 
>>> http://tapestry.1045711.n5.nabble.com/Error-in-T5-3-openJDK-java-lang-reflect-GenericSignatureFormatError-tp4829879p4842699.html
>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>>> 
>> 
>> 
>> 
>> -- 
>> Howard M. Lewis Ship
>> 
>> Creator of Apache Tapestry
>> 
>> The source for Tapestry training, mentoring and support. Contact me to
>> learn how I can get you up and productive in Tapestry fast!
>> 
>> (971) 678-5210
>> http://howardlewisship.com
>> 
>> -
>> 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
> 


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



Re: generating secure files

2011-08-29 Thread Andreas Fink
In eclipse i have to refresh very often. External git/subversion actions, 
generating eclipse stuff from maven... This is just how it works.
If this really annoys you, netbeans might be a better choice. It refreshes 
automatically but in return artifacs are not indexed so well.

Cheers,
Andi.

On Aug 29, 2011, at 5:36 PM, daoudja wrote:

> thank you so much but does anyone have an idea about the eclipse problem?
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/generating-secure-files-tp4746478p4746553.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> -
> 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: Upgrading from old Tomcat and Tapestry versions

2011-08-23 Thread Andreas Fink
Hi Chris.
The current Versions (5.x) of Tapestry has only concepts in common with 3.x.
If your machine is beefy enugh i would recommend running the existing app in a 
32bit VM.

Just my 2 cents.

Cheers,
Andi.

The 

On Aug 23, 2011, at 4:59 PM, Parker, Chris@CDCR wrote:

> Greetings all:
> 
> I recently started to manage an application written by someone long gone, 
> after the application had sat unattended and unmanaged for ages.  The 
> application is currently running on Java 4, Tomcat 5.0, and uses Tapestry 
> 3.0.1, running on 32bit Windows 2000 server.  We'd like to upgrade the whole 
> system to 64bit Windows 2008 - and doing so requires all new services since 
> the current versions of Java and Tomcat do not support 64 bits.
> 
> After a bit of thrashing with the various configuration files and deprecated 
> methods, I've mostly gotten Tomcat 7 to where it will start, with the 
> exception of the Tapestry entry in web.xml .  web.xml has a stanza that looks 
> like this:
> 
>  
>
> http://jakarta.apache.org/tapestry/tld/tapestry_1_0.tld
>/WEB-INF/lib/tapestry-3.0.1.jar
>  
> 
> Tomcat starts up without complaint without that stanza (but of course the 
> application doesn't work), or it complains that "taglib definition not 
> consistent with specification version" with that stanza in.  No doubt the TLD 
> inside the jar file does not meet with the new J2EE server specification.
> 
> 
> 
> I have never used or even touched Tapestry, although I'm otherwise 
> comfortable in Java.
> 
> I'm concerned about upgrading to the latest tapestry version.  Since this 
> application was written by someone else, I don't know if I know enough about 
> it to test all corners of the app to make sure his code is compatible with an 
> upgraded jar.  Said another way, I don't yet know the business process well 
> enough to hit every corner of the application.
> 
> Will the new version be backwards compatible with the code?  Alternatively, 
> would it be reasonable to open the 3.0.1 jar file and modify the TLD?  And if 
> that's possible, what should the new specification look like?  I especially 
> don't know what the URL for the specification should be.
> 
> Bottom line - what is my most reasonable course forward?  
> 
> --
>  Chris Parker
> 
> 
> -
> 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