Re: [Wicket-user] Fwd: [Wicket-develop] [ wicket-Bugs-1357506 ] Can't add label to WebMarkupContainer

2005-11-15 Thread Phil Kulak
Yea, that's why I figured it was a bug. wicket.markup.MarkupException: Unable to find component with id 'title' in [MarkupContainer [Component id = _extend, page = md.lhm.wicket.page.cart.ViewCart, path =

Re: [Wicket-user] Fwd: [Wicket-develop] [ wicket-Bugs-1357506 ] Can't add label to WebMarkupContainer

2005-11-15 Thread Phil Kulak
Here we go. Right now you'll get a RuntimeException. Change the ps to divs and it's all good. -Phil On 11/15/05, Phil Kulak [EMAIL PROTECTED] wrote: Yea, that's why I figured it was a bug. wicket.markup.MarkupException: Unable to find component with id 'title' in [MarkupContainer [Component

Re: [Wicket-user] Re: FormFeedbackIndicator

2005-11-14 Thread Phil Kulak
Are you adding the text field? On 11/10/05, Marco van de Haar [EMAIL PROTECTED] wrote: Typo, sorry, ofcourse I meant FormComponentFeedbackIndicator We're trying to test a TextField wit a FormFeedbackIndicator. but we keep getting a 'the following Components failed to render' error on

Re: [Wicket-user] Wait Screen

2005-11-14 Thread Phil Kulak
Meta refresh works and is a nice backup, but with AJAX you don't have to have the user looking at a flickering screen and you can put images and fancy things on the page. Here's how I do it. RedirectHandler.java Description: Binary data

Re: [Wicket-user] Re: Re: Re: My take on Spring integration

2005-11-14 Thread Phil Kulak
It's best to keep your app context beans in the Wicket application. See the wicket-phonebook example in wicket-stuff cvs. On 11/14/05, Maik Dobryn [EMAIL PROTECTED] wrote: Hi Igor, I'm very new to Wicket. The last days I tried to figure out how the Spring integration in Wicket works. There

Re: [Wicket-user] remove jsessionid in first page

2005-11-12 Thread Phil Kulak
App servers HAVE to put that in the first URL, because it's really the second (because of the redirect). The server doesn't know if the client is using cookies until the first request comes back, so for the first request it has to use cookies and url rewriting.

Re: [Wicket-user] ListView for navigation menu?

2005-11-02 Thread Phil Kulak
So you just need to know when the item you're rendering is the last in the list? Well, you have access to the list (getList()) and the item (item.getModelObject()), so it should be pretty straight forward, if not elegant, to find out if the item is the last in the list. On 11/1/05, Eelco

Re: [Wicket-user] ListView for navigation menu?

2005-11-02 Thread Phil Kulak
that differ from the underlying model. Eelco On 11/2/05, Phil Kulak [EMAIL PROTECTED] wrote: So you just need to know when the item you're rendering is the last in the list? Well, you have access to the list (getList()) and the item (item.getModelObject()), so it should be pretty straight

[Wicket-user] Model Serialization Question

2005-11-02 Thread Phil Kulak
Let's say I have this code on a page: add(new Label(label1, new Model() { public Object getObject(Component c) { // Return some interesting string... } }); add(new Label(label2, new Model() { public Object getObject(Component c) { // Return some other interesting string...

Re: [Wicket-user] Model Serialization Question

2005-11-02 Thread Phil Kulak
if you call setModelObject and your component is versioned, the model - since its anonymous - will serialize the page and take up a lot of space. better use an inner static class. -Igor On 11/2/05, Phil Kulak [EMAIL PROTECTED] wrote: Let's say I have this code on a page: add(new Label

Re: [Wicket-user] Problem with multiple submit buttons in form

2005-11-01 Thread Phil Kulak
The beauty of the @Override notation. :D On 10/29/05, Dan Gould [EMAIL PROTECTED] wrote: Thanks Andrew (and everyone) -- my dumb mistake. [I'm in the cleanup phase of the beta for my new app; I'll send a link to wicket-user pretty soon to try out.]

Re: [Wicket-user] Problem with multiple submit buttons in form

2005-10-29 Thread Phil Kulak
If that's really what's happening, then it's a bug. On 10/28/05, Dan Gould [EMAIL PROTECTED] wrote: I'm trying to create a form with multiple submit buttons follow the example on http://www.wicket-wiki.org.uk/wiki/index.php/Multiple_submit_buttons_in_form The buttons' onSubmit isn't getting

