RE: best way to accommodate dynamic properties

2011-12-05 Thread Daniel Watrous
-Original Message- From: Daniel Watrous [mailto:daniel.watr...@bodybuilding.com] Sent: Friday, December 02, 2011 5:20 PM To: users@wicket.apache.org Subject: best way to accommodate dynamic properties I'm interested in having pulling the width and height for an img from a database, but I'm

Wicket on Google App Engine

2012-01-03 Thread Daniel Watrous
Hi, I've been working for a few days to get a wicket application going for Google App Engine with mixed results. I hope these questions aren't too noobie for this list? There are a couple of really old articles which Google brings up first:

Re: Wicket on Google App Engine

2012-01-04 Thread Daniel Watrous
. On Wed, Jan 4, 2012 at 1:52 AM, Daniel Watrous daniel.watr...@gmail.com wrote: Hi, I've been working for a few days to get a wicket application going for Google App Engine with mixed results. I hope these questions aren't too noobie for this list? There are a couple of really old

Re: Wicket on Google App Engine

2012-01-04 Thread Daniel Watrous
Also, where do I put the wicket.properties file, and do I need to update any xml files to indicate that there is a wicket.properties file On Wed, Jan 4, 2012 at 11:30 AM, Daniel Watrous daniel.watr...@gmail.com wrote: How do I create the gae-initializer.jar? I have run mvn compile

Re: Wicket on Google App Engine

2012-01-04 Thread Daniel Watrous
to add the gae-initializer as a dependency to your project: dependency groupIdorg.wicketstuff/groupId artifactIdwicketstuff-gae-initializer/artifactId version${wicket.version}/version /dependency That's all. Sven On 01/04/2012 07:35 PM, Daniel Watrous wrote: Also, where do I put

Re: Wicket on Google App Engine

2012-01-04 Thread Daniel Watrous
:45 AM, Daniel Watrous daniel.watr...@gmail.com wrote: Is that the same thing as adding the jar file to the build path in eclipse? How do I build gae-initializer.jar? I tried running 'mvn jar', but it gave an error about unknown lifecycle phase. Daniel On Wed, Jan 4, 2012 at 11:38 AM, Sven

Re: Wicket on Google App Engine

2012-01-04 Thread Daniel Watrous
sure you have compatible versions for Wicket and gae-initializer, i.e. they should be the same. Sven On 01/04/2012 08:49 PM, Daniel Watrous wrote: I'm slowly making progress. I see now that what Sven replied with goes in the pom.xml. What I'm not sure of is if I still need a jar file

Re: Wicket on Google App Engine

2012-01-04 Thread Daniel Watrous
about it. Alternatively you can download the jar form maven central manually and add it to your project:  http://repo2.maven.org/maven2/org/wicketstuff/wicketstuff-gae-initializer/ Hope this helps Sven On 01/04/2012 09:28 PM, Daniel Watrous wrote: I'm still not sure how to create the jar

Re: Wicket on Google App Engine

2012-01-04 Thread Daniel Watrous
setting is:    getResourceSettings().setResourcePollFrequency(duration); Sven On 01/04/2012 10:31 PM, Daniel Watrous wrote: Great. I now have it working with either the jar download or the dependency in the pom.xml file. In the dependency xml snippet I didn't realize that I needed

Handling POST, PUT and DELETE from a resource

2012-01-04 Thread Daniel Watrous
I'm building a web service and I wonder if there's some way to detect and do something unique when calling a ResourceReference with different HTTP methods. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Handling POST, PUT and DELETE from a resource

2012-01-04 Thread Daniel Watrous
to servlets or other handlers that better deal with PUT, DELETE, etc. -- Anh My Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Wednesday, January 4, 2012 at 3:49 PM, Daniel Watrous wrote: I'm building a web service and I wonder if there's some way to detect and do something unique when

Re: Wicket on Google App Engine

