Re: wicket osgi (not Pax)

2010-10-12 Thread kugaprakash
Hi, I have multiple Wicket Applications running on different servers, each of them runs on OSGI/Jetty, and a Master Wicket Application also runs on OSGI/Jetty. Master wicket application, has its own server, where it gets the data from the sub servers. Do you recommend Pax Wicket for such

Re: wicket osgi (not Pax)

2010-10-12 Thread David Leangen
If you're already using Wicket successfully in OSGi, then I don't see what benefit using pax-wicket will add for you. pax-wicket is useful to help get you going in OSGi, since the class loading / serialization stuff can be tricky. Sounds like you're doing ok, though. =David On Oct 12,

Re: DropDownChoice loses Selection in Disabled Panels

2010-10-12 Thread vov
Can you write your code? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-loses-Selection-in-Disabled-Panels-tp2989677p2991210.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Page Expired page with PatternDateConverter

2010-10-12 Thread Altuğ Bilgin Altıntaş
quickstart 11 Ekim 2010 16:00 tarihinde Hemant Shah prot...@gmail.com yazdı: Yes, it works fine if we do not override the getConverter method. In which case it behaves like a normal AjaxEditableLabel, as would be expected, and we are using AjaxEditableLabel instances in many places in our

How to trigger server-side method when user clicks on a Table Row

2010-10-12 Thread duncan787
I am implementing a DataView using an HTML Table and I need to allow the user to select a row in the table to tell the Server Side which row they selected. I could implement this by using AjaxFallbackLink, but this would only link the text in the row, the user needs to be able to click anywhere

wicket 1.5, resource gives error in log?

2010-10-12 Thread nino martinez wael
Hi I have something where I reference an image directly in html, wicket has no idea what it should do with it so it passes the request to the servlet container.. And it works as I wanted, but should it give an error message? Or am I doing something wrong? html: img

submit or refresh form via ajax from javascript ?

2010-10-12 Thread Maris Orbidans
Is it possible to submit a form from javascript ? Maris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

RE: Getting client IP address

2010-10-12 Thread Maris Orbidans
-Original Message- From: Josh Kamau [mailto:joshnet2...@gmail.com] Sent: 06 October 2010 12:31 To: users@wicket.apache.org Subject: Re: Getting client IP address Thanks guys, I got the IP address. Is it possible to get the client computer name? nope Maris

Re: DropDownChoice loses Selection in Disabled Panels

2010-10-12 Thread splitshade
Hi, we just upgraded from 1.4.9 to 1.4.10 and the error seems fixed, although i cant find something in the release notes, but thank you for your help! -- View this message in context:

Re: How to trigger server-side method when user clicks on a Table Row

2010-10-12 Thread James Carman
Have you tried attaching your AjaxFallbackLink to your tr elements? On Tue, Oct 12, 2010 at 6:27 AM, duncan787 duncan...@gmail.com wrote: I am implementing a DataView using an HTML Table and I need to allow the user to select a row in the table to tell the Server Side which row they

Re: Getting client IP address

2010-10-12 Thread James Carman
ServletRequest.getRemoteHost(): Returns the fully qualified name of the client or the last proxy that sent the request. If the engine cannot or chooses not to resolve the hostname (to improve performance), this method returns the dotted-string form of the IP address. For HTTP servlets, same as

RE: Getting client IP address

2010-10-12 Thread Maris Orbidans
Yes, hostname. Sorry, I thought about something else. -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent: 12 October 2010 12:25 To: users@wicket.apache.org Subject: Re: Getting client IP address

Re: Getting client IP address

2010-10-12 Thread James Carman
It's not terribly reliable from what I remember, but if it works, it works. :) On Tue, Oct 12, 2010 at 7:50 AM, Maris Orbidans maris.orbid...@ingg.com wrote: Yes, hostname. Sorry, I thought about something else. -Original Message- From: jcar...@carmanconsulting.com

Re: repaint a fragment