Re: [Wicket-user] replace ognl.

2005-10-28 Thread Phil Kulak
I like the idea of being able to plug in OGNL if you really need it. Now that I think about it, I've got a couple ChoiceRenderers that call functions using OGNL. Although, it probably would be very easy to rewrite these by just implementing the interface myself, and much more efficient.

Re: [Wicket-user] Best way to a handle SSL pages?

2005-10-27 Thread Phil Kulak
to a full url (but then with https) On 10/26/05, Phil Kulak [EMAIL PROTECTED] wrote: At first I tried sending a redirect to the URL in the request, but with https instead of http, but that breaks down if the user is redirected to the secure page since the url may include listener

Re: [Wicket-user] Best way to a handle SSL pages?

2005-10-27 Thread Phil Kulak
I'm trying to get something to work with: page.urlFor(IRedirectListener.class); but it just doesn't and I can't seem to figure out why not. On 10/27/05, Phil Kulak [EMAIL PROTECTED] wrote: Yea, but my problem is finding that full url because when checkAccess() is called, the url

Re: [Wicket-user] Best way to a handle SSL pages?

2005-10-27 Thread Phil Kulak
Kulak [EMAIL PROTECTED] wrote: I'm trying to get something to work with: page.urlFor(IRedirectListener.class); but it just doesn't and I can't seem to figure out why not. On 10/27/05, Phil Kulak [EMAIL PROTECTED] wrote: Yea, but my problem is finding that full url because when checkAccess

[Wicket-user] Best way to a handle SSL pages?

2005-10-26 Thread Phil Kulak
At first I tried sending a redirect to the URL in the request, but with https instead of http, but that breaks down if the user is redirected to the secure page since the url may include listener interfaces and what have you. I could still do this if there was some other way to get the url for a

Re: [Wicket-user] Markup not found

2005-10-25 Thread Phil Kulak
Just put this in an random markup file: span and you'll get the stack trace. ;) On 10/25/05, Nick Heudecker [EMAIL PROTECTED] wrote: I checked my old logs and wasn't able to find the stack trace. Apologies. On 10/25/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Yes I agree, but please

Re: [Wicket-user] Using elements other than span for panels

2005-10-18 Thread Phil Kulak
That's what's nice about the tag being visible by default. On 10/17/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Yep, totally. Anyting you like. If a component should /not/ be attached to a certain tag, it should tell you so by throwing an exception. Some of the formcomponents do this. Eelco

Re: [Wicket-user] Standalong Radio component ?

2005-10-18 Thread Phil Kulak
I agree, for what it's worth. On 10/17/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Sounds like a good one for core. Eelco --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and

Re: [Wicket-user] Re: Did we change resource lookups?

2005-10-17 Thread Phil Kulak
application level defaults for Validator messages. First we try to find it by path and in case it does not exist, it tries to find it by class name only. Please the conversation I had with Igor recently. Juergen On 10/14/05, Phil Kulak [EMAIL PROTECTED] wrote: And by we, I mean you. :D On 10/14

[Wicket-user] Did we change resource lookups?

2005-10-14 Thread Phil Kulak
It looks like resources are now being looked up only be class name, not path. --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl

[Wicket-user] Re: Did we change resource lookups?

2005-10-14 Thread Phil Kulak
And by we, I mean you. :D On 10/14/05, Phil Kulak [EMAIL PROTECTED] wrote: It looks like resources are now being looked up only be class name, not path. --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content

Re: [Wicket-user] Re: Standard for database integration? (Please!)

2005-10-13 Thread Phil Kulak
But DataView has NO dependencies. If you're worried about too many classes in the core, just add a DataView(String id, List list) constructor (using the ListAdapter) to DataView and get rid of ListView. On 10/11/05, Eelco Hillenius [EMAIL PROTECTED] wrote: I don't agree with that. You want the

Re: [Wicket-user] Re: Standard for database integration? (Please!)

2005-10-13 Thread Phil Kulak
Oh, well, I agree that the hibernate stuff should not be in the core. On 10/13/05, Nathan Hamblen [EMAIL PROTECTED] wrote: One thing I mean by integration is a built-in loadable detachable model for Hibernate mapped objects, like what's in contrib.data and contrib.database. After that, you

Re: [Wicket-user] Image is not displayed

