RE: Eclipse: Can run against maven jar, can't run against local project

2012-06-26 Thread Guerin Laurent
Hi Lance, 
you can link your component lib module with you webapp with @SubModule 
annotation.

For example, in your AppModule of your webapp, add :

@SubModule(MyLibraryModule.class)
public class AppModule

>From the documentation : @SubModule
Attached to a module class, this annotation identifies other module classes 
that should also be added to the Registry. This is often easier than updating 
the JAR Manifest.

Laurent.


-Message d'origine-
De : Lance Java [mailto:lance.j...@googlemail.com] 
Envoyé : mardi 26 juin 2012 10:31
À : users@tapestry.apache.org
Objet : Re: Eclipse: Can run against maven jar, can't run against local project

I have a workaround which is to use a system property 
-Dtapestry.modules=foo.bar.MyModule

I'd prefer it if tapestry could find my manifest file (located in
src/main/resources/META_INF/MANIFEST.MF)

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Eclipse-Can-run-against-maven-jar-can-t-run-against-local-project-tp5714087p5714088.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: tml parameter rendered into a JavaScript string

2012-02-27 Thread Guerin Laurent
Hi Lance,

We prefer keep the model like this as a matter of separation of concerns, and 
let the user fill the model with his own server side logic.
BTW, that didn't mean it's not possible to get a list of markers from a 
database.

You can loop over a list of markers and fetch the marker infos from a database 
or a lucene search result :

---
tml
---

 




---
Java
---

@Property
private GMapMarkerModel currentMarker;

public List getMarkers()
{
List list = new ArrayList();
// Fill list from Lucene or Database
return list;
  }

Laurent

-Message d'origine-
De : Lance Java [mailto:lance.j...@googlemail.com] 
Envoyé : lundi 27 février 2012 10:46
À : Tapestry users
Objet : Re: tml parameter rendered into a JavaScript string

Hi Laurent,

I think the normal use case for using a google map would be to get a list of 
markers from a database search or from a lucene search result. Using your 
current implementation this would mean storing html in the database which I'd 
like to avoid.

I would like to follow a similar pattern to the tapestry tree component where 
you do the following:


   
  
 ${tree.node.label}
 
${tree.node.label}
 
  
   


The tapestry tree component requires a treeModel. As it iterates the treeModel, 
it updates the "node" property. Each tree node has a value property which is of 
generic type T and is the actual data (hibernate
entity?) backing the treeNode which can be used to generate a custom label as I 
have done above.

http://tapestry.apache.org/5.3.1/apidocs/src-html/org/apache/tapestry5/corelib/components/Tree.html

As a suggestion for implementing this in your library, I would change 
GMapMarkerModel to GMapMarkerModel and had a public T getValue(). Then I 
would change the GMap component to update the "currentMarker" property each 
time it iterates the list.

Then you could do something like:

---
tml
---

   
  ${gmap.currentMarker.value.title}
  
 
 ${gmap.currentMarker.value.foo}
 ${gmap.currentMarker.value.bar}
  
   


---
java
---
@InjectComponent
@Property
private GMap gmap;

public List getMarkers() {
   return getMarkersFromLuceneOrDatabaseEtc();
}

Cheers,
Lance.

On Saturday, 25 February 2012, Guerin Laurent 
wrote:
> Hi Lance,
>
> in fact, in my sample (Eiffel Tower example), i put html content into
properties file but you're right : i agree that this could be easier to 
directly use block binding parameter or the GMap api support for passing the id 
of a
> html element.
> I'll try to add this feature in the next release.
>
> Tanks for your feedback.
>
> Laurent
>
> 
> De : Lance Java [lance.j...@googlemail.com] Date d'envoi : samedi 25 
> février 2012 11:49 À : Tapestry users Objet : Re: RE : tml parameter 
> rendered into a JavaScript string
>
> Hi  Laurent,
>
> I took a look at your library and from what I can see, it is missing 
> the functionality that I want. It seems that each marker has an info 
> property which is a string containing the text to render in the info 
> window. I
would
> like each marker's info window to contain complex html and I would 
> like to achieve this by passing a block (or perhaps a render command) 
> to the gmap component which will be used to render each marker's info window.
>
> I have noticed that the google map marker api supports passing the id 
> of a html element instead of the text content to show for an info 
> window. I think I will explore the option of rendering a hidden div 
> for each
marker's
> info window using a RenderCommand parameter and the MarkupWriter. I 
> will then pass the div id's to the gmap's javascript initializer so 
> that the info window div can be shown when a marker is clicked.
>
> Unless, of course, someone can tell me how to use tapestry's 
> templating engine to render strings on the serverside which I can pass 
> to the javascript initializer. I'm thinking that tapestry must be 
> doing this somewhere in order for MultiZoneUpdate to work?
>
>
> On 25 February 2012 06:54, Guerin Laurent  wrote:
>
>> Hi Lance,
>>
>> with exanpe-t5-lib, we provide a such component with markers and HTML 
>> InfoWindows :
>> http://exanpe-t5-lib.appspot.com/components/googlemap/example2
>>
>> If you want to build your own component, you can have a look at the
source
>> code :
>>
>>
https://github.com/exanpe/exanpe-t5-lib/blob/master/src/main/java/fr/exanpe/t5/lib/components/GMap.java
>>
>> The JS part (l. 2809) :
>>
>>
https://github.com/exanpe/exanpe-t5-lib/blob/master/src/main/resources/fr/exanpe/t5/lib/components

RE : RE : tml parameter rendered into a JavaScript string

2012-02-25 Thread Guerin Laurent
Hi Lance, 

in fact, in my sample (Eiffel Tower example), i put html content into 
properties file but you're right : i agree that this could be easier to 
directly use block binding parameter or the GMap api support for passing the id 
of a
html element.
I'll try to add this feature in the next release.

Tanks for your feedback.

Laurent


De : Lance Java [lance.j...@googlemail.com]
Date d'envoi : samedi 25 février 2012 11:49
À : Tapestry users
Objet : Re: RE : tml parameter rendered into a JavaScript string

Hi  Laurent,

I took a look at your library and from what I can see, it is missing the
functionality that I want. It seems that each marker has an info property
which is a string containing the text to render in the info window. I would
like each marker's info window to contain complex html and I would like to
achieve this by passing a block (or perhaps a render command) to the gmap
component which will be used to render each marker's info window.

I have noticed that the google map marker api supports passing the id of a
html element instead of the text content to show for an info window. I
think I will explore the option of rendering a hidden div for each marker's
info window using a RenderCommand parameter and the MarkupWriter. I will
then pass the div id's to the gmap's javascript initializer so that the
info window div can be shown when a marker is clicked.

Unless, of course, someone can tell me how to use tapestry's templating
engine to render strings on the serverside which I can pass to the
javascript initializer. I'm thinking that tapestry must be doing this
somewhere in order for MultiZoneUpdate to work?


On 25 February 2012 06:54, Guerin Laurent  wrote:

> Hi Lance,
>
> with exanpe-t5-lib, we provide a such component with markers and HTML
> InfoWindows :
> http://exanpe-t5-lib.appspot.com/components/googlemap/example2
>
> If you want to build your own component, you can have a look at the source
> code :
>
> https://github.com/exanpe/exanpe-t5-lib/blob/master/src/main/java/fr/exanpe/t5/lib/components/GMap.java
>
> The JS part (l. 2809) :
>
> https://github.com/exanpe/exanpe-t5-lib/blob/master/src/main/resources/fr/exanpe/t5/lib/components/js/exanpe-t5-lib.js
>
> Laurent.
>
> 
> De : Lance Java [lance.j...@googlemail.com]
> Date d'envoi : vendredi 24 février 2012 17:37
> À : Tapestry users
> Objet : Re: tml parameter rendered into a JavaScript string
>
> It seems I'm having troubles explaining what it is I'm trying to do. I need
> an implementation for generateInfoWindowHtml() in the code below.
>
> @Import(library="mygooglemap.js")
> public class GoogleMap {
>@Inject
>JavaScriptSupport jsSupport;
>
>@Parameter(required=true)
>RenderCommand infoWindow;
>
>@Parameter(required=true)
>List markers;
>
>@Parameter(required=true)
>double centerLatitude;
>
>@Parameter(required=true)
>double centerLongitude;
>
>@Parameter(required=true)
>int zoom;
>
>
>@SetupRender
>void setupRender() {
>JSONObject mapInitializer = createInitializerJsonObject();
>jsSupport.addScript("initGoogleMap(%s)", mapInitializer);
>}
>
>private JSONObject createInitializerJsonObject() {
>JSONObject init = new JSONObject();
>JSONArray markerInits = new JSONArray();
>for (GoogleMapMarker marker : markers) {
>JSONObject markerInit = new JSONObject();
>markerInit.put("latitude", marker.getLatitude());
>markerInit.put("longitude", marker.getLongitude());
>markerInit.put("infoWindowHtml",
> generateInfoWindowHtml(marker));
>}
>init.put("centerLatutude", centerLatitude);
>init.put("centerLongitude", centerLongitude);
>init.put("zoom", zoom);
>init.put("markers", markerInits);
>
>return init;
>}
>
>private String generateInfoWindowHtml(GoogleMapMarker marker) {
>// Use tapestry's template engine to generate html using
> marker and infoWindow
>}
>
> }
>
> -
> 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 : tml parameter rendered into a JavaScript string

