Re: [Wicket-user] Custom Message Resolver

2007-05-21 Thread Scott Sauyet
I wrote: I see the experimental class WicketMessageTagHandler and note that it's disabled by default. If I were to mimic this class for my own custom filter, is there any way I could go about registering it without hacking into MarkupParser? Or is there some simpler way to do this? Okay,

Re: [Wicket-user] Custom Message Resolver

2007-05-18 Thread Scott Sauyet
Juergen Donnerstag wrote: Wicket is very flexible and modular. You can write your own MyWicketMessageResolver and register it with the application. How to do it? Just see how WicketMessageResolver is registered. It is realy simple. It looks straightforward enough. I will look into it. I

Re: [Wicket-user] Custom Message Resolver

2007-05-18 Thread Scott Sauyet
Juergen Donnerstag wrote: On 5/17/07, Scott Sauyet [EMAIL PROTECTED] wrote: It looks like I will be using Wicket for my next project, but I ran into an interesting little issue that I'm not sure how to solve. How can I allow templates that have something like wicket:message's included

[Wicket-user] Custom Message Resolver

2007-05-17 Thread Scott Sauyet
I did warn you [1] I'd be back! :-) It looks like I will be using Wicket for my next project, but I ran into an interesting little issue that I'm not sure how to solve. How can I allow templates that have something like wicket:message's included but with my own custom resolver? The

[Wicket-user] First-time Wicket AJAX question

2007-04-19 Thread Scott Sauyet
Hello again everyone, I haven't been around in a while. We're considering using Wicket for a new project that will have a fair bit of Ajax voodoo. I've done Ajax before in other environments, but not in Wicket. I see the Ajax Counter primer [1] but I'm wondering what other references might

[Wicket-user] Bug in Ajax Counter sample code?

2007-04-19 Thread Scott Sauyet
There seems to be a bug in the Ajax Counter sample code [1]. add(new AjaxFallbackLink(link) { public void onClick(AjaxRequestTarget target) { target.addComponent(label); } }); This works fine for me when Javascript is turned on, but

Re: [Wicket-user] First-time Wicket AJAX question

2007-04-19 Thread Scott Sauyet
Igor Vaynberg wrote: our ajax support is very transparent so there isnt that much to it. really the best place is to look at the wicket-examples code, there is a whole ajax section that shows the most common uses. Thanks. I've started looking at that. And I'm sure I will have more

Re: [Wicket-user] First-time Wicket AJAX question

2007-04-19 Thread Scott Sauyet
Igor Vaynberg wrote: as long as you use ajaxfallback* stuff we provide your page should function exactly the same with or without ajax. most ajax components also provide factories for link components you can override so you can make them use ajaxfallbacklink. al has been doing some very

Re: [Wicket-user] Customizing Paging Navigation

2006-11-02 Thread Scott Sauyet
Is there a simple example around of how PagingNavigation can be customized? Could you be more specific as to what you want to customize? The PagingNavigation Javadocs say that I can give my own navigation markup and code by overwriting poplulateItem(ListItem). It seems that my own

[Wicket-user] Customizing Paging Navigation

2006-11-01 Thread Scott Sauyet
Is there a simple example around of how PagingNavigation can be customized? I can't figure out what I'm doing wrong. I *think* I'm following the example in the Javadocs, but my markup never matches my code. If anyone has a live example floating around that I could examine, I would appreciate

Re: [Wicket-user] VOTE: how should localized attributes work?

2006-08-03 Thread Scott Sauyet
If you want the opinion of non-committers, here's a strong preference for 2 [X] The thought of seeing the wicket... text in preview mode really goes against the grain to me. -- Scott Eelco Hillenius wrote: For localized attributes - so that you don't have to attach attribute modifiers

Re: [Wicket-user] apache wicket?

2006-07-29 Thread Scott Sauyet
Igor Vaynberg wrote: the core wicket team has decided to join the ASF and make wicket a top level apache project (wicket.apache.org http://wicket.apache.org) That's very exciting! Good luck with the process. I think this can only help. I'm embarking on a fairly large web-app in JSF. I

Re: [Wicket-user] Connecting to a document fragment through a PageLink

2006-06-10 Thread Scott Sauyet
Eelco Hillenius wrote: Somewhere I have to start naming these intermediate objects; the end of my statements are starting to look like Lisp code! :-) Of course, you don't *have* to use annonymous classes. Make a reusable class, and see how much more readable your code will be :) I know