2005-10-10 Thread Phil Kulak
Do you have a resource reference named images/delete.gif? Because if you're just trying to make a static link to a static image, there's no need to get Wicket involved: img src=images/delete.gif type=image width=12 height=12 alt=[Delete] border=0 valign=middle / On 10/10/05, Francis Amanfo

Re: [Wicket-user] Image is not displayed

2005-10-10 Thread Phil Kulak
/10/05, Phil Kulak [EMAIL PROTECTED] wrote: Do you have a resource reference named images/delete.gif? Because if you're just trying to make a static link to a static image, there's no need to get Wicket involved: img src=images/delete.gif type=image width=12 height=12 alt=[Delete

Re: [Wicket-user] xml ouput

2005-10-10 Thread Phil Kulak
I just found this and would like to do the same, however, it looks like Page now has three static methods. Is there now a better way to do this, or can I just return null from those three methods? On 9/24/05, pepone pepone [EMAIL PROTECTED] wrote: i open a bug with this at

Re: [Wicket-user] xml ouput

2005-10-10 Thread Phil Kulak
support any extension. It would not be possible anymore to have a dynamically designated markup type, though I don't think that will ever be a problem. Was that what you meant Phil? And others... what about this idea? Eelco On 10/10/05, Phil Kulak [EMAIL PROTECTED] wrote: I just found

Re: [Wicket-user] Page Lifecycle

2005-10-06 Thread Phil Kulak
There are two ways to get around this problem. Both work okay, but they both have a certain stink to them. The first is to make everything a model. That way, the data is only referenced on render and there are no null pointers at that point. The other is to have an init method that builds the

[Wicket-user] Anyway to make the url change?

2005-10-03 Thread Phil Kulak
I've got a page that is versioned, but the models never change, so neither does the URL. This means that the browser never refreshes the page and changes are not shown to the user. Is there anyway I can get that URL to change short of adding a fake model somewhere and changing it?

[Wicket-user] Access the current request from ISessionFactory#newSession()?

2005-10-03 Thread Phil Kulak
Is this possible? I would like to persist my WebSession implementation, but to get the right one back out of the database when the user returns, I need access to a cookie in the request. Thanks! --- This SF.Net email is sponsored by: Power

[Wicket-user] Re: Access the current request from ISessionFactory#newSession()?

2005-10-03 Thread Phil Kulak
Eh, nevermind. The more I think about this, the more I think it's just better to delegate to a new persistant session from my Wicket session. On 10/3/05, Phil Kulak [EMAIL PROTECTED] wrote: Is this possible? I would like to persist my WebSession implementation, but to get the right one back out

Re: [Wicket-user] Anyway to make the url change?

2005-10-03 Thread Phil Kulak
That will work. Thanks! On 10/3/05, Michael Jouravlev [EMAIL PROTECTED] wrote: You don't like no-cache, no-store cache-control header? On 10/3/05, Phil Kulak [EMAIL PROTECTED] wrote: I've got a page that is versioned, but the models never change, so neither does the URL. This means

Re: [Wicket-user] How to set and get cookies?

2005-10-03 Thread Phil Kulak
, Phil Kulak [EMAIL PROTECTED] wrote: I used to just get the HttpServletResponse and HttpServletRequest, but it looks like that's no longer possible since the response won't necessarily be a WebResponse. Is there a better way to do

Re: [Wicket-user] How to set and get cookies?

2005-10-03 Thread Phil Kulak
No, you can't actually. Sometimes it's a StringResponse. --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl

Re: [Wicket-user] How to set and get cookies?

2005-10-03 Thread Phil Kulak
and of course any user can use its own response object. only at the end of the cycle you can be sure: onEndRequests. Juergen On 10/4/05, Phil Kulak [EMAIL PROTECTED] wrote: No, you can't actually. Sometimes it's a StringResponse

Re: [Wicket-user] Image inside Border doesn't work correctly

2005-10-03 Thread Phil Kulak
Well, Wicket defines the correct place as the same package as the component. On 10/3/05, Ari Suutari [EMAIL PROTECTED] wrote: Hi, Assume following html: span wicket:id=border img wicket:id=img src=test.png/ /span Now, If the application is in package syncrontech.test except that

Re: [Wicket-user] Question about pageable grids

2005-10-02 Thread Phil Kulak
Yes, they only load the data for the current page. Of course, you still have to be careful with some databases. SQL Server (and actually ANSI SQL), for example, does not have any way to return results from the middle of a SELECT, so Hibernate will do a SELECT TOP, then only show you the results

Re: [Wicket-user] list view sorting consuming all heap space

2005-09-26 Thread Phil Kulak
Are you using a model now and doing the lookup there? If you just downloaded the new code and didn't change you code to use the new API, nothing will change. I made it all backwards compatible. --- SF.Net email is sponsored by: Tame your

Re: [Wicket-user] list view sorting consuming all heap space

2005-09-26 Thread Phil Kulak
a pretty easy trap to fall into; if a view object sneaks into a model somehow, your session is headed for disaster. Wouldn't that mean you can never have an anonymous subclass of Model in any kind of Component? I feel like I've seen that all over the place. Nathan Phil Kulak wrote

Re: [Wicket-user] list view sorting consuming all heap space

2005-09-20 Thread Phil Kulak
Sorry about that. I totally spaced this thread because it was called list view. Anyway, I added constructors to HibernateDataProvider and HibernateModel that take IModels for the IHibernateDao for the case when you want to do a lookup. For example: IModel lookup = new Model() { public Object

Re: [Wicket-user] Multipart form hides parameters

2005-09-20 Thread Phil Kulak
So now we don't have to even set multipart to true in the class? Hmm... that's pretty elegant. Especially since a short time ago it was an entirely different subclass. On 9/20/05, Scott Sauyet [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: Found it. Fix it by calling 'setMultipart(true)' in

Re: [Wicket-user] Resource reference scoped to the current session?

2005-09-15 Thread Phil Kulak
. If there was a way to have it be myFile.pdf, then there would be no confusion. Does that make sense? On 9/15/05, Johan Compagner [EMAIL PROTECTED] wrote: i would say use a ResourceLink for that. Then the resource is only useable for that session. On 9/15/05, Phil Kulak [EMAIL PROTECTED] wrote

Re: [Wicket-user] setDefaultFormProcessing()

2005-09-14 Thread Phil Kulak
Currently if a button is found, it's onSubmit is called instead of the form's. Why would you want to take the button's logic out of the button? On 9/14/05, Dipu [EMAIL PROTECTED] wrote: I am using the wicket version 1.1-b4, when setDefaultFormProcessing() is set to false, the form is not

Re: [Wicket-user] Why is FileResourceStream final?

2005-09-14 Thread Phil Kulak
And we see how easilly it can all be taken away again. :D On 9/14/05, Johan Compagner [EMAIL PROTECTED] wrote: i think we should jonathan look at the FileResourceStream now. I think he can think of some methods to make final now ;) lik getContentType() ;) On 9/14/05, Eelco Hillenius

Re: [Wicket-user] GridPanel

2005-09-14 Thread Phil Kulak
No, don't use a ListView, use a DataView. You can do what you want with the GridPanel, however, by implementing your own IColumn. That's a bit of a pain though. On 9/14/05, Troy MacNeil [EMAIL PROTECTED] wrote: Is there an easy way to add Links to a GridPanel? I'd like to change the edit button

Re: [Wicket-user] ListItemModel update by index unsafe?

2005-09-14 Thread Phil Kulak
This is one of the main reason that Igor made DataView. On 9/14/05, Johan Compagner [EMAIL PROTECTED] wrote: Updating by index works fine as long as the List behind it never changes. So if you know 100% sure that over request the list will not change (add/remove/order) then you can use

Re: [Wicket-user] GridPanel

2005-09-14 Thread Phil Kulak
, Phil Kulak wrote: No, don't use a ListView, use a DataView. You can do what you want with the GridPanel, however, by implementing your own IColumn. That's a bit of a pain though. On 9/14/05, Troy MacNeil [EMAIL PROTECTED] wrote: Is there an easy way to add Links to a GridPanel? I'd like

[Wicket-user] Resource reference scoped to the current session?

2005-09-14 Thread Phil Kulak
I need to allow users to download files, but they (the files) are secure and must only be viewed by the user I give the link to. I've been using resources, but that has the consequence of the files coming out with the name app and no extension. Does anyone know of a way I can get the utility of a

Re: [Wicket-user] Downloading files using Wicket

2005-09-13 Thread Phil Kulak
Check out FileResourceStream. Create one of those from your file, then you can create a ResourceLink directly to it. Or, if you don't want to create the resource for every user, you can wrap it in a resource reference and link to that instead. On 9/13/05, Scott Sauyet [EMAIL PROTECTED] wrote: I

Re: [Wicket-user] Why is FileResourceStream final?

2005-09-13 Thread Phil Kulak
haha, I should have just asked. I've been using my own non-final FileResourceStream for months now. :D On 9/13/05, Eelco Hillenius [EMAIL PROTECTED] wrote: I made it non-final. Eelco On 9/13/05, Scott Sauyet [EMAIL PROTECTED] wrote: Is there a good reason to have FileResourceStream

Re: [Wicket-user] dynamic list of Links

2005-09-12 Thread Phil Kulak
I would use a ListView that took a list of these guys: interface LinkOnClick { public void onClick(); } Then just call the onClick from inside each Link's onClick. On 9/12/05, Johan Compagner [EMAIL PROTECTED] wrote: why must there be dynamic wicket ids? why do you need those? How would

Re: [Wicket-user] dynamic list of Links

2005-09-12 Thread Phil Kulak
Oh, better make the interface this: interface LinkOnClick { public void onClick(); public String linkText(); // Text for the label in the link. } On 9/12/05, Phil Kulak [EMAIL PROTECTED] wrote: I would use a ListView that took a list of these guys: interface LinkOnClick { public void

Re: [Wicket-user] How to disable a form component ?

2005-09-12 Thread Phil Kulak
add(new TextField(tf) .add(new AttributeModifier(disable, true, new Model(disable; Is that what you're looking for? I don't have to API by me, but that should be close. On 9/12/05, Ingram Chen [EMAIL PROTECTED] wrote: Is there any way to disable form component in java code ? input

Re: [Wicket-user] Dynamic Forwards With Wicket

2005-09-07 Thread Phil Kulak
I would just create an inner class for the model object: private static class FormObject { public MyObject myDomainObject = new MyObject();; public String nextUrl; } and then something like: add(new MyForm(form, new CompoundPropertyModel(new FormObject(; On 9/7/05, Nick Heudecker

Re: [Wicket-user] new autocomplete components

2005-09-05 Thread Phil Kulak
Hey there, Ryan. It looks like your stuff broke during the Ajax refactor. I thought I took care of it by getting rid of the NPEs, but now formComponent.getValue() on line 98 of AjaxAutocompleteTextField always returns the empty string. I'm not even sure how that whole block of code is working, so

Re: [Wicket-user] Style of development (many web pages vs many panels)

2005-09-05 Thread Phil Kulak
I like to stay as state oriented as possible. Mainly because that way I can take advantage of bookmarkable pages much more. Also for the reasons Eelco stated. On 9/5/05, Eelco Hillenius [EMAIL PROTECTED] wrote: I prefer to work with pages. With this approach, you can still reuse panels

Re: [Wicket-user] new autocomplete components

2005-09-04 Thread Phil Kulak
Very impressive! Thanks for contributing this. I see myself using it a lot in the future. Is there anyway to make CustomLayoutAjaxAutocompleteTextField take a panel instead of an entire page? Maybe make the class name a bit longer too. ;) On 9/4/05, Ryan Sonnek [EMAIL PROTECTED] wrote: Hey

Re: [Wicket-user] No RequestCycle on ResourceReference.newResource()?

2005-09-02 Thread Phil Kulak
by the way, you should do that with DynamicByteArrayResource and then do you thing on getData() johan Phil Kulak wrote: I'm trying to lazy-load some data from my database in ResourceReference.newResource(), but I can't get to any of my DAOs because for some reason RequestCycle.get

Re: [Wicket-user] No RequestCycle on ResourceReference.newResource()?

2005-09-02 Thread Phil Kulak
: public class MyResourceReference extends ResourceReference { public Resource newResource() { return new DynamicByteArrayResource() { getData() { // do a bunch of database lookups and things... } } } } Phil Kulak wrote: I need

Re: [Wicket-user] Integrating FCKeditor

2005-09-01 Thread Phil Kulak
FCK tends to spit out nicer HTML and it's configuration is easier, at least when I tried both of them a while back. -Phil On 9/1/05, Eelco Hillenius [EMAIL PROTECTED] wrote: That would be a very nice component to have in extensions. So if you make it really nice... I think an API like

[Wicket-user] RequestCycle.onRuntimeException(Page, RuntimeException)

2005-08-30 Thread Phil Kulak
Was this method moved or removed? --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams *

Re: [Wicket-user] RequestCycle.onRuntimeException(Page, RuntimeException)

2005-08-30 Thread Phil Kulak
No no, I like it better this way. For some reason I just posted here instead of doing a text search. :D On 8/30/05, Johan Compagner [EMAIL PROTECTED] wrote: can revert it if you want? ;) Phil Kulak wrote: Coolness, thanks. On 8/30/05, Johan Compagner [EMAIL PROTECTED] wrote: yes

Re: [Wicket-user] Re: Setting of hasErrorMessage on FormComponents

2005-08-30 Thread Phil Kulak
DataView handles all of that transparently, so it may be worth looking into. On 8/30/05, Eelco Hillenius [EMAIL PROTECTED] wrote: We found what it is. Quite logical actually. By default, optimizeItemRemoval is set to false, which means that ListView replaces all child components by new

Re: [Wicket-user] Re: Setting of hasErrorMessage on FormComponents

2005-08-30 Thread Phil Kulak
Oh, looks like you have to explicitly set userOptimizeItemRemoval now. However, when you do that, it is all handled for you. Take a look at populateItemsOIR(). On 8/30/05, Johan Compagner [EMAIL PROTECTED] wrote: how so? private void populateItems() { final IDataProvider

Re: [Wicket-user] Registering dynamically added controls

2005-08-29 Thread Phil Kulak
public void onSubmit() { MapString, FileItem files = ((MultipartWebRequest) getRequest()).getFiles(); // do something with the files... } Badda bing. :) On 8/29/05, Scott Sauyet [EMAIL PROTECTED] wrote: Sorry, I'm still missing some of the basics here, so this may be a dumb question.

Re: [Wicket-user] How do I unit test interactively without container ?

2005-08-28 Thread Phil Kulak
Jetty + JWebUnit is a really nice solution for me at least. On 8/28/05, Martijn Dashorst [EMAIL PROTECTED] wrote: In a previous project we used the Jetty embedded servlet container, together with a TestSetUp decorator (the same we use in the Wicket examples), and that kept the tests running

Re: [Wicket-user] Rich Text Editing Controls...

2005-08-28 Thread Phil Kulak
I like FCK, but support for any one of them would be very trivial. All you would have to do is add a couple lines of JS to the header and maybe add an attribute to the tag. On 8/28/05, Kenneth Foo [EMAIL PROTECTED] wrote: We've used TinyMCE with with some good results.

Re: [Wicket-user] TypeValidator doesn't check if a date is valid

2005-08-26 Thread Phil Kulak
No, it's DateFormat.setLenient(boolean lenient). On 8/26/05, Nick Heudecker [EMAIL PROTECTED] wrote: I think the leniency is in Calendar, not DateFormat. On 8/25/05, Eelco Hillenius [EMAIL PROTECTED] wrote: That's probably the lenient feature of DateFormat. Thought that was off by

Re: [Wicket-user] Poolable pages

2005-08-26 Thread Phil Kulak
Pooling has some huge drawbacks since it really goes against the language itself. I think it's good for things like DB connections that really are expensive, but for pages? They're just objects. On 8/26/05, Johan Compagner [EMAIL PROTECTED] wrote: ahh ok now i get also eelco's response

Re: [Wicket-user] Cayenne advantages

2005-08-26 Thread Phil Kulak
Gili, don't think that just because you are not directly insulting someone that they have no right to be angry with you and possibly say something to you that you find insulting. In your mind open source developers have an obligation to see that you are properly educated about all aspects of their

Re: [Wicket-user] Re: expand emty tags

2005-08-26 Thread Phil Kulak
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Kulak Sent: Thursday, August 25, 2005 6:37 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] expand emty tags Jonathan told me it was because nothing would be previewed in a WYSIWYG editor, so Wicket displayed

Re: [Wicket-user] Re: expand emty tags

2005-08-26 Thread Phil Kulak
Hmm... it would make sense if there were a distinction between the empty string and null in XML. You're probably right. On 8/26/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: hmm? the body is isn't it? On 8/26/05, Phil Kulak [EMAIL PROTECTED] wrote: Yea, but span/span also has no body

Re: [Wicket-user] TypeValidator doesn't check if a date is valid

2005-08-26 Thread Phil Kulak
haha, I stand corrected. :) On 8/26/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Actually, it's both. It's on DateFormat, as that is what we use in Wicket. However DateFormat uses an instance of Calendar: public void setLenient(boolean lenient) {

Re: [Wicket-user] expand emty tags

2005-08-25 Thread Phil Kulak
This has been discussed before. Long story short, it's a feature not a bug. ;) On 8/25/05, pepone pepone [EMAIL PROTECTED] wrote: Hello when i write a component and put a markup tag like this span wicket:id=lblName/ the value of the tag is not render it only run it is writed in this way

Re: [Wicket-user] expand emty tags

2005-08-25 Thread Phil Kulak
. :) On 8/25/05, Phil Kulak [EMAIL PROTECTED] wrote: This has been discussed before. Long story short, it's a feature not a bug. ;) On 8/25/05, pepone pepone [EMAIL PROTECTED] wrote: Hello when i write a component and put a markup tag like this span wicket:id=lblName

Re: [Wicket-user] ajax autocomplete text field

2005-08-23 Thread Phil Kulak
I updated your source for the latest Wicket build and moved the stylesheet into the header. Do you mind if I commit that? On 8/22/05, Phil Kulak [EMAIL PROTECTED] wrote: I would love it if you committed this somewhere or posted a formal jar that I could play with. It would be nice if Wicket had

Re: [Wicket-user] Inline error messages

2005-08-23 Thread Phil Kulak
Check out FormComponentFeedbackBorder, or you can do what I do and just make your own markup container like so (untested): public class ErrorIndicator extends WebMarkupContainer { FormComponent component; public ErrorIndicator(String id, FormComponent component) { super(id);

Re: [Wicket-user] CSS and visibility in DreamWeaver

2005-08-23 Thread Phil Kulak
What I've done is have all my HTML files in one folder (there was a topic on that recently) and then just copy stylesheets and images over to that folder for previewing. It's not very elegant, but the alternative is to have every single image and stylesheet handled by Wicket, which is a bit of a

Re: [Wicket-user] Kickstart Problem

2005-08-23 Thread Phil Kulak
Is that label in a form? On 8/23/05, Eric Rodriguez [EMAIL PROTECTED] wrote: First of all, I apologize for the beginner question. I am fairly new to Java and Wicket. I have download the Wicket Kickstart 1.0.1 today and I am having some trouble. The default Kickstart app worked fine,

Re: [Wicket-user] Hibernate support in Wicket-Stuff

2005-08-22 Thread Phil Kulak
that, we've no solution for a pre-1.5 user and I've not concept of what's involved to make a unannotated equivalent of an Annotated solution, if you see what I mean... /Gwyn On 22/08/05, Phil Kulak [EMAIL PROTECTED] wrote: I think the best place for a user to start is with the dataview

Re: [Wicket-user] ajax autocomplete text field

2005-08-22 Thread Phil Kulak
I would love it if you committed this somewhere or posted a formal jar that I could play with. It would be nice if Wicket had a good auto complete field and yours is a better start then what I came up with last week, I believe. On 8/22/05, Martijn Dashorst [EMAIL PROTECTED] wrote: Hi Ryan, I

Re: [Wicket-user] Hibernate support in Wicket-Stuff

2005-08-21 Thread Phil Kulak
I think the best place for a user to start is with the dataview and hibernate3 projects. I'm refactoring the hibernate3 examples as we speek to use that combination. On 8/21/05, Gwyn Evans [EMAIL PROTECTED] wrote: This is on the Wiki as Talk:Wicket-Stuff

Re: [Wicket-user] Spring Integration

2005-08-19 Thread Phil Kulak
I'd like to participate in that. I've done a couple projects now with Spring + Wicket. On 8/19/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Eelco Hillenius changed the world a bit at a time by saying on 8/19/2005 3:06 PM :# Don't know yet :) Lets see if there are more people that want

Re: [Wicket-user] Getting started with pageable data from DB?

2005-08-18 Thread Phil Kulak
What I would do is use a PageableDataView (wicket-contrib-dataview) and a HibernateDataProvider or HIbernateCriteriaProvider from the wicket-contrib-hibernate3 project. On 8/18/05, Gwyn Evans [EMAIL PROTECTED] wrote: Can anyone suggest where would be a good place to start in order to be able to

Re: [Wicket-user] Using DropDownChoice and wantOnSelectionChangedNotifications=true clean other form components

2005-08-18 Thread Phil Kulak
I think AJAX is the solution here. On 8/18/05, Johan Compagner [EMAIL PROTECTED] wrote: yes this is a problem that i am also looking at. We should do a form post instead of making getting a url.. But this is not so easy at the moment. Validators of the form shouldn't run, And i don't think

Re: [Wicket-user] Problem with redirectToInterceptPage

2005-08-18 Thread Phil Kulak
Don't set the redirect page if you're calling redirectToInterceptPage(). On 8/18/05, David Liebeherr [EMAIL PROTECTED] wrote: Hi all! I have a problem with the redirectToInterceptPage. I have this: listItem.add(new Link(delete) { public void onClick() {

Re: [Wicket-user] Using DropDownChoice and wantOnSelectionChangedNotifications=true clean other form components

2005-08-18 Thread Phil Kulak
] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Kulak Sent: Thursday, August 18, 2005 7:15 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Using DropDownChoice and wantOnSelectionChangedNotifications=true clean other form components I think AJAX is the solution here

Re: [Wicket-user] getParent recursively?

2005-08-17 Thread Phil Kulak
MyForm.this.getModelObject(); Still three steps though. Couldn't beat Igor's. :) And that will only work if they are nested and non static, of course. On 8/16/05, Joshua Lim [EMAIL PROTECTED] wrote: I like Igor's method a little better ;) but thanks for the suggestion On 8/17/05, Gili

Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Phil Kulak
I don't like the idea of components creating their own markup instead of taking it from the markup stream. In fact, I'd really like to see components like RadioChoice and DropDownChoice operate more like Loop or ListView then how they do now. I think that having a renderer would be a step back. I

Re: [Wicket-user] Re: Updating multiple database records with one form submit

2005-08-17 Thread Phil Kulak
Check out the user's guide as well. There's some very good documentation on models in there. On 8/17/05, Martijn Dashorst [EMAIL PROTECTED] wrote: This just works, but not totally as you might expect... public MyForm(String id, FooBar foobar) { super(id, new

Re: [Wicket-user] Where is IUniqueIdProvider?

2005-08-16 Thread Phil Kulak
My bad. I was a little behind the curve on Igor's changes. It's fixed now. On 8/15/05, Gili [EMAIL PROTECTED] wrote: I can clearly see it here: http://cvs.sourceforge.net/viewcvs.py/wicket-stuff/wicket-contrib-dataview/src/wicket/contrib/dataview/IUniqueIdProvider.java?rev=1.1view=log

Re: [Wicket-user] ColumnedDataProvider startIndex problems

2005-08-16 Thread Phil Kulak
Knock yourself out. On 8/16/05, Gili [EMAIL PROTECTED] wrote: There is no way to offset the ColumnedDataProvider beginning index. This functionality doesn't really belong here but until the refactor of contrib-data I don't think there is a cleaner way. So I'll be adding

Re: [Wicket-user] Hibernate. Unique field in GridPanel.

2005-08-16 Thread Phil Kulak
); add(gridPanel); Phil Kulak wrote: Hmm.. there's another reason why I don't like coarse-grained components like that. Since the component is doing all the saving and updating, there's not a whole lot you can do. On 8/15/05, Oleg Marchuk [EMAIL PROTECTED] wrote: Hello. Today I

Re: [Wicket-user] Updating multiple database records with one form submit

2005-08-16 Thread Phil Kulak
If you used a PropertyModel or CompoundPropertyModel, then that's all you have to do. When the form is submitted, the properties will be updated if the form passes validation. On 8/16/05, Anders Peterson [EMAIL PROTECTED] wrote: Beginner here! Stuck on a problem: 1) I get all (4) records

Re: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-15 Thread Phil Kulak
So as far as the patch goes, I like the idea but maybe we should just do model.getModelObject().equals(model2.getModelObject()) as opposed to model.equals(model2). You can get yourself into some nasty N + 1 select problems like that if you're not careful. I think it's a bad idea to do an

Re: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-15 Thread Phil Kulak
you render. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Kulak Sent: Sunday, August 14, 2005 11:52 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] [Wicket] DataView and optimized item removal So

Re: [Wicket-user] Hibernate. Unique field in GridPanel.

2005-08-15 Thread Phil Kulak
Hmm.. there's another reason why I don't like coarse-grained components like that. Since the component is doing all the saving and updating, there's not a whole lot you can do. On 8/15/05, Oleg Marchuk [EMAIL PROTECTED] wrote: Hello. Today I get cdapp example and play with it. I set one of

[Wicket-user] Re: How can I link to a resource stream?

2005-08-15 Thread Phil Kulak
I would really appreciate it if someone could let me know if this is possible. If it's not currently possible, I'd be happy to submit a patch for whatever solution I come up with. I'd like to not resort to a servlet if I can help it. On 8/15/05, Phil Kulak [EMAIL PROTECTED] wrote: So I've got

  1   2   3   >