Re: Chaining components

2008-06-16 Thread Matthijs Wensveen
Martin Makundi wrote: Now if I change the country, I must change the list of allowed values for cityCombo. http://wicketstuff.org/wicket13/ajax/choice Thanks, I remember seeing that but already forgot about the idea that a dropdown choice can be a model, and a smart model too.

Re: override onClick of BookmarkablePageLink

2008-06-16 Thread Johan Compagner
So if you want to be stateless then onClick only works if you use a StatelessLink and then you should push yourself the params in the url. But what do you want to do in the onclick? That cant be done in the constructor or the target page? On 6/15/08, Eyal Golan [EMAIL PROTECTED] wrote: One more

Re: Cannot get rid of these error and warnings

2008-06-16 Thread Johan Compagner
Calls are synced but they can be in the wait for each other and if then the first changes the component structure then the other that is already waiting comes in then it cant find it anymore. But this call should just be ignored as far as i know On 6/15/08, Maurice Marrink [EMAIL PROTECTED]

Re: validation message

2008-06-16 Thread wenm
Thanks for reply. Maybe I didn't explain clearly. I knew how to override in myPage.properties and myForm.properties. But I mean if I want to override in myApplication.properties, is it possible to do and how's the hierarchies? richardwilko wrote: If yo have a Required validator on a

Re: override onClick of BookmarkablePageLink

2008-06-16 Thread Eyal Golan
Thanks guys, You know when sometimes you take a hammer and try to get into this small mosquito? well, I looked into PageLink and IPageLink and tried to be over creative :) eventually, I used a normal Link with onClick The thing is that I was very confused with how to pass the PageParameters to

Re: Chaining components

2008-06-16 Thread Jonathan Locke
what bug # is that one? igor.vaynberg wrote: On Sun, Jun 15, 2008 at 11:38 AM, Martin Makundi [EMAIL PROTECTED] wrote: Hi! When I chain components, comboboxes and tables etc., I find myself repeatedly solving the same problem: * the parent component causes a data reload if you

wicket training/consulting in the SF Bay Area

2008-06-16 Thread m_salman
Hi, Is there any one available to provide Wicket training and/or consulting in the SF Bay area? I need help urgently. Off hours is fine. Thanks, -Mohammad -- View this message in context: http://www.nabble.com/wicket-training-consulting-in-the-SF-Bay-Area-tp17859255p17859255.html Sent

Exception: URL fragment has unmatched key/value pair:

