Re: Ajax testing with Selenium

2008-08-28 Thread John Krasnay
.browserbot.getCurrentWindow().wicketAjaxBusy()", "1"); jk On Thu, Aug 28, 2008 at 06:26:09PM +0200, Matej Knopp wrote: > Probably not for 1.3/1.4. We could have something like that for 1.5 > (where the ajax pipeline is completely new). > > -Matej > > On Thu, Au

Ajax testing with Selenium

2008-08-28 Thread John Krasnay
I'm testing some Ajax-y Wicket pages with Selenium. One challenge I'm having is finding a good expression to use in Selenium's waitForCondition. Right now I wait for the results of the Ajax call, e.g. an appropriate element appearing, but it's sometimes difficult to get this right, e.g. if a compon

Re: AbstractDefaultAjaxBehavior.findIndicatorId()

2008-08-25 Thread John Krasnay
I've added https://issues.apache.org/jira/browse/WICKET-1801 to cover this. jk On Fri, Aug 22, 2008 at 09:00:36AM -0400, John Krasnay wrote: > I have a small request regarding AJAX indicators. > > It's sometimes awkward to implement an AJAX indicator the standard way

AbstractDefaultAjaxBehavior.findIndicatorId()

2008-08-22 Thread John Krasnay
I have a small request regarding AJAX indicators. It's sometimes awkward to implement an AJAX indicator the standard way, by implementing IAjaxIndicatorAware, since it forces me to use an explicit class where I otherwise would have used an anonymous inner class. I actually have this code in one of

Re: CheckGroup updateModel() bug?

2008-08-21 Thread John Krasnay
Cemal, I think you may be a closet Lisp programmer :-) jk On Thu, Aug 21, 2008 at 12:32:00PM -0700, jWeekend wrote: > > Ritesh, > > I wouldn't call it a bug because the model is updated, albeit indirectly, > but perhaps in a slightly inconsistent way as you've pointed out (no > setModel call),

Re: Nested forms

2008-08-19 Thread John Krasnay
On Tue, Aug 19, 2008 at 09:15:55AM -0400, John Krasnay wrote: > On Mon, Aug 18, 2008 at 11:10:29PM +0200, Matej Knopp wrote: > > Can't you just override isEnabled() on the inner form and return > > true/false depending on whether the inner form should be processed? > >

Re: Nested forms

2008-08-19 Thread John Krasnay
On Mon, Aug 18, 2008 at 11:10:29PM +0200, Matej Knopp wrote: > Can't you just override isEnabled() on the inner form and return > true/false depending on whether the inner form should be processed? > Hrm, something like this I suppose? public boolean isEnabled() { return findFormSubmitting

Nested forms

2008-08-18 Thread John Krasnay
Hi folks, I find myself occasionally using nested forms in my Wicket apps. With nested forms, when the outer form is submitted, it triggers a validation and submission of any inner forms as well. In some cases I don't want this behaviour, but instead I want the inner form and outer form to be inde

Re: How to build a dynamic navigation bar

2008-07-22 Thread John Krasnay
Something like this... Foo public class MyMenuPanel extends Panel { public MyMenuPanel(String id, String label, Class pageClass) { super(id); Link link = new BookmarkablePageLink("link", pageClass); add(link); link.add(new Label("label", label)); } } jk On Tue, Jul 22, 2

Re: How to build a dynamic navigation bar

2008-07-22 Thread John Krasnay
On Tue, Jul 22, 2008 at 09:59:48AM -0700, Edbay wrote: > > Thanks for the quick reply. > > Wouldn't this force all links to have the same wicket ids ("linkid")? > I'd like to be able to have the line items look like this: > > ># Link01 text here ># Link02 text here >#

Re: Functional testing tools comparison

2008-07-03 Thread John Krasnay
On Thu, Jul 03, 2008 at 04:41:27AM -0700, richardwilko wrote: > > hi, > > I've used selenium in the past and I do like it. However it uses domIds > quite a bit, and as these are autogenerated by wicket they can prove > troublesome. For example, you might get a test working, then add a new > com

Re: HeaderContributer for a title

