Re: onmouseover image

2008-09-23 Thread Al Maw
Have a look at AjaxEventBehavior. You can either combine this with an Image component or add an AttributeModifier and manually tweak the img's src attribute. Alastair 2008/9/19 Tim Squires [EMAIL PROTECTED] Hi All, Before I go and write my own component to change the src of an img

Re: Discussion on Wicket Interface Speed-Up

2008-09-03 Thread Al Maw
Hmmm. As you say, there's no easy one-size-fits-all. There is an obvious improvement you could make, though. All JS/CSS contributions initially rendered on the home page could be batched up. This will typically provide the biggest improvement anyway. You could then keep a reference to this batch,

Re: Implement LabeledLink and ImageLink components - what is the most elegant way?

2008-08-26 Thread Al Maw
For something like this, you probably want to avoid having markup files at all. Seeing as you want something that is both a Link and a Label, a good starting point might be to look at the source code for both. You should be able to extend the Link class, and override onComponentTagBody() in much

Re: Wicket Image - Java Image

2008-08-26 Thread Al Maw
Sounds to me like you're somewhat confused. ;-) Load the image from the classpath into a bufferedimage as you would outside of Wicket (Foo.class.getResourceAsStream() or whatever it is). Draw text, etc. on it as you see fit. Display it with Wicket if you want to via a BufferedDynamicImageResource.

Re: color code options in drop down choice

2008-08-09 Thread Al Maw
Note that you can style option tags in Firefox, but it probably won't work in Internet Explorer, so it may not be worth even bothering with this... Alastair 2008/8/9 Martin Makundi [EMAIL PROTECTED]: Using Select/SelectOption/SelectOptions I loose all the other encapsulated benfits of

Re: Comparing JSF and Wicket

2008-08-07 Thread Al Maw
2008/8/7 nlif [EMAIL PROTECTED]: While it is very good to know that it's relatively easy to develop Wicket components, bear in mind that management (at least mine) is more easily convinced when presented with a wide selection of 3rd party component libraries, since that provides an alternative

Re: 7th August London Wicket Event

2008-08-07 Thread Al Maw
Thanks for the kind words. I really liked Carl's Terracotta stuff - very cool. Wille's presentation on his WicketRAD framework was also great. It's really cool to see people getting inspired by and building on people's code from previous meet-ups! I can't begin to tell you how rewarding that is.

Re: AjaxButton does not work

2008-08-07 Thread Al Maw
This may be a client tag interpretation problem? Try using gt;gt; instead of . I don't think inside HTML attributes is valid HTML. Use firebug and/or the wicket ajax debug window (link bottom right on your page) to see what's going on. Alastair 2008/8/5 Daniel Freitas [EMAIL PROTECTED]: Do

Re: Help!! TextField in ListView = NULL

2008-08-07 Thread Al Maw
Have you done any web development before using Wicket? If so, you should be able to solve this problem by asking yourself the following questions: What happens if you click a link on a web page? Do you think the browser sends the data in a text field on the page to the server if you click a

Re: RelativePathPrefixHandler and form action attributes

2008-07-18 Thread Al Maw
2008/7/18 Brad Fritz [EMAIL PROTECTED]: I am trying to rewrite an HTML form action attribute (for a non-Wicket form) inside a Wicket Panel and could use some help. While converting a large webapp to Wicket, I created a Panel to wrap a search form. The form processing is not handled by

Re: Reading files

2008-07-12 Thread Al Maw
2008/7/11 David Nedrow [EMAIL PROTECTED]: Here's what I've have... IResourceStream resStream = new PackageResourceStream(WicketApplication.class, protocols.csv); InputStream inStream = resStream.getInputStream(); InputStreamReader isr = new InputStreamReader(inStream); ListString[]

London-based jWeekend Apache Wicket course, July 12 13th

2008-06-26 Thread Al Maw
Hi folks, Bit of shameless self-promotion here, but it's right on-topic so I hope no one minds... Just a quick heads-up that Cemal and I are running a rather comprehensive Apache Wicket course in a couple of weeks' time, on July 12th and 13th. The course is mature, well proven, and nicely

Re: Multiple Layouts using Inheritance

