wicket scalability

2007-09-19 Thread Lowell Kirsh
For work I'm trying to use wicket, but my boss wants to be reassured that it will scale well. Can anyone point me to any sources (not anecdotes) about how well wicket scales? And yes, I know my question is vague, but right now, so are our requirements. Thanks, Lowell -

Re: wicket scalability

2007-09-19 Thread Eelco Hillenius
On 9/19/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > For work I'm trying to use wicket, but my boss wants to be reassured > that it will scale well. Can anyone point me to any sources (not > anecdotes) about how well wicket scales? And yes, I know my question > is vague, but right now, so are our

Re: Wicket and Searching with Solr

2007-09-19 Thread Nicky Bulthuis
That looks very interesting. I'ĺl look into that and see if i can get it to work. Thanks Igor. Igor Vaynberg wrote: an easy way to do this is to key both repeaters off the same model: class mypage extends webpage { class resultsmodel extends loadabledetachablemodel { load() { return so

Re: threading issues - continued

2007-09-19 Thread Sam Hough
Bit more information is that the bean property that is causing the problem is being set to null by my html form via a wicket ajax update... Could it be that although wicket is doing everything correctly the DOM in (firefox 2) has not "settled" after the elmt.innerHTML= ... from the previous ajax

Context-sensitive roles

2007-09-19 Thread Robert .
I'm making a forum project to learn about Wicket, Hibernate & Spring. It has been interesting, but now I am kinda stuck for a while on authentication/authorization. The difficulty I am having is that the "roles" a user can have is based on the forum he is on. Each forum is owned by a different use

Re: Acegi (Spring Security)

2007-09-19 Thread Ian Godman
The fix I came up with was to get the Authentication from my session class. Ian - Original Message From: Thies Edeling <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: Tuesday, 18 September, 2007 11:19:20 PM Subject: Re: Acegi (Spring Security) Did you manage to fix this ? I have t

Re: Stripping Javascript comments breaks application

2007-09-19 Thread Matej Knopp
Hi, should be fixed in trunk. -Matej On 9/19/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > It's been a while since this topic was brought up, but I've been able to > verify that wicket 1.3 *breaks* applications using the prototype javascript > library. Anytime I enable "strip javascript comments

onNewBrowserWindow is not called

2007-09-19 Thread Benjamin Ernst
Hi, when a new Browser-Window is opened, I want to start a new Session for this window. I implemented the method onNewBrowserWindow() in my HomePage.class, but it is never called. I tried opening a new Browser, a new Browser-Window and new Tab, but nothing. Is there any other way to determine if

PropertyResolverConverter and non-String values

2007-09-19 Thread Federico Fanton
Hi everyone! I have a form which needs to select a Class from a list, so I added a DropDownChoice loaded with a list of beans like: public class ClassDescriptionBean{ private String description; private Class type; [getters and setters omissis] } so that the form shows nice description

Re: onNewBrowserWindow is not called

2007-09-19 Thread Matej Knopp
You need to turn on multi window support. But this is not really user overridable callback. Also, what do you mean by "start new session"? -Matej On 9/19/07, Benjamin Ernst <[EMAIL PROTECTED]> wrote: > Hi, > > when a new Browser-Window is opened, I want to start a new Session for this > window. >

Re: PropertyResolverConverter and non-String values

2007-09-19 Thread Johan Compagner
conversion is only from String->Object and Object->String it is an in->output converter. So how do you get an input of .ClassDescriptionBean that needs to be converted to a Class?? johan On 9/19/07, Federico Fanton <[EMAIL PROTECTED]> wrote: > > Hi everyone! > I have a form which needs to selec

Re: serving images from db - direct url access

