Closed Dcosmas closed 1 year ago
id
has to be unique in the whole document, see docs so this is ok
no problem for it to be unique. I just want to generate it myself. Or could you explain to me how to have several dialogs in the same page ? Again with last version of the plugin (4.0.3) this code worked fine and generate one dialog@id by concate the string "dialog" and the variable "%{#status.index}".
Hmmm ... I do not understand, you can change <sj:dialog id="my_dialog_%{#status.index}_id"
to have your own id, or did you mean that now you get dialog%{#status.index}
instead of dialog1
, dialog2
,...?
Absolutely, I mean that now I get dialog%{#status.index} instead of dialog1, dialog2
So this is a bug
Could you try to use id="%{'dialog' + #status.index}"
?
not better :/ And I have the same problem with sj:datepicker
but thanks for the try :)
I think i spotted the problem, i'll create a PR for it.
@sdutry you can use parameters.escapedId
instead of parameters.id
Since release 5.0.0 we can't have multiple dialog
title param will be correct --> Testing 1, Testing 3 etc... but id will be dialog%{#status.index} whereas dialog1, dialog2 etc...
what did i miss? Is it a real bug ? or new feature ? :)