RE: [wicket-contrib] TinyMCE Hackery

2007-11-27 Thread Michael Laccetti
Okay, I've committed my changes; they are r3303 if I remember correctly. I pushed it to a Maven repository that I run until I can figure out how to get them to the wicketstuff repo (if I can, that is). (I used the same repo to host the jazzy plugin dependency.) Mike -Original Message- F

Re: [wicket-contrib] TinyMCE Hackery

2007-11-27 Thread Igor Vaynberg
i dont think committing changes, as long as they are basic fixes, right away should be a problem, that is why it is in a public repo... -igor On Nov 27, 2007 9:09 PM, Michael Laccetti <[EMAIL PROTECTED]> wrote: > I've done some work on the TinyMCE project to get it to compile, since it > current

[wicket-contrib] TinyMCE Hackery

2007-11-27 Thread Michael Laccetti
I've done some work on the TinyMCE project to get it to compile, since it currently does not do so straight out of subversion. Two questions: is it okay for me to commit the changes, and would it be possible to push this to the wicketstuff Maven repo? (If it is not, I have a publically accessible

Re: Today's installment of "well, duh." Was: Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
I actually *do* have that, but this code recently went through some ... surgery that left things in a rather sloppy state. Clearly not the most prize worthy section of code. :) On Nov 27, 2007 10:43 PM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > On Tue, 27 Nov 2007, Evan Chooly wrote: > > So

Re: Today's installment of "well, duh." Was: Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Timo Rantalaiho
On Tue, 27 Nov 2007, Evan Chooly wrote: > So here's the skinny: while my subclass was marked as serializable, the > parent class was not. So no state from the parent class got serialized nor, > not so surprisingly, deserialized. After adding that implements clause > things miraculously started w

RE: replacing component causes "Expected close tag for xxx" Exception