Re: [Wicket-user] Connecting to a document fragment through a PageLink

2006-06-09 Thread Scott Sauyet
Eelco Hillenius wrote: Basically, you can make a custom link that reads the href attribute (href=#anAnchor), and that appends that attribute to the URL. Something like this: Thank you. I will take a look at it as soon as I can. Your code doesn't work out of the box for me, as I'm right now

Re: [Wicket-user] Connecting to a document fragment through a PageLink

2006-06-09 Thread Scott Sauyet
Eelco Hillenius wrote: I think it is quite easy? If we implement that feature request it would be easier as it would be build in. But so many hours in a day... I actually forgot part of the code: [ ... ] Okay, now it was easy! [1] Thanks. Here's what I did: contents.add(new

[Wicket-user] Connecting to a document fragment through a PageLink

2006-06-08 Thread Scott Sauyet
I would like my PageLink to connect to a specific location in the called page, e.g., to http://localhost:8080/myapp/?path=1#my-fragment Is this doable? I've been away from Wicket for a little while and think I've forgotten something simple. -- Scott

[Wicket-user] ChoiceRenderer problem - although probably a problem with my brain.

2006-03-01 Thread Scott Sauyet
Oh, I'm glad to be back to Wicket. I've been off on a Struts project for several months, and am so happy to be using simple Wicket again! But I'm having a problem with my brain. This should be easy to figure out, but I keep getting stuck. Maybe it's the late nights... I'm trying to add a

Re: [Wicket-user] ChoiceRenderer problem - although probably a problem with my brain.

2006-03-01 Thread Scott Sauyet
Igor Vaynberg wrote: your list consists of Items, but the model object that the choice component is bound to is a String. wicket expects the model object's type be the same as the item type in the list, thus the problem. I told you my brain was getting fuzzy. [ ...] either change your

Re: [Wicket-user] ChoiceRenderer problem - although probably a problem with my brain.

2006-03-01 Thread Scott Sauyet
Igor Vaynberg wrote: i dont know of any examples like that. what it entails is something like this wrappermodel extends model { private IModel delegate; [ ... ] Yeah, that sounds like a lot of work, but maybe I'm missing something. or you can do the inverse, implement your own

Re: [Wicket-user] How can I separate the java and html?

2006-01-17 Thread Scott Sauyet
Ittay Dror wrote: How can I separate the java class files and the html files: in different directories? with different names? Martijn and Igor have both responded, with good suggestions, but I do something a little different. I keep the default naming convention, but my source files are in

Re: [Wicket-user] How to separate java and html

2006-01-02 Thread Scott Sauyet
Jesper Preuss wrote: I would like to be able to separate the java code and the html layout. So I choose where the html lies for each html page. This is because I would be able to let a html designer make the html and a programmer to make the code. Is this possible or not? Juergen pointed out

Re: [Wicket-user] Wicket, Spring and Hibernate

2005-12-07 Thread Scott Sauyet
Igor Vaynberg wrote: this is not the greatest time to check out wicket-phonebook HEAD from CVS as i am in a process of refactoring it and the wicket-extension-repeater packages it uses. Ahh, that explains why I'm having problems compiling it. And why I'm not finding the extension package.

Re: [Wicket-user] wicket:id on body tag

2005-11-23 Thread Scott Sauyet
== Scott Sauyet [EMAIL PROTECTED] == Juergen Donnerstag [EMAIL PROTECTED] Could someone point me to where in the source code this happens? I don't really know my way around Wicket internals yet, but I'd like to see this, and it's not in WebPage, which was my first guess. BodyOnLoadHandler

Re: [Wicket-user] wicket:id on body tag

2005-11-23 Thread Scott Sauyet
== Juergen Donnerstag [EMAIL PROTECTED] == Scott Sauyet [EMAIL PROTECTED] RFE: allow wicket:id on body tag which currently is not possible due to wickets body onLoad handling. Okay. It's at http://tinyurl.com/7azmc [ ... ] I'll look to see if I can create a patch for this. Okay, a patch

Re: [Wicket-user] wicket:id on body tag

2005-11-23 Thread Scott Sauyet
I don't know if my use-case is enough of a reason to clutter up the interface of WebPage. I also don't know if there is a reason to widen this facility beyond adding AttributeModifiers. But for what it's worth, here is my simple suggestion. Honestly, I'm not in favour of cluttering the

Re: [Wicket-user] wicket:id on body tag

2005-11-23 Thread Scott Sauyet
wicket.markup.html; + +import wicket.AttributeModifier; + + +/** + * An interface to be implemented by components which are able to add + * information to the body tag associated with the markup. + * + * @author Scott Sauyet + */ +public interface IBodyTagContributor

[Wicket-user] wicket:id on body tag

2005-11-22 Thread Scott Sauyet
Why does the BODY allow an unused wicket:id attribute? I was trying to implement an enhancement to my markup-inheritance-based pages to add a class attribute to the body tag in order to make it a little easier to apply my CSS. I added 'wicket:id=body' to the body tag, and started adding a

Re: [Wicket-user] wicket:id on body tag

2005-11-22 Thread Scott Sauyet
== Scott Sauyet [EMAIL PROTECTED] == Juergen Donnerstag [EMAIL PROTECTED] Thanks for the info, Juergen. So my first question is why don't I get an exception when there is a wicket:id attribute on the BODY tag and no corresponding Component on the Page? It all has to do with wicket:head

Re: [Wicket-user] There must be some docs somewhere?

2005-11-17 Thread Scott Sauyet
Martijn Dashorst wrote: But how do we know what kind of documentation to write when we don't know what you are looking for? I think part of the problem is that the documentation is not as easily found as I for one would like. For instance, from the front page of the Wicket site, if I want

Re: [Wicket-user] There must be some docs somewhere?

2005-11-17 Thread Scott Sauyet
Igor Vaynberg wrote: Or take the whole CVS issue. We all know that Sourceforge's CVS can get very annoying. I've been able to download the wicket-contrib modules that I know about, but I've never been able to get a comprehensive list of such modules. SF always tells me that

[Wicket-user] Markup Inheritance... why does wicket:child have to be empty?

2005-11-15 Thread Scott Sauyet
I'm using Wicket 1.1, and am trying Markup Inheritance for the first time. I'm confused as to why wicket:child must be empty. This: wicket:child/ works fine, but this: wicket:child div id=mainpMain content here/p/div /wicket:child fails with

Re: [Wicket-user] Markup Inheritance... why does wicket:child have to be empty?

2005-11-15 Thread Scott Sauyet
= Juergen Donnerstag [EMAIL PROTECTED] = Scott Sauyet [EMAIL PROTECTED] Is there some good reason that wicket:child can't have a disposable body in the markup to enhance previewability? No specific reason. Please open an RFE. Thanks Okay: 1357511: http://tinyurl.com/exa9o Thanks

Re: [Wicket-user] Re: Keeping images outside of WEB-INF

2005-11-15 Thread Scott Sauyet
= James Yong [EMAIL PROTECTED] = Johan Compagner jcompagner at gmail.com If you can do that then i would just have the img tag directly in the html with a wicket id and then you use a label componet which only has a attribute modifier to set the src attribute. That looks to me as the

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

2005-11-15 Thread Scott Sauyet
Phil Kulak wrote: Here we go. Right now you'll get a RuntimeException. Change the ps to divs and it's all good. Confirmed. (Except that the attachment was the one with the DIV not the P.) Running against 1.1, I get the same exception as Phil. Against HEAD, the DIV work fine but the P

Re: [Wicket-user] i18n messages in HTML

2005-11-11 Thread Scott Sauyet
Andrew Berman wrote: I think the attribute feature should be removed. I think it is just un-Wicket-like, and I think others agree as I read form the emails in this thread. As I mentioned before I think when it comes to attributes, it is best to just do it from within the component

Re: [Wicket-user] i18n messages in HTML

2005-11-10 Thread Scott Sauyet
[EMAIL PROTECTED] wrote: Every time we're running into syntax discussions (see 'replacing OGNL') I feel that Wicket is deviating from the Java way. I think all the following suggestions would better be left unimplemented: input wicket:message=value=my-key type=.../ input

Re: [Wicket-user] i18n messages in HTML

2005-11-09 Thread Scott Sauyet
Johan Compagner wrote: i can live with: wicket:message key=..Default Text/wicket:message This makes sense. input type=button value=message:key=my-key/ I don't think this one does. It breaks the previewability of pages which is one of Wicket's hallmarks. How about something like

Re: [Wicket-user] i18n messages in HTML

2005-11-09 Thread Scott Sauyet
. Does anyone know if most of the core developers keeps up with this list? I know that several do, as I see them post regularly, but I don't know how many active core developers there are. Cheers, -- Scott Sauyet --- SF.Net email

Re: [Wicket-user] servletapi-2.3.jar included?

2005-11-01 Thread Scott Sauyet
Jeff Miller wrote: Why is servletapi-2.3.jar included with wicket? Isn't the servletapi included with whatever JSP web server that I use? Is the wicket servletapi-2.3.jar a newer version and so supersede what is on my web server (Tomcat 5.5.12)? I believe that the servletapi jar includes

Re: [Wicket-user] Modifying HTML boolean attributes

2005-10-13 Thread Scott Sauyet
Nathan Hamblen wrote: I need to enable and disable form components in subsequent requests and I'm having a hard time with AttributeModifier. It insists on giving attributes a value, so I have it put in TRUE and it outputs 'disabled=TRUE'. That's not really correct but it works. Because

Re: [Wicket-user] Download any type of file

2005-10-12 Thread Scott Sauyet
Ali Zaid wrote: I'm kinda lost here, and SourceForge search is not working, so I have to ask, and I'm sorry if this is a repeated question. The thing is simple, I need a code snippet of how to use ResourceLink to inatiate a file download. There are probably simpler ways to do this, but what

Re: [Wicket-user] Download any type of file

2005-10-12 Thread Scott Sauyet
Scott Sauyet wrote: Resource resource = new DownloadableFileResource(filename); add(ResourceLink(fileLink, resource)); Correction, should be: add(new ResourceLink(fileLink, resource)); ^^^ -- Scott --- This SF.Net

Re: [Wicket-user] Download any type of file

2005-10-12 Thread Scott Sauyet
Ali Zaid wrote: Thanks, It works! Glad to hear it. You might want to tweak several pieces of the class, which was written for my specific needs: - There is a list of file types that show in the browser rather than download as attachemnts. This is a small list for my own app.

[Wicket-user] Minimal AJAX implementation

2005-10-11 Thread Scott Sauyet
I know that people are furiously working on AJAX tools for Wicket, and I know there is some experimentatl stuff in the latest releases, but I'm wondering if there is something ready for what I think is a fairly simple need: I would like to update a session variable from a JavaScript function.

Re: [Wicket-user] Minimal AJAX implementation

2005-10-11 Thread Scott Sauyet
in the onRenderRequest method to suit your needs. Martijn On 10/11/05, *Scott Sauyet* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I know that people are furiously working on AJAX tools for Wicket, and I know there is some experimentatl stuff in the latest releases, but I'm wondering

Re: [Wicket-user] Lifecycle Question: Where do I have access to WebResponse?

2005-10-08 Thread Scott Sauyet
access to WebResponse? and at what time do you want to do that piece of code? On 10/7/05, *Scott Sauyet* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Johan Compagner wrote: The question is why do you really need that voodoo on the real http

Re: [Wicket-user] Lifecycle Question: Where do I have access to WebResponse?

2005-10-07 Thread Scott Sauyet
Scott Sauyet wrote: Where during a Page's life cycle do I have access to the WebResponse for the page being requested? [ ... ] In his response, Johan pointed out that one of the bugs I ran into was fixed in RC2. I upgraded to this, and that Exception was eliminated, but my main problem

Re: [Wicket-user] Lifecycle Question: Where do I have access to WebResponse?

2005-10-07 Thread Scott Sauyet
Johan Compagner wrote: The question is why do you really need that voodoo on the real http request? As a wicket user you shouldn't touch those objects. (ofcourse there could be thing where you need them but try to avoid it as much as possible) What are you setting/using those objects for? And

[Wicket-user] Lifecycle Question: Where do I have access to WebResponse?

2005-10-06 Thread Scott Sauyet
Where during a Page's life cycle do I have access to the WebResponse for the page being requested? The application I've been developing stand-alone now has to run inside Plumtree Portal. The Plumtree-related code is not particularly intrusive. I have all my pages extending a common class

Re: [Wicket-user] Lifecycle Question: Where do I have access to WebResponse?

2005-10-06 Thread Scott Sauyet
= Scott Sauyet = Johan Compagner Where during a Page's life cycle do I have access to the WebResponse for the page being requested? [ ... ] onBeginRequest: ClassCastException in (WebResponse) getResponse() i think this problem class cast problem is fixed in the latest RC

Re: [Wicket-user] How do you manipulate ListView for multiple columns or odd/even?

2005-10-05 Thread Scott Sauyet
I don't have any suggestion for now about your first question. And I'm sure Igor's suggestion about the GridView is probably a more robust solution, but here's how I've done the second: Andrew Berman wrote: I also have another list I want to do this with: tr class=even tdSomething

Re: [Wicket-user] Images Issue

2005-10-05 Thread Scott Sauyet
Andrew Berman wrote: Ok, I'll give it a shot. Perhaps there should be an ExternalImage class. I can't imagine that I'm the only one who needs something like this. I don't know what that would buy us. There was some recent discussion on this list about whether Image should have height and

Re: [Wicket-user] Images Issue

2005-10-05 Thread Scott Sauyet
Andrew Berman wrote: Yep, created two custom components, one called ExternalImage and one called ExternalImageButton. Both very easy to create. What? One hour? What took you?! :-) Congrats! -- Scott --- This SF.Net email is

Re: [Wicket-user] Re: Using Javascript in Panels

2005-10-03 Thread Scott Sauyet
Johan Compagner wrote: Yes it would be nice to have some way to register links (css and js) to a page that it will combine and render But i think you can do this pretty easy youreself. [ ... ] Your suggestion make sense, and I'll probably try that this week. I'll let you know how it goes.

Re: [Wicket-user] Using Javascript in Panels

2005-10-03 Thread Scott Sauyet
to different re-usable components) are the same and shall be downloaded just once? Juergen On 9/30/05, Scott Sauyet [EMAIL PROTECTED] wrote: And that leads to all sorts of dependency management issues that I don't know Wicket would want to address. Once upon a time, I wrote some PHP code which allowed me