2012-01-05 Thread Daniel Watrous
-jdo-on-google-app-engine.html On Wed, Jan 4, 2012 at 11:18 PM, Daniel Watrous daniel.watr...@gmail.comwrote: I tried putting in this: getResourceSettings().setResourcePollFrequency(Duration.ONE_SECOND); But the resource still doesn't update without restarting the google app engine

Re: Wicket on Google App Engine

2012-01-06 Thread Daniel Watrous
which just adds the google sdk as dependency for me so I don't have to mess around in eclipse everytime I run maven. Did you solve that? Hielke -Original Message- From: Daniel Watrous [mailto:daniel.watr...@gmail.com] Sent: donderdag 5 januari 2012 19:35 To: users@wicket.apache.org

Re: Wicket on Google App Engine

2012-01-06 Thread Daniel Watrous
as dependency for me so I don't have to mess around in eclipse everytime I run maven. Did you solve that? Hielke -Original Message- From: Daniel Watrous [mailto:daniel.watr...@gmail.com] Sent: donderdag 5 januari 2012 19:35 To: users@wicket.apache.org Subject: Re: Wicket on Google

Re: Wicket on Google App Engine

2012-01-06 Thread Daniel Watrous
This time I think you didn't include the gae-initializer jar in your WEB-INF/lib directory. On Fri, Jan 6, 2012 at 8:50 AM, Rahman USTA rahman.usta...@gmail.com wrote: i handled them, but now server is giving me internal error, http://chopapp.com/#8lc105ni 2012/1/6 Daniel Watrous daniel.watr

Re: Wicket on Google App Engine

2012-01-06 Thread Daniel Watrous
You might be clever enough to do it in maven. I wasn't, so I added the jar files like I show in my tutorial. On Fri, Jan 6, 2012 at 8:55 AM, Rahman USTA rahman.usta...@gmail.com wrote: i did it in pom.xml, why must i add jars to lib manually? cant i do it with maven? 2012/1/6 Daniel Watrous

Re: Wicket on Google App Engine

2012-01-06 Thread Daniel Watrous
, http://chopapp.com/#7pmdaqmd 2012/1/6 Rahman USTA rahman.usta...@gmail.com i did it in pom.xml, why must i add jars to lib manually? cant i do it with maven? 2012/1/6 Daniel Watrous daniel.watr...@gmail.com This time I think you didn't include the gae-initializer jar in your WEB-INF/lib

does the breadcrumb extension support bookmarkable links?

2012-01-18 Thread Daniel Watrous
I've been working with the breadcrumb components in the extensions library today. Now that I have it working the way I need it to, I noticed that none of the links are bookmarkable. I wondered if it were possible to use this feature and still have links be bookmarkable? I did some searching and

What to add to pom.xml to use hibernate?

2012-01-20 Thread Daniel Watrous
I'm interested in using hibernate in my wicket application, but I can't find any up to date examples combining the two. Is there something other than hibernate that the wicket community uses for ORM? If not, what can I add to the pom.xml file to include hibernate. I tried adding this:

Can't instantiate page using constructor

2012-01-21 Thread Daniel Watrous
When I build my wicket project I'm getting the following error Tests in error: homepageRendersSuccessfully(com.danielwatrous.movieratings.TestHomePage): Can't instantiate page using constructor 'public

Re: Can't instantiate page using constructor

2012-01-21 Thread Daniel Watrous
On Sat, Jan 21, 2012 at 10:26 AM, Per Newgro per.new...@gmx.ch wrote: The stack trace is what? Am 21.01.2012 18:21, schrieb Daniel Watrous: When I build my wicket project I'm getting the following error Tests in error: homepageRendersSuccessfully(com.danielwatrous.movieratings.TestHomePage

Re: What to add to pom.xml to use hibernate?

2012-01-21 Thread Daniel Watrous
/questions/3345816/hibernate-projects-and-building-with-maven See the answer with the green check at the side. I think that will anser you question. You have to exhange the version numbers by 4.0.1... Cheers Per Am 21.01.2012 08:53, schrieb Daniel Watrous: I'm interested in using hibernate

guestbook application with database update

