Best way to create a Root Page that every page in your app extends

2008-08-06 Thread Riyad Kalla
Hey guys, having a major brain-fart today... I swear I had this figured out at one point. I essentially want to create a RootPage (extends WebPage) that represents the root of every page in my app. It has an associated RootPage.html file with it that has all the DOCTYPE stuff in it, sets all the

Re: Best way to create a Root Page that every page in your app extends

2008-08-06 Thread Riyad Kalla
I was looking for. Best, Riyad igor.vaynberg wrote: see markup inheritance page on the wiki -igor On Wed, Aug 6, 2008 at 8:01 AM, Riyad Kalla [EMAIL PROTECTED] wrote: Hey guys, having a major brain-fart today... I swear I had this figured out at one point. I essentially want

Re: Image Bundler For Apache Wicket

2010-01-26 Thread Riyad Kalla
Very cool Anantha, do you have a site online that uses the bundler that we could take a peek at as a running example? On Tue, Jan 26, 2010 at 7:42 AM, Anantha Kumaran ananthakuma...@gmail.comwrote: http://ananthakumaran.github.com/imagebundler-wicket

Re: Page load after an action

2010-01-26 Thread Riyad Kalla
Stephane, I'll let someone smarter than me address the wicket issue of removing the item from the ListView and seeing if that helps -- but is there a chance you are using Hibernate and the Level 2 ehcache plugin or any 2nd-level caching with your persistence code? I ask because I've seen code

Re: Page load after an action

2010-01-26 Thread Riyad Kalla
...@softeam.com wrote: Hi, I don't use Hibernate. My persistence layer uses JDBC. What is strange when I click the delete link, it's the logs order : Loading all news News deleted So it seems that the deletion is done after the data reload :( Stéphane Riyad Kalla a écrit

Re: Should Duration be deprecated?

2010-01-26 Thread Riyad Kalla
... touche? :) On Tue, Jan 26, 2010 at 2:00 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: i thought they were all stored as electrons -igor On Tue, Jan 26, 2010 at 12:00 PM, James Carman jcar...@carmanconsulting.com wrote: All data in Java is ultimately stored as some sort of

Re: Image Bundler For Apache Wicket

2010-01-26 Thread Riyad Kalla
Just ran across another base64-based method of spriting images that Cappuccino is using: http://cappuccino.org/discuss/2009/11/11/just-one-file-with-cappuccino-0-8 pretty interesting and supports back to IE6. Just wanted to share incase anyone else reading on this subject was curious about other

Re: Nasty problem with component not found and images [solved]

2010-01-27 Thread Riyad Kalla
Thomas, as someone who frequently likes trying really dumb things -- I appreciate you giving a heads up on this issue. I was likely going to run into this at some point anyway ;) On Wed, Jan 27, 2010 at 3:46 AM, Thomas Kappler thomas.kapp...@isb-sib.chwrote: Earlier this month, there was a

Re: AjaxSubmitLink + setResponsePage = feedback message problem on new page

2010-01-27 Thread Riyad Kalla
Igor, will FeedbackPanel correctly consume the messages from the session scope and remove them -- or do you have to manually remove them once they've been rendered? On Wed, Jan 27, 2010 at 11:42 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: the problem is that there is a redirect between your

Re: images not under the context root directory

2010-01-27 Thread Riyad Kalla
This seems like adding a large amount of overhead to an image-heavy site (e.g. image blog or something), I thought I read in Wicket in Action that WicketFilter ignored HTTP requests for non-wicket resources now and passed them through to the underlying server to handle avoiding the need to remap

Re: contributing components

2010-01-27 Thread Riyad Kalla
Sam, Sounds like some pretty nice new components. Thanks for kicking those back into the community. R On Jan 27, 2010 3:36 PM, Sam Barrow s...@sambarrow.com wrote: I sent an email to this list the other day about releasing my wicket component toolkit. Anybody know how to go about this? I have

Re: Repeating View Horizontally

2010-01-28 Thread Riyad Kalla
Josh, Just what Tor said -- repeaters will just repeat whatever markup you feed it over and over again doing substitution on each one according to the backing components. So just make sure you are repeating an element that flows right to left -- a td or span -- probably a span is what you want

Re: know the last page user comes from

2010-01-28 Thread Riyad Kalla
Martin, It looks like you are trying to implement the flow for authorization manually (User tries to go from PageA to PageB, but they require authorization, so you temporarily send them to PageC -- if they fail, send them back to PageA, if they succeed, send them to PageB). The good news is that