2007-09-19 Thread Leszek Gawron
Johan Compagner wrote: setCached causes wicket to send http cache headers. Resources it self are cached in SharedResources. The resource itself is responsable what is cached internally what does it mean that Resource is cached in SharedResources? In my case: getSharedResources().add( "s

Re: threading issues - continued

2007-09-19 Thread Johan Compagner
do you click fast on a dom portion that is being replaced by the previous request? johan On 9/19/07, Sam Hough <[EMAIL PROTECTED]> wrote: > > > Bit more information is that the bean property that is causing the problem > is > being set to null by my html form via a wicket ajax update... > > Coul

Re: onNewBrowserWindow is not called

2007-09-19 Thread Benjamin Ernst
Hi I store some context-information in the session. When a new window is opened it has a new context, so I want to have a new Session for this context. But the old window should stay with the old context. Benjamin 2007/9/19, Matej Knopp <[EMAIL PROTECTED]>: > > You need to turn on multi window su

Re: wicket scalability

2007-09-19 Thread Johan Compagner
What do you mean with Scaling? Wicket scales pretty well. because we fully support clustering out of the box. So you can add just add new servers. Wicket it self is fast, the database would be much more of a bottleneck. johan On 9/19/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > For work I'm

Re: serving images from db - direct url access

2007-09-19 Thread Johan Compagner
The instance of CameraSnapshotResource is cached/stored But internally what you do there again is up to you johan On 9/19/07, Leszek Gawron <[EMAIL PROTECTED]> wrote: > > Johan Compagner wrote: > > setCached causes wicket to send http cache headers. Resources it self > > are cached in SharedReso

Re: threading issues - continued

2007-09-19 Thread Sam Hough
Yes. Click A updates part of the form. Click B (very soon after A) also submits that form. So my suspicion is that the browser is still busy parsing the last update and click B sends a form in an intermediate state. Does that sound likely? I've seen it in the past that after innerHTML you have t

Re: PropertyResolverConverter and non-String values

2007-09-19 Thread Johan Compagner
thats final you could try to do something with: protected Object convertChoiceIdToChoice(String id) But that is an id and how is that id converted to what? Is that the ClassDescriptionBean? And that Again must be converted to something else? johan On 9/19/07, Federico Fanton <[EMAIL PROTECTED]

Re: PropertyResolverConverter and non-String values

2007-09-19 Thread Federico Fanton
On Wed, 19 Sep 2007 12:11:10 +0200 Federico Fanton <[EMAIL PROTECTED]> wrote: > Obviously PropertyResolverConverter doesn't know how to map a > ClassDescriptionBean to the corresponding Class, but how am I supposed to do > it? I already have a custom ConverterLocator in place, but it looks like

Re: threading issues - continued

2007-09-19 Thread Johan Compagner
but you get null pointers in the serverside. So what should that have to do with busy parsing on the client side That second submit is being done again (with the OLD dom) and that maybe doesn't map correctly any more? The problem is that the ajax request and waiting for the response and updating t

Re: threading issues - continued

2007-09-19 Thread Matej Knopp
What exact wicket version are you using? With the current trunk the client side form serialization waits until the previous ajax request finished even if you submit the form during previous request processing. But I'm not really sure that this is your issue. -Matej On 9/19/07, Sam Hough <[EMAIL P

Re: onNewBrowserWindow is not called

2007-09-19 Thread Eelco Hillenius
On 9/19/07, Benjamin Ernst <[EMAIL PROTECTED]> wrote: > Hi > I store some context-information in the session. When a new window is opened > it has a new context, so I want to have a new Session for this context. > But the old window should stay with the old context. You should try to bend this in

Re: onNewBrowserWindow is not called

2007-09-19 Thread Matej Knopp
You can use pagemap metadata for it, providing you have recent enough wicket version. And, of course, you have to turn on the multiwindow support. -Matej On 9/19/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On 9/19/07, Benjamin Ernst <[EMAIL PROTECTED]> wrote: > > Hi > > I store some context-

Re: threading issues - continued

2007-09-19 Thread Sam Hough
I'm using 1.3-beta3 I think as far as the wicket js is concerned it has finished (as it has done elmt.innerHTML='something') but the problem is that the browser does the re-rendering in a different thread to the java script engine. So when I click the second time the HTML is only partially finish

Re: threading issues - continued

2007-09-19 Thread Matej Knopp
But shouldn't that be a validation error? -Matej On 9/19/07, Sam Hough <[EMAIL PROTECTED]> wrote: > > I'm getting null pointers on the server side because the form _values_ seem > not do have been set by the client yet so in the http request > someParameter="" which would otherwise not be the cas

Re: threading issues - continued

2007-09-19 Thread Matej Knopp
While the repaint is somewhat asynchronous, this shouldn't affect the actual form serialization. Can you provide a quickstart that can be used to reproduce this problem? -Matej On 9/19/07, Sam Hough <[EMAIL PROTECTED]> wrote: > > I'm using 1.3-beta3 > > I think as far as the wicket js is concerne

Re: threading issues - continued

2007-09-19 Thread Sam Hough
I'm getting null pointers on the server side because the form _values_ seem not do have been set by the client yet so in the http request someParameter="" which would otherwise not be the case. Doesn't seem like something I want to handle on the server... If somebody is hacking, has broken brows

Re: wicket scalability

2007-09-19 Thread Eelco Hillenius
On 9/19/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On 9/19/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > > For work I'm trying to use wicket, but my boss wants to be reassured > > that it will scale well. Can anyone point me to any sources (not > > anecdotes) about how well wicket scales? And

Re: Context-sensitive roles

2007-09-19 Thread ChuckDeal
Robert ... wrote: > > I'm making a forum project to learn about Wicket, Hibernate & Spring. > It has been interesting, but now I am kinda stuck for a while on > authentication/authorization. > > The difficulty I am having is that the "roles" a user can have is > based on the forum he is on. Eac

Re: onNewBrowserWindow is not called

2007-09-19 Thread Benjamin Ernst
Hi, thanks for your help. I will try that, but I have one last question (hopefully): How do I turn on the multiwindow support? Benjamin 2007/9/19, Matej Knopp <[EMAIL PROTECTED]>: > > You can use pagemap metadata for it, providing you have recent enough > wicket version. And, of course, you have

Re: Stripping Javascript comments breaks application

2007-09-19 Thread Ryan Sonnek
Just curious how I can get these changes. are there 1.3.0-SNAPSHOTS being published or do I need to wait for beta4/rc1 to be published? On 9/19/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > Hi, should be fixed in trunk. > > -Matej > > On 9/19/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > > It's b

Re: Testing wicket 1.3

2007-09-19 Thread Nino Saturnino Martinez Vazquez Wael
Hi Kent hmm, while this could be okay. I just fear the possibility that tests may succeed if other components contains foo. This test does not take hierarchy into account.. For the simple Bbcodecomponent, it will work as I will be testing it isolated. However if others that are using the com

Re: Context-sensitive roles

2007-09-19 Thread Maurice Marrink
Swarm will work just fine for what you want. You should create a new ISecurityCheck that will wrap another build in check (probably a ComponentSecurityCheck) and if the wrapped check says it is ok, then your check needs to validate if the user is actually administrator / owner whatever you want. Yo

Re: Context-sensitive roles

2007-09-19 Thread Maurice Marrink
Also custom actions will help. For example "all" and "forum" to indicate if a user has permissions on all forums or just on those forums he is a registered user / administrator etc. Combined with my previous mail you can optimize your security check a bit. We actually use both of these techniques i

Re: Stripping Javascript comments breaks application

2007-09-19 Thread Martijn Dashorst
http://wicketstuff.org/maven/repository Also documented on the website: http://wicket.apache.org/getting-wicket.html Martijn On 9/19/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > Just curious how I can get these changes. are there 1.3.0-SNAPSHOTS being > published or do I need to wait for beta4

Re: Question about best approach using Spring

2007-09-19 Thread Rick Reumann
On 9/18/07, John Krasnay <[EMAIL PROTECTED]> wrote: > > > public class MyPage extends WebPage { > > @SpringBean > public SomeService someService; > > public MyPage() { > someService.doSomething(); > } > } > > Using an annotation instead of calling createSpringBeanProxy direc

Re: Question about best approach using Spring

2007-09-19 Thread John Krasnay
On Wed, Sep 19, 2007 at 09:05:48AM -0400, Rick Reumann wrote: > > Yea, I'd like to use the annotation but I believe that's only working when > running under Java5? (sadly, this app has to run on an old websever that is > using Java4.) (The annotation is in the wicket-contrib-spring-jdk5 so I just

TinyMCE : multiple textarea's with TinyMCEBehaviour

2007-09-19 Thread Marieke Vandamme
Hello, I have 2 textfields who each have the TinyMCEBehaviour, but the first one is simple and the other advanced (so they each have a different TinyMCESettings in constructor). This results in getting 4 tinyMCE editing boxes on my page, and the problem is because the same 'editor_selector' is

Re: Stripping Javascript comments breaks application

2007-09-19 Thread Matej Knopp
Hmm. This makes me thing how recent the snapshots are, we seem to have one failing unit test on bamboo. -Matej On 9/19/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > http://wicketstuff.org/maven/repository > > Also documented on the website: > > http://wicket.apache.org/getting-wicket.html > >

Re: onNewBrowserWindow is not called

2007-09-19 Thread Matej Knopp
Application.getPageSettings().setAutomaticMultiWindowSupport(true); -Matej On 9/19/07, Benjamin Ernst <[EMAIL PROTECTED]> wrote: > Hi, > thanks for your help. I will try that, but I have one last question > (hopefully): How do I turn on the multiwindow support? > > Benjamin > > 2007/9/19, Matej K

WebSession shutdown

2007-09-19 Thread Maeder Thomas
Hi folks, In our WebSession subclass we manage some resources which need to be cleaned up when the session goes away (because of timeout, etc). Is there a recommended way to call a "shutdown()" method on our session class? I have seen WebApplication.sessionDestroyed(String), but I'm not sure how t

Re: TinyMCE : multiple textarea's with TinyMCEBehaviour

2007-09-19 Thread Iulian Costan
On 9/19/07, Marieke Vandamme <[EMAIL PROTECTED]> wrote: > > > Hello, > > I have 2 textfields who each have the TinyMCEBehaviour, but the first one > is > simple and the other advanced (so they each have a different > TinyMCESettings > in constructor). > This results in getting 4 tinyMCE editing box

Re: threading issues - continued

2007-09-19 Thread Sam Hough
So is the form sent using wicket JS from the DOM? Anyway, I'm afraid I need to get the OK from my project manager before spending more time on this :( Sucks that he is happy for you to work for free on our problem but that I'm not even allowed to help you in this effort :( Thanks for your time

Re: Stripping Javascript comments breaks application

2007-09-19 Thread Matej Knopp
Well, there is one unit test failing http://wicketstuff.org/bamboo/browse/WICKET1X-WICKET-985/test/org.apache.wicket.markup.html.image.ImageTest But that works for me. Probably something with default machine locale. -Matej On 9/19/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > looks like most recen

Re: Dojo floating panel

2007-09-19 Thread Federico Fanton
On Tue, 18 Sep 2007 16:19:59 +0200 "Gerolf Seitz" <[EMAIL PROTECTED]> wrote: > you could pass a reference to the dojofloatingpane to Page2 *snap* I keep forgetting this kind of things X-) Many thanks for your help! - To unsubsc

Can't access Javascript/CSS when in servletMode

2007-09-19 Thread Adam Koch
I'm wondering if anyone else has seen this problem and if it's a known bug or if I'm doing something wrong. I'm using 1.3.0-SNAPSHOT on Weblogic 8.1. When I have Wicket set up in web.xml as a servlet, any request to /myApp/myJS.js (or /myApp/resources/myJS.js or /myApp/com/.../myJS.js) gets stripp

Re: Stripping Javascript comments breaks application

2007-09-19 Thread Ryan Sonnek
looks like most recent successful build was two days ago: http://wicketstuff.org/bamboo/browse/WICKET1X-WICKET-979 On 9/19/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > Hmm. This makes me thing how recent the snapshots are, we seem to have > one failing unit test on bamboo. > > -Matej > > On 9/19

Re: PropertyResolverConverter and non-String values

2007-09-19 Thread Federico Fanton
On Wed, 19 Sep 2007 12:32:09 +0200 "Johan Compagner" <[EMAIL PROTECTED]> wrote: > thats final > you could try to do something with: > > protected Object convertChoiceIdToChoice(String id) Right, sorry ^^ > But that is an id and how is that id converted to what? > Is that the ClassDescriptionBea

Re: Question about best approach using Spring

2007-09-19 Thread Rick Reumann
On 9/19/07, John Krasnay <[EMAIL PROTECTED]> wrote: > > > Sounds like you still need a Spring context for your unit tests, to give > createSpringBeanProxy something to work with. Not a huge deal but still > a minor complication. With the annotation approach, I can just ignore > the annotation and i

Re: Acegi (Spring Security)

2007-09-19 Thread Luke Taylor
Acegi should be oblivious to the fact that you are using Wicket, so that shouldn't make any difference. If your wicket filter is placed before the Acegi one in your web.xml then you will have problems if you try to access the security context when wicket decides to handle the request. Likewise (a

Custom AjaxFormSubmitBehavior

2007-09-19 Thread NateBot2000
Howdy: I created an extension of AjaxSubmitLink that accepts a static html form id string as an argument (AjaxFormSubmitBehavior forces setOutputMarkupId on the Form by default). In so doing, I extended AjaxFormSubmitBehavior... and then I add this custom behavior to my custom AjaxSubmitLink.

Re: Custom AjaxFormSubmitBehavior

2007-09-19 Thread NateBot2000
Oh, I just looked closer at Component.getBehaviors and see what to do. Sorry... I guess something along the lines of this would work? List list = this.getBehaviors( Class.forName("AjaxFormSubmitBehavior") ); for ( IBehavior b : list ) { this.remove(b); } NateBot --

Enums and DropDownChoices in Web Beans

2007-09-19 Thread dtoffe
Hi ! I want to make an Enum field in a bean to fire an event. With plain Wicket I can do something like: DropDownChoice ddc = new DropDownChoice("person", options) { public void onSelectionChanged(java.lang.Object newSelection) { info("Changed!");

Re: Passing Parameters to Bookmarkable Page

2007-09-19 Thread chickabee
It seems like in: parameters.put("filter", filter); the filter object is the instance of com.foo.bar.Filter class, I guess if you implement toString() correctly within this object that might help, also instead of com.foo.bar.Filter object, try supplying a String as an alternate, Good luck.

Re: DatePicker NaN

2007-09-19 Thread Philip Köster
ivana wrote: > > Hi > I have a problem with the DatePicker. It works fine if the input is a > valid date or if the input is very wrong, for example: ''xxx". > But when the input consists of numbers and but is not a valid date, the > calendar is rendered with NaN in every field. I ran into the

Re: DatePicker NaN

2007-09-19 Thread Gerolf Seitz
ivana filed an issue today (WICKET-989) and i already attached a patch to it. so either you persuade any of the committers to apply the patch and commit it, or you do an svn checkout and apply the patch to your local copy of wicket-datetime. Gerolf On 9/19/07, Philip Köster <[EMAIL PROTECTED]>

Re: Dojo floating panel

2007-09-19 Thread Federico Fanton
On Tue, 18 Sep 2007 16:19:59 +0200 "Gerolf Seitz" <[EMAIL PROTECTED]> wrote: > you could pass a reference to the dojofloatingpane to Page2 I tried that, using it from a button inside Page2 like button.add(new AjaxEventBehavior("onclick"){ protected void onEvent(AjaxRequestTarget target) {

Re: Dojo floating panel

2007-09-19 Thread Gerolf Seitz
yeah, we totally forgot that the dojo popup is actually closed via javascript on the client and passing references around only on the server doesn't help at all. with some javascript foo, the actual call to close the popup form inside the iframe would have to look something like that: window.parent

Re: Enums and DropDownChoices in Web Beans

2007-09-19 Thread Dan Syrstad
On 9/19/07, dtoffe <[EMAIL PROTECTED]> wrote: > > > Hi ! > > I want to make an Enum field in a bean to fire an event. With plain > Wicket I can do something like: > > DropDownChoice ddc = new DropDownChoice("person", options) { > > public void onSelectionChanged(java.lan

Re: Testing wicket 1.3

2007-09-19 Thread Frank Bille
One thing you also could consider is using the TagTester. Currently you can find a tag by using the getTagById and getTagByWicketId. My orignial plan was to have several helper methods for finding the html tags you want for testing. http://wicketstuff.org/wicket13doc/org/apache/wicket/util/tester/

Re: Wicket shopping cart?

2007-09-19 Thread Martijn Dashorst
It seems that Wicket in Action has a basic shopping cart described. :-) Martijn On 9/19/07, Tauren Mills <[EMAIL PROTECTED]> wrote: > I'm looking for an open source shopping cart built in wicket, but > haven't found such a thing yet. Does anyone know of something out > there? > > I've noticed in

Versioning Problems With DataTable, Spring Hibernate

2007-09-19 Thread carloc
Hi guys, I need clarity on this... This is what my detachable model public CCTIDetachableModel extends Loadable DetachableModel { private String id; private Integer version; private Dao dao; public Object load() { MyObject myobj = dao.get(id); if (version == null) { version = myob

Wicket shopping cart?

2007-09-19 Thread Tauren Mills
I'm looking for an open source shopping cart built in wicket, but haven't found such a thing yet. Does anyone know of something out there? I've noticed in several posts that people have been working on shopping solutions. Are any of you willing to open source your solution? Ultimately, I'd like

Re: Wicket shopping cart?

2007-09-19 Thread Tauren Mills
Martijn, Great to hear! I haven't bought the MEAP yet, but that's another great reason to! Perhaps it would make a good starting point. But still, if anyone has developed a more full featured solution and are interested in open sourcing it, I'd like to talk. Tauren On 9/19/07, Martijn Dashor

Re: Wicket shopping cart?

2007-09-19 Thread Martijn Dashorst
There has been some talk of building a pet store to compare it against other frameworks (in good spirit though!). But both Eelco and I haven't had the time to actually contribute to that project. The book has our highest priority now. I think the biggest shopping cart currently online is vegas.com

Re: Wicket shopping cart?

2007-09-19 Thread Scott Swank
It's a little too idiosyncratic to be of wider use -- i.e. adult & child tickets to the same show should appear together, but with the adult tickets first. There aren't any particular trade secrets in it, but it would likely be more work to generify (sp?) it than it would be to just write somethin

Re: WebSession shutdown

2007-09-19 Thread Eelco Hillenius
> In our WebSession subclass we manage some resources which need to be > cleaned up when the session goes away (because of timeout, etc). Is > there a recommended way to call a "shutdown()" method on our session > class? I have seen WebApplication.sessionDestroyed(String), but I'm not > sure how to

Images Example Question!

2007-09-19 Thread chickabee
Referring to Imge examples if I drop a few images into folder: src\main\webapp\images e.g. src\main\webapp\images\cat.gif src\main\webapp\images\dog.gif src\main\webapp\images\snake.gif Then how do I show these imges into the: src\main\java\org\apache\wicket\examples\images\HomePge.java src\

Re: Images Example Question!

2007-09-19 Thread Eelco Hillenius
> Referring to Imge examples if I drop a few images into folder: > src\main\webapp\images > > e.g. > src\main\webapp\images\cat.gif > src\main\webapp\images\dog.gif > src\main\webapp\images\snake.gif > > Then how do I show these imges into the: > src\main\java\org\apache\wicket\examples\images\Hom

Re: Images Example Question!

2007-09-19 Thread chickabee
Thanks Eelco for the prompt response, here is what I have. Image url woring fine in the browser: https://lilo:8443/whisky/images/mlogo/Merchant.gif Then in my class this is what i have: item.add( new Image("merchantLogo", "https://lilo:8443/whisky/images/mlogo/Merchant.gif";) ); And my html loo

Re: Images Example Question!

2007-09-19 Thread Eelco Hillenius
> Image url woring fine in the browser: > https://lilo:8443/whisky/images/mlogo/Merchant.gif > > Then in my class this is what i have: > item.add( new Image("merchantLogo", > "https://lilo:8443/whisky/images/mlogo/Merchant.gif";) ); > > And my html looks like: > > Note: i-m-g actually is img, i ad

Re: Images Example Question!

2007-09-19 Thread chickabee
Thanks Eelco, This is working now with ContextImage, as you suggested, Now how do I use this image to create one external link, I tried: but it fails miserably after complaining about hierarchy, i can't really find any method like: ExternalLink(java.lang.String id, java.lang.String href,

Re: Images Example Question!

2007-09-19 Thread chickabee
Posting again with image tag hack--- Thanks Eelco, This is working now with ContextImage, as you suggested, Now how do I use this image to create one external link, I tried: but it fails miserably after complaining about hierarchy, i can't really find any method like: ExternalLink(ja

Re: Images Example Question!

2007-09-19 Thread chickabee
Sorry, Posting again with image tag, and anchor hack--- Thanks Eelco, This is working now with ContextImage, as you suggested, Now how do I use this image to create one external link, I tried: <-a- wicket:id="merchantLink"> but it fails miserably after complaining about hierarchy, i can

Re: Images Example Question!

2007-09-19 Thread Eelco Hillenius
You need to close your tag. On 9/19/07, chickabee <[EMAIL PROTECTED]> wrote: > > Sorry, Posting again with image tag, and anchor hack--- > > Thanks Eelco, This is working now with ContextImage, as you suggested, Now > how do I use this image to create one external link, I tried: > > <-a- wick

Re: Images Example Question!

2007-09-19 Thread Igor Vaynberg
class myexternallink extends webmarkupcontainer { private final string url; public myexternallink(string id, string url) { super(id); this.url=url; } protected void oncomponenttag(tag) { tag.put("href",url); } } -igor On 9/19/07, chickabee <[EMAIL PROTECTED]> wrote: > > > Sorry, Posti

Re: Images Example Question!

2007-09-19 Thread chickabee
Oh, Sorry, this is alreay closed I just forgot to hack it so you can see it correctly in your browser, here it is the way I have it: <-a- wicket:id="merchantLink"> Note : -a- = a and i-m-g = img Bit it fails at run time. Eelco Hillenius wrote: > > You need to close your tag. > > On

Re: Images Example Question!

2007-09-19 Thread chickabee
Hi Igor, I am having tough time understanding this, I like to click on an image go to the external url, The Image object I have is a ContrxtImage, and an External Link, now how do I marry them both so that the link tag starts to recognize the Image within it, Please include one image in your code

Re: Images Example Question!

2007-09-19 Thread Eelco Hillenius
On 9/19/07, chickabee <[EMAIL PROTECTED]> wrote: > > Oh, Sorry, this is alreay closed I just forgot to hack it so you can see it > correctly in your browser, here it is the way I have it: > > <-a- wicket:id="merchantLink"> wicket:id="merchantLogo"/> > > Note : -a- = a and i-m-g = img > > Bit it

Re: Images Example Question!

2007-09-19 Thread Eelco Hillenius
> So did you add the image component to the link component? So: ExternalLink link = new ExternalLink("link", "http://foo.bar";); link.add(new ContextImage("img", "images/foo.gif")); See that the hierarchy of these two matches? Eelco ---

Re: Images Example Question!

2007-09-19 Thread chickabee
Nope! I don't know how to add image component to external link component? Igor suggested something but that went over my head. Help! help!! help!!! Eelco Hillenius wrote: > > On 9/19/07, chickabee <[EMAIL PROTECTED]> wrote: >> >> Oh, Sorry, this is alreay closed I just forgot to hack it

Re: Images Example Question!

2007-09-19 Thread Eelco Hillenius
On 9/19/07, chickabee <[EMAIL PROTECTED]> wrote: > > Nope! I don't know how to add image component to external link component? > Igor suggested something but that went over my head. Like I said: ExternalLink link = new ExternalLink("link", "http://foo.bar";); link.add(new ContextImage("img", "i

Re: wicket scalability

2007-09-19 Thread Jonathan Locke
this has been my experience. anecdotal evidence and experience tells me that wicket itself is exceptionally fast. fast enough that your DB will definitely be the bottleneck and not by a bit, but by an order of magnitude. 1000/rps vs. 100rps kind of thing. Johan Compagner wrote: > > What do

Re: Images Example Question!

2007-09-19 Thread chickabee
It's working well now, Thanks for pushing me through. Eelco Hillenius wrote: > > On 9/19/07, chickabee <[EMAIL PROTECTED]> wrote: >> >> Nope! I don't know how to add image component to external link >> component? >> Igor suggested something but that went over my head. > > Like I said: > >

Re: Images Example Question!

2007-09-19 Thread Eelco Hillenius
> It's working well now, Thanks for pushing me through. No problem. And remember: "don't panic" ;-) Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]