Tapestry AjaxFormLoop rows affecting each other's values, why?How to render AjaxFormLoop properly?Loop through a collection without a 'value' property in TapestryHow to add a tooltip(or a title tag) to tapestry grid rows?Tapestry 5: Value of password field not bound to variableHow to pass Textfields values from form to .java class in Tapestry?How to put a value into html code in tapestry?Tapestry zone update - does not retain value on page errorJava Tapestry : why is onActivate method called twice?tapestry template called twice for each requestPassing the value of a variable in a response url with tapestryWhy @Secured is not working in Tapestry 5.4.0?
Why does Coq include let-expressions in its core language
Why would "an mule" be used instead of "a mule"?
Do any aircraft carry boats?
Where to disclose a zero day vulnerability
A medieval fantasy adventurer lights a torch in a 100% pure oxygen room. What happens?
Why did it become so much more expensive to start a university?
The Planck constant for mathematicians
Which ping implementation is Cygwin using?
How seriously should I take a CBP interview where I was told I have a red flag and could only stay for 30 days?
How can I fix a framing mistake so I can drywall?
How can I locate a missing person abroad?
Why did they ever make smaller than full-frame sensors?
Maintenance tips to prolong engine lifespan for short trips
What is a realistic time needed to get a properly trained army?
Gravity on an Orbital Ring
What exactly is a marshrutka (маршрутка)?
Pluses and stars inside square visual quiz
Do I need 3 RGB channels for a spectrogram CNN?
What is this unknown executable on my boot volume? Is it Malicious?
What is my breathable atmosphere composed of?
Why is a "scarf hold" so-named if you don't wrap around the opponent's neck (like a scarf)?
ArcPy: define fields to keep, delete all other fields in a feature class
Can I conceal an antihero's insanity - and should I?
Is there a reliable way to hide/convey a message in vocal expressions (speech, song,...)
Tapestry AjaxFormLoop rows affecting each other's values, why?
How to render AjaxFormLoop properly?Loop through a collection without a 'value' property in TapestryHow to add a tooltip(or a title tag) to tapestry grid rows?Tapestry 5: Value of password field not bound to variableHow to pass Textfields values from form to .java class in Tapestry?How to put a value into html code in tapestry?Tapestry zone update - does not retain value on page errorJava Tapestry : why is onActivate method called twice?tapestry template called twice for each requestPassing the value of a variable in a response url with tapestryWhy @Secured is not working in Tapestry 5.4.0?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have an ajaxFormLoop on a list of objects that have some fields.
<div class="col-1-1"
data-parent-subprovider="parentSubprovider">
<div t:type="ajaxformloop" t:id="subproviderLoop"
t:source="entity.contractSubprovider.subproviderList"
t:element="entity.contractSubprovider"
t:value="subprovider" t:encoder="subproviderLoopEncoder">
<div class="col-3-4">
<t:subproviderEdit
t:subprovider="subprovider" />
</div>
<div class="col-1-4">
<t:removerowlink class="btn btn--outline"
name="subprovider" style="margin-top: 5px">
$message:remove-subprovider-button
</t:removerowlink>
</div>
<p:addRow>
<div class="col-3-4">
<a t:type="addRowLink" t:mixins="LayoutButton"
t:color="green" class="margin--top">
<i class="fa fa-plus-circle"></i>
$message:add-subprovider-button
</a>
</div>
</p:addRow>
</div>
</div>
In the frontend there is a dropdown menu entityContractSubproviderSubCategoryofoutsourcedserviceRequired
that gets filled with new choices when another dropdown menu entityContractSubproviderCategoryofoutsourcedserviceRequired
value changes.
<div data-fragment-container="categoryofoutsourcedserviceSubproviderContainer">
<div class="form__row">
<div class="col-1-4 inline">
<div t:type="LayoutSelectList"
t:model="entityCategoryofoutsourcedserviceModel"
t:id="entityContractSubproviderCategoryofoutsourcedserviceRequired"
t:value="subprovider.categoryofoutsourcedservice"
t:valueEncoder="categoryofoutsourcedserviceValueEncoder"
t:blankOption="ALWAYS"
t:mixins="ExclusiveTriggerFragment,DpmFormGroup"
data-for-trigger-group="categoryofoutsourcedserviceSubproviderGroup"
data-fragment-container-id="categoryofoutsourcedserviceSubproviderContainer"
t:async="true"
zone="categoryOfSubModelZone"/>
</div>
<div class="form__row" t:type="if" t:test="true"
t:id="entityContractSubproviderSubCategoryofoutsourcedserviceRequired">
<div data-fragment-trigger="CRM, ICT, CONTROLFUNCTIONS, REPORTING, RISKMANAGEMENT, TREASURY, SECURITIES, PAYMENTS, OTHER" t:type="formFragment"
data-trigger-group="categoryofoutsourcedserviceSubproviderGroup"
data-fragment-detection="any"
t:visible="subproviderCategoryofoutsourcedserviceActive">
<div class="form__row">
<t:zone t:id="categoryOfSubModelZone" id="categoryOfSubModelZone" style="display: inline;">
<div class="col-1-4 inline">
<div t:type="LayoutSelectList" t:blankOption="ALWAYS"
t:model="entitySubCategoryofoutsourcedserviceModel"
t:label="message:entityContractSubproviderSubCategoryofoutsourcedserviceRequired-label"
t:value="subprovider.subcategoryofoutsourcedservice"
t:valueEncoder="subCategoryOfOutsourcedServiceValueEncoder"
t:mixins="ExclusiveTriggerFragment,FormGroup"/>
</div>
</t:zone>
</div>
</div>
</div>
</div>
</div>
The problem is whenever I add a new row and change the category dropdown choice , the subcategory menu changes in all the rows. I want it to be changed in its own row only
apache tapestry
add a comment |
I have an ajaxFormLoop on a list of objects that have some fields.
<div class="col-1-1"
data-parent-subprovider="parentSubprovider">
<div t:type="ajaxformloop" t:id="subproviderLoop"
t:source="entity.contractSubprovider.subproviderList"
t:element="entity.contractSubprovider"
t:value="subprovider" t:encoder="subproviderLoopEncoder">
<div class="col-3-4">
<t:subproviderEdit
t:subprovider="subprovider" />
</div>
<div class="col-1-4">
<t:removerowlink class="btn btn--outline"
name="subprovider" style="margin-top: 5px">
$message:remove-subprovider-button
</t:removerowlink>
</div>
<p:addRow>
<div class="col-3-4">
<a t:type="addRowLink" t:mixins="LayoutButton"
t:color="green" class="margin--top">
<i class="fa fa-plus-circle"></i>
$message:add-subprovider-button
</a>
</div>
</p:addRow>
</div>
</div>
In the frontend there is a dropdown menu entityContractSubproviderSubCategoryofoutsourcedserviceRequired
that gets filled with new choices when another dropdown menu entityContractSubproviderCategoryofoutsourcedserviceRequired
value changes.
<div data-fragment-container="categoryofoutsourcedserviceSubproviderContainer">
<div class="form__row">
<div class="col-1-4 inline">
<div t:type="LayoutSelectList"
t:model="entityCategoryofoutsourcedserviceModel"
t:id="entityContractSubproviderCategoryofoutsourcedserviceRequired"
t:value="subprovider.categoryofoutsourcedservice"
t:valueEncoder="categoryofoutsourcedserviceValueEncoder"
t:blankOption="ALWAYS"
t:mixins="ExclusiveTriggerFragment,DpmFormGroup"
data-for-trigger-group="categoryofoutsourcedserviceSubproviderGroup"
data-fragment-container-id="categoryofoutsourcedserviceSubproviderContainer"
t:async="true"
zone="categoryOfSubModelZone"/>
</div>
<div class="form__row" t:type="if" t:test="true"
t:id="entityContractSubproviderSubCategoryofoutsourcedserviceRequired">
<div data-fragment-trigger="CRM, ICT, CONTROLFUNCTIONS, REPORTING, RISKMANAGEMENT, TREASURY, SECURITIES, PAYMENTS, OTHER" t:type="formFragment"
data-trigger-group="categoryofoutsourcedserviceSubproviderGroup"
data-fragment-detection="any"
t:visible="subproviderCategoryofoutsourcedserviceActive">
<div class="form__row">
<t:zone t:id="categoryOfSubModelZone" id="categoryOfSubModelZone" style="display: inline;">
<div class="col-1-4 inline">
<div t:type="LayoutSelectList" t:blankOption="ALWAYS"
t:model="entitySubCategoryofoutsourcedserviceModel"
t:label="message:entityContractSubproviderSubCategoryofoutsourcedserviceRequired-label"
t:value="subprovider.subcategoryofoutsourcedservice"
t:valueEncoder="subCategoryOfOutsourcedServiceValueEncoder"
t:mixins="ExclusiveTriggerFragment,FormGroup"/>
</div>
</t:zone>
</div>
</div>
</div>
</div>
</div>
The problem is whenever I add a new row and change the category dropdown choice , the subcategory menu changes in all the rows. I want it to be changed in its own row only
apache tapestry
add a comment |
I have an ajaxFormLoop on a list of objects that have some fields.
<div class="col-1-1"
data-parent-subprovider="parentSubprovider">
<div t:type="ajaxformloop" t:id="subproviderLoop"
t:source="entity.contractSubprovider.subproviderList"
t:element="entity.contractSubprovider"
t:value="subprovider" t:encoder="subproviderLoopEncoder">
<div class="col-3-4">
<t:subproviderEdit
t:subprovider="subprovider" />
</div>
<div class="col-1-4">
<t:removerowlink class="btn btn--outline"
name="subprovider" style="margin-top: 5px">
$message:remove-subprovider-button
</t:removerowlink>
</div>
<p:addRow>
<div class="col-3-4">
<a t:type="addRowLink" t:mixins="LayoutButton"
t:color="green" class="margin--top">
<i class="fa fa-plus-circle"></i>
$message:add-subprovider-button
</a>
</div>
</p:addRow>
</div>
</div>
In the frontend there is a dropdown menu entityContractSubproviderSubCategoryofoutsourcedserviceRequired
that gets filled with new choices when another dropdown menu entityContractSubproviderCategoryofoutsourcedserviceRequired
value changes.
<div data-fragment-container="categoryofoutsourcedserviceSubproviderContainer">
<div class="form__row">
<div class="col-1-4 inline">
<div t:type="LayoutSelectList"
t:model="entityCategoryofoutsourcedserviceModel"
t:id="entityContractSubproviderCategoryofoutsourcedserviceRequired"
t:value="subprovider.categoryofoutsourcedservice"
t:valueEncoder="categoryofoutsourcedserviceValueEncoder"
t:blankOption="ALWAYS"
t:mixins="ExclusiveTriggerFragment,DpmFormGroup"
data-for-trigger-group="categoryofoutsourcedserviceSubproviderGroup"
data-fragment-container-id="categoryofoutsourcedserviceSubproviderContainer"
t:async="true"
zone="categoryOfSubModelZone"/>
</div>
<div class="form__row" t:type="if" t:test="true"
t:id="entityContractSubproviderSubCategoryofoutsourcedserviceRequired">
<div data-fragment-trigger="CRM, ICT, CONTROLFUNCTIONS, REPORTING, RISKMANAGEMENT, TREASURY, SECURITIES, PAYMENTS, OTHER" t:type="formFragment"
data-trigger-group="categoryofoutsourcedserviceSubproviderGroup"
data-fragment-detection="any"
t:visible="subproviderCategoryofoutsourcedserviceActive">
<div class="form__row">
<t:zone t:id="categoryOfSubModelZone" id="categoryOfSubModelZone" style="display: inline;">
<div class="col-1-4 inline">
<div t:type="LayoutSelectList" t:blankOption="ALWAYS"
t:model="entitySubCategoryofoutsourcedserviceModel"
t:label="message:entityContractSubproviderSubCategoryofoutsourcedserviceRequired-label"
t:value="subprovider.subcategoryofoutsourcedservice"
t:valueEncoder="subCategoryOfOutsourcedServiceValueEncoder"
t:mixins="ExclusiveTriggerFragment,FormGroup"/>
</div>
</t:zone>
</div>
</div>
</div>
</div>
</div>
The problem is whenever I add a new row and change the category dropdown choice , the subcategory menu changes in all the rows. I want it to be changed in its own row only
apache tapestry
I have an ajaxFormLoop on a list of objects that have some fields.
<div class="col-1-1"
data-parent-subprovider="parentSubprovider">
<div t:type="ajaxformloop" t:id="subproviderLoop"
t:source="entity.contractSubprovider.subproviderList"
t:element="entity.contractSubprovider"
t:value="subprovider" t:encoder="subproviderLoopEncoder">
<div class="col-3-4">
<t:subproviderEdit
t:subprovider="subprovider" />
</div>
<div class="col-1-4">
<t:removerowlink class="btn btn--outline"
name="subprovider" style="margin-top: 5px">
$message:remove-subprovider-button
</t:removerowlink>
</div>
<p:addRow>
<div class="col-3-4">
<a t:type="addRowLink" t:mixins="LayoutButton"
t:color="green" class="margin--top">
<i class="fa fa-plus-circle"></i>
$message:add-subprovider-button
</a>
</div>
</p:addRow>
</div>
</div>
In the frontend there is a dropdown menu entityContractSubproviderSubCategoryofoutsourcedserviceRequired
that gets filled with new choices when another dropdown menu entityContractSubproviderCategoryofoutsourcedserviceRequired
value changes.
<div data-fragment-container="categoryofoutsourcedserviceSubproviderContainer">
<div class="form__row">
<div class="col-1-4 inline">
<div t:type="LayoutSelectList"
t:model="entityCategoryofoutsourcedserviceModel"
t:id="entityContractSubproviderCategoryofoutsourcedserviceRequired"
t:value="subprovider.categoryofoutsourcedservice"
t:valueEncoder="categoryofoutsourcedserviceValueEncoder"
t:blankOption="ALWAYS"
t:mixins="ExclusiveTriggerFragment,DpmFormGroup"
data-for-trigger-group="categoryofoutsourcedserviceSubproviderGroup"
data-fragment-container-id="categoryofoutsourcedserviceSubproviderContainer"
t:async="true"
zone="categoryOfSubModelZone"/>
</div>
<div class="form__row" t:type="if" t:test="true"
t:id="entityContractSubproviderSubCategoryofoutsourcedserviceRequired">
<div data-fragment-trigger="CRM, ICT, CONTROLFUNCTIONS, REPORTING, RISKMANAGEMENT, TREASURY, SECURITIES, PAYMENTS, OTHER" t:type="formFragment"
data-trigger-group="categoryofoutsourcedserviceSubproviderGroup"
data-fragment-detection="any"
t:visible="subproviderCategoryofoutsourcedserviceActive">
<div class="form__row">
<t:zone t:id="categoryOfSubModelZone" id="categoryOfSubModelZone" style="display: inline;">
<div class="col-1-4 inline">
<div t:type="LayoutSelectList" t:blankOption="ALWAYS"
t:model="entitySubCategoryofoutsourcedserviceModel"
t:label="message:entityContractSubproviderSubCategoryofoutsourcedserviceRequired-label"
t:value="subprovider.subcategoryofoutsourcedservice"
t:valueEncoder="subCategoryOfOutsourcedServiceValueEncoder"
t:mixins="ExclusiveTriggerFragment,FormGroup"/>
</div>
</t:zone>
</div>
</div>
</div>
</div>
</div>
The problem is whenever I add a new row and change the category dropdown choice , the subcategory menu changes in all the rows. I want it to be changed in its own row only
apache tapestry
apache tapestry
edited May 24 at 16:57
Dmitry Gusev
7036 silver badges11 bronze badges
7036 silver badges11 bronze badges
asked Mar 28 at 9:22
mamadomamado
14 bronze badges
14 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55394029%2ftapestry-ajaxformloop-rows-affecting-each-others-values-why%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55394029%2ftapestry-ajaxformloop-rows-affecting-each-others-values-why%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown