Re: CSS not loading on WebMarkupContainer refresh

2010-04-21 Thread Ernesto Reinaldo Barreiro
Hi T, Can you show the code you use to add the additional css file? Ernesto On Wed, Apr 21, 2010 at 10:52 PM, taygolf wrote: > > > Hey guys. I have a page that contains 4 panels. In one of these panels I > have a listview that is inside a WebMarkupContainer. > > The user click on an ajax link w

Strip header contributors from Ajax response.

2010-04-21 Thread Apple Grew
I have a component which contributes Js headers. This component is also rendered by AjaxRequestTarget. The problem is that when rendering ajax response the Js codes too are getting rendered. These Js codes were already contributed when this component first rendered (in non-Ajax mode). To fix this

Re: Back-button friendly ajax wizard navigation

2010-04-21 Thread Brian Laframboise
Thanks Edward. I was hoping for some means of doing this in a redirect-after-post kind of way so that the javascript response to the client actually caused the browser to request the next wizard page via a new url, creating a back-button history entry. I guess generating that URL for a non-bookmark

Re: Which form componnent had focus when form was submitted?

2010-04-21 Thread Igor Vaynberg
you can create a subclass of hiddenfield that would add the necessary javascript for you and you will end up with a nice reusable component. -igor On Wed, Apr 21, 2010 at 11:43 AM, Warren Bell wrote: > Thats what I am currently doing. It just felt to much like something I > used to do in Struts.

Ajax call gives up

2010-04-21 Thread Martin Grigorov
Hi, I'm facing a nasty problem in my app. Submitting a form with Ajax (wicketSubmitFormById) makes the Ajax call back to the backend and after that immediately closes the connection for some unknown reason. The backend successfully process the request but at the end fails with "Broken pipe". Deb

CSS not loading on WebMarkupContainer refresh

2010-04-21 Thread taygolf
Hey guys. I have a page that contains 4 panels. In one of these panels I have a listview that is inside a WebMarkupContainer. The user click on an ajax link which opens up a modal. The user fills out the form and clicks submit. On submit the new information is added to the list view and the WebM

Re: String Resource Loading from DB

2010-04-21 Thread Josh Glassman
Not sure what you mean about implementing a unique class... any class which inherits from Component can call getString(String key), which will call your custom IStringResourceLoader. Additionally, you can set the locale on any MarkupContainer or the Session, and Components will use their parent's

Simple TextField Override and A SubmitLink Question

2010-04-21 Thread Brian Mulholland
I am a Wicket n00b. Just learning and writing a demo app to evaluate Wicket vs a few other MVC solutions which are having demos written by other developers in the group. I am having two issues. Issue 1 involves me trying to write a custom TextField to demo the idea of overriding a control and ou

Re: Which form componnent had focus when form was submitted?

2010-04-21 Thread Warren Bell
Thats what I am currently doing. It just felt to much like something I used to do in Struts. I don't know if there is much call for this, but it would be nice to have an onSubmit for a text field or other form components that would get fired off if that component was in focus when the form was subm

Re: OnChangeAjaxBehavior and other form components

2010-04-21 Thread Steven Haines
I finally got everything working... Here is what I did for anyone that comes across this problem.. I added an onComponentRendered() method to my AjaxFormSubmitBehavior in that method I added the new Wicket.ChangeHandler (I saw the code in the OnChangeAjaxBehavior class): @Override

Re: BoundCompoundPropertyModel

2010-04-21 Thread Ted Roeloffzen
But how does that relate to the bug i'm having? Will the model lose the binding when an ajax-call updates the component? Ted 2010/4/21 Igor Vaynberg > javadoc of bound: > > /** > * A compound property model that supports type conversions and > property expression bindings. > * > * @author Jon

Re: Back-button friendly ajax wizard navigation

2010-04-21 Thread Edward Zarecor
Since you are changing the DOM dynamically using Ajax, the browser -- correctly I would say -- isn't considering this a page change, so the back button should take you back to the page prior to the wizard. The browser history will be immutable from JavaScript, so that's not an option. To achieve

Re: OnChangeAjaxBehavior and other form components

2010-04-21 Thread Steven Haines
Thanks Igor, the AjaxFormSubmitBehavior worked to give me access to all form fields. I have one additional problem: with the OnChangeAjaxBehavior implementation it used my Ajax call decorator correctly and sent me updates after the user typed the 5th character in the field, but with the AjaxFor

Back-button friendly ajax wizard navigation

2010-04-21 Thread Brian Laframboise
I have a Page with a Wizard component. Currently using the next and previous buttons perform full-page (non-ajax) form submissions which has the necessary side-effect of being back-button friendly. I implemented an ajax version of the Wizard in order to get faster validations. That part works grea

