Re: Where is InjectorHolder for Guice?

2010-03-01 Thread Martin Grigorov
Just created a ticket and attached a patch https://issues.apache.org/jira/browse/WICKET-2761 On Sun, 2010-02-28 at 21:29 -0300, Mauro Ciancio wrote: José María, For example, sometimes I need an injected object in a DataProvider, but this is constructed in the context of a page. So, I can

Wicket-securty

2010-03-01 Thread Josh Kamau
Hi Team; I am just wondering, are the wicket security features enough or i have to integrate something like apache-shiro ? How are you guys implementing security? Regards Josh.

Re: Wicket-securty

2010-03-01 Thread Bert
This would entirely depend on your requirements? So far, i did not need to integrate other frameworks for this but for more complex scenario you probably need to. On Mon, Mar 1, 2010 at 09:14, Josh Kamau joshnet2...@gmail.com wrote: Hi Team;  I am just wondering, are the wicket security

Re: Wicket-securty

2010-03-01 Thread Josh Kamau
Thanks Bert. I will evaluate my requirements . On Mon, Mar 1, 2010 at 11:19 AM, Bert taser...@gmail.com wrote: This would entirely depend on your requirements? So far, i did not need to integrate other frameworks for this but for more complex scenario you probably need to. On Mon, Mar 1,

Re: Serialization and Form Models

2010-03-01 Thread Bert
I found Igors post on smart entity models very helpful on that matter: http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ basically, it attaches/detaches only if an Id is set (hence, it can be fetched from the backend) Bert

Re: Ajax refresh outer panel