2010-10-12 Thread fachhoch
I am confused , I have an Item with a fragment . to repaint this fragment I should just add this item to target and no need of calling item.replaceWith(new Freagment()) ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/repaint-a-fragment-tp2990937p2991715.html

AjaxLazyLoadPanel in WiQuery Accordion

2010-10-12 Thread Reinout van Schouwen
Hi all, When I use an AjaxLazyLoadPanel within a WiQuery Accordion widget, the panel that replaces the loading placeholder doesn't get the correct CSS class attributes. What's the right way to set the class attributes of the lazyloadcomponent? Thanks, -- Reinout van Schouwen

Re: AjaxLazyLoadPanel in WiQuery Accordion

2010-10-12 Thread julien roche AKA indiana_jules
Hi Reinout, Can you post your HTML code please ? Because I think the better way with an ajaxLazyLoadPanel will be like this: div wicket:id=accordion h3a href=#First header/a/h3 divdiv wicket:id=lazy/div/div h3a href=#Second header/a/h3 divSecond content/div /div Where lazy is a

Re: submit or refresh form via ajax from javascript ?

2010-10-12 Thread jcgarciam
Simple javascript: var theForm = document.getElementById(formId); theForm.submit(); On Tue, Oct 12, 2010 at 7:53 AM, Maris Orbidans [via Apache Wicket] ml-node+2991613-1252635351-65...@n4.nabble.comml-node%2b2991613-1252635351-65...@n4.nabble.com wrote: Is it possible to submit a form

Re: How to trigger server-side method when user clicks on a Table Row

2010-10-12 Thread duncan787
Its already attached to the DataView, see the relevant/simplified Java code added below. Would it best practice be to assign a WebMarkupContainer to the TR element and add both an AjaxFallbackLink and a DataView to the container? DataViewSiteProject projectListDataView = new

robots.txt wicket urls

2010-10-12 Thread Jeffrey Schneller
How can I add an entry to robots.txt for a page of my site that is not currently mounted and cannot be made bookmarkable. The url is the wicket url of ?wicket:interface. I guess I could say block everything that contains ?wicket:interface but that seems kind of brute force. I tried using

Can i execute an inline-javascript added to head for replaced panel on ajax-response?

