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

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 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 thanks for you

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: 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 seve

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" wrote:

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 t

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 wrote: > > We are looking at building a JQuery plugin that would give us some drag and > drop capabili

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 wrote: > > We are looking at building a JQuery plugi

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 mobile:

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. J.D.

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.

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 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: 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 (

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 wrote: > 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, A

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 wrote: > My Bad :) > > private HomePage(PageParameters params); > > instead of public HomePage(PageParameters params); > > i just dont know how i typed private instead of public.

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 wrote: > Hi, > > I have labels defined in the following way: > > MarkupContainer f = new Web

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 submitbut

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 wrote: > Ca

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 wrote: > > He he, that was my old thread there :) > > Thing is, I just recently discovered, that encoding resources as argu

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: 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 wrote: > The Link changes to http://localhost:8084/site2/?param1=c > still the same prob

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 wrote: > What happens when you use: > http://localhost:8084/site2?param1=c > > ? > > On Mon, Mar 1, 2010 at 9:33 AM, Ayodeji Aladejebi wrote: > >> Wicket Version 1.4.6 >> >

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 wrote: > From: Igor Vaynberg > Subject: Re: SV: Make Wicket component ID HTML element ID? > To: users@wicket.apache.org > Date: Monday, March 1, 2010, 11:41 AM > constructors of subclasses are called > af

Re: Uses of 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 wrote: > Where to use 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 ( http://wicket.apache.org/docs/1.4/org/a

Uses of Tag?

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

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

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 wrote: > > Thanks for this new tip and it shows another approach, which makes me  feel > the flexibility of Wick

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 stri

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 an

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 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: > > visitChildren(new IVisitor()

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 wrote: > Wicket Version 1.4.6 > > Link: http://localhost:8084/site2/?param1=c > > Code: paramValue= params.getString("param1", ""); > > Output: paramValue returns empty String > >

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

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 inform

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: addResourcePar

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. F

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 sugg

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 wrote: > The use case is that I generate a file located in a temp folder that > appears on page under a

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: IModel> allYearsModel = new PropertyModel>(this, "allY

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: How can i know when a users redirects to other page

2010-03-01 Thread Martin Asenov
The use case is that I generate a file located in a temp folder that appears on page under a download link. I want to delete the file when the user goes in another page. Regards, Martin -Original Message- From: Riyad Kalla [mailto:rka...@gmail.com] Sent: Monday, March 01, 2010 4:31 PM

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.: Now in accordance with our security policies we are not allowed to expose internal application details -- and fully qualified class name certainly fits that category. On the other han

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 wh

Re: Ajax refresh outer panel

2010-03-01 Thread Riyad Kalla
If there was a 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 loggedOut panel has a Username/Pa

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: 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, Stefa

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 wrote: > From: Jeremy Thomerson > Subject: Re: Make Wicket component ID HTML element ID? > To: users@wicket.apache.org > Da

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 IVisitor() { @Override public Object component(Component c) { c.setMarkupId(c.getId());

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 t

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 i

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 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 (that is unlike

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' web

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 --

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: Make Wicket component ID HTML element ID?

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

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); > > if(My

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: 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 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, 2010 at 09:1

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 wrote: > Hi Team; > >  I am just wondering, are the wicket security features enough or i hav

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: 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