2012-01-21 Thread Daniel Watrous
I'm creating a small app based on the guestbook: http://www.wicket-library.com/wicket-examples/guestbook/?1 In the guestbook app, the page view is updated every time a new comment is added. The variable commentList is initialized at the top like this private static final ListComment commentList

Re: guestbook application with database update

2012-01-21 Thread Daniel Watrous
This worked GREAT! Thank you. On Sat, Jan 21, 2012 at 2:51 PM, Sven Meier s...@meiers.net wrote: Use a LoadableDetachableModel to load a fresh list of movies on each request. Sven On 01/21/2012 10:35 PM, Daniel Watrous wrote: I'm creating a small app based on the guestbook: http

AJAX Rating extension, multiple on a page

2012-01-21 Thread Daniel Watrous
Hi, I've been working with the Rating extension found here: http://www.wicket-library.com/wicket-examples/ajax/ratings?0 I have a case where I need to render multiple on a page, and they render fine. Each rating panel that displays corresponds to a specific record in a database. I would like to

Re: AJAX Rating extension, multiple on a page

2012-01-23 Thread Daniel Watrous
It turned out to be easier than I thought (must not have been thinking in the wicket way). Here's what I do (notice that inside populateItem I have access to movieItem, which I can use to getModelObject()): // Add movieListView of existing movies moviesForm.add(new

form processing for multiple objects

2012-01-23 Thread Daniel Watrous
I have populated a form with values representing several different objects. This is what my markup looks like: form wicket:id = moviesForm id = moviesForm span wicket:id = movies id = movies a wicket:id = removeLink(remove)/a

Re: form processing for multiple objects

2012-01-23 Thread Daniel Watrous
, Jan 23, 2012 at 9:07 AM, Daniel Watrous daniel.watr...@gmail.com wrote: I have populated a form with values representing several different objects. This is what my markup looks like:            form wicket:id = moviesForm id = moviesForm                span wicket:id = movies id = movies

Re: form processing for multiple objects

2012-01-23 Thread Daniel Watrous
rendered so that I can update them one by one. That's where I'm failing. That Form and onSubmit are defined outside of the PropertyListView. I'm sorry if I'm not explaining this very well. Daniel On Mon, Jan 23, 2012 at 9:27 AM, Daniel Watrous daniel.watr...@gmail.com wrote: The problem is that I

Re: form processing for multiple objects

2012-01-23 Thread Daniel Watrous
();               for (Movie movie : listView.getModelObject()) {                   session.save(movie);               }               session.getTransaction().commit();           } Hope this helps Sven Am 23.01.2012 17:27, schrieb Daniel Watrous: The problem is that I can't seem to access the form

Re: form processing for multiple objects

2012-01-23 Thread Daniel Watrous
to the my onSubmit() method in the form. Thank you so much for your help. Daniel On Mon, Jan 23, 2012 at 10:20 AM, Sven Meier s...@meiers.net wrote: How about this:  http://paste.pocoo.org/show/539346/ Sven Am 23.01.2012 17:53, schrieb Daniel Watrous: Here's a little more code. You can see

Weekend in Wicket

2012-01-23 Thread Daniel Watrous
Hi, I spent the weekend working on a pre-interview exercise. The outcome was a wicket+hibernate app deployed on Amazon EC2. I'm sending it to the list because I love finding small examples like this when I'm trying to do something new with a technology like Wicket. I hope it's helpful, and

Reload html in Wicket + GAE

2012-02-06 Thread Daniel Watrous
Hi, I'm following up on a previous thread that's still unresolved. I would like GAE to automatically reload my HTML when I save changes. Classes are reloaded when I save (compile) them, but I have to restart each time for HTML changes. There are some old articles that show how to do this, but

Re: Reload html in Wicket + GAE

2012-02-07 Thread Daniel Watrous
(); } } How can I get the Application object? Daniel On Mon, Feb 6, 2012 at 11:43 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, On Tue, Feb 7, 2012 at 1:32 AM, Daniel Watrous daniel.watr...@gmail.com wrote: Hi, I'm following up on a previous thread that's still unresolved. I would like GAE

