ces.
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Thu, Jun 4, 2015 at 10:43 AM, Edgar Merino
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, and
simply referenc
nel replacement 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 wrote:
Hello:
I'm having a problem with dynamic resources and ajax calls, I have a
panel that
onent
'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
On Tue, Jul 1, 2014 at 10:15 PM, Edgar Merino 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
the req
od to pass 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.
Ed
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 wrote:
Hello, I've got a problem that I've just no
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
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 a
?
Thanks in advance.
Edgar Merino
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
Hello, I've got an AbstractResourceStream implementation that uses a
LoadableDetachableModel to get some information it needs to generate an
InputStream in AbstractResourceStream#getInputStream(). However, I've
noticed that this is called after the request cycle has been detached;
this causes t
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 wrote:
Hello, I have a class that defines 2 properties that depend on each other
(start
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
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
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 havi
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 CompoundProper
, 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 the
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 to
ree.
Since 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 wrote:
I'm completely
dea how 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 wi
9/08/13 22: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.
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
s the
key to solve this, does 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
inside the html document: for example, will
be a problem since wicket always resolves relatives paths from the web
root (or webapp folder).
Do you include the resources you need inside all of your folders so
relative paths resolve correctly outside and inside the wicket application?
Thank
folders 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.
Fo
, 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
tStream in;
public InputStreamResource(InputStream in) {
this.in = in;
}
@Override
public IResourceStream getResourceStream() {
return new InputStreamResourceStream();
}
}
//CODE ENDS
Edgar Merino
--
nce (a lot),
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: user
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 advanc
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
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
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
vice. I'm on my 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-ma
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
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 ver
a service 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: [
hey need easily.
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 n
for me (and maybe many others with the same doubt)?
Thanks again for the help,
Edgar Merino
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
problem I've been facing when coding scalable web applications.
Regards,
Edgar Merino
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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() {
Injecto
(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 G
ch might be to get the service from 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
---
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 th
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$SecondLevelCachePageMap.w
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
richardwilk
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 adv
guice 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 refer
ng my 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]
7;t see
how 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: [
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 c
rits
from PropertyColumn, so using it is as simple as:
(DateColumn class shown below)
List cols = new ArrayList();
cols.add(new DateColumn(new Model("header title"), "propertyExpression"));
No extra code needed, regards.
Edgar Merino
import java.util.Date;
impor
l) {
target.addComponent(feedbackPanel);
}
}
}
Thanks in advance
Edgar Merino
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello,
Is it possible to contribute to the body html tag from within
children pages? directly in markup, like when using the
tag (without modifying the java WebPage).
Thanks in advance.
Edgar Merino
-
To unsubscribe, e
();
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
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 datapro
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 wai
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 p
ay to make 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()
-ig
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
-
To
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
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
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 a
Link and a
Label, since I&
}
I hope someone can give me 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]
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...
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,
can 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 M
65 matches
Mail list logo