2012-02-24 Thread Guerin Laurent
Hi Lance,

with exanpe-t5-lib, we provide a such component with markers and HTML 
InfoWindows :
http://exanpe-t5-lib.appspot.com/components/googlemap/example2

If you want to build your own component, you can have a look at the source code 
:
https://github.com/exanpe/exanpe-t5-lib/blob/master/src/main/java/fr/exanpe/t5/lib/components/GMap.java

The JS part (l. 2809) :
https://github.com/exanpe/exanpe-t5-lib/blob/master/src/main/resources/fr/exanpe/t5/lib/components/js/exanpe-t5-lib.js

Laurent.


De : Lance Java [lance.j...@googlemail.com]
Date d'envoi : vendredi 24 février 2012 17:37
À : Tapestry users
Objet : Re: tml parameter rendered into a JavaScript string

It seems I'm having troubles explaining what it is I'm trying to do. I need
an implementation for generateInfoWindowHtml() in the code below.

@Import(library="mygooglemap.js")
public class GoogleMap {
@Inject
JavaScriptSupport jsSupport;

@Parameter(required=true)
RenderCommand infoWindow;

@Parameter(required=true)
List markers;

@Parameter(required=true)
double centerLatitude;

@Parameter(required=true)
double centerLongitude;

@Parameter(required=true)
int zoom;


@SetupRender
void setupRender() {
JSONObject mapInitializer = createInitializerJsonObject();
jsSupport.addScript("initGoogleMap(%s)", mapInitializer);
}

private JSONObject createInitializerJsonObject() {
JSONObject init = new JSONObject();
JSONArray markerInits = new JSONArray();
for (GoogleMapMarker marker : markers) {
JSONObject markerInit = new JSONObject();
markerInit.put("latitude", marker.getLatitude());
markerInit.put("longitude", marker.getLongitude());
markerInit.put("infoWindowHtml",
generateInfoWindowHtml(marker));
}
init.put("centerLatutude", centerLatitude);
init.put("centerLongitude", centerLongitude);
init.put("zoom", zoom);
init.put("markers", markerInits);

return init;
}

private String generateInfoWindowHtml(GoogleMapMarker marker) {
// Use tapestry's template engine to generate html using
marker and infoWindow
}

}

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



RE : implementing a sortable list with jQuery

2012-02-13 Thread Guerin Laurent
components.ListSorter.processSubmission(ListSorter.java:214)
at
fr.exanpe.t5.lib.components.ListSorter$ListSorterProcessSubmission.execute(ListSorter.java:167)
at
fr.exanpe.t5.lib.components.ListSorter$ListSorterProcessSubmission.execute(ListSorter.java:147)
at
org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:661)
... 83 more

2012/2/13 Guerin Laurent [via Tapestry] <
ml-node+s1045711n5479998...@n5.nabble.com>