2008-06-16 Thread hhh2100
I put some u wicket 1.3.3 I request a url (http://www.splashnote.com/myHome/test),but this url is not mountBookmarkablePage. then page is throw exception.I don't it throw exception -- View this message in context:

Exception: URL fragment has unmatched key/value pair:

2008-06-16 Thread hhh2100
wicket 1.3.3 I request a url (http://www.splashnote.com/myHome/test),but this url is not mountBookmarkablePage. then page is throw exception.I don't it throw exception -- View this message in context:

Session question

2008-06-16 Thread Eyal Golan
Hi, we have our own customized session. We have a field called pageId. We set it whenever the user clicks a subclass of Link. We call the getter in the linksTo of a link. we have more than a few such links. My question: Is putting a field in a Session and call it makes the session work to hard?

Re: HTTP Session creating at home page

2008-06-16 Thread Bert Radke
Many thanks from me also. I just had the problem with a login from a stateless page, where the userinformation was lost on the next request. Following the list in readonly mode save me some time again ;) Bert On Sun, Jun 15, 2008 at 2:32 PM, Stefan Simik [EMAIL PROTECTED] wrote: Great, it

Re: Chaining components

2008-06-16 Thread Johan Compagner
i think they are pointing to this one: https://issues.apache.org/jira/browse/WICKET-1312 On Mon, Jun 16, 2008 at 9:21 AM, Jonathan Locke [EMAIL PROTECTED] wrote: what bug # is that one? igor.vaynberg wrote: On Sun, Jun 15, 2008 at 11:38 AM, Martin Makundi [EMAIL PROTECTED] wrote:

Re: Session question

2008-06-16 Thread Michael Allan
Is putting a field in a Session and call it makes the session work to hard? I'm not a web expert so maybe my question is naive, but does calling for a field in a Wicket Session creates overload in the net? No, it is common practice, in general. Search the list for 'session' and 'field'.

Re: self refreshing table with effects

2008-06-16 Thread Johan Compagner
create a jira with a test case. On Mon, Jun 16, 2008 at 2:56 AM, mfs [EMAIL PROTECTED] wrote: And surprisingly, this issue comes in IE and Safari but not in Mozilla.. mfs wrote: Any update on this issue, i am facing an issue somewhat related, where clicking on an ajaxlink once the

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-16 Thread Juha Alatalo
Hi, we have been using this patched version now in a production environment few days. Seems to be working nicely. Memory problems disappeared. - Juha Igor Vaynberg wrote: if someone can confirm that the patch works in a production env i will be happy to commit it. i just havent had the time

isVisible vs. setVisible

2008-06-16 Thread Eyal Golan
This is a Best Practice question. Suppose I have a component and I want to set its visibility according to certain parameters. Suppose I can do it by overriding the isVisible but I can also use the setVisible after creating the constructor. Is there a preferable way? Does it depend on the

Re: isVisible vs. setVisible

2008-06-16 Thread Jonathan Locke
isVisible is generally better imo because it is state driven. if you push instead of pull, the state can get stale. Eyal Golan wrote: This is a Best Practice question. Suppose I have a component and I want to set its visibility according to certain parameters. Suppose I can do it by

Re: Session question

2008-06-16 Thread Eyal Golan
thanks Michael, That's what I thought. BTW, isn't volatile will create overhead on the Session? Read this: http://www.javaperformancetuning.com/news/qotm030.shtml Eyal G On Mon, Jun 16, 2008 at 11:31 AM, Michael Allan [EMAIL PROTECTED] wrote: Is putting a field in a Session and call it makes

SV: Wicket portles in Sun Portal

2008-06-16 Thread Wilhelmsen Tor Iver
Thijs Vonk wrote: Ate Douma wrote: Thanks to both of you! Note though that you have to build a svn copy of the portlet-container. RC2 contains a bug I found which prevents Ajax to work correctly. Will try that. - To

Re: Chaining components

2008-06-16 Thread Martin Makundi
I've been thinking about writing aspects that fire Component.onModelChanged even when the model's object changed (possibly deep within an object hierarchy). Do you have a demo about this? I am about to write a HierarchicalAjaxRefreshTargetPropagator soon just to get a feeling if it is a bad

Re: isVisible vs. setVisible

2008-06-16 Thread egolan74
Yes but ... isVisible may be triggered several times, while setVisible should only be called once (say if I do it only once after creating the component). Usually I prefer the state driven way, but what if the logic has a lot of overhead? Jonathan Locke wrote: isVisible is generally

Re: isVisible vs. setVisible

2008-06-16 Thread Jonathan Locke
true. in the isVisible impl you could lazy-init cache a transient Boolean until end request where you set it null. setters are evil. egolan74 wrote: Yes but ... isVisible may be triggered several times, while setVisible should only be called once (say if I do it only once after

Re: Session question

2008-06-16 Thread Michael Allan
Eyal wrote: isn't volatile will create overhead on the Session? Read this: http://www.javaperformancetuning.com/news/qotm030.shtml Any overhead is essential, Eyal. You *want* threads to flush their memory caches, when accessing session variables. Otherwise, variable changes by one thread

Using relative path with HeaderContributor

2008-06-16 Thread Juha Alatalo
Hi, We started to use 1.3.X because https://issues.apache.org/jira/browse/WICKET-1667 will be probably fixed soon in 1.3.X. There seems to be some changes in public static String resourceKey(final String path, final Locale locale, final String style) in SharedResources. We have been using

Re: Chaining components

2008-06-16 Thread Matthijs Wensveen
Martin Makundi wrote: I've been thinking about writing aspects that fire Component.onModelChanged even when the model's object changed (possibly deep within an object hierarchy). Do you have a demo about this? Unfortunately no, I didn't have the time to convert my brain contents to

Re: Chaining components

2008-06-16 Thread Martin Makundi
If you just need a reference to the AjaxRequestTarget then you can do RequestCycle.get().getRequestTarget() and do an instanceof with AjaxRequestTarget. Well, I need the ajax event too so I suppose I can equally well pick up the target from there. I will post my brain later if I am succesful.

Re: Using relative path with HeaderContributor

2008-06-16 Thread James Carman
This is not a bug. The $up$ stuff was put in there to trick the browser into not trying to automatically resolve the .. for you. This is necessary for resources. On Mon, Jun 16, 2008 at 7:02 AM, Juha Alatalo [EMAIL PROTECTED] wrote: Hi, We started to use 1.3.X because

Session parameters and back button

2008-06-16 Thread Eyal Golan
Hello, I have in my Session a field called pageId. I have Link that in the onClick I set in the session the page id and then go to a new page using setResponsePage. @Override public void onClick() { PortalSession session = ((SecuredBasePage) getPage()).getEurekifySession();

Re: Using relative path with HeaderContributor

2008-06-16 Thread Juha Alatalo
Now browser does never find my css-file. What is the trick to make things work again? James Carman wrote: This is not a bug. The $up$ stuff was put in there to trick the browser into not trying to automatically resolve the .. for you. This is necessary for resources. On Mon, Jun 16, 2008 at

Re: Session parameters and back button

2008-06-16 Thread Martijn Dashorst
Why are you building wicket in wicket? Wicket keeps track of the last page already and detects back button usage perfectly by itself. Martijn On Mon, Jun 16, 2008 at 1:26 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hello, I have in my Session a field called pageId. I have Link that in the

Re: Session parameters and back button

2008-06-16 Thread Eyal Golan
I am not :) The back button work perfect (thanks to Wicket :) ). The thing that I call pageId is something that indicates our structure of hierarchy pages. It's not Wicket's page Id. My question actually is, if there is a way to set values in the Session when pressing the back button? On Mon,

Re: Using relative path with HeaderContributor

2008-06-16 Thread Juha Alatalo
So now things are actually working as they should. Forget this thread, I am an idiot. Thanks and keep up the good work. - Juha Juha Alatalo wrote: Now browser does never find my css-file. What is the trick to make things work again? James Carman wrote: This is not a bug. The $up$ stuff

Please check my fix to terracotta problem

2008-06-16 Thread richardwilko
Hi, Just a little background, i've been trying to get my application clustered with terracotta for a while and ran into a big problem. Basically wicket was producing more garbage objects than terracotta could handle, as such terracotta was using up loads of disk space (see my thread on

Re: Chaining components

2008-06-16 Thread Matthijs Wensveen
That's what I said ;) Johan Compagner wrote: i think they are pointing to this one: https://issues.apache.org/jira/browse/WICKET-1312 On Mon, Jun 16, 2008 at 9:21 AM, Jonathan Locke [EMAIL PROTECTED] wrote: what bug # is that one? igor.vaynberg wrote: On Sun, Jun 15, 2008 at

Re: isVisible vs. setVisible

2008-06-16 Thread Matthijs Wensveen
Jonathan Locke wrote: true. in the isVisible impl you could lazy-init cache a transient Boolean until end request where you set it null. setters are evil. ..but it's good to have choice. *And* setVisible is not a normal setter, because it returns the component, which makes it easy to

Re: Session parameters and back button

2008-06-16 Thread Eyal Golan
yes I have. As I understood, breadcrum is something like a Panel. All of our links direct to Pages. Do you know of a way to use breadcrumbs with pages? It's not possible for us to change the whole structure of our application. One more thing, the XML structure is also used to filter a legacy

Re: isVisible vs. setVisible

2008-06-16 Thread Martijn Dashorst
On Mon, Jun 16, 2008 at 3:48 PM, Matthijs Wensveen [EMAIL PROTECTED] wrote: A little off-topic: It scares me a little when core developer make bold statements like: setters are evil and I wouldn't mind final was the default in java. Maybe I'm just being paranoid here... Why? Are we not allowed

Re: Chaining components

2008-06-16 Thread Martin Makundi
What is your idea of nice chaining? http://wicketstuff.org/wicket13/ajax/choice I am using 1.4-m1 and I tried to make public abstract class AbstractListChoiceModelS extends AbstractReadOnlyModelListS { @Override public final ListS getObject() { return getChoices(); } protected

Re: isVisible vs. setVisible

2008-06-16 Thread Matthijs Wensveen
Martijn Dashorst wrote: On Mon, Jun 16, 2008 at 3:48 PM, Matthijs Wensveen [EMAIL PROTECTED] wrote: A little off-topic: It scares me a little when core developer make bold statements like: setters are evil and I wouldn't mind final was the default in java. Maybe I'm just being paranoid

Re: isVisible vs. setVisible

2008-06-16 Thread Antoine Angenieux
That's why I almost always override isVisible like @Override boolean isVisible() { return super.isVisible() myVisibilityConstraints; } Thus I can go for both approches (push and / or pull state). Maybe this could be added to the Javadoc of isVisible ? Just my 2 cents, Antoine.

Re: Wicket portles in Sun Portal

2008-06-16 Thread Wilhelmsen Tor Iver
Got it to work after building portlet-bridges-common from the trunk source. - The change I made to PortletWindowUtils which seems to work (so far *crosses fingers*): public static String getPortletWindowId(PortletSession session) { final Object tmp =

Re: Chaining components

2008-06-16 Thread Igor Vaynberg
AbstractReadOnlyModelList? extends S { should work iirc -igor On Mon, Jun 16, 2008 at 7:08 AM, Martin Makundi [EMAIL PROTECTED] wrote: What is your idea of nice chaining? http://wicketstuff.org/wicket13/ajax/choice I am using 1.4-m1 and I tried to make public abstract class

Re: isVisible vs. setVisible

2008-06-16 Thread Jonathan Locke
i think you may have a few things to learn and it is not exactly controversial to prefer immutability or encapsulation... setters break encapsulation and i think it is safe to say decades of experience with object systems is on my side, including industry luminaries like:

Re: wicket training/consulting in the SF Bay Area

2008-06-16 Thread jWeekend
Mohammad, We may be able to help. Contact us http://jweekend.co.uk/dev/ContactUsBody/ here to discuss your requirements. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk quote author=m_salman Hi, Is there any one available to provide Wicket training and/or consulting in the

RE: Wicket 1.2 - 1.3 upgrade question

2008-06-16 Thread Frank Silbermann
I did a few more experiments with static images in Wicket 1.3 and narrowed the problem down to my use of AttributeModifier: Consider a Wicket home page with no components that displays a static image via the following HTML: html head titleWicket Quickstart Archetype Homepage/title

Re: Wicket 1.2 - 1.3 upgrade question

2008-06-16 Thread Martijn Dashorst
see ContextImage. Martijn On Mon, Jun 16, 2008 at 5:07 PM, Frank Silbermann [EMAIL PROTECTED] wrote: I did a few more experiments with static images in Wicket 1.3 and narrowed the problem down to my use of AttributeModifier: Consider a Wicket home page with no components that displays a

RE: Wicket 1.2 - 1.3 upgrade question

2008-06-16 Thread Frank Silbermann
Do any of the examples (or other documentation) illustrate its use? -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2008 10:15 AM To: users@wicket.apache.org Subject: Re: Wicket 1.2 - 1.3 upgrade question see ContextImage. Martijn On Mon,

Re: Wicket 1.2 - 1.3 upgrade question

2008-06-16 Thread James Carman
Wouldn't surrounding your img tag with wicket:link help? On Mon, Jun 16, 2008 at 11:23 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: javadoc -igor On Mon, Jun 16, 2008 at 8:21 AM, Frank Silbermann [EMAIL PROTECTED] wrote: Do any of the examples (or other documentation) illustrate its use?

Using Guice with IInitializer?

2008-06-16 Thread cowwoc
Hi, Can anyone think of a way to inject members into an IInitializer or at least gain access to an Injector instance inside it? As far as I can tell I can't even get access to the Servlet Context or Application from inside the IInitializer. I'm open to suggestions. Thanks, Gili -- View this

How do I pass back data from HTML (javascript) to my Java code

2008-06-16 Thread solled
Hi, How do I get data generated by javascript functions to my Java code using Wicket. For example, I have the following javascript code: script type=text/javascript var map; var gdir; var geocoder = null; var addressMarker; var mileage; function initialize() {

Re: wicket training/consulting in the SF Bay Area

2008-06-16 Thread Nino Martinez
I could help aswell, please mail me directly with requirements. On Mon, Jun 16, 2008 at 5:02 PM, jWeekend [EMAIL PROTECTED] wrote: Mohammad, We may be able to help. Contact us http://jweekend.co.uk/dev/ContactUsBody/ here to discuss your requirements. Regards - Cemal

Wicket NTLM/Single-sign-on integration Question

2008-06-16 Thread Ravi_116
What is best way to integrate NTLM with Wicket authentication module ? Currently, we are migrating from Standard Login page implementation to a JCIF's NTLM (Windows domain credentials). JCIF's provides a convenient servlet filter to do the NTLM handshake. It sticks the username in the

Re: Using Guice with IInitializer?

2008-06-16 Thread Igor Vaynberg
IInitializer.onInitializer(Application app) { ServletContext sc=((WebApplication)app).getServletContext(); } -igor On Mon, Jun 16, 2008 at 9:04 AM, cowwoc [EMAIL PROTECTED] wrote: Hi, Can anyone think of a way to inject members into an IInitializer or at least gain access to an Injector

Re: Using Guice with IInitializer?

2008-06-16 Thread cowwoc
Sorry, the reason I initially missed this option is that GuiceWebApplicationFactory was not saving the Injector into the servlet context. I've since fixed this and this now works. Thanks, Gili igor.vaynberg wrote: IInitializer.onInitializer(Application app) { ServletContext

Re: Please check my fix to terracotta problem

2008-06-16 Thread Igor Vaynberg
i dont know how terracotta works so i will comment on wicket stuff only. looks like a good solution if you are looking to compress the page as far as the number of objects go. a cleaner way to do this might be to do it in sessionstore and share out that class through terracotta. -igor On Mon,

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-16 Thread Igor Vaynberg
ive committed the fix for 1.3 and 1.4. please test it out, there was a minor tweak for also putting page class into the cache key for wicket-1697. there is a little bit of syncing going on in localizer now that is used to translate class name to an integer in order to drastically shorten the cache

Browser not jumping to Wicket Anchor

2008-06-16 Thread Michael Mehrle
I created an Link to another page's anchor similar to the code shown below. The anchor actually gets tagged on to the bookmarkable URL. However, for some reason the browser does not jump to my anchor. Not sure what's going on - is there a particular way I have to create an anchor in Wicket so

Re: Wicket NTLM/Single-sign-on integration Question

2008-06-16 Thread Nino Saturnino Martinez Vazquez Wael
Ravi_116 wrote: What is best way to integrate NTLM with Wicket authentication module ? Currently, we are migrating from Standard Login page implementation to a JCIF's NTLM (Windows domain credentials). JCIF's provides a convenient servlet filter to do the NTLM handshake. It sticks the

Re: Panels in a panel

2008-06-16 Thread Nino Saturnino Martinez Vazquez Wael
Or the wicket-iolite maven archetype, which has a really simple example of this: http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite James Carman wrote: On Fri, Jun 13, 2008 at 11:51 AM, m_salman [EMAIL PROTECTED] wrote: Thanks for your reply. Unfortunately I need more

Re: NicEditTextAreaBehavior

2008-06-16 Thread Don Hass
Have you tried using this in a ajax based form in Wicket? It seems that it does not like ajax based submits but the solutions in the nicedit forums seems to be fail as well. The problem is that the model for the textarea you add the nic behavior to, never gets updated when you submit the form.

Re: Wicket NTLM/Single-sign-on integration Question

2008-06-16 Thread Ravi_116
Nino - Thanks for the reply The AuthenticatedWebSession has the isSignedIn() method defined final. So cannot extend and override it. /** * @return True if the user is signed in to this session */ public final boolean isSignedIn() { return

Re: Wicket NTLM/Single-sign-on integration Question

2008-06-16 Thread Maurice Marrink
Using swarm, i usually let the default isAuthenticated methods intact and let the request be redirected to the loginpage where i check if a known third party has done the authentication for me, if so i automatically log the user in for wicket and redirect back to where i came from. You can

RE: Browser not jumping to Wicket Anchor

2008-06-16 Thread Michael Mehrle
Yes - they do match - you're right, always check the basics first. The problem is that even if I bookmark the anchored page (with the anchor tagged on), and load the page it won't jump there. So, I don't think it's the way I create the anchor (because the URL looks correct) - it's all the other

Re: Browser not jumping to Wicket Anchor

2008-06-16 Thread Gwyn Evans
Not an issue I've come across but also not an area I've explored... A quick search through the mailing list did suggest one possible approach as below, but I've no idea how viable it might be! public Page extends WebPage implements IHeadContributor { @Override public void

Re: isVisible vs. setVisible

2008-06-16 Thread Matthijs Wensveen
Of course I have a few things to learn, and I hope I never stop learning. The article you provide is interesting. My opinion is that for domain entity objects, getters and setters are certainly not evil. For classes that are more service-like, getters and setters could be useful but should be

Re: Wicket NTLM/Single-sign-on integration Question

2008-06-16 Thread Nino Saturnino Martinez Vazquez Wael
I have this: @Override public boolean authenticate(String username, String password) { Person person = new Person(); person.setAlias(username); person.setPassword(password); return dBDao.authorizePerson(person); } public boolean isAuthorized() {