Re: AutoCompleteTextField in 1.4-SNAPSHOT

2009-11-14 Thread m_salman
Hi, This was a big help for me in getting what I wanted to do. It works really good except for one problem. When the form shows up with a non null empty object, the autocomplete field has the class name for the object in it, i.e., "com.michni.search.bean.urll...@c1853". Once I load an object i

Re: Write XML response

2009-06-09 Thread m_salman
ttp://www.wickettraining.com > > > > > On Tue, Jun 9, 2009 at 1:31 PM, m_salman wrote: >> >> Thanks for the quick response.  Well I am using the label but I get the >> output as "Book on >> LogicAristotle" >> >> How can I show that

Re: Write XML response

2009-06-09 Thread m_salman
gt; http://www.wickettraining.com > > > > > On Tue, Jun 9, 2009 at 1:17 PM, m_salman wrote: >> >> I would appreciate very much if some one can tell me how can I use this >> method, or any other method, to display xml in a panel.  I want xml to be >&

Re: Write XML response

2009-06-09 Thread m_salman
I would appreciate very much if some one can tell me how can I use this method, or any other method, to display xml in a panel. I want xml to be displayed in an interactive format in a panel when a form is submitted. Thanks. -- View this message in context: http://www.nabble.com/Write-XML-res

Re: DropDownChoice - required, one item so preselection?

