Problem upgrading to 5.3-rc-3

2011-11-02 Thread tmarx78
Hello everyone!

I have tried to migrate my project to 5.3-rc-3:



java.lang.RuntimeException: Exception loading module(s) from manifest 
jar:file:/var/webapps/test/webapps/ROOT/WEB-INF/lib/tapestry-hibernate-core-5.3-rc-3.jar!/META-INF/MANIFEST.MF:
Failure loading Tapestry IoC module class 
org.apache.tapestry5.hibernate.HibernateCoreModule: Error invoking service 
binder method
org.apache.tapestry5.hibernate.HibernateCoreModule.bind(ServiceBinder) (at 
HibernateCoreModule.java:45): 
org.apache.tapestry5.ioc.ServiceBindingOptions.withSimpleId()Lorg
/apache/tapestry5/ioc/ServiceBindingOptions;
at 
org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123)
at 
org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
at 
org.apache.tapestry5.internal.TapestryAppInitializer.init(TapestryAppInitializer.java:124)
at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:103)
at 
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273)
at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
at 
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:98)
at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584)
at 
org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)
at 
org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.RuntimeException: Failure loading Tapestry IoC module 
class org.apache.tapestry5.hibernate.HibernateCoreModule: Error invoking 
service binder method org.apache.tapestry5.hiber
at 
org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:155)
at 
org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
at 
org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)
... 15 more
02.11.2011 22:32:36 org.apache.catalina.core.StandardContext startInternal


Is hibernate too older? Or is the reason that:

tapestry-hibernate-core-5.3-rc-3.jar contains:

Hibernate Commons Annotations 3.2.0.Final API 

twice?



So long,

Tobias



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



Atmosphere Tapestry // IRC client

2011-04-11 Thread tmarx78
Hello everyone!

I came across a RichFaces example that shows how to implement an irc client 
using Atmosphere:

http://in.relation.to/Bloggers/GettingStartedWithRichFaces40Push

Has anyone tried something similiar in Tapestry?

Any example or link to existing code that shows the integrating of Atmosphere 
or Comet is welcome...or also some hints what the best approach would be to 
keep the code nice  clean - and being able to put all the nasty bits and piece 
into a library.

http://atmosphere.java.net/
http://www.ibm.com/developerworks/web/library/wa-cometjava/

Thanks!

Tobias

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



Tapestry Service Cache and Ioko-Cache conflict

2011-04-05 Thread tmarx78
Hello again!

I have noticed there is a conflict with adding both the tapestry-service-cache 
and the ioko cache to a Tapestry project.

The reason is different ehcache versions

Is there any way to marry those 2 projects, also to avoid conflicts in the 
future?


Thanks!

Tobias

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



Writing a commandline script that uses IOC+Hibernate

2011-03-28 Thread tmarx78
hello everyone!

i am trying to write a script that will use tapestry-hibernate to will do some 
database processing tasks from a command line. It also needs to access IOC 
Services:


public static void main(String[] args) {
RegistryBuilder builder = new RegistryBuilder();
builder.add(HibernateCoreModule.class);

Registry registry = builder.build();
registry.performRegistryStartup();

HibernateSessionSource hello = registry
.getService(HibernateSessionSource.class);
Session session = hello.getSessionFactory().openSession();

Something something = new Something();
something.setName(test);

session.persist(type);
registry.cleanupThread();
registry.shutdown();
}

could it work like that or is there something fundamentally wrong here or 
missing?

thanks!

tobias

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



Problems Ajax-ifying the Tree component

2011-03-23 Thread tmarx78
Hello everyone!

I am using the tree component from:

http://wiki.apache.org/tapestry/Tapestry5TreeComponent

and added a zone parameter to the ActionLink in order to show the data of the 
selected element in the tree.

t:Tree treeid='literal:demo' source=treeNodes currentNode=node
t:actionlink t:id=tree context=node.identifier zone=showSelection
${node.name}
/t:actionlink
  /t:Tree

t:zone t:id=showSelection t:update=show
table border=1
trtdbXPath/b/tdtdbSample 
data/b/td/tr
trtd${xpath}/tdtd${sampleData}/td/tr
/table
/t:zonebr/


This leads to an error thats fades in and out again that says:

Exception invoking function Tapestry.Initializer.linkZone with parameters 
[{linkId: tree_199, url: 
/importer/mapping.tree/16?t:state:client=H4sIAEWOsUoDQRCGJ4kSxUKwsbG03vUUiWinIBy5iJDGdrgbL6u7e+vuGHONraUv4oMIPoG1tZ2VKDgHot0/MP/3f0/vsHy3BAC9FGHcxFphwHJGijFQ4tjuK+OZokerEsW5KSmpE2vI8znFZBJLOjVkqyk3EWvKXbDbY2pfPzYfh2+fD30YFLBWNi40Xl7zimGjuMI5aou+1lOOxtdHBaxedpAzdHQD99ArYCUI7e9ehMAwXDibMzlJEwxBiiK9VZGqUNxERcmCYSOKF5Oi+1z/fml3n0df/Y44uI32F8aQzZjDodYO3X+9Is1idkzltUPvdTbaO9jJVDBKln8AJSA8eCsBAAA=,
 zoneId: showSelection}]: TypeError: $(element) is null

The Java code is:


@InjectComponent
private Zone showSelection;

@Persist
@Property
private String xpath;

@Persist
@Property
private String sampleData;

Object onActionFromTree(int index) {

TreeNode node = this.getTreeNode(index);
if (node != null) {

this.xpath = node.getXpath();
this.sampleData = node.getValue();
} 

return this.showSelection.getBody();
}


Any ideas?

Thanks!

Tobias

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



Pre-filling TextAreas with values

2010-11-21 Thread tmarx78
Hello everyone!

Is it possible, that TextAreas ignores the body?

http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/TextArea.html

Example:

Inside of an AjaxFormLoop 
(http://jumpstart.doublenegative.com.au/jumpstart/examples/tables/ajaxformloop1)

TextAreas should be pre-filled with a text, that is read from a different field 
than it should be saved to:

t:textarea  
value=questionAndAnswer.enteredAnswer${questionAndAnswer.AnswerSuggestion}/t:textarea

However, it seems like TextArea ignores its body?

Thanks!

Tobias

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



org.apache.tapestry:tapestry-core:jar:5.0.4-SNAPSHOT

2007-06-01 Thread tmarx78
I have tried to install 2 different Tapestry 5 examples using maven.
Always when I do the final mvn jetty:run I get:

Missing:

1) org.apache.tapestry:tapestry-core:jar:5.0.4-SNAPSHOT

Why is it missing and where do I get it from ?

Toby


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]