2010-03-01 Thread marioosh.net
marioosh.net wrote: I have LoginPanel like below: public class LoginPanel extends Panel { public LoginPanel(String id) { super(id); MySession.get().setLoginPanel(this); this.setOutputMarkupId(true);

Re: Make Wicket component ID HTML element ID?

2010-03-01 Thread Martijn Dashorst
On Mon, Mar 1, 2010 at 7:52 AM, Jeremy Thomerson jer...@wickettraining.com wrote: You could also use a component instantiation listener and have it automatically called for every component that is created. +1 Martijn - To

Re: How to 'resolve' URL in stylesheet?

2010-03-01 Thread Sergey Olefir
*bonks self on the head* Somehow I never realised that paths in CSS are resolved against CSS itself, not the HTML page (being a total HTML noob and all it's not that surprising). Thanks for the pointer Igor, I've been inventing problem where there's none. igor.vaynberg wrote: if you keep

Re: Ajax refresh outer panel

2010-03-01 Thread Bert
If i recall correctly, then you can't change the component tree once the rendering started. Not 100% sure here. What i would do is to add both panels and override the isVisible() funktion in them. In there you check is a user is logged in or not .. Bert

How to specify codebase for applet?

2010-03-01 Thread Sergey Olefir
Hi, in our application we need to make use of an applet. For the size and logistics reasons I don't want to package the required applet jars inside Java packages (that is unlike e.g. images and css that we do package together with the components). So, say, I'll package the jars under 'applet'

Re: How to specify codebase for applet?

2010-03-01 Thread Martijn Dashorst
See the source for ContextImage for an example. Martijn On Mon, Mar 1, 2010 at 1:19 PM, Sergey Olefir solf.li...@gmail.com wrote: Hi, in our application we need to make use of an applet. For the size and logistics reasons I don't want to package the required applet jars inside Java packages

Re: Where is InjectorHolder for Guice?

2010-03-01 Thread Jose Maria
Thank you very much Martin :) On 01/03/2010 09:00, Martin Grigorov wrote: Just created a ticket and attached a patch https://issues.apache.org/jira/browse/WICKET-2761 On Sun, 2010-02-28 at 21:29 -0300, Mauro Ciancio wrote: José María, For example, sometimes I need an injected object

How can i know when a users redirects to other page

2010-03-01 Thread Martin Asenov
Hello, everyone! I was wondering if there's a way to know for instance if the user is on a page is there an event fired that indicates that the user is no longer on this page. I saw the method 'onRedirect()', but it's fired when the user comes to the page. I want to know when the user changes

Re: SV: Make Wicket component ID HTML element ID?

2010-03-01 Thread David Chang
You are right. I need to be cautoius on this. I am new in Wicket. Just for the sake of discussion. I put the following code in the top page's constructor: visitChildren(new IVisitorComponent() { @Override public Object component(Component c) {

Re: Make Wicket component ID HTML element ID?

2010-03-01 Thread David Chang
Thanks for this new tip and it shows another approach, which makes me feel the flexibility of Wicket. I am new in Wicket. Cheers! --- On Mon, 3/1/10, Jeremy Thomerson jer...@wickettraining.com wrote: From: Jeremy Thomerson jer...@wickettraining.com Subject: Re: Make Wicket component ID

Re: jWicket release 0.5.0

2010-03-01 Thread Antoine van Wel
Hi Stefan, I'm a bit lost in the wicketstuff maven repository - when I browse I only see 1.4.1 and 1.4.2-SNAPSHOT. Any idea when this version will be in the maven repo? But for now it would be great if you could send me the pre-build jar. Thanks! Antoine On Fri, Feb 26, 2010 at 2:57 PM,

Re: Wicket-securty

2010-03-01 Thread Riyad Kalla
Josh, I think if your security is just needing role/authentication enforcement (e.g. Ok Bob is an ADMIN, he can do all this stuff, but Jeff is a NORMAL user, so he can only do this and Anon is ANONYMOUS so he can only view) Wicket should have you covered. I'm not familiar with Shiro, so I don't

Re: Ajax refresh outer panel

2010-03-01 Thread Riyad Kalla
If there was a div wicket:id=loggedState container in your HTML that contained your loggedIn or loggedOut panel, then I imagine in your page code you would have a WebMarkupContainer that you did a removeAll() on then added the appropriate panel to it when building the page. I imagine your

Re: How can i know when a users redirects to other page

2010-03-01 Thread Riyad Kalla
Martin can you explain your use-case, namely what is the importance of seeing which page a user is no-longer on? Seems like a super-easy way to do this would be to extend a base-page that updates a Session metadata element with the current page the user is on and allow a listener to be notified

How to encrypt/obfuscate resource reference?

2010-03-01 Thread Sergey Olefir
Hi, out of the box Wicket generates urls for packaged resources that contain fully-qualified class names, e.g.: link rel=stylesheet type=text/css href=resources/org.example.MyClassName/decorations/style.css / Now in accordance with our security policies we are not allowed to expose internal

Error Ajaxlink don't call onSubmit

2010-03-01 Thread Romeo Sheshi
Hi, I change the version of wicket from 1.4.0 to 1.4.6 and i can't submit my form. I have an new AjaxSubmitLink(addLink, form) { @Override public void onSubmit(AjaxRequestTarget target, Form form) { //do things } } in wicket 1.4.0 this work

Re: Generic warning ListMultipleChoice

2010-03-01 Thread Juris Maskalans
Of course these are only details, but I wanted to get clear. It seems that in this case I cannot use List interface although List interface has super-interface Collection. When List is replaced with Collection all is OK, no compiler warnings: IModelCollectionString allYearsModel = new

Re: How can i know when a users redirects to other page

2010-03-01 Thread Ernesto Reinaldo Barreiro
Just an idea... Use a component instantiation listener and delete the file, if it exists, whenever any other page is created. Regards, Ernesto On Mon, Mar 1, 2010 at 4:09 PM, Martin Asenov mase...@velti.com wrote: The use case is that I generate a file located in a temp folder that appears

RE: Role-based wicket application

2010-03-01 Thread Jing Ge (Besitec IT DEHAM)
Hi, Thank you and James for the reply. I'v read the Wicket in action book and knew the interface IAuthorizationStrategy. Just implemnenting it(like the book introduces) will force us building a lot of classes and a lot of code in that two methods for authorization handling. Following your

spanish wicket group is going to organize its first wicket meeting at Buenos Aires, Argentina in saturday march 6th

2010-03-01 Thread Fernando Wermus
Hi all, I am one of the administrator of wicket...@googlegroups.com which is a group related to Wicket in spanish. We will have our first meeting in Buenos Aires, Argentina in saturday march 6th. This meeting is aimed to prepare a public wicket meeting where we can promote the framework.

Re: How to encrypt/obfuscate resource reference?

2010-03-01 Thread Antoine van Wel
for a discussion and suggestion see http://old.nabble.com/CryptedUrlWebRequestCodingStrategy-%2B-WebRequestCodingStrategy-%3D-resource-URLs-are-not-encrypted-(bug-).-td27209560.html quote I was able to get around this by subclassing WebRequestCodingStrategy and overriding methods:

check browser version and java script enabled for every request

2010-03-01 Thread tubin gen
I want to check the browser version and java script enabled for every request using a servlet filter , I am currently using the org.apache.wicket.protocol.http.request.WebClientInfo, this just checks at the begin of session and uses the same information, is there anything to check browser

Cant Read Variable From PageParameters (Wicket 1.4.6)

2010-03-01 Thread Ayodeji Aladejebi
Wicket Version 1.4.6 Link: http://localhost:8084/site2/?param1=c Code: paramValue= params.getString(param1, ); Output: paramValue returns empty String I am using the default mount Settings. am I missing something - - To

Re: Cant Read Variable From PageParameters (Wicket 1.4.6)

2010-03-01 Thread Riyad Kalla
What happens when you use: http://localhost:8084/site2?param1=c ? On Mon, Mar 1, 2010 at 9:33 AM, Ayodeji Aladejebi aladej...@gmail.comwrote: Wicket Version 1.4.6 Link: http://localhost:8084/site2/?param1=c Code: paramValue= params.getString(param1, ); Output: paramValue returns empty

Re: SV: Make Wicket component ID HTML element ID?

2010-03-01 Thread Igor Vaynberg
constructors of subclasses are called after -igor On Mon, Mar 1, 2010 at 5:06 AM, David Chang david_q_zh...@yahoo.com wrote: You are right. I need to be cautoius on this. I am new in Wicket. Just for the sake of discussion. I put the following code in the top page's constructor:

RE: How can i know when a users redirects to other page

2010-03-01 Thread Martin Asenov
Thank you all for the support, I highly appreciate it! Regards, Martin -Original Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: Monday, March 01, 2010 5:31 PM To: users@wicket.apache.org Subject: Re: How can i know when a users redirects to other page Just

Re: How to encrypt/obfuscate resource reference?

2010-03-01 Thread Sergey Olefir
He he, that was my old thread there :) Thing is, I just recently discovered, that encoding resources as arguments (rather than paths) completely breaks relative URLs discussed there: http://old.nabble.com/How-to-'resolve'-URL-in-stylesheet--td27720293.html (for the simple reason that browser

Re: Make Wicket component ID HTML element ID?

2010-03-01 Thread Igor Vaynberg
there is also IComponentOnBeforeRenderListener which may be a better fit if you will need access to the complete component hierarchy -igor On Mon, Mar 1, 2010 at 5:09 AM, David Chang david_q_zh...@yahoo.com wrote: Thanks for this new tip and it shows another approach, which makes me  feel

Re: How to specify codebase for applet?

2010-03-01 Thread Sergey Olefir
Thanks for the pointer, I was able to solve my problem with this information. However I had to roll my own versions of ContextImage and ContextPathGenerator -- because the ones supplied with Wicket appear to be hardcoded to use 'src' attribute. Maybe generic versions that are able to manipulate

Uses of wicket:panel Tag?

2010-03-01 Thread sravan g
Where to use wicket:panel tag and uses? Thanks, Sravang

Re: How can i know when a users redirects to other page

2010-03-01 Thread Riyad Kalla
1 other idea (among others that would probably work) is a custom IRequestCycleProcessor impl that checks the returned IRequestTarget ( http://wicket.apache.org/docs/1.4/org/apache/wicket/IRequestTarget.html) to see if it's sending back the PageRequestTarget (

Re: Uses of wicket:panel Tag?

2010-03-01 Thread Riyad Kalla
I asked Google, he's quite helpful: http://www.javalobby.org/java/forums/t60926.html On Mon, Mar 1, 2010 at 2:02 AM, sravan g sravangs...@gmail.com wrote: Where to use wicket:panel tag and uses? Thanks, Sravang

Re: SV: Make Wicket component ID HTML element ID?

2010-03-01 Thread David Chang
You are perfectly right. That explains. Thanks a lot!!! --- On Mon, 3/1/10, Igor Vaynberg igor.vaynb...@gmail.com wrote: From: Igor Vaynberg igor.vaynb...@gmail.com Subject: Re: SV: Make Wicket component ID HTML element ID? To: users@wicket.apache.org Date: Monday, March 1, 2010, 11:41 AM

Re: Cant Read Variable From PageParameters (Wicket 1.4.6)

2010-03-01 Thread Ayodeji Aladejebi
The Link changes to http://localhost:8084/site2/?param1=c still the same problem On Mon, Mar 1, 2010 at 5:40 PM, Riyad Kalla rka...@gmail.com wrote: What happens when you use: http://localhost:8084/site2?param1=c ? On Mon, Mar 1, 2010 at 9:33 AM, Ayodeji Aladejebi aladej...@gmail.comwrote:

Re: Cant Read Variable From PageParameters (Wicket 1.4.6)

2010-03-01 Thread Riyad Kalla
Can you paste the code for the page that isn't working? You have a constructor for that page that takes a PageParameters arg that you named 'params' right? On Mon, Mar 1, 2010 at 11:15 AM, Ayodeji Aladejebi aladej...@gmail.comwrote: The Link changes to http://localhost:8084/site2/?param1=c

Re: Announcing: visural-wicket 0.5 released - open source wicket components

2010-03-01 Thread danisevsky
It works great now, thank you very much!

Re: How to encrypt/obfuscate resource reference?

2010-03-01 Thread Antoine van Wel
Oops :-) can't you just take the path and encrypt that using the same strategy as the cryptedurl.. thingy is using? Antoine On Mon, Mar 1, 2010 at 5:43 PM, Sergey Olefir solf.li...@gmail.com wrote: He he, that was my old thread there :) Thing is, I just recently discovered, that encoding

Re: Cant Read Variable From PageParameters (Wicket 1.4.6)

2010-03-01 Thread Ayodeji Aladejebi
My Bad :) private HomePage(PageParameters params); instead of public HomePage(PageParameters params); i just dont know how i typed private instead of public. So it was the default empty constructor that was getting called instead Thanks On Mon, Mar 1, 2010 at 7:19 PM, Riyad Kalla