2007-11-27 Thread xiefei
Should not "Replace" mean turning [whatever content of old container into [whatever content of new container irrelevant to content of old container] ? And, Panel as the new container does not work either. Some code may make it clear. IndexPage.java: public class IndexPage extends WebPage {

Re: wicket success stories

2007-11-27 Thread Doug Leeper
I used this link to get the information http://web.mac.com/jonathan.locke/iWeb/JonathanLocke/Blog/Blog.html -- View this message in context: http://www.nabble.com/wicket-success-stories-tf4877640.html#a13984347 Sent from the Wicket - User mailing list archive at Nabble.com. --

Re: howto include wicket in a JSP page with version 1.3-rc1

2007-11-27 Thread Seif
Using the org.apache.wicket.protocol.http.WicketServlet instead of the WicketFilter generate a java.lang.StringIndexOutOfBoundsException :S [#|2007-11-28T01:52: 19.732+0100|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=httpSSLWorkerThread-58080-0;_RequestID

Today's installment of "well, duh." Was: Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
So here's the skinny: while my subclass was marked as serializable, the parent class was not. So no state from the parent class got serialized nor, not so surprisingly, deserialized. After adding that implements clause things miraculously started working. So a big "you idiot" for me and a big t

Re: Ajax Memory Leak in IE

2007-11-27 Thread Matej Knopp
Hi, should be fixed in latest trunk. -Matej On Nov 26, 2007 5:24 PM, picknick <[EMAIL PROTECTED]> wrote: > > Here's the jira issue. Currently i can't say anything about IE7. > > https://issues.apache.org/jira/browse/WICKET-1186 > https://issues.apache.org/jira/browse/WICKET-1186 > > > > Matej Kn

Re: Issue with Internationalization of Non ascii characters

2007-11-27 Thread Eelco Hillenius
> Thanks for the help. > From the example I see that I need to convert the text into Unicode > characters. If you want to use another charset you can do that as well, both in your pages and in the properties XML file (at least, that's what I think). Don't forget to *edit* it in the proper format a

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
Thanks for the tip, igor. i wasn't sure how to get at the serialization code directly without going through all the page stuff as well. (DetachedReport)Objects.cloneObject(report) does indeed return an empty Report object so there's something not quite right there. At least now I have a place i c

Re: Issue with Internationalization of Non ascii characters

2007-11-27 Thread Vit Rozkovec
If you're on Linux, I have made a little script for conversion, which finds all .properties files in current directory and subdirectories and encode them proper way: #!/bin/sh for file in $(find . -name *.properties); do native2ascii $file $file echo $file done You can find native2ascii

Re: wicket + gwt

2007-11-27 Thread Sean Sullivan
On 11/25/07, Jonathan Locke <[EMAIL PROTECTED]> wrote: > > i noticed daniel carleton was working on wicket gwt integration, but the wiki > page makes it look incomplete. has anyone gone any further on this? I am interested in this topic but I have not done any work in this area. @see http://cwik

Re: Issue with Internationalization of Non ascii characters

2007-11-27 Thread Frank Bille
I have the same problem even though only 3 characters (Danish: æ, ø, å), but I use http://www.resourcebundleeditor.com for eclipse, which creates .properties files without me having to worry about non-ascii, linebreaks etc. Nice little tool. Frank On Nov 27, 2007 8:52 PM, abaijal <[EMAIL PROTECT

Re: problems adding nodes to a BaseTree

2007-11-27 Thread Thomas Krause
> What does it mean "update tree as often as possible"? The data for the tree comes from a database where multiple users have access to. With "update tree as often as possible" I mean that the database may have changed and I want to show this information as soon as possible to the user. There is n

Re: How to avoid Expires: 1970 header with URIRequestTargetUrlCodingStrategy

2007-11-27 Thread Edvin Syse
No you don't have to hve the servlet response for that Just check if the Response is a WebResponse That already has the setHeader methods Thank you so much, it worked perfectly :) -- Edvin - To unsubscribe, e-mail: [EMAIL PROT

Re: howto include wicket in a JSP page with version 1.3-rc1

2007-11-27 Thread Timo Rantalaiho
On Tue, 27 Nov 2007, Seif wrote: > in version 1.2.6 or wicket, there was a servlet in the web.xml file which > can be included in a jsp page using . > in the new version (1.3-rc1) this changed to a filter so > produce a FileNot Found exception. The servlet is still there in 1.3, the filter is jus

Re: How to avoid Expires: 1970 header with URIRequestTargetUrlCodingStrategy

2007-11-27 Thread Johan Compagner
No you don't have to hve the servlet response for that Just check if the Response is a WebResponse That already has the setHeader methods On Nov 27, 2007 9:13 PM, Edvin Syse <[EMAIL PROTECTED]> wrote: > > hmm this way i have never seen it before :) > > Hehe.. I know it might be a bit unconvention

Re: How to avoid Expires: 1970 header with URIRequestTargetUrlCodingStrategy

2007-11-27 Thread Edvin Syse
hmm this way i have never seen it before :) Hehe.. I know it might be a bit unconventional, but I think I have a good reason for it. Since the application is "virtualhosted", the session holds a path to the "filearchive" for the current instance (set based on the http host of the request), and

Re: Issue with Internationalization of Non ascii characters

2007-11-27 Thread abaijal
Thanks for the help. >From the example I see that I need to convert the text into Unicode characters. Eelco Hillenius wrote: > >> I am new to wicket framework and am trying to implement >> internationalization >> for Russian Characters. >> >> When displaying Russian characters on screen, Wicket

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Gerolf Seitz
On Nov 27, 2007 8:37 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > > lol, sometimes the solution is just too damn obvious ;) > > > > Gerolf > > > > > > > thats called wicket. > yeah, obivously ;)

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Johan Compagner
> > lol, sometimes the solution is just too damn obvious ;) > > Gerolf > > > thats called wicket.

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Igor Vaynberg
run it through Objects.clone() and see what you get back -igor On Nov 27, 2007 11:35 AM, Evan Chooly <[EMAIL PROTECTED]> wrote: > Just a pojo. (that's right! i said it! pojo! pojo! pojo!) It does have > a baseclass annotated with @MappedSuperclass but that shouldn't cause any > problems.

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Johan Compagner
what happens if you just serialize that object your self and read it back in? It seems to me like a serializing problem for that object. johan On Nov 27, 2007 8:35 PM, Evan Chooly <[EMAIL PROTECTED]> wrote: > Just a pojo. (that's right! i said it! pojo! pojo! pojo!) It does > have > a

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Gerolf Seitz
> > looking at markup like this > > date: > > rather then > > date: id="foo"/> > > sucks. it is pretty unintuitive. i agree. i will enhance the javadoc for DateField for now. i guess we just have to live with it... > ok, let me correct you :) simply add an attribute modifier to the > created te

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
Just a pojo. (that's right! i said it! pojo! pojo! pojo!) It does have a baseclass annotated with @MappedSuperclass but that shouldn't cause any problems. The object is created by calling new and is never touched by hibernate. On Nov 27, 2007 2:31 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote

Re: howto include wicket in a JSP page with version 1.3-rc1

2007-11-27 Thread Seif
Sorry i'm not developping a new application, i want only to integrate wicket in an existant apps, which work with ejb3/hibernate, urlrewrite from tukey.org, taglibs, apache-lucene, etc... in version 1.2.6 or wicket, there was a servlet in the web.xml file which can be included in a jsp page using .

Re: How to avoid Expires: 1970 header with URIRequestTargetUrlCodingStrategy

2007-11-27 Thread Johan Compagner
hmm this way i have never seen it before :) But you could also do this with a mounted shared resource But what you could do if you want to do it that way then overwrite the ResourceStreamRequestTargets: * protected* *void* configure(*final* RequestCycle requestCycle, *final*Response response, *f

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Igor Vaynberg
what is this report object? -igor On Nov 27, 2007 11:27 AM, Evan Chooly <[EMAIL PROTECTED]> wrote: > Just about every field in my model object. Though it would appear that the > date object(s) is set to "now." > > > On Nov 27, 2007 2:23 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > But w

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Igor Vaynberg
On Nov 27, 2007 11:24 AM, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > > > > a) it should check that it is attached to an input tag > > b) it should call setrenderbodyonly(true) on itself > > > this silently breaks the "api" (rather the usage), because you couldn't add > it to an AjaxRequestTarget any

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
Just about every field in my model object. Though it would appear that the date object(s) is set to "now." On Nov 27, 2007 2:23 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > But what field is then exactly null??? > > > > On Nov 27, 2007 7:05 PM, Evan Chooly <[EMAIL PROTECTED]> wrote: > > > ju

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Gerolf Seitz
> > a) it should check that it is attached to an input tag > b) it should call setrenderbodyonly(true) on itself this silently breaks the "api" (rather the usage), because you couldn't add it to an AjaxRequestTarget anymore > > c) it should carry over any attributes from the panel tag to the in

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Johan Compagner
But what field is then exactly null??? On Nov 27, 2007 7:05 PM, Evan Chooly <[EMAIL PROTECTED]> wrote: > just something like: > > setModel(new CompoundPropertyModel(report)); > > On Nov 27, 2007 1:04 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > ok, so the model is there, but the object in

