Re: [Wicket-user] Wicket newbie - Duplicate code - what am I doing wrong?

2006-03-08 Thread Johan Compagner
we don't support scripting in html. That is not the way we want to work.What you can use is maybe a IComponentResolver where you add youre labels on the java code dynamicaly when you encouter component in the html that isn't specified in java. johanOn 3/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> w

Re: [Wicket-user] Verbosity URL issue

2006-03-08 Thread Johan Compagner
See the NiceUrl example in our examplesthat is and example how to use mountable bookmarkable urls.johanOn 3/8/06, Riyad Kalla < [EMAIL PROTECTED]> wrote: Did we answer Tim's original question though? How does he do that? :) Johan Compagner wrote: The homepage of servoy doesn&#

Re: [Wicket-user] 1.2beta1 in tomcat

2006-03-09 Thread Johan Compagner
Why oh why can't you ask for the id of a session in valueUnbound, thats just stupid.will try to fix it to hold the id of the session.johanOn 3/9/06, Ingram Chen <[EMAIL PROTECTED]> wrote: All,   I upgrade to 1.2beta1 but found session produce invalidataion error occasionally :2006/3/9 下午 04:42:13

Re: [Wicket-user] Re: 1.2beta1 in tomcat

2006-03-09 Thread Johan Compagner
yes i fixed it.But still the spec doesn't say that i can't ask for the id of the session that was invalidatedWhy give the session object with the event if you can't ask or do anything with it.thats just strange. johanOn 3/9/06, Ingram Chen <[EMAIL PROTECTED]> wrote: This happened after session expi

Re: [Wicket-user] Experiences deploying/running Wicket on GlassFish

2006-03-09 Thread Johan Compagner
I haven't tried glassfish with wicket yet, but i will have a look at it.I did look through some docs of glassfish how easy it was to setup a clusterwith 2 app servers and a balancer. But couldn't find step by step documentation So i used for that resin which is very simple to setup with a resin bal

Re: [Wicket-user] Validation of SingleSelectChoice components

2006-03-09 Thread Johan Compagner
If you add a required validator to the radiochoice doesn't that work if you don't select anything?A dropdown is can be tricky because there is most of the time a selection.So if the value of that is "" then required should also work fine. And by default our nothing selected values are "" so then th

Re: [Wicket-user] Validation of SingleSelectChoice components

2006-03-09 Thread Johan Compagner
what does a choicerenderer have to do with a required validator?johanOn 3/9/06, Bennett, Timothy (JIS - Applications) < [EMAIL PROTECTED]> wrote: I wonder if mine are blowing up because I've added ChoiceRenderers... From: Johan Compagner [mailto:[EMAIL PROTECTED]] Sen

Re: [Wicket-user] Validation of SingleSelectChoice components

2006-03-09 Thread Johan Compagner
String)FormInput.NUMBERS.get(0); If you change it to private String numberRadioChoice; so there is nodefault, and submit the form, it still says its valid.Is there something else that has to be done?On 3/9/06, Johan Compagner < [EMAIL PROTECTED]> wrote:> what does a choicerenderer have to do

Re: [Wicket-user] Validation of SingleSelectChoice components

2006-03-09 Thread Johan Compagner
that bug was only a 1.2 bug.Igor did introduce that bug "[19:24 (09-03 )] ivaynberg: i think i broke that one when i was doing all that refactoring"johanOn 3/9/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: Also in wicket 1.1.1?MartijnOn 3/9/06, Johan Compagner <[EMAIL PROT

Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)

2006-03-09 Thread Johan Compagner
when do you want that?I think 99% of all the text fields don't want trailing or leading spaces.So you can make it an options but then suddenly you have to do it the other way aroundif you do want trimming. But we can make it an option, i don't mind, i just think it is not really needed as an option

Re: [Wicket-user] Multiple page instances possible?

2006-03-10 Thread Johan Compagner
Dirk,just create the pages with the new keyword of javaso in a link or submit just do:setResponsePage(new P1(newState))johanOn 3/10/06, Dirk Markert <[EMAIL PROTECTED]> wrote: I am using latest anon cvs head.   I have a home page H with a popuplink opening page P. It is possible to have more than

Re: [Wicket-user] Role-Based AND Spring Aware WebApplication

2006-03-10 Thread Johan Compagner
i would blame sun for that ;)johanOn 3/10/06, Andrew Berman <[EMAIL PROTECTED]> wrote: Yeah, I noticed that as I looked more in the AuthenticatedWebApp class that it really doesn't do much, but the fact of the matter is that I have to copy code over to my class.  However, what happens if there is a

Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)