2008-06-11 Thread Al Maw
It doesn't sound like you're trying to inherit anything, not in the object-oriented sense of the term. Instead you just want to use different markup for a page dependent on some criteria. Wicket already does this for localised versions of a page. HomePage.html HomePage_de.html HomePage_fr.html

Re: ListViews in a form question

2008-06-11 Thread Al Maw
This sort of stuff is definitely possible - people certainly have it working elsewhere. If you use setReuseItems(true) you need to call removeAll() if you change the backing model object. Timo is probably right that a RepeatingView may be easier to use in this kind of situation. Alastair

Re: Multiple Layouts using Inheritance

2008-06-11 Thread Al Maw
Note that you can also override the style in your Component class (e.g. your WebPage subclass). The default implementation for getStyle() calls getVariation(), etc. Best to look at the source to see exactly how it works. Regards, Alastair 2008/6/11 Gwyn Evans [EMAIL PROTECTED]:

Reminder: London Wicket event at Google UK on Wednesday

2008-06-02 Thread Al Maw
and make them behave just so. - *Al Maw http://herebebeasties.com* walking you through an entire crazy-cool AJAX-heavy app, using some of the components previously created for past London Wicket talks. As usual there will be: - Lots of pizza. - A visit to the pub afterwards. - People to help you

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Al Maw
I think you miss John's point, which is that when you use a CompoundPropertyModel for a component, all its children typically do not reference models explicitly. Thus you typically use an explicit model on 30% of your components if you have a form-heavy web-app; the other components use the

Re: Integer only NumberValidator?

2008-04-27 Thread Al Maw
You can find the default messages (and keys, obviously) in the org.apache.wicket.Application.properties file. Regards, Al On Fri, Apr 25, 2008 at 1:20 AM, Michael Mehrle [EMAIL PROTECTED] wrote: Man, of course - I was so focused on NumberValidator that I completely forgot about the

Re: I cannot understand why would a panel have the getparent null

2008-04-03 Thread Al Maw
ajaxTable.setCurrentPage(ajaxTable.getUserRow(user.getUsername(), new Date(((HomePage)getParent()).getClientCalendar().getTimeInMillis())) / ROWS_PER_PAGE); Eeek. Not to be rude, but I really can't read that at all. Some well-named intermediate variables and a comment might not go amiss. Your

Re: Render body only

2008-04-03 Thread Al Maw
Yeah. It's a bit nasty, but there's not really any other way to have both the flexibility and the convenience, unless you have some brilliant other idea? It's like jk says, normally you would use the setter, unless you need on-demand evaluation per page-view. Regards, Alastair On Thu, Apr 3,

Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-03 Thread Al Maw
You can use as many anonymous inner classes as you like. I have them coming out of my ears, personally. It's very odd for tomcat to die with no output. There will be output somewhere. Check logs/catalina.out and also logs/localhost*. If the JVM dies, it will hotspot or even segfault and log that,

Re: Reg: issue in using ListView component

2008-04-02 Thread Al Maw
Or search this list for a thread called refreshing page. On Wed, Apr 2, 2008 at 4:44 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: new model(listdata) is the same as a static reference. like i said, read the models page because without understanding them you wont get far. basically you would

Re: ListView with a Set instead of a List

2008-04-01 Thread Al Maw
// Simply: IModel listModel = new AbstractReadOnlyModel() { public Object getObject() { return new ArrayList(mySet); } }; // Or if you want to wrap a property model (not that this is as nice): IModel listModel = new PropertyModel(bean, mySetHere) { public Object getObject() {

Re: Changing Wickets default styles

2008-04-01 Thread Al Maw
If you are having CSS issues in firefox, use firebug to debug it. It will tell you which rules are being overridden and by what. You might be including the CSS in the wrong order on the page, for example. Regards, Al On Tue, Apr 1, 2008 at 6:06 PM, Matthew Young [EMAIL PROTECTED] wrote: and

Re: continueToOriginalDestination resolves to wrong URL

2008-04-01 Thread Al Maw
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Al Maw Sent: Monday, March 31, 2008 7:54 PM To: users@wicket.apache.org Subject: Re: continueToOriginalDestination resolves to wrong URL I've just spent two hours trying to reproduce this and failing to (see the bug). If anyone can give me

