I meant "in onValidateFromForm()", not "in onSubmit()". Alternatively, detect
which submit was pressed like this:
http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/multiplesubmits1
On 18 Jul 2014, at 8:02 pm, Geoff Callender
wrote:
> IMHO, you should take a fresh look
IMHO, you should take a fresh look at the user experience. If you choose the
more natural flow of asking the user to choose a language *before* presenting
them with any forms, then the flow becomes natural and all the difficulties
disappear.
If, however, you proceed with the way you describe, t
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:
>
> What is
On Thu, 17 Jul 2014 11:49:56 -0300, squallmat .
wrote:
What is still stucking me is that language switching, I can't do it with
form because we can't nest them.
Put the language switcher inside the form. No need to nest forms. Or add
some JavaScript to disable the language switcher when y
Thanks Geoff, I already found how to change the Add row :)
What is still stucking me is that language switching, I can't do it with
form because we can't nest them.
Is there a way in an actionlink to force persisting of the properties of a
page ?
2014-07-17 16:10 GMT+02:00 Geoff Callender <
geof
A form will only submit what it contains. You need a single form that contains
all your "switch" submits, the AjaxFormLoop, and anything else you don't want
to lose.
Regarding changing "Add a Row", it's just text in this example...
http://jumpstart.doublenegative.com.au/jumpstart/exampl
On Thu, 17 Jul 2014 10:32:32 -0300, squallmat .
wrote:
But that still continue to do the same thing. Is it necessary that my
forms
with submit switching language covers the field that we want persisted ?
Yep. Otherwise, the field values you want persisted aren't submitted.
That's basic
hello Geoff,
I just changed my actionlinks to form-submit :
@Component(id = "englishForm")
private Form englishForm;
@Component(id = "frenchForm")
private Form frenchForm;
@OnEvent(value = EventConstants.SUCCESS, component = "englishForm")
public Object onSuccess() {
persistentLocale
Yes, to switch language the client (ie. the browser) must request the server to
render the page in the new language. If the request to switch is from an
EventLink or ActionLink, then values entered into the form will be lost. That
is because they use HTTP GET. If your request to switch is from a
I added @Persist on a field in my form, it doesn't persist if switch
locale. But if I try to submit (onSubmit not implemented in the .java) then
the field become really persistente, even if I switch locale the field
stay filled.
Why this behavior ? How can I get this persistency between locale swi
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 were filled to stay filled at language switching I need to put on all
my Property with @Persist and refill each field in SetupRender, rig
On Wed, 16 Jul 2014 12:55:24 -0300, squallmat .
wrote:
Still, in the Client entity that i will persist at the submit, I store my
contacts in it :
// when adding a contact row
Object onAddRowFromContacts() {
ContactDto contactDto = new ContactDto();
clientDto.getContactList().add(contactDto);
I'm trying to create an entity Client which has a list of Contacts,
In my persistence layer these Contacts are stored by cascading on the
storing of a client, then I don't want to persist my contact in my db one
by one when I add a row.
Still, in the Client entity that i will persist at the submit
On Wed, 16 Jul 2014 11:05:30 -0300, squallmat .
wrote:
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 fi
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, and when
> I tried to switch to anot
15 matches
Mail list logo