I was looking up all available threads, but did not find an answer.
I have an app deployed to a mobile device that should communicate with my
service via REST.
As part of the flow the user can upload a new picture to the service.
My page is able to read GET based requests, but no POST based
Hi, in my DataView I have a column with amounts.
I want to give the positive ones a green color, and the negative ones a red
color;
How to accomplish that?
--
View this message in context:
Hi, in my project I use a CouchDB with files as attachments. Currently I
have a page that makes those attachments available via a ResourceLink. What
I do when creating that page is:
- I read all attachments (I get them as an InputStream),
- create a byte[] out of it,
- create a static
Take a look at DownloadLink and FileResourceStream, and replace all File
related API to your CouchDB access.
Sven
Michael M generi...@gmail.com schrieb:
Hi, in my project I use a CouchDB with files as attachments. Currently I
have a page that makes those attachments available via a
This normally means that there *are* no POST parameters. Are you sure you're
doing a POST request to your page, and not a GET?
-Tom
On 16.08.2012, at 12:16, tmaus loum...@yahoo.com wrote:
I was looking up all available threads, but did not find an answer.
I have an app deployed to a
Hi,
try getRequestParameters() instead of getPostParameters(). This method
returns all request parameters. I don't know why getPostParameters()
return an empty result, maybe it is an issue...
I was looking up all available threads, but did not find an answer.
I have an app deployed to a
Well it turns out that reflective call of a method failes.
I run into WicketRuntimeException in RequestListenerInterface.invoke(Page,
Component).
The button to submit is an instance of AjaxButton. Does this make a difference
in initializing the test?
Regards,
Y
Hi, thanks for for quick answer! I already played around with
ResourceStreams, but my problem was that I couldn't do the bridge from a
Stream to a Resource with a URL.
I should add, I'm not offering my ByteArrayResources as a download. I pass
the content-type and filename, and (with the help I
Thanks for your replies:
This is my plain html code:
form action=/upload method=POST enctype=multipart/form-data
input type=text name=id/
br/
input type=file name=file/
br/
input type=submit value=ab dafür/
/form
This is my
Good afternoon,
I'm currently playing with Wicket 6.0 resource management, as found here:
http://wicketinaction.com/2012/07/wicket-6-resource-management/
Martin's website introduces us to the concept of resource dependencies. It
works great for my own provided JS, but there is still one problem:
I have the exact same issue with wicket 1.5.7, liferay 6.1.1, and
org.apache.portals.bridges:portals-bridges-common version 2. Maybe these
versions are incompatible?
Have you had any success?
--
View this message in context:
I think I just made a huge step forward by overriding getData() of
ByteArrayResource. I've read that in the documentation before, but at that
time was too deep into the concept of resources that I didn't get it (I'm
completely new to Wicket).
So, right now it works that I read my attachment,
Furthermore, I found out that my test code calls public void onSubmit();
instead of calling the overridden protected void onSubmit(AjaxRequestTarget
target, Form? form);
These overriden methods reside in my anonymous inner subclass of AjaxButton.
Assuming you use a Label for your amounts:
new Label( ... ) {
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
if( isNumberPositive() )
tag.append(class, positive_num_css, );
else
tag.append(class,
We have forms throughout our application that can be toggled from read-only
to editable. The wicket framework will disable the form components which
is great, but we'd rather have it display just the texts in a label. We
can subclass TextField, TextArea, DropDownChoice, etc and override the
Yes I had success.
I obtained the jar wicket-portlet-1.5.7.2.jar and added it to my local repo.
$MVN_CMD install:install-file \
-DgroupId=org.apache.wicket.portlet \
-DgeneratePom=true \
-DartifactId=wicket-portlet \
-Dversion=1.5.7.2 \
-Dpackaging=jar \
-Dfile=wicket-portlet-1.5.7.2.jar
Make
Solved...actually IE cannot read onSubmit action. So, I used onkeydown as
stated in
http://apache-wicket.1842946.n4.nabble.com/TextField-submit-via-Ajax-td3002094.html
That will solve the problem..:)
--
View this message in context:
that is expected behavior try
wickettester#ajaxEvent(button,onclick) or it's path equivalent
On Thu, Aug 16, 2012 at 7:00 PM, JCoder i...@jcoder.de wrote:
Furthermore, I found out that my test code calls public void onSubmit();
instead of calling the overridden protected void
sorry typo i meant wickettester#executeAjaxEvent(button,onclick)
On Thu, Aug 16, 2012 at 8:11 PM, vineet semwal vineetsemwa...@gmail.com wrote:
that is expected behavior try
wickettester#ajaxEvent(button,onclick) or it's path equivalent
On Thu, Aug 16, 2012 at 7:00 PM, JCoder
Hi Joachim,
I have never inspected them closely, but I think the classes in play are :
WicketLinkTagHandler
AutoLinkResolver
As for the usefulness of this process, consider panels. Panels can be
instantiated on any mount path so their links must be adjusted.
Good luck!
Bertrand
On
I think there's a bug with class WebApplication which doesn't create a
MultipartServletWebRequestImpl when the original request is multipart.
In the meantime a possible workaround is to override method
newWebRequest of your application class and put the following code
inside it:
{
Ok I think I got it now! Simply using a ResourceStreamResource instead of a
ByteArrayResource, duh... I think the reason why I just couldn't see clear
before is all the different obsolete examples and tutorials for older
versions. The problem is, when you are new to Wicket, you are still
figuring
I've used XsltTransformerBehavior on the containing Panel for such things.
Behaviors (possibly added by a IComponentInstantiationListener) could
'transform' the tag too.
Sven
Steve Lowery slow...@gatessolutions.com schrieb:
We have forms throughout our application that can be toggled from
Overwrite #newRowItem() and tweak the CSS class with a behavior.
Sven
Delange delan...@telfort.nl schrieb:
Hi, in my DataView I have a column with amounts.
I want to give the positive ones a green color, and the negative ones a red
color;
How to accomplish that?
--
View this message in
Can you please elaborate on the use of TransparentWebMarkupContainer in 1.5 for
use with Panel inheritance? I have a page with tabbed panels, each of which has
its own left nav. Each panel subclass thus inherits from the base class /
markup where the corresponding left nav is defined. When I
We have been used Wicket for developing our web applications so far and
currently we are trying to tackle one issue where an optional language
parameters comes in the url for all applications. We are trying to see how can
we customize our applications to have a common page mapper or common
Thanks for these pointers! I'll check the classes out and see how I
can influence their behavior.
Cheers,
Joachim
Bertrand Guay-Paquet wrote:
Hi Joachim,
I have never inspected them closely, but I think the classes in
play are :
WicketLinkTagHandler
AutoLinkResolver
As for the
Any suggestions regarding this? Thank you.
On Thu, Aug 16, 2012 at 10:04 AM, James Eliyezar ja...@mcruncher.comwrote:
Friends,
Just curious to find out what best practices do you all follow when using
WicketTester.
FYI, to improve the performance of unit tests, we decided to use a shared
Thanks Tom for the suggestions. I didn't know these things.
On Fri, Aug 17, 2012 at 12:14 PM, Tom Norton
tomwnorton.mailing.li...@gmail.com wrote:
My unit tests construct the WicketTester in the setUp method. I also
extend WicketTester so that I can mock our database-driven content system
The markup filter that is responsible for this is:
org.apache.wicket.markup.parser.filter.RelativePathPrefixHandler
You can setup a custom MarkupParser that doesn't use this markup
filter to solve your issue.
On Fri, Aug 17, 2012 at 3:06 AM, Joachim Schrod jsch...@acm.org wrote:
Thanks for these
Hi,
Take a look at
https://github.com/apache/wicket/tree/master/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper
and more specifically the usage of LocaleFirstMapper.
On Thu, Aug 16, 2012 at 10:19 PM, Rama Kesara rkes...@art.com wrote:
We have been used Wicket for
Thanks Martin, I will take a look and let you know.
Martin Grigorov mgrigo...@apache.org wrote:
Hi,
Take a look at
https://github.com/apache/wicket/tree/master/wicket-examples/src/main/java/org/apache/wicket/examples/requestmapper
and more specifically the usage of LocaleFirstMapper.
On Thu,
Hi,
You can set your JQueryResRef with
application.getJavaScriptLibrarySettings().setJQueryResourceReference(MyJQueryResRef);
Wicket 6 uses and is tested for JQuery 1.7.2. It also works fine with
1.8.0 (i.e. all available tests pass). It wont work with JQuery 1.6
and older.
On Thu, Aug 16, 2012
33 matches
Mail list logo