Re: Mount a page to root path in wicket 1.5

2010-10-20 Thread Alex Objelean
No, it seems that if nothing is mount, it redirects to the following location: / - /wicket/bookmarkable/com.mycompany.page.HomePage What would I expect is to access the HomePage with /. -- View this message in context:

Re: Mount a page to root path in wicket 1.5

2010-10-20 Thread Alex Objelean
So you suggest to create something like CustomHomeMapper in order to be able to mount a page to root? If it is true, shouldn't it be possible to have this feature out of the box? -- View this message in context:

Re: Long running task with download

2010-10-20 Thread Alex Objelean
One small note about running a background thread is that inside that thread you cannot access the Application instance (Application.get()), because it is not an inheritable thread local. It may be a problem in some cases. Alex -- View this message in context:

Re: Mount a page to root path in wicket 1.5

2010-10-20 Thread Martin Grigorov
Since 2 days it is possible to do: MyApp#init() { mountPage(/, MyPage.class)} As I said you need latest trunk for that. Otherwise, you'll need to create your own custom mapper for that. Note: It needs to have higher compatibilityScore than the default. On Wed, Oct 20, 2010 at 8:47 AM, Alex

Re: SSL Links and buttons

2010-10-20 Thread sonxurxo
Hi Igor, thank you for your response. I tried what you pointed. The action URL in the form is correctly replaced, since I can see it with Firebug. And even Wicket receives the request when pressing the submit button, but it fails on validating required fields: it does not receive the values,

Re: Mount a page to root path in wicket 1.5

2010-10-20 Thread Alex Objelean
Good to know, thanks! When a new milestone will be available? Thanks! Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mount-a-page-to-root-path-in-wicket-1-5-tp3003270p3003369.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Sending data to a wicket form through a POST from an external site

2010-10-20 Thread ali
Hi Martin, Can you please come up with any example? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Sending-data-to-a-wicket-form-through-a-POST-from-an-external-site-tp110p3003371.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Sending data to a wicket form through a POST from an external site

2010-10-20 Thread Martin Makundi
Make normal stateless form and look what are the ids in the html and then you can send same parameters via post from external site. There is really nothing special about it. ** Martin 2010/10/20 ali sajjad_program...@hotmail.com: Hi Martin, Can you please come up with any example? Thanks

RE: http://dev.jqueryui.com/ticket/5722#comment:3

2010-10-20 Thread Stefan Lindner
I was in doubt when I read this because I fixed the problem in jQuery 1.4.2.core and not in the UI part. But in addition to ui 1.8.5 there is a new core version 1.4.3. I checked both oft them together and it seems to be fixed! I will install a new Version of jWicket in the next few days so that

Re: http://dev.jqueryui.com/ticket/5722#comment:3

2010-10-20 Thread Ernesto Reinaldo Barreiro
Stefan, I have tested it with jquery 1.4.3 and 1.8.5 and work for me too. It might be really true that they fixed this at UI level: I had no problems with using sortables that are somehow similar to dragabble/dropables. It might be good to test core 1.4.2 and 1.8.5 and see if this works: that

Re: _extend48 - ring any bells?

2010-10-20 Thread Wayne W
Hi Jeremy, That is the id for the wicket extend tag in your markup This might be a stupid question - but can I tell where in the page this might be causing the problem from the _extend38? Is that the 38th extend for example? Any hints on how I can track this down? thanks On Tue, Oct 19, 2010

Re: Mount a page to root path in wicket 1.5

2010-10-20 Thread James Carman
Shouldn't / always go to the home page? Why should we have to map that? On Wed, Oct 20, 2010 at 3:05 AM, Martin Grigorov mgrigo...@apache.org wrote: Since 2 days it is possible to do: MyApp#init() { mountPage(/, MyPage.class)} As I said you need latest trunk for that. Otherwise, you'll

Re: Confirmation dialog

2010-10-20 Thread drf
I am having a problem when using IAjaxDecorator as described. In the predecorate method, I have: return if(test-variable) return confirm('text'); + script; The confirm button appears, but even on clicking 'OK', it looks as if false is getting returned every time, because the code in

Re: Mount a page to root path in wicket 1.5

2010-10-20 Thread Martin Grigorov
You don't have to map it. HomePageMapper is pre-installed for you and it will handle '/'. Now it is possible to register custom mapper to handle '/' and use whichever Page you want. Before the commit I mentioned in my previous email it wasn't possible to mount anything at '/'. On Wed, Oct 20,

