Re: T5.3 rc3 ordering of css

2011-11-06 Thread Steve Eynon
Hi, I'm not sure where it is in the Docs (I can't see it on http://tapestry.apache.org/css.html ) but you can order your CSS by placing the @Import on various render phase methods. i.e. @Import(stylesheet="me-first.css") void setupRender() {} would come before any stylesheets declared with @Im

Re: URL handling ..

2011-11-06 Thread Kalle Korhonen
On Sun, Nov 6, 2011 at 10:26 PM, Gunnar Eketrapp wrote: > Now I am phasing another problem and that is that T5 seems to encode > context string in a way that they are not displayed properly in the the > browser. > I.e. if I URL encode the swedish word Räksmörgås (=Shrimp sandwich) i > get *r%C3%A4

Re: Tapestry 5.3 and multiple submits problem

2011-11-06 Thread 9902468
Hi, if you're using tap5-jquery, this seems to be the issue: https://github.com/got5/tapestry5-jquery/issues/90 - Ville -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-and-multiple-submits-problem-tp4963761p4970341.html Sent from the Tapestry - User mailing

Re: URL handling ..

2011-11-06 Thread Gunnar Eketrapp
Hi! I will answer this myself for someone else that encounters the same problem (=equal stupid). The problem was that my LinkTransformer had to encode the swedish page names in the path passes to LinkImpl. I did this in this way (slashes shall not be encoded!) private String urlEncodedPath(Stri

Re: Tapestry 5.3 and multiple submits problem

2011-11-06 Thread 9902468
Hi, did you find any solution to this? I also noticed that non-zoned forms behave correctly. Are you using tap5-jquery also? - Ville -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-3-and-multiple-submits-problem-tp4963761p4969868.html Sent from the Tapestry -

Re: Beaneditform with two submit buttons?

2011-11-06 Thread TG
I changed it and also changed but I got Parameter(s) 'object' are required for org.apache.tapestry5.corelib.components.BeanEditForm, but have not been bound. What do I missed? Can you look at my codes again? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beane

T5.3 rc3 ordering of css

2011-11-06 Thread 9902468
Hi, is there any documentation how the ordering of css is done? I've tried stacks and straight imports, but I really haven't found any way to say that my css is last. I use T5-jquery library and the included form.css is always attached later than mine. (Effectively only way to override bits of t

Re: [T5.3-rc-3] zone inside a form with generated ids not working

2011-11-06 Thread Christian Riedel
https://issues.apache.org/jira/browse/TAP5-1746 Am 06.11.2011 um 18:04 schrieb Lenny Primak: > Are you doing form submit via JavaScript onsubmit()? If yes, you need to > call setSubmittingElement beforehand. > > > > On Nov 6, 2011, at 11:11 AM, Christian Riedel wrote: > >> Hi, >> >> I'm

Re: T5.3. rc3: event bubbling bug?

2011-11-06 Thread 9902468
Ok, so the event naming system changes the originating component to be the one that is visible to the eventhandler writer. That makes sense. Tested my use case and it works, thanks for setting me straight ;) I closed the JIRA as invalid. - Ville Ps. It has been a while since using T5 and it sh

Re: T5.3. rc3: event bubbling bug?

2011-11-06 Thread Denis Stepanov
If your hierarchy is: > Page > - MyComponent > - you should use onSuccessFromMyComponent, it is probably a bug if onSuccessFromProductSizeForm works inside the Page. Denis On 6.11.2011, at 17:35, 9902468 wrote: > Ok, > > I think I confirmed this as a bug: if I disable the checking using

Re: [T5.3-rc-3] zone inside a form with generated ids not working

2011-11-06 Thread Christian Riedel
No, it's the plain old tapestry select-submits-onchange function. My workaround did only work for a couple of minutes, btw.. It now seems to work like this: I switched the order of the components in the template (first the zone, then the select) > > > >

Re: Beaneditform with two submit buttons?

2011-11-06 Thread Dusko Jovanovski
You should add this: xmlns:p="tapestry:parameter" to the root element in your .tml file, and use p:id instead of t:parameter name="id" On Sun, Nov 6, 2011 at 6:12 PM, TG wrote: > I changed my codes to something like this - > > > > > > > > > >

Re: Beaneditform with two submit buttons?

2011-11-06 Thread TG
I changed my codes to something like this - ${service.id} and I got the following error - The

Re: [T5.3-rc-3] zone inside a form with generated ids not working

2011-11-06 Thread Lenny Primak
Are you doing form submit via JavaScript onsubmit()? If yes, you need to call setSubmittingElement beforehand. On Nov 6, 2011, at 11:11 AM, Christian Riedel wrote: > Hi, > > I'm currently trying to fix some missing functionality about some cases of > zone-updates in tapestry5-jquery. It s

Re: T5.3. rc3: event bubbling bug?

2011-11-06 Thread 9902468
Ok, I think I confirmed this as a bug: if I disable the checking using configuration.add(SymbolConstants.UNKNOWN_COMPONENT_ID_CHECK_ENABLED, "false"); then my use case works ok, so my code is absolutely legit. I have opened JIRA https://issues.apache.org/jira/browse/TAP5-1745 that should be I

[T5.3-rc-3] zone inside a form with generated ids not working

2011-11-06 Thread Christian Riedel
Hi, I'm currently trying to fix some missing functionality about some cases of zone-updates in tapestry5-jquery. It seems the missing feature does also not work in a pure T5-app! The feature I'm talking about is this: 1. There's a link/button/whatever that can trigger a zone-update. 2. Before

Re: Beaneditform with two submit buttons?

2011-11-06 Thread Taha Hafeez Siddiqi
Hi Have you looked at https://github.com/apache/tapestry5/blob/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/BeanEditForm.java https://github.com/apache/tapestry5/blob/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/corelib/components/BeanEditForm.tml reg

Re: T5.3. rc3: event bubbling bug?

2011-11-06 Thread 9902468
Furthermore, correct if I'm wrong, but the event bubbles through the component hierarchy until the root component (page) or if the event bubbling is explicitly aborted using event handler return value. (http://tapestry.apache.org/component-events.html, see event bubbling.) Thus the algorithm that

Re: Beaneditform with two submit buttons?

2011-11-06 Thread TG
Could you provide sample codes for that? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Beaneditform-with-two-submit-buttons-tp4967644p4968843.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: T5.3. rc3: event bubbling bug?

2011-11-06 Thread 9902468
The form is in the component. This indicates that the events thrown by the components must be handled by the component (or page) that declares the component throwing the event in it's tml? But how the event bubbling is going to work then? My component should listen to the form events to be able

Re: T5.3. rc3: event bubbling bug?

2011-11-06 Thread Josh Canfield
Is the form in your page tml or the component tml? From your description it sounds like it's not in the page, which is the error you are getting. On Nov 6, 2011 6:13 AM, "9902468" wrote: > The saga continues: > > I have a "onSuccessFromProductSizeForm" -method on my page. When the form > is > en

Re: T5.3. rc3: event bubbling bug?

2011-11-06 Thread Dimitris Zenios
Sorry for the wrong reply.I havent read the whole list. On Sun, Nov 6, 2011 at 5:05 PM, Dimitris Zenios wrote: > You can try this in the java page > > @InjectComponent(id="ProductSizeForm") > private Form ProductSizeForm; > > > @OnEvent(value=EventConstants=SUCCESS,component="ProductSizeForm") >

Re: T5.3. rc3: event bubbling bug?

2011-11-06 Thread Dimitris Zenios
You can try this in the java page @InjectComponent(id="ProductSizeForm") private Form ProductSizeForm; @OnEvent(value=EventConstants=SUCCESS,component="ProductSizeForm") public void formSuccess() { } And in the tml leave it as it is and try again. On Sun, Nov 6, 2011 at 4:13 PM, 9902468 wro

Re: T5.3. rc3: event bubbling bug?

2011-11-06 Thread 9902468
The saga continues: I have a "onSuccessFromProductSizeForm" -method on my page. When the form is enclosed in a component I get the following error message: Method com.orient.web.admin.pages.entity.ProductSizeBulkAdd.onSuccessFromProductSizeForm() references component id 'ProductSizeForm' which do

Re: URL handling ..

2011-11-06 Thread Gunnar Eketrapp
I digged into this yesterday and created a transfomer for my url's. I managed to transform pages to swedish names with the group name up front. Pretty pretty ... Today I encountered a problem whit action methods that return Link's with swedish characters in them. It seems like the åäö get's screw