Re: OOM in PermGen after several deploy/undeploy

2008-04-01 Thread Al Maw
The following two blog entries are very useful in understanding and debugging this issue: http://blogs.sun.com/fkieviet/entry/classloader_leaks_the_dreaded_java http://blogs.sun.com/fkieviet/entry/how_to_fix_the_dreaded We think we've fixed the instances in Wicket where this is a problem, but

Re: Calling a JS function from onNodeLinkClicked in a Tree?

2008-04-01 Thread Al Maw
This isn't as easy to tweak as it could be, I'm afraid. :-( You're better off using target on the href than doing this with JavaScript, I'd have thought. That said, most people think that choosing to open a new window or not is pretty evil - the user has the option to do this if they want to, it

Re: export excel file via an OutputStream

2008-04-01 Thread Al Maw
I think he makes a valid point, personally. People do want to do this sort of thing quite frequently. It wouldn't kill us to implement an OutputStreamLink that looked like this: add(new StreamingLink(link) { public String getFileName() { return download.xls; } public String

Re: Advance RadioChoice Examples

2008-04-01 Thread Al Maw
You have to use the constructor that takes an IChoiceRenderer, same as any other AbstractChoice component like a DropDownChoice. You should be able to figure the rest out from the JavaDocs and examples for that. Regards, Al On Tue, Apr 1, 2008 at 9:29 PM, Shelli D. Orton [EMAIL PROTECTED]

Re: refreshing page

2008-04-01 Thread Al Maw
Really need some code to see exactly what you're doing wrong here. Wicket uses models to bind your view components to your actual data. Assuming you're using a ListView, you'll need something like: IModel model = new AbstractReadOnlyModel() { public Object getObject() { // Database

Re: RequestCycle exception explanation

2008-04-01 Thread Al Maw
the component they've clicked on from the hierarchy, causing the second click to fail? Regards, Al On Tue, Apr 1, 2008 at 9:44 PM, Jeremy Levy [EMAIL PROTECTED] wrote: On this site we aren't using any Ajax components. :( J On Tue, Apr 1, 2008 at 4:39 PM, Al Maw [EMAIL PROTECTED] wrote: What

Re: Resources relative to application context

2008-03-31 Thread Al Maw
Actually, this should Just Work (tm). Are you running on Tomcat? Regards, Alastair On Mon, Mar 31, 2008 at 4:34 AM, [EMAIL PROTECTED] wrote: You got it -igor On 3/30/08, Zheng, Xiahong [EMAIL PROTECTED] wrote: Thanks Igor. But my resource in this case is style sheet not image. Does

Re: continueToOriginalDestination resolves to wrong URL

2008-03-31 Thread Al Maw
That bug was closed for rc 1, so you shouldn't be having this issue unless you're on a beta version. Please could you provide some more details? Which Wicket version? Which servlet container? Regards, Alastair On Mon, Mar 31, 2008 at 3:32 AM, Zheng, Xiahong [EMAIL PROTECTED] wrote: Just

Re: London Wicket Event - Wednesday evening at Google

2008-03-31 Thread Al Maw
Further to this, we'd really like to hear some user stories about what you're up to with Wicket. If you'd like to do a two-minute demo pimping your site and telling us what you've found good/bad about developing with Wicket, that would be great. If you can't or don't want to do a demo, but have a

Re: How to make img src in a component's template resolve to the image files in the package?

2008-03-31 Thread Al Maw
Errr, or you could use the Image component, with a standard package resource? Regards, Alastair On Mon, Mar 31, 2008 at 8:26 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: On Mon, Mar 31, 2008 at 11:44 AM, Matthew Young [EMAIL PROTECTED] wrote:

Re: continueToOriginalDestination resolves to wrong URL

2008-03-31 Thread Al Maw
the relative stylesheet loading problem that I was facing at the same time. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Al Maw Sent: Monday, March 31, 2008 10:15 AM To: users@wicket.apache.org Subject: Re: continueToOriginalDestination resolves

Re: continueToOriginalDestination resolves to wrong URL

2008-03-31 Thread Al Maw
environment set up so we can work out what the heck the problem could be. Are people running this behind a mod_proxy or something? Or are you seeing this issue when pointed at localhost:8080? Regards, Alastair On Mon, Mar 31, 2008 at 10:23 PM, Al Maw [EMAIL PROTECTED] wrote: Yep, this is probably

Google hosting next London Apache Wicket User Group meet on Wednesday April 2nd.

2008-03-06 Thread Al Maw
Hi folks, Building on the success of the previous Apache Wicket User Group meet last month, Google UK has generously decided to host the next one. This time, the fun and games will happen on *April 2nd*, starting at *6:30pm *. To sign up and for more details (links to a map, etc.) please go to:

Re: n^2 loop in MarkupContainer?

2008-02-11 Thread Al Maw
The children field is private to Component, so I figure we could make children transient, double the array size each time each time we add components if it's not big enough (like ArrayList does), and then in detach() we could copy the children over to a non-transient variable and null out the

Re: HTML files location

2008-02-10 Thread Al Maw
The easiest thing to do is to keep src/main/webapp as-is and put your stuff in a parallel directory structure in src/main/resources. E.g. more src/main/java/com/yourcompany/foo.css to src/main/resource/com/yourcompany/foo.css On 10/02/2008, Andy Czerwonka [EMAIL PROTECTED] wrote: I used the

Re: Jetty, images and 404 http

2008-01-07 Thread Al Maw
Wicket special-cases URLs that start with /resources/*. You therefore can't use that as a directory for your images. Regards, Al On 04/01/2008, Fernando Wermus [EMAIL PROTECTED] wrote: Michael, I have changed the images to another directory and it is working right now. I don't know

Re: Wicket meetup in San Francisco

2007-12-06 Thread Al Maw
had interest from as far away as San Diego, so I think it's an important step just to get the first one started. Cheers, Orion Al Maw-2 wrote: Sorry, I've been pretty busy lately - I've not been checking the wicket-users list every day. If you want to get hold of me in a hurry

Re: Wicket meetup in San Francisco

2007-12-05 Thread Al Maw
it, but I'll need to know by 2pm. Kind regards, Al Orion Letizi wrote: It looks like this Thursday, Dec. 6 is the leading contender, especially if Al Maw can give a presentation (haven't heard back from him yet, though). Otherwise, Eelco Hillenius has agreed to be there via teleconference, so

Re: How do I get a hold of the body element so I can add class/id etc?

2007-11-24 Thread Al Maw
Edvin Syse wrote: Johan Compagner skrev: BodyOnLoadContainer is dropped because you shouldn't try to generate body onload=xxx What you should do is have a header contributor and add call IHeaderResponse.renderOnLoadJavascript(String javascript); OK. Maybe one of you guys could remove the

Re: How to determine absolute URL of a mounted page?

2007-11-24 Thread Al Maw
Oliver Lieven wrote: is there a way to determine the complete, absolute URL to a mounted page (including protocol, host, port, application, filter and destination page)? I need this to be able to send a link to a Registration-Confirmation page to a user via email. Ah, yes, I've been meaning

Re: disabled AjaxEditableMultiLineLabel

2007-11-23 Thread Al Maw
Gerolf Seitz wrote: i found the problem: what i mentioned before with onBeforeRender didn't make it into rc1. sorry for messing that up. but now there are two checks for enabled/disabled. i actually prefer the one with dis-/enabling the label in onBeforeRender, because this way the onClick

Re: Refreshing list view with ajax

2007-11-23 Thread Al Maw
Al Maw wrote: godin wrote: Hi, as a stupid newbie, i encounters a problem with refreshing list view with ajax i edit an object which relate to a list view in a modal dialog , and i can't manage to refresh the listview after the submit all the object in the list are detachable , (i override

Re: How to instanciate panels best?

2007-11-22 Thread Al Maw
Icy wrote: *** What is the best practise to not instanciate page aggregating panels all the time? *** This isn't really a Wicket question. Your page is slow because doing database/remote operations is slow. It has nothing to do with creating Panels, but everything to do with the database

Re: how to generate a javascript function

2007-11-22 Thread Al Maw
lodhur wrote: That what I need is a javascript function which contains the correct call of my window (similar to the onlick-content of the wicket generated link). You /really/ need to learn how to work things out for yourself. Allow me to lead you through such a process. So, you want

Re: Screen resolution and diffrent markup files

2007-11-21 Thread Al Maw
Artur W. wrote: Is is possible to create different markup files (for the same page) depends on user screen resolution? This is quite easy, actually. Create an abstract ResolutionDependentPage extends WebPage which your pages will extend. Add this method: @Override public String

Re: Problems with spring to manage all webpages

2007-11-21 Thread Al Maw
thomas jaeckle wrote: igor.vaynberg wrote: make that bean a prototype? Hm, I don't see the benefit of this. The problem remains: I can't initialize the pages before the WebApplication is initialized (in this case I would become a There is no application attached to current thread main

Re: Screen resolution and diffrent markup files

2007-11-21 Thread Al Maw
Al Maw wrote: return super.getVariation() + _ + size; Should be: String s = super.getVariation(); return s == null ? size : s + _ + size; Otherwise the default locale HomePage_big.html won't work and will look for HomePage_null_big.html. ;-) Regards, Al

Re: San Francisco meetup

2007-11-21 Thread Al Maw
Orion Letizi wrote: There was some talk yesterday on IRC about having a Wicket meetup in San Francisco. I offered the Terracotta offices, pizza, and beer as a good place to have it. I'm in California for three weeks starting next week, would be happy to come and do a presentation if you

Re: Wizard - Setting error messages for feedback panel

2007-11-20 Thread Al Maw
Gregooo wrote: Is there anyway to change the default feedback error messages? For example, now, I have the following error message: Field 'user.userName' is required. And I would like to change it by: Please enter your Name. http://cwiki.apache.org/WICKET/form-validation-messages.html See

Re: setResponsePage in a WebPage constructor

2007-11-20 Thread Al Maw
karnowski wrote: Greetings, In the constructor of my webpages I'm wanting to do a validity check and if it fails redirect to a different page. So I'm doing something like this: public class OriginalPage extends WebPage { public OriginalPage() { ... if(!validityCheck()) {

Re: RepeatingView constructors

2007-11-19 Thread Al Maw
jweekend wrote: When instantiating a RepeatingView, is there a case where RepeatingView(String id, IModel model) would be used instead of RepeatingView(String id) ? It seems that RepeatingView's (and RefreshingView's) model is unused. Use case: RepeatingView view = new RepeatingView( foo,

Re: Deployment mode Javascript error

2007-11-19 Thread Al Maw
Frank Bille wrote: The easy solution is to disable javascript cleanup: INIT: getResourceSettings().setStripJavascriptCommentsAndWhitespace(false); I have been too lazy to actually try to fix the problem, I'm afraid. :-( Is there a JIRA issue for this? Regards, Al

Re: IOC problem

2007-11-18 Thread Al Maw
Uwe Schäfer wrote: Is it currently impossible to use constructor injection ? To quickly answer my own question: no, but little tricky! :) Well, you need to replace instances of new FooComponent() with something that gets injected, like a ProviderFoo if you're using Guice, or some kind of

Re: JPA best-practices?

2007-11-13 Thread Al Maw
Uwe Schäfer wrote: Subclass WebRequestCycle, and construct it with an EntityManager. thanks! That may well be an alternative to the common ServletFilter-pattern. Well, err, yes. ;-) One question: isn´t it a little better to have the ThreadLocal Holder for the EntityManager separate from

Re: Add fields Dynamically

2007-11-13 Thread Al Maw
Marco Aurélio Silva wrote: So, I can create a panel to each type of answer (input, dropDown, radio...) but how to add dynamic number of panels? Look at the Repeater examples at http://wicketstuff.org/wicket13 . Regards, Al

Re: JPA best-practices?

2007-11-12 Thread Al Maw
Uwe Schäfer wrote: i plan to use JPA together with Wicket. Are there any battle-proven best-practices out there of how to handle EnityManagers and Transactions? What do other people use (no, not the spring crowd ;) ? One EntityManager per Request seems to be the obvious idea and a guice

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Al Maw
serban.balamaci wrote: I am just saying that it may be ok in some cases to keep state on some objects and not have detachable models. I agree. Anything that uses a List of database entities, I tend to put in a detachable model. If I'm merely using a single POJO that was originally pulled

Re: Wicket behind a front-end proxy

2007-11-09 Thread Al Maw
Johan Compagner wrote: so we dont support this currently? myserver1.xxx.com:80 - localhost:8080/myapp1 myserver2.xxx.com:80 - localhost:8080/myapp2 We support that just fine. That, in fact, is most of the reason why we're using relative URLs in 1.3. Murat: I have this working perfectly

Re: Change css-class of form on validation

2007-11-09 Thread Al Maw
BatiB80 wrote: Hmmm... - sorry, but one more question on this. I added an attributemodifier to my component. When accessing the page the attribute is correctly renderred. But I want to rerender the component after the validation failed. But the validation method isn't called again. example:

Re: Question about Guice integration with Wicket 1.3 beta 4

2007-11-09 Thread Al Maw
pmularien wrote: Was there a conscious design decision to not use the org.apache.wicket.injection.web.InjectorHolder class (and, by association, have the wicket-guice stuff inherit from ConfigurableInjector)? It would be pretty convenient if the GuiceComponentInjector worked similarly to the

Re: Question about Guice integration with Wicket 1.3 beta 4

2007-11-09 Thread Al Maw
pmularien wrote: Al Maw wrote: Yes, there was, and this issue hasn't been resolved for 1.3 yet. I did it like this because some people will want to use both Guice and Spring in their apps at the same time, especially if they're mid-migration. We should come up with a decent way to make

Re: Several localized buttons in a form

2007-11-08 Thread Al Maw
Pills wrote: How can I put several buttons on a form? If you look at the code you've written, you've nearly answered your own question. ;-) Don't use the Form's onSubmit(). Just use the Buttons' onSubmit()s instead. If you want to allow a Button#onSubmit() without the Form validating,

Re: multiple url mappings for the wicket web application

2007-11-07 Thread Al Maw
Johan Compagner wrote: I dont think that will work quite that way out of the box. because our normal statefull redirect page will go to /?wicket:interface=:0: And also form post will go to that kind of url (and then redirect) Actually, we rely on the servlet container to convert relative

Re: Help understaning AjaxCallDecorator problem

2007-11-07 Thread Al Maw
skatz wrote: Is it possible for a javascript function to fail in such a way that the rest of the script would not be called? It can throw an exception. Regards, Al - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [OT] CSS issues - suggestions?

2007-11-07 Thread Al Maw
Gwyn Evans wrote: I've got some text that shows up fine in Firefox but only when selected in IE (IE7) and I've no idea what the real issue is, so I'm hoping someone can take a glance. That bug tends to be triggered by floats, but there are various things that can cause it. You can almost

Re: Link text

2007-11-07 Thread Al Maw
Sam Hough wrote: Anything similar for spitting something out _after_ the tag that the component is mapped to? e.g. Sending out some text/html after a checkbox? Presumably onComponentTagBody doesn't get called because it is not a Container and the input tag is send after anything I do in

Re: 1.2 or 1.3 beta 4 ?

2007-11-07 Thread Al Maw
Martijn Dashorst wrote: As for 1.2 or 1.3.. .I suggest 1.3. It is running on a couple of production systems already [...] LOL. Hands Martijn the Understatement of the Century Award. ;-) Regards, Al - To unsubscribe,

Re: Rendering a fieldset class attribute

2007-11-07 Thread Al Maw
William Hoover wrote: final AttributeModifier levelModifier = new AttributeModifier(class, new Model() { @Override public Object getObject() {

Re: Form: onSubmit not called

2007-11-07 Thread Al Maw
Brill Pappin wrote: For some reason onSubmit is never called on a simple form. Has anyone seen this problem before? Throw us a bone here... Some code please? Regards, Al - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Rendering a fieldset class attribute

2007-11-07 Thread Al Maw
William Hoover wrote: Is it better to use AbstractBehavior and override onComponentTag? I assume that the AttributeModifier is only for cases when the attribute already exists in the markup, correct? Well, given the javadoc I told you to read for the second parameter there, no. ;-) It

Re: Multiple wicket:child / tags on a single base page?

2007-11-07 Thread Al Maw
Chris Colman wrote: heh, wellyou can be against this, but i think if we take a vote right now most core-devs with binding votes will vote this down I still can't see the reason for the negativity of some of the core-devs: this is an existing feature. No offense to anyone involved,

Re: New page from Ajax form issues - What am I missing?

2007-11-06 Thread Al Maw
Gwyn Evans wrote: Hi, I've got a form, which I'm processing with Ajax, but I need to go onto a different page once it submits correctly. The problem I'm seeing is that if I do a setResponsePage(Sent.class); then the URL that's being generated is:

Re: multiple url mappings for the wicket web application

2007-11-06 Thread Al Maw
Tom Desmet wrote: http://myserver:8080/mywicketwebapp/NL/* http://myserver:8080/mywicketwebapp/EN/* http://myserver:8080/mywicketwebapp/FR/* ... What I would like to achieve is that when someone enters the web application by the url /mywicketwebapp/NL, that all wicket requests stay under this

Re: How do I get the current page?

2007-11-06 Thread Al Maw
maentele wrote: My question/problem is: how do I get the currentPage (the currently active link)? Just call Component#getPage() Regards, Al - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: default wicket:child / and prevent access for base page

2007-11-06 Thread Al Maw
Will Jackson wrote: What is the proper way to declare a default wicket:child / and ensure that the page containing the wicket:child / is not directly accessible on its own? I know I can just call the extending page (i.e. Page1 extends BasePage, calling Page1.html), but how do I ensure that

Re: How do I get the current page?

2007-11-06 Thread Al Maw
Martijn Dashorst wrote: It doesn't work until after adding the component to the page. This is true. So you need something like this (I've modified your variable names to make it more obvious what is what): pageLink.add(new AttributeModifier(class, true, new AbstractReadOnlyModel()

Re: default wicket:child / and prevent access for base page

2007-11-06 Thread Al Maw
Johan Compagner wrote: Make BasePage an abstract class. some things in live are soo simple :) (are we testing for abstract pages or will there just be an exception?) Probably the latter, but if your users are guessing URLs then they deserve to lose. Regards, Al

Re: Make PageableListView row click

2007-11-06 Thread Al Maw
Marco Aurélio Silva wrote: I'm using a PageableListView component and I want to make each row of the list clickable. I don't want to add a column with a label like details, I just want to click in any place of the row to go to details. Is there a way to do this? If you don't mind requiring

Re: Make PageableListView row click

2007-11-06 Thread Al Maw
Marco Aurélio Silva wrote: Is there a way to do it without javascript? Well, obviously if you want to handle clicking on things without Javascript then whatever it is needs to be a standard Link. You can abandon tables and do something like this: div wicket:id=listView a wicket:id=link

Re: Link text

2007-11-05 Thread Al Maw
Sam Hough wrote: Lots of the time I just want a link with text as the body of the ... ... The Link class takes an IModel so presumably uses that for something but I can't see it in the source or get it to appear... Sorry I'm being thick and I did search honest! You'd typically use the model

Re: Is Beta5 coming soon? Beta4 has caused these issues for us....

2007-11-04 Thread Al Maw
landry soules wrote: Sorry Al, but you lost your money ;-) I put back slf4j-api-1.4.2.jar , and still the same problem... Using the jars suggested by Cristi doesn't help either. But since it seems i'm the only one to still have the problem, must be a problem with my classpath. I will recheck

Re: Is Beta5 coming soon? Beta4 has caused these issues for us....

2007-11-03 Thread Al Maw
landry soules wrote: Actually, i didn't go on with maven, since my project is already quite advanced now, i don't want to reconfigure it to use maven. I just tried to create a sample project to figure out what is the correct combination of slf4j/log4j to use (bad idea, since it appears to be

Re: difference between Link(SomePage.class) and Link(new SomePage())

2007-11-03 Thread Al Maw
auron wrote: Sorry to be the wicket newbie, but I was wondering if you guys could help me to understand how Links work. I understand that when you do Link(SomePage.class), it calls the zero param constructor of SomePage, and when you do Link(new SomePage(someParams)) you can call other

Re: empty wicket:message

2007-11-03 Thread Al Maw
Sebastiaan van Erk wrote: I was wondering if it is possible to configure wicket to make wicket:message output the key in braces when the key is not found (at least in development mode), because that would make it a lot easier to spot missing labels... That is, what I'd like to do is:

Re: Jira issue moved to the list: constructors and init of components

2007-11-03 Thread Al Maw
Brill Pappin wrote: Moving to the list as suggested by Gwyn. From Jira issue: https://issues.apache.org/jira/browse/WICKET-1108 Maybe I wasn't clear on what my problem with it was. 1) doing any extensive amount of work in a constructor is an anti-pattern AFAIK. Blindly declaring

Re: empty wicket:message

2007-11-03 Thread Al Maw
Johan Compagner wrote: Yes we could do that. Just remove that default value. But what i would like to have IF you have a body specified then we don't throw anything This way we keep old behavior and we have the new one FWIW, I entirely agree with this. If we just change it for tags that have

Re: mvn netbeans:netbeans command for QuickStart Project

2007-10-31 Thread Al Maw
Francisco Diaz Trepat - gmail wrote: Hi I just downloaded the maven 2.0.7 and ran the *mvn archetype:create -DarchetypeGroupId=org.apache.wicket* then ran the *mvn netbeans:netbeans* inside the project to get a Netbeans project. And got an error. That's because there is no such

Re: is it a bug? (using beta 4)

2007-10-26 Thread Al Maw
Otan wrote: The problem with the extra dot-dot in the image src that arises when the filter is map to /* seems to be fixed when I do this: mountBookmarkablePage(/home, HomePage.class); Now, the URL I see in the browser when I access the homepage is this: http://server/context-path/home instead

Re: possible bug in 1.2.6 / 1.3 Include

2007-10-25 Thread Al Maw
Jeremy Levy wrote: I found this while working on 1.2.6 and checked it out in 1.3 and it's the same. It appears as though Include does not pay attention to the contextpath if it is explicitly set. Line 162 (In 1.2.6) or line 233 (in 1.3b4) of Include is the following line which as I understands

Re: is it a bug? (using beta 4)

2007-10-25 Thread Al Maw
This should work just fine. What's the URL in your browser's address bar? Wicket will automatically prepend things to make paths relative to the context root. Regards, Al Johan Compagner wrote: filter should be mapped on /* thats why we have the filter. I don't know why the ../ is

Re: how to forward request to an external URL

2007-10-10 Thread Al Maw
Nili Adoram wrote: Suppose I want to forward the HTTP request to some external url (NOT a wicket page, e.g. a JSP page). I want to end the request cycle at this point ( not include this URL inside my page). How can I simulate request.getRequestDispatcher(url).forward() within a wicket page?

Re: Help - Best Practice - Mapping Database Constraint Violation to User Interface

2007-10-01 Thread Al Maw
mchack wrote: Could someone provide a pointer/link as to the best mechanism to map DB constraint violations from Hibernate (or ORM layer) back to the user interface layer. I'm sure this has been solved but wasn't successful in searching for an answer. I'm not sure if this is the best way to do

Re: Reach into a component to change XML attribute

2007-09-27 Thread Al Maw
You can override onComponentTag for the component itself, if that's an option. Call super.onComponentTag(...) then tag.put(class, foo) or whatever it is. Regards, Al Sam Hough wrote: In my ignorance it seems tough to make that work the second time if the list has changed. It is also less

Re: Howto center new window on screen?

2007-09-26 Thread Al Maw
Per Newgro wrote: I don't know exactly from the top of my head, but I think you'd do this with Javascript. Ahh ok. I found an example here: http://www.boutell.com/newfaq/creating/windowcenter.html Where do i have store the java scripts i want to use oftenly? I expected that Page.class would

Re: NoSuchMethodException / PropertyResolver

2007-09-25 Thread Al Maw
Johan Compagner wrote: thats just a debug log: * catch* (Exception e) { *log*.debug(Cannot find getter + clz + . + expression, e); } maybe i should just delete that log statement to kill the confusion. Just log it without the stack trace. Regards, Al

  1   2   >