Re: [Wicket-user] Re: Using Javascript in Panels

2005-10-03 Thread Scott Sauyet
Juergen Donnerstag wrote: [ ... ]I wonder if downloading (and locally caching) the same js script (because of different urls) twice or may 3 or 4 times, realy is such a big problem. It may not be an issue at all, and I'll probably try it first to see. Maybe I'll just get a

[Wicket-user] Using Javascript in Panels

2005-09-30 Thread Scott Sauyet
Hi Folks, It's been far too long since I asked a question on this list. One might think I was starting to get it. :-) I'm planning on building my first reusable panel soon; and I'm pretty sure I understand what I need to in order to do this, but one thing is nagging at me. The panel will

Re: [Wicket-user] Re: Using Javascript in Panels

2005-09-30 Thread Scott Sauyet
URL. -- Scott jan_bar wrote: It doesn't matter how many times you have script src= with the same URL on your page. It will be cached and downloaded only when needed. Jan Scott Sauyet [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Folks, It's been far too long since I asked

[Wicket-user] Wiki addition? Getting access to the Servlet Request/Response

2005-09-29 Thread Scott Sauyet
I found an unfortunate need to have access to the raw HttpServletRequest/Response objects. (The application will be running inside Plumtree Portal, which uses these objects.) I didn't find any documentation for this, and it took me a little digging to find it. I was thinking of adding the