Making label visible using Ajax, does not update model

2010-03-01 Thread Anna Simbirtsev
Hi, I have labels defined in the following way: MarkupContainer f = new WebMarkupContainer(viewPanel); f.setOutputMarkupPlaceholderTag(true); form.add(f); f.setVisible(false); f.add(new Label(label1, data.getLabel1())); f.add(new Label(label2, data.getLabel2())); AjaxSubmitLink submitbutton =

Re: Making label visible using Ajax, does not update model

2010-03-01 Thread James Carman
You're not using a real model. You're constructing the labels with an empty string (the data.getLabel1() is evaluated when you construct the Label object). On Mon, Mar 1, 2010 at 2:57 PM, Anna Simbirtsev asimbirt...@gmail.com wrote: Hi, I have labels defined in the following way:

Re: Cant Read Variable From PageParameters (Wicket 1.4.6)

2010-03-01 Thread Riyad Kalla
Ah! I love things that are that easy to fix. Glad it's working now. On Mon, Mar 1, 2010 at 11:51 AM, Ayodeji Aladejebi aladej...@gmail.comwrote: My Bad :) private HomePage(PageParameters params); instead of public HomePage(PageParameters params); i just dont know how i typed private

Re: Making label visible using Ajax, does not update model

2010-03-01 Thread Anna Simbirtsev
But how can I use a label with a real model? On Mon, Mar 1, 2010 at 2:59 PM, James Carman jcar...@carmanconsulting.comwrote: You're not using a real model. You're constructing the labels with an empty string (the data.getLabel1() is evaluated when you construct the Label object). On Mon,

