Re: Model window issue

2011-08-08 Thread rmattler
I do this in my app. I open a modal window and when you hit save I open another modal window to confirm your save and if you confirm I close both modal windows. modalConfirm.close(target); modalSelectDate.close(target); IndicatingAjaxLink btnConfirmSave = new IndicatingAjaxLink("btnConf

Re: Loading Wicket resources from a background thread

2010-08-10 Thread rmattler
Wow just asked this same question. I didn't see you post (sorry list). Please let me know if you figure it out. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Loading-Wicket-resources-from-a-background-thread-tp2319046p2320388.html Sent from the Wicket - User maili

quartz job bean access to properties file

2010-08-10 Thread rmattler
I'm struggling with how to get access to the properties file from a quartz job bean. I'm creating a pdf report that will then be emailed. I want to get access to the properties file to tell me where to write the file along with other information. Here is my quartz job code. Thanks in advance.

Re: The Field 'emailInput' is required

2010-01-21 Thread rmattler
Still not sure I understand your problem. If the field names are the same on many forms, I.E. an email field on several forms, you can put the error message in the application.properties file. If my application is MyApplication.java then create a MyApplication.properties file and put in the vali

Re: The Field 'emailInput' is required

2010-01-21 Thread rmattler
ts'Up wrote: > > Hi rmattler and Wilhelmsen Tor Iver > > thank you both for the fast answers! With "test.emailInput.Required=test" > I changed the completely error code to "test", but how can I change the > error code to this "Field 'email&#x

Re: The Field 'emailInput' is required

2010-01-21 Thread rmattler
try: test.emailInput.Required=test Whats'Up wrote: > > Hello, > > this is my first post and I hope you could help me. > I have a Form with the id="test" and a Textfield="EMAIL". The Textfield I > added with "add(new RequiredTextField("emailInput"))". > After pressing submit (wihout entering

Re: hide pagination

2009-10-09 Thread rmattler
opps forgot the the wmc html rmattler wrote: > > WebMarkupContainer wmcNavHead = new WebMarkupContainer("wmcNavHead"); > WebMarkupContainer wmcNavFoot = new > WebMarkupContainer("wmcNavFoot"); >

Re: hide pagination

2009-10-09 Thread rmattler
WebMarkupContainer wmcNavHead = new WebMarkupContainer("wmcNavHead"); WebMarkupContainer wmcNavFoot = new WebMarkupContainer("wmcNavFoot"); wmcNavHead.add(new PagingNavigator("navigatorHead", eachProject)); if (dp.size() < ROWS_TO_DISPLAY) {

Re: AW: How would you realize a "delete"-Link in a datagrid row?

2009-09-30 Thread rmattler
target.addComponent(wmcDataTable); } }); form.add(modalUsersDelete); Peter Arnulf Lustig wrote: > > yes I thought it... :) > > How do you achieve that the dataview is refreshed after deletion of a > row?

Re: How would you realize a "delete"-Link in a datagrid row?

2009-09-30 Thread rmattler
Sorry spelling error not model window but modal window. rmattler wrote: > > Another approach would be to created a model window to appear when the > delete link is clicked. With the message "Are you sure you want to > delete xxx?" If you select yes, the row is del

Re: How would you realize a "delete"-Link in a datagrid row?

2009-09-30 Thread rmattler
Another approach would be to created a model window to appear when the delete link is clicked. With the message "Are you sure you want to delete xxx?" If you select yes, the row is deleted then ajax is used to refresh the dataview. Let me know if you want to use this approach and I will post

Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-28 Thread rmattler
estButton.add(myImage); add(switTestButton); } } rrmlwt wrote: > > rmattler wrote: > >> It is not clear to me how you add the onClick event to the button since >> the >> ButtonResource is an image. Anybody want to point that out to me. > > You have to

Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-26 Thread rmattler
It does NOT work with 1.35. For anybody else who was wondering. I download 1.4 and it works fine. It is not clear to me how you add the onClick event to the button since the ButtonResource is an image. Anybody want to point that out to me. thanks. rrmlwt wrote: > > Hi Folks, > > I just r

Re: Apache Tomcat & CSS

2009-05-12 Thread rmattler
Try entering the the css like this: background-image: url(../images/buttons/buttonBackground.gif); It works for me I don't know why but it works :sleep: TradeMark wrote: > > Hi there, > > has anyone ever encountered problem with these two? I have a simple > application and I wanted to add a

Re: Wizard and onSubmit of nested form

2009-03-07 Thread rmattler
and the problem remains: the onSubmit of the next > step is called instead of the current step. I think that first the panel > of the current step is replaced with the panel of the next step and then > the onSubmit is executed. > > Hope someone can help me. > > Regards, &

Re: Wizard and onSubmit of nested form