2006-03-10 Thread Johan Compagner
just committed it:FormComponentprotected Object convertValue(String value) throws ConversionException    {        return value != null?value.trim():null;    }so if you don't want trimming, override that method and return directly the value. I think it is a better default.We could make a global prop

Re: [Wicket-user] TextField and trimming blanks at end (and maybe at beginning)

2006-03-10 Thread Johan Compagner
textfieds without a type specified.johanOn 3/10/06, Johan Compagner < [EMAIL PROTECTED]> wrote:just committed it: FormComponentprotected Object convertValue(String value) throws ConversionException    {        return value != null?value.trim():null;     }so if you don't want trimming, ov

Re: [Wicket-user] Multiple page instances possible?

2006-03-10 Thread Johan Compagner
instances of P, page P1 and page P2, after> the link is clicked two times. > > I am getting the error later with the described sequence.>> Dirk>> 2006/3/10, Johan Compagner < [EMAIL PROTECTED]>:> > Dirk, > >> > just create the pages with the new keyword of

Re: [Wicket-user] Multiple page instances possible?

2006-03-10 Thread Johan Compagner
  changeInternalState(getModelObject());   }    ......  Dirk 2006/3/10, Johan Compagner < [EMAIL PROTECTED]>: ahh which build are you using? Because i think this is the problem i fixed and i believe it didn't make it into 1.2b1The popup closing did remove to much.Don't know exactly

Re: [Wicket-user] Multiple page instances possible?

2006-03-10 Thread Johan Compagner
tep 3. when PageMap.access() is called.    I hope I could make it clear.   Dirk  2006/3/10, Johan Compagner <[EMAIL PROTECTED]>: then i need a complete example to see what really does happen or what exactly goes wrong. At what exact time you get and error and what exactly is that error?

Re: [Wicket-user] wicket back button problem

2006-03-11 Thread Johan Compagner
we have undo support (like swing undo) So we record changes to the component tree or models (when you call modelChanging/modelChanged)and when you use the back button we rollback the changes. So that the page has the exact same state again. as before.johanOn 3/11/06, ketan gote <[EMAIL PROTECTED]>

Re: [Wicket-user] impressed w/ performance!

2006-03-11 Thread Johan Compagner
can you do these test with the current 1.2 code?there are a lot of performance enhancements in 1.2, but ofcourse there are added functionality so don't know exactly how it did turn out.johan On 3/11/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: Definitely helps, thanks much.  I've been running more

Re: [Wicket-user] Wicket community...

2006-03-11 Thread Johan Compagner
also just look at this url:https://sourceforge.net/mailarchive/forum.php?forum_id=42353can't say nothing is happening :)johan On 3/11/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: That's what I was hoping to hear!  Can't wait for 1.2 and the accompanying book! On 3/11/06, Igor Vaynberg < [EMAIL PROT

Re: [Wicket-user] query strings...

2006-03-11 Thread Johan Compagner
if you use bookmarkable pages used pageparameters like juergen pointed out.If you just use links and you do new Page() yourself.Then just hold that state on the server side likesetResponsePage(new MyPage(x,y,z)) johanOn 3/11/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: I'm still getting used to the

Re: [Wicket-user] impressed w/ performance!

2006-03-11 Thread Johan Compagner
L for my work projects but I'd like to see how different db's stack up w/ JBoss EJB3. -vOn 3/11/06, Johan Compagner <[EMAIL PROTECTED]> wrote: can you do these test with the current 1.2 code?there are a lot of performance enhancements in 1.2, but ofcourse there are added functionali

Re: [Wicket-user] Wicket community...

2006-03-11 Thread Johan Compagner
(non-javadoc) and book selection (zero to-date.) -vOn 3/11/06, Johan Compagner <[EMAIL PROTECTED]> wrote: also just look at this url:https://sourceforge.net/mailarchive/forum.php?forum_id=42353 can't say nothing is happening :)johan On 3/11/06, Vincent Jenks < [EMAIL PROT

Re: [Wicket-user] Request for a feature!

