Re: inmethod / grid website?

2008-10-29 Thread Nino Saturnino Martinez Vazquez Wael
It would be great if you could write a bit about it on wicketstuff wiki.. And which license are it under? It looks really cool btw. Matej Knopp wrote: There is branch for Wicket 1.3 in Wicketstuff SVN. -Matej On Wed, Oct 29, 2008 at 10:41 PM, Edvin Syse <[EMAIL PROTECTED]> wrote: What ve

Re: improved resource bundles in 1.4

2008-10-29 Thread Nino Saturnino Martinez Vazquez Wael
Yeah, really cool:) Igor Vaynberg wrote: i just committed a patch for WICKET-1103 which greatly improves i18n in wicket. first: you can have validators provide their own bundles. eg MyValidator.properties that is next to MyValidator.java. These keys are searched last - after the application.pro

Re: improved resource bundles in 1.4

2008-10-29 Thread Jeremy Thomerson
Awesome! Thanks!! -- Jeremy Thomerson http://www.wickettraining.com On Thu, Oct 30, 2008 at 1:00 AM, Igor Vaynberg <[EMAIL PROTECTED]>wrote: > i just committed a patch for WICKET-1103 which greatly improves i18n in > wicket. > > first: you can have validators provide their own bundles. eg > M

improved resource bundles in 1.4

2008-10-29 Thread Igor Vaynberg
i just committed a patch for WICKET-1103 which greatly improves i18n in wicket. first: you can have validators provide their own bundles. eg MyValidator.properties that is next to MyValidator.java. These keys are searched last - after the application.properties - which will allow you to override v

Re: JFreeChart component

2008-10-29 Thread James Carman
Yeah, I didn't notice the clickable requirement. That's pretty cool. I'm going to have to check it out. On Wed, Oct 29, 2008 at 5:19 PM, jwray <[EMAIL PROTECTED]> wrote: > > > Err, sort of confused about the last few messages. > > I submitted the component as I thought it would be useful for othe

Re: inmethod / grid website?

2008-10-29 Thread Matej Knopp
There is branch for Wicket 1.3 in Wicketstuff SVN. -Matej On Wed, Oct 29, 2008 at 10:41 PM, Edvin Syse <[EMAIL PROTECTED]> wrote: > What version of Wicket is this compiled against? I tried using it with > 1.3.5 and it seems AbstractGrid is trying to call a method called init in > org.apache.wick

Re: Using wicket to create html (in replace of velocity templates)

2008-10-29 Thread Scott Swank
Have you seen: http://cwiki.apache.org/confluence/display/WICKET/FAQs#FAQs-HowcanIrendermytemplatestoaString%3F Scott On Wed, Oct 29, 2008 at 3:58 PM, fatefree <[EMAIL PROTECTED]> wrote: > > I was working on a velocity template and came into some internationalization > problems, when I realized

Re: IE7 ignores AjaxButton onSubmit when I use the keyboard enter key

2008-10-29 Thread mallet
I tried as you suggested, but it gives me the 404 error in IE again. The browser bar in the 404 window has these parameters in it, after I typed asdfasdf and hit enter: ?pnList%3A0%3Aorders%3A0%3ApasswordModal%3Acontent%3Aform%3Apassword=asdfasdf I can put an alert('hi') in place of document.get

Using wicket to create html (in replace of velocity templates)

2008-10-29 Thread fatefree
I was working on a velocity template and came into some internationalization problems, when I realized it would be great if I could just use wicket to do this. After all, its practically doing the same thing, merging some model object into an html output. Ideally i'd love to use stateless page cl

Re: IE7 ignores AjaxButton onSubmit when I use the keyboard enter key

2008-10-29 Thread Igor Vaynberg
if (wicketKeyCode(event) == 13) { document.getelementbyid('myajaxbuttonsid').onclick(); } -igor On Wed, Oct 29, 2008 at 2:34 PM, mallet <[EMAIL PROTECTED]> wrote: > > Igor, > > Thanks for your reply. Here's what I did: > > PasswordTextField passwordTextField = new > PasswordTextField("pas

Re: inmethod / grid website?

2008-10-29 Thread Edvin Syse
What version of Wicket is this compiled against? I tried using it with 1.3.5 and it seems AbstractGrid is trying to call a method called init in org.apache.wicket.MetaDataKey, which doesn't exist. -- Edvin Martin Grigorov skrev: Jars: http://wicketstuff.org/maven/repository/com/inmethod/ Demo

Re: Saving panel state

