Re: Dynamic resources and ajax calls

2015-06-04 Thread Edgar Merino
will be more fluid 3- Also block UI while replacing panel: if your users are too fast you might encounter the same problem again. On Thu, Jun 4, 2015 at 9:16 AM, Edgar Merino donvo...@gmail.com wrote: Hello: I'm having a problem with dynamic resources and ajax calls, I have a panel

Dynamic resources and ajax calls

2015-06-04 Thread Edgar Merino
'mainContainer:mainPanel:wrappedContent:tabbedPanel:panel:materias' has been removed from page. I understand the error, but I don't know what to do to avoid it, has anyone got a similar problem and found a solution? Thanks in advance. Edgar Merino. - To unsubscribe, e-mail

Re: Dynamic resources and ajax calls

2015-06-04 Thread Edgar Merino
. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Jun 4, 2015 at 10:43 AM, Edgar Merino donvo...@gmail.com wrote: Hello, thanks for the response, what do you mean exactly by delegate to the mounted resource? I'm thinking I can mount the images resource

Re: AbstractDefaultAjaxBehavior and getCallbackScript

2014-07-02 Thread Edgar Merino
On Tue, Jul 1, 2014 at 10:15 PM, Edgar Merino donvo...@gmail.com wrote: Hello, we've been working on some javascript code that needs to compute some values before sending the request to wicket server side. Currently, we bind directly to the component's click event using jquery from js, and send

AbstractDefaultAjaxBehavior and getCallbackScript

2014-07-01 Thread Edgar Merino
extra parameters that need to be sent with the request. I believe both approaches would work, but updating the AjaxRequestAttributes seems the best way to go... am I missing something here? Thanks in advance. Edgar Merino

Re: PageParameters refresh on page reload

2014-05-22 Thread Edgar Merino
() with getRequestCycle().getRequest().getRequestParameters() and override with them the page's parameters (page.getPageParameters()) Martin Grigorov Wicket Training and Consulting On Wed, May 21, 2014 at 9:41 PM, Edgar Merino donvo...@gmail.com wrote: Hello, I've got a problem that I've just noticed

PageParameters refresh on page reload

2014-05-21 Thread Edgar Merino
Hello, I've got a problem that I've just noticed today: When an instance of a WebPage is created with some url parameters, the PageParameters object is never updated, that is, if I refresh the same webpage with different url parameters this won't be taken into account, instead the first params

AjaxFormComponentUpdatingBehavior attached to parent

2014-05-05 Thread Edgar Merino
? Thanks in advance. Edgar Merino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: AjaxFormComponentUpdatingBehavior attached to parent

2014-05-05 Thread Edgar Merino
to be added to the formComponent. Your custom Panel can override add(Behavior...) to do the forwarding though. Sven On 05/05/2014 08:19 PM, Edgar Merino wrote: Hello, I currently have a Panel with a DropDownChoice added to it, currently I have a method (MyPanel#addBehavior()) to delegate adding

Re: How to handle dependent properties with FormComponents

2014-01-30 Thread Edgar Merino
Thank you. On 28/11/13 01:58, Martin Grigorov wrote: Hi, See AbstractFormValidator. Use any of the provided implementations of this class as inspiration. On Thu, Nov 28, 2013 at 9:48 AM, Edgar Merino donvo...@gmail.com wrote: Hello, I have a class that defines 2 properties that depend

How to handle dependent properties with FormComponents

2013-11-27 Thread Edgar Merino
and a single method to set and validate the 2 dependent properties. Is there a way to accomplish this? Thanks in advance. Edgar Merino - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail

Problems with FileUploadFile and CompoundPropertyModels

2013-10-25 Thread Edgar Merino
Hello, I'm having a problem with a FileUploadField, I'm using CompoundPropertyModels through my application but for this single element I would like to avoid having a model, however calling fileUploadField.setDefauiltModel(null) will not work, since it will always try to locate a

Re: Problems with FileUploadFile and CompoundPropertyModels

2013-10-25 Thread Edgar Merino
It seems that overriding Component#initModel() to return null does the trick! On 25/10/13 12:30, Edgar Merino wrote: Hello, I'm having a problem with a FileUploadField, I'm using CompoundPropertyModels through my application but for this single element I would like to avoid having a model

Re: Problems with FileUploadFile and CompoundPropertyModels

2013-10-25 Thread Edgar Merino
Thank you Francois, but as I mentioned in an earlier post overriding FileUploadField#initModel() to return null did the trick and seems a bit cleaner that creating a Dummy model. Overriding initModel() makes sure the model won't be looked up in the component parents. Edgar Merino On 25/10

Handle form submit Exception on setDefaultModelObject

2013-09-10 Thread Edgar Merino
Hello, I have a Form with some components attached to it, when I submit the Form through an AjaxSubmitLink some of these components may throw an Exception while updating their models. What can I do to handle these Exceptions and show error messages using error() and adding the feedback panel

Re: Handle form submit Exception on setDefaultModelObject

2013-09-10 Thread Edgar Merino
, Edgar Merino wrote: Hello, I have a Form with some components attached to it, when I submit the Form through an AjaxSubmitLink some of these components may throw an Exception while updating their models. What can I do to handle these Exceptions and show error messages using error() and adding

Re: Custom FormComponent and model update

2013-09-04 Thread Edgar Merino
this component is not visible/reachable by the page then its stateful behavior is not reachable too. So at the end the page may be still stateless and thus never stored. Try with: page.setStatelessHint(false) On Fri, Aug 30, 2013 at 8:22 AM, Edgar Merino donvo...@gmail.com wrote: I'm completely lost

Custom FormComponent and model update

2013-08-29 Thread Edgar Merino
anyone have a clue on how to do this? Thanks in advance, Edgar Merino. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Custom FormComponent and model update

2013-08-29 Thread Edgar Merino
I have track this down to the Component#modelChanging() method, it seems that the actual modified page is not being stored in the session (perhaps it has something to do with dirty pages?). I'm a bit lost here, any clue would be appreciated. Thank you. On 29/08/13 14:33, Edgar Merino wrote

Re: Custom FormComponent and model update

2013-08-29 Thread Edgar Merino
:52, Edgar Merino wrote: I have track this down to the Component#modelChanging() method, it seems that the actual modified page is not being stored in the session (perhaps it has something to do with dirty pages?). I'm a bit lost here, any clue would be appreciated. Thank you. On 29/08/13 14

Re: Custom FormComponent and model update

2013-08-29 Thread Edgar Merino
to solve this? On 29/08/13 23:05, Edgar Merino wrote: Found the problem, it has to do with versioning of pages... my callback is not changing the version number in the URL so everytime I refresh the web page I'm retrieving the older version of the page. I'm gonna have to work with AjaxRequestTarget

Re: Syncing files with designers

2012-12-06 Thread Edgar Merino
? Thanks in advance, Edgar Merino On 05/12/12 10:56, Jan Riehn wrote: Hello Edgar, I think I'm missing something: since every WebPage in wicket has straight access to resources located in the web root (that is, every path reference in the page's markup is relative to the web root) Wicket

Re: Syncing files with designers

2012-12-05 Thread Edgar Merino
to organize html files so the designers can put all the resources they need in their root folder. The mechanism you describe, seems to use folders, how are you managing this for the designers? Edgar Merino On 04/12/12 04:15, Jan Riehn wrote: Hello Edgar, Yes, this is how it works. For the best

Syncing files with designers

2012-12-04 Thread Edgar Merino
, so I can for instance name our html files using the fqcn e.g. my.company.HomePage.html and placing these files in the default package (under src/main/html for example). Is this the way to go? Thanks in advance, Edgar Merino

InputStreamResource

2009-08-10 Thread Edgar Merino
in; public InputStreamResource(InputStream in) { this.in = in; } @Override public IResourceStream getResourceStream() { return new InputStreamResourceStream(); } } //CODE ENDS Edgar Merino

SessionPerRequestFilter

2009-02-04 Thread Edgar Merino
), what workaround can I apply to avoid this kind of overhead (to have a real session per request instead of session per thread?). Correct me if I made the wrong assumptions, Edgar Merino - To unsubscribe, e-mail: users-unsubscr

File download

2009-01-07 Thread Edgar Merino
Hello, How can I allow a user to download a file from a stream? for example an xls that's generated when the user clicks a download button? where should I place the file to be downloaded? Thanks in advance, Edgar Merino

Re: Static injection not working (wicket-guice)

2008-10-23 Thread Edgar Merino
This one seems to have no answer, I've tried googling and everything stopped just here, were I started, I hope someone could provide a solution (different than using salve). Edgar Merino Edgar Merino escribió: Anyone for this? Edgar Merino escribió: Hello, I've been trying

Re: Trying to create a calendar - need some guidance

2008-10-23 Thread Edgar Merino
I've got an abstract calendar already coded, the only problem is that it's using a DataTable (instead of only a gridview), I have to change the code to use the gridview instead, I'll post the code tomorrow if I've got the time and you're still interested. Edgar Merino John Krasnay

Static injection not working (wicket-guice)

2008-10-22 Thread Edgar Merino
way to give salve a try but I'm having some problems there too (waiting for a response from the Discussion group), what suggestions can you make? Thanks in advance, Edgar Merino - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Static injection not working (wicket-guice)

2008-10-22 Thread Edgar Merino
Anyone for this? Edgar Merino escribió: Hello, I've been trying to inject a service to some classes that are not wicket components, I've asked here and was suggested to use static injection: InjectorHolder.getInjector().inject(this); however this is not working with guice, I always get

Salve and Guice

2008-10-21 Thread Edgar Merino
injected, so I'm using salve for this, instead of using @Inject to inject the service I use @Dependency, but I'm getting nullpointerexceptions, any hint? Thank you, Edgar Merino - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Salve and Guice

2008-10-21 Thread Edgar Merino
As far as I know, salve will only modify bytecode, it should do that only once, after the JIT compiler comes in there should be no more overhead. Correct me if I'm wrong, regards. Edgar Merino Guðmundur Bjarni escribió: I agree that static injection is fugly, it makes unit tests very sad

Re: Salve and Guice

2008-10-21 Thread Edgar Merino
Also, InjectorHolder.getInjector().inject(this) does not work with guice, it returns an illegalstateexception saying there's no injector assigned for the holder. It would be nice to have more documentation on how to use salve, regards. Edgar Merino Guðmundur Bjarni escribió: I agree

Re: Domain Model as interfaces

2008-10-16 Thread Edgar Merino
. Regards, Edgar Merino Daniel Frisk escribió: Hi, I'm not sure I understand exactly what is your problem but wouldn't something like this: Db4oImpl / JpaImpl / WhateverImpl ---extends--- AbstractBaseClassWithYourBusinessLogic ---implements--- YourInterface Where needed you would delegate

More guice serialization problems

2008-10-16 Thread Edgar Merino
with the same doubt)? Thanks again for the help, Edgar Merino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

GuiceInjectorHolder inside WebApplication

2008-10-15 Thread Edgar Merino
application. Why didn't it work? what should I do in this case to keep a reference to my Guice injector? Thanks in advance. Edgar Merino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: GuiceInjectorHolder inside WebApplication

2008-10-15 Thread Edgar Merino
Let me correct that last response: the problem is not solved yet. I thought it was but after redeploying my application again I got a serialization exception, why didn't the previously supplied solution didn't work? can anyone give me a hand on this? thanks in advance. Edgar Merino Edgar

Re: GuiceInjectorHolder inside WebApplication