Re: [Wicket-user] Wiki addition? Getting access to the Servlet Request/Response

2005-09-29 Thread Scott Sauyet
at the top, stating that it is not 'the Wicket way'. But sometimes there are moments you need to get messy. Martijn On 9/29/05, *Scott Sauyet* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I found an unfortunate need to have access to the raw HttpServletRequest/Response objects

[Wicket-user] Mismatched hierarchy

2005-09-21 Thread Scott Sauyet
I feel strange asking a mailing list twice in a few days for help not in understanding the concepts, but in plain old debugging. But I'm quite frustrated. If someone has a moment to look at what *must be* a simple error, I would appreciate it. I'm getting a fairly standard exception:

Re: [Wicket-user] Mismatched hierarchy

2005-09-21 Thread Scott Sauyet
= Scott Sauyet [EMAIL PROTECTED] = Ingram Chen [EMAIL PROTECTED] I feel strange asking a mailing list twice in a few days for help not in understanding the concepts, but in plain old debugging. But I'm quite frustrated. If someone has a moment to look at what *must be* a simple error, I

Re: [Wicket-user] Mismatched hierarchy

2005-09-21 Thread Scott Sauyet
Eelco Hillenius wrote: Imagine having an IDE plugin that high-lights the wicket:id fields etc. Eelco On 9/21/05, Scott Sauyet [EMAIL PROTECTED] wrote: = Scott Sauyet [EMAIL PROTECTED] = Ingram Chen [EMAIL PROTECTED] I feel strange asking a mailing list twice in a few days for help