Re: Making label visible using Ajax, does not update model

2010-03-01 Thread Riyad Kalla
Anna, Try this: == f.add(new Label(label1, new PopertyModel(data, label1))); f.add(new Label(label2, new PopertyModel(data, label2))); == That way when the model is queried for the value, the propertymodel will dynamically query data's appropriate property name (in this

Re: Making label visible using Ajax, does not update model

2010-03-01 Thread Anna Simbirtsev
Thanks. On Mon, Mar 1, 2010 at 3:08 PM, Riyad Kalla rka...@gmail.com wrote: Anna, Try this: == f.add(new Label(label1, new PopertyModel(data, label1))); f.add(new Label(label2, new PopertyModel(data, label2))); == That way when the model is queried for the value,

Re: How to encrypt/obfuscate resource reference?

2010-03-01 Thread bgooren
The easiest way around this is to specify http://wicket.apache.org/docs/1.4/org/apache/wicket/SharedResources.html#putClassAlias(java.lang.Class, java.lang.String) class aliases . The upside is that you control the generated URL, the downside is that you have to make sure the alias is unique.

Ajax File Upload (Safari and Chrome)?

2010-03-01 Thread Corbin, James
Are there any known issues with the FileUploadField when submitting via Ajax on Safari 4.x or Chrome 5.x? In the AjaxButton.onSubmit(), I am attempting to update other components and it doesn't seem to repaint the component(s) in Safari or Chrome, but does work as I expect in Firefox 3.x.