2008-10-29 Thread Igor Vaynberg
there are two ways. either you keep a private final String uuid=UUID.randomUUID().toString() in your collapsable panel, or you use a model for the boolean value whose getobject lets you delay the need to retrieve the boolean until render time. -igor On Wed, Oct 29, 2008 at 2:24 PM, jchappelle <[

Re: IE7 ignores AjaxButton onSubmit when I use the keyboard enter key

2008-10-29 Thread mallet
Igor, Thanks for your reply. Here's what I did: PasswordTextField passwordTextField = new PasswordTextField("password", new Model()); passwordTextField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") { @Override public void onComponentTag(ComponentT

Saving panel state

2008-10-29 Thread jchappelle
I have some reused panels that have a custom built CollapsiblePanelHeader component in them. I would like to save the boolean value of whether it is collapsed or not within the Session object. I had it working for a while by using a Map in the Session with the panel's classname as the key and the

Re: JFreeChart component

2008-10-29 Thread jwray
Err, sort of confused about the last few messages. I submitted the component as I thought it would be useful for other people, and from the emails I've got I guess it was. When I had the need to implement a clickable chart a few weeks ago I looked around for an existing solution, and found non

Re: Back-button Page instance cloning issue

2008-10-29 Thread Sean W
Ah, I get It. I thought we could count on direct object references to the application level for at least the duration of the user session, but now i see it's not a good idea, especially if you want proper back-button functionality & serialization. LoadableDetachableModel sounds good, thanks. igo

Re: Page Markup Inheritance Problem...

2008-10-29 Thread Nino Saturnino Martinez Vazquez Wael
Ahh, and in my mind It just goes hand in hand with classes which are not final:) I guess different mindsets.. So my idea is that if you can extend something you place in wicket:child. and if not you leave it out. James Carman wrote: In my mind, I think of like an abstract method in an abst

Re: Back-button Page instance cloning issue

2008-10-29 Thread Igor Vaynberg
wicket can clone your model objects for versioning or serialize the entire page to disk. it is not a good idea to hold direct references to object's whose lifecycle is independent of wicket components, for that you should use loadabledetachablemodel or something like it. -igor On Wed, Oct 29, 200

Re: IE7 ignores AjaxButton onSubmit when I use the keyboard enter key

2008-10-29 Thread Igor Vaynberg
easiest thing is to simply disable the enter key on the textfield by override onkeydown -igor On Wed, Oct 29, 2008 at 1:04 PM, mallet <[EMAIL PROTECTED]> wrote: > > I have a ModalWindow containing a class extending Panel. On the Panel I have > a class extending Form. > The Form contains a custom

Back-button Page instance cloning issue

2008-10-29 Thread Sean W
Greetings, I have spent a couple days trying to fix this issue, any help would be appreciated: Action sequence: 1. User of my application loads a wicket/html form page 2. User clicks a link and goes to another page 3. User clicks the browser's BACK button 4. User edits form's content and clicks

Re: IE7 ignores AjaxButton onSubmit when I use the keyboard enter key

2008-10-29 Thread mallet
FYI, I did try some of the suggestions in here but to no avail: http://www.nabble.com/Form-Enter-Key-Problem-td14408121.html Also I have investigated using some custom JavaScript manipulate IE, but I would like to avoid a messy solution like that if possible. -- View this message in context: ht

IE7 ignores AjaxButton onSubmit when I use the keyboard enter key

2008-10-29 Thread mallet
I have a ModalWindow containing a class extending Panel. On the Panel I have a class extending Form. The Form contains a custom AjaxButton which overrides protected void onSubmit(AjaxRequestTarget target, Form form). When I click this button it retrieves text from a PasswordField and validates i

Re: Page Markup Inheritance Problem...

2008-10-29 Thread James Carman
In my mind, I think of like an abstract method in an abstract superclass. That's why I find it a bit weird. On Wed, Oct 29, 2008 at 3:31 PM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > I dont find it a bit wierd.. It just means that you've prepped the class for > inheritanc

Re: Page Markup Inheritance Problem...

2008-10-29 Thread Nino Saturnino Martinez Vazquez Wael
I dont find it a bit wierd.. It just means that you've prepped the class for inheritance (by telling wicket that markup should be inserted where wicket:child are), so that if someone comes along latter and extends your component they are allowed todo so:) I actually think this is a very nice f

Re: Migration to 1.4 - generic headache