Re: [Wicket-user] Multipart form hides parameters

2005-09-20 Thread Scott Sauyet
Eelco Hillenius wrote: Found it. Fix it by calling 'setMultipart(true)' in your form's constructor (PersonForm). The way parameters are read in a multipart request differs from how it is done normally. This is hidden in the Form processing, and uses the form's multipart property. However, the

[Wicket-user] Multipart form hides parameters

2005-09-19 Thread Scott Sauyet
I keep coming back to one bug in the system I'm building, partly because it's gnawing at me, but mostly because my system really isn't demoable without it. :-) I finally determined that I had a form page that is working until I add enctype='multipart/form-data'. Now I really need to be able

Re: [Wicket-user] Multipart form hides parameters

2005-09-19 Thread Scott Sauyet
Eelco Hillenius wrote: I'm afraid I have to go here, but I downloaded your files and try to take a look at it tomorrow. But if anyone in the US timezones would like to give it a shot, that would be awsome. Eelco Thanks for being willing to help. I won't be able to do anything with any

Re: [Wicket-user] Why are some model fields being updated and not others?

2005-09-16 Thread Scott Sauyet
, description)); - Johannes Scott Sauyet wrote: Okay, I've been staring at this for hours, and not making any progress. Maybe that's because it 4:30 in the morning here in Connecticut, USA, and my brain isn't what it should be, but regardless... I'm attaching a class that's giving me great