> Try with exanpe.version in your properties and not exanpe-version
>
> Envoyé de mon iPhone
>
> Le 13 févr. 2012 à 18:33, "sommeralex" <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5479998&i=0>>
> a écrit :
>
> > Hi Guerin,
> >
> > i have the error: ArtifactDescriptorException: Failed to read artifact
> > descriptor for fr.exanpe.ex (Click for 91 more)
> >
> >
> >fr.exanpe
> >exanpe-t5-lib
> >${exanpe.version}
> >
> >
> >
> >1.2.0
> >
> >
> 3.2.0-SNAPSHOT
>
> >5.3.1
> >
> > 9.1-901.jdbc4
> >1.8.0.7
> >
> >
> > 2012/2/13 Alexander Sommer <[hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5479998&i=1>>
>
> >
> >> found the answer: 1.2.0<
> http://exanpe.github.com/exanpe-t5-lib/changes-report.html#a1.2.0>
> >>
> >> will test it.
> >>
> >> thx
> >>
> >>
> >> 2012/2/13 Alexander Sommer <[hidden 
> >> email]<http://user/SendEmail.jtp?type=node&node=5479998&i=2>>
>
> >>
> >>> Hi Laurent,
> >>>
> >>> Is it comaptible with tabestry 3.2? what is the latest version? on:
> >>> https://github.com/exanpe/exanpe-t5-lib i dont see the version
> number.
> >>> is it 1.3?
> >>>
> >>> thx
> >>>
> >>> 2012/2/13 Guerin Laurent [via Tapestry] <
> >>> [hidden email] <http://user/SendEmail.jtp?type=node&node=5479998&i=3>>
>
> >>>
> >>> This should work because we use YUI, so you shouldn't have any
> >>>> Javascript conflict with JQuery, but i haven't tried.
> >>>> To test, add exanpe-t5-lib dependency, annotate your module class
> with
> >>>> @SubModule(ExanpeLibraryModule.class) and declare the exanpe
> namespace on
> >>>> your page (xmlns:ex="tapestry-library:exanpe").
> >>>> More informations here :
> >>>> http://exanpe.github.com/exanpe-t5-lib/getting_started.html
> >>>>
> >>>>
> >>>>
> >>>> -Message d'origine-
> >>>> De : sommeralex [mailto:[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5479868&i=0>]
> >>>>
> >>>> Envoyé : lundi 13 février 2012 17:56
> >>>> À : [hidden email]<
> http://user/SendEmail.jtp?type=node&node=5479868&i=1>
> >>>> Objet : Re: implementing a sortable list with jQuery
> >>>>
> >>>> HI Laurent,
> >>>>
> >>>> thanks! can i mix this with jQuery? And if so, how? I need jQuery
> >>>> because of the multiple file upload component..
> >>>>
> >>>> alex
> >>>>
> >>>> 2012/2/13 Guerin Laurent [via Tapestry] <
> >>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=5479868&i=2>>
>
> >>>>
> >>>>> Hi,
> >>>>> We have a such component in exanpe-t5-lib, but not implemented with
> >>>>> JQuery.
> >>>>> You can have a look at our online demo here :
> >>>>> http://exanpe-t5-lib.appspot.com/components/listsorter/example1
> >>>>>
> >>>>> Laurent
> >>>>>
> >>>>> -Message d'origine-
> >>>>> De : sommeralex [mailto:[hidden
> >>>>> email]<http://user/SendEmail.jtp?type=node&node=5479777&i=0>]
> >>>>>
> >>>>> Envoyé : lundi 13 février 2012 16:07
> >>>>> À : [hidden email]
> >>>>> <http://user/SendEmail.jtp?type=node&node=5479777&i=1>
> >>>>> Objet : implementing a sortable list with jQuery
> >>>>>
> >>>>> Hi!
> >>>>>
> >>>>> I need to have sortable list by dragging 

Re: implementing a sortable list with jQuery

2012-02-13 Thread Guerin Laurent
Try with exanpe.version in your properties and not exanpe-version

Envoyé de mon iPhone

Le 13 févr. 2012 à 18:33, "sommeralex"  a écrit :

> Hi Guerin,
> 
> i have the error: ArtifactDescriptorException: Failed to read artifact
> descriptor for fr.exanpe.ex (Click for 91 more)
> 
>
>fr.exanpe
>exanpe-t5-lib
>${exanpe.version}
>
> 
>
>1.2.0
> 
> 3.2.0-SNAPSHOT
>5.3.1
> 
> 9.1-901.jdbc4
>1.8.0.7
>
> 
> 2012/2/13 Alexander Sommer 
> 
>> found the answer: 
>> 1.2.0<http://exanpe.github.com/exanpe-t5-lib/changes-report.html#a1.2.0>
>> 
>> will test it.
>> 
>> thx
>> 
>> 
>> 2012/2/13 Alexander Sommer 
>> 
>>> Hi Laurent,
>>> 
>>> Is it comaptible with tabestry 3.2? what is the latest version? on:
>>> https://github.com/exanpe/exanpe-t5-lib i dont see the version number.
>>> is it 1.3?
>>> 
>>> thx
>>> 
>>> 2012/2/13 Guerin Laurent [via Tapestry] <
>>> ml-node+s1045711n5479868...@n5.nabble.com>
>>> 
>>> This should work because we use YUI, so you shouldn't have any
>>>> Javascript conflict with JQuery, but i haven't tried.
>>>> To test, add exanpe-t5-lib dependency, annotate your module class with
>>>> @SubModule(ExanpeLibraryModule.class) and declare the exanpe namespace on
>>>> your page (xmlns:ex="tapestry-library:exanpe").
>>>> More informations here :
>>>> http://exanpe.github.com/exanpe-t5-lib/getting_started.html
>>>> 
>>>> 
>>>> 
>>>> -Message d'origine-
>>>> De : sommeralex [mailto:[hidden 
>>>> email]<http://user/SendEmail.jtp?type=node&node=5479868&i=0>]
>>>> 
>>>> Envoyé : lundi 13 février 2012 17:56
>>>> À : [hidden email]<http://user/SendEmail.jtp?type=node&node=5479868&i=1>
>>>> Objet : Re: implementing a sortable list with jQuery
>>>> 
>>>> HI Laurent,
>>>> 
>>>> thanks! can i mix this with jQuery? And if so, how? I need jQuery
>>>> because of the multiple file upload component..
>>>> 
>>>> alex
>>>> 
>>>> 2012/2/13 Guerin Laurent [via Tapestry] <
>>>> [hidden email] <http://user/SendEmail.jtp?type=node&node=5479868&i=2>>
>>>> 
>>>>> Hi,
>>>>> We have a such component in exanpe-t5-lib, but not implemented with
>>>>> JQuery.
>>>>> You can have a look at our online demo here :
>>>>> http://exanpe-t5-lib.appspot.com/components/listsorter/example1
>>>>> 
>>>>> Laurent
>>>>> 
>>>>> -Message d'origine-
>>>>> De : sommeralex [mailto:[hidden
>>>>> email]<http://user/SendEmail.jtp?type=node&node=5479777&i=0>]
>>>>> 
>>>>> Envoyé : lundi 13 février 2012 16:07
>>>>> À : [hidden email]
>>>>> <http://user/SendEmail.jtp?type=node&node=5479777&i=1>
>>>>> Objet : implementing a sortable list with jQuery
>>>>> 
>>>>> Hi!
>>>>> 
>>>>> I need to have sortable list by dragging the list elements and would
>>>>> like to store the order at the end.
>>>>> 
>>>>> The http://tapestry5-jquery.com/core/docsgrid does not provide a
>>>>> component, so i thought i could take this one:
>>>>> 
>>>>> http://blogs.fau.de/pp/2010/09/01/sortierbare-elemente-in-tapestry-per
>>>>> -jquery-ui/
>>>>> 
>>>>> What i did, so far, is this:
>>>>> 
>>>>> >>>>  t:sidebarTitle="Menu"
>>>>>  xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd";
>>>>>  xmlns:p="tapestry:parameter"
>>>>>xmlns:j="tapestry-library:jquery">
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> >>>> id="${fileElement.id}">${fileElement.id} ${fileElement.name}
>>>>>  # ${message:save} >>>> context="literal:dummy">
>>>>> 
>>>>> 
>>>>> 
>>>>> And my class file:
>>>>> 
>>>&

RE: implementing a sortable list with jQuery

2012-02-13 Thread Guerin Laurent
This should work because we use YUI, so you shouldn't have any Javascript 
conflict with JQuery, but i haven't tried.
To test, add exanpe-t5-lib dependency, annotate your module class with 
@SubModule(ExanpeLibraryModule.class) and declare the exanpe namespace on your 
page (xmlns:ex="tapestry-library:exanpe").
More informations here : 
http://exanpe.github.com/exanpe-t5-lib/getting_started.html


-Message d'origine-
De : sommeralex [mailto:alexander.som...@gmail.com] 
Envoyé : lundi 13 février 2012 17:56
À : users@tapestry.apache.org
Objet : Re: implementing a sortable list with jQuery

HI Laurent,

thanks! can i mix this with jQuery? And if so, how? I need jQuery because of 
the multiple file upload component..

alex

2012/2/13 Guerin Laurent [via Tapestry] <
ml-node+s1045711n5479777...@n5.nabble.com>

> Hi,
> We have a such component in exanpe-t5-lib, but not implemented with 
> JQuery.
> You can have a look at our online demo here :
> http://exanpe-t5-lib.appspot.com/components/listsorter/example1
>
> Laurent
>
> -Message d'origine-
> De : sommeralex [mailto:[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5479777&i=0>]
>
> Envoyé : lundi 13 février 2012 16:07
> À : [hidden email] 
> <http://user/SendEmail.jtp?type=node&node=5479777&i=1>
> Objet : implementing a sortable list with jQuery
>
> Hi!
>
> I need to have sortable list by dragging the list elements and would 
> like to store the order at the end.
>
> The http://tapestry5-jquery.com/core/docsgrid does not provide a 
> component, so i thought i could take this one:
>
> http://blogs.fau.de/pp/2010/09/01/sortierbare-elemente-in-tapestry-per
> -jquery-ui/
>
> What i did, so far, is this:
>
>t:sidebarTitle="Menu"
>   xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd";
>   xmlns:p="tapestry:parameter"
> xmlns:j="tapestry-library:jquery">
>
>
>
>
>
> 
>  id="${fileElement.id}">${fileElement.id} ${fileElement.name} 
>  # ${message:save}  context="literal:dummy">
>
> 
>
> And my class file:
>
> @Property
> private List fileElements;
>
> @Property
> private FileElement fileElement;
>
> void pageAttached(){
> System.out.println("page attached");
> uploadedFiles = new ArrayList();
> fileElements = new ArrayList();
>
> fileElements.add(new FileElement(1, "test"));
> fileElements.add(new FileElement(2, "test2"));
> }
>
> the class FileElement is just a class with id as int and name as 
> String with getters / setters.
>
> so, now, two questions:
>
> question 1:
>
> http://blogs.fau.de/pp/2010/09/01/sortierbare-elemente-in-tapestry-per
> -jquery-ui/
> says we have to implement
>
>  href="${asset:jqueryui/themes/base/jquery.ui.all.css}"
> rel="stylesheet" />
>
>
>
>
>
>
> but, is this not implicit in xmlns:j="tapestry-library:jquery ? if i 
> have to add this that way, how can i reference my jquery asset which 
> is stored in my mvn. folder?
>
> question 2:
>
> if i am adding the second part of code
>
> function storeOrder() {
> var result = $('#sortable').sortable('toArray');
> var context = "";
> for (var id in result) {
> if (context == "") {
> context = result[id];
> } else {
> context = context + "_" + result[id];
> }
> }
> window.location = "/${pageName}" + ".save/" + context; }
>
> i get the exception
>
> Exception assembling root component of page Gallery: Could not convert 
> 'pageName' into a component parameter binding: Exception generating 
> conduit for expression 'pageName': Class com.scrollstory.pages.Gallery 
> does not contain a property (or public field) named 'pageName'.
>
> .. so, sorting my list does not work.. :-(
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/implementing-a-sortable-list-wit
> h-jQuery-tp5479509p5479509.html Sent from the Tapestry - User mailing 
> list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5479777&i=2>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5479777&i=3>
>
>
> -
> To unsubscribe, e-ma

RE: implementing a sortable list with jQuery

2012-02-13 Thread Guerin Laurent
Hi,
We have a such component in exanpe-t5-lib, but not implemented with JQuery.
You can have a look at our online demo here : 
http://exanpe-t5-lib.appspot.com/components/listsorter/example1

Laurent

-Message d'origine-
De : sommeralex [mailto:alexander.som...@gmail.com] 
Envoyé : lundi 13 février 2012 16:07
À : users@tapestry.apache.org
Objet : implementing a sortable list with jQuery

Hi!

I need to have sortable list by dragging the list elements and would like to 
store the order at the end.

The http://tapestry5-jquery.com/core/docsgrid does not provide a component, so 
i thought i could take this one:
http://blogs.fau.de/pp/2010/09/01/sortierbare-elemente-in-tapestry-per-jquery-ui/

What i did, so far, is this:

http://tapestry.apache.org/schema/tapestry_5_3.xsd";
  xmlns:p="tapestry:parameter"
xmlns:j="tapestry-library:jquery">



   


${fileElement.id} ${fileElement.name}  # 
${message:save} 



And my class file:

@Property
private List fileElements;

@Property
private FileElement fileElement;

void pageAttached(){
System.out.println("page attached");
uploadedFiles = new ArrayList();
fileElements = new ArrayList();

fileElements.add(new FileElement(1, "test"));
fileElements.add(new FileElement(2, "test2"));
}

the class FileElement is just a class with id as int and name as String with 
getters / setters. 

so, now, two questions:

question 1:
http://blogs.fau.de/pp/2010/09/01/sortierbare-elemente-in-tapestry-per-jquery-ui/
says we have to implement 








but, is this not implicit in xmlns:j="tapestry-library:jquery ? if i have to 
add this that way, how can i reference my jquery asset which is stored in my 
mvn. folder?

question 2:

if i am adding the second part of code

function storeOrder() {
var result = $('#sortable').sortable('toArray');
var context = "";
for (var id in result) {
if (context == "") {
context = result[id];
} else {
context = context + "_" + result[id];
}
}
window.location = "/${pageName}" + ".save/" + context; }

i get the exception 

Exception assembling root component of page Gallery: Could not convert 
'pageName' into a component parameter binding: Exception generating conduit for 
expression 'pageName': Class com.scrollstory.pages.Gallery does not contain a 
property (or public field) named 'pageName'.

.. so, sorting my list does not work.. :-(



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/implementing-a-sortable-list-with-jQuery-tp5479509p5479509.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



[ANN] Exanpe-t5-lib 1.2.0 available

2012-01-10 Thread Guerin Laurent
Hi all,

We are proud to announce the availability of exanpe-t5-lib 1.2.0 release.
Since the last two months (last release), we kept developing new components, 
mixins, and services to fill out the Tapestry core:

Components :
- Added ListSorter component:
Sort a list of data using drag and drop
- Added full set of Authorization components, mixins and services:
Manage authorizations based on user's roles and restrict 
component/page/method access

Mixins :
- Added GoogleMap component and full set of markers:
Display a GoogleMap and some points of interest, polylines or polygons

- Added RichTextEditor mixin:
Display a Textarea allowing rich HTML text content to be written

Services :
- Added LocaleSession service:
Internationalization : Store your user Locale in session with 
LocaleSession
- Added @ContextPageReset service:
Reset some page information according to a specific URL context

- Some bug fixes:
Fixed Contextual Menu position
Fixing Accordion render bug
Fixing MenuBar render bug

Note that this release is fully compatible with Tapestry 5.2.x and 5.3.x 
versions (tested on 5.2.0, 5.2.6 and 5.3.1).
Thanks for Tapestry backwards compatibility and bridges which enlightened the 
strong architecture the framework is based on.

The release is available from the Maven central repository :


fr.exanpe
exanpe-t5-lib
1.2.0


The online demo has been updated here: http://exanpe-t5-lib.appspot.com/ The 
full documentation is available here: http://exanpe.github.com/exanpe-t5-lib/

Thanks for everyone using it and encouraging us improving the library day after 
day :)
 
Cheers!

--
Exanpe Team
Julien Maupoux / Laurent Guérin

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



RE: [ANN] JumpStart upgraded to Tapestry 5.3.1

2012-01-02 Thread Guerin Laurent
As always, a really useful resource :-)
Many thanks Geoff for your work!

Laurent

-Message d'origine-
De : Geoff Callender [mailto:geoff.callender.jumpst...@gmail.com] 
Envoyé : lundi 2 janvier 2012 05:38
À : Tapestry users
Objet : [ANN] JumpStart upgraded to Tapestry 5.3.1

Hi all,

JumpStart has been upgraded from Tapestry 5.2.6 to 5.3.1. There are some new 
examples for some new components:

- Kaptcha
- Tree Browse
- Checklist (in Core Input Components example)

and AjaxResponseResponder is used everywhere instead of MultiZoneUpdate.

To get this upgrade out we had to depend on a snapshot version of ChenilleKit - 
I'll drop another release when ChenilleKit 1.3.3 goes final into the repos.

The new JumpStart version is 5.6.1 and it is running in the usual place:

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

Cheers,

Geoff


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



RE: [ANN] exanpe-t5-lib 1.1.0

2011-11-23 Thread Guerin Laurent
Hi Pablo,

The tutorial exists and the @Submodule is documented here : 
http://exanpe.github.com/exanpe-t5-lib/getting_started.html

Cheers,

Laurent

-Message d'origine-
De : Pablo Borges [mailto:pablosbor...@gmail.com] 
Envoyé : mercredi 23 novembre 2011 16:53
À : Tapestry users
Objet : Re: [ANN] exanpe-t5-lib 1.1.0

would be interesting you put a tutorial to install this library on the project 
page.
I had to flip the github to add this line

@Submodule (ExanpeLibraryModule.class)

the library to work on my project.

2011/11/23 Guerin Laurent 

> Hi all,
>
> We are pleased to announce the release 1.1.0 of exanpe-t5-lib.
>
> This new version includes :
> - Full compatibility between Tapestry 5.2.6 and 5.3
> - Some new components :
>- MenuBar and Menu components : Add one basic Menu bar or one 
> multi level Horizontal Menu to your website
>- VerticalMenu : Add a sidebar menu on your website
> - Some new mixins :
>- PasswordStrengthChecker : Shows a real time estimation of the 
> strength of a user password
>- AjaxValidation : Validate a textfield component with an Ajax 
> request
> - Some new features :
>- Added JavaScript events handler on our components / mixins to 
> ease client side interaction
>- Updated the Dialog mixin with rich render
>
> The lib is available from the Maven central repository, just add this 
> dependency in your pom.xml :
>
> 
>fr.exanpe
>exanpe-t5-lib
>1.1.0
> 
>
> You can have a look at the updated demo :
> http://exanpe-t5-lib.appspot.com/
>
> This is always a real pleasure to work with Tapestry and we plan to 
> keep on contributing through our library according to people needs !
> Feel free to share any comment or suggestion and thanks for your support !
> Bugs and improvments can be submitted to our Github space :
> https://github.com/exanpe
>
> Tapestry 5.3 rocks !
>
> --
> Exanpe Team.
> Julien Maupoux / Laurent Guerin
>
> -
> 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



[ANN] exanpe-t5-lib 1.1.0

2011-11-23 Thread Guerin Laurent
Hi all,

We are pleased to announce the release 1.1.0 of exanpe-t5-lib.

This new version includes :
- Full compatibility between Tapestry 5.2.6 and 5.3 
- Some new components :
- MenuBar and Menu components : Add one basic Menu bar or one multi 
level Horizontal Menu to your website
- VerticalMenu : Add a sidebar menu on your website
- Some new mixins :
- PasswordStrengthChecker : Shows a real time estimation of the 
strength of a user password
- AjaxValidation : Validate a textfield component with an Ajax request
- Some new features :
- Added JavaScript events handler on our components / mixins to ease 
client side interaction
- Updated the Dialog mixin with rich render

The lib is available from the Maven central repository, just add this 
dependency in your pom.xml :


fr.exanpe
exanpe-t5-lib
1.1.0


You can have a look at the updated demo : http://exanpe-t5-lib.appspot.com/

This is always a real pleasure to work with Tapestry and we plan to keep on 
contributing through our library according to people needs !
Feel free to share any comment or suggestion and thanks for your support !
Bugs and improvments can be submitted to our Github space : 
https://github.com/exanpe

Tapestry 5.3 rocks !

--
Exanpe Team.
Julien Maupoux / Laurent Guerin

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



RE: Possible bug in 5.3 with Mixin parameters

2011-09-12 Thread Guerin Laurent
Thanks, i'll try to create a simplified project quickly and file a JIRA.

-Message d'origine-
De : Robert Zeigler [mailto:robert.zeig...@roxanemy.com] 
Envoyé : lundi 12 septembre 2011 17:35
À : Tapestry users
Objet : Re: Possible bug in 5.3 with Mixin parameters

Sounds like a bug.  If you can create a simplified project (eg: 1 page, 1 
mixin) that duplicates the issue, then create a Jira and attach the project.

Robert

On Sep 12, 2011, at 9/1210:18 AM , Guerin Laurent wrote:

> Hi all,
> 
> In our Tapestry 5 library (exanpe-t5-lib), we provide some mixins containing 
> some parameters declared as "required=true" AND with a default value provided.
> These parameters are required for the operation of the mixin.
> 
> For example, on Dialog mixin, we have :
> 
>@Parameter(value = "confirm", required = true, allowNull = false, 
> defaultPrefix = BindingConstants.LITERAL)
>private DialogRenderModeEnum renderMode;
> 
> If this required parameter is not explicity declared in the TML :
> - In 5.2.6, everything is ok : the default value is used
> - In 5.3-beta-5, we get the following Exception :
>  Parameter(s) 'Dialog.renderMode' are required for 
> org.apache.tapestry5.corelib.components.ActionLink, but have not been bound.
> 
> The TML example looks like this :
> link1
> 
> With a simple type for mixin parameter (Integer or String), the same error 
> occurs.
> This behavior is only for mixins, not for components.
> 
> Should i submit a JIRA for this issue ?
> 
> Laurent
> 
> -
> 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: Possible bug in 5.3 with Mixin parameters

2011-09-12 Thread Guerin Laurent
-Message d'origine-
De : Josh Canfield [mailto:joshcanfi...@gmail.com] 
Envoyé : lundi 12 septembre 2011 17:34
À : Tapestry users
Objet : Re: Possible bug in 5.3 with Mixin parameters

On Sep 12, 2011 8:23 AM, "Guerin Laurent"  wrote:
>
> Hi all,
>
> In our Tapestry 5 library (exanpe-t5-lib), we provide some mixins
containing some parameters declared as "required=true" AND with a default value 
provided.

What do you mean by default value? Are you providing a defaultRenderMode 
method? If so then your parameter is not actually required, right?

This is the recent discussion given in this thread :
http://osdir.com/ml/dev-tapestry-apache/2011-08/msg00307.html 

Howard said :
"Required means that the value is required for the operation of the
component. It does not mean that it must be explicitly bound when the
component can provide a default."



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



Possible bug in 5.3 with Mixin parameters

2011-09-12 Thread Guerin Laurent
Hi all,

In our Tapestry 5 library (exanpe-t5-lib), we provide some mixins containing 
some parameters declared as "required=true" AND with a default value provided.
These parameters are required for the operation of the mixin.

For example, on Dialog mixin, we have :

@Parameter(value = "confirm", required = true, allowNull = false, 
defaultPrefix = BindingConstants.LITERAL)
private DialogRenderModeEnum renderMode;

If this required parameter is not explicity declared in the TML :
- In 5.2.6, everything is ok : the default value is used
- In 5.3-beta-5, we get the following Exception :
  Parameter(s) 'Dialog.renderMode' are required for 
org.apache.tapestry5.corelib.components.ActionLink, but have not been bound.

The TML example looks like this :
link1

With a simple type for mixin parameter (Integer or String), the same error 
occurs.
This behavior is only for mixins, not for components.

Should i submit a JIRA for this issue ?

Laurent

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



RE: [ANN] exanpe-t5-lib : new Tapestry 5 library

2011-09-07 Thread Guerin Laurent
Thanks for all your messages. 
This encourages us to keep providing our efforts and provide soon more new 
features and components.

Tapestry rocks!

Exanpe team
http://exanpe.github.com/exanpe-t5-lib/

-Message d'origine-
De : Geoff Callender [mailto:geoff.callender.jumpst...@gmail.com] 
Envoyé : mardi 6 septembre 2011 14:12
À : Tapestry users
Objet : Re: [ANN] exanpe-t5-lib : new Tapestry 5 library

Thumbs up.
Geoff

On 06/09/2011, at 9:35 AM, Taha Hafeez wrote:

> Cool !!
> 
> Thanks for sharing.
> 
> 2011/9/6 François Facon :
>> Very Nice work.
>> Felicitations.
>> François
>> 
>> 2011/9/5 Muhammad Gelbana :
>>> Congrats !!
>>> 
>>> Magnificent components, I love many of them :)
>>> 
>>> On Mon, Sep 5, 2011 at 8:43 PM, Guerin Laurent 
>>> wrote:
>>> 
>>>> Hi everyone!
>>>> 
>>>> 
>>>> 
>>>> We are pleased to announce you the release 1.0.0 of our Tapestry 5 Library:
>>>> exanpe-t5-lib.
>>>> 
>>>> 
>>>> 
>>>> This library aims to provide a full set of components ready for use 
>>>> and easy to integrate in any web application, as well as providing 
>>>> a new skin for some of the most popular Tapestry 5 native 
>>>> components.
>>>> 
>>>> 
>>>> 
>>>> You can have a look to our demo here (GAE hosting, sorry about that):
>>>> http://exanpe-t5-lib.appspot.com/
>>>> 
>>>> 
>>>> 
>>>> A full documentation is available here:
>>>> http://exanpe.github.com/exanpe-t5-lib/
>>>> 
>>>> 
>>>> 
>>>> The lib is available into Maven central repository, you just have 
>>>> to add this dependency in your pom.xml :
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> fr.exanpe
>>>> 
>>>> exanpe-t5-lib
>>>> 
>>>> 1.0.0
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> Feel free to share any comment or suggestion!
>>>> 
>>>> 
>>>> 
>>>> Exanpe Team.
>>>> 
>>>> (Julien Maupoux / Laurent Guerin)
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> *Regards,*
>>> *Muhammad Gelbana
>>> Java Developer*
>>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> 
> 
> --
> Regards
> 
> Taha Hafeez Siddiqi (tawus)
> http://tawus.wordpress.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



[ANN] exanpe-t5-lib : new Tapestry 5 library

2011-09-05 Thread Guerin Laurent
Hi everyone!



We are pleased to announce you the release 1.0.0 of our Tapestry 5 Library:
exanpe-t5-lib.



This library aims to provide a full set of components ready for use and easy
to integrate in any web application, as well as providing a new skin for
some of the most popular Tapestry 5 native components.



You can have a look to our demo here (GAE hosting, sorry about that):
http://exanpe-t5-lib.appspot.com/



A full documentation is available here:
http://exanpe.github.com/exanpe-t5-lib/



The lib is available into Maven central repository, you just have to add this 
dependency in your pom.xml :





fr.exanpe

exanpe-t5-lib

1.0.0





Feel free to share any comment or suggestion!



Exanpe Team.

(Julien Maupoux / Laurent Guerin)


Tapestry 5 in Action - MEAP Update

2011-07-03 Thread Guerin Laurent
Great new : chapters 5, 6 and 7 are now available through MEAP.
I can't wait to read more.

Thanks Igor.

Envoyé de mon iPhone


Re: Java Magic has 10000+ hits

2011-06-28 Thread Guerin Laurent
Me too :-)

Envoyé de mon iPhone

Le 28 juin 2011 à 18:37, "Andreas Andreou"  a écrit :

> wp stats must be wrong - i'm defitively the other one!
> 
> On Tue, Jun 28, 2011 at 19:34, Inge Solvoll  wrote:
>> I'm the other one. Nice to meet you :)
>> 
>> On Tuesday, June 28, 2011, dragan.sahpas...@gmail.com
>>  wrote:
>>> I have you on my rss reader.
>>> I'm I the only one?
>>> 
>>> Cheers,
>>> Dragan Sahpaski
>>> 
>>> 
>>> 
>>> On Tue, Jun 28, 2011 at 9:20 AM, Taha Hafeez 
>>> wrote:
>>> 
 Thank God I have only 1 :)
 
 
 On Tue, Jun 28, 2011 at 12:47 PM, Chris Collins  wrote:
 
> Do you know what your uniques are, were those browser or rss reader
> requests?  If you had 133 people who added your rss to their rss reader,
> assuming it only fetched from your feed once a day that would be about
 130
> people :-{
> 
> Best
> 
> C
> 
> 
> On Jun 27, 2011, at 11:50 PM, Taha Hafeez wrote:
> 
>> Hi
>> 
>> More than 1 hits in two and a half months, not bad.
>> 
>> regards
>> Taha
> 
> 
> -
> 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
>> 
>> 
> 
> 
> 
> -- 
> Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
> Apache Tapestry PMC / http://chesstu.be owner
> Open Source / JEE Consulting
> 
> -
> 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 : Trying out 5.3.0

2011-06-19 Thread Guerin Laurent
Without the typo...

  

apache-snapshots

https://repository.apache.org/content/repositories/orgapachetapestry-023/




De : Guerin Laurent [lgue...@sopragroup.com]
Date d'envoi : dimanche 19 juin 2011 11:32
À : Tapestry users
Objet : RE : Trying out 5.3.0

Hi,

try with this configuration (repository url param) :

 

apache-snapshots

https://repository.apache.org/content/repositories/orgapachetapestry-023/




5.3.0


Laurent.


De : Angelo C. [angelochen...@gmail.com]
Date d'envoi : dimanche 19 juin 2011 11:02
À : users@tapestry.apache.org
Objet : Trying out 5.3.0

Hi,

I updated a working 5.2.4 project's pom with following changes:
 

apache-snapshots

https://repository.apache.org/content/repositories/orgapachetapestry-023/org/apache/tapestry/




5.3.0

but it does not pull down 5.3.0 jars, instead, it gives this:

Downloading:
https://repository.apache.org/content/repositories/orgapachetapestry-023/org/apache/tapestry/org/apache/tapestry/tapestry-core/5.3.0/tapestry-core-5.3.0.pom
[WARNING] The POM for org.apache.tapestry:tapestry-core:jar:5.3.0 is
missing, no dependency information available

hints?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Trying-out-5-3-0-tp4503041p4503041.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


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



RE : Trying out 5.3.0

2011-06-19 Thread Guerin Laurent
Hi,

try with this configuration (repository url param) :

 

apache-snapshots

https://repository.apache.org/content/repositories/orgapachetapestry-023/




5.3.0


Laurent.


De : Angelo C. [angelochen...@gmail.com]
Date d'envoi : dimanche 19 juin 2011 11:02
À : users@tapestry.apache.org
Objet : Trying out 5.3.0

Hi,

I updated a working 5.2.4 project's pom with following changes:
 

apache-snapshots

https://repository.apache.org/content/repositories/orgapachetapestry-023/org/apache/tapestry/




5.3.0

but it does not pull down 5.3.0 jars, instead, it gives this:

Downloading:
https://repository.apache.org/content/repositories/orgapachetapestry-023/org/apache/tapestry/org/apache/tapestry/tapestry-core/5.3.0/tapestry-core-5.3.0.pom
[WARNING] The POM for org.apache.tapestry:tapestry-core:jar:5.3.0 is
missing, no dependency information available

hints?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Trying-out-5-3-0-tp4503041p4503041.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 : RE : Mixin competes with Zone's event handler

2011-06-16 Thread Guerin Laurent
Yep, forgot to mention the replacement and the potential consequence when 
original event differ from the normal click event.
Thanks for the add :-)


De : Josh Canfield [joshcanfi...@gmail.com]

/*
 * Replace the normal click event, knowing that in most cases, the
 * original link or button has an Tapestry.ACTION_EVENT event handler to
 * do its real work.
*/
element.stopObserving("click");


On Thu, Jun 16, 2011 at 10:55 AM, Guerin Laurent  wrote:
> Perhaps, i have missing something, but i think you can, by setting the 
> parameter InitializationPriority.LATE on your Javascript initialisation call :
>
>// Late, to overwrite other event handlers
>javascriptSupport.addInitializerCall(InitializationPriority.LATE, 
> "yourModalBoxBuilder", spec);
>
> In this way, your handle has the priority and you'll be able stop the initial 
> event fired by the actionlink (even if there is an ajax zone).
>
> This is what is done by the Confirm modalBox mixin written by Howard into 
> tapx project :
>  
> https://github.com/hlship/tapx/blob/master/tapx-core/src/main/java/com/howardlewisship/tapx/core/mixins/Confirm.java
>
> My 2 cents :-)
>
> Laurent
> 
> De : Josh Canfield [joshcanfi...@gmail.com]
> Date d'envoi : jeudi 16 juin 2011 18:48
> À : Tapestry users
> Objet : Re: Mixin competes with Zone's event handler
>
>> is there any way to manage to execute the Tapestry.ZoneManager's event
>> handler only after user clicks Yes button on my mixin's Yes button?
>
> No, I don't believe you can. As I recall it binds to click on the 
> and events are executed in an undefined order.
>
> The following link from the list describes doing exactly what you're
> looking for.
>
> http://tapestry-users.832.n2.nabble.com/quot-Confirm-quot-mixin-won-t-cancel-when-in-zone-td5048950.html#a5048950
>
> Josh
>
> On Thu, Jun 16, 2011 at 8:42 AM, Nicolas Barrera  wrote:
>> Hi T5 users!
>>
>> I got the following problem (I dsthink my mixin is competing with the Zone's
>> javascript code when the actionLink I apply my mixing has also a t:zone),
>>
>> i 'm developing a confirmation dialog box Mixin... (using some cool modal
>> window plugin)
>>
>> that is.., i got an ActionLink with t:mixin="confirmBox" attribute so when i
>> click on it a dialog box appears with two buttons (Yes/No) if I click No the
>> dialog box dissapears and
>> the page remain the same (I 'm using prototype's Event.stop(e) here)
>>
>> If I click Yes, then the dialog box dissapears and the page should do what
>> clicking in an ordinary eventLink would do.
>>
>>
>> The problem arises when I apply my mixin to an actionLink which also has a
>> zone associated to it, in this case the dialog box appears but rapidly
>> dissapears and the zone is refreshed, first it seemed that
>> the Event.stop(e) wasn't working but then,
>>
>> I realized that the actionLink had two listeners to the action link's
>> onclick event:
>>
>> * My event handler
>> * And the Tapestry.ZoneManager event handler where he does the ajax request
>> and refreshes the zone
>>
>>
>> is there any way to manage to execute the Tapestry.ZoneManager's event
>> handler only after user clicks Yes button on my mixin's Yes button?
>>
>> cheers and thanks in advance!
>>
>> Nicolás.-
>>
>
> -
> 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


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



RE : Mixin competes with Zone's event handler

2011-06-16 Thread Guerin Laurent
Perhaps, i have missing something, but i think you can, by setting the 
parameter InitializationPriority.LATE on your Javascript initialisation call :

// Late, to overwrite other event handlers
javascriptSupport.addInitializerCall(InitializationPriority.LATE, 
"yourModalBoxBuilder", spec);

In this way, your handle has the priority and you'll be able stop the initial 
event fired by the actionlink (even if there is an ajax zone).

This is what is done by the Confirm modalBox mixin written by Howard into tapx 
project :
 
https://github.com/hlship/tapx/blob/master/tapx-core/src/main/java/com/howardlewisship/tapx/core/mixins/Confirm.java

My 2 cents :-)