persisting a javascript object via wicket

2010-03-01 Thread Douglas Ferguson
We are looking at building a JQuery plugin that would give us some drag and drop capabilities. When the users does this, we'd like to persist the state to the db. How can we trigger an ajax call to wicket so that our persistence method for the page will get called? Douglas Ferguson

Re: persisting a javascript object via wicket

2010-03-01 Thread Cemal Bayramoglu
Douglas, See Al's drag 'n' drop list editor slides at http://jweekend.com/dev/ArticlesPage . Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 1 March 2010 22:58, Douglas Ferguson doug...@douglasferguson.us wrote: We are looking at

Re: persisting a javascript object via wicket

2010-03-01 Thread Igor Vaynberg
there are a bunch of drag and drop implementations for wicket, google is your friend. im sure some if not most have serverside callbacks. -igor On Mon, Mar 1, 2010 at 2:58 PM, Douglas Ferguson doug...@douglasferguson.us wrote: We are looking at building a JQuery plugin that would give us some

Submitlink and show popup page

2010-03-01 Thread Anders Sørensen
Hi everybody, I have a page where a user inputs a number of values. The user them clicks on a calculate button, and the form is submitted. I would now like to display the calculated result in a popup page. Since SubmitLink does not support PopupSettings - I was wondering if anybody here have

Re: RE: How can i know when a users redirects to other page

2010-03-01 Thread Edward Zarecor
Would on session expiry be a better place to handle this? Implementation would be simple and you could avoid ever needing to regenerate a file if that is useful to you. It also naturally handles the case where a user doesn't leave the page. Ed. On Mar 1, 2010 10:09 AM, Martin Asenov

Re: Serialization and Form Models

2010-03-01 Thread Matt Welch
RaBe wrote: I found Igors post on smart entity models very helpful on that matter: http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ basically, it attaches/detaches only if an Id is set (hence, it can be fetched from the backend) I had read that blog entry several

Mail:to link

2010-03-01 Thread Josh Kamau
Hi guys; How do i generate a Mail:to link dynamically (e.g for the email addresses of users stored in the database) Kind regards and thanks for you support. Josh

Re: Mail:to link

2010-03-01 Thread Josh Kamau
I got it here : http://old.nabble.com/Generating-email-link-td22738181.html. thanks. On Tue, Mar 2, 2010 at 9:42 AM, Josh Kamau joshnet2...@gmail.com wrote: Hi guys; How do i generate a Mail:to link dynamically (e.g for the email addresses of users stored in the database) Kind regards and

RE: RE: How can i know when a users redirects to other page

2010-03-01 Thread Martin Asenov
Hi, Ed! How do I know when the session expires? I can't see a method onInvalidate() for instance. Would you give me a hint on this? Thank you all for the help! Best regards, Martin -Original Message- From: Edward Zarecor [mailto:edw...@indeterminate.org] Sent: Tuesday, March 02, 2010