Re: Floating Column

2007-11-27 Thread Alex Objelean
Sorry, didn't read the post carefully. I've done something similar. The entire component was in a table with two cells. The fixed column was in a first TD, while the rest was contained in another TD element. The point is, that it has nothing to do with wicket, it is about how you choose your mar

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Eelco Hillenius
> a) it should check that it is attached to an input tag > b) it should call setrenderbodyonly(true) on itself > c) it should carry over any attributes from the panel tag to the inner input > tag It could do that magic if it is attached to a text field, but leave things as they are if it is attac

Re: Issue with Internationalization of Non ascii characters

2007-11-27 Thread Eelco Hillenius
> I am new to wicket framework and am trying to implement internationalization > for Russian Characters. > > When displaying Russian characters on screen, Wicket rendering displays > garbage values Check out http://wicketstuff.org/wicket13/forminput/. You can select Russian from the drop down and

Re: How do others include their browser specific styles in Wicket?

2007-11-27 Thread Eelco Hillenius
> Hi, > We get the client info the same way, but how do you prevent having to > manually do (for example): > page.add(HeaderContributor.forCss("_css/style.css", "screen")); > > if (clientProperties.isBrowserInternetExplorer()) { > page.add(HeaderContributor.forCss("_css/

Re: TabbedPanel + authorization strategy

2007-11-27 Thread Eelco Hillenius
On Nov 27, 2007 3:15 AM, Marieke Vandamme <[EMAIL PROTECTED]> wrote: > > That gave me some hints indeed. Thanks ! > The authorization needs to be placed on the link (that is created when > overriding the newlink method from TabbedPanel). Yeah, that makes sense :-) Eelco -

Ajax AutoCompleteTextField with hidden id-field

2007-11-27 Thread ckuehne
Hi, I'd like my AutoCompleteTextField to behave as follows - I want the names of my list items displayed (item.name) - when I select one I want the item.name displayed in the AC-TextField So far, so good. But ... - internally I want the item.id put into the request in order to select the obje

Re: Amsterdam meetup: the agenda!

2007-11-27 Thread Eelco Hillenius
Cool. Though where is Terracotta in there? Didn't they plan on participating as well? Eelco On Nov 27, 2007 7:59 AM, Arje Cahn <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm proud to present our heavily packed agenda for the Amsterdam Wicket > Meetup this Friday! > > We're going sky-high with our

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
just something like: setModel(new CompoundPropertyModel(report)); On Nov 27, 2007 1:04 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > ok, so the model is there, but the object inside it suddenly is null? > what kind of model is it? > > -igor > > > On Nov 27, 2007 9:56 AM, Evan Chooly <[EMAIL PRO

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Igor Vaynberg
ok, so the model is there, but the object inside it suddenly is null? what kind of model is it? -igor On Nov 27, 2007 9:56 AM, Evan Chooly <[EMAIL PROTECTED]> wrote: > No, they're "detached" versions which are basically clones so there's no > hibernate proxies involved. > > > On Nov 27, 2007 12:

Re: Issue with Internationalization of Non ascii characters

2007-11-27 Thread Suad AlShamsi
I faced the same problem with Arabic character. I used native2ascii.exe to encode the property files and I used encoding="utf-8" in my html pages and then it worked. Regards, Suad abaijal wrote: Hi All I am new to wicket framework and am trying to implement internationalization for Russian C

Re: wicket:enclosure bug when parent is a non transperent border in current trunk version ?

2007-11-27 Thread Antoine Angénieux
Hi Igor, Igor Vaynberg a écrit : please add a jira ticket for this Done ! https://issues.apache.org/jira/browse/WICKET-1188 Cheers, Antoine. -igor On Nov 27, 2007 3:25 AM, Antoine Angénieux <[EMAIL PROTECTED]> wrote: Hi guys, I'm using the latest trunk version. I have a border (non t

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
No, they're "detached" versions which are basically clones so there's no hibernate proxies involved. On Nov 27, 2007 12:42 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > these objects are not by chance hibernate objects? because if you > serialize and then deserialize all the collections come bac

How to avoid Expires: 1970 header with URIRequestTargetUrlCodingStrategy

2007-11-27 Thread Edvin Syse
In my WicketApplication class I have mounted a URL with the URIRequestTargetUrlCodingStrategy to serve files in my virtualhosted CMS-application written in Wicket 1.3. The problem with this is that it returns a header like this with the file it serves up: HTTP/1.1 200 OK Expires: Thu, 01 Jan

Issue with Internationalization of Non ascii characters

2007-11-27 Thread abaijal
Hi All I am new to wicket framework and am trying to implement internationalization for Russian Characters. When displaying Russian characters on screen, Wicket rendering displays garbage values I am using Wicket 1.2.6 and Weblogic 8.1 SP3 Things I have already tried : 1)HTML pages have char

Re: replacing component causes "Expected close tag for xxx" Exception

2007-11-27 Thread Igor Vaynberg
you cant replace something like: with a label, because then your markup is and labels do not support inner components makes sense? -igor On Nov 27, 2007 7:03 AM, 非 谢 <[EMAIL PROTECTED]> wrote: > hi, > > In wicket1.3-rc1, When I try to replace a WebMarkupContainer that has nested > componen

Re: mounting large number of url

2007-11-27 Thread Igor Vaynberg
you wouldnt mount one per user, you would do it like this: mount(new indexedurlcodingstrategy("/user", userprofilepage.class)); class UserProfilePage extends WebPage { public UserProfilePage(PageParameters params) { String userid=params.get("0"); } } then your urls are myapp.com/user/user

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Igor Vaynberg
these objects are not by chance hibernate objects? because if you serialize and then deserialize all the collections come back as empty standard jdk collections instead of hibernate proxies sometimes -igor On Nov 27, 2007 8:49 AM, Evan Chooly <[EMAIL PROTECTED]> wrote: > No transient fields. Ev

Re: Manually handle post data

2007-11-27 Thread Igor Vaynberg
point the sytem to a bookmarkable page that has the (PageParameters params) constructor mounted with querystring url coding strategy then the posted params are in your page parameters -igor On Nov 27, 2007 5:24 AM, Pills <[EMAIL PROTECTED]> wrote: > > > Michael Sparer wrote: > > > > I you reall

Re: wicket:enclosure bug when parent is a non transperent border in current trunk version ?

2007-11-27 Thread Igor Vaynberg
please add a jira ticket for this -igor On Nov 27, 2007 3:25 AM, Antoine Angénieux <[EMAIL PROTECTED]> wrote: > Hi guys, > > I'm using the latest trunk version. I have a border (non transparent) in > which portions of markup are made visible / invisible by the use of the > wicket enclosure tag.

Re: Add GET parameter to ajax call

2007-11-27 Thread Igor Vaynberg
but you can still override getcallbackurl()...even if it is inside the fragment -igor On Nov 27, 2007 2:43 AM, Michael Sparer <[EMAIL PROTECTED]> wrote: > > I was wondering if there is an easy way to add a GET parameter to an > AjaxLink. Sothat I can get the parameter out of the request's parame

Re: ListMultipleChoice to take choices model from parent

2007-11-27 Thread Gabor Szokoli
On Nov 27, 2007 5:52 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you can create your own subclass that does what you want...but thats > about it short of writing your own component Thanks, just wanted to make sure I'm not overlooking some more straight-forward way of doing this. Gabor Szokoli

Re: IDataProvider Best Practice for multiple POJOs

2007-11-27 Thread Martijn Dashorst
Hmm, not sure what you are getting at... The IDataProvider is just a class, so you can do anything inside. Possibly you should create a multi-pojo Model that you return for each element in the original list? Martijn On Nov 27, 2007 3:27 AM, pwillemann <[EMAIL PROTECTED]> wrote: > > All the IData

Re: Floating Column

2007-11-27 Thread Matej Knopp
On Nov 27, 2007 3:23 PM, Alex Objelean <[EMAIL PROTECTED]> wrote: > > It is up to you how to style the markup. A little of CSS can do all you need. little CSS? for a floating column that says on screen while other scroll? Heh, I doubt it :) At least if you want to work it across different browsers.

Re: problems adding nodes to a BaseTree

2007-11-27 Thread Matej Knopp
Hi, On Nov 27, 2007 12:42 PM, Thomas Krause <[EMAIL PROTECTED]> wrote: > Hello, > > thank you very much for that hint. Since I want to update the tree as > often as possible at every user interaction and I don't want to add a > call to updateNotes() at every possible link or button I will try > de

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Igor Vaynberg
here is what this should be doing: a) it should check that it is attached to an input tag b) it should call setrenderbodyonly(true) on itself c) it should carry over any attributes from the panel tag to the inner input tag just my two cents all of these changes can be implemented now as well, si

