ie9 + ajax response + stylesheets - bug/incompatibility

2012-04-17 Thread Paul Stanton
I've found an incompatibility with ie9 and tapestry exposed when an ajax 
response renders a component(s) which include their own stylesheets.


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

If you use partial renders (ajax responses) and components which include 
their own stylesheets (@Import)  you should probably patch tapestry.js. 
See the issue report for details.


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



Re: Not serializable: org.apache.tapestry5.tree.TreeExpansionModel

2012-04-17 Thread Felix Gonschorek
Am 16.04.2012 09:44, schrieb Lance Java:
 I think that SeleniumTestCase should inject a Session implementation that
 fails when setAttribute() is called with a non-Serializable object so that
 we can catch this in the future


that would be a start, but you won't catch nested (uninitialized,
non-serializable) classes like:


class A implements Serializable {
 class B {}

 B b = null;

 public void initB() {
  b = new B();
 }
}


... and in the page:

@Persist
private A a;

@SetupRender() {
 a = new A();
}

in this case the selenium test case will not fail.

in this case:

@Persist
private A a;

@SetupRender() {
 a = new A();
 a.initB(); // --- b initialized
}

the test case will fail (class B not serializable)

i am currently fighting with nested data structures in our business
objects where non-serializable instances are failing to persist.

one solution would be to traverse all possible paths in the nested data
structure (by-class, not by-value) und check all possible
(non-transient) fields recursivly for serialization.

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



Re: Not serializable: org.apache.tapestry5.tree.TreeExpansionModel

2012-04-17 Thread Lance Java
A simpler option could be to serialize the data to a temp OutputStream
instead of checking instanceof Serializable.


Re: File System Asset Factory help needed and petition wanted

2012-04-17 Thread Lance Java
 So what would you choice be? I know that no database manifacture actually
recommend to store the files into DB. Say that you have huge files, or a
lot of them and your db is on another server, it is a lot of mess.

Caveat: I must admit that i've never needed to deal with large blobs (eg
video) before.

Most of the nosql datastores have a way of storing BLOBs. I'd also be
looking at options like Amazon S3 or google Blobstore.

Cheers,
Lance.


Re: Not serializable: org.apache.tapestry5.tree.TreeExpansionModel

2012-04-17 Thread Felix Gonschorek
Am 17.04.2012 09:32, schrieb Lance Java:
 A simpler option could be to serialize the data to a temp OutputStream
 instead of checking instanceof Serializable.

yeah, but as i wrote: you wont catch nested non serializable data this
way, if it is not instantiated.


@SessionState
private Cart cart;

the test will succeed (assuming you did not initialize ALL the nested
cart properties for the test), but when the nested data structures
(like: cart.customer.shippingAddress) is filled with data in
production and shippingAddress is not serializable, the serialization
will fail in production even when it succeeded with the temp output
stream (which only wrote cart, not the nested customer and
shippingAddress fields).



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



Re: Not serializable: org.apache.tapestry5.tree.TreeExpansionModel

2012-04-17 Thread Lance Java
That just flags that you don't have enough test coverage then ;)

Running through the object reflectively won't work. In the case of
ListSomeObject  the generic type is lost at runtime through type erasure.


Re: Not serializable: org.apache.tapestry5.tree.TreeExpansionModel

2012-04-17 Thread Felix Gonschorek
Am 17.04.2012 10:06, schrieb Lance Java:
 That just flags that you don't have enough test coverage then ;)

haha, you got me ;)

 Running through the object reflectively won't work. In the case of
 ListSomeObject  the generic type is lost at runtime through type erasure.

you're right. more unit tests it shall be!

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



Re: File System Asset Factory help needed and petition wanted

2012-04-17 Thread trsvax
https://github.com/trsvax/tapestry-aws-core. 

This project has code for getting objects in/out of S3
https://github.com/trsvax/Blog

If you just want to serve images/movies you can just make them public and
serve them straight from s3 with a url like

https://s3.amazonaws.com/assets.judypaul.com/work/'A'%20Bird/thumb/V.LtBlu.jpg

You could store that url in your database instead of the image. 

see also
http://aws.amazon.com/s3/

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/File-System-Asset-Factory-help-needed-and-petition-wanted-tp5641308p5646337.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



Re: Reuse Edit/Create

2012-04-17 Thread Thiago H. de Paula Figueiredo