2008-10-15 Thread Edgar Merino
with wicket so I don't think I need that, any suggestion? Edgar Merino Edgar Merino escribió: Hello, I need to hold a reference to a Guice injector inside my WebApplication, however since the injector is not serializable I tried using a GuiceInjectorHolder and keeping a reference

Re: GuiceInjectorHolder inside WebApplication

2008-10-15 Thread Edgar Merino
But I only need to keep a reference to a Guice injector in my WebApplication to use it across some methods in it, I don't need it inside my wicket components... I think the wicket-guice integration serves a different purpose, correct me if I'm wrong. Edgar Merino richardwilko escribió

Re: GuiceInjectorHolder inside WebApplication

2008-10-15 Thread Edgar Merino
is the stack trace. Any help is greatly appreciated. Edgar Merino org.apache.wicket.WicketRuntimeException: Failed to serialize [Page class = org.devpower.wicket.cms.core.page.AdminPage, id = 0, version = 0] at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore

Re: GuiceInjectorHolder inside WebApplication

2008-10-15 Thread Edgar Merino
Ok, using wicket-guice now, problem solved... I didn't want to depend on guice inside my wicket components, but integration is perfect, so I guess I'll just leave it like that, thank you Igor. Edgar Merino Igor Vaynberg escribió: right. you are not keeping a reference to the injector

Guice: injection outside Component

2008-10-15 Thread Edgar Merino
the Application, but I do not want to do this since I don't want the application to know about my Instantiator class, is there a better approach to accomplish what I need? thanks in advance. Edgar Merino - To unsubscribe, e-mail

Re: Guice: injection outside Component

2008-10-15 Thread Edgar Merino
(this); } ... } maybe I'm doing something wrong? any other solution? thank you Edgar Merino Jeremy Thomerson escribió: Try adding a constructor and putting this line in it: *InjectorHolder*.*getInjector*().*inject*(*this*); Works with Spring - haven't used Guice personally

Re: Guice: injection outside Component

2008-10-15 Thread Edgar Merino
Let me correct that last post, I forgot to add the @Inject annotation to the service... it's working... thank you! Edgar Merino Edgar Merino escribió: Thank you Jeremy, I've tried that but it did not work: public class Instantiator { public Instantiator() { Injector injector

Domain Model as interfaces

2008-10-15 Thread Edgar Merino
coding scalable web applications. Regards, Edgar Merino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Submit a form automatically after N seconds

2008-10-07 Thread Edgar Merino
to make this work with what I need. I think an abstractajaxtimerbehavior is what I need here but I need to know how to submit the form in the onTimer method. Thanks in advance. Edgar Merino - To unsubscribe, e-mail: [EMAIL PROTECTED

Reusable DateColumn component

2008-10-05 Thread Edgar Merino
PropertyColumn, so using it is as simple as: (DateColumn class shown below) ListIColumn cols = new ArrayListIColumn(); cols.add(new DateColumn(new Model(header title), propertyExpression)); No extra code needed, regards. Edgar Merino import java.util.Date; import java.text.DateFormat; import

Re: Wrapped FeedbackPanel and AjaxRequestTarget

2008-10-05 Thread Edgar Merino
Never mind, I guess this can be solved by calling the actual Parent that holds the FeedbackPanel: Component parent = null; do { parent = feedbackPanel.getParent(); } while(parent.getParent() != null); Regards, Edgar Merino Edgar Merino escribió: Hello once again, I've been coding

Wrapped FeedbackPanel and AjaxRequestTarget

2008-10-04 Thread Edgar Merino
); } } } Thanks in advance Edgar Merino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Contribute to the body tag (onload)

2008-10-03 Thread Edgar Merino
Hello, Is it possible to contribute to the body html tag from within children pages? directly in markup, like when using the wicket:head tag (without modifying the java WebPage). Thanks in advance. Edgar Merino

Re: DefaultDataTable with date column