Re: Reload html in Wicket + GAE

2012-02-07 Thread Daniel Watrous
for type IntHashMap.Entry; it cannot be parameterized with arguments IModifiable, SetIChangeListener Thanks for any pointers. Daniel On Tue, Feb 7, 2012 at 7:07 AM, Martin Grigorov mgrigo...@apache.org wrote: On Tue, Feb 7, 2012 at 3:53 PM, Daniel Watrous daniel.watr...@gmail.com wrote

Re: Reload html in Wicket + GAE

2012-02-07 Thread Daniel Watrous
to follow http://agilewombat.blogspot.com/2010/01/wicket-on-google-app-engine.html Any pointers? Thanks, Daniel On Tue, Feb 7, 2012 at 8:42 AM, Martin Grigorov mgrigo...@apache.org wrote: Try with java.util.Map.Entry On Tue, Feb 7, 2012 at 5:39 PM, Daniel Watrous daniel.watr...@gmail.com wrote

Re: Reload html in Wicket + GAE

2012-02-07 Thread Daniel Watrous
HashSetIChangeListener. I'm confused that listener is coming back null. Daniel On Tue, Feb 7, 2012 at 9:21 AM, Daniel Watrous daniel.watr...@gmail.com wrote: That helped. I'm getting really close. I'm now getting a null pointer exception in this function        public boolean add(IModifiable modifiable

Re: Reload html in Wicket + GAE

2012-02-07 Thread Daniel Watrous
approach or not, but it works for me and that's fantastic. Daniel On Tue, Feb 7, 2012 at 9:30 AM, Daniel Watrous daniel.watr...@gmail.com wrote: So I was just looking at what I sent along and it seems that putIfAbsent(modifiable, new HashSetIChangeListener()) should return the value component

Re: Reload html in Wicket + GAE

2012-02-07 Thread Daniel Watrous
On Tue, Feb 7, 2012 at 5:31 PM, Daniel Watrous daniel.watr...@gmail.comwrote: I finally got it working. Here's the modified function:        public boolean add(IModifiable modifiable, IChangeListener listener) {                // TODO Auto-generated method stub

Re: Wicket + Guice + unittests

2012-10-10 Thread Daniel Watrous
(stubApplication); stubApplication.getWarpInjector().injectMembers(this); // getWarpInjector returns the injector built in the init method } I'm not sure this is right..it feels to me that it shouldn't be be necessary, but it works for me :) . Ronan On 10/10/2012 18:30, Daniel Watrous

Re: Wicket + Guice + unittests

2012-10-11 Thread Daniel Watrous
up its context listeners, so your GuiceServletContextListener never has a chance to construct and register an Injector with the ServletContext. Dan On Wed, Oct 10, 2012 at 5:30 PM, Daniel Watrous daniel.watr...@gmail.comwrote: Hi, I've integrated Guice into Wicket successfully, but I'm

Re: Wicket + Guice + unittests

2012-10-12 Thread Daniel Watrous
() { @Override public WebApplication createApplication(WicketFilter filter) { return webApplicationProvider.get(); } @Override public void destroy(WicketFilter filter) { } }; } } On Thu, Oct 11, 2012 at 11:49 PM, Daniel Watrous daniel.watr...@gmail.comwrote: Dan, I think you're

Re: Wicket + Guice + unittests

2012-10-12 Thread Daniel Watrous
. Hope that helps. By the way, I enjoyed your Wicket+EC2 article. Thanks for that. :) On Fri, Oct 12, 2012 at 4:08 PM, Daniel Watrous daniel.watr...@gmail.comwrote: Dan, I'm not talking about my application. I'm talking about unittests. I've followed the Guice recommended way to integrate

Re: Wicket + Guice + unittests

2012-10-12 Thread Daniel Watrous
On Fri, Oct 12, 2012 at 6:01 PM, Daniel Watrous daniel.watr...@gmail.comwrote: Dan, Thanks. I've got unittests running now, but the WicketFilter doesn't seem to be processing. All I get when I run the applicaiton shows a jetty produced directory listing. In the snippet you provided before I