Laurent

De : Josh Canfield [joshcanfi...@gmail.com]
Date d'envoi : jeudi 16 juin 2011 18:48
À : Tapestry users
Objet : Re: Mixin competes with Zone's event handler

> is there any way to manage to execute the Tapestry.ZoneManager's event
> handler only after user clicks Yes button on my mixin's Yes button?

No, I don't believe you can. As I recall it binds to click on the 
and events are executed in an undefined order.

The following link from the list describes doing exactly what you're
looking for.

http://tapestry-users.832.n2.nabble.com/quot-Confirm-quot-mixin-won-t-cancel-when-in-zone-td5048950.html#a5048950

Josh

On Thu, Jun 16, 2011 at 8:42 AM, Nicolas Barrera  wrote:
> Hi T5 users!
>
> I got the following problem (I dsthink my mixin is competing with the Zone's
> javascript code when the actionLink I apply my mixing has also a t:zone),
>
> i 'm developing a confirmation dialog box Mixin... (using some cool modal
> window plugin)
>
> that is.., i got an ActionLink with t:mixin="confirmBox" attribute so when i
> click on it a dialog box appears with two buttons (Yes/No) if I click No the
> dialog box dissapears and
> the page remain the same (I 'm using prototype's Event.stop(e) here)
>
> If I click Yes, then the dialog box dissapears and the page should do what
> clicking in an ordinary eventLink would do.
>
>
> The problem arises when I apply my mixin to an actionLink which also has a
> zone associated to it, in this case the dialog box appears but rapidly
> dissapears and the zone is refreshed, first it seemed that
> the Event.stop(e) wasn't working but then,
>
> I realized that the actionLink had two listeners to the action link's
> onclick event:
>
> * My event handler
> * And the Tapestry.ZoneManager event handler where he does the ajax request
> and refreshes the zone
>
>
> is there any way to manage to execute the Tapestry.ZoneManager's event
> handler only after user clicks Yes button on my mixin's Yes button?
>
> cheers and thanks in advance!
>
> Nicolás.-
>

