@svenme...@apache.com what/how do I need to check
during the call? For now I have a breakpoint the place in the code where it
fails, but I need to figure out what closes the request target..
On Mon, Dec 3, 2018 at 10:55 AM nino martinez wael <
nino.martinez.w...@gmail.com> wrote:
> I've debugged a lot further. But still unable to pinpoint it.. For now
> I've switched to rendering the full page instead, which of course works.
>
> We are a couple of things in conjunction with TREE, like wicket jquery ui
> draggable and droppable.. We also have a custom loading mechanism that pops
> a veil if the request are too long to load.. And some custom form handling
> aswell (auto show an marker for error'd form fields)..
>
> PS writing this for other to see, if they hit this challenge..
>
> -Regards Nino
>
>
> On Thu, Nov 29, 2018 at 8:50 AM nino martinez wael <
> nino.martinez.w...@gmail.com> wrote:
>
>> currently unable to reproduce in examples, something must be wrong in my
>> code..
>>
>> I'll comeback if it turns out otherwise..
>>
>> Thanks for helping :)
>>
>> On Thu, Nov 29, 2018 at 6:54 AM nino martinez wael <
>> nino.martinez.w...@gmail.com> wrote:
>>
>>> Yes I understand.. Let me see if it breaks in wicket examples, or I can
>>> make it so.. Do you know another way to make a node/folder expand during
>>> construction time? Feels like the expand method are meant for ajax calls
>>> only.
>>>
>>> -regards Nino
>>>
>>> On Wed, Nov 28, 2018 at 4:16 PM sven wrote:
>>>
Hi Nino,
during rendering of components no additional components can be added to
the ART any more.
I surprised that your code worked in 6.x, can you build a quickstart
demonstrating the problem?
Have fun
Sven
>
> On 28.11.2018 at 14:38,wrote:
>
>
> Hi In wicket 6 this worked, there are another input field (ajax
activated) that triggers the update : ChildAwareNestedTree
profilePartitionTree = new ChildAwareNestedTree("skillsetSelect", provider,
sharedExpansionState) { @Override protected Component
newContentComponent(String id, IModel model) { TreeNode node =
model.getObject(); if (node instanceof TreeNodeProvider.PartitionNode) {
Partition partition = ((TreeNodeProvider.PartitionNode)
node).getPartition(); if
(getPartitionsWithProfiles().containsKey(partition.getId())) {*
expand(node);* } } else if (node instanceof
TreeNodeProvider.NoPartitionNode && isNoPartitionProfilesPresent()) {*
expand(node);* } } The triggering field: searchTerm.add(new
AjaxFormComponentUpdatingBehavior("keydown") { @Override protected void
onUpdate(AjaxRequestTarget target) { if (searchTermModel.getObject() !=
null && !searchTermModel.getObject().isEmpty()) {
profilePartitionTree.rebuildExpandedPartitions(); } else {
profilePartitionTree.getP
artitionsWithProfiles().clear(); }* target.add(profilePartitionTree);*
} @Override protected void updateAjaxAttributes(AjaxRequestAttributes
attributes) { super.updateAjaxAttributes(attributes);
attributes.setThrottlingSettings(new
ThrottlingSettings(searchTerm.getMarkupId(), Duration.milliseconds(400),
true)); } }); But I get an this error message in wicket 8, my line below:
2018-11-28 14:26:44,127 | ERROR | qtp938432184-652 | DefaultExceptionMapper
| 136 - org.apache.wicket.core - 8.1.0 | Unexpected error occurred
org.apache.wicket.WicketRuntimeException: Error attaching this container
for rendering: [Subtree [Component id = subtree]] at
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1765)[136:org.apache.wicket.core:8.1.0]
at
org.apache.wicket.Component.onBeforeRender(Component.java:3788)[136:org.apache.wicket.core:8.1.0]
at
org.apache.wicket.Component.beforeRender(Component.java:937)[136:org.apache.wicket.core:8.1.0]
at org.apache.wicket.MarkupContai
ner.onBeforeRenderChildren(MarkupContainer.java:1753)[136:org.apache.wicket.core:8.1.0]
at
org.apache.wicket.Component.onBeforeRender(Component.java:3788)[136:org.apache.wicket.core:8.1.0]
at
dk.netdesign.XXX.frontend.tree.ChildAwareNestedTree.onBeforeRender(ChildAwareNestedTree.java:41)[106:XXX-frontend:1.0.4.RC_01]
at
org.apache.wicket.Component.beforeRender(Component.java:937)[136:org.apache.wicket.core:8.1.0]
at
org.apache.wicket.page.PartialPageUpdate.prepareComponent(PartialPageUpdate.java:322)[136:org.apache.wicket.core:8.1.0]
at
org.apache.wicket.page.PartialPageUpdate.writeComponents(PartialPageUpdate.java:250)[136:org.apache.wicket.core:8.1.0]
at
org.apache.wicket.page.PartialPageUpdate.writeTo(PartialPageUpdate.java:162)[136:org.apache.wicket.core:8.1.0]
at
org.apache.wicket.ajax.AjaxRequestHandler.respond(AjaxRequestHandler.java:384)[136:org.apa