2008-10-02 Thread Edgar Merino
ArrayListIColumn(); columns.add(new DateColumn(new Model(Delivery date), dd MMM '@' hh:mm a)); Regards, Edgar Merino Jeremy Thomerson escribió: The default java.util.Date converter within Wicket has varied between releases. I suggest adding this to the init method of your application class

Re: RepeatingView: add new component at specified index

2008-10-01 Thread Edgar Merino
Anyone? Edgar Merino escribió: Hello again, I'm using version 1.3.4 (will wait until the generics version reach its final state), the functionality I need with the RepeatingView is because I want a BasePage to contain a right panel (represented by a RepeatingView), where other panels

Re: RepeatingView: add new component at specified index

2008-10-01 Thread Edgar Merino
Thank you! Edgar Merino Igor Vaynberg escribió: you can override renderiterator() and return one that iterates chlildren in any order you wish -igor On Tue, Sep 30, 2008 at 4:34 PM, Edgar Merino [EMAIL PROTECTED] wrote: Hello again, I'm using version 1.3.4 (will wait until

Re: DefaultDataTable with date column

2008-10-01 Thread Edgar Merino
Use java.text.DateFormat for that matter (take a look at SimpleDateFormat in case you need more control over how you want your date to be formatted). Edgar Merino Pablo S. escribió: Hi, I would like to know how I can format a value from 1 column that is a date. I've a sortable dataprovider

RepeatingView: add new component at specified index

2008-09-30 Thread Edgar Merino
Hello, is there any way to control the underlaying Collection a WebMarkupContainer holds? So I can control where to insert the new components to be added (with an index, for example). Thanks in advance. Edgar Merino

Re: RepeatingView: add new component at specified index

2008-09-30 Thread Edgar Merino
this automatic from the BasePage, so I can avoid having all the children of BasePage call that specific method at the end of its constructor? (perhaps, using a callback? will onBeforeRender() work?). Edgar Merino Igor Vaynberg escribió: in 1.4 there is markupcontainer.swap() -igor On Tue, Sep

Add more than one component to an Item (repeaters)

2008-09-25 Thread Edgar Merino
a hint on what to do, thank you in advance. Edgar Merino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Add more than one component to an Item (repeaters)

2008-09-25 Thread Edgar Merino
that involves many subcomponents and add it to your datatable. Too simple? On Thu, Sep 25, 2008 at 11:28 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Do it as a panel..? Edgar Merino wrote: Hello, I've got a DataTable that needs to add to each of its Items

Add caption to DataTable

2008-09-25 Thread Edgar Merino
Hello again, Is it possible to add a caption to a DataTable? Toolbars are not good for these, any advice on how to do this? Regards. Edgar Merino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: Add caption to DataTable

2008-09-25 Thread Edgar Merino
Never mind, solved it using some extra css. Edgar Merino escribió: Hello again, Is it possible to add a caption to a DataTable? Toolbars are not good for these, any advice on how to do this? Regards. Edgar Merino

Create permanent sessions (or the like)

2008-09-23 Thread Edgar Merino
be seeing by going to the wicket examples page in the linkomatic application, after the session expires you can no longer click the ajax link counter without receiving a PageExpired exception). Thanks in advance. Edgar Merino

Re: Create permanent sessions (or the like)

2008-09-23 Thread Edgar Merino
Would do, I think there are not many security implications in doing this, am I correct? Thank you, Edgar Merino Piller Sébastien escribió: How about increasing the session's timeout? Set it to 10 hours, then nobody will get a PageExpired in a normal use Edgar Merino a écrit : Hello, I've

Re: Create permanent sessions (or the like)

2008-09-23 Thread Edgar Merino
Thank you again, no sensitive information is to be used. Edgar Merino Piller Sébastien escribió: afaik, there isn't much... if your manage normal data, no problem. But with financial, banking, etc. when you have to manage cash, or sensible data, I'd discourage you to do so... if a user