Re: images not under the context root directory

2010-01-28 Thread Riyad Kalla
at 9:43 PM, Riyad Kalla rka...@gmail.com wrote: This seems like adding a large amount of overhead to an image-heavy site (e.g. image blog or something), I thought I read in Wicket in Action that WicketFilter ignored HTTP requests for non-wicket resources now and passed them through

Re: Wicket Pattern to reduce session size

2010-01-28 Thread Riyad Kalla
Gaetan, You can mark whatever instance that is causing the session to be so large as 'transient' to avoid it being serialized -- you'd have to recreate it each time it was needed though. So if it's in your model: = private String chartName; private String chartArguments; // maybe

Re: Fwd: Date Format on text field

2010-01-29 Thread Riyad Kalla
The good part: = DateTextField dateTextField = new DateTextField(dateTextField, new PropertyModelDate( this, date), new StyleDateConverter(S-, true)) = You'll need wicket-stuff On Fri, Jan 29, 2010 at 1:43 AM, Martin Grigorov mcgreg...@e-card.bgwrote:

Re: Howto load StringResources from Database for Iternationalization?

2010-01-29 Thread Riyad Kalla
self-learning, wow... it sounds like the custom IStringResourceLoader was the easy part of this problem :D On Fri, Jan 29, 2010 at 3:15 AM, MattyDE ufer.mar...@gmail.com wrote: Thanks a lot you both, it work very nice with private class DatabaseResourceLoader implements

Re: AjaxFallbackDefaultDataTable and delete via ModalWindow

2010-01-29 Thread Riyad Kalla
Andreas, This might be a dumb question, but are you sure at the point that the page reloads and re-renders, the object *has* been erased from the database or cache you are utilizing? For example, right after you delete, if you put in some silly/junk code to immediately re-query for that object,

Re: images not under the context root directory

2010-01-29 Thread Riyad Kalla
, Jan 28, 2010 at 5:26 PM, Riyad Kalla rka...@gmail.com wrote: Ernesto, Sorry about that -- I didn't mean to imply your impl was back, that was more directed at Francois along the lines of that's a lot of overhead, are you sure you need to do that? -- but now that I understand what his use

Re: images not under the context root directory

2010-01-29 Thread Riyad Kalla
to the wicket-examples. On 29-Jan-10, at 2:39 PM, Riyad Kalla wrote: ot sure how that mounting rule in glassfish works, it might be relative to your app root, but it seems it should work and just be treated as a normal path -- in the case of the previous fellow I understood his situation

Re: nested forms onSubmit

2010-01-29 Thread Riyad Kalla
Are nested forms a valid HTML construct? I'm running through the use-case here in my head and it doesn't click -- form submission is 1:1 with an HTTP POST, what do multiple embedded forms even mean in this regard? I don't think this is kosher... On Fri, Jan 29, 2010 at 2:04 PM, Dave Kallstrom

Re: RIA solution based on wicket

2010-01-31 Thread Riyad Kalla
Great idea -- probably just boils down to a time/resource issue more than anything. On Sun, Jan 31, 2010 at 10:28 PM, Josh Kamau joshnet2...@gmail.com wrote: Hi guys; I would like to get your opinions and also share some of my views. I have been test-driving wicket for a couple of weeks now

Re: AjaxFallbackDefaultDataTable and delete via ModalWindow

2010-02-01 Thread Riyad Kalla
need it to run once after I changed the model... Thanks Andreas -Original Message- From: Riyad Kalla [mailto:rka...@gmail.com] Sent: Friday, January 29, 2010 8:35 PM To: users@wicket.apache.org; sam.lued...@t-online.de Subject: Re: AjaxFallbackDefaultDataTable and delete via

Re: Mounting problem with GlassFishv3

2010-02-01 Thread Riyad Kalla
Peter, keep us posted on what the GF team comes back with. Best, Riyad 2010/1/31 Major Péter majorpe...@sch.bme.hu Hi, I made some investigation today, and found out the followings: With GlassFishv2 when the bookmarkablepagelink calculates the url, finally it goes to

Re: Save a form's markup

2010-02-01 Thread Riyad Kalla
At first I thought you would override the Component.onRender method to see what is going back to the client and save that, but iterating through the MarkupElements looks expensive (to rebuild the page) and might leave the response in an unexpected state. Also though you could possibly override