Re: Wicket + Guice + unittests

2012-10-15 Thread Daniel Watrous
between Wicket and Guice is clean and flexible. Thanks again, Daniel On Fri, Oct 12, 2012 at 12:35 PM, Daniel Watrous daniel.watr...@gmail.com wrote: yes, that's what I have in my web.xml On Fri, Oct 12, 2012 at 12:10 PM, Dan Retzlaff dretzl...@gmail.com wrote: Yes, CustomFilter

Re: Wicket + Guice + unittests

2012-10-16 Thread Daniel Watrous
to the WicketFilter. I think the integration between Wicket and Guice is clean and flexible. Thanks again, Daniel On Fri, Oct 12, 2012 at 12:35 PM, Daniel Watrous daniel.watr...@gmail.com wrote: yes, that's what I have in my web.xml On Fri, Oct 12, 2012 at 12:10 PM, Dan

Paging and excessive database access (repeaters)

2013-06-11 Thread Daniel Watrous
Hi, I'm following the example in the repeaters section for paging through large amounts of data: http://www.wicket-library.com/wicket-examples-6.0.x/repeater/wicket/bookmarkable/org.apache.wicket.examples.repeater.PagingPage Based on the example and how I've had to implement this there is a lot

Do all POJOs have to implement Serializable?

2013-06-11 Thread Daniel Watrous
Hi, I have an existing application tier that I package as a jar and place in a maven repository. I've been working to expose some of this application through Wicket. It's easy to include it in the pom, but I keep getting: ERROR - JavaSerializer - Error serializing object MyObject

Re: Paging and excessive database access (repeaters)

2013-06-11 Thread Daniel Watrous
an additional database access by id when the DetachableContactModel is attached. Cheers Marios On Tue, Jun 11, 2013 at 6:56 PM, Daniel Watrous dwmaill...@gmail.com wrote: Hi, I'm following the example in the repeaters section for paging through large amounts of data: http://www.wicket

form GET and POST getting mixed up

2013-06-12 Thread Daniel Watrous
Hello, I created a single page that shows some data using DataView. I then added a form and allow a filter argument to be passed in. The problem I'm getting is that the first time a search is done, the search value is added to the URL for the page. Subsequent searches are ignored due to the query

Re: form GET and POST getting mixed up

2013-06-12 Thread Daniel Watrous
!search.isEmpty()) { dataProvider.setSearch(search); } } }; add(form); form.add(searchField); form.add(submitButton); Thanks, Daniel On Wed, Jun 12, 2013 at 9:39 AM, Daniel Watrous dwmaill...@gmail.comwrote: Hello, I

Point Form action to Page

2013-06-21 Thread Daniel Watrous
Hi, I have created a Panel that contains a search form. I can't figure out how to get the action of the Form to submit to the search results page. Any ideas? In other words, I was hoping to do something like this: form.add(new SimpleAttributeModifier(action, SearchResultsPage.class)); Thanks,

Re: Point Form action to Page

2013-06-21 Thread Daniel Watrous
in the o.a.wicket.extensions.markup.html.repeater.data.table.filter package :) ~ Thank you, Paul Bors -Original Message- From: Daniel Watrous [mailto:dwmaill...@gmail.com] Sent: Friday, June 21, 2013 5:13 PM To: users@wicket.apache.org Subject: Point Form action to Page Hi, I have created a Panel that contains a search form. I can't

Re: Point Form action to Page

2013-06-21 Thread Daniel Watrous
: Daniel Watrous [mailto:dwmaill...@gmail.com] Sent: Friday, June 21, 2013 5:40 PM To: users@wicket.apache.org Subject: Re: Point Form action to Page Within my SearchPanel onSubmit, how do I get the PageParameters to make that call to setResponsePage? I hope I'm understanding you right

Re: Point Form action to Page

