zone on a

2014-09-23 Thread squallmat .
Hi, I have a table, one of the row () has been included in a Zone. But when I ajax-update this zone, I see that this zone is removed from the table and is displayed in a div just before the table. Why this modification at zone update ? And how to prevent it ?

Re: observe mixin

2014-09-22 Thread squallmat .
I have this : 1. content: ": > What happens when you view the network traffic in the chrome developer > tools? Can you see the values as request parameters? > > Are the select element ids (in the html) what you think they are? There's > an issue where the clientId is ignored by tapestry for s

Re: observe mixin

2014-09-22 Thread squallmat .
Do you see why observe does not work? Or another method to make working what I want to do ? I'm stuck on this. 2014-09-22 16:39 GMT+02:00 squallmat . : > Ok the javascript works now, but not the mixin itself. > I have a first select where i chose a value, and then a second selec

Re: observe mixin

2014-09-22 Thread squallmat .
ue of the first select, but still it doesn't keep it even with this observer... am i missing something ? 2014-09-22 16:27 GMT+02:00 squallmat . : > ok I used bind function instead of observe. And even with the original > values $(spec.id) without the # the code works now. >

Re: observe mixin

2014-09-22 Thread squallmat .
ok I used bind function instead of observe. And even with the original values $(spec.id) without the # the code works now. First time i make a javascript working :p 2014-09-22 15:56 GMT+02:00 squallmat . : > Hi Lance, thanks for the help. Yes i really need to learn javascript, I > still h

Re: observe mixin

2014-09-22 Thread squallmat .
Hi Lance, thanks for the help. Yes i really need to learn javascript, I still have an error on the js you gave me : apparently the observe() function is a prototype one, i'm trying to find an equivalent in jquery but i didn't found yet. Do you know how i could convert this observe() to jquery ? 20

Re: observe mixin

2014-09-22 Thread squallmat .
Could you explain me what need to be changed to make the mixin compatible with jquery ? 2014-09-22 11:39 GMT+02:00 squallmat . : > In the chrome javascript console I have : > > Uncaught TypeError: undefined is not a function > > I use jquery, because I use some components from >

Re: observe mixin

2014-09-22 Thread squallmat .
In the chrome javascript console I have : Uncaught TypeError: undefined is not a function I use jquery, because I use some components from http://tapestry5-jquery.com/ I'm really bad at javascript and I don't even understand what this error means. What i need to change to make it works with jque

Re: default value on radiogroup

2014-09-22 Thread squallmat .
It works now, thanks Thiago 2014-09-19 19:35 GMT+02:00 Thiago H de Paula Figueiredo : > On Fri, 19 Sep 2014 13:03:45 -0300, squallmat . > wrote: > > Hi, >> > > Hi! > > like said in title I have a radiogroup with a dynamic list of objects, >> and i'd l

Re: observe mixin