Re: ListMultipleChoice to take choices model from parent

2007-11-27 Thread Igor Vaynberg
you can create your own subclass that does what you want...but thats about it short of writing your own component -igor On Nov 27, 2007 12:59 AM, Gabor Szokoli <[EMAIL PROTECTED]> wrote: > Hi there, > > We sometimes need a component for editing sets of arbitrary strings. > We currently use a List

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
No transient fields. Everything is serializable. We're storing the complete objects in the model for a number of reasons. When we come back to the page we have some object but the state is gone. I think it's because we're redirecting back to the same page class/type so the old one gets dumped.

Re: only 1 version of page in the cache at a time?

2007-11-27 Thread Johan Compagner
Yes in wicket 1.3 there is only 1 active page per pagemap But it shouldn't matter where the page comes from. If it is serialized from disk or serialized in the session somehow by the container, You still should be able to fully construct all your data again in the objects. So what is suddenly nul

Re: Custom implementation of TabbedPanel HTML

2007-11-27 Thread Igor Vaynberg
subclass tabbedpanel and put that markup into the html file. just make sure all the components and nesting matches the orginal. -igor On Nov 27, 2007 12:43 AM, Alexander Landsnes Keül <[EMAIL PROTECTED]> wrote: > > Is there some way for me to control the HTML of the TabbedPanel > implementation