[Wicket-user] What happens to Model between Form Constructor and onSubmit?

2005-09-15 Thread Scott Sauyet
I'm trying to figure out what happens to my model object between the constructor of my Form and when its onSubmit() method is called. It took me some time to realize that it was in what I think of the never-land between these two points in my code that one of my model's properties becomes

Re: [Wicket-user] What happens to Model between Form Constructor and onSubmit?

2005-09-15 Thread Scott Sauyet
wrote: so the description is null? (not the guideline itself) Then the model is updated. adn the description is set to null by a textfield or something like that. On 9/15/05, *Scott Sauyet* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm trying to figure out what happens to my model

[Wicket-user] Why are some model fields being updated and not others?

2005-09-14 Thread Scott Sauyet
the onSubmit() method, the filename property is correct but the description is null and the Set of BusinessUnits is empty. Any thoughts on what I'm doing wrong? -- Scott Sauyet package com.thomson.bc.upload; import java.io.File; import java.io.InputStream; import java.io.IOException; import

Re: [Wicket-user] Using wicket-contrib-palette

2005-09-13 Thread Scott Sauyet
PROTECTED] On Behalf Of Scott Sauyet Sent: Friday, September 09, 2005 3:20 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Using wicket-contrib-palette Igor Vaynberg wrote: Hmm, Im not sure why it works for me and not for you. I dropped your code into the wicket-contrib

[Wicket-user] Downloading files using Wicket

2005-09-13 Thread Scott Sauyet
over MIME-types here. The user might upload a text document, a PDF, a MS Word document, or may other things. Is that going to be a problem? Thanks again for all the help on this wonderful list, -- Scott Sauyet --- SF.Net email is Sponsored

Re: [Wicket-user] Downloading files using Wicket

2005-09-13 Thread Scott Sauyet
I wrote: By the way, I don't have any control over MIME-types here. The user might upload a text document, a PDF, a MS Word document, or may other things. Is that going to be a problem? I now realize that this is an exageration. Since I'm using wicket.markup.html.form.upload.FileUpload, I

Re: [Wicket-user] Downloading files using Wicket

2005-09-13 Thread Scott Sauyet
Phil Kulak wrote: 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. Thanks. This is probably just

[Wicket-user] Why is FileResourceStream final?

2005-09-13 Thread Scott Sauyet
(); } }; } })); Of course I should probably move this to a separate class, but, regardless, if it weren't final, this would be easier. Of course any suggestions for how to do this more easily would also be welcome! :-) Thanks, -- Scott Sauyet P.S. This class has

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