2013-06-24 Thread Daniel Watrous
form. You can also have a default constructor that would construct the page with no filters. ~ Thank you, Paul C Bors On Jun 21, 2013, at 18:11, Daniel Watrous dwmaill...@gmail.com wrote: That first approach worked, but it brings me back to another issue: I end up with a query string

Customizing links in Paging

2013-06-24 Thread Daniel Watrous
Hello, I'm using the Paging functionality with my DataProvider. I've been trying to make a simple change, but it's turned out to be very difficult. Hopefully you can give a little help. I have a class that extends PagingNavigator and provides markup specific to my theme. When the paging links

Re: Customizing links in Paging

2013-06-25 Thread Daniel Watrous
} to ${to} of ${of}/code format * will be used * * @return codefalse/code by default to show the long format. */ public boolean isShortenVersion() { return false; } } ~ Thank you, Paul Bors -Original Message- From: Daniel Watrous [mailto:dwmaill

Re: DI Through Constructors w/Wicket

2013-06-26 Thread Daniel Watrous
I worked out this process: http://software.danielwatrous.com/wicket-guice-including-unittests/ It enables unittests and may help you toward your goal. Daniel On Tue, Jun 25, 2013 at 7:14 PM, William Speirs wspe...@apache.org wrote: I think I know the answer before I ask, but is there any way

Form questions

2013-07-15 Thread Daniel Watrous
Hello, I'm interested in creating a single Form that will accommodate the following use cases 1) display blank for creating new records 2) pre-populate for editing existing records 3) map submitted values on to an existing domain object 4) accommodate two actions, Save Draft -or- Publish I'm

Re: Form questions

2013-07-16 Thread Daniel Watrous
in your code should help you. Sven On 07/15/2013 11:41 PM, Daniel Watrous wrote: Hello, I'm interested in creating a single Form that will accommodate the following use cases 1) display blank for creating new records 2) pre-populate for editing existing records 3) map submitted values

Re: Form questions

2013-07-17 Thread Daniel Watrous
at: http://wicket.apache.org/learn/books/ ~ Thank you, Paul Bors -Original Message- From: Daniel Watrous [mailto:dwmaill...@gmail.com] Sent: Tuesday, July 16, 2013 7:13 PM To: users@wicket.apache.org Subject: Re: Form questions Thanks Paul and Sven. I got the form to work

Re: Form questions

2013-07-17 Thread Daniel Watrous
I can make it work if I put the markup from CnavForm.html directly into CnavModify, but the form is not as reusable then. I would have to duplicate the markup for other pages that use the same form... Dnaiel On Wed, Jul 17, 2013 at 9:55 AM, Daniel Watrous dwmaill...@gmail.comwrote: That's

Re: Form questions

2013-07-17 Thread Daniel Watrous
(cnavFormArea); add(form); And added this add(new CnavFormPanel(cnavFormArea)); That works. Thanks for your help. Daniel On Wed, Jul 17, 2013 at 10:07 AM, Daniel Watrous dwmaill...@gmail.comwrote: I can make it work if I put the markup from CnavForm.html directly

FeedbackPanel customization

2013-07-17 Thread Daniel Watrous
Hi, I'm working on a modification of the FeedbackPanel to work better with my theme. I would like to prevent the class for the actual message from being appended to. Right now MessageListView is a private final class and the populateItem adds an AttributeModifier to both the label and the

Re: FeedbackPanel customization

2013-07-17 Thread Daniel Watrous
/main/java/com/googlecode/wicket/jquery/ui/panel/JQueryFeedbackPanel.java https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/panel/JQueryFeedbackPanel.html Hope this help, Sebastien. On Wed, Jul 17, 2013 at 10:54 PM, Daniel

Re: FeedbackPanel customization

2013-07-17 Thread Daniel Watrous
/googlecode/wicket/jquery/ui/panel/JQueryFeedbackPanel.html Hope this help, Sebastien. On Wed, Jul 17, 2013 at 10:54 PM, Daniel Watrous dwmaill...@gmail.comwrote: Hi, I'm working on a modification of the FeedbackPanel to work better with my theme. I would like to prevent the class

Last cause: can't serialize class $Proxy23

2013-07-18 Thread Daniel Watrous
My Wicket application uses Guice for DI and some AOP. I have successfully injected a DAO and used that to display records. However, when I try to save a new record in my form, I get the following exception Root cause: java.lang.IllegalArgumentException:

Re: Last cause: can't serialize class $Proxy23

2013-07-18 Thread Daniel Watrous
I found that having my DAO implement Serializable got me past the exception. Is Wicket attempting to serialize my DAO? On Thu, Jul 18, 2013 at 11:24 AM, Daniel Watrous dwmaill...@gmail.comwrote: My Wicket application uses Guice for DI and some AOP. I have successfully injected a DAO and used

Re: Form questions

2013-07-18 Thread Daniel Watrous
every time the page is requested, so that I could check for an ID and either create the model or load it from the database? If so, then I just need help with #1. Thanks, Daniel On Wed, Jul 17, 2013 at 10:19 AM, Daniel Watrous dwmaill...@gmail.comwrote: I think I'm getting it now. The Form needs

Re: Form questions

2013-07-19 Thread Daniel Watrous
first load the page (normally read form the DB). ~ Thank you, Paul Bors -Original Message- From: Daniel Watrous [mailto:dwmaill...@gmail.com] Sent: Thursday, July 18, 2013 6:03 PM To: users@wicket.apache.org Subject: Re: Form questions I've made a lot of progress and been through

Re: http://wicketinaction.com/ broken?

2013-07-19 Thread Daniel Watrous
This looks like a wordpress issue. Look for a problem with the .htaccess file. It should include something like this: IfModule mod_rewrite.c RewriteEngine On RewriteBase /wordpress/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L]