Re: InlineFrame and Ajax Timer failing

2007-11-27 Thread Jeremy Levy
I fixed it. I was creating the InlineFrame by passing in a Page to the constructor, I switched it to MyPage.class and it worked... Not quite sure why though.. j On Nov 27, 2007 10:29 AM, Jeremy Levy <[EMAIL PROTECTED]> wrote: > I've created a Ajax Timer similar to the one on the example page, i

only 1 version of page in the cache at a time?

2007-11-27 Thread Evan Chooly
We have a page that presents a report in which we can "drill down" into the data. When this happens, we setResponsePage() back to a new instance of the page with some different parameters and that all works dandy. But when we hit the back button, it seems the old version is gone. All the model d

Amsterdam meetup: the agenda!

2007-11-27 Thread Arje Cahn
Hi all, I'm proud to present our heavily packed agenda for the Amsterdam Wicket Meetup this Friday! We're going sky-high with our little Wicket Meetup... 86 attendees already! If still haven't signed up, you're not too late! Rush yourself to http://cwiki.apache.org/WICKET/community-meetups.html

InlineFrame and Ajax Timer failing

2007-11-27 Thread Jeremy Levy
I've created a Ajax Timer similar to the one on the example page, it works well, and I use it several places on my site. However when it's added to the same page as a InlineFrame/Iframe the Ajax callback fails with the following error: *INFO: * *INFO: * Initiating Ajax GET request on /1/m?x=R