Re: Confirmation dialog

2010-10-20 Thread drf
Do not know what my mistake is in the previous example, but this works: return if (test) {if (!confirm('TEXT')) return false;} + script; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Confirmation-dialog-tp1844404p3003762.html Sent from the Users forum mailing list

Re: SSL Links and buttons

2010-10-20 Thread Melinda Dweer
Can you try using form wicket:id=form method=get /form E.M.D On Wed, Oct 20, 2010 at 9:05 AM, sonxurxo sonxu...@gmail.com wrote: Hi Igor, thank you for your response. I tried what you pointed. The action URL in the form is correctly replaced, since I can see it with Firebug. And even

Re: SSL Links and buttons

2010-10-20 Thread sonxurxo
Thank you Melinda for your response, I didn't try that because, even when querystring (and therefore GET parameters are too) is secured with SSL, there are some reasons that point that it's a bad idea (look at the first answer at

Re: _extend48 - ring any bells?

2010-10-20 Thread Jeremy Thomerson
On Wed, Oct 20, 2010 at 5:12 AM, Wayne W waynemailingli...@gmail.comwrote: Hi Jeremy, That is the id for the wicket extend tag in your markup This might be a stupid question - but can I tell where in the page this might be causing the problem from the _extend38? Is that the 38th extend

Re: Mount a page to root path in wicket 1.5

2010-10-20 Thread Jeremy Thomerson
On Wed, Oct 20, 2010 at 6:41 AM, James Carman ja...@carmanconsulting.comwrote: Shouldn't / always go to the home page? Why should we have to map that? By default, if you go to /, it will redirect you to wherever the class returned by getHomePage() is otherwise mounted. I think he wants to

Re: Mount a page to root path in wicket 1.5

2010-10-20 Thread Martin Grigorov
On Wed, Oct 20, 2010 at 5:00 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Wed, Oct 20, 2010 at 6:41 AM, James Carman ja...@carmanconsulting.com wrote: Shouldn't / always go to the home page? Why should we have to map that? By default, if you go to /, it will redirect you

Re: Long running task with download

2010-10-20 Thread Martin Zardecki
I had the whole zip + download working from a simple link but building the zip file could take a while and without feedback the user might try refreshing the screen or something stupid which is why I wanted to have a progress status update. Using that AjaxDownload behavior fixed my issue and it

Re: Mount a page to root path in wicket 1.5

2010-10-20 Thread Jeremy Thomerson
By default, if you go to /, it will redirect you to wherever the class returned by getHomePage() is otherwise mounted. I think he wants to maintain the / in the address bar. Also, a bookmarkable link to your home page class wouldn't actually link to /, but to the otherwise mounted url.

Re: SSL Links and buttons

2010-10-20 Thread Igor Vaynberg
look at the requests and make sure that the httpsrequestcycleprocessor is not doing a secure-unsecure redirect which would lose the form values. -igor On Wed, Oct 20, 2010 at 12:05 AM, sonxurxo sonxu...@gmail.com wrote: Hi Igor, thank you for your response. I tried what you pointed. The

Re: setEnabled based on Model

2010-10-20 Thread Andrei Razin
Sorry for the Type: I meant: My problem is: setEnabled does not take iModel as argumet. I'd like to do something like setEnabled(new PropertyModel(doc, canDelete) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setEnabled-based-on-Model-tp3004230p3004245.html Sent

Re: setEnabled based on Model

2010-10-20 Thread Jeremy Thomerson
On Wed, Oct 20, 2010 at 12:00 PM, Andrei Razin rukusv...@hotmail.comwrote: Sorry for the Type: I meant: My problem is: setEnabled does not take iModel as argumet. I'd like to do something like setEnabled(new PropertyModel(doc, canDelete) override isVisible instead: @Override public

Using JavaScript to check a field by id, when Wicket will change the id

2010-10-20 Thread drf
In our application, we want to do the following: 1) Keep a hidden field in a form with a specified id 2) At a certain point in the app, change the value of the field (or hide it completely using setVisible(false)). 3) In the onClick javascript event of a link, check either the existence of the

Re: Using JavaScript to check a field by id, when Wicket will change the id

2010-10-20 Thread Jeremy Thomerson
On Wed, Oct 20, 2010 at 12:14 PM, drf davidrfi...@gmail.com wrote: In our application, we want to do the following: 1) Keep a hidden field in a form with a specified id 2) At a certain point in the app, change the value of the field (or hide it completely using setVisible(false)). 3) In