2010-10-12 Thread Per Newgro
Hi *, i would like to exchange a panel on another panel. The newly added panel has an AbstractBehavior which adds the script: public ReplacementPanel(String id) { super(id); final Label component; add(component = new Label(lblReplaced, Done)); add(new

Re: robots.txt wicket urls

2010-10-12 Thread Igor Vaynberg
in your robots.txt put the url without the ., that way a new version of the page will get created. -igor On Tue, Oct 12, 2010 at 8:30 AM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: How can I add an entry to robots.txt for a page of my site that is not currently mounted and cannot be

RE: robots.txt wicket urls

2010-10-12 Thread Jeffrey Schneller
So using the HybridUrlCodingStrategy is correct and if users want to muck with the URL they can and they may just get an error? Then for the robots.txt I just say to block XYZ without the .. For example I have a page called Login that is mounted with the HybridUrlCodingStrategy. So the url

Re: PropertyModel Not Refreshing

2010-10-12 Thread Igor Vaynberg
here are the tweaks you need to make this work: selectedRecordAModel = new PropertyModelRecordA(this, selectedRecordA); recordAText = new RequiredTextField(recordAText, new PropertyModel(selectedRecordAModel, name)); recordBs.setModel(new PropertyModel(selectedRecordAModel,

Re: robots.txt wicket urls

2010-10-12 Thread Igor Vaynberg
the url to the user is still /Login, its just that when they go to it they are redirected to /Login.n in your robots.txt if you want to reference the page use /Login - this is the url the robot has to hit to get to /Login.n also when the user tweaks the n they should simply get a new instance of

Re: Can i execute an inline-javascript added to head for replaced panel on ajax-response?

2010-10-12 Thread Igor Vaynberg
use renderondomreadyjavascript -igor On Tue, Oct 12, 2010 at 9:09 AM, Per Newgro per.new...@gmx.ch wrote:  Hi *, i would like to exchange a panel on another panel. The newly added panel has an AbstractBehavior which adds the script:    public ReplacementPanel(String id) {        

Re: Can i execute an inline-javascript added to head for replaced panel on ajax-response?

2010-10-12 Thread Igor Vaynberg
call setoutputmarkupid(true) on your label -igor On Tue, Oct 12, 2010 at 10:14 AM, Per Newgro per.new...@gmx.ch wrote:  Thanks Igor, but it didn't work. It seems that my label has no id in the response and thus the script can't find the element. div spanDone/span /div This should be

RE: PropertyModel Not Refreshing

2010-10-12 Thread Shelli Orton
Thanks for the help. Your changes got rid of the errors and I can delete records now (and the list is updated). However, once a record has been selected for edit and either saved or cancelled, that same record is always displayed in the edit group when I choose another record to edit or

Re: PropertyModel Not Refreshing

2010-10-12 Thread Igor Vaynberg
On Tue, Oct 12, 2010 at 10:30 AM, Shelli Orton shelli.or...@sjrb.ca wrote: Thanks for the help.  Your changes got rid of the errors and I can delete records now (and the list is updated). However, once a record has been selected for edit and either saved or cancelled, that same record is

Re: Can i execute an inline-javascript added to head for replaced panel on ajax-response?

2010-10-12 Thread Per Newgro
Jeeehhaa. Thanks alot Igor. That did it. Both tips together work as expected. Cheers Per call setoutputmarkupid(true) on your label -igor On Tue, Oct 12, 2010 at 10:14 AM, Per Newgroper.new...@gmx.ch wrote: Thanks Igor, but it didn't work. It seems that my label has no id in the

RE: PropertyModel Not Refreshing

2010-10-12 Thread Shelli Orton
Hi, Thanks for file. Your first email was missing these changes: IModelRecordA selectedRecordAModel; (I had set mine to PropertyModelRecordA selectedRecordAModel;) recordAs.setModel(selectedRecordAModel) However, even with those changes applied, I still get the same issue of the

Re: PropertyModel Not Refreshing

2010-10-12 Thread nino martinez wael
No dont think so.. Please provide a quickstart.. I have had property models working in 1.2, 1.3, 1.4 and 1.5 so must be error 42:) 2010/10/12 Shelli Orton shelli.or...@sjrb.ca Hi, Thanks for file. Your first email was missing these changes: IModelRecordA selectedRecordAModel; (I had

RE: PropertyModel Not Refreshing

2010-10-12 Thread Shelli Orton
The quickstart was sent to the list this morning at 10:04 MST. Does it need to be resent? Shelli -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Tuesday, October 12, 2010 11:52 AM To: users@wicket.apache.org Subject: Re: PropertyModel Not

Re: PropertyModel Not Refreshing

2010-10-12 Thread nino martinez wael
sorry.. Did'nt see it attached.. So did igor provide you with an fixed quickstart (working on his system).. That did not work on glassfish? 2010/10/12 Shelli Orton shelli.or...@sjrb.ca The quickstart was sent to the list this morning at 10:04 MST. Does it need to be resent? Shelli

RE: PropertyModel Not Refreshing

2010-10-12 Thread Shelli Orton
He provided an updated RecordAPanel.java class that works on his system. I updated mine to match his, but still have an issue where once a record has been selected for edit, that's the only record that is displayed in the edit group regardless of which record is chosen from the list in the select

Re: PropertyModel Not Refreshing

2010-10-12 Thread nino martinez wael
hmm getting a lot of errors on the services not implementing serialization... But does seem theres a difference between calling : selectedRecordAModel.getObject().getName() and RecordAPanel.this.selectedRecordA 2010/10/12 nino martinez wael nino.martinez.w...@gmail.com sorry.. Did'nt see it

Re: PropertyModel Not Refreshing

2010-10-12 Thread nino martinez wael
I can confirm the edit issue.. Also what's supposed to happen in recordb panel? I might have a chance to look at it a little later.. 2010/10/12 Shelli Orton shelli.or...@sjrb.ca He provided an updated RecordAPanel.java class that works on his system. I updated mine to match his, but still

MinimumValidator and Long problem

2010-10-12 Thread Zeldor
I have TextField that should take Long value, but on submit it does not really work... org.apache.wicket.RequestCycle logRuntimeException: Exception 'java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long' occurred during validation

RE: PropertyModel Not Refreshing

2010-10-12 Thread Shelli Orton
Hi, Sorry about the serialization errors. My real code is using JPA services/entities and they are serialized. There's a number of tabs that need to be written, but I was just trying to get the one to work before starting the others. I set up the recordB panel to make sure I was creating the

[wiquery] How to open a modal dialog from a Link?

2010-10-12 Thread Peter Munro
Hi, I'm using wiQuery and have a demo application with a Button that opens a modal dialog successfully, but I'd like to use Links instead of Buttons, so I'm replacing this: button wicket:id=open-dialogOpen dialog/button with an anchor/Link: a href=# wicket:id=open-dialogOpen dialog/a and in my

Re: PropertyModel Not Refreshing

2010-10-12 Thread nino martinez wael
in your add button you call setSelectedRecordA(new RecordA()) but never notify the model that a change has occured... 2010/10/12 nino martinez wael nino.martinez.w...@gmail.com hmm getting a lot of errors on the services not implementing serialization... But does seem theres a difference

RE: PropertyModel Not Refreshing

2010-10-12 Thread Shelli Orton
This is where my confusion about models may be kicking in. I thought that property models (PropertModel or CompoundPropertyModel) automatically checked if the model object changed. How do I tell the model it has? Shelli -Original Message- From: nino martinez wael

Re: AjaxPagingNavigator give out strange error

2010-10-12 Thread btbluesky
I finally found out what exactly the problem is. I used the quickstart to generate a new project from scratch. In my maven, I have wicket javadoc to be dependency. whenever that dependency is there. All the ajax calls failed in both jetty and tomcat (I setup both servers to test them), and

Re: [wiquery] How to open a modal dialog from a Link?

2010-10-12 Thread Ernesto Reinaldo Barreiro
Use JavaScript to do that on the client side? See method /**Method to open the dialog * @return the associated JsStatement */ public JsStatement open() { return new JsQuery(this).$().chain(dialog, 'open'); } on Dialog class which generates the

Re: AjaxPagingNavigator give out strange error

2010-10-12 Thread jcgarciam
Why do you add the *classifierjavadoc/classifier * in your pom to have the JavaDocs, why not adding the the -DdownloadSources=true -DdownloadJavadocs=true in your maven command, full example: mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true On Tue, Oct 12, 2010 at 4:13 PM,

Re: Can i execute an inline-javascript added to head for replaced panel on ajax-response?

2010-10-12 Thread MZemeck
Can you share the final solution? From: Per Newgro per.new...@gmx.ch To: users@wicket.apache.org Date: 10/12/2010 01:37 PM Subject:Re: Can i execute an inline-javascript added to head for replaced panel on ajax-response? Jeeehhaa. Thanks alot Igor. That did it. Both tips

Re: repaint a fragment

2010-10-12 Thread Jeremy Thomerson
item.replaceWith(new Fragment()) will replace the *item* with the *fragment*, which is definitely not what you want. On Tue, Oct 12, 2010 at 6:57 AM, fachhoch fachh...@gmail.com wrote: I am confused , I have an Item with a fragment . to repaint this fragment I should just add this item to

Re: AjaxPagingNavigator give out strange error

2010-10-12 Thread Igor Vaynberg
the problem is most likely the fact that wicket tries to load markup out of the javadoc jar instead of the wicket jar. the javadoc has html files named the same as wicket jar. it doesnt make sense to have the javadoc jar on your classpath. but, if you must, just make sure it is on the classpath

Re: PropertyModel Not Refreshing

2010-10-12 Thread nino martinez wael
Think I was going in the wrong direction.. Looking at the error, seems to get triggered by pressing the cancel button only.. 2010/10/12 Shelli Orton shelli.or...@sjrb.ca This is where my confusion about models may be kicking in. I thought that property models (PropertModel or

Re: Can i execute an inline-javascript added to head for replaced panel on ajax-response?

2010-10-12 Thread Per Newgro
Am 12.10.2010 21:43, schrieb mzem...@osc.state.ny.us: Can you share the final solution? Sure. It's public ReplacementPanel(String id) { super(id); final Label component; add(component = new Label(lblReplaced, Done)); component.setOutputMarkupId(true); //

RE: PropertyModel Not Refreshing

2010-10-12 Thread Shelli Orton
I only explicitly set the selectedRecordA in two places, during the cancel and add onSubmit methods (I removed the initialization in the declaration in my code). As you alluded to earlier, add is done via setSelectedRecordA(new RecordA()); and cancel is done via:

Re: PropertyModel Not Refreshing

2010-10-12 Thread nino martinez wael
going at a hunch I decided to rem out the below: //cancel.setDefaultFormProcessing(false); And seems it fixed the problem.. But im too tired to digg further had a similar situation last week.. And the reason was sound.. Just cant remember it now.. 2010/10/12 nino martinez wael

RE: PropertyModel Not Refreshing

2010-10-12 Thread Shelli Orton
I had tried removing that line once before and it does solve the problem when cancelling an edit of an existing record, but I can't cancel the add of a new one. Because I'm using a RequiredTextField, I get a validation error: Field 'recordAText' is required. Thanks for taking the time to

Re: MinimumValidator and Long problem

2010-10-12 Thread Jeremy Thomerson
Since your model doesn't actually know what type of field it is operating on (like PropertyModel does), you need to call setType(Long.class) on your text field. On Tue, Oct 12, 2010 at 1:23 PM, Zeldor pgronkiew...@gmail.com wrote: I have TextField that should take Long value, but on submit it

Re: How to trigger server-side method when user clicks on a Table Row

2010-10-12 Thread Jeremy Thomerson
On Tue, Oct 12, 2010 at 8:25 AM, duncan787 duncan...@gmail.com wrote: Its already attached to the DataView, see the relevant/simplified Java code added below. Would it best practice be to assign a WebMarkupContainer to the TR element and add both an AjaxFallbackLink and a DataView to the

Re: PropertyModel Not Refreshing

2010-10-12 Thread nino martinez wael
yeah I see your point.. But you could always validate latter.. But I agree it's not the way it's supposed to be. It's like the components on the form does not update when you press cancel and default form processing are off. -Nino 2010/10/12 Shelli Orton shelli.or...@sjrb.ca I had tried

Re: submit or refresh form via ajax from javascript ?

2010-10-12 Thread Jeremy Thomerson
Did you mean AJAX submit (as your subject implied)? Have you tried AjaxFormSubmitBehavior? On Tue, Oct 12, 2010 at 8:16 AM, jcgarciam jcgarc...@gmail.com wrote: Simple javascript: var theForm = document.getElementById(formId); theForm.submit(); On Tue, Oct 12, 2010 at 7:53 AM, Maris

Re: PropertyModel Not Refreshing

2010-10-12 Thread Igor Vaynberg
you should first try and understand how models work. there is this page to help you: https://cwiki.apache.org/WICKET/working-with-wicket-models.html but nothing will be better then setting some breakpoints and seeing how things actually work. -igor On Tue, Oct 12, 2010 at 2:24 PM, Shelli Orton

Re: wicket 1.5, resource gives error in log?

2010-10-12 Thread Igor Vaynberg
no, that shouldnt be there. file a bug please. -igor On Tue, Oct 12, 2010 at 3:49 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi I have something where I reference an image directly in html, wicket has no idea what it should do with it so it passes the request to the servlet

Re: PropertyModel Not Refreshing

2010-10-12 Thread nino martinez wael
got point igor.. The first thing I did with the project was copying over the start.java..Having break points etc just gives it a better sense.. Shelli heres the start.java: import org.mortbay.jetty.Connector; import org.mortbay.jetty.Server; import org.mortbay.jetty.bio.SocketConnector; import

Re: wicket 1.5, resource gives error in log?

2010-10-12 Thread nino martinez wael
done -- https://issues.apache.org/jira/browse/WICKET-3103 2010/10/12 Igor Vaynberg igor.vaynb...@gmail.com no, that shouldnt be there. file a bug please. -igor On Tue, Oct 12, 2010 at 3:49 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi I have something where I

Re: MinimumValidator and Long problem

2010-10-12 Thread Zeldor
Changing it to : private TextFieldLong hire_worker_1 = new TextFieldLong(hire_worker_1, new ModelLong()); { hire_worker_1.setType(Long.class); } Does not change anything. And is it normal that Eclipse does not let me add anything without enclosing in { }?

Re: MinimumValidator and Long problem

2010-10-12 Thread Jeremy Thomerson
On Tue, Oct 12, 2010 at 5:07 PM, Zeldor pgronkiew...@gmail.com wrote: Changing it to : private TextFieldLong hire_worker_1 = new TextFieldLong(hire_worker_1, new ModelLong()); { hire_worker_1.setType(Long.class); } Does not change anything. And is it

Re: MinimumValidator and Long problem

2010-10-12 Thread Igor Vaynberg
its not a syntax problem. you cant have code outside a method unless its in a static {} block. -igor On Tue, Oct 12, 2010 at 3:25 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Tue, Oct 12, 2010 at 5:07 PM, Zeldor pgronkiew...@gmail.com wrote: Changing it to : private

Re: MinimumValidator and Long problem

2010-10-12 Thread Jeremy Thomerson
On Tue, Oct 12, 2010 at 5:36 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: its not a syntax problem. you cant have code outside a method unless its in a static {} block. To me, putting code outside a method *is* a syntax problem, typically caused by inexperience with anonymous inner

RE: Wicket site on Android phone

2010-10-12 Thread Randy S.
A big advantage of the iphone browser is its ability to scroll an inner scrolling box (scrollable div or iframe, for example). It does this by handling a two-finger drag as scroll. I'm not aware of a way to do the same with the android browser. We also are facing demand for a desktop web app to

Re: Integrating Separate Different Wicket Applications Into One

2010-10-12 Thread Nivedan Nadaraj
I implemented/integrated a sub-module(s) into one main web application. The solution is discussed in the link below. Hope this helps. http://apache-wicket.1842946.n4.nabble.com/Re-Using-Wicket-to-build-Application-Portal-td2248912.html#a2248912 Cheers On Tue, Oct 12, 2010 at 11:28 AM, Nivedan

using cometd

2010-10-12 Thread fachhoch
I get this message JSONCommented is deprecated null null I am using org.wicketstuff.push version 1.4.8, I get the above message sometimes , do not know when , please tell me is this any problem ? -- View this message in context:

Re: MinimumValidator and Long problem

2010-10-12 Thread Zeldor
I have nothing else really, just same more of same stuff, only a Form with Labels, TextFields and submit method. Anyway, deprecated NumberValidator.minimum(0) method works without any problems, are there any disadvantages of using that? On Wed, Oct 13, 2010 at 12:43 AM,

AjaxRequestTarget not refreshing Component

2010-10-12 Thread LutherBaker
I have created an outer list of areaGroups such that each group item contains a list of areas. I am displaying a ModalWindow and editing an area. After changing the area's name, I submit it via an AjaxSubmitButton which initially added the ListView associated with a particular group. Obviously