On Mon, 16 Apr 2012 23:50:16 -0300, netdawg net.d...@yahoo.com wrote:


Thanks, Thiago.


:)


I think I understand the logic/strategy:  If there's a context value
passed, it is the id of an object to be edited.  If not, we're going to
create a new object.  In the above code, just changing  
@Persist(entity) to @PageActivationContext seems to achieve that


I guess so. I haven't used @PageActivationContext yet, but it does seem to  
do the trick.



Is that all?


Yes! This is something that happens often here in this list: someone  
thinking that something in Tapestry would be more complicated that it  
really is. :)


--
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



Re: Tapestry with Spring

2012-04-17 Thread arterzatij
It works thanks!

 And how do I need to inject a service to call it from an static method?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-with-Spring-tp5574749p5646920.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



Re: File System Asset Factory help needed and petition wanted

2012-04-17 Thread arterzatij

bhorvat wrote
 
 
 arterzatij wrote
 
 And what is the better approach in order to upload files to a web app
 without using DBs and file system?
 
 
 Hi, 
 
 Can you please check out my solution and try to figure out what is
 wrong. It is like the MIME of the file is set wrong so the file is
 corrupted, but I am not sure how to fix this.
 
 Cheers
 

When I did this in other project that the requirement was store files in the
file system I did it as follow

I use:

ApplicationGlobals in order to get the file path (files/images,
files/documents)
and to put a link I used (${context:files/images}/${bean.file})

with this I didn't handle an stream 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/File-System-Asset-Factory-help-needed-and-petition-wanted-tp5641308p5646929.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



Re: Server Side Validation with ajax form loop work around

2012-04-17 Thread David Canteros
I have done a quick test and it works perfectly!
Thanks Geoff!


--
David Germán Canteros


2012/4/12 Geoff Callender geoff.callender.jumpst...@gmail.com

 Hi all,

 I've taken on board all the suggestions and observations here about
 AjaxFormLoop problems and fixes, and done a complete rewrite of the
 JumpStart examples. I've put a beta on the demo site. Is every corner case
 handled now? I sure hope so. See if you can find a hole in it.

http://jumpstart.doublenegative.com.au/jumpstart/

 Cheers,

 Geoff


 On 23/03/2012, at 1:57 AM, George Christman wrote:

  Hi David, after some testing I wanted to provide you with some updates
 based
  on some scenarios I ran into.
 
  You'll notice in the !request.isHXR condition, I'm checking for a null
  lineItem id. This prevents duplicate objects from being added to the
  collection.
 
 @SuppressWarnings(unchecked)
 public ValueEncoder getEncoderLineItem() {
 return new ValueEncoderLineItem() {
 public String toClient(LineItem value) {
 Long id = value.getId();
 return id == null ? NEW_OBJ : id.toString();
 }
 
 public LineItem toValue(String idAsString) {
 lineItem = null;
 
 if (!idAsString.equals(NEW_OBJ)) {
 Long id = new Long(idAsString);
 lineItem = (LineItem) session.get(LineItem.class, id);
 }
 
 // AjaxFormLoop can't handle null obj, so if null we
 return
  a new empty obj.
 lineItem = lineItem == null ? new LineItem() : lineItem;
 
 if (!request.isXHR()  lineItem.getId() == null) {
 lineItem.setPurchaseRequest(pr);
 pr.getLineItems().add(lineItem);
 }
 return lineItem;
 }
 };
 }
 
  I also found a cleaner way to copy the persisted data to the new session.
 
 
 void onActivate() {
 System.out.println(onActivate  + this.pr);
 
 if (this.pr == null) {
 this.pr = prPersist != null ? prPersist : new
 PurchaseRequest();
 prPersist = null;
 }
 
 }
 
 Class? onActivate(Long prId) {
 
 PurchaseRequest purchaseRequest = prPersist != null ? prPersist :
  (PurchaseRequest) session.get(PurchaseRequest.class, prId);
 }
 
  If you have any better solutions, please feel free to share.
 
 
  --
  View this message in context:
 http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p5586509.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: Live Class and Template Reloading using jetty and Intellij

2012-04-17 Thread raphael stary
hey folks

http://tapestry.apache.org/class-reloading.html there it says that class
reloading from a JAR is not working. So when you have a more complex project
(probably with more than one modules) all the modules are packed to JARs and
they go into your WAR exploded.
With eclipse this works well with live class reloading, but with intellij
your open sub modules' compile output folders are put into JARs. - no class
reloading with complex projects out of the box.

