Re: Possibility of mounting Wicket resource accessible only once

2016-10-13 Thread Martin Grigorov
Hi, On Thu, Oct 13, 2016 at 8:38 AM, Rakesh A wrote: > Hi, > > Having the token persisted into DB seems bit complex to solve this > 'dynamic' > resource issue. > > The way I've implemented it right now, is to have this resource reference > unmounted, from AbstractRequestCycleListener#onRequestHa

Re: Possibility of mounting Wicket resource accessible only once

2016-10-13 Thread Rakesh A
Hi, URLs I can add some code to make them unique, and unmounting from #getResource() seems better place indeed. Thank you for the inputs. Regards, Rakesh.A -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possibility-of-mounting-Wicket-resource-accessible-only-once-t

Re: java wickets menu on image button

2016-10-13 Thread ASHU_JAVA
Hi Martin, I tried adding following Javascript in HTML file like below:- And modify the code in corresponding JAVA file:- But I'm unable to get Javascript function trigger when the link is clicked. Can you please propose some suggestions. Thanks in advance -- View this message in context:

Re: java wickets menu on image button

2016-10-13 Thread Martin Grigorov
Hi, I'd suggest the following: - produce a normal with ExternalLink - add a special CSS class to all links you need to manipulate, e.g. class="toVerify" - in renderHead() do: response.render(OnDomReadyHeaderItem.forScript("$('.toVerify').each(checkLink)")) This will call checkLink(link) function

Re: Possibility of mounting Wicket resource accessible only once

2016-10-13 Thread Ernesto Reinaldo Barreiro
Questions... 1- What happens with mounted URLS not visited (stay in memory as far as I can see) 2- What happens after server restarts (guessing they disappear) On Thu, Oct 13, 2016 at 9:16 AM, Rakesh A wrote: > Hi, > > URLs I can add some code to make them unique, and unmounting from > #getReso

WICKET-6249

2016-10-13 Thread Jonas
Hello, we recently had trouble with LoadableDetachableModel remaining in 'attaching' state after a RuntimeException during #load. I noticed the problem is already tracked in WICKET-6249. While there seems to be a fix for wicket 7.x, the issue itself is still marked as open/unresolved. That's why I

Re: AjaxLink cannot see updated model values

2016-10-13 Thread Iamuser
Hello, Yes, adding the behavoiur AjaxFormComponentUpdatingBehavior on the text field, solved the issue. Thank you for solution. Now I'm facing following situation. When another link is clicked I need to clear the input fields (so my textfield). I have the following added, but the form just does

Re: AjaxLink cannot see updated model values

2016-10-13 Thread Ernesto Reinaldo Barreiro
make TextField txtName a field. Call txtName.setOutputMarkupId(true) and add it to the ART on on click On Thu, Oct 13, 2016 at 3:38 PM, Iamuser wrote: > Hello, > > Yes, adding the behavoiur AjaxFormComponentUpdatingBehavior on the text > field, solved the issue. > > Thank you for solution. > >

Re: AjaxLink cannot see updated model values

2016-10-13 Thread Martin Grigorov
On Thu, Oct 13, 2016 at 3:38 PM, Iamuser wrote: > Hello, > > Yes, adding the behavoiur AjaxFormComponentUpdatingBehavior on the text > field, solved the issue. > > Thank you for solution. > > Now I'm facing following situation. > When another link is clicked I need to clear the input fields (so m

Re: AjaxLink cannot see updated model values

2016-10-13 Thread Iamuser
I have added txtName.setOutputMarkupId(true); and target.add(TestForm.this); But it is still not working. txtName.setOutputMarkupId(true); AjaxLink clearLink = new AjaxLink("clearLink", model) { /** * */ private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTa

(Customizable) Fragment as String

2016-10-13 Thread Maxim Solodovnik
Hello All, I'm successfully using following code [1] to get Panel as String Unfortunately It is not possible to get Fragment as String this way :( The goal I'm trying to achieve is: store email subject as wicket:fragment Another question is: is it possible to edit markup like this - to be ab

Re: (Customizable) Fragment as String

2016-10-13 Thread Martin Grigorov
Hi Maxim, On Thu, Oct 13, 2016 at 6:10 PM, Maxim Solodovnik wrote: > Hello All, > > I'm successfully using following code [1] to get Panel as String > Unfortunately It is not possible to get Fragment as String this way :( > You can replace your util with ComponentRenderer#renderComponent() http

Re: (Customizable) Fragment as String

2016-10-13 Thread Maxim Solodovnik
Hello Martin, Thanks for the quick response! On Thu, Oct 13, 2016 at 11:39 PM, Martin Grigorov wrote: > Hi Maxim, > > On Thu, Oct 13, 2016 at 6:10 PM, Maxim Solodovnik > wrote: > > > Hello All, > > > > I'm successfully using following code [1] to get Panel as String > > Unfortunately It is not

Re: (Customizable) Fragment as String

2016-10-13 Thread Martin Grigorov
On Thu, Oct 13, 2016 at 6:49 PM, Maxim Solodovnik wrote: > Hello Martin, > > Thanks for the quick response! > > On Thu, Oct 13, 2016 at 11:39 PM, Martin Grigorov > wrote: > > > Hi Maxim, > > > > On Thu, Oct 13, 2016 at 6:10 PM, Maxim Solodovnik > > wrote: > > > > > Hello All, > > > > > > I'm su

Re: WICKET-6249

2016-10-13 Thread Martin Grigorov
/cc Martijn Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Oct 13, 2016 at 1:26 PM, Jonas wrote: > Hello, > > we recently had trouble with LoadableDetachableModel remaining in > 'attaching' state after a RuntimeException during #load. I noticed the > probl

Re: (Customizable) Fragment as String

2016-10-13 Thread Maxim Solodovnik
Yes, the changes were local :( Here is the quickstart: https://github.com/solomax/fragment-as-string In case following line is uncommented https://github.com/solomax/fragment-as-string/blob/master/src/main/java/org/apache/solomax/HomePage.java#L16 (next one should be commented) Tests are fails wit

Wicket vs JS frameworks.

2016-10-13 Thread fzb
Hi, I am a fan of Wicket & had been working on for last 6 to 7 yrs using the same. Recently had evaluated few frameworks Angular, ReactJS etc in view of developing new applications, I did not feel them appealing may be due to my very bad java script knowledge.. if at all i learn and start working

Re: Wicket vs JS frameworks.

2016-10-13 Thread Tobias Soloschenko
Hi, this is a topic every web developer is facing currently. I think because Wicket uses HTML5 and Java you can combine JS Frameworks with many of the features of Wicket. Example: Because you have a java backend you can build a rest API with wicket-rest-annotations and configure your Angular JS

Re: Wicket vs JS frameworks.

2016-10-13 Thread Ernesto Reinaldo Barreiro
Hi, My opinion might be a little biased as I love Wicket... but 1- Except maybe for Web Components I haven't seen anything as reusable as Wicket (http://webcomponents.org/) on JS world (disclaimer I'm not a big JS expert, just maybe an advanced user) 2- In some places, companies I have worked for