2008-07-01 Thread John Krasnay
I like to do this in my base page: foo protected IModel getPageTitleModel() { return new ResourceModel(getClass().getSimpleName()); } add(new Label("title, new AbstractReadOnlyModel() { public Object getObject() { return getPageTitleModel().getObject(); } })); The AbstractRe

Re: Wicket + iText ?

2008-06-26 Thread John Krasnay
ex to roll your own implementation. jk On Thu, Jun 26, 2008 at 12:52:56PM -0700, nanotech wrote: > > I am trying to integrate iText on the lines of example provided by "John > Krasnay" below. > My question is : > 1. While iterating over the list of IColumn .How to I

Re: How to indicate dependency on a .war file?

2008-06-19 Thread John Krasnay
On Thu, Jun 19, 2008 at 11:22:03AM -0500, Frank Silbermann wrote: > OK, so I need to package my dependency as a JAR file because I need to > add it to my classpath in Eclipse. > > I am not sure how the war overlay tool will help me; it seems to be used > for getting resources out of a .war file, a

Re: How to indicate dependency on a .war file?

2008-06-19 Thread John Krasnay
On Thu, Jun 19, 2008 at 11:09:57AM -0400, Brill Pappin wrote: > Look up "war overlay" in the maven-war-plugin that will give you some > useful information on what you want to do beyond your original > questions. > > as for dep types. > A war can be depended upon just like a jar (or anything el

Re: How to indicate dependency on a .war file?

2008-06-19 Thread John Krasnay
You can't AFAIK. A WAR file is not a JAR file, e.g. the contained classfiles are under WEB-INF/classes, not the root. You're shared component should be a JAR project instead of a WAR project. Just remember to mount your test page in each app in which you use it. jk On Thu, Jun 19, 2008 at 09:59:

Re: idea: automatic component repo

2008-06-18 Thread John Krasnay
t;>> > >>>> > >>>> On 18-Jun-08, at 9:53 AM, Jonathan Locke wrote: > >>>> > >>>>> > >>>>> > >>>>> also, locating components automatically via crawling > >>>>> means no central point of

Re: idea: automatic component repo

2008-06-18 Thread John Krasnay
How would this be different than just deploying a bunch of fine-grained JARs via Maven? jk On Wed, Jun 18, 2008 at 02:49:06AM -0700, Jonathan Locke wrote: > > my RSI is bad so please forgive the terseness. the idea: > > - make an automated wicket component library > - define packaging struct

Re: ListChoice Crashing on 13th Load

2008-06-05 Thread John Krasnay
You are not closing your JDBC connections, and are therefore you are running out of connections in your connection pool. I would STRONGLY advise against using raw JDBC. You have no idea how difficult it is to correctly clean up after JDBC. At the very least look into Spring's JdbcTemplate class, a

Re: What is cool on Wicket?

2008-06-03 Thread John Krasnay
One big selling point for me was the encapsulation of components. Because the code and all required resources (markup, CSS, JS, localization properties) are by default retrieved from the classpath, it's trivial to create reusable libraries of common components, page layouts, etc. jk On Tue, Jun 0

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

2008-06-03 Thread John Krasnay
On Mon, Jun 02, 2008 at 11:36:33PM -0400, Brill Pappin wrote: > Ahh... But there in lines the real point. > > What happens 2 years down the road when you need to modify that component? > A) if its not typed then you hunt around and try and find out what it was... > Maybe you do a println of the fq

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

2008-06-02 Thread John Krasnay
On Mon, Jun 02, 2008 at 03:05:46PM -0400, Hoover, William wrote: > I got the point, but I take things as people state them. It was stated > that 70% of the time models are not being used (such is the case for > Link). As you stated, they are being used indirectly. That is > different. If that is t

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

2008-06-02 Thread John Krasnay
On Mon, Jun 02, 2008 at 11:59:09AM -0400, Hoover, William wrote: > I read it, but I think most people will be using models more frequently > than 30% of the time. Personally, I use them 99% of the time. Really? Haven't you heard of CompoundPropertyModel? jk -

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

2008-06-02 Thread John Krasnay
On Sun, Jun 01, 2008 at 01:44:59PM -0700, Eelco Hillenius wrote: > > 1) Generifying* Wicket >[x] Can best be done in a limited fashion, where we only generify > IModel but not components. I care more about what generifying can do > for API clarity (declaring a component to only accept certain

Re: Background image that resizes with window?

2008-05-23 Thread John Krasnay
On Fri, May 23, 2008 at 05:11:58PM -0400, David Nedrow wrote: > > When I try to use this in a Wicket page, I'm getting a JavaScript > error noting: > > "Value undefined (result of expression $(window).width) is not > object." > > and the image doesn't resize with the window. I'm c

Re: Background image that resizes with window?

2008-05-23 Thread John Krasnay
On Fri, May 23, 2008 at 11:57:48AM -0400, David Nedrow wrote: > > On May 23, 2008, at 11:20 AM, Igor Vaynberg wrote: > > >dont really see what this has to do with wicket...sounds like you are > >after some javascript. > > I have the JavaScript, but I was having trouble with other Wicket > elem

Re: Wicket tags and IE6

2008-05-17 Thread John Krasnay
On Sat, May 17, 2008 at 09:57:13AM +0200, Frank Bille wrote: > What happens if you add the wicket namespace to the html tag? > > http://wicket.apache.org";> > > Frank > I thought about that, but the page already has the declaration. jk > On Fri, May 16, 2008 at

Re: Wicket tags and IE6

2008-05-16 Thread John Krasnay
hen you are in deployment mode. > > On Fri, May 16, 2008 at 1:33 PM, John Krasnay <[EMAIL PROTECTED]> wrote: > > > I've just noticed a specific problem with Wicket tags interfering with > > IE6. I have a page that uses the jqModal plugin for jQuery to display a >

Wicket tags and IE6

2008-05-16 Thread John Krasnay
I've just noticed a specific problem with Wicket tags interfering with IE6. I have a page that uses the jqModal plugin for jQuery to display a popup div. It works fine on FF, but on IE6 the overlay (the semi-transparent div that blocks out the rest of the page while the popup is active) pushes the

Re: DropDownChoice throws IllegalArgumentException with Integer values

2008-05-09 Thread John Krasnay
On Fri, May 09, 2008 at 06:42:11PM -0700, Michael Mehrle wrote: > Thanks for the input, John - but I the plot thickens here. It seems that > there is actually a Wicket bug that needs to get fixed. After a lot of > tinkering I figured out why I was getting this error. The VERY FIRST > TIME my render

Re: DropDownChoice throws IllegalArgumentException with Integer values

2008-05-09 Thread John Krasnay
On Fri, May 09, 2008 at 03:39:07PM -0700, Michael Mehrle wrote: > I like your solution, but you are using an IntegerSelectChoice as your > model, which won't work for me. I need to set my model to a regular > Integer since that's what's being persisted on the backend. > > Michael Quite right. I r

Re: DropDownChoice throws IllegalArgumentException with Integer values

2008-05-09 Thread John Krasnay
On Fri, May 09, 2008 at 09:15:50AM -0700, Michael Mehrle wrote: > Great input and you're forgiven for jumping the gun with SelectOption > ;-) > > I didn't even know there was a wicket SelectOption, which puts a new > spin on things. Regarding the conversion back to the model: Yes, I was > followin

Re: DropDownChoice throws IllegalArgumentException with Integer values

2008-05-09 Thread John Krasnay
On Fri, May 09, 2008 at 11:53:30AM -0400, John Krasnay wrote: > On Fri, May 09, 2008 at 08:25:05AM -0700, Michael Mehrle wrote: > > Anyone? Was hoping for some input here ;-) > > > > http://cwiki.apache.org/WICKET/another-dropdownchoice-example-by-adam.ht > > ml > &g

Re: DropDownChoice throws IllegalArgumentException with Integer values

2008-05-09 Thread John Krasnay
On Fri, May 09, 2008 at 08:25:05AM -0700, Michael Mehrle wrote: > Anyone? Was hoping for some input here ;-) > > http://cwiki.apache.org/WICKET/another-dropdownchoice-example-by-adam.ht > ml > > The only change I made to SelectOption is to set the 'value' field to an > Integer (which I need for m