Re: Long running task with download

2010-10-20 Thread Ernesto Reinaldo Barreiro
try closing the modal window first: this is the source of the navigate away message (I guess), Ernesto On Wed, Oct 20, 2010 at 5:18 PM, Martin Zardecki mpza...@truecool.com wrote: I had the whole zip + download working from a simple link but building the zip file could take a while and

Re: Using JavaScript to check a field by id, when Wicket will change the id

2010-10-20 Thread Arjun Dhar
In my opinion; wicket doesn't mess with the id attribute till you tell it to. There are multiple means to change the id. but by default the id is not touched. Note: wicket:id is not the same as id of the HTML DOM element. So if you define an id in the markup it should stick. As per your quote::

Re: Using JavaScript to check a field by id, when Wicket will change the id

2010-10-20 Thread Jeremy Thomerson
On Wed, Oct 20, 2010 at 12:26 PM, Arjun Dhar dhar...@yahoo.com wrote: In my opinion; wicket doesn't mess with the id attribute till you tell it to. There are multiple means to change the id. but by default the id is not touched. Note: wicket:id is not the same as id of the HTML DOM element.

Re: Using JavaScript to check a field by id, when Wicket will change the id

2010-10-20 Thread Igor Vaynberg
only if you or something else calls setoutputmarkupid(true) -igor On Wed, Oct 20, 2010 at 10:30 AM, Jeremy Thomerson jer...@wickettraining.com wrote: On Wed, Oct 20, 2010 at 12:26 PM, Arjun Dhar dhar...@yahoo.com wrote: In my opinion; wicket doesn't mess with the id attribute till you tell it

Re: setEnabled based on Model

2010-10-20 Thread Igor Vaynberg
or better yet, override onconfigure() and call setvisible/enabled from there -igor On Wed, Oct 20, 2010 at 10:04 AM, Jeremy Thomerson jer...@wickettraining.com wrote: On Wed, Oct 20, 2010 at 12:00 PM, Andrei Razin rukusv...@hotmail.comwrote: Sorry for the Type: I meant: My problem is:

Re: Using JavaScript to check a field by id, when Wicket will change the id

2010-10-20 Thread Arjun Dhar
@Jeremy : my bad then. I've never seen the id's come on their own unless I do setmarkupId(true) or add it by SimpleAttributeModifier() or tag.put(id, ...) in onComponent(Tag). I guess i need to check it out again. thanks. -- View this message in context:

Re: Using JavaScript to check a field by id, when Wicket will change the id

2010-10-20 Thread Jeremy Thomerson
On Wed, Oct 20, 2010 at 12:54 PM, Arjun Dhar dhar...@yahoo.com wrote: @Jeremy : my bad then. I've never seen the id's come on their own unless I do setmarkupId(true) As Igor pitched in, yes, it will only change *if* you (or something else like any ajax behavior) calls

Re: wicket push (comentd) and ajaxlazyloadingpanel

2010-10-20 Thread fachhoch
my case I have a table with ajax pagination , this is in a page. each row in table has a panel to which I added comet behaviour. now when user clicks on second page I refresh this table showing the new set of records . Now if some user sends a message to a component which was in page one

Re: setEnabled based on Model

2010-10-20 Thread Andrei Razin
Thanks a lot -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setEnabled-based-on-Model-tp3004230p3004356.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

Unicode data on the clipboard - not a supported DataFlavor

2010-10-20 Thread duncan787
My Wicket app needs to read the plain-text contents of the clipboard, but Transferable.getTransferDataFlavors() is returning empty. The really weird thing is that when I run the Wicket app in DEBUG mode, a valid DataFlavor is returned and everything works! Here is a pared down source code

Session.attach

