FooProvider implementation is
public class FooProvider extends TextChoiceProvider
{
FooService fooService=new FooService();
@Override
protected String getDisplayText(Foo fooChoice) {
return fooChoice.getName();
}
@Override
protect
The problem with doing that is that Hibernate detects that as a change
(a null object is not the same as an empty object) and does a database
update (see some of the comments on this:
https://issues.jboss.org/browse/HIBERNATE-50).
Andrew
On Fri, Nov 30, 2012 at 5:59 PM, Sven Meier wrote:
> d
--
Why not handle this in your domain objects already?
@Entity
public class Person {
...
@Embedded
private Address address;
...
public Address getAddress() {
if (address == null) {
address = new Address();
}
return address;
}
}
Sven
On 11/30/2012 11:49 PM, Andrew Gee
I have a Person Hibernate/JPA entity with an @Embedded address object in it:
@Entity
public class Person {
...
@Embedded
private Address address;
...
}
I have a Panel with a Form for editing the Address
(EditAddressFormPanel) and a panel for editing the Person which uses
the Panel for editing
>
> You would't ;).
> All vars of error messages are converted, it just happens that the label
> is one of them.
> We might want to shortcut this by checking the type of the variable if
> it's already a String (before trying to convert it).
>
> Hope this helps
It does and thank you for taking the
See http://api.jquery.com/triggerHandler/
On Fri, Nov 30, 2012 at 10:20 PM, Corbin, James wrote:
> I have some older javascript code that I am migrating to work with Wicket
> 6 and not sure how to do so.
>
> I had some javascript that was triggering the onclick of an element in the
> following w
I have some older javascript code that I am migrating to work with Wicket 6 and
not sure how to do so.
I had some javascript that was triggering the onclick of an element in the
following way,
somedomeelement.click(); // post wicket 1.4 this causes error - TypeError:
Property 'onclick' of obj
So the intentional use that you register other converters with a field other
than those intended for use with the model?
An example:
You've added a behavior to a component, which renders a value into the
"title" attribute of the tag. The value might be a number, while the
component's model obj
I see a solution for this case.
If you can provide a quickstart app then please attach it to a ticket in
our Jira so I can test with it.
On Fri, Nov 30, 2012 at 7:45 PM, saty wrote:
> Below is a part of overall response, the error in this run is:
>
> [13:33:14.799] Wicket.Ajax: Wicket.Ajax.Cal
I was finally able to get it to work with PowerMock. I forgot to add both
the WebApplication and the AjaxRequestTarget to the PrepareForTest
annotation.
Thanks for your help,
Tom
On Fri, Nov 30, 2012 at 10:40 AM, Martin Grigorov wrote:
> Sorry.
> See
> org.apache.wicket.protocol.http.WebApplic
Thanks! For posterity: https://issues.apache.org/jira/browse/WICKET-4900
On Fri, Nov 30, 2012 at 10:13 AM, Martin Grigorov wrote:
> Please file a ticket.
>
>
> On Fri, Nov 30, 2012 at 3:55 PM, Benjamin Heiskell
> wrote:
>
>> Hi,
>>
>> I needed to implement a dynamic JSON API for programmatic cons
Sorry.
See org.apache.wicket.protocol.http.WebApplication#setAjaxRequestTargetProvider
On Fri, Nov 30, 2012 at 4:34 PM, Tom Norton <
tomwnorton.mailing.li...@gmail.com> wrote:
> I tried to implement this, but newAjaxRequestTarget is final :(
>
>
> On Fri, Nov 30, 2012 at 10:24 AM, Tom Norton <
>
I tried to implement this, but newAjaxRequestTarget is final :(
On Fri, Nov 30, 2012 at 10:24 AM, Tom Norton <
tomwnorton.mailing.li...@gmail.com> wrote:
> Thanks a bunch :D
>
>
> On Fri, Nov 30, 2012 at 10:19 AM, Martin Grigorov wrote:
>
>> You can use PowerMock to register a mock via
>> WebApp
Thanks a bunch :D
On Fri, Nov 30, 2012 at 10:19 AM, Martin Grigorov wrote:
> You can use PowerMock to register a mock via
> WebApplication#newAjaxRequestTarget()
>
>
> On Fri, Nov 30, 2012 at 4:16 PM, Tom Norton <
> tomwnorton.mailing.li...@gmail.com> wrote:
>
> > Is it possible to test that app
You can use PowerMock to register a mock via
WebApplication#newAjaxRequestTarget()
On Fri, Nov 30, 2012 at 4:16 PM, Tom Norton <
tomwnorton.mailing.li...@gmail.com> wrote:
> Is it possible to test that appendJavascript is called on wicket 1.5?
>
> Thanks,
> Tom
>
--
Martin Grigorov
jWeekend
Please file a ticket.
On Fri, Nov 30, 2012 at 3:55 PM, Benjamin Heiskell
wrote:
> Hi,
>
> I needed to implement a dynamic JSON API for programmatic consumption
> by another application. I ended up implementing AbstractResource to
> accomplish this task (using Wicket 6.2.0.).
>
> First question,
Try with wget/curl client instead.
I meant "text/javascript" ..
On Fri, Nov 30, 2012 at 4:08 PM, Nick Pratt wrote:
> Ive stepped through the GzipFilter, and things look to be processed through
> the Gzip compression, but only my welcome.html page is returned as gzipped
> - all the .css and .js
Ive stepped through the GzipFilter, and things look to be processed through
the Gzip compression, but only my welcome.html page is returned as gzipped
- all the .css and .js resources do not have a gzip Content-Encoding set on
them.
Just to clarify, did you really mean "text/application" instead o
Hi,
I needed to implement a dynamic JSON API for programmatic consumption
by another application. I ended up implementing AbstractResource to
accomplish this task (using Wicket 6.2.0.).
First question, does this violate the intent of resources? If so, is
there a good way to do this within Wicket?
https://issues.apache.org/jira/browse/WICKET-4870
It seems the problem is still unresolved. You have asked the same in a
ticket.
Did you try my proposals ?
On Fri, Nov 30, 2012 at 2:04 PM, cknafl wrote:
> I found nothing with struts and wicket... :(
>
> Maybe somebody knows the other topic, wh
I see Igor's exlusion in the parent pom.xml but it doesn't seem to help
the build succeed.
>-Original Message-
>From: Martin Grigorov [mailto:mgrigo...@apache.org]
>Sent: Friday, 30 November 2012 11:52 PM
>To: users@wicket.apache.org
>Subject: Re: master branch compiler error in core?
>
>N
I found nothing with struts and wicket... :(
Maybe somebody knows the other topic, where the problem is solved?
Or maybe somone could post the solution here again :)
Regards
Christoph
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-and-Struts-together-have-a
thank you, but then I get the following error:
Last cause: The component(s) below failed to render. Possible reasons could
be that: 1) you have added a component in code but forgot to reference it in
the markup (thus the component will never be rendered), 2) if your
components were added in a pare
No errors here.
Igor added an exclusion in parent pom.xml for this change.
https://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=commitdiff;h=c3d47448d1bf5b5d0e8207bb8c0cf605cef8c18c
On Fri, Nov 30, 2012 at 1:36 PM, Chris Colman
wrote:
> I've just updated the master branch and I ge
Using the class and PageParameters together did it. Thanks a lot.
On 30 November 2012 13:01, Martin Grigorov wrote:
> No worries.
> I still have problem to understand why people call Urls with path
> parameters REST-urls. There is no problem to read query string parameters
> in RESTful app.
>
>
Hi,
I am using Wicket 6.3. I have searched a lot, but somehow didn't find how to
solve this: I would like to have texfields and checkboxes in a datatable.
The following code is not working:
Java:
List> columns = new
ArrayList>();
columns.add(new PropertyColumn(new
Model("Status"), "status") {
No worries.
I still have problem to understand why people call Urls with path
parameters REST-urls. There is no problem to read query string parameters
in RESTful app.
On Fri, Nov 30, 2012 at 12:47 PM, René Vangsgaard wrote:
> Thank you, but my second was more on generating REST-like URLs, not
Thank you, but my second was more on generating REST-like URLs, not
consuming them. I have rephrased my example below.
In init:
mountPage("/guide/${guideId}/step/${stepNo}", classOf[GuidePage])
In StateLessLink.onClick:
setResponsePage(new GuidePage(1984, 1))
It generate this URL (the last numbe
Hi,
Read http://wicketinaction.com/2011/07/wicket-1-5-mounting-pages/
On Fri, Nov 30, 2012 at 11:52 AM, René Vangsgaard wrote:
> Hi all
>
> Searching the net I found various ways to support RESTful URLs in Wicket,
> including the MixedParamUrlCodingStrategy. I am just curious if there is an
>
Hi all
Searching the net I found various ways to support RESTful URLs in Wicket,
including the MixedParamUrlCodingStrategy. I am just curious if there is an
easier way, as it looks cumbersome.
I like the method mountPage (example in Scala below), but it does not
generate RESTful URLs, the URL loo
Hi,
The gzip filter should be before Wicket filter. This way it has the chance
to manipulate the response generated by Wicket.
Wicket just calls httpServletResponse.setContentType("text/application")
and httpServletResponse.write(someStringWithJS).
GZipFilter's job is to change the content type an
Paste few of the generated and elements in
an Ajax response.
I guess the response is after click on an IndicatingAjaxLink ?
On Thu, Nov 29, 2012 at 4:37 PM, saty wrote:
> Most of these are coming from using
> IndicatingAjaxLink link = new IndicatingAjaxLink("link")
> That launches a model win
Hi,
Most of the time people inject services to their components.
To test just components you can use WicketTester#startComponentInPage()
methods.
On Fri, Nov 30, 2012 at 3:18 AM, William Speirs wrote:
> I'm having trouble understanding how to inject components into a page so
> that the page w
I believe this question has been asked few weeks ago and we found the
solution, no ?
On Fri, Nov 30, 2012 at 9:07 AM, cknafl wrote:
> Hi!
>
> We are having two frameworks for one project (wicket 1.4 and struts). Was
> no
> problem until now.
> We want to migrate the whole client to wicket 6.2.
Hi!
We are having two frameworks for one project (wicket 1.4 and struts). Was no
problem until now.
We want to migrate the whole client to wicket 6.2.
>From my struts pages I have a URL like
http://localhost:8080/application/wicket/foo?id= to my wicket-page.
That works, because of the annotat
Hi!
We are having two frameworks for one project (wicket 1.4 and struts). Was no
problem until now.
We want to migrate the whole client to wicket 6.2.
>From my struts pages I have a URL like
http://localhost:8080/application/wicket/foo?id= to my wicket-page.
That works, because of the annotat
36 matches
Mail list logo