Re: better look modern css for wicket

2010-02-01 Thread Riyad Kalla
Shipping a few different custom themes as part of the Wicket SDK could be interesting -- for the standard Wicket components that just back HTML4 elements it's a little less necessary I suppose, but for those custom components, like Data Tables, making them look nice out of the box could be a nice

Re: Mounting problem with GlassFishv3

2010-02-01 Thread Riyad Kalla
Nice catch Peter 2010/2/1 Major Péter majorpe...@sch.bme.hu Hi, the result is this ticket: https://issues.apache.org/jira/browse/WICKET-2712 See more details there. Regards, Peter 2010-02-01 16:42 keltezéssel, Riyad Kalla írta: Peter, keep us posted on what the GF team comes back

Re: How to simulate browser back button?

2010-02-02 Thread Riyad Kalla
JavaScript is your only option -- that should work in IE, that's some pretty classic JavaScript right there. If your IE install has JS turned off, I'm not aware of any other way to programatically issue a 'back' to the browser. On Tue, Feb 2, 2010 at 1:09 AM, PDiefent pdief...@csc.com wrote:

Re: AjaxFallbackDefaultDataTable and delete via ModalWindow

2010-02-02 Thread Riyad Kalla
the AjaxFallbackDefaultDataTable in your opinion ;-) Andreas -Original Message- From: Riyad Kalla [mailto:rka...@gmail.com] Sent: Monday, February 01, 2010 4:40 PM To: users@wicket.apache.org; sam.lued...@t-online.de Subject: Re: AjaxFallbackDefaultDataTable and delete via

Re: component .... not found on page

2010-02-02 Thread Riyad Kalla
What version of Wicket? On Tue, Feb 2, 2010 at 10:11 AM, Eugene Malan eug...@emalan.com wrote: I am wrestling with the same Exception. I think I am doing something similar, in that I have a DataView with a link to a detail Page and then I return to the list page using

Re: Highlight invalid field

2010-02-04 Thread Riyad Kalla
Anna, I think James literally meant this presentation, it's got the code snippets you want: http://londonwicket.googlecode.com/files/LondonWicket-FormsWithFlair.pdf -R On Thu, Feb 4, 2010 at 12:25 PM, Anna Simbirtsev asimbirt...@gmail.comwrote: Can you give an example please? Actually I am

Re: Fix super(new CompoundPropertyModel(this)) error in the WIA book

