Re: How to load javascript file in apache wicket?

2012-11-19 Thread Andrea Del Bene
Hi, which version of Wicket are you using? I think you should handle your js file as package resource or shared resource... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: Wicket 1.5.8 + EJB 3.1 - strange problem

2012-11-19 Thread Martin Grigorov
Hi, I don't use Wicketstuff-javaee and I have no idea what could be the problem. But I want to tell you that there are several releases of this project after 1.5-RC1: http://central.maven.org/maven2/org/wicketstuff/wicketstuff-javaee-inject/1.5.9/. Note the different groupId. On Sun, Nov 18,

Re: any book about wicket 6?

2012-11-19 Thread Martin Grigorov
Hi Andrea, Thank you! I think this example will be very useful for someone who used extensively the old SWING-based model. On Fri, Nov 16, 2012 at 9:07 PM, Andrea Del Bene an.delb...@gmail.comwrote: I didn't write an article on tree components yet :) , but I've built a very basic example for

Re: How to load javascript file in apache wicket?

2012-11-19 Thread Martin Grigorov
Hi, Can you give more details ? What does it mean: The eval method won't start because the .js file is not recongnized by the browser ? How do you load the .js and JSON in the markup ? On Sun, Nov 18, 2012 at 6:23 AM, delta458 delta...@hotmail.com wrote: Hi ;) I have a javascript file in

Re: Include one .js file into another .js file in wicket

2012-11-19 Thread Martin Grigorov
Hi, Check org.apache.wicket.util.template.PackageTextTemplate and org.apache.wicket.util.string.interpolator.MapVariableInterpolator. On Sat, Nov 17, 2012 at 7:56 PM, delta458 delta...@hotmail.com wrote: Hello, I have 2 .js files. Invoice.js: content is something like: /var price var

Re: how to fix this error in wicket app

2012-11-19 Thread Martin Grigorov
Hi, Do you have idea how many target.appendJS/prependJS calls do you have for this Ajax request ? The error says that you have a lot of those in the ajax-response. If you look closely at

Re: How to load javascript file in apache wicket?

2012-11-19 Thread delta458
@Martin: yes, by the browser... I made a detailed description of the problem here: http://stackoverflow.com/questions/13447212/serialize-several-null-objects-with-gson http://stackoverflow.com/questions/13447212/serialize-several-null-objects-with-gson regards -- View this message in

Re: How to load javascript file in apache wicket?

2012-11-19 Thread delta458
Edit: This is the correct link http://stackoverflow.com/questions/13443361/load-resources-javascript-in-a-web-application-framework-wicket-correctly http://stackoverflow.com/questions/13443361/load-resources-javascript-in-a-web-application-framework-wicket-correctly -- View this message in

Re: Wicket 1.5.8 + EJB 3.1 - strange problem

2012-11-19 Thread Satrix
Hello Martin, I'll check this out today and let you know if it helps. Regards, Satrix -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-EJB-3-1-strange-problem-tp4653977p4653990.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Wicket 1.5.8 + EJB 3.1 - strange problem

2012-11-19 Thread Satrix
Unfortunately even after changing the version of the wicketstuff-javaee-inject to newer version the problem still exists. What's more interesing is that when I navigate over the page (everything except back button) the @Stateful bean works. Only back button click recreates the @Stateful bean

Re: Wicket 1.5.8 + EJB 3.1 - strange problem

2012-11-19 Thread Martin Grigorov
https://github.com/aldaris - this is the guy who made this contribution On Mon, Nov 19, 2012 at 3:16 PM, Satrix satrix...@gmail.com wrote: Unfortunately even after changing the version of the wicketstuff-javaee-inject to newer version the problem still exists. What's more interesing is that

Re: Wicket 1.5.8 + EJB 3.1 - strange problem

2012-11-19 Thread Wujek Srujek
If the container returns the correct bean, this means your login works fine, is this correct? Why do you then care that the @Stateful-annotated field is different? It probably is just a proxy generated by your container's injection framework anyways. On Mon, Nov 19, 2012 at 2:16 PM, Satrix

Re: Wicket 1.5.8 + EJB 3.1 - strange problem

2012-11-19 Thread Satrix
Nope. Look at the example: 1. User has chose to add a product to the Cart (so now the cart number is 1 and he can see that number in a proper place on the page). 2. Now when he clicks back button - bean is recreated - so the cart number is 0 (list is recreated). 3. BUT now when I click on any

Disallowing a logged-in user to access some page

2012-11-19 Thread pureza
Hi, How can I prevent access to certain pages (such as the sign-in page or the account creation page) for logged-in users? Right now I'm just adding a check to every such page and redirect to another page if the user is signed-in, but I'd like to know if there is a cleaner solution. Thanks

Re: Disallowing a logged-in user to access some page

2012-11-19 Thread Martijn Dashorst
Not sure how you have implemented your authorization stuff, but with auth-roles it should be trivial to implement a @OnlyNotLoggedIn annotation for your pages, and extend the authorization check to check for the presence of that annotation. Another way would be to register an

How to override URLs generated by bookmarkable mapper

2012-11-19 Thread shimin_q
I have an Apache Wicket-based application that I'd like to integrate with JQuery Mobile on so it looks more pleasing on mobile devices. Unfortunately, I am getting Error Loading Page errors for all the bookmarkable page links, which I never had problems with before JQuery Mobile was added to the

wicket 1.4.7 - encoding strategy - ajax button

2012-11-19 Thread Daniel Fernandez
Hi, I'm using wicket 1.4.7 and I'm facing some problem trying to solve some problem about URLs: 1) I'm using the classes: mount(new HybridUrlCodingStrategy(WebPageNaming.ADMIN_PAGE, AdminPage.class, false)); mount(new MixedParamHybridUrlCodingStrategy(WebPageNaming.EN + SLASH +

What replaces Wicket 1.4 AbortException in Wicket 6.x?

2012-11-19 Thread Kees van Dieren
Hi, We have some code that returns zip output (e.g. downloads a file) in an onsubmit of a wicket form. We used to do this (with Wicket 1.4): Get the WebResponse Fill it with the ZIP contents throw new AbortException(); The ZIP contents to be returned depends on the contents filled in by the

Re: What replaces Wicket 1.4 AbortException in Wicket 6.x?

2012-11-19 Thread Kees van Dieren
Found something that might help: org.apache.wicket.markup.html.link.DownloadLink.onClick() Will look at this, some tips still welcome :) 2012/11/19 Kees van Dieren i...@squins.com Hi, We have some code that returns zip output (e.g. downloads a file) in an onsubmit of a wicket form. We

Re: Wicket-Atmosphere complex JS

2012-11-19 Thread Pierre Goupil
Good evening, So, I've tried what you said. I forgot one JS file in my initial attempt but, even with this configuration I have now a different symptom. But it still doesn't work. For now, the problem is that I have an empty ajax-response! Here is my code for the filter: public class

how to get the listview's dropdownchoice value

2012-11-19 Thread david.li
the code like this: ListString selection = Arrays.asList(A, B); form.add(new ListView(lis, selection) { @Override protected void populateItem(ListItem item) { List list; if (item.getModelObject().equals(A)) { list =

Re: how to get the listview's dropdownchoice value

2012-11-19 Thread Thomas Götz
ddlmodel.getObject()? -Tom On 20.11.2012, at 05:24, david.li lxw_fi...@hotmail.com wrote: the code like this: ListString selection = Arrays.asList(A, B); form.add(new ListView(lis, selection) { @Override protected void populateItem(ListItem item) { List