Re: web session not available to current thread

2018-12-06 Thread Arunachalam Sibisakkaravarthi
It woks. Thank you.


*Thanks And RegardsSibi.ArunachalammCruncher*


On Thu, Dec 6, 2018 at 3:18 PM Ernesto Reinaldo Barreiro 
wrote:

> Hi,
>
> See
>
> http://wicketinaction.com/2014/07/working-with-background-jobs/
> https://github.com/reiern70/antilia-bits/tree/master/bgprocess
>
>
>
> On Thu, Dec 6, 2018 at 7:35 AM Arunachalam Sibisakkaravarthi <
> arunacha...@mcruncher.com> wrote:
>
> > Hi guys,
> > I am facing problem when try to get current session in separate thread.
> > Have a button in a page to import contacts.
> > When user clicks the button, it invoke Spring Async method in service
> > class.
> > The method saves the contacts.
> > Inside the method I have used Sessiong.get() to get username.
> >
> > But it throws following exception
> >
> > org.apache.wicket.WicketRuntimeException: There is no application
> attached
> > to current thread commonTaskExecutor-2
> > at org.apache.wicket.Application.get(Application.java:235)
> > at org.apache.wicket.Session.get(Session.java:175)
> >
> >
> >
> >
> > *Thanks And RegardsSibi.ArunachalammCruncher*
> >
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
>


Re: Wicket 6.x -> Wicket 8.x extensions NestedTree expand fails ( Components can no longer be added)

2018-12-06 Thread nino martinez wael
@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

Re: http://examples7x.wicket.apache.org/ is down

2018-12-06 Thread nino martinez wael
yup it seems to be up again.:)

On Thu, Dec 6, 2018 at 7:35 AM Maxim Solodovnik 
wrote:

> Works for me (except for websockets)
> what are your steps?
>
> On Thu, 6 Dec 2018 at 13:34, nino martinez wael <
> nino.martinez.w...@gmail.com> wrote:
>
> > the same with http://examples8x.wicket.apache.org/
> >
> > On Wed, Nov 21, 2018 at 9:42 AM Martin Grigorov 
> > wrote:
> >
> > > Yes, it is a known problem.
> > > Yesterday I shared a link to a ticket for Apache Infra about in dev@ :
> > > https://issues.apache.org/jira/browse/INFRA-17280
> > >
> > > On Wed, Nov 21, 2018 at 10:22 AM Francois Meillet <
> > > francois.meil...@gmail.com> wrote:
> > >
> > > > http://examples7x.wicket.apache.org/ is down
> > > >
> > > > François
> > > >
> > > >
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > > For additional commands, e-mail: users-h...@wicket.apache.org
> > > >
> > > >
> > >
> >
> >
> > --
> > Best regards / Med venlig hilsen
> > Nino Martinez
> >
>
>
> --
> WBR
> Maxim aka solomax
>


-- 
Best regards / Med venlig hilsen
Nino Martinez