2010-10-20 Thread jowen.gsb
Since Session.attach() is deprecated, where would the best place be to put code instead? The current use case is to check that a user has not been deleted/disabled between request cycles. /** * Any attach logic for session subclasses. Called when a session is set for the thread.

Re: Session.attach

2010-10-20 Thread Jeremy Thomerson
On Wed, Oct 20, 2010 at 1:44 PM, jowen.gsb jo...@globalscape.com wrote: Since Session.attach() is deprecated, where would the best place be to put code instead? The current use case is to check that a user has not been deleted/disabled between request cycles. /** * Any

updating header scripts by ajax

2010-10-20 Thread fachhoch
I have a table which has panel in each row I am adding to each panel CometdBehavior which adds lots of scripts in the page header,this table also has ajax pagination,so when I move to the second page the table data is refreshed so each new panel which gets created for each row also gets the

Re: Unicode data on the clipboard - not a supported DataFlavor

2010-10-20 Thread James Carman
How are you expecting a web user to get stuff onto the server clipboard? On Wed, Oct 20, 2010 at 2:18 PM, duncan787 duncan...@gmail.com wrote: My Wicket app needs to read the plain-text contents of the clipboard, but Transferable.getTransferDataFlavors() is returning empty. The really weird

Re: wicket 1.4.12 cannot cast to org.apache.wicket.protocol.http.WebApplication

2010-10-20 Thread cablepuff
Thanks anyways, i found out my problem has nothing to do with wicket at all but rather my tomcat class loader and other related stuff. I had to move slf4j , log4j jar file out of standard webapp during deployment and put them in tomcat/lib folder. -- View this message in context:

Re: Session.attach

2010-10-20 Thread James Carman
Is there any chance, since we can break the API a bit, that we can try to introduce a more listenery method for stuff like this, rather than overriding methods? Developing frameworks for Wicket is difficult because in order to use these hooks you have to have your custom code installed (such as a

Re: Session.attach

2010-10-20 Thread Igor Vaynberg
we started doing that in 1.5. egg see RequestCycle#register(detachCallback). add an rfe for something like irequestlistener { onbegin()/onend()} -igor On Wed, Oct 20, 2010 at 2:31 PM, James Carman ja...@carmanconsulting.com wrote: Is there any chance, since we can break the API a bit, that we

Re: TextField submit via Ajax

2010-10-20 Thread Altuğ Bilgin Altıntaş
Hi Martin; It works thanks; but my condition needs onkeydown anyway now i am posting the complete solution for others Code goal : user enters some char in textfield and press enter, and data comes via ajax. final TextFieldString txtMy= new TextFieldString(txtMy, new Model()) ; txtMy.add(new

Re: Session.attach

2010-10-20 Thread Jeremy Thomerson
On Wed, Oct 20, 2010 at 4:39 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: we started doing that in 1.5. egg see RequestCycle#register(detachCallback). add an rfe for something like irequestlistener { onbegin()/onend()} -igor On Wed, Oct 20, 2010 at 2:31 PM, James Carman

Re: Long running task with download

2010-10-20 Thread Martin Zardecki
Yeah, I close the modal window first and this works on Safari but still gives the message on Firefox. Go figure. Thanks again. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Long-running-task-with-download-tp3003232p3004771.html Sent from the Users forum mailing

Re: setEnabled based on Model

2010-10-20 Thread Andrei Razin
Thanks a lot for the advice. I just implemented it - works. I am still on version 1.4.7, so, couldn't use onConfigure. anyway, here is the code: @Override public boolean isEnabled(){ Object obj = model.getObject(); return

Re: setEnabled based on Model

2010-10-20 Thread Andrei Razin
Sorry, I didn't clarify the reason for Reflection. I created the generic LinkDataColumn, and the link inside does not know about the tipe of class passed into. The page (or form) supplied the Model for the column and the Name like the isEditEnabled property. So, inside the LinkColumn i cannot

Re: setEnabled based on Model

2010-10-20 Thread Jeremy Thomerson
On Wed, Oct 20, 2010 at 7:57 PM, Andrei Razin rukusv...@hotmail.com wrote: Sorry, I didn't clarify the reason for Reflection. I created the generic LinkDataColumn, and the link inside does not know about the tipe of class passed into. The page (or form) supplied the Model for the column and

Re: setEnabled based on Model

2010-10-20 Thread James Carman
Make sure you detach the model in case nobody else is doing it. On Wed, Oct 20, 2010 at 9:01 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Wed, Oct 20, 2010 at 7:57 PM, Andrei Razin rukusv...@hotmail.com wrote: Sorry, I didn't clarify the reason for Reflection. I created the

Re: setEnabled based on Model

2010-10-20 Thread Andrei Razin
Jeremy. Thanks a lot. It is nice to have a hand when you need it. Appreciate, Andrei. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/setEnabled-based-on-Model-tp3004230p3004897.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Session.attach

2010-10-20 Thread Jeremy Thomerson
Added: https://issues.apache.org/jira/browse/WICKET-3125 And now completed (for 1.5-M3) -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*