so if this holds for your project you could do as follows (I use intellij
11): 
1. Project Structure  Artifacts  war exploded
2. check Build on make
3. expand WEB-INF  expand lib
4. remove all tapestry modules where you want to enable live class reloading
5. now you see under Available Elements in your previously removed modules a
new folder copile output
6. right click on the compile output folder then click Put into
WEB-INF/classes (you have to add all removed modules this way)

kr raphael

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Live-Class-and-Template-Reloading-using-jetty-and-Intellij-tp5634877p5647013.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



Use page message catalog in custom component

2012-04-17 Thread Beat Durrer
Hi all

I am refactoring some page which have very similar forms.
I thought it would be clever to make a custom component, which
contains a collection of preconfigured form elements.
Some of those fields need page specific field names (the field stay the same).

How can I make page specific messages but still use a component?


- If there is a textfield directly in the page template, I use the
page's message catalog
- If the textfield is put into a component, the page's message catalog
is not applied anymore, only the components catalog.


Cheers.

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



[ANNOUNCE] Tapestry5-Portlet

2012-04-17 Thread François Facon
Atos is proud to announce the first release of Tapestry5-Portlet.

This library is based on work of Markus Feindler, Le Xuan Trun and
Kristina B. Taylor
(see http://code.google.com/p/tapestry5portlet/ for more details).

Like Felix Scheffer
(http://code.google.com/p/tapestry5-portlet-support/ for more
details),
we have updated the dependencies of this library to use Tapestry 5.2.6.

This library also support:
- portlet event processing (JSR 286)
- serving ajax request as portlet resource (event name that start with
serve or components declared in the PortletResourceResponseIdentifier
service)
- support MARKUP_HEAD_ELEMENT
- rework on IdAllocator to avoid conflict for generated id when there
is more than on tapestry portlet in a page.
- use of Apache Pluto to ease the test

Code is available at https://github.com/got5/tapestry5-portlet.
If you want to see it in action, you just need to:
- Download the sources
- Go to the repository directory
- Run mvn jetty:run
- Open your browser to http://localhost:8080/tapestry5-portlet/portal/Index


The contributors of this release are :
- Amaury Willemant
- Demey Emmanuel
- François Facon
and last but not least: Christophe Cordennier for the large rework and
for the intégration of Apache Pluto.


Best Regards

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



Re: [ANNOUNCE] Tapestry5-Portlet

2012-04-17 Thread Howard Lewis Ship
This is excellent news ... people have been asking for Portlet support
for quite some time but it's never managed to percolate up the
priority list.

Could you provide a writeup of the general approach, and any obstacles
present in the APIs; I'm assuming you had to override some services
and possibly make use of some internal services.

I'd propose that portlet support should be part of the Apache Tapestry
project OR Tapestry should expose stable, public APIs so that the
portlet support can not be tied to a specific version of Tapestry.

2012/4/17 François Facon francois.fa...@atos.net:
 Atos is proud to announce the first release of Tapestry5-Portlet.

 This library is based on work of Markus Feindler, Le Xuan Trun and
 Kristina B. Taylor
 (see http://code.google.com/p/tapestry5portlet/ for more details).

 Like Felix Scheffer
 (http://code.google.com/p/tapestry5-portlet-support/ for more
 details),
 we have updated the dependencies of this library to use Tapestry 5.2.6.

 This library also support:
 - portlet event processing (JSR 286)
 - serving ajax request as portlet resource (event name that start with
 serve or components declared in the PortletResourceResponseIdentifier
 service)
 - support MARKUP_HEAD_ELEMENT
 - rework on IdAllocator to avoid conflict for generated id when there
 is more than on tapestry portlet in a page.
 - use of Apache Pluto to ease the test

 Code is available at https://github.com/got5/tapestry5-portlet.
 If you want to see it in action, you just need to:
 - Download the sources
 - Go to the repository directory
 - Run mvn jetty:run
 - Open your browser to http://localhost:8080/tapestry5-portlet/portal/Index


 The contributors of this release are :
 - Amaury Willemant
 - Demey Emmanuel
 - François Facon
 and last but not least: Christophe Cordennier for the large rework and
 for the intégration of Apache Pluto.


 Best Regards

 -
 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



Re: [ANNOUNCE] Tapestry5-Portlet

2012-04-17 Thread François Facon
We would be honored to donate this library. Maybe we'll need one more
iteration to improve the unit testing and solve some limitations.
We will give you more details about the general approach and obstacles.

Best Regards
François

Le 17 avril 2012 21:33, Howard Lewis Ship hls...@gmail.com a écrit :
 This is excellent news ... people have been asking for Portlet support
 for quite some time but it's never managed to percolate up the
 priority list.

 Could you provide a writeup of the general approach, and any obstacles
 present in the APIs; I'm assuming you had to override some services
 and possibly make use of some internal services.

 I'd propose that portlet support should be part of the Apache Tapestry
 project OR Tapestry should expose stable, public APIs so that the
 portlet support can not be tied to a specific version of Tapestry.

 2012/4/17 François Facon francois.fa...@atos.net:
 Atos is proud to announce the first release of Tapestry5-Portlet.

 This library is based on work of Markus Feindler, Le Xuan Trun and
 Kristina B. Taylor
 (see http://code.google.com/p/tapestry5portlet/ for more details).

 Like Felix Scheffer
 (http://code.google.com/p/tapestry5-portlet-support/ for more
 details),
 we have updated the dependencies of this library to use Tapestry 5.2.6.

 This library also support:
 - portlet event processing (JSR 286)
 - serving ajax request as portlet resource (event name that start with
 serve or components declared in the PortletResourceResponseIdentifier
 service)
 - support MARKUP_HEAD_ELEMENT
 - rework on IdAllocator to avoid conflict for generated id when there
 is more than on tapestry portlet in a page.
 - use of Apache Pluto to ease the test

 Code is available at https://github.com/got5/tapestry5-portlet.
 If you want to see it in action, you just need to:
 - Download the sources
 - Go to the repository directory
 - Run mvn jetty:run
 - Open your browser to http://localhost:8080/tapestry5-portlet/portal/Index


 The contributors of this release are :
 - Amaury Willemant
 - Demey Emmanuel
 - François Facon
 and last but not least: Christophe Cordennier for the large rework and
 for the intégration of Apache Pluto.


 Best Regards

 -
 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: how to get component event source?

2012-04-17 Thread Chris Mylonas
oh stop it, you big tease :D

Let's just leave it on idle for a bit - i've got what i want out of 
@ImportJQueryUI stuff and my own custom JS (i used to detest js back before 
these handy js-toolkits came about - times have changed...)
For my own prototyping, I'll be needing to possibly make update-able _all_ 
zones - so that will give me a fair intro into tapestry ajax updates / json etc.

It's a good test of patience all this this AJAX deving caper, but not as good 
as untangling 100m of rope in a small space!

It's all good timing though - tapestry5-jquery rocks...jumpstart with some 
fresh ajax stuff to check out.  has never been a better time for java web 
deving.

Cheers
Chris


On 16/04/2012, at 8:53 PM, Lance Java wrote:

 Now I'm starting to doubt myself, I'm starting to think that the @Parameter
 will be null when the ajax method is invoked.
 
 You will need to pass the droppablecontext in the AJAX event URL in a
 similar way to how the draggablecontext is passed.
 
 https://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/assets/mixins/zonedroppable/zonedroppable.js
 
 Perhaps this is back in the too-hard-basket. Sorry for the tease


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



Re: tapestry5-highcharts available

2012-04-17 Thread Chris Mylonas
Hi Manu

I just tried the sample BasicComponent but maven is complaining about not being 
able to find the tapestry5-highcharts jar file.
I tried installing it manually as suggested by maven but still no luck.

  apache-staging (https://repository.apache.org/content/groups/staging/, 
releases=true, snapshots=true),
  PullRequest Repository (http://nexus.pullrequest.org, releases=true, 
snapshots=true),
  devlab722-repo 
(http://nexus.devlab722.net/nexus/content/repositories/releases, releases=true, 
snapshots=false),
  devlab722-snapshot-repo 
(http://nexus.devlab722.net/nexus/content/repositories/snapshots, 
releases=false, snapshots=true),
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

[INFO] Unable to read jar manifest from 
/Users/chrismylonas/.m2/repository/org/got5/tapestry5-highcharts/1.0.0-SNAPSHOT/tapestry5-highcharts-1.0.0-SNAPSHOT.jar
[INFO] Wrote settings to 
/Users/chrismylonas/Documents/2012/Scat/highcharts/.settings/org.eclipse.jdt.core.prefs
[INFO] Wrote Eclipse project for highcharts to 
/Users/chrismylonas/Documents/2012/Scat/highcharts.
[INFO] 
[INFO] 
[INFO] BUILD SUCCESS
[INFO] 
[INFO] Total time: 15.387s
[INFO] Finished at: Tue Apr 17 00:21:41 EST 2012
[INFO] Final Memory: 9M/81M
[INFO] 
pa42-241-103-153:highcharts chrismylonas$ vi pom.xml 
pa42-241-103-153:highcharts chrismylonas$ mvn clean jetty:run
[INFO] Scanning for projects...
[INFO] 
[INFO] 
[INFO] Building highcharts Tapestry 5 Application 1.0-SNAPSHOT
[INFO] 
[WARNING] The POM for org.got5:tapestry5-highcharts:jar:1.0.0-SNAPSHOT is 
missing, no dependency information available
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 2.567s
[INFO] Finished at: Tue Apr 17 00:32:23 EST 2012
[INFO] Final Memory: 4M/81M
[INFO] 
[ERROR] Failed to execute goal on project highcharts: Could not resolve 
dependencies for project org.opencsta:highcharts:war:1.0-SNAPSHOT: Failure to 
find org.got5:tapestry5-highcharts:jar:1.0.0-SNAPSHOT in 
https://repository.apache.org/content/groups/staging/ was cached in the local 
repository, resolution will not be reattempted until the update interval of 
apache-staging has elapsed or updates are forced - [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException



As suggested by maven

mvn install:install-file -DgroupId=org.got5 -DartifactId=tapestry5-highcharts 
-Dversion=1.0.0-SNAPSHOT -Dpackaging=jar 
-Dfile=/Users/chrismylonas/.m2/repository/org/got5/tapestry5-highcharts/1.0.0-SNAPSHOT/tapestry5-highcharts.jar


Any ideas?

Cheers
Chris


On 30/03/2012, at 8:40 PM, Emmanuel DEMEY wrote:

 Hi everybody !!
 
 The WebPlatform team, from Atos Company, is very pleased to announce a new
 Tapestry Component library : Tapestry5-HighCharts.
 
 This contribution makes it possible to integrate the highcharts library (
 http://www.highcharts.com/) into a Tapestry5-jQuery based application.
 
 The release 1.0.0 is based on Tapestry 5.2.6, the 1.1.0-SNAPSHOT on
 Tapestry 5.3.2.
 
 The source are available on github (
 https://github.com/got5/tapestry5-highcharts), and some documentation on
 the Tapestry5-jQuery website (http://tapestry5-jquery.com/highcharts).
 
 We are waiting for your feedbacks !
 
 Manu



Re: Bean Edit Form w/ Select Menu

2012-04-17 Thread Chris Mylonas
Hi George,


Maybe needs a ValueEncoder is needed to transform from an object to a text 
representation for your select.
http://jumpstart.doublenegative.com.au/jumpstart/examples/select/easyobject

That's just a guess by the way.

Cheers
Chris


On 17/04/2012, at 12:22 AM, George Christman wrote:

 Hello, I'm trying to use a beaneditform for the first time, but I'm currently
 facing a problem getting a select menu to appear and work. I'm using Tap3.2
 along with hibernate
 
 Source code
 
 .tml
 
t:beaneditform t:id=evaluatorForm object=evaluator
 submitlabel=Create Evaluator
p:applicationUser
t:label for=applicationUser/
t:Select t:id=applicationUser
 value=evaluator.applicationUser model=applicationUserModel/
/p:applicationUser
/t:beaneditform
 
 
 .class
 
 public class Evaluator_Test {
 
@Property
private Evaluator evaluator;
 
@Property
private SelectModel applicationUserModel;
 
@Inject
private SelectModelFactory selectModelFactory;
 
@Component(id = evaluatorForm)
private BeanEditForm evaluatorForm;
 
@Inject
private Session session;
 
void onPrepare() throws Exception {
evaluator = new Evaluator();
this.applicationUserModel =
 selectModelFactory.create(session.createCriteria(ApplicationUser.class).list(),
 name);
}
 
 Entity
 
 @Entity
 public class Evaluator extends AbstractBaseEntity {
 
@Id
@GeneratedValue 
@NonVisual 
private Long evaluatorId;
 
@ManyToOne(fetch = FetchType.EAGER, optional = false)
@JoinColumns(@JoinColumn(name = application_user_id)) 
private ApplicationUser applicationUser;
 
 getters/setters
 
 Could someone tell me what I'm doing wrong?
 
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Bean-Edit-Form-w-Select-Menu-tp5643951p5643951.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: T5: ValidationException from validate event leads to ERROR level logger statement

2012-04-17 Thread raulmt
I know there are alternatives to throwing ValidationExceptions, but I was
wondering what use does this has then? Is there really a case where you
could want to log with error level all the user input validation errors? I
ask because this method, throwing ValidationExceptions, appears on the wiki
page as you should do it this way
(http://tapestry.apache.org/forms-and-validation.html) but this behavior,
imho, makes it useless at least in most cases.

Regards,
Raul.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-ValidationException-from-validate-event-leads-to-ERROR-level-logger-statement-tp4860047p5647776.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



Re: [ANNOUNCE] Tapestry5-Portlet

2012-04-17 Thread Jon Williams
OMG!!!
I guess this means I have to start working again. It's great and all, but I
got this real comfy dent happening in my couch that I'm hesitant to abandon.

Seriously, great work guys, you just upped my game by an order of magnitude.

thanks
JW

2012/4/17 François Facon francois.fa...@atos.net

 We would be honored to donate this library. Maybe we'll need one more
 iteration to improve the unit testing and solve some limitations.
 We will give you more details about the general approach and obstacles.

 Best Regards
 François

 Le 17 avril 2012 21:33, Howard Lewis Ship hls...@gmail.com a écrit :
  This is excellent news ... people have been asking for Portlet support
  for quite some time but it's never managed to percolate up the
  priority list.
 
  Could you provide a writeup of the general approach, and any obstacles
  present in the APIs; I'm assuming you had to override some services
  and possibly make use of some internal services.
 
  I'd propose that portlet support should be part of the Apache Tapestry
  project OR Tapestry should expose stable, public APIs so that the
  portlet support can not be tied to a specific version of Tapestry.
 
  2012/4/17 François Facon francois.fa...@atos.net:
  Atos is proud to announce the first release of Tapestry5-Portlet.
 
  This library is based on work of Markus Feindler, Le Xuan Trun and
  Kristina B. Taylor
  (see http://code.google.com/p/tapestry5portlet/ for more details).
 
  Like Felix Scheffer
  (http://code.google.com/p/tapestry5-portlet-support/ for more
  details),
  we have updated the dependencies of this library to use Tapestry 5.2.6.
 
  This library also support:
  - portlet event processing (JSR 286)
  - serving ajax request as portlet resource (event name that start with
  serve or components declared in the PortletResourceResponseIdentifier
  service)
  - support MARKUP_HEAD_ELEMENT
  - rework on IdAllocator to avoid conflict for generated id when there
  is more than on tapestry portlet in a page.
  - use of Apache Pluto to ease the test
 
  Code is available at https://github.com/got5/tapestry5-portlet.
  If you want to see it in action, you just need to:
  - Download the sources
  - Go to the repository directory
  - Run mvn jetty:run
  - Open your browser to
 http://localhost:8080/tapestry5-portlet/portal/Index
 
 
  The contributors of this release are :
  - Amaury Willemant
  - Demey Emmanuel
  - François Facon
  and last but not least: Christophe Cordennier for the large rework and
  for the intégration of Apache Pluto.
 
 
  Best Regards
 
  -
  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: T5: ValidationException from validate event leads to ERROR level logger statement

2012-04-17 Thread Thiago H. de Paula Figueiredo

On Tue, 17 Apr 2012 19:31:54 -0300, raulmt rau...@gmail.com wrote:


I know there are alternatives to throwing ValidationExceptions, but I was
wondering what use does this has then? Is there really a case where you
could want to log with error level all the user input validation errors?  
I ask because this method, throwing ValidationExceptions, appears on the  
wiki page as you should do it this way

(http://tapestry.apache.org/forms-and-validation.html) but this behavior,
imho, makes it useless at least in most cases.


Registering validation errors by throwing exceptions is something that was  
carried from Tapestry 4 to 5 and that's something Howard already said it  
was a bad idea. We probably need to fix that wiki page.


--
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