2009-03-06 Thread rmattler
Use "public void validate(Form form)" See example below. Hope it helps. private final class Step2 extends WizardStep { public Step2() { setTitleModel(new Model("Add pictures")); add(new AbstractFormValidator() {

Re: Is this a bug in Wicket?

2009-03-05 Thread rmattler
Don't put the in a . Should be: Search feed by name: Match all conditions>

Re: applet web.xml mapping

2009-01-29 Thread rmattler
It appears I still have some things to learn about servlet mapping. But I still don't understand why changing my url-pattern form /* to /app/* would make my applet not work. Any way if anybody else want to use an applet to upload files here is how I did it. My web.xml file is:

Re: Getting data from applet

2009-01-29 Thread rmattler
gate further. > > -igor > > On Tue, Jan 27, 2009 at 8:17 AM, rmattler wrote: >> >> List items = upload.parseRequest(request); >> >> items is still empty >> >> >> >> >> try form.setmultipart(true) >> >> -igor >> >>

Re: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

2009-01-29 Thread rmattler
NoClassDefFoundError means that netbeans or the server can't find a file. I'm guessing that it can't find the slf4j.jar http://www.slf4j.org/faq.html >From the wicket site: Important note about logging dependencies for 1.3.0 and later. As of Wicket 1.3.0, Wicket uses the SLF4J project for log

applet web.xml mapping

2009-01-27 Thread rmattler
Sorry my day to ask questions.:-D If my WicketFilter is setup as: WicketFilter /* My Applet works fine. If I change it to: WicketFilter /app/* I can't seem to figure a way to access the applet. archive="applet/jumploader_z.jar" archiv

Re: Getting data from applet

2009-01-27 Thread rmattler
List items = upload.parseRequest(request); items is still empty try form.setmultipart(true) -igor -- View this message in context: http://www.nabble.com/Getting-data-from-applet-tp21686123p21688568.html Sent from the Wicket - User mailing list archive at Nabble.com. --

Getting data from applet

2009-01-27 Thread rmattler
I'm using an applet (http://www.jumploader.com) to upload files. Normally I would use a servlet to parse the data with apache commons fileupload. With Wicket I trying to parse the data in the onSubmit method of the Form with no luck. HttpServletRequest request = ((ServletWebRequest) getRequest(

Re: Double submit problem

2008-03-11 Thread rmattler
You could do it with javascript. Disable the button and change the button label. function saveForm(btn) { eForm = document.forms[0]; btn.disabled=true; btn.value='Please wait...'; eForm.submit(); return; } -- View this message i

Re: DropDownChoice getting value into the model

2008-03-11 Thread rmattler
I don't have time to work on this right now, have real work to do. But I now believe I understand my problem. The Vendor bean needs to have the field 'state' be the class of State not String. Now I just need to figure out how to do that with Hibernate. I did buy your book. It is excellent eve

Re: DropDownChoice getting value into the model

2008-03-10 Thread rmattler
I don't understand. Vendor.state and SelectOption.state are both Strings. I cut down my form to only have state on the form so I can post all the code. The code pulls the correct data from the database and displays it on the form but when I save it is gives me the following error. java.lang.Un

RE: DropDownChoice getting value into the model

2008-03-07 Thread rmattler
Yes @Column(name = "state", length = 2) public String getState() { return this.state; } public void setState(String state) { this.state = state; } Kai Mütz wrote: > > [EMAIL PROTECTED] <> wrote: >> Thanks for trying but I get: >>

RE: DropDownChoice getting value into the model

2008-03-07 Thread rmattler
Thanks for trying but I get: WicketMessage: No get method defined for class: class java.lang.String expression: state Kai Mütz wrote: > > [EMAIL PROTECTED] <> wrote: >> It is nice to know I'm not the only one struggling with >> DropDownChoices. I'm new to Wicket and I'm pretty far with >> re

Re: DropDownChoice getting value into the model

2008-03-07 Thread rmattler
It is nice to know I'm not the only one struggling with DropDownChoices. I'm new to Wicket and I'm pretty far with rebuilding an application we are using internally. Has anybody proposed an alternative or a wrapper to DropDownChoices? Vitaly Tsaplin wrote: > >The DropDownBox component

Re: DropDownChoice getting value into the model

2008-03-07 Thread rmattler
Thanks for the quick reply. But you answer doesn't make sense to me. Why do loadable models work for a text field but not a drop down? If I have "NY" stored in the database, New York is loaded onto the form but when the form is submitted the selected value of the drop down is not saved into the

DropDownChoice getting value into the model

2008-03-07 Thread rmattler
I've tried for 1 1/2 days to get this simple Drop Down to work and I'm feeling stupid. My mom tells me I'm smart.:-( Everything works fine until I try to save it. I get the following error. I think it is trying to put the SelectOption object into the Model but I don't know how to tell it to put

Converter 1.3 beta2 convertToString never called

2008-03-03 Thread rmattler
Writing a custom converter to convert a phone number from the form entry (330) 555-1212 to 3305551212 to be stored in the database. That works, but I'm also trying to convert 3305551212 to (330) 555-1212 to be displayed on the form. That is not working, convertToString is never called. Thanks

New quy question on converting input data

2008-02-28 Thread rmattler
If a phone number is input as (330) 555-1212 on the form when the form is saved I want the data stored as 3305551212 in the database and when displayed again on the form as (330) 555-1212. As a bonus how do I would like data entered as 3305551212 and converted to (330) 555-1212 on the onBlur even

Re: Wicket database access

2008-02-21 Thread rmattler
I'm new to this whole thing and I've just done this using the book "Enjoying development with Wicket". It is $20 and worth the money to get your feet wet. It has a good example of JDBC only access and what you gain by using Spring and then Hibernate. Hope this helps. Considering I only have 3

Spring applicationContext.xml error

2008-02-15 Thread rmattler
I'm trying to get a Hibernate Spring Wicket app working and I'm stuck. Don't know where to start. Any help would be appreciated. If this is the wrong forum let me know. Thanks is advance. I'm get the following error: Error creating bean with name 'txManagerBean' defined in ServletContext r