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? Ok

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 someth

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. >

[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 's included but with my own custom resolver? The application will have m

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

2007-04-19 Thread Scott Sauyet
Al Maw wrote: > ModalWindow is just about the only component that won't work without > JavaScript. Like Igor says, stick to AjaxFallback* (or even > IndicatingAjaxFallback*) and let Wicket do the heavy lifting for you. Hmmm, that's one of my favorite uses of AJAX, honestly. I transform a link

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

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 quest

[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 w

[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 b

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 m

[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 i

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 ) 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: >> Unfortunately, this was just one little nice-to-have enhancement I >> thought I'd throw in while I was making changes. It works fine until I >> put the code into it's production environment, which means it's being >> called as part of a Plumtree portal. And there somethi

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 kn

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 PageLink

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

[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 _

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 IChoiceRen

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 mod

[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 dr

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 d

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. A

Re: [Wicket-user] new user

2005-12-01 Thread Scott Sauyet
Frank Silbermann wrote: I have some Java application development experience, but my web development experience is very small (mainly just a few simple servlets). At my new job I am tasked with translating an architecturally simple ASP.NET application to J2EE (the company wants to standardize

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

2005-11-23 Thread Scott Sauyet
ecific language governing permissions and limitations under + * the License. + */ +package 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 Sco

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 interfa

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 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

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 WebPag

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

[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] 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 the

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 to

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 yield

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

2005-11-15 Thread Scott Sauyet
> = James Yong <[EMAIL PROTECTED]> >> = Johan Compagner gmail.com> >> If you can do that then i would just have the 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 cleanest m

Re: [Wicket-user] Markup Inheritance... why does 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:

[Wicket-user] Markup Inheritance... why does 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 must be empty. This: works fine, but this: Main content here fails with wicket.WicketRuntimeException: Expected to find in base markup Is there a good reason fo

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 manually

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: ... Hello. Although most of these were my suggestions, I agree. Th

Re: [Wicket-user] i18n messages in HTML

2005-11-09 Thread Scott Sauyet
here. 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

Re: [Wicket-user] i18n messages in HTML

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

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 on

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 mo

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.

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

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] Minimal AJAX implementation

2005-10-11 Thread Scott Sauyet
de 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, bu

[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] 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

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

2005-10-08 Thread Scott Sauyet
Thanks for your help. -- Scott Johan Compagner wrote: 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

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

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 pr

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

[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 who

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 sponsore

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 wi

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: Something here Somethin

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

Re: [Wicket-user] Using Javascript in Panels

2005-10-03 Thread Scott Sauyet
ies/jar because they belong 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

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-02 Thread Scott Sauyet
or each instance. But that's still too limited I guess. We additionally need some way to globally (application level) register scripts, so that the header contribition algoritm can detect whether a contribution was done yet. Juergen, in case you are reading with us, what do you think? Eelco

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

2005-09-30 Thread Scott Sauyet
But if I try to use the script as a resource of my Panel, which would be ideal for making the panel a true component, then the URL is specific to that panel. A different panel, or other JS on my page which depends upon this script, would have the same Javascript referenced through a differnt U

[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 wil

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

2005-09-29 Thread Scott Sauyet
ing 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 Htt

[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 be

[Wicket-user] How do I stop Wicket from updating the model on a cancel?

2005-09-23 Thread Scott Sauyet
Wow, several days without a question from me... a new record! I want the user to be able to cancel an edit. I added a cancel button, changed my onSubmit() to "_onSubmit()" and added: add(new ImageButton("saveButton") { public void onSubmit() { _

Re: [Wicket-user] Component for check that input is made by a human

2005-09-23 Thread Scott Sauyet
I think the request is for a captcha, one of those images with characters too difficult for machine vision, but reasonably easy for a person to interpret. They are used to prevent automatic form-filling by programs. http://en.wikipedia.org/wiki/Captcha There are probably many easy-to-int

Re: [Wicket-user] Mismatched hierarchy

2005-09-21 Thread Scott Sauyet
value! :-) -- Scott 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 strang

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 wha

[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: wi

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 Fo

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 analys

[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 abl

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

2005-09-16 Thread Scott Sauyet
d("description", new PropertyModel(guideline, "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

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

2005-09-15 Thread Scott Sauyet
? (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 object betwe

[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 null

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

2005-09-15 Thread Scott Sauyet
his can be done with the content-disposition header. Content-Disposition: attachment; filename=whatever.doc Will tell the browser that you are downloading whatever.doc from any url. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:wicket-user- [EMAIL PROTECTED] On Behalf Of Sc

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

2005-09-15 Thread Scott Sauyet
Even with this, it would be nice to offer the download with a URL that suggests a name for the download. As it stands with a MS Word document, even if you get the MIME type right, FF would offer to download the file named "app", and IE and Opera offer to download the file "app.doc". I would d

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

2005-09-14 Thread Scott Sauyet
opriately, but when I hit 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; impo

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 ema

[Wicket-user] Why is FileResourceStream final?

2005-09-13 Thread Scott Sauyet
e lastModifiedTime() { return frs.lastModifiedTime(); } }; } })); 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

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 wh

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

[Wicket-user] Downloading files using Wicket

2005-09-13 Thread Scott Sauyet
ocument, 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 by the Better Software Conference & EXPO September 19

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

2005-09-13 Thread Scott Sauyet
mailto:wicket-user- [EMAIL 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

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 y

Re: [Wicket-user] Add/Edit Strategy

2005-09-12 Thread Scott Sauyet
king well so far. 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 t

[Wicket-user] Add/Edit Strategy

2005-09-12 Thread Scott Sauyet
in 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. -- Sc

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. Okay

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

2005-09-12 Thread Scott Sauyet
ataFootSect does nothing other than give me the ability to make the whole section invisible. hth, -S. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sauyet Sent: 12 September 2005 13:51 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user

[Wicket-user] Minimal contract for onRender()

2005-09-12 Thread Scott Sauyet
quot;, listView)); } else { 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

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 ee

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 http://scott.sauyet.com/Java/Wicket/e

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

2005-09-09 Thread Scott Sauyet
om: [EMAIL PROTECTED] [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-p

[Wicket-user] Using wicket-contrib-palette

2005-09-09 Thread Scott Sauyet
I'm sure it's something basic, but I'm not getting wicket-contrib-palette to work. I have as simple a setup as I can imagine: <.html> <.head> <.title>Test Page <.body> <.h1>Test Page <.span wicket:id="palette"> and: public class T

[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 i

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 mai

Re: [Wicket-user] Two-list swapping widget

2005-09-06 Thread Scott Sauyet
>> = Scott Sauyet <[EMAIL PROTECTED]> > = Eelco Hillenius <[EMAIL PROTECTED]> >> I don't know what it's called, but there is a widget [ ... ] that >> allows the user to move items between two lists. [ ... ] >> I was wondering if there was

[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 item

Re: [Wicket-user] Nicely formatted error report

2005-09-06 Thread Scott Sauyet
{ setComponentUseCheck(false); setStripWicketTags(true); 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 somethin

  1   2   >