2014-09-22 Thread squallmat .
seeing a name clash since both select and observe accept a "zone" > parameter. > > You can qualify the parameter name so that the mixin gets it instead of > select. > > I think you can say observe.zone="foo" (if not it's observe/zone). > On 19 Sep 2014 1

observe mixin

2014-09-19 Thread squallmat .
Hi, I'm trying to use the observe mixin from here : http://tapestry-stitch.uklance.cloudbees.net/observedemo I have the code tml : in controller : Block onObserveSelectApp(ClientDto clientSelected) { selectedClient = clientSelected; return formZone.getBody(); } but when I try to launch this

default value on radiogroup

2014-09-19 Thread squallmat .
Hi, like said in title I have a radiogroup with a dynamic list of objects, and i'd like to put a specific default value to it, but contrary to a simple radiogroup with literal values, It doesn't work. I have : ${contactDtoLoopValue.nom} ${contactDtoLoopValue.prenom}, ${contactDtoLoopValue.mai

double select and ajax

2014-09-19 Thread squallmat .
Hi, I have two selects on my page, each one ajax updating a zone containing these two selects. When i change the value of a select, the value of the other disappear. Is there a way in the method onValueChanged to save or reaffect the value of the other select ? I hope i'm clear...

Re: ajax reload

2014-09-12 Thread squallmat .
humm, I really hate coding in javascript ... Is there a way to "fake" Post a form to save the values ? :p 2014-09-12 14:42 GMT+02:00 Thiago H de Paula Figueiredo : > On Fri, 12 Sep 2014 04:44:36 -0300, squallmat . > wrote: > > My data are in a form with many others da

Re: streamresponse eventlink

2014-09-12 Thread squallmat .
OK, I didn't changed anything in my code, and now the download works... There's is now just the naming problem. 2014-09-12 10:13 GMT+02:00 squallmat . : > another problem, > the page that works is "renaming" my files by adding strange values : > > > original n

Re: streamresponse eventlink

2014-09-12 Thread squallmat .
3.docx It seems to add $0020 on each space, why ? 2014-09-12 9:47 GMT+02:00 squallmat . : > I receive a file named "false" with a size randomly between 0 Byte and 1.5 > MB > > 2014-09-11 19:40 GMT+02:00 Thiago H de Paula Figueiredo < > thiag...@gmail.com>: > >

Re: streamresponse eventlink

2014-09-12 Thread squallmat .
I receive a file named "false" with a size randomly between 0 Byte and 1.5 MB 2014-09-11 19:40 GMT+02:00 Thiago H de Paula Figueiredo : > On Thu, 11 Sep 2014 14:21:38 -0300, squallmat . > wrote: > > Hi, >> > > Hi! > > I would like to know if

Re: ajax reload

2014-09-12 Thread squallmat .
My data are in a form with many others data, If I submit I will Post them. What are the other ways to do that ? 2014-09-11 19:41 GMT+02:00 Thiago H de Paula Figueiredo : > On Thu, 11 Sep 2014 13:52:50 -0300, squallmat . > wrote: > > I don't submit the form in Ajax request so.

streamresponse eventlink

2014-09-11 Thread squallmat .
Hi, I would like to know if there are some problems to get a file by streamresponse if an eventlink has many context parameters. I have an eventlink with one parameter returning a StreamResponse that works perfectly well. I used the same thing on another page, but with 3 param context and the down

Re: ajax reload

2014-09-11 Thread squallmat .
I don't submit the form in Ajax request so... Is there way(s) to save values without submitting form ? 2014-09-11 16:06 GMT+02:00 Thiago H de Paula Figueiredo : > On Thu, 11 Sep 2014 10:47:14 -0300, squallmat . > wrote: > > Hi, >> > > Hi! > > So, on aja

ajax reload

2014-09-11 Thread squallmat .
Hi, I have a zone where I add/remove dynamically a list of object, the object is made of a boolean that is associated with a t:checkbox. When I modify the checkbox (check/uncheck) and then update the zone (because list of objects change : add/remove) the value of checkboxes come back to there orig

Re: could not convert... on layout

2014-09-11 Thread squallmat .
OK, i found. I used the wrong Inject class on a page 2014-09-11 13:28 GMT+02:00 squallmat . : > Hi, > I have a layout that I use now for months on many pages, It always worked > well. But when I try to launch my webapp now, it suddenly stopped to work > and give me this error : &

could not convert... on layout

2014-09-11 Thread squallmat .
Hi, I have a layout that I use now for months on many pages, It always worked well. But when I try to launch my webapp now, it suddenly stopped to work and give me this error : Exception assembling root component of page NouvelApplicatif: Exception assembling embedded component 'mainlayout' (of ty

Re: url rewriting on href

2014-09-09 Thread squallmat .
H de Paula Figueiredo : > On Tue, 09 Sep 2014 10:03:26 -0300, squallmat . > wrote: > > Hi, >> > > Hi! > > > >> I have url stored in DB, like "www.google.com" and I just pass them in my >> template to an href attribute, like this : >> >&

url rewriting on href

2014-09-09 Thread squallmat .
Hi, I have url stored in DB, like "www.google.com" and I just pass them in my template to an href attribute, like this : - ${url} The value of ${url} in the href attribute is rewrote to concatenate the actual displayed page url. Why is there url rewriting here ? And how can I disable it ?

Re: dynamic upload buttons

2014-09-09 Thread squallmat .
pts here: > 1. The object being iterated by the AjaxFormLoop > 2. The UploadedFile property binding > > 1 can't be null, 2 can be null (in onAdd). > > I'd probably create a wrapper bean for the iteration and use a custom > ValueEncoder. eg: > http://tinyurl.com/nx895

Re: dynamic upload buttons

2014-09-08 Thread squallmat .
perty for "onAdd". > On 7 Sep 2014 02:50, "squallmat ." wrote: > > > Hi, > > > > I'm trying to put dynamic multiple upload buttons in Tapestry with an > > AjaxFormLoop component. > > > > But in the "onAdd" event where you

dynamic upload buttons

2014-09-06 Thread squallmat .
Hi, I'm trying to put dynamic multiple upload buttons in Tapestry with an AjaxFormLoop component. But in the "onAdd" event where you have to create a new UploadedFile Object and return it, it doesn't seems to have any method to do that, because UploadedFile can't be instantiated by a new. Is ther

Re: Select with delimiters

2014-08-29 Thread squallmat .
t; > > On 25 August 2014 15:55, squallmat . wrote: > > > Hi, > > > > As said in title, I would like to know if it's possible to add special > > values in a select list of objects, that are not "bind to encoder" like > the > > blank one, I need to add a delimitation in the list of my entities to > > select. > > > > Thanks. > > >

Select with delimiters

2014-08-25 Thread squallmat .
Hi, As said in title, I would like to know if it's possible to add special values in a select list of objects, that are not "bind to encoder" like the blank one, I need to add a delimitation in the list of my entities to select. Thanks.

if with context parameter

2014-08-22 Thread squallmat .
Hi, I would like to know if is possible to put a method with a contextualized value in it. For example : Is this possible ?

best practice for persisting fields

2014-08-14 Thread squallmat .
Hi, each time on a submit failed the field values associated to a simple string persist without requiring @Persist annotation. But when you have any other type of fields, for example a list from an ajaxformloop, or a file selection, their values doesn't persist naturally, you have to use @Persist

in form fileupload doesn't stay

2014-08-11 Thread squallmat .
Hi, I have a form with different fields of text and one field with a t:Upload of file, when I have a submit fail, the data of the textfields stay, but the file selection made is reinitialized. Why the t:Upload doesn't act like the textfields ? Is there a way to make it keep file selection at faile

select not updating in a zone

2014-08-07 Thread squallmat .
Hi, I have a zone in which I have a select with a list of objects. When I select a value, this one should be add in another list of chosen values, and this value should disappear in the select. I've done that : (${message:selectToAdd}) - ${chosenTerminal.getNom()} public Object onValueC

persistence, form and ajaxformloop

2014-08-07 Thread squallmat .
Hi, I have a form with fields associated to the different members of an entity. Certain fields are lists on which I use the Ajaxformloop. When I try to submit and that validation problems occur, the fields retain their values except the lists on which I use Ajaxformloop. Then If i want failed-su

Re: ajaxformloop and zone

2014-08-07 Thread squallmat .
> @Override > public void run(JavaScriptSupport javascriptSupport) { > javascriptSupport.addScript('callUpdateZone()"); > } > }); > > You have to import > org.apache.tapestry5.services.javascript.JavaScriptSupport; > > Thanks, > Duy. > > > > >

Re: ajaxformloop and zone

2014-08-07 Thread squallmat .
thanks for your answer Chung, I tried it but when i add a row I got this error : No object of type org.apache.tapestry5.services.javascript.JavaScriptSupport is available from the Environment. 2014-08-07 10:08 GMT+02:00 Chung Khanh Duy : > Hi, > > You could not call updating zone in onAddRow or

Re: ajaxformloop and zone

2014-08-07 Thread squallmat .
Any help ? :( 2014-08-06 15:21 GMT+02:00 squallmat . : > Hi, > > I try to do a zone-update when adding or removing a row from an > ajaxformloop component. I have : > > > > > > ${message:fieldName} > ${message:fieldContent} > > > > > &

ajaxformloop and zone

2014-08-06 Thread squallmat .
Hi, I try to do a zone-update when adding or removing a row from an ajaxformloop component. I have : ${message:fieldName} ${message:fieldContent} ${message:deleteField} ${message:addField} And in the actions for adding and removing rows I do : // when adding a field row Obj

Re: resize image before upload

2014-07-23 Thread squallmat .
2014-07-22 18:01 GMT+02:00 Thiago H de Paula Figueiredo : > On Tue, 22 Jul 2014 12:45:05 -0300, squallmat . > wrote: > > ok great, >> but what I don't know it's how to integrate javascript functions on a >> file and integrate the result in the UploadedFile Objec

Re: resize image before upload

2014-07-22 Thread squallmat .
ok great, but what I don't know it's how to integrate javascript functions on a file and integrate the result in the UploadedFile Object. 2014-07-22 17:26 GMT+02:00 Thiago H de Paula Figueiredo : > On Tue, 22 Jul 2014 11:53:50 -0300, squallmat . > wrote: > > Hello, >

resize image before upload

2014-07-22 Thread squallmat .
Hello, I would like to upload a client-resized image. I don't see tools for that in tapestry documentation. Is it possible to use javascript to handle file iploading and resize image before populating UploadedFile Object ?

Re: loop inside a form

2014-07-22 Thread squallmat .
; Do the Errors use globalOnly="true"? > > Are the error messages being generated by server-side code? And are they > being recorded on the right form (eg. form1.recordError()? > > Are you giving each Errors an id? Is it unique? > > Are you giving each Form an id?

Re: loop inside a form

2014-07-22 Thread squallmat .
loop1 > > Geoff > > On 22 Jul 2014, at 7:14 pm, squallmat . wrote: > > > Hello, > > > > as said in title I have a loop on a list of objects (with his encoder) : > > > > > > > > > >

loop inside a form

2014-07-22 Thread squallmat .
Hello, as said in title I have a loop on a list of objects (with his encoder) : ${message:typeName} ${message:remarks} ${message:delete} I initialize the list of objects in onActivate() : // initialize list of types if null if (typeClientDtoList == null) { typeClient

Re: ajaxformloop and localization

2014-07-17 Thread squallmat .
The language switchers are in a component layout including the pages where there is the forms. And I don't want (and the client too :p) to change the presentation. 2014-07-17 17:34 GMT+02:00 Thiago H de Paula Figueiredo : > On Thu, 17 Jul 2014 11:49:56 -0300, squallmat . > wrote: &

tapestry injecting spring services

2014-07-17 Thread squallmat .
I used at many times injections of spring services bean in my tapestry pages and that works really well. But now I need to use them in Encoders class, when I do that : public class ApplicatifDtoEncoder implements ValueEncoder { @Inject IServiceApplicatif serviceApplicatif; ... My serviceApp

Re: ajaxformloop and localization

2014-07-17 Thread squallmat .
. > > > http://jumpstart.doublenegative.com.au/jumpstart7/examples/localization/bymessagecatalog > > http://jumpstart.doublenegative.com.au/jumpstart7/examples/localization/bytemplate > > Geoff > > On 17 Jul 2014, at 11:32 pm, squallmat . wrote: > > > hello Geoff, &g

Re: ajaxformloop and localization

2014-07-17 Thread squallmat .
gt; (which is a very unusual use case) then try Submit with mode="cancel" or > mode="unconditional". > > > http://people.apache.org/~hlship/t5api/apidocs/org/apache/tapestry5/corelib/components/Submit.html > > On 17 Jul 2014, at 8:26 pm, squallmat . wrote: > > >

Re: ajaxformloop and localization

2014-07-17 Thread squallmat .
ocale switching without having to "fail-submit" before ? 2014-07-17 10:23 GMT+02:00 squallmat . : > I added @Persist on both source and value, now fields persist between > languages. > But localization switching reload the page, so I assume if I want the > field that we

Re: ajaxformloop and localization

2014-07-17 Thread squallmat .
, right ? Is this possible to have localization switchin without page reloading, and only the labels "ajaxly" updated ? 2014-07-16 21:02 GMT+02:00 Thiago H de Paula Figueiredo : > On Wed, 16 Jul 2014 12:55:24 -0300, squallmat . > wrote: > > Still, in the Client entity that

Re: ajaxformloop and localization

2014-07-16 Thread squallmat .
ting in db ? And also, how can I change the the text "Add row" ? (And yet : thanks for your help) 2014-07-16 17:39 GMT+02:00 Thiago H de Paula Figueiredo : > On Wed, 16 Jul 2014 11:05:30 -0300, squallmat . > wrote: > > I'm using an ajaxformloop component, that w

Re: ajaxformloop and localization

2014-07-16 Thread squallmat .
And while I'm here, is it possible to change the text of "Add row" for what we want ? 2014-07-16 16:05 GMT+02:00 squallmat . : > I'm using an ajaxformloop component, that works really well. > > But my webapp is developed in two languages : english and french, an

ajaxformloop and localization

2014-07-16 Thread squallmat .
I'm using an ajaxformloop component, that works really well. But my webapp is developed in two languages : english and french, and when I tried to switch to another localization the added rows disappear, and if i switch back to the first langauge the rows are reappearing and are empty. Is there m

Re: select problem render queue

2014-07-15 Thread squallmat .
). 2014-07-15 17:32 GMT+02:00 Thiago H de Paula Figueiredo : > On Tue, 15 Jul 2014 10:48:02 -0300, squallmat . > wrote: > > Ok I resolved the problem, >> >> I went from declaring the encoder with : >> @Property >> private TypeClientDtoEncoder typeClientDt

Re: select problem render queue

2014-07-15 Thread squallmat .
H de Paula Figueiredo : > On Tue, 15 Jul 2014 07:03:32 -0300, squallmat . > wrote: > > the null pointer exception comes from : >> at org.apache.tapestry5.internal.util.SelectModelRenderer. >> option(SelectModelRenderer.java:51) >> >> >&

Re: select problem render queue

2014-07-15 Thread squallmat .
eing one of the values in the > OptionModel. > > It might also be worth trying secure="literal:false" on the Select. > > On 15 Jul 2014, at 5:59 pm, squallmat . wrote: > > > I tried to see what was in my selectmodel after the factory loading with &

Re: select problem render queue

2014-07-15 Thread squallmat .
s have a lot of identical code. In my case the problem > was that the SelectModel had all of the expected values *except* the > selected value. Tapestry didn't do a good job with the error messages > in that case. > > On Fri, Jul 11, 2014 at 5:36 AM, squallmat . wrote: > >

Re: select problem render queue

2014-07-11 Thread squallmat .
String of an object contained in the list, is this what have to be done ? 2014-07-10 16:57 GMT+02:00 Thiago H de Paula Figueiredo : > On Thu, 10 Jul 2014 09:51:08 -0300, squallmat . > wrote: > > Caused by: java.lang.NullPointerException >> at >> org.apache

select problem render queue

2014-07-10 Thread squallmat .
I'm trying to do implement a select component on a page. I have this : *CreerClient.java:* *.* // value encoders @Property private ApplicatifDtoEncoder applicatifDtoEncoder; @Property private TypeClientDtoEncoder typeClientDtoEncoder; // select models for client types and applications @Prop

AjaxFormLoop

2014-07-09 Thread squallmat .
Hello, I would like to know if it is possible in an to replace the Addrowlink by a t:Select that adds different values depending on what is chosen in the list ?

file serving

2014-07-08 Thread squallmat .
Hello, I am developping a webapp with Tapestry 5 and I need to implement a "secured/rights-managed file serving/downloading". I don't know how to implement that, is there components, tutorials or then "best practices" to implement such system ?

Re: embedded components form in "if"

2014-07-07 Thread squallmat .
redo : > On Mon, 07 Jul 2014 05:58:30 -0300, squallmat . > wrote: > > I have two t:form embedded components defined in my java class with the >> good ids. >> > > What do you mean by good ids? > > > When I tried to launch that I got th

embedded components form in "if"

2014-07-07 Thread squallmat .
I have two t:form embedded components defined in my java class with the good ids. And in my template file I have defined them also, but each one surrounded by a t:if, and at the page launch only one of the these t:if will be true, so only one of my two embedded forms will be rendered. When I tried

Secure and development mode

2014-07-04 Thread squallmat .
Hello, I launch my webapp that I'm developping in development mode, I try to go on my "Login" page taht has "@Secure" annotation. I put this in my development mode configuration : *configuration.add(SymbolConstants.SECURE_ENABLED, false);* But when i go to the login page it redirects me to an htt

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
thank you 2014-07-03 16:57 GMT+02:00 Thiago H de Paula Figueiredo : > On Thu, 03 Jul 2014 10:35:18 -0300, squallmat . > wrote: > > I see that when i just use "layout/layout.css" it searches in the package >> of my component. >> Is it possible to tell

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
I see that when i just use "layout/layout.css" it searches in the package of my component. Is it possible to tell link it a resource at the root of classpath ? 2014-07-03 15:11 GMT+02:00 squallmat . : > Thank you, it works now. > > > > 2014-07-03 14:50 GMT+02:00 Thi

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
Thank you, it works now. 2014-07-03 14:50 GMT+02:00 Thiago H de Paula Figueiredo : > On Thu, 03 Jul 2014 09:33:31 -0300, squallmat . > wrote: > > I should have seen that before, but in my console I have: >> >> Caused by: java.lang.IllegalArgumentException: Unknown

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
va:182) at atos.smt.livraison.components.LoginLayout.(LoginLayout.java) ... 111 more [INFO] AppModule.TimingFilter Request time: 1555 ms 2014-07-03 14:11 GMT+02:00 squallmat . : > LoginLayout : > > @Import(stylesheet = "asset:layout/layout.css") > public class Logi

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
ls(currentPage)) { return "active"; } return ""; } } 2014-07-03 13:35 GMT+02:00 Thilo Tanner : > Hi! > > Is the layout class itself maybe private or protected? > > Otherwise, could you provide us a (anonymous version) of your code? > > Thanks and best,

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
ructor or the constructor is > private or protected. Check the Tapestry component lifecycle in case you > want to setup your component (for example by using @SetupRender) > > Best, > Thilo > > > > ____ > From: squallmat . > Sent:

java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
Hello I have an embedded component into another component but when I try to launch i got this : "Exception assembling root component of page Index: Exception assembling embedded component 'mainlayout' (of type atos.smt.livraison.components.MainLayout, within Index): Exception assembling embedded c

Multiple file uploads

2014-07-01 Thread squallmat .
Hello, >From what I've seen on the official Tapestry site, They're only talking about one file about uploading. I have a project with Tapestry 5 and I need to upload multiple files (an amount not fixed), How can I do multiple files uploading with Tapestry 5 ? Thanks.