-
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 can I use Progressive display in my code

2011-06-15 Thread Guerin Laurent
Hi,

You have to wrap your loop with progressiveDisplay component and handle 
onProgressiveDisplay event.

Try to use like this :


  
   ${modelBean.accountName}
 


In your Java code, add :

   @InjectComponent
private Loop accountListItemsLoop;

   Object onProgressiveDisplayFromProgressiveDisplayCompleteList()
{
return accountListItemsLoop;
}

More information on progressivedisplay component parameters here :

http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/ProgressiveDisplay.html

Laurent


De : pradeepchy [pradeep...@gmail.com]
Date d'envoi : mercredi 15 juin 2011 18:34
À : users@tapestry.apache.org
Objet : How can I use Progressive display in my code

I want to use  in my code which initially display the
list of users. When a search button is clicked I progress icon to display to
let the user know about the processing.
The code I have used is as follows :






  

Search
   
   ${modelBean.accountName}
 
   
 

In Java Code :

@Property
@Inject
private Block consortiaListBlock;

And a Handler to respond to search button :

@OnEvent(component = "account_search", value = EventConstants.SUBMIT)
Object getSubAccountUserList() {
  //Processing logic
return consortiaListBlock;
 }


My problem is I am not able to find a way to include 
in my code. Please help me to sort out the problem.


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-can-I-use-Progressive-display-in-my-code-tp4491860p4491860.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: RE : Eclipse IDE and TML code completion