2010-02-05 Thread Riyad Kalla
As someone working his way through WIA as well, will there be another wiki entry showing differences between book and 1.5? (I'm fairly interested in page mounting and nice URLs as well). -- also I realize the cost to constantly maintain book diffs by the authors is high, but just wanted to ask

Re: Settings an HTML page as home page?

2010-02-05 Thread Riyad Kalla
+1 to what James said: Home.html html body Yay, static content! /body /html Home.java public class Home extends WebPage { // no-op impl } On Fri, Feb 5, 2010 at 3:24 AM, Ashika Umanga Umagiliya auma...@biggjapan.com wrote: Greetings, How can I set an static HTML page in webapp

Re: How reRender a component from parent page?

2010-02-05 Thread Riyad Kalla
What do the tasty HTML bits look like? (wicket:ids and what not) On Fri, Feb 5, 2010 at 12:50 PM, Rangel Preis rangel...@gmail.com wrote: How can I use Ajax to change value from a parent page in my layout. I try to change values in header using a action from content page. I have this:    

Re: Wicket best practice

2010-02-06 Thread Riyad Kalla
Vineet, very cool stuff you are wooing on. As for best practices with regard to layout, there is actually a Maven Wicket archetype that would probably answer those questions well. From what I remember its pretty straight forward maven web layout. And yes, HTML and Java source are in same main

Re: [announce] better look modern css for wicket examples contest

2010-02-07 Thread Riyad Kalla
or a ton of apps that look a lot alike :) On Sun, Feb 7, 2010 at 9:20 AM, Andrew Lombardi and...@mysticcoders.com wrote: This isn't a modification for all the wicket examples, this is just for the maven archetype, the examples are a much larger undertaking. Focus here was to make it simple,

Re: TabbedPanel replaced by AjaxTabbedPanel shows request NS_BINDING_ABORTED

2010-02-08 Thread Riyad Kalla
Kulbhushan, I think this is the result of Wicket using abort() calls on the recycled XMLHttpRequest objects that are pooled as discussed here? http://old.nabble.com/Ajax-request-bug--td27324473.html#a27327789 On Mon, Feb 8, 2010 at 3:17 AM, Kulbhushan Sharma kbs_kulbhus...@yahoo.com wrote:

Re: TabbedPanel replaced by AjaxTabbedPanel shows request NS_BINDING_ABORTED

2010-02-08 Thread Riyad Kalla
No problem. On Mon, Feb 8, 2010 at 11:02 PM, Kulbhushan Sharma kbs_kulbhus...@yahoo.com wrote: Riyad, thanks for the explaination and the links. From: Riyad Kalla rka...@gmail.com To: users@wicket.apache.org Sent: Mon, 8 February, 2010 11:12:22 PM

Re: Changes of html-files are not directly available - need to re-deploy

2010-02-09 Thread Riyad Kalla
Joachim, Troubleshooting redeployment issues can be maddening. The *very first* thing you have to rule out is that the file is actually getting placed on disk in the deployed location. I don't know how NetBeans handles it's deployments, if it points Tomcat at the internal project and runs in

Re: Listening key pressings on server side

2010-02-10 Thread Riyad Kalla
Roland, It might be the browser + event that you are listening for that is the issue. Try onkeyup, here's a ref: http://www.tutorialized.com/view/tutorial/Get-key-press-event-using-JavaScript/9689 or onkeydown: http://www.dreamincode.net/code/snippet1246.htm Otherwise I think you had the right

Re: Example for Combobox wanted

2010-02-10 Thread Riyad Kalla
Nino, I think what PDiefent wants is literally to re-create the Swing combobox component, so something like: [TEXT_FIELD][BUTTON] and when you click [BUTTON] it causes a DIV to appear with a list of choices, but the user can also type their own in. PD, the only way I can think to do this is

Re: expecting different behavior from form validation - potential bug?

2010-02-11 Thread Riyad Kalla
Antoine, I think this was discussed 3 days ago in the thread titled Form#anyComponentError change in 1.4 breaks validation (Russel Morrisey), basically noting that in a recent release of Wicket, the form onError behavior was changed to checking for errors on ANY component in the form, to just

Re: add form components via ajax

2010-02-11 Thread Riyad Kalla
setMarkupId(true) is used to ensure there is a placeholder generated in the HTML where the addition of the div (or whatever) will take place. You don't set this typically on the form itself, but on a placeholder inside the form that you probably replace with a MarkupContainer of some kind with

Re: Authorization and

2010-02-12 Thread Riyad Kalla
Daniele, I think you're exactly right to use the get/setMetaDatahttp://wicket.apache.org/docs/1.4/org/apache/wicket/Component.html#setMetaData(org.apache.wicket.MetaDataKey, M) methods, per the Javadoc on MetaDataKeyhttp://wicket.apache.org/docs/1.4/org/apache/wicket/MetaDataKey.html(example code

Re: Scroll to Anchor on Form Submit

2010-02-12 Thread Riyad Kalla
Tony, I'm not sure if you can mess with the URL (e.g. append a #errors) from within Wicket without causing a redirect (and loosing your errors from the request and form state) -- someone smarter than me can address that -- but if you wanted to get creative, maybe in the onError handler your can

Re: OnChangeAjaxBehavior: nth character

2010-02-12 Thread Riyad Kalla
Vineet is exactly right, just to further flesh it out: You want to add a subclass of AbstractDefaultAjaxBehavior to your page, this automatically contributes the wicket-ajax.js file to your page which exposes these JavaScript methods for you: === function wicketAjaxGet(url,

Re: OnChangeAjaxBehavior: nth character

2010-02-12 Thread Riyad Kalla
, 2010 at 3:58 AM, Riyad Kalla rka...@gmail.com wrote: Vineet is exactly right, just to further flesh it out: You want to add a subclass of AbstractDefaultAjaxBehavior to your page, this automatically contributes the wicket-ajax.js file to your page which exposes these JavaScript

Re: OnChangeAjaxBehavior: nth character

2010-02-13 Thread Riyad Kalla
Cemal, very intuitive -- thanks for that. On Sat, Feb 13, 2010 at 6:26 AM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: Steven, Start with something like this: zipcodeField.add(new OnChangeAjaxBehavior() { @Override protected void onUpdate(AjaxRequestTarget target) {

Re: [OT] Wicket changed my life !

2010-02-20 Thread Riyad Kalla
That depends on how much traffic your app gets. GAE isn't cheap if you start getting serious traffic and depends on the services you tie into. On Sat, Feb 20, 2010 at 1:38 PM, nicolas melendez nfmelen...@gmail.comwrote: programming web applications with wicket is as funny as play a game :).

Re: Wicket used for mobile.walmart.com

2010-02-22 Thread Riyad Kalla
That is seriously cool Joachim, thanks for the heads up! On Mon, Feb 22, 2010 at 10:04 AM, Joachim F. Kainz j...@jolira.com wrote: Fellow Wicket Users, The question if Wicket is suitable for large enterprises has just become easier to answer: The largest enterprise in the world is now using

Re: Wicket used for mobile.walmart.com

2010-02-22 Thread Riyad Kalla
Joachim, Very very cool info. A few days ago folks were talking about slides for convincing management of Wicket and trying to create some common slides for folks to utilize -- information like *this* (Walmart, Wells Fargo) is a gold-mine for those business cases for Wicket. Would it be alright

Re: Wicket used for mobile.walmart.com

2010-02-22 Thread Riyad Kalla
://www.dzone.com/links/apache_wicket_powers_mobilewalmartcom.html On Tue, Feb 23, 2010 at 3:01 AM, Joachim F. Kainz j...@jolira.com wrote: Riyad, Yes, please go ahead and share this information. Best regards, Joachim On Mon, 2010-02-22 at 13:50 -0700, Riyad Kalla wrote: Joachim

Re: [OT] Wicket App Hosting

2010-02-25 Thread Riyad Kalla
Slicehost or RimuHosting - support from both is excellent and immediately accessible which I find invaluable given that when things are working, almost any of the 150 VPS hosts out there are all the same.. it is when stuff breaks that they differentiate themselves. Best, Riyad On Thu, Feb 25,

Re: Model to use for static Label text

2010-02-26 Thread Riyad Kalla
Serban, I really wouldn't trying and mess with detachable models unless you were dealing with 100s of individual Strings that were climbing up beyond 4k each or something like that -- if you are literally talking about UI labels, that is so few bytes that leaving them static references is going

Re: format float/double in dataview

2010-02-26 Thread Riyad Kalla
new SimpleAttributeModifier(text-align, right) on the Label? On Thu, Feb 25, 2010 at 4:39 AM, James Carman jcar...@carmanconsulting.comwrote: I would think that you'd add either a style or class attribute to the cell, perhaps? On Thu, Feb 25, 2010 at 6:02 AM, Andreas Lüdtke

Re: format float/double in dataview

2010-02-26 Thread Riyad Kalla
DOH, Wilhelmsen thanks for catching that. On Fri, Feb 26, 2010 at 7:08 AM, Wilhelmsen Tor Iver toriv...@arrive.nowrote: new SimpleAttributeModifier(text-align, right) on the Label? text-align is not a known attribute. It is a CSS property so SimpleAttributeModifier(style, text-align: right)

Re: format float/double in dataview

2010-02-26 Thread Riyad Kalla
) { item.add(new AttributeAppender(align, true, Model.of(right), ;)); super.populateItem(item, componentId, rowModel); } This way, the cell is right aligned. Andreas -Original Message- From: Riyad Kalla [mailto:rka...@gmail.com] Sent: Friday, February 26, 2010 3:06 PM

Re: Conditionally Render Different Fragments (via Radio Choice Selection)?

2010-02-26 Thread Riyad Kalla
JD, If you flip the initial visible fragment to the 2nd one, does the inverse condition apply? (frag2 is visible and frag1 isn't visible?) If you check the source of the generated HTML, you are seeing the generated placeholder tag for the 2nd fragment so it can be made visible right? -R On

Re: Conditionally Render Different Fragments (via Radio Choice Selection)?

2010-02-26 Thread Riyad Kalla
(...) Another option I considered and went with was just to add another div for the second fragment adding both to the container form and conditionally rendering them by setting their visibility appropriately. J.D. -Original Message- From: Riyad Kalla [mailto:rka...@gmail.com] Sent

Re: Debugging in Netbeans - Lists don't load

2010-02-26 Thread Riyad Kalla
Garrett, I would start simple, remove Wicket as much as possible from this situation first. In your DAO or whatever you are using to do the query and load the results from the DB -- just System.out the contents of the list to the console. Until you get that working, don't bother thinking about

Re: Print friendly panel

2010-02-27 Thread Riyad Kalla
This is what I've done in the past as well, allows your user to just print the page they are staring at and have the browser do the right thing in using an alternative style sheet for rendering the page -- this includes using a lot of display:none to trim down the parts of the page that you don't

Re: Serialization and Form Models

2010-02-28 Thread Riyad Kalla
Matthew, A quick absolute way to make sure those values are serialized is to use the Java 'transient' keyword. But Wicket will be assuming that when a user hits the Back button, that it can re-constitute the page from the serialized info it has on disk, if it cannot, then yes you'll need a

Re: Wicket-securty

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

Re: Ajax refresh outer panel

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

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

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

Re: Cant Read Variable From PageParameters (Wicket 1.4.6)

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

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

2010-03-01 Thread Riyad Kalla
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

Re: Uses of wicket:panel Tag?

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

Re: Cant Read Variable From PageParameters (Wicket 1.4.6)

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

Re: Cant Read Variable From PageParameters (Wicket 1.4.6)

2010-03-01 Thread Riyad Kalla
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 rka...@gmail.com wrote: Can you paste the code for the page that isn't working? You have a constructor for that page that takes a PageParameters arg

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

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

Re: image from outside web application directory

2010-03-02 Thread Riyad Kalla
Mike, The solution is writing a wicket component that finds the image on-disk and streams the bits back to the browser. Try these search results: http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery=dynamic+image

Re: Page Expired

2010-03-02 Thread Riyad Kalla
Alexander, Maybe this has to do with the persistence store you are using to make Wicket work on GAE not actually persisting your pages to a location that they can be retrieved again? I know by default the DiskStore that Wicket uses won't work on GAE, so I imagine you plugged something else in --

Re: validate

2010-03-02 Thread Riyad Kalla
If you have that string literally copy-pasted in some Java code somewhere, you need to double escape the escape chars... \\b and so on. On Tue, Mar 2, 2010 at 8:32 AM, Ivan Dudko ivan.du...@gmail.com wrote: For this expression

Re: DownloadLink problem

2010-03-02 Thread Riyad Kalla
Martin, If it makes you feel any better, it would have been a week or longer before I thought to change that, good fine :) -R On Tue, Mar 2, 2010 at 9:32 AM, Martin Asenov mase...@velti.com wrote: Oh my God!!! The problem was that the button that is supposed to do the export was of type

Re: [newbie] Wicket, Spring, Hibernate and transactions in views.

2010-03-02 Thread Riyad Kalla
I'm not DB expert, but why are you using transactions for read only (SELECTs) queries? I've only ever seen transactions used to wrap INSERT/UPDATE/DELETE statements (writes) -R On Tue, Mar 2, 2010 at 9:46 AM, Colin Rogers coli...@groundsure.com wrote: I'd recommend you to make your

Re: Wicket button label

2010-03-02 Thread Riyad Kalla
Natalie, What have you tried thus far to change the label? Another approach might be to set the visibility on the CancelButton to false and true on another FinishButton and then refresh the whole button bar to paint that state for the last panel? -R On Tue, Mar 2, 2010 at 10:09 AM, Metzger,

Re: Bookmarkable root page with PageParameters

2010-03-02 Thread Riyad Kalla
I *thought* I recall this being a known issue that will be addressed in 1.5 with some of the new bookmarkable work? On Tue, Mar 2, 2010 at 1:38 PM, Anthony DePalma fatef...@gmail.com wrote: I added a bookmarkablePagingNavigator to my page to enhance seo, and when the homepage was bound to the

Re: lazily loading sublist on vertical scroll?

2010-03-03 Thread Riyad Kalla
hahah, that's an awesome URL service. On Wed, Mar 3, 2010 at 10:49 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: the mentioned article is here: http://5z8.info/freeanimalporn.com-start-download_e6r5o_worm.exe or you can go to wicket in action and put ajax listview in the search box.

Re: setResponsePage() in AjaxSubmitLink.onSubmit() redirects to relative URL

2010-03-04 Thread Riyad Kalla
Nikita, The wicket team started the vote on if 1.4.7 was ready to go out a few days ago, it should be either late this week or early next when the release goes out if that helps at all (don't know how immediate your need is). -R On Wed, Mar 3, 2010 at 4:16 PM, Nikita Tovstoles

Re: setResponsePage() in AjaxSubmitLink.onSubmit() redirects to relative URL

2010-03-04 Thread Riyad Kalla
=== On Thu, Mar 4, 2010 at 4:46 AM, Riyad Kalla rka...@gmail.com wrote: Nikita, The wicket team started the vote on if 1.4.7 was ready to go out a few days ago, it should be either late this week or early next when the release goes out if that helps at all (don't know how

Re: how to use the google trends for searching wicket?

2010-03-04 Thread Riyad Kalla
You can use grouping and AND and OR operators to improve the accuracy... but there is no great magic to Trends, it's hard to pull awesome stats out of commonly named things from it. Usually the news articles help you know if it's hitting the right search items, but a lot of times they are

Re: image from outside web application directory

2010-03-04 Thread Riyad Kalla
... GBU On Tue, Mar 2, 2010 at 10:06 PM, Riyad Kalla rka...@gmail.com wrote: Mike, The solution is writing a wicket component that finds the image on-disk and streams the bits back to the browser. Try these search results: http://old.nabble.com/forum/Search.jtp?forum=13974local=yquery

Re: Planned 1.4.7 Release?

2010-03-04 Thread Riyad Kalla
The hot item in 1.4.7 I am aware of is the fix for redirected/relative paths when using Ajax components that was broken in 1.4.6 -- and yesterday Igor said he would begin promotion to the mirrors and writeup an announcement, so I think the release is... any minute now? On Thu, Mar 4, 2010 at

Re: Dynamically change feedback panel border color?

2010-03-04 Thread Riyad Kalla
I *think* you want to handle that inside of onRender: http://wicket.apache.org/docs/1.4/org/apache/wicket/Component.html#onRender(org.apache.wicket.markup.MarkupStream) On Thu, Mar 4, 2010 at 7:58 PM, David Chang david_q_zh...@yahoo.com wrote: I am using a div with border color to enclose

Re: URL pattern /app/* does not work for Wicket 1.4.6 and WebSphere 6.1

2010-03-05 Thread Riyad Kalla
Steve, Can you upgrade to 1.4.7 (was announced yesterday) and see if the issue persists? -Riyad On Fri, Mar 5, 2010 at 6:53 AM, Steve Hiller sh...@bellsouth.net wrote: Hi All, I am working on my first Wicket app that uses the 1.4 branch instead of 1.3. As usual, this app will be deployed

Re: URL pattern /app/* does not work for Wicket 1.4.6 and WebSphere 6.1

2010-03-05 Thread Riyad Kalla
Steve, So your context-root is /JobCenter and the URL mapping /app/* -- and after submitting the form WebSphere(?) is redirecting to the server's root, not even to /JobCenter? I can't think of a case where WebSphere wouldn't honor the context root atleast unless you are returning a redirect from

Re: deployment problem

2010-03-05 Thread Riyad Kalla
bono, Looks like some dependencies are missing from your WAR === ***/server/DatabaseManager.java:[8,34] package org.springframework.core.iodoes not exist === Can you grab the WAR, unzip it and check WEB-INF/lib and see if those libs are in there? Might just be a packaging issue.

Re: Clear feedback panel

2010-03-06 Thread Riyad Kalla
I thought the feedback messages were stored in the request by default? At least I remember a thread from a week and a half ago about a person doing a redirect and loosing his messages so he had to manually switch to saving them in the Session... On Fri, Mar 5, 2010 at 9:12 PM, Martin Makundi

Re: Where to put an application's configuration parameters?

2010-03-07 Thread Riyad Kalla
David, Given your requirements, I'd recomment putting them in a properties file along side your custom WebApplication class for your particular application and then inside of the WebApp's init method, reading in the properties file and storing the information in the WebApplication.get/setMetaData

Re: Where to put an application's configuration parameters?

2010-03-07 Thread Riyad Kalla
James, Thanks for the link. -R On Sun, Mar 7, 2010 at 4:50 PM, James Carman ja...@carmanconsulting.comwrote: If you want to see how I did it with spring config, you can check out my advanced wicket demo app at: http://svn.carmanconsulting.com/public/wicket-advanced/trunk On Mar 7, 2010

Re: Clear feedback panel

2010-03-08 Thread Riyad Kalla
= Session.get().getFeedbackMessages(); System.out.println(size: + me.size()); it returns 0. On Sat, Mar 6, 2010 at 9:16 AM, Riyad Kalla rka...@gmail.com wrote: I thought the feedback messages were stored in the request by default? At least I remember a thread from a week and a half ago about