2009-06-05 Thread m_salman
Thanks so much for yoru response. I tried a few things from your response and one solution solved the problem. I changed the ChoiceRenderer constructor to include the "id" part. And it worked. So here is the code: form = new Form(

Re: DropDownChoice - required, one item so preselection?

2009-06-02 Thread m_salman
I have set the model. But I still don't see it preselected when the dropDownChoice object is displayed: form.add(new DropDownChoice( "parameterInOutType", new CompoundPropertyModel(para

AutoCompleteTextField: Making Wicket call getChoices method on 'onClick' event

2008-11-09 Thread m_salman
Hi, I need some help with the AutoCompleteTextField. I would like it to show the choice list when some one clicks in the field not just when the user type a letter or two. I find that, atleast in my case, when I click on the field getChoices method is not called. I have tried some thing such

Re: retricted AutoCompleteTextField

2008-10-19 Thread m_salman
Thanks. I tried the examples that came with it and I did not find it restricting me to the given list. For the other issue of getting the object id, I found in my own code that as I keep on typing the text, the list keeps getting shorter and that makes it easier to search for the object in the li

retricted AutoCompleteTextField

2008-10-17 Thread m_salman
Hi, I am really happy with what wicket has allowed me to do with Ajax and all that. I have just implemented an AutoCompleteTextfield. It is very nice but I would like to improve it so that the user is restricted to items in the list. So, the list is shown when the user types the first one or t

Re: how to logout and redirect

2008-09-17 Thread m_salman
Thanks for your reply. Since I don't have much understanding of these things -- I am a kicking and screaming web GUI developer, can you please tell me if I should use the redirect command for my error handling code. Really appreciate your help. jwcarman wrote: > > The setRedirect(true) call

Re: how to logout and redirect

2008-09-17 Thread m_salman
I am not sure what the getrequestcycle().setredirect(true); is for. Can you please explain that a little bit. Why can't I just set the response page. Is that something special for logouts? Do I need to use 'setRedirect(true)' for th following also? catch (ApplicationException ae) {

Re: session "jumping"?

2008-09-09 Thread m_salman
; our own implementations? Is that what Igor suggested? Your isVisible() > method cheeking a "static" value? > > 2008/9/9 m_salman <[EMAIL PROTECTED]> > > > -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p19402436.html Sent

Re: session "jumping"?

2008-09-09 Thread m_salman
My appologies. The problem was bad design and code on my part. -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p19395226.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: session "jumping"?

2008-09-04 Thread m_salman
Thanks for your offer. I would need to extract the code or may be develop some small example. Thanks again. igor.vaynberg wrote: > > i cant really tell from this. can you create a quickstart and attach > it to a jira issue so i can reproduce the problem locally? > > -igor > -- View this

Re: session "jumping"?

2008-09-04 Thread m_salman
Well that is not intentional atleast. Here are some snippets from the code: public class ButtonEdit extends AjaxButton { public ButtonEdit(String id) { super(id); } @Override protected void onSubmit( AjaxRequest

Re: session "jumping"?

2008-09-04 Thread m_salman
Thanks for your response. Well, I tried what you suggested using Firefox and IE. In one a button ("makeEditable") was made disabled. When I tried to click on the button still visible in the other browser I got this error: WicketMessage: Submit Button makeEditable (path=panelItem:itemForm:makeE

Re: session "jumping"?

2008-09-04 Thread m_salman
Hi, Did anything come out of it? I seem to be having a similar problem. I go to my application (no sign in) using two browser instances from ONE machine. But it seems that the two sessions affect it each other. One example is that one browser a step results a button to be hidden. on the oth

user customized html

2008-08-29 Thread m_salman
Hi, I would like to allow the user/customer to be able to provide his html file (with the style elements or sheet) to be used with the components created by java. So I guess the java code will need to know which html file to use based on the user. Is that possible to do so with Wicket? If so ho

Re: Handling Exceptions in WebSession or WebApplication

2008-08-27 Thread m_salman
That works. Thanks. throw restartresponseexception with your error page -- View this message in context: http://www.nabble.com/Handling-Exceptions-in-WebSession-or-WebApplication-tp19175475p19175698.html Sent from the Wicket - User mailing list archive at Nabble.com. ---

Handling Exceptions in WebSession or WebApplication

2008-08-26 Thread m_salman
Hi, In my subclass of WebSession the constructor has to call a method that throws an exception. As you know the WebApplication calls the constructor of the WebSession. public UserSession(Request request) { super(request); try {

Re: getting the list's index value for selection in DropDownChoice

2008-07-24 Thread m_salman
Thanks guys. It works with using the class object. There was just this confusion for me. I was expecting that I would get back the "id" of the selected object back. But I get the selected object itself. Which I think is even better but.. So thanks again. -- View this message in context:

getting the list's index value for selection in DropDownChoice

2008-07-23 Thread m_salman
Hi, For a DropDownChoice I am using a simple list as following: List choices = new LinkedList(); choices.add("choice1"); choices.add("choice2"); Here is the code for the DropDownChoice: add(new DropDownChoice( "dropDownField",

Re: Unable to serialize class:

2008-07-09 Thread m_salman
That is absolutely true. The point was that the same class was not serializable with Tomcat 5.x but was serializable with 6.x Martijn Dashorst wrote: > > On Wed, Jul 9, 2008 at 9:29 PM, m_salman <[EMAIL PROTECTED]> > wrote: >> The funny >> thing was that class tes

Unable to serialize class:

2008-07-09 Thread m_salman
Hi, I just had a terrible time getting rid of the "Unable to serialize class:" error. The class was derived from an abstract class. I tried everything to fix it, including getting the latest wicket binaries, rebuilding wicket trunk with my Java (1.5.0_08), and whole bunch of test code. The funn

wicket training/consulting in the SF Bay Area

2008-06-16 Thread m_salman
Hi, Is there any one available to provide Wicket training and/or consulting in the SF Bay area? I need help urgently. Off hours is fine. Thanks, -Mohammad -- View this message in context: http://www.nabble.com/wicket-training-consulting-in-the-SF-Bay-Area-tp17859255p17859255.html Sent from

Re: Panels in a panel

2008-06-13 Thread m_salman
Nino.Martinez wrote: > > use a listview,propertylistview or repeater... > > Differences are: > > listview: iterates over a list > propertylistviw:-||- and bound the item.model via a compound model, very > usefull if you use compound models a lot. > repeater: repeats for int times, as I remem

Panels in a panel

2008-06-13 Thread m_salman
Hi, I have designed a panel of form text fields which I would like to repeat in a panel of form. Here is the code: EmptyForm.java public class EmptyForm extends Form { private final ValueMap properties = new ValueMap(); public EmptyForm(final String id) {

Re: add method on Form for wicket 1.4

2008-05-11 Thread m_salman
Oops, darn. jar files in WEB-INF\lib were not updated. Thanks so much for the quick response. Jonathan Locke wrote: > > > are you sure you are running against the same wicket jar you compiled > against? > > > m_salman wrote: >> >> Hi, >> >&g

add method on Form for wicket 1.4

2008-05-11 Thread m_salman
Hi, I am very very new to Wicket and I am at a very early stage of my understanding. I have upgraded to 1.4_m1. But I seem to have a weired problem which I don't see any one else have a problem with. I would appreciate any quick help. Thanks. Problem is with the add(firstNameTextField) line