2011-06-08 Thread Guerin Laurent
Mark is right, you have to use the JSP editor.
So, i have tested with Eclipse Helios  and it work for me.

Laurent.

-Message d'origine-
De : Mark [mailto:mark-li...@xeric.net] 
Envoyé : mercredi 8 juin 2011 15:49
À : Tapestry users; onj888-tapes...@yahoo.com.hk
Objet : Re: RE : Eclipse IDE and TML code completion

On Tue, Jun 7, 2011 at 12:04 AM,   wrote:
>it doesn't response when I type 

RE : Eclipse IDE and TML code completion

2011-06-05 Thread Guerin Laurent
Hi,

you're right, the file is broken.
I have updated the wiki page.
You can also get the proper version here : 
https://github.com/downloads/exanpe/tapestry-tldgen/NewTMLTemplate.xml

BTW, you should also look at the WTP Eclipse plugin is being developed by Gavin 
Lei in the scope of Google Summer of Code 
(http://code.google.com/p/tapestrytools/).
This looks very promising.


De : onj888-tapes...@yahoo.com.hk [onj888-tapes...@yahoo.com.hk]
Date d'envoi : dimanche 5 juin 2011 17:51
À : Tapestry users; zlau.dream...@gmail.com
Objet : Re: Eclipse IDE and TML code completion

Hi, I tried to follow the instruction on the page, but I couldn't import
the template in eclipse.
Does it support the latest eclipse 3.6.2? or the template from
 
https://issues.apache.org/jira/browse/TAP5-120?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aworklog-tabpanel#issue-tabs
is a broken one?

Thanks
John

? 2010/9/22 16:50, Laurent Guerin ??:
> For those interested in using Eclipse code completion with tml files,
> EXANPE Team (Julien Maupoux, Katia Aresti and myself) has developped a
> Maven plugin that allow you to generate a tld describing any Tapestry
> 5 components library.
>
> The plugin uses both Javadoc and @Parameter annotation to perform the
> generation.
>
> Once you have generated your TLD, just to configure Eclipse as
> described in the Wiki :
> http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse
>
> This plugin has been tested on Tapestry 5.2 itself (see result TLD
> attachment for test completion with core components).
>
> The source code of this plugin is available here :
> http://github.com/exanpe/tapestry-tldgen
>
> Informations, usage and notes available here :
> http://exanpe.free.fr/tapestry-tldgen/
>
>
> The plugin has been released as alpha version 1.0.0 and promoting into
> Maven central repository.
> So, all feedbacks are appreciated (directly on GitHub) !
>
> Best regards,
>
> Laurent Guerin
>
>
>
> -
> 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: Blog Post: Tapestry Magic #1

2011-04-19 Thread Guerin Laurent
Very interesting posts Taha !
I will follow your blog :-)

Laurent

-Message d'origine-
De : Taha Hafeez [mailto:tawus.tapes...@gmail.com] 
Envoyé : mardi 19 avril 2011 09:08
À : Tapestry users
Objet : Re: Blog Post: Tapestry Magic #1

And another one

http://tawus.wordpress.com/2011/04/19/plastic-chains-simple-chainbuilder/

regards
Taha

On Mon, Apr 18, 2011 at 1:07 PM, Taha Hafeez wrote:

> Hi Thiago & everyone..
>
> Added another post
>
> http://tawus.wordpress.com/2011/04/18/meeting-plastic/
>
> regards
> Taha
>
>
> On Mon, Apr 18, 2011 at 5:47 AM, Thiago H. de Paula Figueiredo < 
> thiag...@gmail.com> wrote:
>
>> On Sun, 17 Apr 2011 15:18:39 -0300, Adam Zimowski 
>> 
>> wrote:
>>
>>  Hi Taha -
>>>
>>
>> Hi!
>>
>>
>>  I implemented your DiscardOnPageReset solution, added some logging 
>> to
>>> trace it and it only runs transformation once on application 
>>> startup, for all pages and components. After that, it never kicks 
>>> in, as evident by my log statements.
>>>
>>
>> That's the expected behavior: class transforms are only executed when 
>> a class is loaded (first time or after a class change).
>>
>> --
>> 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
>>
>>
>

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



RE: Tapestry 5.25 autocomplete not working.

2011-04-07 Thread Guerin Laurent
Have you declare the autocomplete mixin on your textfield ?
What say the logs when Tapestry enter into your method ?

-Message d'origine-
De : cablepuff [mailto:cablep...@gmail.com] 
Envoyé : jeudi 7 avril 2011 17:18
À : users@tapestry.apache.org
Objet : Re: Tapestry 5.25 autocomplete not working.

so here is my tml file. 



I follow and add @Log and even put 

if (LOG.isDebugEnabled()) {
   LOG.debug("calling loading of frameworks starting with {}", partial); }


Are their anything missing? 

Are their samples i can see. 


I debug it in firefox, and I don't see any autocomplete css/js in source
code being render. The other tapestry component such as ajax submitting
behavior works fine. 

Thanks. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-25-autocomplete-not-working-tp4287751p4288794.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: Tapestry 5.25 autocomplete not working.

2011-04-07 Thread Guerin Laurent
Hi,

I have tested this morning with 5.2.5 version ans it work perfectly. Are you 
sure that your frameworkService method return something ?
Try to add @Log on your onProvideCompletionsFromFrameworkName to see what it's 
happend.

-Message d'origine-
De : cablepuff [mailto:cablep...@gmail.com] 
Envoyé : jeudi 7 avril 2011 06:58
À : users@tapestry.apache.org
Objet : Tapestry 5.25 autocomplete not working.

Hi i have the following field. 


public class FrameworkPage{
 @Component(id = "frameworkName")
 private TextField frameworkName;

 public List onProvideCompletionsFromFrameworkName(final String partial) {
  return this.frameworkService.getFrameworkByName(partial);
 }
}



 

I have an input field. in tml file.


It seems the auto complete is never getting fired. WHat is wrong? 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-25-autocomplete-not-working-tp4287751p4287751.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: New user and IDE issues

2011-04-05 Thread Guerin Laurent
You're welcome,

t5.2.0.tld file has been generated with tapestry-tldgen plugin applied directly 
into tapestry sources. Tomorrow i'll try to generate and upload on wiki fresh 
versions of Tld for 5.2.5 and 5.3

Le 5 avr. 2011 à 22:22, "Grioni Stefano"  a écrit :

> Hi Laurent,
> 
> Thanks for the precision! Now I get why it didn't work :). 
> One question though: How is that file (t5.2.0.tld) generated? And how can I 
> update it (for instance when Tapestry will pass to 5.3) ?
> 
> Thanks a bunch,
> 
> Stefano
> 
> On Apr 5, 2011, at 9:59 PM, Guerin Laurent wrote:
> 
>> Hi Stephano,
>> 
>> This Maven plugin tool (tapestry-tldgen) allow you to generare a tld 
>> describing your own Tapestry 5 components library.
>> 
>> If you want auto completion with the core Tapestry 5 component, you have to 
>> import this one in Eclipse :
>> https://issues.apache.org/jira/secure/attachment/12468166/t5.2.0.tld
>> 
>> Laurent.
>> 
>> Envoyé de mon iPhone
>> 
>> Le 5 avr. 2011 à 21:08, "Stefano Grioni"  a écrit :
>> 
>>> tapestry-tldgen
>> 
>> -
>> 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: New user and IDE issues

2011-04-05 Thread Guerin Laurent
Hi Stephano,

This Maven plugin tool (tapestry-tldgen) allow you to generare a tld describing 
your own Tapestry 5 components library.

If you want auto completion with the core Tapestry 5 component, you have to 
import this one in Eclipse :
https://issues.apache.org/jira/secure/attachment/12468166/t5.2.0.tld

Laurent.

Envoyé de mon iPhone

Le 5 avr. 2011 à 21:08, "Stefano Grioni"  a écrit :

> tapestry-tldgen

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



Re: New user and IDE issues

2011-04-04 Thread Guerin Laurent
Wich version of Eclipse did you use ?
The configuration work for me with Ganymede and Helios versions.

The first time, after saving configuration of the TLD, you must close the 
current TML file and reopen to made Eclipse recognize the association.

Be aware to use the good Xsd reference in your namespace declaration.

Envoyé de mon iPhone

Le 4 avr. 2011 à 19:38, "Grioni Stefano"  a écrit :

> Hello,
> 
> I have just started using Tapestry (and I already love the spirit!). I 
> however have some troubles finding an IDE that suits me.. At the moment I 
> have tried 2 : IntelliJ and Eclipse.
> IntelliJ's integration of Tapestry doesn't seems to work at all (I opened a 
> thread on Jetbrain's forum and was asked to fill a bug tracker) ... so that 
> was quick
> Using Eclipse I managed to have the whole project working fine, but not to 
> get a decent Code-Completion when it comes to Components-Completion in the 
> Views. I carefully followed the following tutorial 
> (http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse), but when I type 
> " it doesn't propose " that I am quite close to having what I need!
> 
> Is there any other IDE which provides a better Tapestry integration? Or is 
> there maybe some tutorial I didn't find explaining how to configure Eclipse 
> to get everything working?
> 
> Thanks for your time !
> 
> Best regards,
> 
> Stefano

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



Re: [ANN] Tapestry 5 in Action MEAP started

2011-03-23 Thread Guerin Laurent
Very good new, 
I'm going to buy a copy.

Envoyé de mon iPhone

Le 23 mars 2011 à 20:11, "Igor Drobiazko"  a écrit :

> Dear all,
> 
> I'm pleased to announce that the long awaited Tapestry 5 in Action book is
> available through MEAP now.
> 
> For more details read here:
> 
> http://blog.tapestry5.de/index.php/2011/03/23/tapestry-5-in-action-meap-started/
> 
> -- 
> Best regards,
> 
> Igor Drobiazko
> http://tapestry5.de

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



RE: Any good tapestry5 plugin for eclipse

2010-11-25 Thread Guerin Laurent
Hi Taha,

This wiki link is very helpfull to get Component completion with parameters and 
description for TML files into Eclipse :
http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse

Cheers,

Laurent GUÉRIN

-Message d'origine-
De : Taha Hafeez [mailto:tawus.tapes...@gmail.com] 
Envoyé : jeudi 25 novembre 2010 15:56
À : Tapestry users
Objet : Re: Any good tapestry5 plugin for eclipse

Thanks

regards
Taha

On Thu, Nov 25, 2010 at 8:21 PM, Inge Solvoll wrote:

> This one is very helpful for creating templates and switching between 
> template and java. It's also pretty much the only useful T5 eclipse plugin.
>
> http://code.google.com/p/loom-t5/
>
> On Thu, Nov 25, 2010 at 3:49 PM, Taha Hafeez  >wrote:
>
> > Hi
> >
> > Is there any good tapestry5 plugin for eclipse.
> >
> > regards
> > Taha
> >
>

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



Re: Creating custom component

2010-11-07 Thread Guerin Laurent
In addition to the Tapestry documentation and if you use Eclipse, you should 
have a look at :
http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse

This will provide you code completion on components in your tml files, with 
documentation on component itself and also on the component parameters.



Le 6 nov. 2010 à 15:49, "Josh Kamau"  a écrit :

> Thanks Sven,
> 
> This is exactly what i am talking about. How am i supposed to know that
> something like  exists? what what else is out there? and what
> else am i using the wrong way? you get my point.? I think the Hotel-booking
> application should be made complicated enough to use as many tapestry
> features as possible. I have gone through it and it doesnt have what i am
> looking for.
> 
> Thanks for your response. I will keep  trying.
> 
> Regards.
> 
> On Sat, Nov 6, 2010 at 10:37 AM, Sven Homburg wrote:
> 
>> you can also use this template code:
>> 
>> 
>> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
>> 
>> 
>>   I am a menubar
>> 
>> 
>> 
>> 
>> the  let tapestry know, that all code between 
>> and 
>> is relevant for your component and strips all away outside this tag.
>> 
>> it is the better way, if you use design tools like dreamweaver or others
>> 
>> with regards
>> Sven Homburg
>> Founder of the Chenille Kit Project
>> http://chenillekit.codehaus.org
>> 
>> 
>> 
>> 
>> 
>> 2010/11/6 Josh Kamau :
>>> thanks Thiago,
>>> 
>>> I have fixed the component as follows :
>>> 
>>> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd
>> ">
>>>   I am a menubar
>>> 
>>> 
>>> now how do i add it to my page? i have added it by putting 
>> or
>>>  and its not appearing.
>>> 
>>> this is my index page.
>>> 
>>> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
>>> 
>>>   
>>> 
>>>   
>>> 
>>>   
>>>   Hello world . Its now ${today}
>>>   
>>>   
>>> 
>>> 
>>> On Sat, Nov 6, 2010 at 6:41 AM, Thiago H. de Paula Figueiredo <
>>> thiag...@gmail.com> wrote:
>>> 
 On Sat, 06 Nov 2010 08:36:40 -0200, Josh Kamau 
 wrote:
 
 Hi guys;
> 
 
 Hi!
 
 Don't use the  tag in components' templates (unless you're
>> creating a
 Layout-style one).
 And don't forget that the name of the template is case-sensitive, so
 MenuBar.java -> MenuBar.tml.
 
 --
 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
 
 
>>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 


Re: Tapestry Not running in Weblogic

2010-11-03 Thread Guerin Laurent
Hi,

The workaround is :

1. add 

true

to the weblogic.xml of the war file.
2. wrap the war in an ear file
3. add a weblogic-application.xml file to the META-INF directory of the ear
which contains
  
  javax.xml.stream.XMLInputFactory 
  com.ctc.wstx.stax.WstxInputFactory 
 
4. deploy the ear instead of the war.

Work for me on weblogic 10.x

Original message :
http://www.mail-archive.com/users@tapestry.apache.org/msg37792.html




Envoyé de mon iPhone

Le 4 nov. 2010 à 02:16, "Howard Lewis Ship"  a écrit :

> Please search the mail archives; others have hit this and there is a
> workaround.
> 
> Consider Tapestry 5.2.2, which is in late beta, and will not have this
> problem.
> 
> On Wed, Nov 3, 2010 at 6:11 PM, Anas Mughal  wrote:
> 
>> 
>> We are evaluating Tapestry for our project. The application is supposed to
>> run on Weblogic. When we deploy our sample application built with Tapestry
>> 5.1.0.5 to Weblogic 11g, we get the following error:
>> weblogic.xml.stax.XMLStreamInputFactory cannot be cast to
>> org.codehaus.stax2.XMLInputFactory2
>> 
>> I see a bug logged for this issue at:
>> https://issues.apache.org/jira/browse/TAP5-745
>> 
>> 
>> Has this issue been resolved?
>> Is there a place where I could downloaded a patch for this?
>> 
>> 
>> Thank you in advance.
>> --
>> Anas Mughal
>> http://anas-mughal.com
>> 
>> 
>> 
> 
> 
> 
> 
> -- 
> 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


RE: Tapestry 5.2 + Hibernate + Spring ..

2010-10-27 Thread Guerin Laurent
Hello,

You can take inspiration from this simple demo application :
http://github.com/lguerin/tapestwitter

This application is build on the following stack :
- Tapestry 5.2.0
- Spring (IoC and Spring Security)
- JPA (with Hibernate implementation)
- Unitils for Unit tests
- Selenium for Integration tests

Laurent Guerin

-Message d'origine-
De : Gunnar Eketrapp [mailto:gunnar.eketr...@gmail.com] 
Envoyé : mercredi 27 octobre 2010 15:44
À : Tapestry users
Objet : Tapestry 5.2 + Hibernate + Spring ..

Hi !

I am starting a  new project based on Tapestry 5.2.

Hibernate will be used as ORM.

I would also like to use some Spring beans for mailing etc etc.

Is there any guidelines for how to integrate these three.

I.e. which versions of Spring / Hibernate to be used ...

I would like to use annotation based cofiguration for both entity classes anf 
for Spring beans ...

Perhaps there is an an example project out there using T5.2 + Hibernate + 
Spring !?

With DAO's and JUnit tests ...

Thanks in advance,
Gunnar Eketrapp

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



RE: [Announce] Tapestry 5.2 Demo application

2010-10-21 Thread Guerin Laurent
Nice job et very nice design.
Live application demonstrations is a very good initiative.

Congratulations :-)