Wicket, Guice and the $Proxy object

2013-07-23 Thread Daniel Watrous
Hi, I'm having an issue that I suspect is related to the wicket integration with Guice. Any help is appreciated. I have a Page class that uses field injection to inject a DAO. I then want to cast my DAO to a more specific type (what I inject is the interface). Here's what that looks like public

Re: Wicket, Guice and the $Proxy object

2013-07-23 Thread Daniel Watrous
of sun.misc.Launcher$AppClassLoader(id=2450)) On Tue, Jul 23, 2013 at 9:20 AM, Daniel Watrous dwmaill...@gmail.comwrote: Hi, I'm having an issue that I suspect is related to the wicket integration with Guice. Any help is appreciated. I have a Page class that uses field injection to inject

Re: Wicket, Guice and the $Proxy object

2013-07-23 Thread Daniel Watrous
That being the case, is there any way to get an instance that I can cast to a concrete type? On Tue, Jul 23, 2013 at 9:27 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, On Tue, Jul 23, 2013 at 6:20 PM, Daniel Watrous dwmaill...@gmail.com wrote: Hi, I'm having an issue that I

Re: Wicket, Guice and the $Proxy object

2013-07-23 Thread Daniel Watrous
, not the interface. @Inject'd implementations have some code smell, but no more than downcasting. On Tue, Jul 23, 2013 at 8:40 AM, Daniel Watrous dwmaill...@gmail.com wrote: That being the case, is there any way to get an instance that I can cast to a concrete type? On Tue, Jul 23, 2013 at 9:27 AM

Re: Form questions

2013-07-23 Thread Daniel Watrous
the entire object from your persistence layer. ~ Thank you, Paul Bors -Original Message- From: Daniel Watrous [mailto:dwmaill...@gmail.com] Sent: Friday, July 19, 2013 11:24 AM To: users@wicket.apache.org Subject: Re: Form questions Paul, Thanks. I get that and understand how

Re: Wicket, Guice and the $Proxy object

2013-07-23 Thread Daniel Watrous
Here's a post that helped me understand this better: http://stackoverflow.com/questions/16047829/proxy-cannot-be-cast-to-class On Tue, Jul 23, 2013 at 2:15 PM, Daniel Watrous dwmaill...@gmail.comwrote: Dan, Good point. After considering I decided to modify my interface to expose