2006-03-13 Thread Johan Compagner
make youre bookmarkable url with the locale param yourself:new BookmarkablePageLink("id", MyPage.class, new PageParameters().put("locale",locale.toString()));And then in youre constructor of the page set the locale you are given. johanOn 3/12/06, nato <[EMAIL PROTECTED]> wrote: [Warning: my English

Re: [Wicket-user] getMarkupSettings().setStripWicketTags(true);

2006-03-13 Thread Johan Compagner
move that call from youre web application constructor to the init method of the webapplication.You shouldn't configure anything anymore in the constructor of youre WebApplicationAlways do everything in the init() johanOn 3/13/06, Dorel Vaida <[EMAIL PROTECTED]> wrote: this doesn't have any effect i

Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Johan Compagner
fist of all you have to do this:com -something   -component   -MyComp.java   -style.css     -images - hello.gif   or thiscom -something   -compon

Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Johan Compagner
eating a Creating a StyleSheetReference,   Map context = new HashMap(); context.put("hello.gif",new PackageResourceReference(MyComp.class, "images/hello.gif")); new StyleSheetReference("css_id", MyComp.class, "style.css",context);   thanks!     On

Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Johan Compagner
tyle.css> ---> .style1 {>  width:16px; height:22px;>  background: url($(hellogif)) ; > }> --->> and while creating a Creating a StyleSheetReference,>> Map context = new HashMap();> context.put("hello.gif",new PackageResourceReference(MyComp.class

Re: [Wicket-user] IllegalStateException in WebSession.valueUnbound 1.2beta1 on Tomcat 5.5.15

2006-03-13 Thread Johan Compagner
already fixed in head.On 3/13/06, Jerry Smith <[EMAIL PROTECTED]> wrote: Undeploying and redeploying my webapp I'm getting:java.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)atsun.reflect.NativeMethodAccessorImpl.invoke (NativeMe

Re: [Wicket-user] IllegalStateException in WebSession.valueUnbound 1.2beta1 on Tomcat 5.5.15

2006-03-13 Thread Johan Compagner
and i agreeIt is a stupid implementation or stupid spec or what everit doesn't make any sense that you get an value unboundBut can't do anything with it (just asking for stuff not setting then it can throw an error) johanOn 3/13/06, Jerry Smith <[EMAIL PROTECTED]> wrote: Undeploying and redeploying

Re: [Wicket-user] Request for a feature!

2006-03-13 Thread Johan Compagner
cale",locale.toString()));johanOn 3/13/06, nato < [EMAIL PROTECTED]> wrote:But the locale param is not bookmarkable; the param is not visible in the URL. BTW I'm using Wicket 1.2betaOn 3/13/06, Johan Compagner <[EMAIL PROTECTED]> wrote:> make youre bookmarka

Re: [Wicket-user] IAuthorizationStrategy and TabbedPanel

2006-03-14 Thread Johan Compagner
then you already did create that panelBut in my eyes the problem is earlier.. Why can you click on the link that makes that tab panel visible?The link shouldn't be there..johan On 3/14/06, R.A <[EMAIL PROTECTED]> wrote: Hi,I have a question about IAuthorizationStrategy.I create a class for authenti

Re: [Wicket-user] IAuthorizationStrategy and TabbedPanel

2006-03-14 Thread Johan Compagner
what do you want to authenticate?that it can't show that tab?As i said before that is already to late in my opinionThe link that shows that tab shouldn't be there!!  Because why give people options that they can't click on? But you can authenticatie but then you have to do that on the link click. S

Re: [Wicket-user] Re: ListMultipleChoice unable to reference all selected items

2006-03-14 Thread Johan Compagner
i don't know what his problem exactly was or if it was sovled somehow.But i dont know any problem for multi selections.See for example the FormInput example There we also have a list multiply selectSo please check what you do different. johanOn 3/14/06, Michael K <[EMAIL PROTECTED]> wrote: Hi,I 'm

Re: [Wicket-user] Location of image files

2006-03-14 Thread Johan Compagner
static PackageResourceReferences are still dangerous i think.Because the class can be loaded when not a request is happening.So then the Application object can't be found that is used inPackageResource.exists() which is called in the constructor. johanOn 3/14/06, Igor Vaynberg <[EMAIL PROTECTED]> w

Re: [Wicket-user] Location of image files

2006-03-14 Thread Johan Compagner
what you could pass is the resource reference itself.Also look at the wicket.properties and the IInitializer interface to intialize all youre imagesjohanOn 3/14/06, Frank Silbermann <[EMAIL PROTECTED]> wrote: It's not that I want the images to be served from a .jar; I just want th

Re: [Wicket-user] Authentication

2006-03-14 Thread Johan Compagner
are these static pages just in the webroot?if so then you can just have links to them in youre dynamic/wicket pagesAnd through a Filter you test if they are also logged in (puur for those static pages) On 3/14/06, Steve Thompson <[EMAIL PROTECTED]> wrote: I'm trying to understand authentication in

Re: [Wicket-user] FormInputModel not found?

2006-03-14 Thread Johan Compagner
you can use youre entity beans directly in one of the Model objects of wicket.so something likeForm form = new Form("myform", new CompoundPropertyModel(myEntityBean)));form.add(new TextField("propertyOfEntityBean")); and then in the html you have that form and that text fieldjohanOn 3/14/06, Vincen

Re: [Wicket-user] setResponsePage() to a mounted link

2006-03-15 Thread Johan Compagner
redirect again to a bookmarkable/mounted page:add(new Link("toEnglishLink")                {                    public void onClick()                    {                        getSession().setLocale( Locale.ENGLISH );    setResponsePage(MyPage.class)                    }    

Re: [Wicket-user] validating input

2006-03-15 Thread Johan Compagner
I guess we could do that somehow. But then we need to specify that somehow in youre IModel interface.so instead of getObject(Component) we also should have getType(Component)That will effect a lot of things. johanOn 3/15/06, Andre Matheus <[EMAIL PROTECTED]> wrote: Why can't wicket discover the typ

Re: [Wicket-user] setResponsePage() to a mounted link

2006-03-15 Thread Johan Compagner
ROTECTED]> wrote: On Wed, 2006-03-15 at 10:34 +0100, Johan Compagner wrote:> redirect again to a bookmarkable/mounted page: >> add(new Link("toEnglishLink")>{>public void onClick()>{>

Re: [Wicket-user] setResponsePage() to a mounted link

2006-03-15 Thread Johan Compagner
hanks for your patience,Dave-Original Message- From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]]On Behalf Of Johan Compagner Sent: 15 March 2006 19:25To: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] setResponsePage() to a mounted linkI did say this for a reason: setResponsePag

Re: [Wicket-user] wicket:1.1.1 error unknown interface IOnChangeListener?

2006-03-15 Thread Johan Compagner
if you first touch a DropDownChoice class before you use a RadioChoiceis then everything fixed?in 1.2 this is completely fixed because we register all interfaces upfront instead of when we touch a component class. johanOn 3/15/06, Nino Wael <[EMAIL PROTECTED]> wrote: Hi I'vecreated a control which

Re: [Wicket-user] formatting

2006-03-15 Thread Johan Compagner
thats plain java. You could use a converter for that.johanOn 3/15/06, Vincent Jenks <[EMAIL PROTECTED] > wrote:formatting displayed valuesdollars, number of decimal points, dates, etc. On 3/15/06, Igor Vaynberg < [EMAIL PROTECTED] > wrote:formatting? -IgorOn 3/15/06, Vincent Jenks < [EMAIL PR

Re: [Wicket-user] validating input

2006-03-15 Thread Johan Compagner
ase add a feature request to our > > > SF tracker, we'll consider it for Wicket 1.3> > >> > > Eelco> > >> > >> > > On 3/15/06, Andre Matheus < [EMAIL PROTECTED]> wrote:> > > > I agree it will effect lots of things, but in the other sid

Re: [Wicket-user] basic CompoundPropertyModel problem

2006-03-15 Thread Johan Compagner
can you follow in the debugger where Label.onComponentTagBody() and then the call getModelObjectAsString()is going to and what model is taken from the parent?johanOn 3/15/06, karthik Guru <[EMAIL PROTECTED]> wrote: Ok its pretty basic but I havent been able to figure out why i am not able to get C

Re: [Wicket-user] Problems migrating my old web application to Wicket

2006-03-15 Thread Johan Compagner
no the layout page has all that common stuff. And it injects the static part into itself from the static pages.johanOn 3/16/06, Matthias Albert <[EMAIL PROTECTED]> wrote:Igor Vaynberg schrieb: > i would create a page that has the layout, add a label to that page with> a model that streams the appr

Re: [Wicket-user] Overriding onRender() for BookmarkablePageLink

2006-03-16 Thread Johan Compagner
you can use setEnabled just fine.But not in the render phase. That should be done in the onclick or something like that.johanOn 3/16/06, Gili <[EMAIL PROTECTED]> wrote: Playing devil's advocate here: so what's the point/benefit ofpreventing a call to setEnabled() if one can override isEnab

Re: [Wicket-user] Resource not found: Enable debug messages?

2006-03-16 Thread Johan Compagner
you still have the package structure in the content dir?That is still a requirement or else you have to do the resource loading completely yourselfjohanOn 3/16/06, Matthias Albert <[EMAIL PROTECTED]> wrote:Thanks, that helped. I changed the wrong file. Now I still have to analyse the messages. I m

Re: [Wicket-user] Starting download after form submission [Wicket 1.1.1]

2006-03-17 Thread Johan Compagner
don't use redirect to buffer strategy. but REDIRECT_TO_RENDER or ONE_PASS_RENDERin 1.1 the headers don't work in redirect_to_buffer.johanOn 3/17/06, Timo Stamm <[EMAIL PROTECTED]> wrote: Thanks Igor, I like this suggestion:add(new Link("export-link") {onclick() {getRequestCycle().setRe

Re: [Wicket-user] Examples of model decorators

2006-03-17 Thread Johan Compagner
you could also use youre own converter for this.On 3/16/06, Frank Silbermann <[EMAIL PROTECTED] > wrote: Are there any examples of model decorators I could look at?  I have a model that consists of one of several code values, and I would like a label to automatically display a tex

Re: [Wicket-user] wicket 1.1.1: specifiying style on radiochoice or dropdownchoice

2006-03-17 Thread Johan Compagner
don't know currently for 1.1.1 but in 1.2 we have selection change support in RadioGroup.johanOn 3/17/06, Nino Wael < [EMAIL PROTECTED]> wrote:On my RadioChoice I make use of the onSelectionChanged, I cant find a method to do this on Radio/RadioGroup so I guess I need to implement this aswell? -Nin

Re: [Wicket-user] wicket 1.1.1: specifiying style on radiochoice or dropdownchoice

2006-03-17 Thread Johan Compagner
possible to get a status on that?Im in the midst of developing could I just switch to 1.2?-Oprindelig meddelelse-Fra: [EMAIL PROTECTED] på vegne af Johan CompagnerSendt: fr 17-03-2006 11:05Til: wicket-user@lists.sourceforge.netCc: Emne: Re: [

Re: [Wicket-user] Wierd Span Tag in Ajax and WebMarkupContainer

2006-03-17 Thread Johan Compagner
there are for firefox a lot of plugins like dom inspector or view formatted sourcewhich generated the source from the dom so that you see it how it is now in the browser.johan On 3/17/06, Ali Zaid <[EMAIL PROTECTED]> wrote: Hi guys;I have something strange happening wicket 1.2 beta 1I have a WebMar

Re: [Wicket-user] objects in session

2006-03-17 Thread Johan Compagner
don't forget to call dirty() method on the session object when you change a value of the session:    public void setUser(User user)    {        this.user = user;     dirty();    }johanOn 3/17/06, Vincent Jenks <[EMAIL PROTECTED] > wrote:Yep, my mistake, thanks!  It works fine.  I guess it'll ta

Re: [Wicket-user] Wicket 1.2 issue with CompoundPropertyModel

2006-03-17 Thread Johan Compagner
first of all this is a bit strange usage of the CompoundPropertyModelBut i guess it still should work.What i would do is give the ListItem the CompoundPropertyModelAnd then don't give any models to the labels something like this: PageableListView employees = new PageableListView("employees", employ

Re: [Wicket-user] objects in session

2006-03-17 Thread Johan Compagner
?  The Javadoc just says it marks the session as dirty...does this mean it will be cleaned up automatically? On 3/17/06, Johan Compagner <[EMAIL PROTECTED]> wrote: don't forget to call dirty() method on the session object when you change a value of the session:    public void

Re: [Wicket-user] wicket 1.1.1: specifiying style on radiochoice or dropdownchoice

2006-03-17 Thread Johan Compagner
.2 is more mature?Will 1.2 be released w/ a decent change log of differences between 1.1.1 and 1.2?Thanks! On 3/17/06, Nino Wael < [EMAIL PROTECTED]> wrote:Ok, thanks. That sound perfect.-regards Nino -Oprindelig meddelelse-Fra: [EMAIL PROTECTED] på vegne af Johan

Re: [Wicket-user] Editable Labels : How to

2006-03-17 Thread Johan Compagner
come on guys.. request more features you see that igor will implement them all right away!johanOn 3/17/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:i was taking a short break from work, and thought what the hell, why not write one? so i did, only took me half an hour or so. i just checked it into e

Re: [Wicket-user] Re: Re: Common Pitfall for Ajax Users in Wicket

2006-03-17 Thread Johan Compagner
didn't we now have a feature that we don't have to add the component on the wicket side?so you can just do:   ...and in the rerender component you just give the id it should replace and the real component I thought this was in by request of martijn.johanOn 3/17/06, Nathan Hamblen <[EMAIL PROTECTED]

Re: [Wicket-user] objects in session

2006-03-17 Thread Johan Compagner
d...  I changed the way I'm accessing the session per Igor's instructions so it now is called like so: UserSession us = (UserSession)getSession();Any ideas?On 3/17/06, Johan Compagner <[EMAIL PROTECTED] > wrote:no it means that the session will be replicated when you use clusteri

Re: [Wicket-user] Re: Re: Common Pitfall for Ajax Users in Wicket

2006-03-17 Thread Johan Compagner
components ... is that legal xhtml?johanOn 3/17/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: indeed we do, but when you use repeaters/panels it is hard to have a hardcoded id that is unique :) -IgorOn 3/17/06, Johan Compagner < [EMAIL PROTECTED]> wrote:didn't we now have a feature t

Re: [Wicket-user] Authentication and redirectToInterceptPage

2006-03-17 Thread Johan Compagner
see the LibraryExample:getSecuritySettings().setUnauthorizedComponentInstantiationListener(new IUnauthorizedComponentInstantiationListener()        {            public void onUnauthorizedInstantiation(final Component component)             {                // If there is a sign in page class declar

Re: [Wicket-user] objects in session

2006-03-17 Thread Johan Compagner
n go to a "protected" page. I looked at the signin examples in wicket-examples and it doesn't really answer my question...it's too small to go to the length I've gone to in my example.Does this clarify where I'm having trouble?  Thanks again for the help! On 3/17/06, Joh

Re: [Wicket-user] Label display for null values

2006-03-17 Thread Johan Compagner
use youre own converter?How do you want them to be displayed?johanOn 3/17/06, Steve Knight <[EMAIL PROTECTED] > wrote:Hello,How can I change how null values are displayed in Labels? Thanks,Steve

Re: [Wicket-user] Re: Wicket 1.2-beta2 available for download

2006-03-19 Thread Johan Compagner
please make a bug report with some sample code.On 3/19/06, Nathan Hamblen <[EMAIL PROTECTED]> wrote: Did url mounting change? I was using IndexedParamUrlCodingStrategy withbeta1 but now my bookmarkable URLs are getting generated as if I were using the default strategy, like /mountpath/0/21 since I

Re: [Wicket-user] Re: Wicket 1.2-beta2 available for download

2006-03-19 Thread Johan Compagner
i think it was you..On 3/20/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: why you gotta break stuff johan!On 3/19/06, Johan Compagner <[EMAIL PROTECTED]> wrote: please make a bug report with some sample code.On 3/19/06, Nathan Hamblen <[EMAIL PROTECTED]> wrote: Did url moun

Re: [Wicket-user] Wicket Beta 2 Ajax Broken !

2006-03-20 Thread Johan Compagner
but if you use setRenderBodyOnly(true) on a labelhow can you target it for a ajax update at the first place?On 3/20/06, Matej Knopp < [EMAIL PROTECTED]> wrote:Sorry, my bad.setRenderBodyOnly, not setStripWicketTags. the problem is for example having  Span bodythe entire tag is replaced by new span

Re: [Wicket-user] why create new page instances ?

2006-03-20 Thread Johan Compagner
you can reuse pages just fine for one session ofcourse if you want.So in youre BookList you hold on to an internal page BookDetails or EditBook pageAnd when you click on a view/edit link you just reuse that page. I wouldn't share pages across sessions. johanOn 3/20/06, ali <[EMAIL PROTECTED] > wrot

Re: [Wicket-user] Selecting an item in a DropDownChoice

2006-03-20 Thread Johan Compagner
if you use new ChoiceRenderer(displayExpression) only then the id value (how we know what is selected) is the current index.But in youre case it should be the id of the function so i guess you have to have something like: add(new DropDownChoice("function", functions, new ChoiceRenderer("name","id")

Re: [Wicket-user] New features Wicket 1.2

2006-03-20 Thread Johan Compagner
One warning don't do this:@SecuredWicketPage public class EditAccountPage extends Template{    private String repeatedPassword;    @SpringBean        private AccountService accountService = null;     public EditAccountPage() {        Form form = new Form("form", new CompoundPropertyModel(this))

Re: [Wicket-user] wicket 1.2 beta 2 RadioGroup selecting a default

2006-03-21 Thread Johan Compagner
just set the right model value that you want to select first on the radiogroup.it is the exact same object as the radio group would have.So the model object of the radiogroup have to be te same as what you give the radio. johanOn 3/21/06, Nino Wael <[EMAIL PROTECTED]> wrote: Hi IgorI cant find that

Re: [Wicket-user] why create new page instances ?

2006-03-21 Thread Johan Compagner
i want suppose can EditBook be is singleton .> new Link("editLink") { > protected void onClick() {> Book book = (Book)getParent().getModelObject(); > setResponsePage(new EditBook(book));> }> }>> Should work.>> Martijn>> On 3/20/06,

Re: [Wicket-user] Wicket Auth Roles

2006-03-21 Thread Johan Compagner
fixed it. Moved the settings access to the init() methodOn 3/21/06, Marieke Vandamme <[EMAIL PROTECTED] > wrote: Hello, I'm having problems running the wicket-auth-roles-examples-1.2-beta2. The following stacktrace occurs : wicket.WicketRuntimeException: Use Application.init() method for config

Re: [Wicket-user] tomcat with reloadable context

2006-03-21 Thread Johan Compagner
you should try to hotswap the classes.But i don't get why that doesn't happen for you because if you change a class in eclipse the debugger should just push the classto youre tomcat (that you start in debug mode) and it should only hotswap that class. Use context reloading only if you really have t

Re: [Wicket-user] How do I replace ExceptionErrorPage ?

2006-03-22 Thread Johan Compagner
that doesn't really replace our exception page when in development mode.The best thing to do is implement/override RequestCycle.onRuntimeException()johanOn 3/22/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: take a look at IApplicationSettings.setIneternalErrorPage()-Igor On 3/22/06, Ingram Chen <[E

Re: [Wicket-user] Switching to https

2006-03-22 Thread Johan Compagner
the only thing i can think of right now is use the ExternalLink to specify the full url where you want to move to johanOn 3/21/06, John Patterson <[EMAIL PROTECTED]> wrote:Hi, Is there a standard way to handle switching between http and https?Thanks,John.---

Re: [Wicket-user] How do I replace ExceptionErrorPage ?

2006-03-22 Thread Johan Compagner
o try deploy mode again.Thanks On 3/22/06, Johan Compagner <[EMAIL PROTECTED]> wrote: that doesn't really replace our exception page when in development mode.The best thing to do is implement/override RequestCycle.onRuntimeException() johanOn 3/22/06, Igor Vaynberg <[EMAIL PROTE

Re: [Wicket-user] Some wicket tag questions

2006-03-22 Thread Johan Compagner
you should not look at the markup exception but the cause of this because i see this line: jteam.wickettest.site.components.EmployeeTree.(java.lang.String)so something goes wrong in the initialize phase/constructor of youre employeetree component.johan On 3/21/06, Tom van Zummeren <[EMAIL PROTECTED

Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Johan Compagner
See DynamiceByteArrayResourceThen you can do the load lazy. Only when the link is clicked.johanOn 3/22/06, Mats Norén < [EMAIL PROTECTED]> wrote:On 3/22/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:> That's not the preferred way of working though. If you want to play> nice with the framework, you

Re: [Wicket-user] Switching to https

2006-03-22 Thread Johan Compagner
there only will be 2 scenario's if you want to go from non secure to secure.(or back but then you really have to know that)first again through an external link (or youre own link impl like martijn described) Or have youre own IRequestTarget (wicket 1.2) like: RedirectToSecurePageTarget(Class pageCl

Re: [Wicket-user] validation in wicket framework

2006-03-22 Thread Johan Compagner
use a regexp see PatternValidator.johanOn 3/22/06, ketan gote <[EMAIL PROTECTED]> wrote: hi i am looking for validation of the username wich will take only character's. wating for reply... ketan

Re: [Wicket-user] Writing to outputstream (Trying to do export)

2006-03-22 Thread Johan Compagner
?On 3/22/06, Johan Compagner <[EMAIL PROTECTED]> wrote:> See DynamiceByteArrayResource > Then you can do the load lazy. Only when the link is clicked.>> johan>>>> On 3/22/06, Mats Norén < [EMAIL PROTECTED]> wrote: > > On 3/22/06, Eelco Hillenius < [EMAIL

Re: [Wicket-user] wicket.markup.html.form.FormComponent and wicket.markup.html.form.Form

2006-03-22 Thread Johan Compagner
if you don't sit in a form then the selection change still works in the browser and we just do a get request (location.href)If you are in a form then the forms submit is used.johan On 3/22/06, Frank Silbermann <[EMAIL PROTECTED]> wrote: I created a page using a DropDownChoice, over

Re: [Wicket-user] possible bug - wicket 1.2 beta2

2006-03-23 Thread Johan Compagner
you have to implement:protected String newValue(final String currentValue, final String replacementValue)    {        return replacementValue;    }from the attribute modifier and concat the currentValue with the old On 3/23/06, Dorel Vaida <[EMAIL PROTECTED]> wrote: Can anyone check if this is a bu

Re: [Wicket-user] question about date format for textfield

2006-03-23 Thread Johan Compagner
you have to test to which class the converter wants to go to:         public Object convert(Object o, Class c)         {      try    {     if(c == String.class)  

Re: [Wicket-user] CompoundPropertyModel in 1.2-beta2

2006-03-23 Thread Johan Compagner
yes this is wrong.I don't know why that worked in 1.1 because i also believe it shouldn't have worked there also but maybe this behaviour was onlyintroduced in 1.2If you give the component its onw model. Then that component is the Root model object And if that is the case a getModelObject() call t

Re: [Wicket-user] displaying java.sql.Timestamp

2006-03-23 Thread Johan Compagner
add youre own type converter to the Converter of wicket for timestamp.classpublic ITypeConverter set(final Class c, final ITypeConverter converter)johanOn 3/23/06, Frank Silbermann <[EMAIL PROTECTED]> wrote: I have an application that displays an arbitrary java.sql.ResultSet in a

Re: [Wicket-user] Force session invalidate after render error page ?

2006-03-24 Thread Johan Compagner
in youre constructor of that error page:setRedirect(false);getSession().invalidate();johanOn 3/24/06, Ingram Chen <[EMAIL PROTECTED]> wrote: Dear all,   My yet another question about error handling. Is it possible to force session invalidate after render global error page ? My reasonfor this is if

Re: [Wicket-user] Deal with specific exception

2006-03-24 Thread Johan Compagner
that should work fine. except ofcourse if youre exception page also throws an exception again somehow.johanOn 3/24/06, Ingram Chen < [EMAIL PROTECTED]> wrote: Dear all,   I want to catch a specific RuntimeException and then redirect to a special error page (not global one), I try to do this:    @Ov

Re: [Wicket-user] Force session invalidate after render error page ?

2006-03-24 Thread Johan Compagner
RestartResponseException( MyErrorPage.class)Then if youre error page is stateless (no call backs with links or forms) then no session will be created in the redirect that does happen.johanOn 3/24/06, Ingram Chen <[EMAIL PROTECTED]> wrote: This doesn't work. I still got expired page. On 3/24/06, Johan Compagn

Re: [Wicket-user] Deal with specific exception

2006-03-24 Thread Johan Compagner
Add a bug in our bug system with a reproduceable testcase attached.johanOn 3/24/06, Ingram Chen <[EMAIL PROTECTED] > wrote:My exception page is blank, just a page with some static html. I could'nt imagine it will throw any exception...On 3/24/06, Johan Compagner < [EMAIL PROTECTE

Re: [Wicket-user] DropDownChoice.wantOnSelectionChangedNotifications() dosn't work on 1.2_beta2 ?

2006-03-24 Thread Johan Compagner
do you have anywhere in the page another "navomaticBorder:form" ??Because that is the id the form did get: /homepage?wicket:interface=:1:navomaticBorder:form::IFormSubmitListener" wicket:id="form" method="post" id="navomaticBorder:form">so this: document.getElementById ('navomaticBorder:form').subm

Re: [Wicket-user] DropDownChoice.wantOnSelectionChangedNotifications() dosn't work on 1.2_beta2 ?

2006-03-24 Thread Johan Compagner
form", I attach whole HTML. Johan Compagner wrote: do you have anywhere in the page another "navomaticBorder:form" ?? Because that is the id the form did get: /homepage?wicket:interface=:1:navomaticBorder:form::IFormSubmitListener" wicket:id="form" met

Re: [Wicket-user] Java Web Framework Sweet Spots

2006-03-25 Thread Johan Compagner
Like reading the statements of others:Jacob (JSF): "Tapestry: For a component framework, it still sticks to the page/action paradigm, Because JSF isn't tied to the action/page paradigm, parts of the component tree can be agnostically processed without requiring special cases/development."is this re

[Wicket-user] Re: gnarly form model issue

2006-03-26 Thread Johan Compagner
why would you do that? why not let wicket handle all type conversions? and you only work with the real types? if you make a model with just strings then you have youre stri ngs and you can call wicket.Request.getParameters() to get a map with the key value pairs On 3/26/06, Vincent Jenks <[EMAIL

Re: [Wicket-user] Java Web Framework Sweet Spots

2006-03-27 Thread Johan Compagner
tsheeejust don't sleep.On 3/27/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: I'm sure not everyone agrees to that ;). Honestly, I'd like to playwith Ruby some more. Though I am more intersted in Ruby than RoR, andthere seem to be a few other Ruby frameworks which look interesting.Otoh, I'm pretty

Re: [Wicket-user] How do I replace ExceptionErrorPage

2006-03-27 Thread Johan Compagner
just try to debug it.We do try to catch those things where an error page also goes wrong again. So that we don't se twice the same error page.johanOn 3/27/06, Frank Silbermann <[EMAIL PROTECTED]> wrote: > try> > getApplicationSettings().setInternalErrorPage();> > Call it in the in

Re: [Wicket-user] Java Web Framework Sweet Spots

2006-03-28 Thread Johan Compagner
I guess with aspectj these kind of things could be injected?On 3/28/06, Jonathan Locke <[EMAIL PROTECTED] > wrote:i'm not on the user list right now so maybe you can forward... a couple of clarifications below...    jonathanOn 3/27/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote: i cant speak for HLS

Re: [Wicket-user] WebApplicationPath and servlet resources

2006-03-28 Thread Johan Compagner
is it really a servlet resource or just a file on disk?Because if it is a servlet resource you need something like a request dispatcher or open an url to it.Because else the servlet is not invoked.johan On 3/28/06, Matthias Albert <[EMAIL PROTECTED]> wrote: What must be done inside a WebPage object

<    5   6   7   8   9   10   11   12   13   14   >