mounting large number of url

2007-11-27 Thread Daniele Dellafiore
Hi. In my app I would like to have a easy url for a user, say: http://myapp.com/username to make this, in wicket, I only know the mount url way. Anyone know about problems in adding a large number of url this way? Just in case, any alternatives? Thanks. -- Daniele Dellafiore http://ildella.w

Re: Display enum in a RadioChoice

2007-11-27 Thread Jonas
> Yes i've considered RadioGroup and Radio but my question was also for > other components (in fact i need to set the class of , and > tag and surrely many others) have a look at AttributeModifier and AttributeAppender. - To uns

replacing component causes "Expected close tag for xxx" Exception

2007-11-27 Thread 非 谢
hi, In wicket1.3-rc1, When I try to replace a WebMarkupContainer that has nested components with another component in AjaxLink.onClick, wicket says "Expected close tag for '' Possible attempt to embed component(s) '' in the body of this component which discards its body " Is this an expected

Re: testcase click button

2007-11-27 Thread Newgro
If youre using ajax call you should use tester.executeAjaxEvent(componentPath, event) Am i right here that it's not possible to click on a "normal" button? Cheers Per -- View this message in context: http://www.nabble.com/testcase-click-button-tf4682808.html#a13972252 Sent from the Wicket - U

Re: Display enum in a RadioChoice

2007-11-27 Thread Gervais
tional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2688 (20071127) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com

Re: Display enum in a RadioChoice