2005-09-13 Thread Scott Sauyet
= Scott Sauyet [EMAIL PROTECTED] wrote: = Eelco Hillenius Is there a good reason to have FileResourceStream final? [ ... ] I made it non-final. Ask and you shall receive. Thanks. -- Scott --- SF.Net email is sponsored by: Tame

[Wicket-user] Minimal contract for onRender()

2005-09-12 Thread Scott Sauyet
{ add(new Component(navigator) { public void onRender() {} }); } and that is where I ran into the problem above. Is there a simpler way to do this? Thanks, -- Scott Sauyet --- SF.Net email is Sponsored

Re: [Wicket-user] Minimal contract for onRender()

2005-09-12 Thread Scott Sauyet
Johan Compagner wrote: in the end MarkupComponent.renderNext() must be called Because the stream must advance to the next position. So that the markup stream pointer is set to the right position for the next one. If you don't want a component to render just call setVisible(false) on it.

[Wicket-user] Add/Edit Strategy

2005-09-12 Thread Scott Sauyet
it doesn't feel quite right. I wonder how others have dealt with this in Wicket applications, or if there is something intrinsic to Wicket that makes the answer to this straightforward. Thanks for any insight you can offer. -- Scott Sauyet

Re: [Wicket-user] Add/Edit Strategy

2005-09-12 Thread Scott Sauyet
. On 9/12/05, Scott Sauyet [EMAIL PROTECTED] wrote: I have a question about Wicket best practices. Often enough, an application will have related Add and Edit pages for some class of objects. These are so closely related that it seems silly to have two separate HTML and two separate Java class

Re: [Wicket-user] Add/Edit Strategy

2005-09-12 Thread Scott Sauyet
/How_to_use_the_same_Form_for_editing_and_new Cu, Dave Nick Heudecker wrote: Kinda. I just call a different constructor that adds the components I need. On 9/12/05, *Scott Sauyet* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks for the input Martijn and Nick. If you then need

[Wicket-user] Using wicket-contrib-palette

2005-09-09 Thread Scott Sauyet
that there is a WebMarkupContainer with id javascript being added to the panel. Am I missing some additional markup needed in my HTML? Or is there a more serious problem? Thanks again everyone for all your help, -- Scott Sauyet Title: Test Page Test Page package

Re: [Wicket-user] Using wicket-contrib-palette