Re: Wicket and Eclipse WTP

2008-05-07 Thread John Krasnay
your web application and click Edit. > Uncheck Auto reloading enabled. That always does the trick for me. Now > if there were only a way to have it default to unchecked when deploying > a new application. > > -----Original Message- > From: John Krasnay [mailto:[EMAIL PROTECTED

Wicket and Eclipse WTP

2008-05-07 Thread John Krasnay
I've recently switched from the Sysdeo Tomcat plugin for Eclipse to WTP for running my Tomcat instance. I'm trying to get to a point where when I change a .html or .properties file it just shows up without re-deploying the whole web context. It seems that if I change a file under src/main/webapp it

Re: validation: Wicket does the right thing? Or right tool?

2008-05-02 Thread John Krasnay
On Fri, May 02, 2008 at 09:13:40AM -0700, David Chang wrote: > > >>Weird. Your experience is exactly opposite to mine. > I found Spring MVC to be hopelessly scattered: > declarations in XML, controller code in Java, view > code in templates. > > I dont have any real experience yet. It is mere my

Re: validation: Wicket does the right thing? Or right tool?

2008-05-02 Thread John Krasnay
On Fri, May 02, 2008 at 07:25:01AM -0700, David Chang wrote: > > I have the bad feeling about this way of validation > > 1. It is too much coding. Anybody used Valang in > Spring Module? By using Valang, the validation code is > much clean and a lot fewer and you dont need to create > a class sim

Re: questions about Matt Raible's web framework comparison

2008-05-02 Thread John Krasnay
On Fri, May 02, 2008 at 05:48:36AM -0700, David Chang wrote: > I just started migrating from Spring MVC to Wicket. I > found Matt Raible's interesting slides at this place: > > http://static.raibledesigns.com/repository/presentations/ComparingJavaWebFrameworks-ApacheConUS2007.pdf > > Matt's says

Re: Spring 2.5 and Wicket, our vision about integration

2008-04-28 Thread John Krasnay
On Mon, Apr 28, 2008 at 12:15:22PM +0200, Daniel Fernández Garrido wrote: > > Service interfaces are > not serializable (normally), and thus they should be declared as "transient" > here, and provide a way to recover the object after page serialization. > Erm, I think you mean "service implement

Re: Alternative method to initialise page

2008-04-27 Thread John Krasnay
On Sat, Apr 26, 2008 at 01:58:28PM -0700, John Patterson wrote: > > Note to self: don't post messages when half cut. But I have to break that > rule just one more time > Heh, no problem. Been there once or twice myself... jk -

Re: Alternative method to initialise page

2008-04-26 Thread John Krasnay
On Sat, Apr 26, 2008 at 04:46:11AM -0700, John Patterson wrote: > > > > John Krasnay wrote: > > > > This rule is too strict. Another way to avoid calling overridable > > methods from the constructor is to use a model: > > > > Models are fine for pr

Re: Alternative method to initialise page

2008-04-26 Thread John Krasnay
On Sat, Apr 26, 2008 at 04:17:35AM -0700, John Patterson wrote: > > Sorry, I did find a discussion which was related [1] which ended with Igor > saying: > > "yes, but its also easy to fix. Just don't call any overridible methods > inside constructors. And for everything else there is onbeforeren

Re: interesting scriptaculous usage conundrum

2008-04-21 Thread John Krasnay
On Mon, Apr 21, 2008 at 02:11:01PM -0700, Doug Donohoe wrote: > > Hi John, > > Thanks for the suggestion, but that did not work. I suspect it didn't work > for the same reason that my attempt to use setEnabled(true/false) on the > AttributeModifier didn't work. > > It has to be with how wicke

Re: ListView and Threading

2008-04-21 Thread John Krasnay
On Mon, Apr 21, 2008 at 05:32:08PM +0200, Edvin Syse wrote: > > I know that getVisible() might be called multiple times during a > page-render, so I'm beginning to think that maybe it returns false on the > call that decides wether to include the markup, and then true later on, > creating the m

Re: interesting scriptaculous usage conundrum

2008-04-21 Thread John Krasnay
On Mon, Apr 21, 2008 at 07:18:57AM -0700, Doug Donohoe wrote: > > So I added an attribute modifier to the loginPanel: > > new AttributeModifier("style", true, new Model("display: none") > > This corrected the 'flash' problem. But introduced another problem. Now, > when the form is submitte

Re: StringResourceModel with unknown array parameters

2008-04-19 Thread John Krasnay
On Sat, Apr 19, 2008 at 01:00:09PM +, i ii wrote: > > i come up with easy solution. thanks for help: > > .properties > attendees.names=All attendees include: {0} > > webpage > // example list, but do not know size of list at all times > List attendees = new ArrayList(); > attendees.add("At

Re: am I doing right? entities no Serializables.

2008-04-19 Thread John Krasnay
On Fri, Apr 18, 2008 at 11:50:59PM -0300, Fernando Wermus wrote: > I try to spend the less memory I can using LoadableDetachableModel. But if > the user is filling up a form for a new entity I think I have two options, > one serialize and the other create a kind of dto. I don't like the first > bec

Re: DropDownChoice problem

2008-04-17 Thread John Krasnay
This has to qualify as one of the most common questions on the list! Hopefully, generics in 1.4 will make it more clear. The items in your list have to be the same type as the value model (the PropertyModel in your case). In your case, Wicket is complaining because the PropertyModel returns a long

Re: Wicket + iText ?

2008-04-16 Thread John Krasnay
his ? (only rough sketch ... nothing > elaborate really. > > Thanks in advance. > Rick > > On Wed, Apr 16, 2008 at 8:54 PM, John Krasnay <[EMAIL PROTECTED]> wrote: > > > Hi RG, > > > > You probably want to look at how DataTable in wicket-extensions work

Re: Wicket + iText ?

2008-04-16 Thread John Krasnay
Hi RG, You probably want to look at how DataTable in wicket-extensions works. The idea is you set up an array of column objects, each of which knows how to display the data in a particular column, and a data provider, which provides an iterator over the objects represent your rows. The DataTable p

Re: Forms within borders

2008-04-11 Thread John Krasnay
On Fri, Apr 11, 2008 at 01:12:15PM -0700, Igor Vaynberg wrote: > try > > formborder extends border { > formborder() { form.add(getbodycontainer(); } > } > Yep, tried it but it doesn't help. > if that doesnt help you might have to say > formborder.getbodycontainer().add(textfield); This indee

Forms within borders

2008-04-11 Thread John Krasnay
Hi all. I'm trying to create a component I call a FormBorder. The idea is to embed the form and OK/Cancel buttons into the border: public FormBorder(String id, IModel model) { super(id, model); add(form = new Form("form")); form.add(getB

Re: a transparent conversion of a CheckBoxMultipleChoice value

2008-04-09 Thread John Krasnay
On Wed, Apr 09, 2008 at 05:09:03PM +0200, Vitaly Tsaplin wrote: >What is going to happen if I call getModel on such a component? The > model should be properly unwrapped I suspect. It's a logical behavior. > Is it possible to achieve? If you extend CheckBoxMultipleChoice, getModel() must retur

Re: a transparent conversion of a CheckBoxMultipleChoice value

2008-04-09 Thread John Krasnay
On Tue, Apr 08, 2008 at 11:03:52PM +0200, Vitaly Tsaplin wrote: >Yep. It looks simple and efficient. But it's quite a repetitive > task. As I already mentioned I am going to create a component. And a > data conversion should be its direct responsibility. The model wrapper > cannot be provided f

Re: a transparent conversion of a CheckBoxMultipleChoice value

2008-04-08 Thread John Krasnay
On Tue, Apr 08, 2008 at 08:16:18PM +0200, Vitaly Tsaplin wrote: >Thanks John, > >It was the idea that came to my mind first. The question is where I > can create such a wrapper? I need to have it compatible with > CompountPropertyModel... That's the sticking point. CompoundPropertyModel i

Re: a transparent conversion of a CheckBoxMultipleChoice value

2008-04-08 Thread John Krasnay
On Tue, Apr 08, 2008 at 06:41:20PM +0200, Vitaly Tsaplin wrote: >Hi everyone, > >Lets say I am going to use a single integer value as a model object > for the component CheckBoxMultipleChoice packing the selected choices > somehow to this value as bits. Where can I do such a conversion? Th

Re: Have any DynamicByteArrayResource sample?

2008-04-07 Thread John Krasnay
On Mon, Apr 07, 2008 at 07:32:48AM -0700, rosen jiang wrote: > > well, I have some idea: > > ByteArrayOutputStream baos = new ByteArrayOutputStream(); > > . > . > . > add(new Link("download") { > public void onClick() { >WebResp

Re: Render body only

2008-04-03 Thread John Krasnay
On Thu, Apr 03, 2008 at 03:50:42PM +0100, Charlie Dobbie wrote: > Off Topic, but does anyone else apart from Scott and me get confused by this > duality? > > Should I setProperty, or override getProperty? And the equally annoying > Does getComponentX give me a reference to an already-created Comp

Re: How to validate without submitting a form

2008-03-17 Thread John Krasnay
On Mon, Mar 17, 2008 at 11:44:19AM -0700, BertrandDatas wrote: > > Yes, surely I could but it is not the case I want to make the validation > during the onSubmit of a dynamically generated button which is embed in a > panel and this panel is in the form that I want to validate , so I cannot do > t

Re: Performance

2008-02-19 Thread John Krasnay
Actually, I thought Johan pointed out what the problem was: that the performance of MarkupContainer.add is something like O(n^2) with respect to the number of direct children of the container, and that this was part of a conscious decision to optimise for space rather than time. Adding 100,000 chi

Re: Wrapping a POJO

2008-01-31 Thread John Krasnay
On Thu, Jan 31, 2008 at 01:18:50PM +0100, Maeder Thomas wrote: > Why insist on a CompoundPropertyModel? My first instinct would be to > create a custom model for the checkboxes (which sets/unsets a single > bit). > > Thomas Agreed. Here's a model that I use to solve the same problem: public cla

Re: Form/Enter Key Problem

2007-12-19 Thread John Krasnay
On Tue, Dec 18, 2007 at 03:32:14PM -0800, Ballist1c wrote: > > Hey guys, > > I have created the following form (code below). > > The form works fine, when i enter a value into the txt field and mouse click > on the AjaxFormSubmitLink... BUT if i type something into the TextField and > press the

Re: Two home pages?

2007-12-16 Thread John Krasnay
On Sat, Dec 15, 2007 at 08:44:32PM -0800, Cristina wrote: > > Hello, > > I'm working on an app where users and admins will perform mutually exclusive > use cases. That's quite a common situation. It looks like the simpler > approach here would be to return one home page with the user menu and > a

Re: Problems deploying Wicket application with Tomcat

2007-12-05 Thread John Krasnay
PermGen is a region of memory maintained by the JVM for things like class definitions. The default size is notoriously small for web apps, and you can easily run out, especially if you re-deploy the application multiple times without restarting the app server. Try re-starting Tomcat rather than ju

Re: How to secure passwords?

2007-12-04 Thread John Krasnay
On Tue, Dec 04, 2007 at 03:41:03PM +0100, Sebastiaan van Erk wrote: > > My original point was that MD5 hash plus salt is adequate in most use > cases; and I still stand by that. If you're developing a high profile > site, then I STRONGLY suggest you hire a security expert to audit your > entire

Re: How to secure passwords?

2007-12-04 Thread John Krasnay
On Tue, Dec 04, 2007 at 09:36:21AM +0100, Sebastiaan van Erk wrote: > John Krasnay wrote: > >I see from your later posts that your requirements are not that strict, > >but if anyone else on the list needs to do password hashing, here's one > >of the best articles I&

Re: How to secure passwords?

2007-12-03 Thread John Krasnay
On Mon, Dec 03, 2007 at 06:40:53AM -0800, Pills wrote: > > Hello, > > I've a little question with wicket: I would like to hash my users' passwords > (with md5) to make them unreadable for a human. And I also would like to > hash them before sending them through the network (to avoid the biggest p

Re: Different form validation behavior for each submit button.

2007-11-23 Thread John Krasnay
On Fri, Nov 23, 2007 at 08:20:27PM +0100, Murat Yücel wrote: > Hi John > > Thanks for the help it works like a dream. I just have one more question. > I have some problem with the feedback filtering. Is it possible to have 2 > feedback messages on the page. Well it is possible :). Found this: > ht

Re: Different form validation behavior for each submit button.

2007-11-23 Thread John Krasnay
On Fri, Nov 23, 2007 at 06:05:34PM +0100, Murat Yücel wrote: > Ok I didnt know that :)... I dont think it is standard html to have a > form in a form. > But as long as it work with wicket then i am happy :). > > /Murat > AFAIK Wicket replaces any nested s with s to preserve HTML correctness. So

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

2007-11-23 Thread John Krasnay
On Fri, Nov 23, 2007 at 05:05:51PM +0100, Edvin Syse wrote: > John Krasnay wrote: > > > >Perhaps there's another way to solve your problem. Why are you modifying > >the class of ? To change it's styling? Why not instead split your > >styles into different styl

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

2007-11-23 Thread John Krasnay
On Fri, Nov 23, 2007 at 04:24:21PM +0100, Edvin Syse wrote: > >The tag from your subpage is discarded. The tag that is > >rendered comes from some parent page. One way to do this would be to > >attach a WebMarkupContainer to the tag in the parent page and > >expose it via a getter: > > > I rea

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

2007-11-23 Thread John Krasnay
On Fri, Nov 23, 2007 at 02:17:28PM +0100, Edvin Syse wrote: > Hi, > > I have a page that extends another page, and concequently the "parent" > page template contains the element that is beeing rendered. The > "subpage" template contains: > > > > content... > > >

Re: Different form validation behavior for each submit button.

2007-11-23 Thread John Krasnay
On Fri, Nov 23, 2007 at 03:25:08PM +0100, Murat Yücel wrote: > Hi All > > Is it possible to have a different validation behavior for each button > on the form. > > For example > > > // first part > Firstname > Lastname > Address > > Submit Order > > // second part > Username > Password > > C

Re: Matt Raible's ApacheCon presentation

2007-11-16 Thread John Krasnay
On Fri, Nov 16, 2007 at 09:54:39AM -0800, Curtis Cooley wrote: > Michael Laccetti wrote: > > John Krasnay wrote: > >> To me this is the biggest con. I've worked with a number of Java devs > >> who have trouble grokking anonymous inner classes, which you must kno

Re: Matt Raible's ApacheCon presentation

2007-11-15 Thread John Krasnay
On Thu, Nov 15, 2007 at 11:35:02AM -0800, mraible wrote: > > Pros: > > * Great for Java developers, not web developers Not sure here who you mean by "web developers". If you mean HTML slingers I would think the absence of taglibs and logic in the templates would be an advantage. > * Tight bindi

Re: Regarding the use of AjaxFallbackDefaultDataTable

2007-11-08 Thread John Krasnay
On Wed, Nov 07, 2007 at 07:20:01PM -0800, Jeremy Lee wrote: > > Hi, > > I have a Search Form along with a AjaxFallbackDefaultDataTable on a page > that I am trying to create. How it is supposed to work is as follows: > > 1. User accesses page (only search form is visible) > 2. User enters search

Re: Multiple tags on a single base page?

2007-11-07 Thread John Krasnay
On Wed, Nov 07, 2007 at 07:14:01PM +0100, Korbinian Bachl wrote: > > Given these subtle problems with this approach, I admit I'm warming to > > the multiple extend/child idea. > > im oposite - if i have X extends in a page, whose extend should be > preferred (e.g: manipulating the head or a part

Re: Multiple tags on a single base page?

2007-11-07 Thread John Krasnay
On Wed, Nov 07, 2007 at 11:31:12AM +0100, Mats Norén wrote: > > Is the above statement really true considering that by adding abstract > methods to your page you defer the creation of the markup in just the > same way as the new proposed solution? > > BasePage.java > > public BasePage() { >

Re: Multiple tags on a single base page?

2007-11-06 Thread John Krasnay
On Tue, Nov 06, 2007 at 10:23:26PM +1100, Chris Colman wrote: > > In the panel example you give you must still provide all of the > structural markup surrounding your panel tags in EVERY page's markup in > your system and if you decide to make a system wide change of this > structural markup you m

Re: AbstractMethodError in logging

2007-10-23 Thread John Krasnay
On Tue, Oct 23, 2007 at 09:49:25AM -0700, Sasha O wrote: > Hello Wicket people -- > > Love the framework so far. > > Getting this message, have no idea how to deal with it: > > <<< > Exception in thread "ModificationWatcher Task" > java.lang.AbstractMethodError: > org.slf4j.impl.Log4jLoggerAda

Re: Displaying error messages

2007-10-21 Thread John Krasnay
On Sat, Oct 20, 2007 at 08:46:13PM -0700, mfs wrote: > > yeah...because i was wondering i would anyways have to define a seperate html > file for it anyways even if override it..right..? so might as well define > create my own panel.. > > Farhan. Actually, you don't *have* to supply new HTML whe

Re: Questions about GWT, JSF and Wicket

2007-09-25 Thread John Krasnay
On Tue, Sep 25, 2007 at 03:07:21AM -0700, Sam Hough wrote: > > Taking as a basic assumption that the reason we want GWT or Wicket is to do > almost all our logic in Java and Wicket is in full Ajax mode: > > 1) In GWT a lot of the UI logic can be moved to the client. e.g. If a user > changes focus

Re: ANN: beturtle.com launched

2007-09-20 Thread John Krasnay
On Thu, Sep 20, 2007 at 09:50:37PM -0400, Joe Toth wrote: > Hi Everyone, > > We just launched http://beTurtle.com/ - A 'green' social networking > site. If your interested in healthy living, sustainable practices, have > 'green' questions or just want to make some new friends, stop on by. Let > us

Re: Setting focus to a TextField

2007-09-20 Thread John Krasnay
On Thu, Sep 20, 2007 at 03:43:45PM -0700, Doug Leeper wrote: > > I know this is probably one of the most trivial things to do...but I am > stumped. No example that I found on the Wicket example site has shown this. > I know that AjaxRequestTarget#focusComponent plays a part in this but not > sur

Re: DropDownChoice Question

2007-09-20 Thread John Krasnay
On Thu, Sep 20, 2007 at 11:33:31AM -0400, Clay Lehman wrote: > And I want to be able to add a DropDownChoice to my form that is > something like this and have it automatically update Item.type in my > model: > > > > public class EditItemForm extends Form{ > > > >

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

Re: Question about best approach using Spring

2007-09-18 Thread John Krasnay
On Tue, Sep 18, 2007 at 04:56:14PM -0400, Rick Reumann wrote: > I've looked at the wiki post here about Spring: > http://cwiki.apache.org/WICKET/spring.html > > I'm curious about 'best approaches' and if you bare with me I'll explain my > concern, but let me first address what I'll want to do.. >

Re: Acegi (Spring Security)

2007-09-14 Thread John Krasnay
On Fri, Sep 14, 2007 at 04:05:47PM +0200, Ian Godman wrote: > Does anyone have any experience with Wicket/Acegi or know how Wicket deals > with Acegi integration? I need ideas of where to look. > > Ian Can you post the Spring configuration for your Acegi beans? jk -

Re: How to get a list of the connected users ?

2007-09-11 Thread John Krasnay
On Tue, Sep 11, 2007 at 11:24:38PM +0200, landry soules wrote: > Hello, > > I have to display a list of the connected users in a page of my app. I > know it sounds definitely dumb, but i don't know how to achieve this... > Users login to my site (i extended AuthenticatedWebApplication), and > th

<    1   2