Re: meaning of stricken item in Wicket 1.5 Wish List on the wiki ?

2010-04-21 Thread Martijn Dashorst
striken through means: 1) already happened 2) already happened elsewhere 3) never gonna happen Most items fall in categories 1 and 2 Martijn On Wed, Apr 21, 2010 at 2:52 PM, Joseph Pachod wrote: > hi > > Could someone enlighten me with the meaning of stricken items in the Wicket > 1.5 Wish L

Re: Which form componnent had focus when form was submitted?

2010-04-21 Thread Igor Vaynberg
you have to keep a HiddenField component and populate its value using javascript. -igor On Wed, Apr 21, 2010 at 9:41 AM, Warren Bell wrote: > Is there a way to figure out in a forms onSubmit which text field or > button had focus when the form is submitted. I have done something in js > to achie

Which form componnent had focus when form was submitted?

2010-04-21 Thread Warren Bell
Is there a way to figure out in a forms onSubmit which text field or button had focus when the form is submitted. I have done something in js to achieve this, but wanted to see if there was something already built in Wicket. I am limited to using form submit only no Ajax. Windows CE is having probl

Re: OnChangeAjaxBehavior and other form components

2010-04-21 Thread Igor Vaynberg
there is ajaxformsubmitbehavior if you want all the fields updated -igor On Wed, Apr 21, 2010 at 6:10 AM, Steven Haines wrote: > Hi Igor, > > I looked at the JavaScript that is generated when adding an > AjaxFormComponentUpdatingBehavior and it does not include any form fields > other than the

Re: BoundCompoundPropertyModel

2010-04-21 Thread Igor Vaynberg
javadoc of bound: /** * A compound property model that supports type conversions and property expression bindings. * * @author Jonathan Locke * * @param *The model object * * @deprecated See {...@link CompoundPropertyModel#bind(String)} */ -igor On Wed, Apr 21, 2010 at 8:25

BoundCompoundPropertyModel

2010-04-21 Thread Ted Roeloffzen
Hi All, Can anyone tell me the exact differences between a CompoundPropertyModel and a BoundCompoundPropertyModel? In an app i'm working on i'm getting a strange bug. When I update a compnent via ajax the value of that component is not set in the entity. thanks

Re: an interface for page ?

2010-04-21 Thread Joseph Pachod
Martin Grigorov wrote: It is already: (..) thanks for this info :) is there any known estimation of wicket 1.5 release date ? ++ joseph - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: Example for presenting pdf in modal window

2010-04-21 Thread Ernesto Reinaldo Barreiro
Just one idea: check that your IDE is not filtering *.pdf files with the side effect that the file is not available as a resource. Ernesto On Wed, Apr 21, 2010 at 4:19 PM, Ernesto Reinaldo Barreiro wrote: > Natalie, > > Done: I have mailed them to your private mail address as the list does > not

Re: Example for presenting pdf in modal window

2010-04-21 Thread Ernesto Reinaldo Barreiro
Natalie, Done: I have mailed them to your private mail address as the list does not accepts attachments. Best, Ernesto On Wed, Apr 21, 2010 at 4:16 PM, nmetzger wrote: > > Hi Ernesto, > > yes, please email those. > > And I tried putting in a complete path to a pdf file, but I'm getting the

RE: Example for presenting pdf in modal window

2010-04-21 Thread nmetzger
Hi Ernesto, yes, please email those. And I tried putting in a complete path to a pdf file, but I'm getting the same error. Thanks for your help, Natalie From: reiern70 [via Apache Wicket] [mailto:ml-node+2019010-1360852028-229...@n4.nabble.com] Sent: Wednesday, April 21, 2010 10:10 AM To: Me

Re: Example for presenting pdf in modal window

2010-04-21 Thread Ernesto Reinaldo Barreiro
Natalie, As far as I can see you can use the same approach: the only thing that is different is the you will load the resource from somewhere else not from the class path. Do you want me to mail you the test pages (along with the wiki files) I just made to test it? Best Ernesto On Wed, Apr 21,

Re: Example for presenting pdf in modal window

2010-04-21 Thread nmetzger
Ernesto, I checked, but this was only a typo in my post, the file is called test.pdf. And fyi, I'm using wicket 1.4.6. My use case is this: I would like to have help pages displayed in my system that other people besides me edit. So I'd like to put them in a directory outside of my application a

Re: Example for presenting pdf in modal window

2010-04-21 Thread Ernesto Reinaldo Barreiro
Hi Natalie, I have recreated the example and it works as expected (tested on FF, IE). So it must be some detail you are missing. Best, Ernesto On Wed, Apr 21, 2010 at 3:37 PM, Ernesto Reinaldo Barreiro wrote: > Hi Natalie, > > On your e-mail test.pfd which is not exactly the same as test.pdf?