2008-10-29 Thread Nino Saturnino Martinez Vazquez Wael
Yeah I for one would defiantly hate for compound model to go away..:( But I guess one could come along away with propertymodel and when we get the proxybase model aproach in it could be okay. [1] https://issues.apache.org/jira/browse/WICKET-1327 James Carman wrote: Those are definitely sti

Re: JFreeChart component

2008-10-29 Thread Nino Saturnino Martinez Vazquez Wael
Theres no problem.. The guy just implemented a clickable chart, and wanted to share.. James Carman wrote: I wasn't giving a place to put stuff. I was just offering up an alternative solution to the problem. I don't let anyone put stuff in my SVN! :) On Wed, Oct 29, 2008 at 12:07 PM, Nino Sat

Re: Feedback Panel on Modal Window With Field Validation does not work

2008-10-29 Thread sureshramakrishnaiah
Ok found the solution myself, The problem was In the AjaxFallBackButton I had not overriden the onError() method, here's the solution added, onError(AjaxTarget target, Form form) { target.addComponent(feedbackPanel); } sureshramakrishnaiah wrote: > > I tried with a modal window and page, st

Re: Feedback Panel on Modal Window With Field Validation does not work

2008-10-29 Thread sureshramakrishnaiah
I tried with a modal window and page, still no luck, I do see validation happening in the server but I don't see that response coming back to the client 12:20:12,263 DEBUG [ComponentStringResourceLoader] Found resource from: org/apache/wicket/Application.properties; key: R equired 12:20:12,263

RE: Compatibility of objectautocomplete