2005-09-09 Thread Scott Sauyet
] [mailto:wicket-user- [EMAIL PROTECTED] On Behalf Of Scott Sauyet Sent: Friday, September 09, 2005 9:33 AM To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Using wicket-contrib-palette I'm sure it's something basic, but I'm not getting wicket-contrib-palette to work. I have as simple

Re: [Wicket-user] Using wicket-contrib-palette

2005-09-09 Thread Scott Sauyet
Igor Vaynberg wrote: I tested it against HEAD and it works fine. I've just pulled it out of my app and into a stand-along HelloWorld one and had the same results, although the error page was more informative this time. I've posted the error page at

Re: [Wicket-user] Using wicket-contrib-palette

2005-09-09 Thread Scott Sauyet
Igor Vaynberg wrote: Hmm, Im not sure why it works for me and not for you. I dropped your code into the wicket-contrib-palette-examples and ran it from there. I suspect the problem is on line 165: add(javascript). This used to be addToHeader(javascript) but was changed to a pure add() call by

Re: [Wicket-user] Re: Page aliases

2005-09-07 Thread Scott Sauyet
Jan Bares [EMAIL PROTECTED] wrote: Yes, but I cannot find it. The application.getPages() returns ApplicationPages that contains only the three mentioned pages. How can I set alias for my pages/page classes? Sorry, I was blind minded, now it's clear to me, thanks. I use a search of this

[Wicket-user] Some classes not showing up in Javadoc

2005-09-07 Thread Scott Sauyet
It seems quite odd to me that a few of Wicket's classes don't show up in the Javadoc. I haven't done any investigating into why; I don't really even know how to go about that. But if anyone has some ideas, it would be worth at least knowing the reason. The classes that I've noticed are all

[Wicket-user] Nicely formatted error report

2005-09-06 Thread Scott Sauyet
is configured to show that. How do I turn this on for my application? The most likely line I found was getSettings().configure(development); but that didn't make a difference for me. Have I simply done this wrong, or am I missing something else? Thanks, -- Scott Sauyet

Re: [Wicket-user] Nicely formatted error report

2005-09-06 Thread Scott Sauyet
Johan Compagner wrote: so you always get a internal one? that is strange because if you are in development mode: if (development.equalsIgnoreCase(configurationType)) { setResourcePollFrequency(Duration.ONE_SECOND); setComponentUseCheck(true);

Re: [Wicket-user] Nicely formatted error report

2005-09-06 Thread Scott Sauyet
); setUnexpectedExceptionDisplay(SHOW_INTERNAL_ERROR_PAGE); } the exception page is the SHOW_EXCEPTION_PAGE maybe you have overriden that somewhere? johan Scott Sauyet wrote: Okay, still missing something basic. I was looking at the Library in wicket-examples, and it failed. (I have

[Wicket-user] Two-list swapping widget

2005-09-06 Thread Scott Sauyet
I don't know what it's called, but there is a widget you see in any number of applications (especially thick client ones, but some brower-based ones as well) that allows the user to move items between two lists. The lists are usually side-by-side with left and right arrows between to move

[Wicket-user] Using a Javscript resource

2005-09-01 Thread Scott Sauyet
Hi folks, I'm still struggling through when I have the time. I'm missing something basic. I can now (at least in 1.1-b4) use a CSS file as a resource in the same directory as the class file by wrapping this: .link href=test.css .../ like this: .wicket:link .link

Re: [Wicket-user] OT? Tomcat not removing wicket.jar

2005-08-29 Thread Scott Sauyet
Johan Compagner wrote: ok... I can't seem to fix it read this bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4950148 Uggh, that makes sense. And it looks as though there's not much of a work-around. Perhaps it's time I try Eclipse and Jetty again... Thank you very much for

Re: [Wicket-user] Registering dynamically added controls

2005-08-29 Thread Scott Sauyet
Phil Kulak wrote: public void onSubmit() { MapString, FileItem files = ((MultipartWebRequest) getRequest()).getFiles(); // do something with the files... } Badda bing. :) Wow, that's easy enough. I'm quite impressed with Wicket so far. The String is the name attribute? Thanks,

Re: [Wicket-user] maybe a bug

2005-08-26 Thread Scott Sauyet
I don't think so. The WC3 Validator doesn't report a problem with this page: http://test.sauyet.com/CSS/EmptyDiv/ which includes an empty div. -- Scott Gwyn Evans wrote: I'm not 100% sure why it's doing it, but isn't div a block-level tag, i.e. it needs to surround something to be

Re: [Wicket-user] maybe a bug

2005-08-26 Thread Scott Sauyet
Scott T weaver wrote: However, the Tidy extension for Firefox reports a warning: Yes, but that is just a Tidy warning. The HTML is valid, at least in XHTML strict. Of course an empty div will have no semantics behind it, but it can be used in conjunction with CSS for various effects, and

Re: [Wicket-user] OT? Tomcat not removing wicket.jar

2005-08-26 Thread Scott Sauyet
Bump. I'm hoping someone might have five minutes to give this a test, so I know if I should file a bug report. Thanks, -- Scott P.S. Sorry to push, but I'm going offline for the weekend in ninety minutes or so... Scott Sauyet wrote: I wrote: [when I overwrite my WAR file] Tomcat

Re: [Wicket-user] OT? Tomcat not removing wicket.jar

2005-08-26 Thread Scott Sauyet
Igor Vaynberg wrote: Confirmed... Thanks. I'll file a bug report. If anyone can see something I'm doing wrong, please let me know. -- Scott --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005

[Wicket-user] OT? Tomcat not removing wicket.jar

2005-08-25 Thread Scott Sauyet
This may be off-topic and really belong on some Tomcat list, but if anyone here has a suggestion, please let me know. I'm doing an awful lot of update-compile-deploy cycles as I try to learn Wicket, and Tomcat is giving me grief. Usually when I drop a WAR file in Tomcat's webapps directory,

Re: [Wicket-user] OT? Tomcat not removing wicket.jar

2005-08-25 Thread Scott Sauyet
Johan Compagner wrote: i have said this before on the list. You really should look for an integrated solution for this in a IDE For example use the Tomcat plugin or the Jetty Launcher in eclipse for debugging youre wicket application. This will gain you so much time.. (no constant deploy, and

  1   2   >