Cheers,

Laurent Guerin

-Message d'origine-
De : Christophe Cordenier [mailto:christophe.corden...@gmail.com] 
Envoyé : jeudi 21 octobre 2010 13:41
À : Tapestry users
Objet : Fwd: [Announce] Tapestry 5.2 Demo application

Hi

I am pleased to announce that we have now a place for live application 
demonstrations. Our first application has been inspired from Seam hotel booking 
application and demonstrates a lot of Tapestry features from the early step to 
more advanced one. You can already play with it at 
http://tapestry.zones.apache.org:8180/tapestry5-hotel-booking/

Note that this application has been developed in collaboration with Tapestry
5 users, I want to thank Katia and Kalle for their time and involvement in the 
project. I encourage every one here to checkout the source code at 
http://github.com/ccordenier/tapestry5-hotel-booking and play with it

Also do not hesitate to fork, contribute and patch, this project is a 
'community project' ! I will assume the code review.

Enjoy !

--
Regards,
Christophe Cordenier.

Committer on Apache Tapestry 5
Co-creator of wooki @wookicentral.com



--
Regards,
Christophe Cordenier.

Committer on Apache Tapestry 5
Co-creator of wooki @wookicentral.com

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



RE: TapX / YUI / Tap 5.2.0

2010-10-05 Thread Guerin Laurent
Hi,

You can look at the demo page of the tapx-yui component itself :

http://github.com/hlship/tapx/blob/692195d119d6beda1b664bcd1e268f0f6944c447/tapx-yui/src/test/resources/yui/demo/pages/RichTextEditorDemo.tml
http://github.com/hlship/tapx/blob/692195d119d6beda1b664bcd1e268f0f6944c447/tapx-yui/src/test/java/yui/demo/pages/RichTextEditorDemo.java

If you want more options, you have to customize it and add some config toolbar 
options :
http://developer.yahoo.com/yui/editor/

Regards,

Laurent GUÉRIN

-Message d'origine-
De : Jim O'Callaghan [mailto:jc1000...@yahoo.co.uk] 
Envoyé : mardi 5 octobre 2010 10:56
À : 'Tapestry users'
Objet : TapX / YUI / Tap 5.2.0

Can anyone point to an online example of using the YUI Editor with Tap 5.2.0
- thanks.

 

Regards,

Jim.


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



Re: SessionState for simple types

2010-09-14 Thread Guerin Laurent

Hi,

From tapestry 5.2 you can use @SessionAttribute.

Envoyé de mon iPhone

Le 14 sept. 2010 à 20:34, "Adam Zimowski"  a  
écrit :


I find it both easy and self-descriptive to write wrapper classes  
for these java objects.


That's exactly what I'm trying to avoid. With a large team of junior
programmers this will be a maintenance nightmare.


You could always grab the HttpSession and store them yourself.


From my searching the mailing list, this seems like the only viable
option. I try to stay away from using Servlet API, but may have to as
a work around. Anything better?

Adam

On Tue, Sep 14, 2010 at 11:42 AM, Josh Canfield > wrote:

I understand that @SessionState was meant for POJOs. What's the
preferred (if any) way in Tapestry to store Strings, Integers and  
such

across multiple pages?


It really depends on the use case. If you can bundle them up into a
class that'd be the best way. For instance, if you're storing some
shared user configuration you could create a UserConfiguration object
with the values. Your class could be a simple wrapper around
Properties, or a Map if you need something more flexible than fixed
properties.

You could always grab the HttpSession and store them yourself...




Adam

--- 
--

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






--
--
http://www.bodylabgym.com - a private, by appointment only, one-on- 
one

health and fitness facility.
--
http://www.ectransition.com - Quality Electronic Cigarettes at a
reasonable price!
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

-
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 5.1 to 5.2

2010-08-07 Thread Guerin Laurent

Hi Andreas,

Thank you for your random choice :-)

With Katia (co-author) we are planning to upgrade this little Tapestry  
demo to 5.2 version soon and add some enhanced components.

Thank you for your advices and your pull request on GitHub.

Regards,

Laurent Guerin

Envoyé de mon iPhone

Le 7 août 2010 à 04:26, "Andreas Andreou"  a  
écrit :



So, i picked a random 5.1 project from github (
http://github.com/lguerin/tapestwitter )
forked it, upgraded it to 5.2 and fixed all deprecation warnings...
take a look /comment at the
change logs at [1] and [2]

I've found 2 small things worth noticing:
1) the project was building a JSONObject and outputting it INSIDE a js
string - because by default
the json is now pretty-printed, the newlines where causing js errors.
The fix was to use json.toString(true)
2) The old renderSupport.addInit could accept a JSONArray and map the
elements to the function's arguments
Now you should build a JSONObject which will become the only argument
of the function and use javaScriptSupport...
Of course that's already documented and explained at [3] but i'm
thinking the old way will appear more straightforward
to some (i did spend some minutes trying to find how to send that
second parameter before understanding that i should
just bundle it along with the first inside a json)


[1] 
http://github.com/andyhot/tapestwitter/commit/2dd797629cd0506a9fc5625e71100170c0cde300
[2] 
http://github.com/andyhot/tapestwitter/commit/b815eb395d9e820833ebf875a310b6d440f65f46
[3] 
http://tapestry.apache.org/tapestry5.2-dev/apidocs/org/apache/tapestry5/RenderSupport.html#addInit%28java.lang.String,%20org.apache.tapestry5.json.JSONArray%29


--
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry PMC / Tacos developer
Open Source / JEE Consulting

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