I've created a component that needs to change a property in its containing
component. The problem is that the property affected is persisted .CLIENT in
the parent so that any changes the component makes get overwritten by the old
value with the client side persistence.
At the moment the child c
Use the Environment
http://tapestry.apache.org/environmental-services.html
On 20 May 2014 08:28, "John" wrote:
> I've created a component that needs to change a property in its containing
> component. The problem is that the property affected is persisted .CLIENT
> in the parent so that any chan
Hi!
I encountered a small problem while moving over from Eclipse to IDEA, which
I've explained here:
http://stackoverflow.com/questions/23753749/referencing-tapestry-components-from-a-module-in-intellij-idea
In essence, I'm working on a multi-module project where both modules
contain Tapestry com
Hello,
I also posted this on StackOverflow (SO), but it seems that the forum
is more active for these questions than SO. I'd really appreciate any
help. Here is the SO question, and the problem below (the same as it
is on SO).
http://stackoverflow.com/questions/23756438/tapestry-5-edit-arraylist-
Hi Stephen,
If you want one separate text field per ArrayList value, I suggest you take a
look at the FormLoop component:
http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formloop1
(The JumpStart sample app is a very good starting point to learn about T5
components)
The componen
On Tue, 20 May 2014 04:28:20 -0300, John wrote:
What approach should be used to allow the inner component to change a
parent property?
Besides using the Environment service, another approach is to declare
component parameter in the inner component using the prop binding (which
is the def
Hi Thilo,
Thank you for your reply and for taking the time - I really do appreciate it.
I did come across that first link when I was searching, but the issue
would be that it requires a lot more work for doing something which I
thought would be straight forwards. However, if I do it properly, the
On Tue, 20 May 2014 03:40:31 -0300, John wrote:
Hi,
Hi!
I'm finding that a js component that manipulates the dom during
initialisation behaves irratically. I'm wondering if the tapestry
initiialising in the js executes before the dom is fully ready?
No, that's not correct. Is this erra
On Tue, 20 May 2014 08:41:23 -0300, Mihkel Jõhvik
wrote:
Hi!
Hi!
In essence, I'm working on a multi-module project where both modules
contain Tapestry components. The tapestry plugin works, but only for
components defined within the containing module. I'd like to be able to
access compone
I've encountered a problem with event triggering inside AjaxFormLoop.
Suppose the following scenario.
- external component
- internal component (MyComponent)
...
- in the code of MyComponent:
void onSelectedFromSubmitControl () {
}
Regardless of which submit is clicke
On Tue, 20 May 2014 09:14:08 -0300, Stephen Nutbrown
wrote:
Hello,
Hi!
The prop binding (the default one) doesn't support using list or array
indexes.
This won't work because (as far as I know), this is the same as
getResult().getAction.getIndexProp. So I tried
On Tue, 20 May 2014 10:05:11 -0300, Ilya Obshadko
wrote:
Regardless of which submit is clicked, the event is triggered only on the
last component in the loop. I know that p:defer parameter is supposed to
handle this, but adding p:defer="false" doesn't help. Any ideas how to
handle this?
Try
No the markup is all in the component template, the js just needs to add a
value to a div inside a table cell (see below). Sometimes I am not seeing this
happen, mostly it does. I ask because I got the impression that adding a js
alert to the piece of code to debug it seemed to make the code wor
Hi Stephen,
I strongly encourage you to create a component for your result editor. This
helps encapsulating the editor code, which de-clutter your page class /
template. Tapestry components are very elegant and easy to re-use.
If the number of values in your ArrayList is constant, you can use T
Hi Thiago, thanks for the help!
I appreciate your comments and thank you for taking the time to help.
The loop which you posted does show the text fields exactly as I want
them (and they are pre populated with the original values from the
array list of strings), but when I submit the form, the upd
Already tried this. Context provided to onSelected handler contains value
from the last iteration as well, so obviously that doesn't help.
I'm not persisting loop variable in a way you mean it. I'll try to
formulate the problem different: if submit element was triggered inside a
component enclosed
On Tue, 20 May 2014 10:26:22 -0300, Ilya Obshadko
wrote:
Already tried this. Context provided to onSelected handler contains value
from the last iteration as well, so obviously that doesn't help.
Please post the template of this attempt.
I'm not persisting loop variable in a way you mean
Hi Thilo,
Thanks for this. I tried Thiago's solution and had some problems with
it not remembering the values which were set. I'm not entirely sure
why that is.
I think creating a component is the ideal solution, but it seemed a
little overkill at first.
I also noticed on StackOverflow that someo
On Tue, 20 May 2014 10:23:22 -0300, Stephen Nutbrown
wrote:
Hi Thiago, thanks for the help!
Hi!
I appreciate your comments and thank you for taking the time to help.
The loop which you posted does show the text fields exactly as I want
them (and they are pre populated with the original va
Hello,
Thank you again Thiago, Thilo and Java Lance over on StackOverflow - I
posted a link there to this mailing list thread so anyone can follow
if they come searching for the same issue.
Adding formState="interation" did the trick, the Result object was
already persisted.
I have learnt a few
On Tue, May 20, 2014 at 5:35 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Tue, 20 May 2014 10:26:22 -0300, Ilya Obshadko
> wrote:
>
> Already tried this. Context provided to onSelected handler contains value
>> from the last iteration as well, so obviously that doesn't help
Any kind of success on this?
I've been looking for ways to customize tapestry5-jquery autocomplete mixin
output, and this is not very obvious.
On Wed, May 22, 2013 at 12:50 AM, George Ludwig wrote:
> Thanks for the replies...still working on this
>
> @Lance: Did you mean override protected
On Tue, 20 May 2014 10:56:13 -0300, Ilya Obshadko
wrote:
It's too complex. The layout I provided in the first post resembles the
basic idea: we have a component wrapped by the loop, and submit control
in each component.
I asked the template because your attempt may have gotten something w
On Tue, 20 May 2014 10:50:08 -0300, Stephen Nutbrown
wrote:
Hello,
Hi!
Thank you again Thiago, Thilo and Java Lance over on StackOverflow - I
posted a link there to this mailing list thread so anyone can follow
if they come searching for the same issue.
Adding formState="interation" did
On Tue, May 20, 2014 at 7:55 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
Well, that makes sense (as well as explains why providing variable
>> instance in submit context doesn't help). Event is handled by an instance
>> of the
>> component with state corresponding to the last it
Hi,
I haven't used AjaxFormLoop, but with simple loop inside a form I use
SubmitNotifier, like this:
Submit
Then in your code declare:
public void onAfterSubmitFromMain() {
// work with current item here
}
Haven't tried with submit in nested component thou
On Tue, 20 May 2014 14:45:48 -0300, Ilya Obshadko
wrote:
Yes, this is it. I have a component which is looped over.
class MyComponent {
@Parameter
private MyObject obj; // assigned inside a loop
void onSelectedFromSubmitControl ( ... ) {
}
}
1) initially I tried to simply use My
As far as I can tell from reading the code, there is what seems to be a pretty
big hole in Tapestry's handling of localization.
Suppose I have set these as my supported locales: "en,fr,de"
...and further suppose that a request comes in with this accept-language header
"klingon,de,fr"
The code
The incorrect choice is because "en" is set as as the default locale (see
http://tapestry.apache.org/localization.html). But you are right,
accept-language allows specifying a list of desired locales, whereas it
looks like the current implementation assumes the browser to request a
single locale on
I'm confused about the aim here. There's one form, yet there's one submit per
row. If you make changes to rows 1, 2, and 3, then click submit on row 2, what
do you expect to happen in the DB and client-side? Should rows 1 and 3 be
persisted to the DB? Should rows 1 and 3 be reset, or perhaps ref
I ended up using your atmosphere implementation and it works like a charm,
so many thanks for that. I have an additional questions though. When
returning the block to the client, basically your ChatDemo class
(
https://github.com/uklance/tapestry-atmosphere/blob/master/tapestry-atmosphere-demo/src/
31 matches
Mail list logo