Re: No Redirect to login page

2010-04-21 Thread Kruff
Hello, for short notice: My fault was that the session object was extended by WebSession and not "WaspSession". After changing this fault i get to the login page. Greetings Kruff -- View this message in context: http://n4.nabble.com/No-Redirect-to-login-page-tp2018795p2018981.html Sent from t

Re: Example for presenting pdf in modal window

2010-04-21 Thread Ernesto Reinaldo Barreiro
Hi Natalie, On your e-mail test.pfd which is not exactly the same as test.pdf? Maybe that's what is happening? I wrote this longtime ago... So, I will recreate the example on my local machine and see if it still works. Best, Ernesto On Wed, Apr 21, 2010 at 3:17 PM, nmetzger wrote: > > Hi Erne

Re: Example for presenting pdf in modal window

2010-04-21 Thread nmetzger
Hi Ernesto, I tried using your code, but unfortunately I run into a NullPointerException when trying to load the pdf file. I placed the test.pfd file in the same directory as the MyPdfResource.java, but obviously the system can't find it. Any idea what I might have overlooked? ERROR - RequestCyc

Re: OnChangeAjaxBehavior and other form components

2010-04-21 Thread Steven Haines
Hi Igor, I looked at the JavaScript that is generated when adding an AjaxFormComponentUpdatingBehavior and it does not include any form fields other than the component to which it is added: onChange="if(this.value.length >= 5){var wcall=wicketAjaxPost('?wicket:interface=:1:gettingStartedPanel:

Re: meaning of stricken item in Wicket 1.5 Wish List on the wiki ?

2010-04-21 Thread Martin Grigorov
Some of them are already implemented, other have a comment below forwarding to a solution provided somewhere else (e.g. ImageBundle) On Wed, 2010-04-21 at 14:52 +0200, Joseph Pachod wrote: > hi > > Could someone enlighten me with the meaning of stricken items in the > Wicket 1.5 Wish List of the

Re: an interface for page ?

2010-04-21 Thread Martin Grigorov
It is already: public abstract class Page extends MarkupContainer implements IRedirectListener, IManageablePage, IRequestablePage Component# public final void setResponsePage(final Page page) { getRequestCycle().setRe

meaning of stricken item in Wicket 1.5 Wish List on the wiki ?

2010-04-21 Thread Joseph Pachod
hi Could someone enlighten me with the meaning of stricken items in the Wicket 1.5 Wish List of the wiki (https://cwiki.apache.org/WICKET/wicket-15-wish-list.html ) ? thanks in advance best regards -- Joseph Pachod IT THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761

an interface for page ?

2010-04-21 Thread Joseph Pachod
hi I need to create some page factory where some page should extend some specific interface. Ideally, I would like to be able to request for with MyInterface implementing the page interface however, currently, Page is a class. Would it be thinkable (for example for wicket 1.5) to have an

Strange error

2010-04-21 Thread Objelean Alex
Hi! My application uses wicket-1.4.7. I've noticed recently in logs the following error: 2010-04-21 07:35:18,744 ERROR [org.apache.wicket.request.target.resource.SharedResourceRequestTarget] unable to lazily register shared resource resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.

No Redirect to login page

2010-04-21 Thread Kruff
Hi to all, i am in my second try with swarm to get an secure web application. After the first example which works fine i started my real application. I use to have a none secure start page (extends WebPage) which links to some SecureWebPage. But when i click on the Link to get to the SecureWebPag

RE: Wicket DatePicker memory leak during ajax rerender?

2010-04-21 Thread Jomar Lorentzen
Bumping this. Have anybody experienced memory leaks on the client when rerendering datepickers using wickets AjaxRequestTarget#addComponent()? -Original Message- From: Jomar Lorentzen [mailto:jomar.lorent...@statnett.no] Sent: 25. mars 2010 08:20 To: users@wicket.apache.org Subject: Wi

Re: AbstractDefaultAjaxBehavior - getCallBackUrl

2010-04-21 Thread Arie Fishler
I don't get the difference - Wicket's ajax calls work just fine - they are all on the page with the wicketAjaxGet() function - the first parameter which is the URL has the jsessionid when I generate my JS function which is only used to call the ajax * function* myFunction(){ *var* wcall=wicketAj

Re: Image Upload Using TinyMCE Within Wicket Framework

2010-04-21 Thread Johan Haleby
That would be really helpful. I'm struggling to get your example to work. -- View this message in context: http://n4.nabble.com/Image-Upload-Using-TinyMCE-Within-Wicket-Framework-tp1844756p2018575.html Sent from the Wicket - User mailing list archive at Nabble.com. -