2007-11-27 Thread Jonas
The '' is the default suffix (see RadioChoice#setSuffix and RadioChoice#setPrefix). AFAIK there's no way to set a class attribute using RadioChoice. Have you considered using RadioGroup and Radio? They're much more flexible than RadioChoice. On Nov 27, 2007 2:56 PM, Gervais <[EMAIL PROTECTED]> w

Re: Floating Column

2007-11-27 Thread Alex Objelean
It is up to you how to style the markup. A little of CSS can do all you need. Alex dariusz.holda wrote: > > Hi, > Is it possible in Wicket to do a floating column? I have a DataView that > has so many columns that it expands over one screen. I would like to make > one column to stay on the s

Re: Display enum in a RadioChoice

2007-11-27 Thread Gervais
ceRenderer, which is used to render the choices. cheers, Jonas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2688 (20071127) Information __ This message w

Re: Manually handle post data

2007-11-27 Thread Pills
Michael Sparer wrote: > > I you really wanna do this manually, this code might help you: Map map = > ((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap(); > > regards > For me it doesn't matter... This way is quite good, but if you've a better idea (the wicket way) I'll use it

RE: What kind of link could I use?

2007-11-27 Thread Clay Lehman
You probably want to check out DownloadLink http://people.apache.org/~tobrien/wicket/apidocs/org/apache/wicket/marku p/html/link/DownloadLink.html -Clay -Original Message- From: yadubi [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 27, 2007 3:14 AM To: users@wicket.apache.org Subject

Re: Display enum in a RadioChoice

2007-11-27 Thread Jonas
Hi, some constructors of RadioChoice take a org.apache.wicket.markup.html.form.IChoiceRenderer, which is used to render the choices. cheers, Jonas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: Populate form according to selected item in dropdownchoice

2007-11-27 Thread Dipu Seminlal
have a look at the attached files, thats based on your code snippet, you will get the idea. regards dipu On Nov 27, 2007 7:17 AM, tsuresh <[EMAIL PROTECTED]> wrote: > > Hi Dipu, > Could you please tell me what to write in the method > onSelecitionChanged(). It would be easier for me to understa

Display enum in a RadioChoice

2007-11-27 Thread Gervais
Hi all, I need to display a enum in a RadioChoice. So i'm doing that : public static enum Genre { Male, Female } private static List GENRES = Arrays.asList(Person.Genre.values()); ... add(new RadioChoice("student.genre", GENRES)); ... It work but displaying avlues Are "Male" and

Re: problems adding nodes to a BaseTree

2007-11-27 Thread Thomas Krause
Hello, thank you very much for that hint. Since I want to update the tree as often as possible at every user interaction and I don't want to add a call to updateNotes() at every possible link or button I will try detect wether the rendering was forced by an action on the tree or by something else.

Floating Column

2007-11-27 Thread dariusz.holda
Hi, Is it possible in Wicket to do a floating column? I have a DataView that has so many columns that it expands over one screen. I would like to make one column to stay on the screen all the time even if a user scrolls horizontally to the other side of the DataView. Has anybody tried that? Any id

wicket:enclosure bug when parent is a non transperent border in current trunk version ?

2007-11-27 Thread Antoine Angénieux
Hi guys, I'm using the latest trunk version. I have a border (non transparent) in which portions of markup are made visible / invisible by the use of the wicket enclosure tag. Here is an example markup : And I always get an exception in the Enclosure getCh

Re: TabbedPanel + authorization strategy

2007-11-27 Thread Marieke Vandamme
That gave me some hints indeed. Thanks ! The authorization needs to be placed on the link (that is created when overriding the newlink method from TabbedPanel). Mr Mean wrote: > > Not sure if it is of help to you, but Swarm has an example on how to do > this: > http://wicketstuff.org/wicketsecu

Re: Leaf menus stop responding after collapse and expand

2007-11-27 Thread Matej Knopp
It might be a bug, can you please make a quickstart that shows the behavior? Thanks. -Matej On Nov 14, 2007 12:31 AM, yadubi <[EMAIL PROTECTED]> wrote: > > I have an application which is modeled on ajax SimpleTreePage example. > Navigation is handled by overriding > the onNodeLinkClicked of the L

Re: problems adding nodes to a BaseTree

2007-11-27 Thread Matej Knopp
Hi, problem is that you rebuild the entire tree in onBeforeRender(). onBeforeRender is invoked on every render, even when you expand/collapse a node. So you collapse a node but right afterwards you rebuild the entire tree, that's why you don't see the node being collapsed. Try moving the updateNo

Re: Manually handle post data

2007-11-27 Thread Michael Sparer
I you really wanna do this manually, this code might help you: Map map = ((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap(); regards Pills wrote: > > Hello, > > I'm using an online payement system, and it sends me some data with the > POST method (transaction completed or no

Add GET parameter to ajax call

2007-11-27 Thread Michael Sparer
I was wondering if there is an easy way to add a GET parameter to an AjaxLink. Sothat I can get the parameter out of the request's parameter map. I know there's the possibility to make a javascript function that dispatches the call (and adds the parameters) on client side and an AbstractDefaultAj

Manually handle post data

2007-11-27 Thread Pills
Hello, I'm using an online payement system, and it sends me some data with the POST method (transaction completed or not, amount payed, currency, etc...). How can I retrieve this data with wicket? Thanks a lot ;) -- View this message in context: http://www.nabble.com/Manually-handle-post-dat

Re: How do others include their browser specific styles in Wicket?

2007-11-27 Thread Sjoerd Lohuis
Hi, We get the client info the same way, but how do you prevent having to manually do (for example): page.add(HeaderContributor.forCss("_css/style.css", "screen")); if (clientProperties.isBrowserInternetExplorer()) { page.add(HeaderContributor.forCss("_css/screen_i

Re: howto JSON Wicket works?

2007-11-27 Thread Alex Objelean
When form is submitted, wicket performs a request which looks something like this: "?wicket:interface=:0:body:panel:IFormSubmitListener::". This ensures that the onSubmit method is called. But what you did with your example, is wrong, because your request is not a normal wicket request: $.post("de

Re: TabbedPanel + authorization strategy

2007-11-27 Thread Maurice Marrink
Not sure if it is of help to you, but Swarm has an example on how to do this: http://wicketstuff.org/wicketsecurity/tabs/ You probably want the hide tabs option. Source is available at https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples Maurice On Nov 27,

Re: howto JSON Wicket works?

2007-11-27 Thread Martijn Dashorst
Please look in the wicket examples to learn about Ajax forms in Wicket. You can also look at the example online: http://wicketstuff.org/wicket13/ajax/form.1 (sourcecode browser is in the top right corner) Martijn On Nov 27, 2007 8:39 AM, Pen <[EMAIL PROTECTED]> wrote: > > > I am not really und

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Gerolf Seitz
i will add a big fat notice to the class's javadoc. it wouldn't hurt either to add more examples to wicket-examples... will do so later this day... Gerolf On Nov 27, 2007 10:27 AM, Jason Anderson <[EMAIL PROTECTED]> wrote: > I had the same problem the first time i tried using the component, s

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Jason Anderson
I had the same problem the first time i tried using the component, so I would have to agree that some sort of warning would be handy On Nov 27, 2007 1:14 AM, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > hi matt, > > DateField is derived from FormComponentPanel and thus the markup should look > someth

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread Gerolf Seitz
hi matt, DateField is derived from FormComponentPanel and thus the markup should look something like this: maybe we should check that the associated tag is not an input tag, as this is a rather common pitfall, or rename DateField to DateFieldPanel, but it's most probably too late for that. Eel

Re: problems adding nodes to a BaseTree

2007-11-27 Thread Thomas Krause
Hello again, I tried to create an as simple as possible example quick start (I hope this is what you meant). The original code already would have been too bloated: http://www2.informatik.hu-berlin.de/~krause/examples/BaseTreeProblemQuickstart.zip Hopefully somebody sees where my fault is because

Re: DateField renders twice in 1.3.0-rc1

2007-11-27 Thread mraible
Changing the HTML from: To: Solved my problem. Unfortunately, there doesn't seem to be a way (from markup) to add my class classes (text small) to the input field rendered by this component. Matt mraible wrote: > > For some reason, when using the new extensions.yui.calendar.DateField, I

ListMultipleChoice to take choices model from parent

2007-11-27 Thread Gabor Szokoli
Hi there, We sometimes need a component for editing sets of arbitrary strings. We currently use a ListMultipleChoice component, whose choices model contains the actual set, and selected elements can be deleted with a button. Is there a simple way to instruct ListMultipleChoice to use the model loo

DateField renders twice in 1.3.0-rc1

2007-11-27 Thread mraible
For some reason, when using the new extensions.yui.calendar.DateField, I end up with two text fields on my page. I'm sure it's something I'm doing wrong, but I can't see the solution at 2 a.m. (and I haven't even been drinking!). ;-) Java: add(new DateField("birthday"), new ResourceModel("user.b

  1   2   >