2008-10-29 Thread Kai Mütz
Maybe I have found another solution using the standard AutoCompleteTextField and a custom converter by overwriting getConverter(): public IConverter getConverter(final Class type) { return new MyAutoCompleteConverter(); } private class MyAutoCompleteConverter implements IConverter {

Re: LazyInit error with LDM in a panel

2008-10-29 Thread Igor Vaynberg
that looks fine. is the myservice serializable? do you see any serialization errors in the log. if load() is not called then detach() is not called, that means you are removing the model or the component that contains it after getobject() has been called but before detach() was and you are somehow

Re: LazyInit error with LDM in a panel

2008-10-29 Thread Neil McT
Its probably not fool-proof, but it has worked fine up till now public class MyLDM extends LoadableDetachableModel{ private MyServiceIF modelLoaderService; private Long id; /** * Constructor. * * @param object the model to make 'detac

Re: Migration to 1.4 - generic headache

2008-10-29 Thread James Carman
Those are definitely sticking points. I guess we'll just have to evaluate what is better for the framework. These two features are definitely convenient. On Wed, Oct 29, 2008 at 11:59 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > its not just compound > we have 2 special cases for this: > ICo

Re: LazyInit error with LDM in a panel

2008-10-29 Thread Igor Vaynberg
what is your ldm implementation look like? and yes, delayed construction is always the way to go. -igor On Wed, Oct 29, 2008 at 7:44 AM, Neil McT <[EMAIL PROTECTED]> wrote: > > Hi, > > I've got the above problem which I have boiled down to the following basic > example. > > MyPage references

Re: AutoCompleteTextField "type mismatch" in line 227

2008-10-29 Thread Igor Vaynberg
jira, patch, etc... the mailing list is not a good place to report bugs. -igor On Wed, Oct 29, 2008 at 7:40 AM, Shailesh Verma <[EMAIL PROTECTED]> wrote: > > I am using wicket-extensions v 1.3.5 and see the javascript "Type Mismatch" > error on Line 287 of wicket-autocomplete.js. This error comes

Re: Migration to 1.4 - generic headache

2008-10-29 Thread Johan Compagner
just dont write those! On Wed, Oct 29, 2008 at 5:18 PM, Igor Vaynberg <[EMAIL PROTECTED]>wrote: > yes, the inherited will have to most likely go away - but that is > there only for the CPM. > > the icomponentassignedmodel is already broken if a component has more > then one model because you have

Re: Upload exceeds maxsize error comes AFTER upload has finished

2008-10-29 Thread Igor Vaynberg
this is how posts work. we do not get control until the browser has processed the entire request. at least afaik. if you want to fix it you will have to write a custom servlet that processes uploads, and not use the standard POST mechanism. -igor On Wed, Oct 29, 2008 at 7:40 AM, lodewijkdans <[E

Re: Migration to 1.4 - generic headache

2008-10-29 Thread Igor Vaynberg
yes, the inherited will have to most likely go away - but that is there only for the CPM. the icomponentassignedmodel is already broken if a component has more then one model because you have to manually call wrap() on those anyways...lately ive been writing a lot of components that take more then

Re: DataTable cell link

2008-10-29 Thread dlipski
That was the solution I was looking for. I havent know that it is possible to do thinks that way ! I supose that I have to override newCellItem and newRowItem method in DataTable class and return ClickableItem instead of Item. Good to know that it is possible to do this in standard Wicket way wi

Re: JFreeChart component

2008-10-29 Thread James Carman
I wasn't giving a place to put stuff. I was just offering up an alternative solution to the problem. I don't let anyone put stuff in my SVN! :) On Wed, Oct 29, 2008 at 12:07 PM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > James, slow down (and read the thread) :) > > The gu

Re: JFreeChart component

2008-10-29 Thread Nino Saturnino Martinez Vazquez Wael
James, slow down (and read the thread) :) The guy actually asked for a place to commit some integration stuff.. Unless you want him to put it in your svn? :) James Carman wrote: I wrote a simple resource-based implementation: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/m

Re: Migration to 1.4 - generic headache

2008-10-29 Thread Johan Compagner
its not just compound we have 2 special cases for this: IComponentAssignedModel and IComponentInheritedModel which will be both pretty tricky to do if the users must make a field for the model them selfs. but we will see. johan On Tue, Oct 28, 2008 at 5:22 PM, Igor Vaynberg <[EMAIL PROTECTED]>

Re: Redirect to a page on a new browser window

2008-10-29 Thread Igor Vaynberg
you will need to reshuffle your code so that it opens the window and all processing happens inside that window rather then in the ajax behavior. that way you can just add window.open piece to the onclick of whatever and pass all the necessary attributes on the url. -igor On Wed, Oct 29, 2008 at 6

Re: Migration to 1.4 - generic headache

2008-10-29 Thread Jan Kriesten
Hi Igor, > you are against generics completely. but they are going to happen. the > way they are now is not perfect, in 1.5 we will try to move them to a > better place, but like it or not they are here to stay. huh - hell, no, I'm not against generics at all. Where do you get that from? I'm aga

Re: Migration to 1.4 - generic headache

2008-10-29 Thread Igor Vaynberg
the fact remains that there are components that are sometimes used with a model and sometimes without one. as it is we only generify components that we *think* are most likely to be used with a model, this is why we spent many an hour backing out generics from Component. it is too bad that java do

Re: inserting javascript from java to html file

2008-10-29 Thread Igor Vaynberg
what you pasted looks ok, but its incomplete. go ahead and create a quickstart and a jira issue and i will take a look. -igor On Wed, Oct 29, 2008 at 2:07 AM, eyalbenamram <[EMAIL PROTECTED]> wrote: > > OK. I used the IHeader contributor and the problem still exist! > > The error: > > http-6789-2

Re: DataTable cell link

2008-10-29 Thread Igor Vaynberg
abstract class clickableitem extends item implements ilinklistener { protected oncomponenttag(tag) { super tag.put("onclick","window.location='"+urlfor(ilinklistenerinterface.interface)+"';"); } } thats about all it takes -igor On Wed, Oct 29, 2008 at 4:20 AM, dlipski <[EMAIL PROT

Re: Changing WicketRuntimeException output

2008-10-29 Thread Ryan Gravener
Create your own RequestCycle and in the onRuntimeException(Page page, RuntimeException e) do this. Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Wed, Oct 29, 2008 at 11:27 AM, Dane Laverty <[EMAIL PROTECTED]>wrote: > I would like to make it so that whenever Wic

Re: Changing WicketRuntimeException output

2008-10-29 Thread Maarten Bosteels
Should be possible to catch WicketRuntimeException with a servlet filter ... On Wed, Oct 29, 2008 at 4:27 PM, Dane Laverty <[EMAIL PROTECTED]>wrote: > I would like to make it so that whenever Wicket throws a > WicketRuntimeException, it also prints out getSession().getUser(). I'm > not especial

Re: Compatibility of objectautocomplete

2008-10-29 Thread Igor Vaynberg
look in the project pom -igor On Wed, Oct 29, 2008 at 2:14 AM, Kai Mütz <[EMAIL PROTECTED]> wrote: > Hi, > > does the objectautocomplete libs require wicket 1.4 or is it possible to use > it with 1.3.x? Is it compatible with the AutoCompleteTextField of wicket > extensions? Can I use a AutoComple

Re: Migration to 1.4 - generic headache

2008-10-29 Thread Igor Vaynberg
you are against generics completely. but they are going to happen. the way they are now is not perfect, in 1.5 we will try to move them to a better place, but like it or not they are here to stay. -igor On Wed, Oct 29, 2008 at 1:28 AM, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > Hi Igor, > >> yes

Re: Migration to 1.4 - generic headache

2008-10-29 Thread Igor Vaynberg
On Wed, Oct 29, 2008 at 1:13 AM, Artur W. <[EMAIL PROTECTED]> wrote: > > Hi Igor, > > > igor.vaynberg wrote: >> >> yes it sucks. i agree. personally i prefer code written against wicket >> 1.3. even in 1.3 i hardly had to cast anything and even with those >> casts i do not remember getting any clas

Changing WicketRuntimeException output

2008-10-29 Thread Dane Laverty
I would like to make it so that whenever Wicket throws a WicketRuntimeException, it also prints out getSession().getUser(). I'm not especially clear on the flow for RuntimeExceptions, so any suggestions on where I would add the code to do this will be greatly appreciated. Dane Laverty Informat

Re: Page Markup Inheritance Problem...

2008-10-29 Thread James Carman
I would like to confirm to folks here that you can use a page that has a element in it directly. You do not have to subclass it! I found that to be quite weird, but it was very helpful in our situation! On Thu, Oct 23, 2008 at 10:42 PM, Richard Paul <[EMAIL PROTECTED]> wrote: > From the testing

Re: Wicket and URLs

2008-10-29 Thread Igor Vaynberg
of course i dont mind. -igor On Wed, Oct 29, 2008 at 12:39 AM, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Thanks for clarifying limitation no 2, I had not though of this. Indeed in > my usecase this is not a problem. > 'Limitation' no 1 is quite intentional. > > If you don't mind, I've also add

Re: Feedback Panel on Modal Window With Field Validation does not work

2008-10-29 Thread sureshram
Sorry I meant can we add a page to a modal window 张伟-4 wrote: > > try page not panel > > 2008/10/29 sureshram <[EMAIL PROTECTED]> > >> >> Hello, >> >> I am trying to add auto validation in the modal window but I don't see >> any >> error messages. I added a feedback panel on a modal window

Re: Feedback Panel on Modal Window With Field Validation does not work

2008-10-29 Thread sureshram
can I add a panel to modal window, I thought? 张伟-4 wrote: > > try page not panel > > 2008/10/29 sureshram <[EMAIL PROTECTED]> > >> >> Hello, >> >> I am trying to add auto validation in the modal window but I don't see >> any >> error messages. I added a feedback panel on a modal window which

LazyInit error with LDM in a panel

2008-10-29 Thread Neil McT
Hi, I've got the above problem which I have boiled down to the following basic example. MyPage references PanelA and PanelB which it swaps about depending on the current state - both are created when the page is created but PanelA is added to MyPage as the default display panel. PanelB cont

Re: few (not only) AutoCompleteTextField questions

2008-10-29 Thread Timo Rantalaiho
On Tue, 28 Oct 2008, dlipski wrote: > Textfields do recive onchange event, even AutocompleteTextField has modified > version off onchange event handler. > Whats more new AjaxFormComponentUpdatingBehavior("onchange"){..}; works well > in this scenario but > OnChangeAjaxBehavior not. > I looked at O

Re: AutoCompleteTextField "type mismatch" in line 227

2008-10-29 Thread Shailesh Verma
I am using wicket-extensions v 1.3.5 and see the javascript "Type Mismatch" error on Line 287 of wicket-autocomplete.js. This error comes on IE6.0 only. Firefox works ok. Shailesh Gerolf Seitz wrote: > > it's fixed in the upcoming 1.3.4 and the already release 1.4-M1 > > Gerolf > > On Thu

Upload exceeds maxsize error comes AFTER upload has finished

2008-10-29 Thread lodewijkdans
I am extending the upload component and have a problem with the maximum file size detection. The mechanism seems to be working fine except for that it has an user unfriendliness to it: An exception is thrown, an error message is set and the onError event called, but the message only arrives AFTER

Re: JFreeChart component

2008-10-29 Thread James Carman
I wrote a simple resource-based implementation: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/resource/ChartImageResource.java and an example of using it: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src

Re: Disabling 'back'/'next' web browser button usage in application

2008-10-29 Thread Martin Grigorov
it is too bad that there are no deployed examples of wicketstuff-jquery project to see it in action. What I've done is exactly this. With HistoryAjaxBehavior you could listen for clicks on back/forward button. On Wed, 2008-10-29 at 07:10 -0400, Richard Allen wrote: > I think a better solution

Re: CompoundModel based on proxies

2008-10-29 Thread James Carman
The IModel interface, if you're talking about the one from Wicket, is a view-specific interface (it comes with a view layer library). On Wed, Oct 29, 2008 at 9:20 AM, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > On Wed, Oct 29, 2008 at 1:09 PM, James Carman <[EMAIL PROTECTED]>wrote: > >> You shou

Re: CompoundModel based on proxies

2008-10-29 Thread James Carman
Sorry, but I am on many mailing lists as part of my open source involvement. I apologize if I breezed over some of what you wrote. I see now where you said you could use the Property API from that other project, which is what I would suggest as opposed to IModel from the Wicket library if you're

Re: CompoundModel based on proxies

2008-10-29 Thread Maarten Bosteels
On Wed, Oct 29, 2008 at 2:24 PM, James Carman <[EMAIL PROTECTED]>wrote: > The IModel interface, if you're talking about the one from Wicket, is > a view-specific interface (it comes with a view layer library). James, Have you actually read what I wrote ? Maarten > > > On Wed, Oct 29, 2008 at

Re: CompoundModel based on proxies

2008-10-29 Thread Maarten Bosteels
On Wed, Oct 29, 2008 at 1:09 PM, James Carman <[EMAIL PROTECTED]>wrote: > You shouldn't muddy up your "domain" with view-specific logic (the > IModel interface). In my example I just used IModel instead of Property because everybody knows IModel. Have a look at https://bean-properties.dev.java.

Re: CompoundModel based on proxies

2008-10-29 Thread James Carman
It can be done, but the expression languages that I've used don't do it "out of the box", so that would be an issue with using the proxy approach. You'd have to "roll your own" On Wed, Oct 29, 2008 at 9:14 AM, francisco treacy <[EMAIL PROTECTED]> wrote: > i agree - that's why i think it would be

RE: Compatibility of objectautocomplete

2008-10-29 Thread Hoover, William
// optional, but probably needed final AjaxFormComponentUpdatingBehavior afcub = new AjaxFormComponentUpdatingBehavior("onchange") { protected final void onUpdate(final AjaxRequestTarget target) { // TODO : do something } }; // optional final AbstractAutoCompleteRen

Re: CompoundModel based on proxies

2008-10-29 Thread francisco treacy
i agree - that's why i think it would be difficult to avoid an eventual NPE in something like customer.getAddress().getCity().getBlabla() in that case On Wed, Oct 29, 2008 at 1:09 PM, James Carman <[EMAIL PROTECTED]> wrote: > You shouldn't muddy up your "domain" with view-specific logic (the > I

Re: Redirect to a page on a new browser window

2008-10-29 Thread Adriano dos Santos Fernandes
To make this work in Firefox with window.open, it seems I need Sjax (synchronous) to call window.open just inside the onclick handler. Is it possible in Wicket, in any way? Adriano Adriano dos Santos Fernandes escreveu: In a non-Wicket application, I had a page for report parameters editing

RE: Compatibility of objectautocomplete

2008-10-29 Thread Hoover, William
The CHOICE is your domain model object (there was an error in the WIKI). You should be able to use any object in your domain. Can you post your code example? -Original Message- From: Kai Mütz [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2008 8:57 AM To: users@wicket.apache.org

RE: Compatibility of objectautocomplete

2008-10-29 Thread Kai Mütz
Hoover, William wrote: > or you can go with this solution: > http://cwiki.apache.org/WICKET/autocomplete-using-a-wicket-model.html Hi William, I have tried it but not successfully. I can select a choice from the choicelist. But if I want to save it I get a java.lang.Ill

Re: CompoundModel based on proxies

2008-10-29 Thread James Carman
You shouldn't muddy up your "domain" with view-specific logic (the IModel interface). On Wed, Oct 29, 2008 at 5:42 AM, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > On Wed, Oct 29, 2008 at 8:35 AM, Wayne Pope <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> Francisco and I here where discussing whether

Re: CompoundModel based on proxies

2008-10-29 Thread Johan Compagner
it is refactor friendly and you also have code completion (it works with generics) johan On Wed, Oct 29, 2008 at 12:12 PM, Maarten Bosteels <[EMAIL PROTECTED]>wrote: > On Wed, Oct 29, 2008 at 12:03 PM, Martijn Dashorst < > [EMAIL PROTECTED]> wrote: > > > afiar the proxy based model is null safe

RE: inserting javascript from java to html file

2008-10-29 Thread Hoover, William
or you can use: https://svn.apache.org/repos/asf/wicket/trunk/wicket-velocity/ in which case you could have a separate js/vm file that can inject the values for you: myscript.vm function removeBlur(checked) { if(checked) { document.getElementById('${loginButtonId

Re: Disabling 'back'/'next' web browser button usage in application

2008-10-29 Thread Tomasz Dziurko
And any hint how to do this? :) I thought about two possible ways to solve my problem: 1. on clicking Next/Prev Question button remove current page from PageMap (although no idea how to do this yet ;) ) and then redirect further, so when user use back button he will see session-expired-like page 2

Re: DataTable cell link

2008-10-29 Thread dlipski
My colegue point out that for Ajax requests AjaxEventBehavior can be used, and it works fine. so now I need only solution for normal (non Ajax) requests. dlipski wrote: > > Because I havent found better solution then adding 'onclick' handler to > cellItem I have to do it your way. > I looked at

Re: CompoundModel based on proxies

2008-10-29 Thread Maarten Bosteels
On Wed, Oct 29, 2008 at 12:02 PM, Maarten Bosteels <[EMAIL PROTECTED]>wrote: > > On Wed, Oct 29, 2008 at 11:47 AM, francisco treacy < > [EMAIL PROTECTED]> wrote: > >> hi maarten >> >> > About the null checking, I will see if I can avoid having nested null >> values >> > in my proof-of-concept proj

Re: CompoundModel based on proxies

2008-10-29 Thread Maarten Bosteels
On Wed, Oct 29, 2008 at 12:03 PM, Martijn Dashorst < [EMAIL PROTECTED]> wrote: > afiar the proxy based model is null safe. > > Hello Martijn, But IIUC it's not refactor-friendly (and no navigation and code completion), right ? I really hope they add first-class properties (that is, not string-ba

RE: Compatibility of objectautocomplete

2008-10-29 Thread Hoover, William
or you can go with this solution: http://cwiki.apache.org/WICKET/autocomplete-using-a-wicket-model.html -Original Message- From: Nino Saturnino Martinez Vazquez Wael [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2008 6:15 AM To: users@wicket.apache.org Subject: Re: Compatibilit

Re: Disabling 'back'/'next' web browser button usage in application

2008-10-29 Thread Richard Allen
I think a better solution is to make the browser's back/forward buttons have the same effect as clicking on the 'Previous Question'/'Next Question' buttons. If you put effort into making that work instead of putting your effort into trying to disable the browser's back/forward buttons, then you wil

Re: CompoundModel based on proxies

2008-10-29 Thread Martijn Dashorst
afiar the proxy based model is null safe. Martijn On Wed, Oct 29, 2008 at 11:47 AM, francisco treacy <[EMAIL PROTECTED]> wrote: > hi maarten > >> About the null checking, I will see if I can avoid having nested null values >> in my proof-of-concept project. > > thing is the object chain is going

Re: CompoundModel based on proxies

2008-10-29 Thread Maarten Bosteels
On Wed, Oct 29, 2008 at 11:47 AM, francisco treacy < [EMAIL PROTECTED]> wrote: > hi maarten > > > About the null checking, I will see if I can avoid having nested null > values > > in my proof-of-concept project. > > thing is the object chain is going to be resolved before it gets > passed in - th

Re: CompoundModel based on proxies

2008-10-29 Thread francisco treacy
hi maarten > About the null checking, I will see if I can avoid having nested null values > in my proof-of-concept project. thing is the object chain is going to be resolved before it gets passed in - there's nothing you can do about it inside your class :( an eventual null pointer exception woul

Re: Session timeout page

2008-10-29 Thread Martin Grigorov
Is this session expiration or page expiration ? I know it is a bit misleading but Wicket throws PageExpiredException when it doesn't find a particular version of the requested page in the page store. There could be different reasons why the page is not found but in my experience the most often ca

Re: CompoundModel based on proxies

2008-10-29 Thread Maarten Bosteels
On Wed, Oct 29, 2008 at 10:54 AM, Wayne Pope < [EMAIL PROTECTED]> wrote: > Hi Maarten > > interesting idea thanks. I think the major issue is the null pointer > checking. > > for your: > public class Customer implements Serializable { > public final IModel firstName = new Model(); > public final

Re: Compatibility of objectautocomplete

2008-10-29 Thread Nino Saturnino Martinez Vazquez Wael
Hi Kai No it seems Objectautocomplete were added after the branching.. So seems you are a bit out of luck, however backporting should not be too hard.. Kai Mütz wrote: Nino Saturnino Martinez Vazquez Wael <> wrote: Hi Kai Im not sure if the authors are around.. But the one Objectautocomp

Re: using wicket

2008-10-29 Thread francisco treacy
hmm, it depends. if you upgrade to 1.4 and parameterize models and components, it could be really tough to go back to 1.3. depending of course on the size of your app. francisco On Wed, Oct 29, 2008 at 9:50 AM, Martin Grigorov <[EMAIL PROTECTED]> wrote: > You could download it from Maven repos as

Re: Disabling 'back'/'next' web browser button usage in application

2008-10-29 Thread Martin Grigorov
Hi Tomasz, Recently I integrated a JavaScript library with Wicket that could help you with this particular application. Take a look at the code and examples: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery/src/main/java/org/wicketstuff/jquery/ajaxbackbutton

Re: CompoundModel based on proxies

2008-10-29 Thread francisco treacy
hi, > One problem I see with this approach is when you need null-checking > for nested properties: > eg: new TextField("city", customer.address.getObject().city ); exactly, that is *the* problem otherwise we could have new AlternativeCompoundPropertyModel(customer.getAddress().getCity()); with

RE: Compatibility of objectautocomplete

2008-10-29 Thread Kai Mütz
Nino Saturnino Martinez Vazquez Wael <> wrote: > Hi Kai > > Im not sure if the authors are around.. But the one Objectautocomplet > in trunk of stuff are not backwards compatible, that goes for every > contrib which depends on wicket 1.4. But there should be a branch > with the old version I think,

Re: CompoundModel based on proxies

2008-10-29 Thread Wayne Pope
Hi Johan, we're now maigrating to 1.4 M3 - do you have any idea roughly when the release proper of 1.4 would be? thanks Wayne On Wed, Oct 29, 2008 at 10:34 AM, Johan Compagner <[EMAIL PROTECTED]>wrote: > wicket 1.5 > > first 1.4 has to be released > > On Wed, Oct 29, 2008 at 8:35 AM, Wayne Pope

Re: CompoundModel based on proxies

2008-10-29 Thread Wayne Pope
Hi Maarten interesting idea thanks. I think the major issue is the null pointer checking. for your: public class Customer implements Serializable { public final IModel firstName = new Model(); public final IModel lastName = new Model(); } do you wrap this around you (hibernate/other) pojo's o

Re: Forcing property models to update

2008-10-29 Thread Martijn Dashorst
Hmm, this requires a bit low level Java understanding (Wicket doesn't have anything to do with it. The underlying mechanism is the same as doing this: public void foo2bar(String a) { a = "bar"; } String b = "foo"; System.out.println("b is now: " + b); foo2bar(b); System.out.println("b is now

Re: CompoundModel based on proxies

2008-10-29 Thread Maarten Bosteels
On Wed, Oct 29, 2008 at 8:35 AM, Wayne Pope <[EMAIL PROTECTED]> wrote: > > Hi, > > Francisco and I here where discussing whether we could figure a way of > having some form of static/compile time checking on our > (Compound)PropertyModels, as I'm a bit concerned long term about some nasty > runtime

Re: Compatibility of objectautocomplete

2008-10-29 Thread Nino Saturnino Martinez Vazquez Wael
Hi Kai Im not sure if the authors are around.. But the one Objectautocomplet in trunk of stuff are not backwards compatible, that goes for every contrib which depends on wicket 1.4. But there should be a branch with the old version I think, Igor did that a while back the 1.3 branch I mean..

RE: Session timeout page

2008-10-29 Thread Kai Mütz
Swanthe Lindgren wrote: > How do I change the session timeout page? I want my application to > display the actual home page on session timout instead of the default > "Return to homepage"-link page. Try getApplicationSettings().setPageExpiredErrorPage(HomePage.class);

Re: CompoundModel based on proxies

2008-10-29 Thread Johan Compagner
wicket 1.5 first 1.4 has to be released On Wed, Oct 29, 2008 at 8:35 AM, Wayne Pope <[EMAIL PROTECTED]>wrote: > > Hi, > > Francisco and I here where discussing whether we could figure a way of > having some form of static/compile time checking on our > (Compound)PropertyModels, as I'm a bit conc

Compatibility of objectautocomplete

2008-10-29 Thread Kai Mütz
Hi, does the objectautocomplete libs require wicket 1.4 or is it possible to use it with 1.3.x? Is it compatible with the AutoCompleteTextField of wicket extensions? Can I use a AutoCompleteTextField of wicket extensions and an ObjectAutoCompleteField in one form? Thanks in advance, Kai ---

Re: Session timeout page

2008-10-29 Thread Matthias Keller
Hi See here for all kinds of different error pages you can easily adjust: http://cwiki.apache.org/WICKET/error-pages-and-feedback-messages.html Matt Swanthe Lindgren wrote: How do I change the session timeout page? I want my application to display the actual home page on session timout instead

  1   2   >