Ancestor controller patterns?

2018-04-20 Thread James Carman
I have a scenario where a certain type of component should typically be
invisible, but in certain scenarios, it neeeds to become visible. That
visibility can be changed by anybody in its ancestry and the closest one to
the component should decide.  Anyway, do we have established patterns for
this?  Do I make the guys who want to control this visibility implement
some interface and search for them up the hierarchy?  Is there a different
way?

Thanks,

James


ListView Add/Remove via AJAX...

2018-03-27 Thread James Carman
It has been a while since I've used Wicket and man, I really forgot how
much I love this framework! It may be that I'm rusty, but I've searched
quite a bit and tried all the suggestions I've found, but I can't seem to
make add/remove via AJAX work for a ListView while preserving the input
data. I am using Wicket 8.0.0-M9. Here's what I've done so far:

correctChoiceGroup = new CheckGroup<>("correctChoices",
Model.ofSet(Sets.newHashSet()));
correctChoiceGroup.setRequired(true);
correctChoiceGroup.setOutputMarkupId(true);
correctChoiceGroup.setRenderBodyOnly(false);

final IModel> choicesModel = Model.ofList(new LinkedList<>());
choicesView = new ListView("choices", choicesModel) {
@Override
protected void populateItem(ListItem item) {
final int index = item.getIndex();

item.add(new TextField<>("field", item.getModel()));
item.add(new Check<>("check", Model.of(index)));

final AjaxSubmitLink deleteLink = new AjaxSubmitLink("deleteButton") {
@Override
@SuppressWarnings("unchecked")
protected void onSubmit(AjaxRequestTarget target) {
final ListView listView = findParent(ListView.class);
listView.getModelObject().remove(index);
listView.removeAll();
target.add(correctChoiceGroup);
}
};
deleteLink.setDefaultFormProcessing(false);
item.add(deleteLink);
}
}.setReuseItems(true);


correctChoiceGroup.add(choicesView);

add(new AjaxSubmitLink("addButton") {
@Override
protected void onSubmit(AjaxRequestTarget target) {
choicesView.getModelObject().add("");
choicesView.removeAll();
target.add(correctChoiceGroup);
}
}.setDefaultFormProcessing(false));

add(correctChoiceGroup);


When I click on the delete link (I have a similarly-implemented "add" link
outside of the ListView), all of the input data goes away, since I am
losing the original items from the removeAll() call.  Now, I am doing the
removeAll() to force Wicket to realize that I've changed the underlying
list, otherwise, the original items are reused and the it always looks like
the last item is removed.  I'm sure I'm just rusty, but I am banging my
head on this one.

Thanks,

James


Re: Wicket and JPA: please a simple way to go

2012-05-13 Thread James Carman
Use the source, Luke!  The code is hosted at github currently.

https://github.com/jwcarman/Wicketopia
On May 13, 2012 1:07 PM, "Tom Eugelink"  wrote:

> Where? I get almost empty pages.
>
>
>   About Wicketopia Example Application
>
> A Rapid Application Development (RAD) library for the Apache Wicket
> framework
>
>
>
>
> On 2012-05-13 18:44, James Carman wrote:
>
>> There is a sample application by the way. It'll give you a good idea of
>> the
>> capabilities.
>> On May 13, 2012 12:18 PM, "James 
>> Carman"
>> >
>> wrote:
>>
>>  Patches and contributions are welcome.
>>> On May 13, 2012 10:55 AM, "Tom Eugelink"  wrote:
>>>
>>>  On 2012-05-13 13:49, James Carman wrote:
>>>>
>>>>  If your application is that simple, check out Wicketopia.
>>>>>
>>>>>  Always interesting, but the information (http://wicketopia.**
>>>> sourceforge.net/<http://**wicketopia.sourceforge.net/<http://wicketopia.sourceforge.net/>>)
>>>> is, ah, lacking?
>>>>  :-)
>>>>
>>>> Tom
>>>>
>>>>
>>>> --**
>>>> --**-
>>>> To unsubscribe, e-mail: 
>>>> users-unsubscribe@wicket.**apa**che.org<http://apache.org>
>>>> 
>>>> >
>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>
>>>>
>>>>
>


Re: Wicket and JPA: please a simple way to go

2012-05-13 Thread James Carman
There is a sample application by the way. It'll give you a good idea of the
capabilities.
On May 13, 2012 12:18 PM, "James Carman" 
wrote:

> Patches and contributions are welcome.
> On May 13, 2012 10:55 AM, "Tom Eugelink"  wrote:
>
>>
>> On 2012-05-13 13:49, James Carman wrote:
>>
>>> If your application is that simple, check out Wicketopia.
>>>
>>
>> Always interesting, but the information (http://wicketopia.**
>> sourceforge.net/ <http://wicketopia.sourceforge.net/>) is, ah, lacking?
>>  :-)
>>
>> Tom
>>
>>
>> --**--**-
>> To unsubscribe, e-mail: 
>> users-unsubscribe@wicket.**apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>


Re: Wicket and JPA: please a simple way to go

2012-05-13 Thread James Carman
Patches and contributions are welcome.
On May 13, 2012 10:55 AM, "Tom Eugelink"  wrote:

>
> On 2012-05-13 13:49, James Carman wrote:
>
>> If your application is that simple, check out Wicketopia.
>>
>
> Always interesting, but the information (http://wicketopia.**
> sourceforge.net/ <http://wicketopia.sourceforge.net/>) is, ah, lacking?
>  :-)
>
> Tom
>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@wicket.**apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket and JPA: please a simple way to go

2012-05-13 Thread James Carman
On Sun, May 13, 2012 at 7:19 AM, hfriederichs  wrote:
> Tom,
>
> I couldn't agree more, you hit the spot. Indeed it's all about balance,
> don't over- (nor under-)architecture things. My application will be used by
> maybe 5 people, and requires some very simple CRUD-implemetations on a
> database table with maybe 100 rows (eventually).

If your application is that simple, check out Wicketopia.  It might be
able to do a lot of what you need out of the box.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket and JPA: please a simple way to go

2012-05-12 Thread James Carman
On Sat, May 12, 2012 at 3:42 PM, hfriederichs  wrote:
> And I think I´m missing your point: I still don't get what's technology
> specific about JPA. Isn't it just a Java API like JMS or JaxWS?
>

Yes, JPA is *an* API, but it's not the only persistence API out there.
 If Wicket were to "pick a favorite", then of course there would be
folks out there that wouldn't like it.  So, it doesn't.  However,
there are plenty of add-on modules for you to choose from that make it
much easier for you to use your API of choice.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket and JPA: please a simple way to go

2012-05-12 Thread James Carman
What if people want to use Hibernate?  What if people want to use
Cayenne?  What if people want to use iBatis/myBatis?  What if folks
want to use just plain ole JDBC?

The point is that the "core" of Wicket tries to stay as uncluttered as
possible, relying upon add-on modules to adapt it to other
environments (such as JEE like you're used to).  I would suggest you
take a look at the examples folks are showing you and play with them.
I think you'll find that the boilerplate stuff you have to do drops
off considerably after you get things working the way you want.  There
are even maven archetypes out there (legup is one I think others are
using) to help you get a fully working version set up in no time.

On Sat, May 12, 2012 at 3:05 PM, hfriederichs  wrote:
> James, what is technology specific about JPA?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4629309.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket and JPA: please a simple way to go

2012-05-12 Thread James Carman
Wicket core tries to stay "stack agnostic".  If you want technology
specific stuff, you have to use extra modules.
On May 12, 2012 1:23 PM, "hfriederichs"  wrote:

> Igor,
>
> Josh suggested CDI as an alternative, in that respect it's the same as
> other
> approaches I've tried: to cumbersome, to complex for my goals, so in
> respect
> to what I want I don't think it's great.
>
> I'll look into the wicket-jee module in wicketstuff, but it is yet another
> extra 'thingy' you need for something that's so simple and basic... I
> wonder
> if anyone has ever coined the phrase 'boiler plate xml' or 'boiler plate
> components'. Maybe a quiz is a good idea. The Question is: fetch one row
> from a straightforward table in let's say an onclick of a wicket button,
> using jpa. The respondent that has the simplest solution gets eternal fame.
>
> > Of course, the CDI-blog goes with the usual great-gratitude-comments of
> > developers who couldn't figure it out either.
>
> >> whats wrong with that?
>
> Who says there's something wrong with that? It's just irony.
>
> Thanks anyways
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4629186.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Add components dynamically to a list view

2012-05-10 Thread James Carman
Are you looking to auto-generate some kind of "editor"?  If so, you
should check out Wicketopia.  That's what it does!  If it doesn't work
exactly for your needs, perhaps you can borrow from it or just shoot
an email to the mailing list and we'll (or "I'll") take a look.

On Thu, May 10, 2012 at 10:37 AM, cristic83  wrote:
> Hi guys,
>
> I have the following scenario to implement and I couldn't devise my own
> solution or find anywhere on the internet something that could help me, so I
> thought to give it a try on this mailing list. So here it goes the issue
> that I have:
>
> I want to add to a list view different components dynamically. E.g.,
> depending on the listItem model, I want to add an input field or a select
> box to my list view. And I also want to use the CompoundPropertyModel for
> these components added dynamically.
>
> What I did until now was something like this: in the populateItem method of
> the listView I set the model of the listItem to be a compound propertymodel
> like this:
>
> listItem.setModel(new
> CompoundPropertyModel(fieldDescriptorListItem.getModel()));
>
> Then, I added a Label to the listItem like this: listItem.add(new
> Label("name")); //the model has a name property -this works
>
> The model class has a type property which tells me what type of component I
> should display: input or select and a String property which is used to hold
> the value entered/selected by the user.
>
> Now, I want to add input or select fields dynamically based on the model
> type property. In order to do that, the only solution I could find was to
> create a panel for each type of field I wanted to add, e.g. TextFieldPanel
> or DropDownBoxPanel. Then I added that panel to the listView. This is not
> good for me, because this way I cannot bind the value entered by the user to
> the model using the compound property model, since I have an intermediary
> panel. Is there a way I could avoid wrapping the components in this
> intermediary panel? I found this link:
> https://cwiki.apache.org/WICKET/page-with-dynamic-components.html suggesting
> to use the wicket:container tag but I could not make it work.
>
> Do you have any ideas on how this can be accomplished?
>
> Thanks in advance,
> Cristi
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Add-components-dynamically-to-a-list-view-tp4623678.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Web app slow after migrating from WebSphere 6.1 to Tomcat 7

2012-05-10 Thread James Carman
Have you tried fronting Tomcat with Apache?

On Thu, May 10, 2012 at 10:30 AM, shetc  wrote:
> Hi All,
>
> Not sure that this is really a Wicket question but I am having trouble
> finding answers elsewhere.
>
> I have a production Wicket-based app that runs just fine in WebSphere 6.1. I
> am trying to move this
> app to Tomcat 7. Performance testing has revealed significantly (and
> unacceptable) slower page
> response time for Tomcat. I have pinpointed the problem to the resources
> being served including *.js, *.css
> and bitmaps, of which there aren't really that many. If I strip these
> resources out of the app then it
> runs very fast so I know it's not about Wicket/Spring/Hibernate etc. I tried
> making a plain HTML page,
> copying the resources to the usual WebContent area of the web app, and
> referring to those resources in the
> page -- this page is also really slow in performance testing.
>
> The Tomcat instance is sitting on beefy hardware, has significant amount of
> memory and threads
> allocated to it. Is there something I have missed when setting up Tomcat?
>
> BTW, this is an older app using Wicket 1.3.7.
>
> Thanks,
> Steve
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Web-app-slow-after-migrating-from-WebSphere-6-1-to-Tomcat-7-tp4623666.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Persistence.

2012-05-08 Thread James Carman
You should take a look at some of the RAD tools for persistence with
Wicket.  I wrote a library called Wicketopia that can probably help
you get started.

On Tue, May 8, 2012 at 4:35 PM, JASON HOLT  wrote:
>
>
>
>
> I'll repeat my plea for patience as I'm new to Java and Wicket, but have some 
> minimal experience with ASP.net forms (not MVC). I've reached that point in 
> the learning process where I want to interact with a database and I wish to 
> use entities and Hibernate to make it easier. From what I've seen in various 
> blogs and forums, some say you shouldn't use entities as models, yet others 
> do it with LDMs. Since I'm taking baby steps, I want to start by using 
> entities as models, unless someone convinces me I'm wasting my time. 
> Following the basic Hibernate tutorials for persisting simple classes, I've 
> managed to make the following work in Wicket. In the LDM load... @Override
> public Person load()
> {
>   Session session =  WicketApp.sessionFactory.openSession();
>   session.beginTransaction();
>   Person person = (Person) session.get(Person.class, 1L);
>   session.getTransaction().commit();
>   session.close();
>   return person;
> } In the form I update the evil entity model with text boxes, using a CPM 
> containing the LDM. In the submit button... public void onSubmit()
> {
>   Session session = WicketApp.sessionFactory.openSession();
>   session.beginTransaction();
>   session.update(ldm.getObject());
>   session.getTransaction().commit();
>   session.close();   this.setResponsePage(EndPage.class);
> } The sessionFactory is a static member of the WicketApp application class, 
> initialized in the init() method. This seems to work, but I suppose there are 
> all kinds of faulty design patterns used here. My main concern is... how can 
> I do this without opening a new Hibernate session in onSubmit()? During 
> postback, I think I should be able to reuse the same session opened at 
> ldm.load() in onSubmit() also, as it all occurs in the same request. Is this 
> possible? Thanks for your assistance. Please feel free to point out every 
> flaw.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-11 Thread James Carman
The Wicketopia example application doesn't run into those troubles.  I
may not be doing exactly what you're doing, though:

https://github.com/jwcarman/Wicketopia



On Wed, Apr 11, 2012 at 4:26 PM, Jonathan Tougas  wrote:
> Using wicket-cdi <https://github.com/42Lines/wicket-cdi> the problem still
> exists. I'll update the example in a moment.
>
> On Wed, Apr 11, 2012 at 3:58 PM, James Carman 
> wrote:
>
>> I would recommend checking out one of the existing libraries that does
>> Wicket/CDI integration.
>>
>> On Wed, Apr 11, 2012 at 3:54 PM, Jonathan Tougas 
>> wrote:
>> > I'm running Wicket 1.5 on JBoss 7.1.1 with some CDI thrown in to the mix.
>> > In certain cases when Wicket deserializes a Page containing a reference
>> to
>> > a CDI bean, I get this exception:
>> >
>> > 15:10:30,841 ERROR [org.apache.wicket.request.RequestHandlerStack]
>> > (http--127.0.0.1-8080-1) Error detaching RequestHandler:
>> > java.lang.RuntimeException: Could not deserialize object using: class
>> >
>> org.apache.wicket.serialize.java.JavaSerializer$ClassResolverObjectInputStream
>> > at
>> >
>> org.apache.wicket.serialize.java.JavaSerializer.deserialize(JavaSerializer.java:137)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.pageStore.DefaultPageStore.deserializePage(DefaultPageStore.java:388)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.pageStore.DefaultPageStore.getPage(DefaultPageStore.java:127)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.page.PageStoreManager$SessionEntry.getPage(PageStoreManager.java:192)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.getPage(PageStoreManager.java:327)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.page.AbstractPageManager.getPage(AbstractPageManager.java:102)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.page.PageManagerDecorator.getPage(PageManagerDecorator.java:50)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.page.PageAccessSynchronizer$2.getPage(PageAccessSynchronizer.java:257)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.DefaultMapperContext.getPageInstance(DefaultMapperContext.java:117)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.request.handler.PageProvider.getStoredPage(PageProvider.java:292)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.request.handler.PageProvider.isNewPageInstance(PageProvider.java:205)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.request.handler.PageProvider.getPageParameters(PageProvider.java:184)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.request.handler.logger.PageLogData.(PageLogData.java:51)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.request.handler.logger.ListenerInterfaceLogData.(ListenerInterfaceLogData.java:56)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.detach(ListenerInterfaceRequestHandler.java:134)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.detach(RequestCycle.java:792)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.request.RequestHandlerStack.detach(RequestHandlerStack.java:180)
>> > [wicket-request-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:596)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:539)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:287)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:185)
>> > [wicket-core-1.5.5.jar:1.5.5]
>> > at
>> >
>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:241)
>> > [wicket-

Re: Wicket 1.5.5 + JBoss 7.1.1 + CDI - ClassNotFoundException

2012-04-11 Thread James Carman
I would recommend checking out one of the existing libraries that does
Wicket/CDI integration.

On Wed, Apr 11, 2012 at 3:54 PM, Jonathan Tougas  wrote:
> I'm running Wicket 1.5 on JBoss 7.1.1 with some CDI thrown in to the mix.
> In certain cases when Wicket deserializes a Page containing a reference to
> a CDI bean, I get this exception:
>
> 15:10:30,841 ERROR [org.apache.wicket.request.RequestHandlerStack]
> (http--127.0.0.1-8080-1) Error detaching RequestHandler:
> java.lang.RuntimeException: Could not deserialize object using: class
> org.apache.wicket.serialize.java.JavaSerializer$ClassResolverObjectInputStream
> at
> org.apache.wicket.serialize.java.JavaSerializer.deserialize(JavaSerializer.java:137)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.pageStore.DefaultPageStore.deserializePage(DefaultPageStore.java:388)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.pageStore.DefaultPageStore.getPage(DefaultPageStore.java:127)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.page.PageStoreManager$SessionEntry.getPage(PageStoreManager.java:192)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.getPage(PageStoreManager.java:327)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.page.AbstractPageManager.getPage(AbstractPageManager.java:102)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.page.PageManagerDecorator.getPage(PageManagerDecorator.java:50)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.page.PageAccessSynchronizer$2.getPage(PageAccessSynchronizer.java:257)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.DefaultMapperContext.getPageInstance(DefaultMapperContext.java:117)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.request.handler.PageProvider.getStoredPage(PageProvider.java:292)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.request.handler.PageProvider.isNewPageInstance(PageProvider.java:205)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.request.handler.PageProvider.getPageParameters(PageProvider.java:184)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.request.handler.logger.PageLogData.(PageLogData.java:51)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.request.handler.logger.ListenerInterfaceLogData.(ListenerInterfaceLogData.java:56)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.detach(ListenerInterfaceRequestHandler.java:134)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.detach(RequestCycle.java:792)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.request.RequestHandlerStack.detach(RequestHandlerStack.java:180)
> [wicket-request-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:596)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:539)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:287)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:185)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:241)
> [wicket-core-1.5.5.jar:1.5.5]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
> [jbossweb-7.0.10.Final.jar:]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
> [jbossweb-7.0.10.Final.jar:]
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
> [jbossweb-7.0.10.Final.jar:]
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> [jbossweb-7.0.10.Final.jar:]
> at
> org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:154)
> [jboss-as-web-7.1.0.Final.jar:7.1.0.Final]
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
> [jbossweb-7.0.10.Final.jar:]
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> [jbossweb-7.0.10.Final.jar:]
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> [jbossweb-7.0.10.Final.jar:]
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
> [jbossweb-7.0.10.Final.jar:]
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
> [jbossweb-7.0.10.Final.jar:]
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
> [jbossweb-7.0.10.Final.jar:]
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
> [jbossweb-7.0.10.Final.jar:]
> at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_02]
> Caused by: java.lang.ClassNotFoundException:
> org.jb

Re: NumberValidator.MinimumValidator

2012-04-02 Thread James Carman
http://wicket.apache.org/apidocs/1.5/org/apache/wicket/validation/validator/MinimumValidator.html

On Mon, Apr 2, 2012 at 6:12 AM, SudeepShakya  wrote:
> I am reading Enjoying Web Programming with wicket(1st edition). And I found
> out that there is no such thing in wicket 1.5.x. So how to implement these
> type of function in wicket 1.5.x ?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/NumberValidator-MinimumValidator-tp4525647p4525647.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-26 Thread James Carman
http://www.wicket-library.com/wicket-examples/dates/


On Mon, Mar 26, 2012 at 9:55 AM, SudeepShakya  wrote:
> I have viewed some of the examples but not appropriate one. Can u give some
> hint
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Creating-a-submit-form-which-takes-date-and-a-string-as-input-and-displays-the-data-from-database-myc-tp4505124p4505882.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Creating a submit form which takes date and a string as input and displays the data from database(mysql) using simple jdbc

2012-03-26 Thread James Carman
Have you looked at the examples from the website?
On Mar 26, 2012 7:20 AM, "SudeepShakya"  wrote:

> I have created a form which takes two dates/time and a textbox and created
> a
> class for get/set.
> And, it should work as : when i insert the data, it should check the data
> in
> the database and display the filtered data as specified by the inputs .
> Also i have created a jdbc connection  and a method for retrieving data .
> I don't know how to create a textbox that takes date/time as input and it
> will be easy to the user to input.
> I have created following files which I have attached. And also created html
> files for form input and filtered display.
>
> Thanx for response.
>
> http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteCollection.java
> VoteCollection.java
>
> http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteCollectionJDBC.java
> VoteCollectionJDBC.java
>
> http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteDisplayPage.java
> VoteDisplayPage.java
> http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteEditForm.java
> VoteEditForm.java
> http://apache-wicket.1842946.n4.nabble.com/file/n4505444/VoteEditPage.java
> VoteEditPage.java
> http://apache-wicket.1842946.n4.nabble.com/file/n4505444/Votes.java
> Votes.java
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Creating-a-submit-form-which-takes-date-and-a-string-as-input-and-displays-the-data-from-database-myc-tp4505124p4505444.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Is there a GUI Builder for Wicket which generates Wicket java code?

2012-03-24 Thread James Carman
Wicketopia also allows you to use the same components used by the
Scaffold component to build up the display by hand.  Basically, you
can use it at any level of abstraction you want.

On Sat, Mar 24, 2012 at 10:42 AM, Pierre Goupil  wrote:
> Or you can try the scaffolding approach:
>
> http://wicketopia.sourceforge.net/scaffold.html
> http://level2crm.com/content/building-scaffoldling-wicket
>
> This is not precisely GUI builders but they can help speed up your
> development.
>
> Regards,
>
> Pierre Goupil
>
>
>
> On Sat, Mar 24, 2012 at 2:13 PM, Stefan Lindner  wrote:
>
>> There are a lot of GUI builder tools for Wicket. Any visual HTML editor
>> will do what you need. You write HTML files and connet them with java code
>> via
>> Wicket:id="someId" attributes in your html.
>> Not Java generatest he GUI, the GUI is generated by a HTML Designer (man
>> or machine). The programming logic is done with java.
>>
>> -Ursprüngliche Nachricht-
>> Von: Ben Stover [mailto:bxsto...@yahoo.co.uk]
>> Gesendet: Samstag, 24. März 2012 01:36
>> An: Wicket Users
>> Betreff: Is there a GUI Builder for Wicket which generates Wicket java
>> code?
>>
>> Sorry for this newbie question.
>>
>> From what I read so far Wicket users have to write at first java code
>> which leads to a GUI front end.
>>
>> Is there a GUI builder tool for the opposite direction?
>>
>> I would like to click and design visually (!) a GUI and let this GUI
>> builder generate later the corresponding java code.
>>
>> Is this possible?
>>
>> Thank you
>> Ben
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Si tu penses que la violence ne résout rien, c'est que tu n'as pas tapé
> assez fort.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Why I cannot receive default value in Textfield?

2012-03-18 Thread James Carman
Check the value of the ContactPerson1 field in your onSubmit() method.  It
should contain what gets submitted.  The merchant object is unrelated to
your text field.
On Mar 18, 2012 9:38 PM, "xiaowang"  wrote:

> Hi,
> Now I am using:
>
> html -
> 
> 
>
> Java -
> public class MerchantEditPanel extends Panel {
> private String ContactPerson1 = "some text";
>
>   public MerchantEditPanel{
>  TextField ContactPerson1 = new
> TextField("ContactPerson1",new
> PropertyModel(this,"ContactPerson1"));
>   xxform. add(ContactPerson1);
>
> frmEdit.add(new AjaxSubmitLink("submit") {
> @Override
>protected void onSubmit(AjaxRequestTarget ajaxRequestTarget,
> Form components) {
> Merchant m =
> (Merchant)components.getModelObject();
> ..
> Here I find "m" cannot get the default value from ContactPerson textfield,
> or even I just add some words after "some text",
> components.getModelObject()
> cannot get the value from this textfield.
> Ps:It can show default value "some text" in ContactPerson textfield.
>
>
> And, if I try to use the code from
>
> http://wicketstuff.org/wicket14/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.TextFieldPage
> ,
> there is no default value in Textfield...
>
> Can anyone help me? Thanks in advanced.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Why-I-cannot-receive-default-value-in-Textfield-tp4483603p4483603.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket + JPA lazy-loading

2012-03-18 Thread James Carman
Try with an ldm I'd say.
On Mar 18, 2012 9:04 AM, "Bálint Kriván"  wrote:

> I don't want to serialize them but wicket does (I have a list of objects
> which I pass to a ListView).
> IIRC, If I use LDM I can make wicket to serialize only an ID and when it is
> readed back I can reach the backend to get the correct object for that ID.
> If I would switch to this probably it would be more query than now, because
> even the parent objects should be retrieved from the DB one-by-one.
> It would be enough for me if I could make wicket not to try to serialize
> these objects (these are retrieved in the constructor so I don't see the
> need to save them on the first place)
>
> On Sun, Mar 18, 2012 at 1:56 PM, James Carman  >wrote:
>
> > Use a LoadableDetachableModel.  You shouldn't be serializing
> > persistent objects (unless of course you're in the middle of editing
> > them or something).
> >
> > On Sun, Mar 18, 2012 at 8:36 AM, Bálint Kriván  wrote:
> > > Hey!
> > >
> > > It seems that when wicket is trying to serialize the persistent objects
> > > (probably to session) the lazy loading kicks in and it retrieves the
> > whole
> > > graph.
> > > Not sure if wicket is using the default java serialization or a special
> > > one, but is there anybody else who is/were experiencing the same? By
> any
> > > chance would you have any suggestion how can I overcome this?
> > > It would be a great solution if an association is persisted when it's
> > > loaded, but if it isn't then do not lazy load it, just leave it null.
> > >
> > > Thanks!
> > >
> > > Regards,
> > > Bálint Kriván
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> Üdv,
> Kriván Bálint
>


Re: Wicket + JPA lazy-loading

2012-03-18 Thread James Carman
Use a LoadableDetachableModel.  You shouldn't be serializing
persistent objects (unless of course you're in the middle of editing
them or something).

On Sun, Mar 18, 2012 at 8:36 AM, Bálint Kriván  wrote:
> Hey!
>
> It seems that when wicket is trying to serialize the persistent objects
> (probably to session) the lazy loading kicks in and it retrieves the whole
> graph.
> Not sure if wicket is using the default java serialization or a special
> one, but is there anybody else who is/were experiencing the same? By any
> chance would you have any suggestion how can I overcome this?
> It would be a great solution if an association is persisted when it's
> loaded, but if it isn't then do not lazy load it, just leave it null.
>
> Thanks!
>
> Regards,
> Bálint Kriván

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Channel busy - postponing...

2012-03-06 Thread James Carman
Thanks for posting back the solution. This will no doubt be helpful to
someone else.  Community!
On Mar 6, 2012 2:29 AM, "Arjun Dhar"  wrote:

> I just realized all posts on this matter point to some Jquery or
> JavaScript related mischief.
> I had established jquery itself was not the culprit, however .. for the
> Dialog I was using jquery-ui plugin. I upgraded the plugin. Seems the copy
> of the plugin for this project was messed up in SVN.
>
> A fresh copy fixed the issue.
>
> -
> Software documentation is like sex: when it is good, it is very, very
> good; and when it is bad, it is still better than nothing!
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Channel-busy-postponing-tp4448932p4448944.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: org.apache.wicket.WicketRuntimeException: There is no application attached to current thread

2012-03-05 Thread James Carman
Make sure your filter mapping for your other filter is after the
mapping for wicket filter.

On Mon, Mar 5, 2012 at 5:17 PM, Dan Retzlaff  wrote:
> If your ThreadLocal is needed within Wicket, shouldn't your filter run
> *before* WicketFilter?
>
> Does your filter use any Wicket classes that require something in
> o.a.w.ThreadContext?
>
> The basic design should work. We use a filter to manage a ThreadLocal
> Hibernate Session for open-session-in-view.
>
> On Mon, Mar 5, 2012 at 1:38 PM, YK  wrote:
>
>> Hi,
>>
>> I'm trying to make example using wicket 1.5.4 and spring work but I keep
>> having this exception: org.apache.wicket.WicketRuntimeException: There is
>> no
>> application attached to current thread...
>>
>> My example defines also a servlet filter that is applied just after the
>> WicketFilter in web.xml.
>> This filter uses ThreadLocal to set/unset a variable around each
>> request/response cycle.
>>
>> I've noticed that if I disable the filter, my example works fine, but I
>> really need it to to pass a variable via the ThreadLocal: (static final
>> ThreadLocal> THREAD_OBJECT_CONTEXT = new
>> ThreadLocal>();)
>>
>>
>> Any idea about why wicket fails to accept such a filter please?
>>
>> Is there a workaround please?
>>
>>
>> Thanks
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/org-apache-wicket-WicketRuntimeException-There-is-no-application-attached-to-current-thread-tp4447781p4447781.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket & Spring Security

2012-03-02 Thread James Carman
Wicketopia has an example of how to integrate Spring security
(including showing/hiding properties based on user roles)

On Fri, Mar 2, 2012 at 2:46 PM, Erich W Schreiner  wrote:
> Dear all,
> what is the recommended way of integrating Wicket 1.5.x with Spring Security 
> 3.1.x?
>
> TIA & best regards,
> Erich

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Error during start of wicket application

2012-02-28 Thread James Carman
You can write a context listener that prints the class path entries (most
class loaders are URLClassLoaders)

Sent from tablet device.  Please excuse typos and brevity.
On Feb 28, 2012 10:47 PM, "Andre Schütz"  wrote:

> Hi,
>
> thank you for the answer. I defined Wicket 1.5.3 in the pom.xml. There is
> no other version defined on my system. Do you have any proposals, where I
> should check for another version on the system?
>
> On Thu, 23 Feb 2012 22:29:30 +0100
> Martin Grigorov  wrote:
>
> > Hi,
> >
> > Such kind of errors occur when you have several versions of Wicket in
> > the classpath.
> >
> > 2012/2/23 "André Schütz" :
> > > Hello,
> > >
> > > I get the following error message during a start of the tomcat server
> with a clean packed wicket application:
> > >
> > > /**
> > >  * BEGIN
> > >  */
> > >
> > > Exception in thread "Thread-2" java.lang.NoClassDefFoundError:
> org/apache/wicket/ApplicationListenerCollection$2
> > >at
> org.apache.wicket.ApplicationListenerCollection.onBeforeDestroyed(ApplicationListenerCollection.java:44)
> > >at
> org.apache.wicket.Application.internalDestroy(Application.java:639)
> > >at
> org.apache.wicket.protocol.http.WebApplication.internalDestroy(WebApplication.java:563)
> > >at
> org.apache.wicket.protocol.http.WicketFilter.destroy(WicketFilter.java:478)
> > >at
> org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:357)
> > >at
> org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3873)
> > >at
> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4605)
> > >at
> org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
> > >at
> org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
> > >at
> org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
> > >at
> org.apache.catalina.core.StandardService.stop(StandardService.java:584)
> > >at
> org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
> > >at org.apache.catalina.startup.Catalina.stop(Catalina.java:643)
> > >at
> org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:687)
> > > Caused by: java.lang.ClassNotFoundException:
> org.apache.wicket.ApplicationListenerCollection$2
> > >at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)
> > >at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
> > >... 14 more
> > >
> > > /**
> > >  * END
> > >  */
> > >
> > > Any ideas about this error?
> > >
> > > Thanks,
> > > Andre
> > > --
> > > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
> > > belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
>
>
> --
> Andre Schütz 
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: modal window takes very long time to close

2012-02-14 Thread James Carman
This is what I was trying to find:

http://mail-archives.apache.org/mod_mbox/wicket-users/200904.mbox/%3ca737c1240904170336h2231a4aej48e6f3ec783bd...@mail.gmail.com%3E


On Mon, Feb 13, 2012 at 11:08 AM, fachhoch  wrote:
> any help with this , My modal window is taking too long to close.
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/modal-window-takes-very-long-time-to-close-tp4377803p4384240.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Architectural question

2012-02-12 Thread James Carman
Well setters/getters somewhat go against ddd.  We just have to figure out
what works for us.  It's all about finding what gets the job done most
effectively.
On Feb 12, 2012 10:45 AM, "Bas Gooren"  wrote:

> We already use OSIV, thanks to guice-persist.
> This means the read-side of things is rather trivial, and that the service
> and dao layers do need to be aware of the exact data the view needs (since
> lazy loading is possible).
>
> With regard to the write-side of things: we do what you do (call update
> explicitly) right now.
>
> Suppose you are using DDD in a project, how would you go about
> constructing and populating a new object? Without DDD my entities were mere
> containers for data with some validation and JPA annotations. So it was
> simply a matter of creating a Model which wraps a "new Customer", and
> wicket pushing its fields to that customer object.
>
> However, when applying DDD, that Customer is no longer a simple container,
> but a business object. Having wicket push changes directly to fields (those
> fields may even be private-access only, without setters) seems to go
> against DDD fashion.
>
> So I feel it would be better to create a DTO for a certain view (e.g.
> NewCustomerDTO for a CreateCustomerPanel), and putting all validation
> annotations on the DTO, too. When it's time to persist the new customer,
> the service layer simply creates a new customer and copies all fields from
> the DTO.
>
> But then again, maybe this is overcomplicating things. DDD seems like a
> good match for most of my projects though, and I'd like to be able to
> properly integrate my domain objects with wicket.
>
> Op 12-2-2012 15:17, schreef James Carman:
>
>> I just use open session in view.  You can still retrieve stuff outside a
>> transaction.  I explicitly call update to persist.
>> On Feb 12, 2012 7:54 AM, "Bas Gooren"  wrote:
>>
>>  Hi All,
>>>
>>> I have an architectural question about wicket, DDD and the service layer.
>>>
>>> Let's say we have a simple JPA entity (Customer), and a few simple CRUDL
>>> screens.
>>> For database access, we have a DAO layer (CustomerDao) which delegates to
>>> an EntityManager, and provides some convenience methods for searching.
>>> We also like to have clear boundaries, so we have a thin service layer
>>> which wraps persist() and delete() calls in a transaction before
>>> forwarding
>>> them to the DAO layer (@Transactional, as provided by guice-persist).
>>>
>>> A wicket model fetches one or more customers (by id or by running a
>>> search), and attaches to a form. In the form we use PropertyModels which
>>> push their changes to the entity, and in onSubmit() we call
>>> service.persist(entity).
>>> This means that the actual changes to the model happen outside of the
>>> transaction (in wicket code), and within the transaction (/service layer)
>>> we merely call persist() and flush().
>>>
>>> Then parts of the app need something a bit more advanced, so we decide to
>>> apply parts of DDD and put logic where it belongs (on the domain models).
>>> However, some logic coordinates multiple models, so we add a domain- or
>>> application-service for that.
>>> The good thing about DDD is that it's a lot more clear what happens
>>> (intent). We now realize that having a persist() method on a entity-based
>>> service now looks like a bit of a code smell, since it does not capture
>>> intent at all. Also, since the changes to the model happen in wicket,
>>> before the service layer is called, I feel that the service layer is not
>>> doing anything to act as a boundary. We might as well mark the persist()
>>> method on our daos @transactional and remove the service layer.
>>>
>>> The only clean way to fix this seems to be either:
>>> (a) using DTO's so the UI/wicket is not actually modifying domain
>>> entities
>>>upside: the state of the domain is not modified by wicket itself
>>>downside: duplication of models (actual model + DTO);
>>>downside: validation is currently set-up in wicket by scanning fields
>>> for validation annotations, so we would need to duplicate those on the
>>> DTO?
>>>
>>> (b) using a concept from CQRS: sending commands to the domain through a
>>> bus. This clearly and cleanly defines the intent and captures the exact
>>> change.
>>>upside: the state of the domain is not modified by wicket itself
>>>downside: likely overkill for what 

Re: Architectural question

2012-02-12 Thread James Carman
I just use open session in view.  You can still retrieve stuff outside a
transaction.  I explicitly call update to persist.
On Feb 12, 2012 7:54 AM, "Bas Gooren"  wrote:

> Hi All,
>
> I have an architectural question about wicket, DDD and the service layer.
>
> Let's say we have a simple JPA entity (Customer), and a few simple CRUDL
> screens.
> For database access, we have a DAO layer (CustomerDao) which delegates to
> an EntityManager, and provides some convenience methods for searching.
> We also like to have clear boundaries, so we have a thin service layer
> which wraps persist() and delete() calls in a transaction before forwarding
> them to the DAO layer (@Transactional, as provided by guice-persist).
>
> A wicket model fetches one or more customers (by id or by running a
> search), and attaches to a form. In the form we use PropertyModels which
> push their changes to the entity, and in onSubmit() we call
> service.persist(entity).
> This means that the actual changes to the model happen outside of the
> transaction (in wicket code), and within the transaction (/service layer)
> we merely call persist() and flush().
>
> Then parts of the app need something a bit more advanced, so we decide to
> apply parts of DDD and put logic where it belongs (on the domain models).
> However, some logic coordinates multiple models, so we add a domain- or
> application-service for that.
> The good thing about DDD is that it's a lot more clear what happens
> (intent). We now realize that having a persist() method on a entity-based
> service now looks like a bit of a code smell, since it does not capture
> intent at all. Also, since the changes to the model happen in wicket,
> before the service layer is called, I feel that the service layer is not
> doing anything to act as a boundary. We might as well mark the persist()
> method on our daos @transactional and remove the service layer.
>
> The only clean way to fix this seems to be either:
> (a) using DTO's so the UI/wicket is not actually modifying domain entities
>upside: the state of the domain is not modified by wicket itself
>downside: duplication of models (actual model + DTO);
>downside: validation is currently set-up in wicket by scanning fields
> for validation annotations, so we would need to duplicate those on the DTO?
>
> (b) using a concept from CQRS: sending commands to the domain through a
> bus. This clearly and cleanly defines the intent and captures the exact
> change.
>upside: the state of the domain is not modified by wicket itself
>downside: likely overkill for what we are trying to achieve; lot of
> extra complexity
>
> (c) wrapping the entire request in a transaction
>upside: easy to implement
>downside: since anything in the request can fetch a dao, read some
> entities and modify them, this means we can lose track of what happens in a
> request;
>downside: feels like moving backwards
>
> (d) simplify by removing thin services and, where necessary, putting more
> logic in the dao's
>upside: simple api contract: want to save/update an entity? use the dao
> directly
>downside: dao's contain logic which does not really belong there
>downside: if at some point we really do need a service, the api
> contract becomes less clear: for X and Y you can use the dao, for Z you
> have to use a service
>
> (a) and (b) provide a way to capture a change and execute all of the
> change inside a transaction.
>
> So my question to the list is: what are your experiences with this? How do
> you deal with this in simple to moderately complex webapps?
>
> Thanks for reading!
>


Re: modal window takes very long time to close

2012-02-11 Thread James Carman
I had trouble with modal windows with lots of ajax links in the past
(a table full of them).  I had to do some hack to get it working.  I
have tried googling for exactly what I did, but I can't find it.  To
my archives!...

On Sat, Feb 11, 2012 at 1:54 PM, fachhoch  wrote:
> Yes the page has lot of   ajax links .
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/modal-window-takes-very-long-time-to-close-tp4377803p4379544.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: modal window takes very long time to close

2012-02-10 Thread James Carman
Do you have a lot of Ajax links on the page?

On Fri, Feb 10, 2012 at 5:30 PM, fachhoch  wrote:
> I am using wicket 1.4.12 , sometimes my modal windows takes very long time to
> close , there is no code called when modalwindow is closed no ajax updates
> to the page , what can cause modal window to  hang ?
> It happens  in all browsers it happens only some times .
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/modal-window-takes-very-long-time-to-close-tp4377803p4377803.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Property Model Issue

2012-02-04 Thread James Carman
I wouldn't necessarily say that CPMs are the "wicket way".

On Sat, Feb 4, 2012 at 11:32 AM, Sam Barrow  wrote:
>
> On Sat, 2012-02-04 at 10:27 -0500, James Carman wrote:
>> I would avoid cpms like the plague.  Too much "magic".
>> On Feb 3, 2012 5:12 PM, "Sam Barrow"  wrote:
>>
>
> Yeah, I know what you mean. I usually try to avoid them, I'm not too
> fond of runtime reflection, loss of compile time type checking, etc. At
> the same time though there is something to be said for doing things the
> conventional way within a framework, and from everything I've seen this
> is it.
>
> I actually figured out the problem. When wicket tries to "initModel" it
> searches parent components for their model, but it doesn't use getModel,
> it uses getModelImpl, which does none of initModel magic. In effect,
> it's incapable of handling chains of nested models in which more than
> two links in a row are not manually specified.
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Property Model Issue

2012-02-04 Thread James Carman
I would avoid cpms like the plague.  Too much "magic".
On Feb 3, 2012 5:12 PM, "Sam Barrow"  wrote:

>
> On Fri, 2012-02-03 at 13:57 -0800, Dan Retzlaff wrote:
> > Hi Sam,
> >
> > I think your use of Item#setModel() and Component#initModel() are
> > unconventional. Try:
> >
>
> Hi Dan,
>
> Yes I never really liked my item.setModel() technique, just didn't seem
> right to me but I've seen it in more than one tutorial so I figured it
> was the way it was done. I actually moved the compounding part over the
> newItem method in dataview just now though, seems cleaner.
>
> > populateItem(Item item) {
> > item.add(new ProductPanel("product", item.getModel());
> > }
> >
> > ProductPanel(String id, IModel model) {
> > super(id, CompoundPropertyModel.of(model));
> > add(new Label("name"));
> > add(new Label("condition"));
> > }
> >
>
> I'm sure this would work, just wondering if there's a better way to do
> this? Is it good practice to manipulate the model in the constructor
> like that? Doesn't seem right to me as the model may need to change
> (maybe via ajax?). I try to never mess with my models like that outside
> of the rendering phase. I've been toying with wicket occasionally for
> over a year now, but never gone this far with it so I'm still learning
> how it all works.
>
> I would if at all possible like to retain the ability to create a new
> ProductPanel without specifying the model in the constructor. This seems
> to be the way things are usually done in Wicket so I figured there must
> be a better way.
>
> Product is a property of post so I'd be specifying it in two different
> places, and again if I wanted to add any more composited components
> under ProductPanel.
>
> I've corrected your code to reflect this (I just got your next message).
>
> > populateItem(Item item) {
> > item.add(new ProductPanel("product", new
> PropertyModel(item.getModel(), "product"));
> > }
> >
>
> I was using the compoundpropertymodel to avoid specifying the product
> property manually as is done above, but that part is working for me with
> no issues, it's just inside ProductPanel that I'm having problems.
>
> It's not that I'm really that lazy, just an issue of best practice for
> me.
>
> > On Fri, Feb 3, 2012 at 12:51 PM, Sam Barrow  wrote:
> >
> > > Hi guys,
> > >
> > > I'm having an issue with property models.
> > >
> > > I have a DataView running over a number of Post objects. The Post
> object
> > > has a property named "product" with appropriate getter/setter.
> > >
> > > new DataView("posts", provider) {
> > >  protected void populateItem(final Item item) {
> > >item.setModel(CompoundPropertyModel.of(item.getModel()));
> > >item.add(new ProductPanel("product"));
> > >  }
> > > }
> > >
> > > The issue is within ProductPanel. It has a number of labels, each only
> > > specifying a name (no model). In my initModel() I am creating a
> > > CompoundPropertyModel around super.initModel(). I was expecting it to
> > > pull these properties from the model object of my ProductPanel.
> > >
> > > public class ProductPanel extends GenericPanel {
> > >  public ProductPanel(final String id) {
> > >add(new Label("name"));
> > >add(new Label("condition"));
> > >  }
> > >  protected IModel initModel() {
> > >return CompoundPropertyModel.of(super.initModel());
> > >  }
> > > }
> > >
> > > But I get this error: org.apache.wicket.WicketRuntimeException: No get
> > > method defined for class: class com.cellcycleusa.domain.Post
> expression:
> > > name.
> > >
> > > Seems that it's trying to access the Post object from the DataView to
> > > pull the property from, not the model object of the ProductPanel
> itself.
> > >
> > > Now the really funny part is that if I just add this to ProductPanel,
> > > everything works fine:
> > >
> > > protected void onBeforeRender() {
> > >  getModel();
> > >  super.onBeforeRender();
> > > }
> > >
> > > Or if I specify the model objects for the labels within ProductPanel
> > > like this:
> > >
> > > new Label("name", new ComponentPropertyModel("name"))
> > >
> > > That works as well.
> > >
> > > What am I doing wrong?
> > >
> > > --
> > >
> > > Sam Barrow
> > > Squidix IT Services
> > >
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Wicket webshere 7

2012-01-25 Thread James Carman
The surprising thing is that you actually have to do something like that to
get it to work properly.
On Jan 25, 2012 3:04 AM, "Geoff Lancaster" 
wrote:

> Filters work just fine. Did you set
>
> com.ibm.ws.webcontainer.invokefilterscompatibility= true
> In your web containers custom properties?
>
> Application servers -> server -> web container settings -> web container
> -> custom properties
>
> Sent from my iPhone
>
> On Jan 23, 2012, at 11:23 AM, matteus  wrote:
>
> >
> > Yes, my application is running with the filter  Wicket Filter.
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-websphere-7-tp4310810p4321364.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
>


Re: Wicket spring security sample app

2012-01-20 Thread James Carman
Run mvn install from the top-level directory.

Then, in the example webapp project, there is a class called Start:

https://github.com/jwcarman/Wicketopia/blob/master/example/src/test/java/org/wicketopia/example/web/util/Start.java

Run that.  Good luck!

On Thu, Jan 19, 2012 at 5:35 PM, Brian Lavender  wrote:
> James,
>
> I cloned the repository.
>
> $ git clone https://github.com/jwcarman/Wicketopia.git
> $ cd Wicketopia
> $ mvn eclipse:eclipse
>
> a few errors including the below error.
>
> [ERROR] Failed to execute goal on project wicketopia-persistence: Could not 
> resolve dependencies for project 
> org.wicketopia:wicketopia-persistence:jar:1.0-SNAPSHOT: Could not find 
> artifact org.wicketopia:wicketopia:jar:1.0-20110328.173826-2 in 
> sonatype-nexus-snapshots 
> (https://oss.sonatype.org/content/repositories/snapshots) -> [Help 1]
> [ERROR]
>
> Imported it into Eclipse.
>
> Which test case do I run?
>
> I tried changing into the example directory and doing a "mvn eclipse:eclipse" 
> too, but it gave the below error.
>
> [ERROR] Failed to execute goal on project wicketopia-example: Could not 
> resolve dependencies for project 
> org.wicketopia:wicketopia-example:war:1.0-SNAPSHOT: The following artifacts 
> could not be resolved: org.wicketopia:wicketopia:jar:1.0-SNAPSHOT, 
> org.wicketopia:wicketopia-joda:jar:1.0-SNAPSHOT, 
> org.wicketopia:wicketopia-cdi-weld:jar:1.0-SNAPSHOT, 
> org.wicketopia:wicketopia-spring-security:jar:1.0-SNAPSHOT, 
> org.wicketopia:wicketopia-hibernate:jar:1.0-SNAPSHOT, 
> org.wicketopia:wicketopia:jar:tests:1.0-SNAPSHOT: Failure to find 
> org.wicketopia:wicketopia:jar:1.0-20110328.173826-2 in 
> https://oss.sonatype.org/content/repositories/snapshots was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of sonatype-nexus-snapshots has elapsed or updates are forced -> 
> [Help 1]
>
>
> brian
>
> On Wed, Jan 18, 2012 at 06:58:08AM -0500, James Carman wrote:
>> Either way, you can open it in your IDE and run the jetty test server
>> that's included.  That's how I run it usually so that I can easily
>> debug and play around.
>>
>> On Wed, Jan 18, 2012 at 6:57 AM, James Carman
>>  wrote:
>> > I don't know if the plugin is turned on for the example application.
>> > But, you'd need to make sure you are in the example module before you
>> > try.
>> >
>> > On Wed, Jan 18, 2012 at 1:15 AM, Brian Lavender  wrote:
>> >> On Sun, Jan 15, 2012 at 12:36:48PM +0200, Martin Grigorov wrote:
>> >>> See https://github.com/jwcarman/Wicketopia
>> >>
>> >> Maybe I missed something, but I wasn't able to do a
>> >>
>> >> mvn jetty:run
>> >>
>> >> or did the war package run after generating a war file.
>> >>
>> >> brian
>> >> --
>> >> Brian Lavender
>> >> http://www.brie.com/brian/
>> >>
>> >> "There are two ways of constructing a software design. One way is to
>> >> make it so simple that there are obviously no deficiencies. And the other
>> >> way is to make it so complicated that there are no obvious deficiencies."
>> >>
>> >> Professor C. A. R. Hoare
>> >> The 1980 Turing award lecture
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> For additional commands, e-mail: users-h...@wicket.apache.org
>> >>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
> --
> Brian Lavender
> http://www.brie.com/brian/
>
> "There are two ways of constructing a software design. One way is to
> make it so simple that there are obviously no deficiencies. And the other
> way is to make it so complicated that there are no obvious deficiencies."
>
> Professor C. A. R. Hoare
> The 1980 Turing award lecture
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket spring security sample app

2012-01-18 Thread James Carman
Either way, you can open it in your IDE and run the jetty test server
that's included.  That's how I run it usually so that I can easily
debug and play around.

On Wed, Jan 18, 2012 at 6:57 AM, James Carman
 wrote:
> I don't know if the plugin is turned on for the example application.
> But, you'd need to make sure you are in the example module before you
> try.
>
> On Wed, Jan 18, 2012 at 1:15 AM, Brian Lavender  wrote:
>> On Sun, Jan 15, 2012 at 12:36:48PM +0200, Martin Grigorov wrote:
>>> See https://github.com/jwcarman/Wicketopia
>>
>> Maybe I missed something, but I wasn't able to do a
>>
>> mvn jetty:run
>>
>> or did the war package run after generating a war file.
>>
>> brian
>> --
>> Brian Lavender
>> http://www.brie.com/brian/
>>
>> "There are two ways of constructing a software design. One way is to
>> make it so simple that there are obviously no deficiencies. And the other
>> way is to make it so complicated that there are no obvious deficiencies."
>>
>> Professor C. A. R. Hoare
>> The 1980 Turing award lecture
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket spring security sample app

2012-01-18 Thread James Carman
I don't know if the plugin is turned on for the example application.
But, you'd need to make sure you are in the example module before you
try.

On Wed, Jan 18, 2012 at 1:15 AM, Brian Lavender  wrote:
> On Sun, Jan 15, 2012 at 12:36:48PM +0200, Martin Grigorov wrote:
>> See https://github.com/jwcarman/Wicketopia
>
> Maybe I missed something, but I wasn't able to do a
>
> mvn jetty:run
>
> or did the war package run after generating a war file.
>
> brian
> --
> Brian Lavender
> http://www.brie.com/brian/
>
> "There are two ways of constructing a software design. One way is to
> make it so simple that there are obviously no deficiencies. And the other
> way is to make it so complicated that there are no obvious deficiencies."
>
> Professor C. A. R. Hoare
> The 1980 Turing award lecture
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: PropertyModel with x.y as property name (from a properties file)

2012-01-10 Thread James Carman
or don't use cpm
On Jan 10, 2012 11:10 AM, "Sven Meier"  wrote:

> Write you own model:
>
> public class PropertiesModel extends AbstractReadOnlyModel {
>
>  private Properties properties;
>
>  private String key;
>
>  // constructor ...
>
>  public String getObject() {
>return properties.get(key);
>  }
> }
>
> You can implement IComponentInheritedModel if you want to have the same
> magic supported by CompoundPropertyModel, e.g.:
>
> Form form = new Form("form", new MyPropertiesModel(properties))**;
> form.add(new TextField("body.**background-color"));
>
> Hope this helps
> Sven
>
> Am 10.01.2012 15:44, schrieb Decebal Suiu:
>
>> Hello
>>
>> I have a form with new CompoundPropertyModel<**ValueMap>(properties) as
>> model
>> where properties are loaded from a properties file (legacy). My problem is
>> that in properties file I have keys like x.y
>> and I cannot use form.add(new TextField("body.**
>> background-color"));
>>
>> How do I solve this problem?
>>
>> Thanks,
>> Decebal
>>
>> --
>> View this message in context: http://apache-wicket.1842946.**
>> n4.nabble.com/PropertyModel-**with-x-y-as-property-name-**
>> from-a-properties-file-**tp4282146p4282146.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> --**--**-
>> To unsubscribe, e-mail: 
>> users-unsubscribe@wicket.**apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@wicket.**apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Solved: Only the first TextField in a repetition gets correct OnChangeAjaxBehavior with 1.5.1

2011-12-17 Thread James Carman
This is what I love about Wicketeers.  They don't just sit around
complaining about something; they jump in and help fix it!  Way to go
Wicket community!

On Sat, Dec 17, 2011 at 7:49 AM, Martin Grigorov  wrote:
> On Sat, Dec 17, 2011 at 12:58 AM, Dan Retzlaff  wrote:
>> Yes, that broke our app during migration as well. I've added a migration
>> wiki entry.
>> https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5#MigrationtoWicket1.5-Component.getMarkupId%28%29implementationchanged
>
> Thanks, Dan!
>
>>
>>
>> On Fri, Dec 16, 2011 at 1:51 PM, Anders Peterson wrote:
>>
>>> The problem was in the html file.
>>>
>>> I used to have this:
>>>
>>> >> maxlength="6" wicket:id="marketWeight" />
>>>
>>> Needed to change that to:
>>>
>>> 
>>>
>>>
>>> "marketWeight" is the component with the ajax behaviour, and it was in a
>>> ListView so I had several of them.
>>>
>>>
>>> I guess something related to replacing the name/id of a component changed
>>> from 1.4 to 1.5.
>>>
>>>
>>> /Anders
>>>
>>>
>>> On 2011-12-16 14:15, Anders Peterson wrote:
>>>
 Hello again, I still have this problem... (been working on other things)

 I've tracked the problem back to the request parameters simply not
 containing the expected values.

 This "input name" seems correct since I changed the market weight
 attribute of the second instrument:
 instruments:1:marketWeight

 But the HashMap containing parameter values ONLY contain this:
 {instruments:0:marketWeight=[**17.602]}

 This results in me getting null as FormComponent input.

 Anyone know what I've done wrong?

 /Anders


 On 2011-10-13 13:46, Anders Peterson wrote:

> Here the (simplified) code that creates the ListViev, TextFields and
> Label. /Anders
>
>
>
>
>
>
> On 13 okt 2011, at 12:40, Anders Peterson wrote:
>
>  Hi,
>>
>> Upgrading to wicket 1.5.1 from 1.4.18 my ajax updates stopped working.
>>
>> I have a page with a form. Inside the form there is a repetition
>> (ListView) that among other things creates a text field for each item
>> (ListItem). Each of those text fields has an OnChangeAjaxBehavior set 
>> that
>> should update a label. The label should continously display the total sum
>> of the numbers in the text fields.
>>
>> With wicket 1.4.18 (and previous versions) this worked fine.
>>
>> With 1.5.1 only the first text field in the repetition gets the correct
>> ajax behavior - it works the way I want it, and the way it worked with
>> 1.4.*. The other text fields are "dead", except for focus set/removed.
>> While typing in any of the other text fields nothing is updated (the ajax
>> debug window shows no activity). When focus is removed I get a
>> NullPointerException regardless of what I've changed.
>>
>> Is this a (known) bug, or is there a difference between 1.4 and 1.5
>> that I've missed?
>>
>> /Anders
>>
>>
>>
>
>
> --**--**
> -
> To unsubscribe, e-mail: 
> users-unsubscribe@wicket.**apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



 --**--**-
 To unsubscribe, e-mail: 
 users-unsubscribe@wicket.**apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



>>>
>>>
>>> --**--**-
>>> To unsubscribe, e-mail: 
>>> users-unsubscribe@wicket.**apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket 1.5 with Shiro for security ...

2011-12-15 Thread James Carman
Wicketopia has a shiro plugin too
On Dec 15, 2011 11:57 AM, "armandoxxx"  wrote:

> Got a little question.
>
> I'm wrapping Apache Shiro as security framework for my application.
>
> And I use wicket-auth-roles for wrapping shiro login, logout, get roles and
> stuff methods.
>
> I've got a question for isSignedIn() method which is final. I can't
> override
> it to ask shiro if user is logged in or not.
>
> Any workaround for this? I really don't want to implement all
> Authentication/Authorization logic on my own, since wicket already
> implements this.
>
> Kind regards
>
> Armando
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-with-Shiro-for-security-tp4200743p4200743.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Any info on wasp-swarm?

2011-12-09 Thread James Carman
Auth-roles has always worked fine for me.
On Dec 9, 2011 10:59 AM, "Dan Alvizu"  wrote:

> Ah, thanks for the info!
>
> @Other Dan: I poorly worded that. Role-based access is exactly what I want
> to do.
>
> -Dan
>
> On Fri, Dec 9, 2011 at 3:42 AM, Emond Papegaaij
> wrote:
>
> > Hi Dan,
> >
> > As Martin stated, wicket-security (wasp-swarm) is now part of
> > wicketstuff-core
> > and as such is released for every wicket release. It is maintained and it
> > will
> > continue to work, as all our major applications are built on top of it.
> >
> > Best regards,
> > Emond Papegaaij
> >
> > On Friday 09 December 2011 08:52:40 Martin Grigorov wrote:
> > > On Fri, Dec 9, 2011 at 5:46 AM, Dan Alvizu 
> > wrote:
> > > > Hi,
> > > >
> > > > I'm trying to solve an authorization problem in wicket 1.5 -- I do
> not
> > > > want users to have access to certain pages based on the roles that
> they
> > > > have. I think wasp-swarm may be what I need, but is it being
> maintained
> > > > anymore? I can't find anything current on the web since the 1.4.1
> > > > announcement.
> > > >
> > > > The link on the wiki leads nowhere as well:
> > > >
> > > >
> > https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/wicket-se
> > > > curity-parent
> > >
> >
> https://github.com/wicketstuff/core/tree/core-1.5.x/jdk-1.5-parent/wicket-se
> > > curity-parent
> > >
> > > You ask for 1.5.x branch ...
> > >
> > > Master branch now is against Wicket trunk (i.e. 6.0)
> > >
> > > > (linked from)
> > > > https://cwiki.apache.org/WICKET/wasp-swarm-security.html
> > > >
> > > > So I guess my question is three part -- is wasp-swarm what I'm
> looking
> > > > for? Is it usable for wicket 1.5 or only wicket 1.4? And where the
> heck
> > > > did it go? ;)
> > > >
> > > > Thanks,
> > > >
> > > > -Dan
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: Back button not work in Wicket 1.5.3 when component structure is not changed

2011-12-08 Thread James Carman
modelChanged()?

Sent from tablet device.  Please excuse typos and brevity.
On Dec 8, 2011 12:58 AM, "Dan Retzlaff"  wrote:

> Hi, Robin. I am not a core developer, but I believe this is as designed. If
> you want the page version to be incremented, you can call Page#dirty() in
> your onClick(). Otherwise the page version only advances when the component
> hierarchy changes or when a component's model changes.
>
> On Wed, Dec 7, 2011 at 8:24 PM, Robin Shine  wrote:
>
> > Hi All,
> >
> >
> > In Wicket 1.5.3, I create a very simple page containing a label and a
> > link, when the link is clicked, it increases a counter, and change model
> > value of the label. Thus the counter on the page will increase each time
> > the link is clicked. For instance, the initial value displayed is 0, and
> > after three clicks, the page displays value 3. However, the url remains
> > unchanged while clicking the link, and hitting a back button at this time
> > will display the page before displaying value 0, instead of displaying
> > value 2.
> >
> >
> > Is this a designed behavior or a bug? The page java code and its template
> > is like below:
> >
> >
> > TestPage.java:
> >
> > public class MyPage extends WebPage {
> >
> > private int count;
> > protected void onInitialize() {
> > super.onInitialize();
> > add(new Link("link") {
> > public void onClick() {
> > count++;
> > }
> > });
> > add(new Label("label", new AbstractReadOnlyModel() {
> > public String getObject() {
> > return String.valueOf(count);
> > }
> > }));
> > }
> > }
> >
> > TestPage.html:
> >
> > link
> > label
> >
> >
> > Thanks for your help.
> >
> > Robin
> >
>


Re: WicketTester setParameterForNextRequest() doubt

2011-12-02 Thread James Carman
Have you tried using a form tester?
On Dec 2, 2011 10:58 AM, "Fabiosakiyam"  wrote:

> Hi guys,
>
> Im trying to test a component i've made using wicket tester, but im having
> a
> problem to assert a modelValue.
> Im trying to input data on my component fields, and then submit. The
> problem
> is, when i try to assertModelValue, it says it's empty.
>
> My component is declared like this, in a blankpage.java :
>
> ComponentX x = new ComponentX(wicketid, propertyModel)
>
> and my test start like this:
>
> wicketTester.startPage(blankpage)
> wicketTester.setParametersForNextRequest(path, value);
> wicketTester.submitForm(formId)
> wicketTester.assertModelValue(componentpath, expectedvalue)
>
> i don't know what am i missing... i tested the component manually, and it's
> working.
> so either i don't know how setParametersForNextRequest() works...or i'm
> missing something else..
> Any ideas?
>
> Thanks
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/WicketTester-setParameterForNextRequest-doubt-tp4147729p4147729.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: WicketTester setParameterForNextRequest() doubt

2011-12-02 Thread James Carman
Have you tried using a form tester?
On Dec 2, 2011 10:58 AM, "Fabiosakiyam"  wrote:

> Hi guys,
>
> Im trying to test a component i've made using wicket tester, but im having
> a
> problem to assert a modelValue.
> Im trying to input data on my component fields, and then submit. The
> problem
> is, when i try to assertModelValue, it says it's empty.
>
> My component is declared like this, in a blankpage.java :
>
> ComponentX x = new ComponentX(wicketid, propertyModel)
>
> and my test start like this:
>
> wicketTester.startPage(blankpage)
> wicketTester.setParametersForNextRequest(path, value);
> wicketTester.submitForm(formId)
> wicketTester.assertModelValue(componentpath, expectedvalue)
>
> i don't know what am i missing... i tested the component manually, and it's
> working.
> so either i don't know how setParametersForNextRequest() works...or i'm
> missing something else..
> Any ideas?
>
> Thanks
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/WicketTester-setParameterForNextRequest-doubt-tp4147729p4147729.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: intercept client request

2011-11-28 Thread James Carman
Too bad it's a nice feature
On Nov 28, 2011 2:16 AM, "Martin Grigorov"  wrote:

> On Mon, Nov 28, 2011 at 4:31 AM, James Carman
>  wrote:
> > Or use a request cycle listener to be more portable.
>
> request cycle listeners are available since Wicket 1.5
> looking at the stacktrace (s)he still uses 1.4
>
>
> > On Nov 27, 2011 9:22 PM, "Jeremy Thomerson" 
> > wrote:
> >
> >> On Sun, Nov 27, 2011 at 9:14 PM, nazeem  wrote:
> >>
> >> > In the server side, i need to know who is performing this action to do
> >> > auditing and other related services. So I need to use a thread local
> >> > variable that will be available at any place in the chain of request
> >> until
> >> > response is sent back. But I do not know how to set this thread local
> >> > variable at the time of request. I have the current user in session,
> so i
> >> > need to get it from session and set it to thread local variable on
> each
> >> > request. if possible distinguish and filter only user request actions
> >> > instead for all css, js request.
> >> >
> >> > When i look at the stack trace, when i click a submit link to update
> >> > employee..  this is the strucutre.
> >> >
> >> > I am interested to intercept between this to set the thread local
> >> variable.
> >> > how do i do it ?
> >> >
> >>
> >>
> >> You can override newRequestCycle in your application, provide a custom
> >> subclass of WebRequestCycle, and use onBeginRequest / onEndRequest.
> >>
> >> --
> >> Jeremy Thomerson
> >> http://wickettraining.com
> >> *Need a CMS for Wicket?  Use Brix! http://brixcms.org*
> >>
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: intercept client request

2011-11-27 Thread James Carman
Or use a request cycle listener to be more portable.
On Nov 27, 2011 9:22 PM, "Jeremy Thomerson" 
wrote:

> On Sun, Nov 27, 2011 at 9:14 PM, nazeem  wrote:
>
> > In the server side, i need to know who is performing this action to do
> > auditing and other related services. So I need to use a thread local
> > variable that will be available at any place in the chain of request
> until
> > response is sent back. But I do not know how to set this thread local
> > variable at the time of request. I have the current user in session, so i
> > need to get it from session and set it to thread local variable on each
> > request. if possible distinguish and filter only user request actions
> > instead for all css, js request.
> >
> > When i look at the stack trace, when i click a submit link to update
> > employee..  this is the strucutre.
> >
> > I am interested to intercept between this to set the thread local
> variable.
> > how do i do it ?
> >
>
>
> You can override newRequestCycle in your application, provide a custom
> subclass of WebRequestCycle, and use onBeginRequest / onEndRequest.
>
> --
> Jeremy Thomerson
> http://wickettraining.com
> *Need a CMS for Wicket?  Use Brix! http://brixcms.org*
>


Re: Dynamically choosing component to add

2011-11-25 Thread James Carman
What exactly are you trying to do?  Different view elements based on the
state of your model or its type.
On Oct 31, 2011 9:50 AM, "Bertrand Guay-Paquet" 
wrote:

> Hi,
>
> Was is the proper way to choose which panel to add to a page based on a
> model's object value? Currently, I directly access the model and check the
> value during construction of the page. However, this is wrong since a
> model's object shouldn't be accessed until component rendering (see thread
> "LDMs load too early - hold outdated application data").
>
> One obvious approach is to add all possible panels to the page and
> override their isVisible() method to inspect the model objects. This seems
> like wasted processing and memory so I'd like to avoid it.
>
> The page's onConfigure() and onBeforeRender() methods are the candidates I
> can think of to inspect the model object's value and add the proper panel.
> Is one better or is there another solution? Are there other issues with
> this approach?
>
> Regards,
> Bertrand
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@wicket.**apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Dynamic component?

2011-11-25 Thread James Carman
Just use one div and always use the same id (container for example).
On Nov 25, 2011 5:26 PM, "Fabiosakiyam"  wrote:

> Hello,
>
> Sorry if this is already solved, but i couldn't find it, 'cause i don't
> really know what is the name of this, that's why the subject is weird.
>
> Ok so, im creating a new component (extends panel), and his .java is
> something like this:
>
> class Component {
>getType().buildContainer();
> }
>
> It builds a container, depending on it's type. At the moment i have to 2
> types only.
> And the component .html is something like this:
>
> 
>
>
> 
>
> the first and second container have a .java and a .html as well, declaring
> the fields, etc.
> I want to know if it's possible to do what i'm trying at the component.html
> , i mean, declaring all types of containers i have (but only 1 will be
> built, at the getType().buildContainer()), and by declaring the wicket:id
> of
> them, it will get the wicket:id from the fields declared at the container
> too.
>
> It's kinda confuse to explain, i hope someone understand.
> Sorry for bad english.
>
> Thanks.
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Dynamic-component-tp4107323p4107323.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Scaffolding

2011-11-19 Thread James Carman
Why do you want generated code when you can have it automatically
generated for you at runtime?

On Sat, Nov 19, 2011 at 3:10 PM, Pierre Goupil  wrote:
> Good evening fellow Wicketers,
>
> Do you know of any Wicket scaffolding component? I know about these two:
>
> http://wicketopia.sourceforge.net/scaffold.html
>
> http://gitorious.org/wscaffold
>
> but I'm currently looking for competitors. In particular, I'm looking for
> source code-generating components. Any links, please?
>
> Regards,
>
> Pierre Goupil
>
>
>
> --
> Si tu penses que la violence ne résout rien, c'est que tu n'as pas tapé
> assez fort.
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: integrating CDI into Wicket

2011-11-16 Thread James Carman
That's just how I roll!  :)  it's a learning exercise for me.  I started a
cdi integration project long ago and it got lost in the shuffle
On Nov 16, 2011 3:42 PM, "Igor Vaynberg"  wrote:

> why would you write your own when one is already there?
>
> -igor
>
> On Wed, Nov 16, 2011 at 12:37 PM, James Carman
>  wrote:
> > On Nov 16, 2011 11:49 AM, "Igor Vaynberg" 
> wrote:
> >>
> >> On Wed, Nov 16, 2011 at 3:49 AM, James Carman
> >>  wrote:
> >> > The only thing "external" is the conversation management stuff from
> >> > Seam, it looks like.  The user would have to make sure they include
> >> > the container-specific "adapter" code on the classpath
> >> > (org.jboss.seam.conversation:seam-conversation-weld for example) for
> >> > their CDI container.
> >>
> >> yes. this will go away once cdi 1.1 is release which provides the
> >> conversation scope api
> >>
> >
> > This will be great!  Do they have an eta?  For now I'll write my own
> > abstraction similar to your CdiContainer
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: integrating CDI into Wicket

2011-11-16 Thread James Carman
On Nov 16, 2011 11:49 AM, "Igor Vaynberg"  wrote:
>
> On Wed, Nov 16, 2011 at 3:49 AM, James Carman
>  wrote:
> > The only thing "external" is the conversation management stuff from
> > Seam, it looks like.  The user would have to make sure they include
> > the container-specific "adapter" code on the classpath
> > (org.jboss.seam.conversation:seam-conversation-weld for example) for
> > their CDI container.
>
> yes. this will go away once cdi 1.1 is release which provides the
> conversation scope api
>

This will be great!  Do they have an eta?  For now I'll write my own
abstraction similar to your CdiContainer


Re: integrating CDI into Wicket

2011-11-16 Thread James Carman
Is the license compatible?
I am actually going to roll my own in wicketopia.
On Nov 16, 2011 6:59 AM, "Martin Grigorov"  wrote:

> On Wed, Nov 16, 2011 at 1:49 PM, James Carman
>  wrote:
> > The only thing "external" is the conversation management stuff from
> > Seam, it looks like.  The user would have to make sure they include
> > the container-specific "adapter" code on the classpath
> > (org.jboss.seam.conversation:seam-conversation-weld for example) for
> > their CDI container.
> >
> > Another concern would be the fact that they (JBoss) don't "publish"
> > their artifacts to Maven central.  Aren't they (the managers of Maven
> > central) frowning upon publishing artifacts up there that depend on
> > artifacts published elsewhere?
>
> See http://www.sonatype.com/people/2011/09/8942/
>
>
> >
> >
> > On Wed, Nov 16, 2011 at 4:21 AM, Martin Grigorov 
> wrote:
> >> one more question: is there anything Weld specific in wicket-cdi or it
> >> should work with other CDI implementations too ?
> >>
> >> On Wed, Nov 16, 2011 at 11:20 AM, Martin Grigorov 
> wrote:
> >>> speaking of moving it to Apache..
> >>>
> >>> currently we have some inconsistencies between Spring and Guice
> >>> integrations and users ask from time to time :
> >>> - why we don't use jsr330 @javax.inject.Inject since both Spring and
> >>> Guice support it. With CDI I think javax.enterprise.inject.Inject is
> >>> used which is yet another ...
> >>> - is it possible to not proxy the injected object (we have a ticket
> >>> with patch for Spring for that but not for Guice)
> >>>
> >>> now with CDI I see more:
> >>> - why Injector.get().inject(me) doesn't work ?
> >>> --- because it needs BeanManager, but since it is reachable from
> >>> ServletContext then it should be OK
> >>> --- because it needs the class - OK, use me.getClass() for that
> >>> - why Spring/Guice doesn't support @PostConstruct ?
> >>>
> >>> So my question is: should we try to make them consistent with each
> >>> other or we should provide minimal integration and give the user the
> >>> possibility to use the full power of his favorite DI framework ?
> >>>
> >>> On Wed, Nov 16, 2011 at 10:52 AM, Igor Vaynberg <
> igor.vaynb...@gmail.com> wrote:
> >>>> sure
> >>>>
> >>>> -igor
> >>>>
> >>>> On Wed, Nov 16, 2011 at 12:49 AM, Martijn Dashorst <
> >>>> martijn.dasho...@gmail.com> wrote:
> >>>>
> >>>>> On Tue, Nov 15, 2011 at 7:00 PM, Igor Vaynberg <
> igor.vaynb...@gmail.com>
> >>>>> wrote:
> >>>>> > if you want to learn how to use CDI with Wicket i just wrote a
> short blog
> >>>>> > about it:
> >>>>> >
> >>>>> > https://www.42lines.net/2011/11/15/integrating-cdi-into-wicket/
> >>>>>
> >>>>> Can we use it for the documentation of the CDI project (when we
> >>>>> migrate it to apache)?
> >>>>>
> >>>>> Martijn
> >>>>>
> >>>>> --
> >>>>> Become a Wicket expert, learn from the best:
> http://wicketinaction.com
> >>>>>
> >>>>> -
> >>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>>>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>>>>
> >>>>>
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Martin Grigorov
> >>> jWeekend
> >>> Training, Consulting, Development
> >>> http://jWeekend.com
> >>>
> >>
> >>
> >>
> >> --
> >> Martin Grigorov
> >> jWeekend
> >> Training, Consulting, Development
> >> http://jWeekend.com
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: integrating CDI into Wicket

2011-11-16 Thread James Carman
The only thing "external" is the conversation management stuff from
Seam, it looks like.  The user would have to make sure they include
the container-specific "adapter" code on the classpath
(org.jboss.seam.conversation:seam-conversation-weld for example) for
their CDI container.

Another concern would be the fact that they (JBoss) don't "publish"
their artifacts to Maven central.  Aren't they (the managers of Maven
central) frowning upon publishing artifacts up there that depend on
artifacts published elsewhere?


On Wed, Nov 16, 2011 at 4:21 AM, Martin Grigorov  wrote:
> one more question: is there anything Weld specific in wicket-cdi or it
> should work with other CDI implementations too ?
>
> On Wed, Nov 16, 2011 at 11:20 AM, Martin Grigorov  
> wrote:
>> speaking of moving it to Apache..
>>
>> currently we have some inconsistencies between Spring and Guice
>> integrations and users ask from time to time :
>> - why we don't use jsr330 @javax.inject.Inject since both Spring and
>> Guice support it. With CDI I think javax.enterprise.inject.Inject is
>> used which is yet another ...
>> - is it possible to not proxy the injected object (we have a ticket
>> with patch for Spring for that but not for Guice)
>>
>> now with CDI I see more:
>> - why Injector.get().inject(me) doesn't work ?
>> --- because it needs BeanManager, but since it is reachable from
>> ServletContext then it should be OK
>> --- because it needs the class - OK, use me.getClass() for that
>> - why Spring/Guice doesn't support @PostConstruct ?
>>
>> So my question is: should we try to make them consistent with each
>> other or we should provide minimal integration and give the user the
>> possibility to use the full power of his favorite DI framework ?
>>
>> On Wed, Nov 16, 2011 at 10:52 AM, Igor Vaynberg  
>> wrote:
>>> sure
>>>
>>> -igor
>>>
>>> On Wed, Nov 16, 2011 at 12:49 AM, Martijn Dashorst <
>>> martijn.dasho...@gmail.com> wrote:
>>>
 On Tue, Nov 15, 2011 at 7:00 PM, Igor Vaynberg 
 wrote:
 > if you want to learn how to use CDI with Wicket i just wrote a short blog
 > about it:
 >
 > https://www.42lines.net/2011/11/15/integrating-cdi-into-wicket/

 Can we use it for the documentation of the CDI project (when we
 migrate it to apache)?

 Martijn

 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


>>>
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DI in wicket

2011-11-12 Thread James Carman
This is a Spring issue, not a Wicket issue.  You're not configuring
Spring correctly.  If you want a working example that uses
Spring/Hibernate, you can try Wicketopia's example application.  It
has everything configured correctly out of the box.

http://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/example
(wicket 1.4 version)
https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/branches/wicketopia15main/example/
(wicket 1.5 version)

Hope that helps.

On Sat, Nov 12, 2011 at 1:26 AM, vela  wrote:
> Hi,
>
> Kindly find the stack trace below
>
>
> Root cause:java.lang.NullPointerException     at
> sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(Unknown Source)     at
> sun.jdbc.odbc.JdbcOdbcDriver.knownURL(Unknown Source)     at
> sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(Unknown Source)     at
> java.sql.DriverManager.getDriver(Unknown Source)     at
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1437)
> at
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
> at
> org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
> at
> org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:202)
> at
> org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
> at
> org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
> at
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
> at
> org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)
> at
> com.mycorp.chicago.user.JdbcUserDao$$EnhancerByCGLIB$$d2eaa8de.test()
> at java.lang.reflect.Method.invoke(Unknown Source)     at
> org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:416)
> at org.apache.wicket.proxy.$Proxy5.test(Unknown Source)     at
> com.wicket.pages.IndexPage.(IndexPage.java:20)     at
> java.lang.reflect.Constructor.newInstance(Unknown Source)     at
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:177)
> at
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:68)
> at
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:101)
> at
> org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:47)
> at
> org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:107)
> at
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:263)
> at
> org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:164)
> at
> org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78)
> at
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
> at
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224)
> at
> org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:147)
> at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:712)
> at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:208)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:251)
> at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
> at
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:964)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)

Re: Spring secury + auth-roles authentication and authorization: access denied

2011-11-08 Thread James Carman
Take a look at wicketopia's example app.  It has spring security
integration.

Sent from tablet device.  Please excuse typos and brevity.
On Nov 7, 2011 11:24 AM, "massizigao"  wrote:


Re: @AuthorizeAction multiple actions

2011-10-27 Thread James Carman
That's what I said!  :)
On Oct 27, 2011 8:44 AM, "Martijn Dashorst" 
wrote:

> This should work I guess?
>
>
> http://wicket.apache.org/apidocs/1.5/org/apache/wicket/authroles/authorization/strategies/role/annotations/AuthorizeActions.html
>
> Martijn
>
> On Thu, Oct 27, 2011 at 2:41 PM, James Carman
>  wrote:
> > He had different actions
> > On Oct 27, 2011 7:32 AM, "Martin Grigorov"  wrote:
> >
> >> On Thu, Oct 27, 2011 at 1:23 PM, nebojsa.nedic
> >>  wrote:
> >> > Hello all,
> >> >
> >> > I would like to ask is it possible to add multiple authorize actions
> on
> >> one
> >> > class.
> >> >
> >> > It would mean that in case the user has role (i.e.) "Admin" component
> is
> >> > enabled and rendered, for role "user" component is disabled and
> rendered,
> >> > and for role "guest" component is not rendered.
> >> >
> >> > Kind of combination of these two annotations:
> >> > @AuthorizeAction(action = "ENABLE", roles = { "ROLE_ADMIN" })
> >> > @AuthorizeAction(action = "RENDER", roles = { "ROLE_USER" })
> >>
> >> @AuthorizeAction(action = "ENABLE", roles = { "ROLE_ADMIN", "ROLE_USER"
> })
> >> @AuthorizeAction(action = "RENDER", roles = { "ROLE_USER" })
> >>
> >> List all roles which are authorized to do the action.
> >> >
> >> > What would be the best way to implement this?
> >> >
> >> > Thank you.
> >> >
> >> > --
> >> > View this message in context:
> >>
> http://apache-wicket.1842946.n4.nabble.com/AuthorizeAction-multiple-actions-tp3943997p3943997.html
> >> > Sent from the Users forum mailing list archive at Nabble.com.
> >> >
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Martin Grigorov
> >> jWeekend
> >> Training, Consulting, Development
> >> http://jWeekend.com
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: @AuthorizeAction multiple actions

2011-10-27 Thread James Carman
He had different actions
On Oct 27, 2011 7:32 AM, "Martin Grigorov"  wrote:

> On Thu, Oct 27, 2011 at 1:23 PM, nebojsa.nedic
>  wrote:
> > Hello all,
> >
> > I would like to ask is it possible to add multiple authorize actions on
> one
> > class.
> >
> > It would mean that in case the user has role (i.e.) "Admin" component is
> > enabled and rendered, for role "user" component is disabled and rendered,
> > and for role "guest" component is not rendered.
> >
> > Kind of combination of these two annotations:
> > @AuthorizeAction(action = "ENABLE", roles = { "ROLE_ADMIN" })
> > @AuthorizeAction(action = "RENDER", roles = { "ROLE_USER" })
>
> @AuthorizeAction(action = "ENABLE", roles = { "ROLE_ADMIN", "ROLE_USER" })
> @AuthorizeAction(action = "RENDER", roles = { "ROLE_USER" })
>
> List all roles which are authorized to do the action.
> >
> > What would be the best way to implement this?
> >
> > Thank you.
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/AuthorizeAction-multiple-actions-tp3943997p3943997.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: @AuthorizeAction multiple actions

2011-10-27 Thread James Carman
You can't have two of the same annotations on the same target.  You would
need an @AuthorizeActions which would group them together.  Or, check out
how we handled this in wicketopia (shameless plug).  :-)

Sent from tablet device.  Please excuse typos and brevity.
On Oct 27, 2011 7:23 AM, "nebojsa.nedic"  wrote:


Re: [ANNOUNCE] Wicketopia 0.9 Released...

2011-10-23 Thread James Carman
Try using the @Enabled annotation to limit editing to only certain
"contexts" (such as ADMIN or something).

On Sat, Oct 22, 2011 at 11:18 AM, androidcoolguy
 wrote:
> James,
>
> Your metadata annotation is based on Metastopheles, but I can't find much
> information about it. Do you have more information elsewhere that you could
> provide?
>
> Specifically, I need to see if there is a way to make a property "read only"
> (non-editable). What kind of annotation should I apply in the domain class?
>
> Thanks.
>
> AG
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/ANNOUNCE-Wicketopia-0-9-Released-tp3418771p3928352.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Dynamic page display based on a configuration in Wicket

2011-10-19 Thread James Carman
If you need inspiration, you can check out the Wicketopia project.  It
dynamically builds forms for beans, but you could easily adapt the
logic to figure out which fields to display from a different source.

On Wed, Oct 19, 2011 at 11:16 AM, Vasu Srinivasan  wrote:
> Hello,
>
> I am familiar with wicket concepts and have done some basic stuff with it. I
> am currently working on a PoC, but not sure how to get this around in
> Wicket. In Wicket, the html and java are directly tied between each other.
> However I would like to have an external configuration (json or xml) that
> would contain the elements of a page (name, age, address etc fields), and
> use that configuration to build out the html and tie it to a generic java
> class (based on BasePage class). Is this possible in Wicket?
>
> Or as an alternative, I can keep my generic java class, but instead of
> having json/xml I could work directly with multiple htmls - that could be
> handled by this generic class which delegates to other classes to handle the
> page request. I know its slightly different from Wicket approach, but im
> trying to see if this is a possibility.
>
> To give an example --
>
> Page1.html (contains name, age, address fields)
> Page2.html (contains name, school education details)
>
> Both of them should be handled by a single java file (which may be allowed
> to have all of those fields). In effect the htmls may have only a subset of
> fields that the page should handle/validate only those that are present in
> the html.
>
> thanks for any pointers
>
> Vasya
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



[OT] Wicket Jobs List?

2011-10-19 Thread James Carman
Fellow Wicketeers,

Do we have a special mailing list for Wicket jobs?  I'm looking again
and would like to find a good place to advertise that fact. :)

Thanks,

James Carman

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: to integrate wicket with hibernate using spring

2011-07-04 Thread James Carman
You may also want to check out wicketopia.

http://wicketopia.sourceforge.net

Sent from tablet device.  Please excuse typos and brevity.
On Jul 4, 2011 11:56 AM, "Martin Grigorov"  wrote:
> Here is a Maven command which will get you started:
>
> mvn archetype:generate -B
> -DarchetypeCatalog=
http://legup.googlecode.com/svn/repo/archetype-catalog.xml
> -DarchetypeArtifactId=spring-jpa-archetype
> -DarchetypeGroupId=com.jweekend -DarchetypeVersion=0.8.4
> -DgroupId=com.mycompany -DartifactId=mycompany -Dversion=1.0-SNAPSHOT
> -Dpackage=com.mycompany
>
> It is generated by the tool at http://www.jweekend.com/dev/LegUp
>
> On Mon, Jul 4, 2011 at 5:53 PM, Bruno Borges 
wrote:
>> Wicket is a presentation framework. Your task is to integrate Spring and
>> Hibernate in the first place. Later, you can just use Hibernate objects
>> returned by Spring methods into Wicket with classes of type IModel.
Although
>> I don't recommend that. IMO you should work with detatched objects, value
>> objects or something.
>>
>> You can also read about the pattern "Open Session in View" for web
>> development with Hibernate. Some consider it an anti-pattern. But
usually,
>> it becomes an anti-pattern if overused IMO.
>>
>> But anyway, you must read. A lot. :-)
>>
>> *Bruno Borges*
>> www.brunoborges.com.br
>> +55 21 76727099
>>
>>
>>
>> On Mon, Jul 4, 2011 at 12:48 PM, hariharansrc wrote:
>>
>>> i want to integrate wicket with hibernate using spring what can i do to
do
>>> that
>>> i know wicket and hibernate to some extent is it necessary to learn
spring
>>> framework for integrating that
>>>
>>> i searched spring hibernate integration i found some materials then what
>>> wicket actually does int that regard
>>>
>>> --
>>> View this message in context:
>>>
http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-hibernate-using-spring-tp3643931p3643931.html
>>> Sent from the Users forum mailing list archive at Nabble.com.
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: WicketStuff artifacts naming strategy

2011-06-30 Thread James Carman
And repetitive

Sent from my Android device.  Please excuse typos and brevity.
On Jun 30, 2011 11:12 AM, "Bruno Borges"  wrote:
> Yes, me neither. That's why I asked.
>
> The preffix I'm using is "wicketstuff-", but Harald mentioned
> "org.wicketstuff."
>
> I don't want to use that, it's too verbose.
>
>
> *Bruno Borges*
> www.brunoborges.com.br
> +55 21 76727099
>
>
>
> On Thu, Jun 30, 2011 at 12:06 PM, James Carman
> wrote:
>
>> I haven't seen that syntax before of having the group id in the
>> artifact id, at least not with the longer group ids (reverse domain).
>>
>> On Thu, Jun 30, 2011 at 11:02 AM, Bruno Borges 
>> wrote:
>> > The preffix is 'wicketstuff-', not 'org.wicketstuff.'
>> >
>> > Is this ok?
>> >
>> > *Bruno Borges*
>> > www.brunoborges.com.br
>> > +55 21 76727099
>> >
>> >
>> >
>> > On Wed, Jun 29, 2011 at 4:01 AM, Harald Wellmann <
harald.wellm...@gmx.de
>> >wrote:
>> >
>> >> For Maven OSGi bundle artifacts, there is a quasi-convention to have
>> >> artifactId = Bundle-Symbolic name, so you would have
>> >>
>> >> groupId: org.wicketstuff
>> >> artifactId: org.wicketstuff.foo.bar
>> >> version: 1.5
>> >>
>> >> Bundle-Symbolic-Name: org.wicketstuff.foo.bar
>> >> JAR name: org.wicketstuff.foo.bar-1.5.**jar
>> >>
>> >> Apache Servicemix and Apache Aries use this convention, while Apache
>> >> Commons sticks with the old names.
>> >>
>> >> Having this naming scheme and the one Bruno suggested in parallel
would
>> >> help to distinguish OSGi bundles from plain old JARs.
>> >>
>> >> Then again, that would mean you'd have to rename artifacts, once you
>> osgify
>> >> them.
>> >>
>> >> Regards,
>> >> Harald
>> >>
>> >>
>> >>
>> >>
>> --**--**-
>> >> To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org<
>> users-unsubscr...@wicket.apache.org>
>> >> For additional commands, e-mail: users-h...@wicket.apache.org
>> >>
>> >>
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>


Re: WicketStuff artifacts naming strategy

2011-06-30 Thread James Carman
I haven't seen that syntax before of having the group id in the
artifact id, at least not with the longer group ids (reverse domain).

On Thu, Jun 30, 2011 at 11:02 AM, Bruno Borges  wrote:
> The preffix is 'wicketstuff-', not 'org.wicketstuff.'
>
> Is this ok?
>
> *Bruno Borges*
> www.brunoborges.com.br
> +55 21 76727099
>
>
>
> On Wed, Jun 29, 2011 at 4:01 AM, Harald Wellmann 
> wrote:
>
>> For Maven OSGi bundle artifacts, there is a quasi-convention to have
>> artifactId = Bundle-Symbolic name, so you would have
>>
>> groupId: org.wicketstuff
>> artifactId: org.wicketstuff.foo.bar
>> version: 1.5
>>
>> Bundle-Symbolic-Name: org.wicketstuff.foo.bar
>> JAR name: org.wicketstuff.foo.bar-1.5.**jar
>>
>> Apache Servicemix and Apache Aries use this convention, while Apache
>> Commons sticks with the old names.
>>
>> Having this naming scheme and the one Bruno suggested in parallel would
>> help to distinguish OSGi bundles from plain old JARs.
>>
>> Then again, that would mean you'd have to rename artifacts, once you osgify
>> them.
>>
>> Regards,
>> Harald
>>
>>
>>
>> --**--**-
>> To unsubscribe, e-mail: 
>> users-unsubscribe@wicket.**apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WicketStuff artifacts naming strategy

2011-06-28 Thread James Carman
Just thought I'd bring it up.  I have to have this conversation
periodically on the Commons mailing lists too. :)


On Tue, Jun 28, 2011 at 7:12 PM, Bruno Borges  wrote:
> I understand that, but as this is a 1.5 release, I thought it shouldn't be a
> problem as it is mostly used for new projects.
>
> I would take the risk. I prefer to have collision between 1.4 and 1.5
> wicketstuff artifacts, instead of pushing jasperreports-version.jar to a lib
> folder instead of the actual (official) jasperreports-version.jar, if you
> know what I mean.
>
> *Bruno Borges*
> www.brunoborges.com.br
> +55 21 76727099
>
>
>
> On Tue, Jun 28, 2011 at 8:02 PM, James Carman 
> wrote:
>
>> Sorry, hit send too soon.
>>
>> Are you changing artifact ids?  If you are, then Maven will think that
>> it's something different and will thus allow both the old and the new
>> jars on the same classpath.  If the class names don't change, then
>> you've go the potential for a collision.  Now, this might be an
>> acceptable risk when you consider how many folks are actually using
>> the wicketstuff code, but I thought I'd bring it up.  We face this
>> same stuff at Apache Commons.
>>
>> On Tue, Jun 28, 2011 at 6:48 PM, James Carman
>>  wrote:
>> > Are you changing artifact ids?
>> >
>> > On Tue, Jun 28, 2011 at 6:26 PM, Bruno Borges 
>> wrote:
>> >> How can that happen if the purpose of this change is exactly to avoid
>> >> collisions ?
>> >>
>> >>
>> >> *Bruno Borges*
>> >> www.brunoborges.com.br
>> >> +55 21 76727099
>> >>
>> >>
>> >>
>> >> On Tue, Jun 28, 2011 at 6:59 PM, James Carman
>> >> wrote:
>> >>
>> >>> This can cause classpath collisions
>> >>>
>> >>> Sent from my Android device.  Please excuse typos and brevity.
>> >>> On Jun 28, 2011 5:27 PM, "Bruno Borges" 
>> wrote:
>> >>> > I started to modify all JAR poms to have the wicketstuff- preffix.
>> >>> >
>> >>> > Is anybody against this? Why?
>> >>> >
>> >>> > :-)
>> >>> >
>> >>> > *Bruno Borges*
>> >>> > www.brunoborges.com.br
>> >>> > +55 21 76727099
>> >>> >
>> >>> >
>> >>> >
>> >>> > On Sat, Mar 26, 2011 at 9:22 PM, Bruno Borges <
>> bruno.bor...@gmail.com
>> >>> >wrote:
>> >>> >
>> >>> >> We could simply rename the artifactId property of projects,
>> prepending
>> >>> with
>> >>> >> wicketstuff-, like wicket does with their modules.
>> >>> >>
>> >>> >> Still, I agree that this is will take some time and effort.
>> >>> >>
>> >>> >>
>> >>> >> Bruno Borges
>> >>> >> www.brunoborges.com.br
>> >>> >> +55 21 76727099
>> >>> >>
>> >>> >> "The glory of great men should always be
>> >>> >> measured by the means they have used to
>> >>> >> acquire it."
>> >>> >> - Francois de La Rochefoucauld
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> On Sat, Mar 26, 2011 at 12:36 PM, Michael O'Cleirigh <
>> >>> >> michael.ocleir...@rivulet.ca> wrote:
>> >>> >>
>> >>> >>> This is more complicated than I first thought.
>> >>> >>>
>> >>> >>> See this issue: http://jira.codehaus.org/browse/MDEPLOY-93
>> >>> >>>
>> >>> >>> Essentially it seems that the deploy plugin does not honour the
>> >>> >>>  option and uploads in the original format when
>> deploying.
>> >>> >>>
>> >>> >>> I will investigate this further but it won't be part of the next
>> point
>> >>> >>> releases unfortunately.
>> >>> >>>
>> >>> >>> Mike
>> >>> >>>
>> >>> >>>
>> >>> >>> I'm planning on doing point releases this weekend for 1.4.16.1 and
>> >>> >>>> 1.5-

Re: WicketStuff artifacts naming strategy

2011-06-28 Thread James Carman
Sorry, hit send too soon.

Are you changing artifact ids?  If you are, then Maven will think that
it's something different and will thus allow both the old and the new
jars on the same classpath.  If the class names don't change, then
you've go the potential for a collision.  Now, this might be an
acceptable risk when you consider how many folks are actually using
the wicketstuff code, but I thought I'd bring it up.  We face this
same stuff at Apache Commons.

On Tue, Jun 28, 2011 at 6:48 PM, James Carman
 wrote:
> Are you changing artifact ids?
>
> On Tue, Jun 28, 2011 at 6:26 PM, Bruno Borges  wrote:
>> How can that happen if the purpose of this change is exactly to avoid
>> collisions ?
>>
>>
>> *Bruno Borges*
>> www.brunoborges.com.br
>> +55 21 76727099
>>
>>
>>
>> On Tue, Jun 28, 2011 at 6:59 PM, James Carman
>> wrote:
>>
>>> This can cause classpath collisions
>>>
>>> Sent from my Android device.  Please excuse typos and brevity.
>>> On Jun 28, 2011 5:27 PM, "Bruno Borges"  wrote:
>>> > I started to modify all JAR poms to have the wicketstuff- preffix.
>>> >
>>> > Is anybody against this? Why?
>>> >
>>> > :-)
>>> >
>>> > *Bruno Borges*
>>> > www.brunoborges.com.br
>>> > +55 21 76727099
>>> >
>>> >
>>> >
>>> > On Sat, Mar 26, 2011 at 9:22 PM, Bruno Borges >> >wrote:
>>> >
>>> >> We could simply rename the artifactId property of projects, prepending
>>> with
>>> >> wicketstuff-, like wicket does with their modules.
>>> >>
>>> >> Still, I agree that this is will take some time and effort.
>>> >>
>>> >>
>>> >> Bruno Borges
>>> >> www.brunoborges.com.br
>>> >> +55 21 76727099
>>> >>
>>> >> "The glory of great men should always be
>>> >> measured by the means they have used to
>>> >> acquire it."
>>> >> - Francois de La Rochefoucauld
>>> >>
>>> >>
>>> >>
>>> >> On Sat, Mar 26, 2011 at 12:36 PM, Michael O'Cleirigh <
>>> >> michael.ocleir...@rivulet.ca> wrote:
>>> >>
>>> >>> This is more complicated than I first thought.
>>> >>>
>>> >>> See this issue: http://jira.codehaus.org/browse/MDEPLOY-93
>>> >>>
>>> >>> Essentially it seems that the deploy plugin does not honour the
>>> >>>  option and uploads in the original format when deploying.
>>> >>>
>>> >>> I will investigate this further but it won't be part of the next point
>>> >>> releases unfortunately.
>>> >>>
>>> >>> Mike
>>> >>>
>>> >>>
>>> >>> I'm planning on doing point releases this weekend for 1.4.16.1 and
>>> >>>> 1.5-rc2.1 and I'll make sure the artifacts generate using the longer
>>> name.
>>> >>>>
>>> >>>> Thanks,
>>> >>>>
>>> >>>> Mike
>>> >>>>
>>> >>>>
>>> >>>> In the most parent wicketstuff pom.xml:
>>> >>>>>
>>> >>>>> 
>>> >>>>>
>>>
>>> ${project.groupId}-${project.artifactId}-${project.version}.jar
>>> >>>>>
>>> >>>>> 
>>> >>>>>
>>> >>>>> On Fri, Mar 25, 2011 at 9:31 AM, Wilhelmsen Tor Iver<
>>> toriv...@arrive.no
>>> >>>>> >wrote:
>>> >>>>>
>>> >>>>> - jasperreports-1.4.16.jar
>>> >>>>>>> - jasperreports-3.7.2.jar
>>> >>>>>>> The first one is from WicketStuff, but still, it is confusing to
>>> see
>>> >>>>>>>
>>> >>>>>> this.
>>> >>>>>>
>>> >>>>>> This one of my biggest peeves with Maven: It has this concept of a
>>> >>>>>> "groupId" to namespace artifacts in the repository, but this is of
>>> no
>>> >>>>>> consequence when the jar files appear in the classpath, since the
>>> >>>>>> groupId
>>> >>>>>> namespace is not part of the actual file name.
>>> >>>>>>
>>> >>>>>> A workaround could be to prefix the jar file name with the groupId
>>> >>>>>> namespace somehow.
>>> >>>>>>
>>> >>>>>> - Tor Iver
>>> >>>>>>
>>> >>>>>>
>>> >>>>>
>>> >>>>>
>>> >>>>
>>> >>>> -
>>> >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> >>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>> >>>>
>>> >>>>
>>> >>>
>>> >>> -
>>> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> >>> For additional commands, e-mail: users-h...@wicket.apache.org
>>> >>>
>>> >>>
>>> >>
>>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WicketStuff artifacts naming strategy

2011-06-28 Thread James Carman
Are you changing artifact ids?

On Tue, Jun 28, 2011 at 6:26 PM, Bruno Borges  wrote:
> How can that happen if the purpose of this change is exactly to avoid
> collisions ?
>
>
> *Bruno Borges*
> www.brunoborges.com.br
> +55 21 76727099
>
>
>
> On Tue, Jun 28, 2011 at 6:59 PM, James Carman
> wrote:
>
>> This can cause classpath collisions
>>
>> Sent from my Android device.  Please excuse typos and brevity.
>> On Jun 28, 2011 5:27 PM, "Bruno Borges"  wrote:
>> > I started to modify all JAR poms to have the wicketstuff- preffix.
>> >
>> > Is anybody against this? Why?
>> >
>> > :-)
>> >
>> > *Bruno Borges*
>> > www.brunoborges.com.br
>> > +55 21 76727099
>> >
>> >
>> >
>> > On Sat, Mar 26, 2011 at 9:22 PM, Bruno Borges > >wrote:
>> >
>> >> We could simply rename the artifactId property of projects, prepending
>> with
>> >> wicketstuff-, like wicket does with their modules.
>> >>
>> >> Still, I agree that this is will take some time and effort.
>> >>
>> >>
>> >> Bruno Borges
>> >> www.brunoborges.com.br
>> >> +55 21 76727099
>> >>
>> >> "The glory of great men should always be
>> >> measured by the means they have used to
>> >> acquire it."
>> >> - Francois de La Rochefoucauld
>> >>
>> >>
>> >>
>> >> On Sat, Mar 26, 2011 at 12:36 PM, Michael O'Cleirigh <
>> >> michael.ocleir...@rivulet.ca> wrote:
>> >>
>> >>> This is more complicated than I first thought.
>> >>>
>> >>> See this issue: http://jira.codehaus.org/browse/MDEPLOY-93
>> >>>
>> >>> Essentially it seems that the deploy plugin does not honour the
>> >>>  option and uploads in the original format when deploying.
>> >>>
>> >>> I will investigate this further but it won't be part of the next point
>> >>> releases unfortunately.
>> >>>
>> >>> Mike
>> >>>
>> >>>
>> >>> I'm planning on doing point releases this weekend for 1.4.16.1 and
>> >>>> 1.5-rc2.1 and I'll make sure the artifacts generate using the longer
>> name.
>> >>>>
>> >>>> Thanks,
>> >>>>
>> >>>> Mike
>> >>>>
>> >>>>
>> >>>> In the most parent wicketstuff pom.xml:
>> >>>>>
>> >>>>> 
>> >>>>>
>>
>> ${project.groupId}-${project.artifactId}-${project.version}.jar
>> >>>>>
>> >>>>> 
>> >>>>>
>> >>>>> On Fri, Mar 25, 2011 at 9:31 AM, Wilhelmsen Tor Iver<
>> toriv...@arrive.no
>> >>>>> >wrote:
>> >>>>>
>> >>>>> - jasperreports-1.4.16.jar
>> >>>>>>> - jasperreports-3.7.2.jar
>> >>>>>>> The first one is from WicketStuff, but still, it is confusing to
>> see
>> >>>>>>>
>> >>>>>> this.
>> >>>>>>
>> >>>>>> This one of my biggest peeves with Maven: It has this concept of a
>> >>>>>> "groupId" to namespace artifacts in the repository, but this is of
>> no
>> >>>>>> consequence when the jar files appear in the classpath, since the
>> >>>>>> groupId
>> >>>>>> namespace is not part of the actual file name.
>> >>>>>>
>> >>>>>> A workaround could be to prefix the jar file name with the groupId
>> >>>>>> namespace somehow.
>> >>>>>>
>> >>>>>> - Tor Iver
>> >>>>>>
>> >>>>>>
>> >>>>>
>> >>>>>
>> >>>>
>> >>>> -
>> >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >>>> For additional commands, e-mail: users-h...@wicket.apache.org
>> >>>>
>> >>>>
>> >>>
>> >>> -
>> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >>> For additional commands, e-mail: users-h...@wicket.apache.org
>> >>>
>> >>>
>> >>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: WicketStuff artifacts naming strategy

2011-06-28 Thread James Carman
This can cause classpath collisions

Sent from my Android device.  Please excuse typos and brevity.
On Jun 28, 2011 5:27 PM, "Bruno Borges"  wrote:
> I started to modify all JAR poms to have the wicketstuff- preffix.
>
> Is anybody against this? Why?
>
> :-)
>
> *Bruno Borges*
> www.brunoborges.com.br
> +55 21 76727099
>
>
>
> On Sat, Mar 26, 2011 at 9:22 PM, Bruno Borges wrote:
>
>> We could simply rename the artifactId property of projects, prepending
with
>> wicketstuff-, like wicket does with their modules.
>>
>> Still, I agree that this is will take some time and effort.
>>
>>
>> Bruno Borges
>> www.brunoborges.com.br
>> +55 21 76727099
>>
>> "The glory of great men should always be
>> measured by the means they have used to
>> acquire it."
>> - Francois de La Rochefoucauld
>>
>>
>>
>> On Sat, Mar 26, 2011 at 12:36 PM, Michael O'Cleirigh <
>> michael.ocleir...@rivulet.ca> wrote:
>>
>>> This is more complicated than I first thought.
>>>
>>> See this issue: http://jira.codehaus.org/browse/MDEPLOY-93
>>>
>>> Essentially it seems that the deploy plugin does not honour the
>>>  option and uploads in the original format when deploying.
>>>
>>> I will investigate this further but it won't be part of the next point
>>> releases unfortunately.
>>>
>>> Mike
>>>
>>>
>>> I'm planning on doing point releases this weekend for 1.4.16.1 and
 1.5-rc2.1 and I'll make sure the artifacts generate using the longer
name.

 Thanks,

 Mike


 In the most parent wicketstuff pom.xml:
>
> 
>
${project.groupId}-${project.artifactId}-${project.version}.jar
>
> 
>
> On Fri, Mar 25, 2011 at 9:31 AM, Wilhelmsen Tor Iver<
toriv...@arrive.no
> >wrote:
>
> - jasperreports-1.4.16.jar
>>> - jasperreports-3.7.2.jar
>>> The first one is from WicketStuff, but still, it is confusing to see
>>>
>> this.
>>
>> This one of my biggest peeves with Maven: It has this concept of a
>> "groupId" to namespace artifacts in the repository, but this is of no
>> consequence when the jar files appear in the classpath, since the
>> groupId
>> namespace is not part of the actual file name.
>>
>> A workaround could be to prefix the jar file name with the groupId
>> namespace somehow.
>>
>> - Tor Iver
>>
>>
>
>

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>


Re: new user registration email verification

2011-06-28 Thread James Carman
This isn't really a "wicket thing" is it?  This is a common pattern
for all web applications that require a login.  There is nothing
inherently "wickety" about it

On Tue, Jun 28, 2011 at 11:34 AM, fachhoch  wrote:
> any suggestions  ?
> Email verfication  almost all aps needs this is there any generic way of
> doing this ?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/new-user-registration-email-verification-tp3630379p3630679.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: What is the Best login implementation?

2011-06-18 Thread James Carman
Using Wicket Auth-Roles is pretty easy.  You can implement login
however you want with it.  Adapting it to Spring Security is easy as
is Shiro.

On Sat, Jun 18, 2011 at 7:47 AM, Paolo  wrote:
> Hi,
> I found on google some solution for login with wicket:
>
> http://wicket.apache.org/learn/projects/authroles.html
> Wicket Shiro - integration between Apache Shiro and Wicket  (I can't find the 
> web site)
> Wicket Security - JAAS inspired, principal based security framework (I can't 
> find the web site)
>
> What is the the best and the simplest to implement? I need security too :-)
> Are there some other library/example code?
>
> thank you
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: TextField and Java Number

2011-06-15 Thread James Carman
Number is abstract.  How is TextField supposed to be able to
instantiate one using the text?  You can't use one of the subclasses?

On Wed, Jun 15, 2011 at 5:20 PM, Corbin, James  wrote:
> I am creating an input field that should accept numbers only, so I defined my 
> TextField component as follows,
>
> TextField(String markupId, IModel model)
>
> I am "forcing" the model update by adding 
> AjaxFormComponentUpdatingBehavior("onblur")...
>
> The model doesn't appear to be getting updated (works okay if defined as 
> TextField).
>
> I am wondering if the alternate constructor format is required to make it 
> work with types not derived from a String, as in,
>
> TextField(String markupId, IModel model, Number.class)  // 
> explicitly specify the type
>
> I thought moving to support generics in wicket eliminated the need for this 
> kind of syntax.
>
> Is specifying the type (e.g., class) the solution,  or do I need to add a 
> specific type converter for type Number???
>
> Thanks,
> J.D.
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Doubt about Pallete component

2011-06-14 Thread James Carman
Try reading the Palette javadocs.

On Tue, Jun 14, 2011 at 11:38 AM, Vitor Granzinoli Vellozo
 wrote:
>
> Martin,
>
> You mentioned Palette Recorder, so I tried to use that, but it not works like 
> I need.
>
> Imagine I have an Object called Contact (with name, age..), and a palette 
> with a list of
> not-selected contacts at left side, and a list of selected contacts at right 
> side.
>
> I just need an Ajax behavior ("onclick") that return me the Selected Contact 
> Object.
>
> Is it possible? How can I do that?
>
>
> Thanks a lot
> Vitor
>
>
> -Mensagem original-
> De: Martin Makundi [mailto:martin.maku...@koodaripalvelut.com]
> Enviada em: terça-feira, 14 de junho de 2011 12:02
> Para: users@wicket.apache.org
> Assunto: Re: Doubt about Pallete component
>
> Do you attach ajax to palette recorder?
>
> **
> Martin
>
> 2011/6/14 Vitor Granzinoli Vellozo :
>>
>>
>> Wicketers,
>>
>>
>>
>> To use the Pallete component, I need use two models, first to list
>> not-selected items, and the second to list the selected items.
>>
>>
>>
>> I need add an ajax behavior in the pallete to get the value of a certain
>> item when it is clicked. When I use Ajax, I can get the modelObject
>>
>> but this object is a List (the list of selected items) and it is not a
>> unique object.
>>
>>
>>
>> So, my doubt is, how can I get a unique object from a list used in the
>> pallete?
>>
>>
>>
>> Is it possible?
>>
>>
>>
>> Any help will be apreciated!
>>
>>
>>
>> Thanks all!!
>>
>> Vitor
>>
>>
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AutoCompleteTextField which uses an Object, not a String

2011-06-14 Thread James Carman
On Tue, Jun 14, 2011 at 11:25 AM, Clint Checketts  wrote:
> Is there a good reason (besides backwards compatiblity) that the
> objectautocomplete hasn't replaced the broken string based one in
> wicket-extensions?
>
> It seems like AutoComplete should behave as similarly to DropDownChoice as
> possible. As it currently is, IChoiceRenderer feels broken with it.
>

I would think it should have at least made its way into the "core" or
"extension" by now.  There have been enough requests for it.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: need help using tag.

2011-06-09 Thread James Carman
You might want to check out Wicketopia.  It has logic for handling
this kind of stuff and it might even do some of it automatically for
you.

http://wicketopia.sourceforge.net/

Download it from SVN, build it, and run the example application.
There is an example in there that hides/shows the "SSN" field based
upon whether or not the logged in user is an "admin."

On Thu, Jun 9, 2011 at 4:10 AM, Madan Mohan  wrote:
> Hi,
>        I am using to hide some rows in a table.
>
> Take for ex.,
>          Phone: 
> 
>         
>                     Fax: 
>         
>
> Initially faxNumber is *not visible*. So the faxNumber row is not rendered.
> Later based on some user action, i want to make faxNumber to *visible*.
>
> How to do this?
>
>
> --
>
> regards,
> *Madan*
> *www.educator.eu*
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: adding items dynamically to ListView

2011-06-07 Thread James Carman
How do you set up the model?  Can we see some code?

Sent from tablet device.  Please excuse typos and brevity.
On Jun 7, 2011 6:13 PM, "wmike1...@gmail.com"  wrote:
> Wicket doesn't allow me to update a ListView object directly through ajax,
it
> suggests putting it in in a container. So I made a WebMarkupContainer to
> wrap the ListView. I have now:
>
>
> public void onClick(AjaxRequestTarget target)
> {
> List list = new ArrayList(bean.getIncList());
> Incident inc = new Incident();
> inc.setAction("action");
> inc.setDescription("whatever description");
> list.add(inc);
> bean.setIncList(list);
> listView.modelChanged();
> container.modelChanged();
> container.setOutputMarkupId(true);
> listView.setOutputMarkupId(true);
> container.add(listView);
> target.addComponent(container);
> }
>
>
> I've confirmed that the model is being updated. The component is still not
> being redrawn.
>
> --
> View this message in context:
http://apache-wicket.1842946.n4.nabble.com/adding-items-dynamically-to-ListView-tp3580840p3580990.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: setReuseItems(true) + transactions = ERROR

2011-06-04 Thread James Carman
Can you try to replicate what you're doing in a more simple fashion?
Take your wicket framework code out of the mix.  Just try a
wicket/spring/hibernate example.  You can use the Wicketopia example
as a template if you want.

On Sat, Jun 4, 2011 at 6:01 AM, Gonzalo Aguilar Delgado
 wrote:
> I removed transactional pointcuts to see if this removes the issue.
>
> But the problem got worse. It seems that something is really wrong
> configured in my project.
>
> DEBUG - DefaultListableBeanFactory - Returning cached instance of
> singleton bean 'leadDAOBean'
> DEBUG - SessionFactoryUtils        - Opening Hibernate Session
> DEBUG - SessionImpl                - opened session at timestamp:
> 13071814596
> DEBUG - SessionFactoryUtils        - Closing Hibernate Session
> ERROR - RequestCycle               - Can't instantiate page using
> constructor public
> org.apache.wicket.examples.wscaffold.basicform.BasicFormPage()
> org.apache.wicket.WicketRuntimeException: Can't instantiate page using
> constructor public
> org.apache.wicket.examples.wscaffold.basicform.BasicFormPage()
>
> Watch this:
>  SessionFactoryUtils        - Opening Hibernate Session
>
> It seems that is not the OSIV filter. It's hibernate who opens the
> session. Why?
>
> It's strange because OSIV is configured:
> DEBUG - OpenSessionInViewFilter    - Initializing filter
> 'openSessionInViewFilter'
> DEBUG - OpenSessionInViewFilter    - Filter 'openSessionInViewFilter'
> configured successfully
>
> And the problem got worse without transactions:
>
> WicketMessage: Can't instantiate page using constructor public
> org.apache.wicket.examples.wscaffold.basicform.BasicFormPage()
>
> Root cause:
>
> org.hibernate.HibernateException: No Hibernate Session bound to thread,
> and configuration does not allow creation of non-transactional one here
>
> Not even the first page is instantiated...
>
> Will search more...
>
>
>
>
>
> El sáb, 04-06-2011 a las 11:28 +0200, Gonzalo Aguilar Delgado escribió:
>> >Hi,
>> >are you sure your model is a LDM?
>>
>> Yes. Sure. Encapsulated by an CompoundPropertyModel.
>> ---
>> new CompoundPropertyModel(scaffoldableModel)
>> ---
>> /*
>>                * Need this because wicket serializes everything and need to 
>> reload
>> it when
>>                * it's needed. This way wicket and hibernate plays well
>>                */
>>               IModel scaffoldableModel = new
>> LoadableHibernateModelImpl(getFirst())
>>               {
>>                       /**
>>                        *
>>                        */
>>                       private static final long serialVersionUID = 1L;
>>                       @SpringBean(name = "leadDAOBean")
>>                       private LeadDAO leadDAO;
>>                       private UuidUserType uuid;
>>
>>                       @Override
>>                       protected Lead load() {
>>                               Lead lead = null;
>>                               if(uuid!=null)
>>                               {
>>                                       lead = leadDAO.find(uuid);
>>
>>                               }
>>                               return lead;
>>                       }
>>
>>                       @Override
>>                       protected void setNonTransientObject() {
>>                               Lead lead =  this.getObject();
>>                               if(lead!=null)
>>                                       uuid = lead.getUuid();
>>                       }
>>
>>
>>               };
>>
>> 
>> And...
>> -
>> public abstract class LoadableHibernateModelImpl extends
>> LoadableDetachableModel
>>       implements LoadableHibernateModel, IModel
>> -
>>
>> detach and load got called. So it's working. The problem seems to be
>> transactions.
>>
>> I used to reload the model in the onBeforeRender functions. This made
>> wicked open a transaction that continued until the save. But now I made
>> things different (more efficient). The problem now is how to get a
>> transaction run during the model update and save.
>>
>>
>>
>> >>IIRC you have a ListView involved. What's the type of
>> >>this.getDefaultModel() ?
>>
>> I checked this to make sure is the correct model. What I do is to set a
>> wrapper around. The component I use extends from panel and inside there
>> is a form and some other components that must use the model of the
>> panel. So I wrap it around with CompoundPropertyModel.
>>
>> ---
>>       public ScaffoldingForm(String id, IModel scaffoldableModel) {
>>               //super(id, scaffoldableModel);
>>               super(id, new CompoundPropertyModel(scaffoldableModel));
>> ---
>>
>> The returning model is the CompoundPropertyModel. So seems to be ok.
>>
>>
>> Thank you in advance Sven.
>> I will try to make everything run in a unique transaction. I found this:
>> http://apache-wicket.1842946.n4.nabble.com/OpenSessionInView-OSIV-LoadableDetachableModel-and-Transactions-td1858513.ht

Re: setReuseItems(true) + transactions = ERROR

2011-06-03 Thread James Carman
Try using the open session in view filter
On Jun 3, 2011 1:55 PM, "Gonzalo Aguilar Delgado" <
gagui...@aguilardelgado.com> wrote:
> Hi Again,
>
> I checked why I'm receiving this nasty error. It seems that fails in
> this piece of code of the submit form:
>
> @Override
> protected void onSubmit() {
> log.debug("Saving content");
> IModel model = this.getDefaultModel();
> Lead object = (Lead)model.getObject();
> if(leadDAO!=null && object!=null)
> {
> -->Is not attached if(leadDAO.isAttached(object))
> leadDAO.save(object);
> }
> super.onSubmit();
> }
>
> That's strange because behind there is a LoadableDetachableModel that
> loads this object. If it's loaded in the submit it MUST be same
> transaction that loaded it. Maybe it opened another one?
>
> Anyway it must be attached because nothing happened in the middle. But
> is not.
>
> Why? Is this normal?
>
> I suppose that normal execution is:
>
> * Submit is performed.
> * load() method of the model is executed because transient object is
> lost on this new http session.
> * object loaded is sent to the CompoundPropertyModel that encloses it.
> * The object is updated by the CompoundPropertyModel model.
> * onSubmit() is executed
> * getObject() does not executes load() function of the
> LoadableDetachableModel because it already was loaded.
>
> Here comes the question... So then, Why it's not attached? Who oppened a
> new transaction? Why?
>
> LOGS
> -
> When onSubmit logs shows as follows:
> DEBUG - Collections - Collection found:
>
[com.level2.enterprise.hibernate.generated.Lead.leadIdentifiers#com.level2.enterprise.crm.hibernate.datatypes.UuidUserType@642b6fc7],
was:
[com.level2.enterprise.hibernate.generated.Lead.leadIdentifiers#com.level2.enterprise.crm.hibernate.datatypes.UuidUserType@642b6fc7]
(uninitialized)
> DEBUG - Collections - Collection found:
>
[com.level2.enterprise.hibernate.generated.Lead.leadBasicDetails#com.level2.enterprise.crm.hibernate.datatypes.UuidUserType@642b6fc7],
was:
[com.level2.enterprise.hibernate.generated.Lead.leadBasicDetails#com.level2.enterprise.crm.hibernate.datatypes.UuidUserType@642b6fc7]
(uninitialized)
> DEBUG - tractFlushingEventListener - Flushed: 0 insertions, 0 updates, 0
> deletions to 1 objects
> DEBUG - tractFlushingEventListener - Flushed: 0 (re)creations, 0
> updates, 0 removals to 2 collections
> DEBUG - Printer - listing entities:
> DEBUG - Printer -
> com.level2.enterprise.hibernate.generated.Lead{dateLead=2009-04-03
> 00:00:00, leadBasicDetails=, email=t...@test.com,
> dateCreated=2009-11-05 00:00:00, leadIdentifiers=,
> idLot=132,
> uuid=com.level2.enterprise.crm.hibernate.datatypes.UuidUserType@642b6fc7,
dateUpdated=2011-04-27 20:52:15}
> DEBUG - JDBCTransaction - re-enabling autocommit
> DEBUG - JDBCTransaction - committed JDBC Connection
> DEBUG - ConnectionManager - transaction completed on session
> with on_close connection release mode; be sure to close the session to
> release JDBC resources!
> DEBUG - ibernateTransactionManager - Closing Hibernate Session
> [org.hibernate.impl.SessionImpl@5ce0f945] after transaction
> DEBUG - SessionFactoryUtils - Closing Hibernate Session
> DEBUG - ConnectionManager - releasing JDBC connection [ (open
> PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
> DEBUG - ConnectionManager - transaction completed on session
> with on_close connection release mode; be sure to close the session to
> release JDBC resources!
> --
> There's one transaction completed. I suppose the one that loaded it.
>
> The isAttached created a new transaction:
> --
> DEBUG - ScaffoldingForm - Saving content
> DEBUG - ibernateTransactionManager - Creating new transaction with name
> [com.googlecode.genericdao.dao.hibernate.GenericDAO.isAttached]:
> PROPAGATION_REQUIRED,ISOLATION_DEFAULT
> DEBUG - SessionImpl - opened session at timestamp:
> 13071235926
> DEBUG - ibernateTransactionManager - Opened new Session
> [org.hibernate.impl.SessionImpl@145edcf5] for Hibernate transaction
> DEBUG - ibernateTransactionManager - Preparing JDBC Connection of
> Hibernate Session [org.hibernate.impl.SessionImpl@145edcf5]
> DEBUG - JDBCTransaction - begin
> DEBUG - ConnectionManager - opening JDBC connection
> DEBUG - JDBCTransaction - current autocommit status: true
> DEBUG - JDBCTransaction - disabling autocommit
> DEBUG - ibernateTransactionManager - Exposing Hibernate transaction as
> JDBC transaction [jdbc:postgresql://127.0.0.1:5432/op_development_es,
> UserName=user_development, PostgreSQL Native Driver]
> DEBUG - ibernateTransactionManager - Initiating transaction commit
> DEBUG - ibernateTransactionManager - Committing Hibernate transaction on
> Session [org.hibernate.impl.SessionImpl@145edcf5]
> DEBUG - JDBCTransaction - commit
> DEBUG - JDBCTransaction - re-enabling autocommit
> DEBUG - JDBCTransaction - committed JDBC Connection
> DEBUG - ConnectionMa

Re: adding link to datatable

2011-06-02 Thread James Carman
Class hierarchy.

On Thu, Jun 2, 2011 at 6:56 AM, James Carman  wrote:
> What is DetailsPage's hierarchy?
>
> On Thu, Jun 2, 2011 at 6:02 AM, henry  wrote:
>> hi guys am having some issues my code any help will do,am trying to add a
>> link to my datatable
>> firstly i created the DetailPage class
>>
>> //DetailPage class code
>> public DetailsPage(String id , IModel entryModel) {
>>        super(id,entryModel);
>>
>>        Link link = new Link("link"){
>>            @Override
>>            public void onClick() {
>>                showDetails details = new showDetails(getEntry());
>>                setResponsePage(details);
>>            }
>>        };
>>
>>        add(new Label("id",getEntry().getId()+""));
>>        add(link);
>>    }
>>
>>    private PhoneTransferRequest getEntry(){
>>        return (PhoneTransferRequest)getDefaultModelObject();
>>    }
>>
>> and i try adding the DetailPage panel to my datatable
>>
>> IColumn[]columns = {new AbstractColumn(new
>> Model("id")) {
>>        public void populateItem(Item cellItem, String componentId, IModel
>> rowModel)
>>        {
>>            cellItem.add(new DetailsPage(componentId, rowModel));
>>        }
>>        },
>>        new
>> ExportablePropertyColumn(Model.of("Initiator"),
>> "customerId" ),
>>        new
>> ExportablePropertyColumn(Model.of("StartTime"),
>> "startTime" ),
>>        new
>> ExportablePropertyColumn(Model.of("switchResponse"),
>> "switchResponse"),
>>        new
>> ExportablePropertyColumn(Model.of("SourceAccount"),
>> "sourceAccount"),
>>        new
>> ExportablePropertyColumn(Model.of("DestAccount"),
>> "destAccount"),
>>        new
>> ExportablePropertyColumn(Model.of("Amount"),
>> "amount"),
>>        new
>> ExportablePropertyColumn(Model.of("Notication"),
>> "notificationSent"),};
>>
>>        //creating dataTable object
>>        DefaultDataTable dataTable1 = new
>> DefaultDataTable("datatable",columns,new PhoneTransferProvider(),30);
>>
>> any time i run this code i get
>>
>> an INTERNAL ERROR MESSAGE.
>>
>> please i need to get this sorted out today.
>>
>> Regards
>>
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/adding-link-to-datatable-tp3567971p3567971.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: adding link to datatable

2011-06-02 Thread James Carman
What is DetailsPage's hierarchy?

On Thu, Jun 2, 2011 at 6:02 AM, henry  wrote:
> hi guys am having some issues my code any help will do,am trying to add a
> link to my datatable
> firstly i created the DetailPage class
>
> //DetailPage class code
> public DetailsPage(String id , IModel entryModel) {
>        super(id,entryModel);
>
>        Link link = new Link("link"){
>            @Override
>            public void onClick() {
>                showDetails details = new showDetails(getEntry());
>                setResponsePage(details);
>            }
>        };
>
>        add(new Label("id",getEntry().getId()+""));
>        add(link);
>    }
>
>    private PhoneTransferRequest getEntry(){
>        return (PhoneTransferRequest)getDefaultModelObject();
>    }
>
> and i try adding the DetailPage panel to my datatable
>
> IColumn[]columns = {new AbstractColumn(new
> Model("id")) {
>        public void populateItem(Item cellItem, String componentId, IModel
> rowModel)
>        {
>            cellItem.add(new DetailsPage(componentId, rowModel));
>        }
>        },
>        new
> ExportablePropertyColumn(Model.of("Initiator"),
> "customerId" ),
>        new
> ExportablePropertyColumn(Model.of("StartTime"),
> "startTime" ),
>        new
> ExportablePropertyColumn(Model.of("switchResponse"),
> "switchResponse"),
>        new
> ExportablePropertyColumn(Model.of("SourceAccount"),
> "sourceAccount"),
>        new
> ExportablePropertyColumn(Model.of("DestAccount"),
> "destAccount"),
>        new
> ExportablePropertyColumn(Model.of("Amount"),
> "amount"),
>        new
> ExportablePropertyColumn(Model.of("Notication"),
> "notificationSent"),};
>
>        //creating dataTable object
>        DefaultDataTable dataTable1 = new
> DefaultDataTable("datatable",columns,new PhoneTransferProvider(),30);
>
> any time i run this code i get
>
> an INTERNAL ERROR MESSAGE.
>
> please i need to get this sorted out today.
>
> Regards
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/adding-link-to-datatable-tp3567971p3567971.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: While dojo project is still alpha status I want to say something about scaffolding in wicket

2011-06-01 Thread James Carman
On Wed, Jun 1, 2011 at 3:41 PM, Gonzalo Aguilar Delgado
 wrote:
>
> Your project looks good. Clean code, modular, well organized. I got a
> little bit confused about the PropertyComponentFactory. I cannot find
> where you define the right provider... Was looking into configuration.
>
> In the code it takes to an interface. But not implementation, I looked
> around and seem to find one.
>

PropertyComponentFactory isn't something that you'd be implementing as
an "extender" of the framework most likely.  You'll be adding your own
property editors.  For an example of how to do that, take a look at
the Joda stuff probably.

> The idea is great, everything is pluggable. Even property editors as I
> can see in the example.
>
> The use of your other library, metastopheles, is good enough. The
> problem with it will be automatic detection of links (foreign keys) to
> other clases, specific database types and so on. Something that is
> resolved just sticking to hibernate metadata (I only want one
> persistence engine for now).
>

Right now, Wicketopia doesn't support automatic editing related
entities.  It's on the to-do list for sure.  Basically, the next big
thing for Wicketopia would be a "search" abstraction.  Because, to
find an entity to associate with the entity you're editing, most
likely you'll be doing some type of search (unless it's just a
drop-down, but that will not be the case when there are many objects,
obviously).

>
> Will you discuss about integrating it with dojo libraries?
>

Sure will!  Alexandros Karypidis is working with me on Wicketopia
right now.  He showed interest by wicket-1.5-izing Wicketopia, so I
just gave him access to SVN and let him have at it.  If you want to
add a dojo module, as long as its scope makes sense to be part of the
framework itself, I see no reason why you can't be made part of the
team!  I don't plan on maintaining this thing all by myself.  The more
the merrier, I say!  We just have to make sure we keep our approach as
user-focused as possible, because Wicketopia is intended to be used by
other folks, not just us. :)

What exactly is it that you want to do with dojo that you can't do
with the built-in ajax libraries?  Are you thinking of using a
specific dojo component of some sort?

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: While dojo project is still alpha status I want to say something about scaffolding in wicket

2011-06-01 Thread James Carman
On Wed, Jun 1, 2011 at 2:59 PM, Gonzalo Aguilar Delgado
 wrote:
>
> Does it took long to program it? Do you think you will maintain it for
> long time?
>

I have been working on the idea for a couple of years.

> I cannot run the application because compile problems (need maven3).
>

DOH!  I didn't realize that I made it *require* maven3.  You want me
to send you a war file for the example application?

> Does it support ajax?
>

The example application, which uses the Scaffold component, is all
ajax-based.  There are ajax-based components in there that you can use
for submitting your forms, deleting objects, etc.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: While dojo project is still alpha status I want to say something about scaffolding in wicket

2011-05-31 Thread James Carman
Download the example application and run it and you can see it in action
On May 31, 2011 11:36 AM, "Gonzalo Aguilar Delgado" <
gagui...@aguilardelgado.com> wrote:
> Hi James,
>
> I was looking for a lng time for scaffolding and found nothing. I
> need to take a review to wicketopia to see what it offers.
>
> Thank you a lot for the update.
>
>
>
> "No subestimes el poder de la gente estúpida en grupos grandes"
>
> El mar, 31-05-2011 a las 10:21 -0400, James Carman escribió:
>> Wicketopia has a scaffold component already. Perhaps we can use some
>> of your ideas to enhance it?
>>
>> On Tue, May 31, 2011 at 9:41 AM, Gonzalo Aguilar Delgado
>>  wrote:
>> > Hi again,
>> >
>> > too many things are going on. But I don't want to lose the oportunity
to
>> > let people join or upgrade what we are building.
>> >
>> > I've just created another project that uses wicket-dojo so I can test
>> > features in a real project. I have to upload the code to gitorious.org
>> > https://gitorious.org/wscaffold
>> >
>> > But I created a small intro about what I'm doing:
>> > http://level2crm.com/content/building-scaffoldling-wicket
>> >
>> > Hope someone else can help me or propose advances.
>> >
>> > I want also migrate all to 1.5 but it takes time... :D
>> >
>> >
>> >
>> >
>> >
>> > "No subestimes el poder de la gente estúpida en grupos grandes"
>> >
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: While dojo project is still alpha status I want to say something about scaffolding in wicket

2011-05-31 Thread James Carman
Wicketopia has a scaffold component already.  Perhaps we can use some
of your ideas to enhance it?

On Tue, May 31, 2011 at 9:41 AM, Gonzalo Aguilar Delgado
 wrote:
> Hi again,
>
> too many things are going on. But I don't want to lose the oportunity to
> let people join or upgrade what we are building.
>
> I've just created another project that uses wicket-dojo so I can test
> features in a real project. I have to upload the code to gitorious.org
> https://gitorious.org/wscaffold
>
> But I created a small intro about what I'm doing:
> http://level2crm.com/content/building-scaffoldling-wicket
>
> Hope someone else can help me or propose advances.
>
> I want also migrate all to 1.5 but it takes time... :D
>
>
>
>
>
> "No subestimes el poder de la gente estúpida en grupos grandes"
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket with Spring AOP

2011-05-31 Thread James Carman
What pointcuts are you using?  You're trying to inject logic into your
pages/components?

2011/5/31 İzlem Gözükeleş :
> Hi,
> I wanted to use Spring AOP (3.0.5) with wicket (1.4.16). However, I got
> java.io.NotSerializableException:
> org.springframework.aop.aspectj.annotation.InstantiationModelAwarePointcutAdvisorImpl
>
> My spring file contains the lines,
>
>     
>
>    
>        
>    
>
>    
>
> My flowAppLogger works, it wrote to file. Yet, I got exceptions because
> of Serialization.
> I know and use @SpringBean for other beans. But, how  can I use @SpringBean
> annotation for aspect oriented programming in wicket?
> Or use AOP in another way?
>
> thanks
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket / Hibernate / Databinder (dead?)

2011-05-28 Thread James Carman
Wicketopia doesn't require spring.
On May 28, 2011 3:13 PM, "jbrookover"  wrote:
>
> James Carman wrote:
>>
>> You could check out Wicketopia. It has support for Hibernate. You
>> can run the example application to see how it works.
>>
>
> I've been doing some searching and found many of your replies to this
> statement, but I was thinking without Spring involvement. I don't have any
> solid reasons for not using Spring other than I have no idea what it does
> and haven't needed it :) Seems very heavy whereas Databinder was extremely
> light. Granted, perhaps Spring is in my future.
>
>
> Daniel Toffetti wrote:
>>
>> AFAIK Nathan was not maintaining it anymore but Rodolfo Hansen was
working
>> on it a while ago to get it up to new versions of Hibernate and Wicket,
>> please check here: https://github.com/kryptt, last updates are from April
>> 5.
>>
>
> Those updates were just to the project structure, I believe. I checked out
> the project and made my own changes to the snapshot to get it working.
> There are many more changes and, being a newb to Git, I'm still working on
> getting those back into the mainstream. This is what prompted this thread
-
> I don't want to make these fixes if people are using some other light
> library.
>
> Still seems like a common issue. People out there must be using Wicket +
> Hibernate without Spring, right?
>
> Jake
>
> --
> View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Wicket-Hibernate-Databinder-dead-tp3557635p3557917.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: Wicket / Hibernate / Databinder (dead?)

2011-05-28 Thread James Carman
You could check out Wicketopia.  It has support for Hibernate.  You
can run the example application to see how it works.

On Sat, May 28, 2011 at 11:48 AM, jbrookover  wrote:
> Hey all,
>
> First off, apologies for a potential dual post - I used nabble and posted to
> a super-level to this list.
>
> We've been using Wicket 1.4 + Hibernate 3.3 + Databinder 1.3.0 for quite
> some time now.  I wanted to update to a more recent version of Hibernate,
> but Databinder was incompatible and seems pretty dead.
>
> My question is what do people use for their bridge between Wicket and
> Hibernate?  Do you all write your own LoadableDetachableModels to load from
> the database?  Is there an alternative to Databinder that I don't know
> about?  A wicketstuff wiki page mentioned 'HibernateModel' but I haven't
> seen any actual code.
>
> I love Databinder's HibernateObjectModel, SortableHibernateProvider, etc.
> If there's nothing else, I'll keep on updating them, but I wanted to make
> sure there wasn't some more active alternative.
>
> Thanks!
>
> Jake
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Hibernate-Databinder-dead-tp3557635p3557635.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to have custom components interact with CompoundPropertyModel?

2011-05-28 Thread James Carman
Please list your constructors of your custom component.  I believe the
auto-resolving of models from a parent CPM is done during the
constructor (the one with just the component id).

On Sat, May 28, 2011 at 8:27 AM, andrea del bene
 wrote:
> Hi,
> Have you called setType(Calendar.class) in your custom form component? Does
> its model remain 'null'?
>>
>> Hi all,
>>
>> I am pretty new to Wicket (using 1.4.10) and have some hard time to figure
>> out how the interaction between components and models exactly works. So I
>> was hopeing that someone here could enlighten me or tell me where I should
>> look (WARNING: Rather lengthy post).
>>
>> My particular problem is that I have a custom component that extends
>> FormComponent to display a date in a certain way. This component
>> is part of a Panel in which I use a CompoundPropertyModel to render an
>> object containing a calendar among other things (the object is fully
>> populated and load from the database by using a LoadableDetachableModel
>> chained to the CompoundPropertyModel).
>>
>> For the other object fields I simply use TextFields which get populated
>> properly and when I use a TextField instead of my custom component
>> the field contains the result of Calendar.toString so I guess the Panel it's
>> children and the corresponding are set up correctly.
>>
>> But whenever I use my custom component I don't get a reference to that
>> Calendar instance. I did try to get some insights by looking into the code
>> of the TextField class and overriding various methods from super classes but
>> I just did not get it.
>>
>> To my understanding something like setModel or setModelObject on my
>> component should be called so I can override this method and do my custom
>> stuff in it. But somehow this does not happen. During debugging I saw that
>> the Panel is set as my components parent and everything seeme to be stuck
>> together correctly. But somehow I can't get the Calendar instance from my
>> object to get set as my components model value.
>>
>> So I figure that I am missing some vital point on this topic and would be
>> very grateful for any advice, like an how to for extending Components or
>> something similar.
>>
>> Thanks for reading this far,
>> Chris
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: first app wicket jetty problem

2011-05-27 Thread James Carman
Set the working directory to the root of your project
On May 27, 2011 4:41 PM, "Oleg Ruchovets"  wrote:
> Hi ,
> Using this page http://wicket.apache.org/start/quickstart.html
> made all instruction and try to run my first wicket project
>
> using inteiilj idea. running jetty got such exception:
>
> INFO - log - Logging to
> org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
> org.mortbay.log.Slf4jLog
 STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP
> INFO - log - jetty-6.1.25
> WARN - log - Web application not found
> src/main/webapp
> WARN - log - Failed startup of context
> org.mortbay.jetty.webapp.WebAppContext@4de13d52{/,src/main/webapp}
> java.io.FileNotFoundException: src/main/webapp
> at
>
org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:987)
> at
> org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:822)
> at
>
org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConfiguration.java:62)
> at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:479)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
> at org.mortbay.jetty.Server.doStart(Server.java:224)
> at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at com.mycompany.Start.main(Start.java:35)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)
> INFO - log - Started SocketConnector@0.0.0.0:8080
>
>
> please help


Re: tree do not stay open tree collapsed after setResponsePage

2011-05-25 Thread James Carman
How are you getting back to the original page?

On Wed, May 25, 2011 at 11:09 AM, hubert_hupe  wrote:
> hi folks,
>
> i get wicket with the wicket...
> what do i have is a simple tree in page X. after click a node i do a redirect 
> to pageY. so far so good. but the tree
> collapsed after the redirect. it seems the tree is rebuild after the click. 
> its a kind of postback behavior.
> my question is: what can i do to prevent collapsing the tree? if this is not 
> possible, how can i open the old node? or how can i prevent the 
> "reloading/postbacking"?
>
> best regards
> hubert
>
> add(new LinkTree("tree", createTreeModel()) {
> @Override
> protected void onNodeLinkClicked(Object node, BaseTree tree, 
> AjaxRequestTarget target) {
>   System.out.println("test");
>   System.out.println("node: " + node.toString());
>   Page1 p1 = new Page1(node.toString());
>
>   setResponsePage(p1); <--
>
>  }
> });
>
> protected TreeModel createTreeModel() {
>        DefaultMutableTreeNode root = new DefaultMutableTreeNode(new 
> ModelBean("ROOT"));
> ...
> }
>
> i created a simple layout with div in the markup to ensure that the tree is 
> on the left site and the navigated page on the right...
>
> 
> ...     wicket:id="tree"...
> 
> 
>        
> 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: to integrate wicket with itext or any other framework

2011-05-24 Thread James Carman
On Tue, May 24, 2011 at 2:39 PM, hariharansrc  wrote:
>So can tell me the proper reason for the reason behind using spring for 
>integrating wicket
> and hibernate
>

It's pretty simple.  Using Hibernate is more easily done with
something like Spring.  It doesn't matter if you're using it within
the context of Wicket or JSP or Swing or whatever.  There are certain
things that need to be done that are just handled for you
automatically by Spring.  It has nothing to do with Wicket.

> The  i am having another clarifications for using any other framework  i
> need spring like frameworks for DI
> why i am asking is i need japer reports to integrate with wicket
>
> How to find two frameworks need DI, because for JDBC i done that without any
> DI
>

JDBC is easier done with something like Spring, too, because it will
manage your connections for you and make sure they're properly closed.
:)

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: to integrate wicket with itext or any other framework

2011-05-24 Thread James Carman
How about this?  Go write your application just using Hibernate.
Then, after months of trying to figure out how to write the code to
properly manage everything, try it with Spring (or some other DI
container).  Then you'll appreciate it more. :)

On Tue, May 24, 2011 at 1:27 PM, hariharansrc  wrote:
> I got the idea but can you explain it  a bit more about the reason we have to
> go for spring or guice.
> I actually googled and i get that we need dependency injection between
> frameworks is it the reason for we using spring or guice. A brief
> explanation  i need
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/to-integrate-wicket-with-itext-or-any-other-framework-tp3543523p3547719.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: PropertyModel not binding DropDownChoice

2011-05-16 Thread James Carman
Lucas,

Check out the EnumDropDownChoice from Wicketopia...

http://wicketopia.svn.sourceforge.net/viewvc/wicketopia/trunk/wicketopia/src/main/java/org/wicketopia/component/choice/EnumDropDownChoice.java?revision=140&view=markup
http://wicketopia.svn.sourceforge.net/viewvc/wicketopia/trunk/wicketopia/src/main/java/org/wicketopia/renderer/EnumChoiceRenderer.java?revision=140&view=markup



On Mon, May 16, 2011 at 6:33 PM, Clint Checketts  wrote:
> If the ChoiceRenderer ID isn't unique or it has trouble matching it with the
> selected value, you could get this problem.
>
> On Mon, May 16, 2011 at 2:21 PM, lucast  wrote:
>
>> Dear Forum,
>> I have yet another question about  PropertyModel not binding to an object
>> field but this time using DropDownChoice.
>>
>> In my form I have
>> DropDownChoice eventOccurHowOftenDropDownChoice = new
>> DropDownChoice("eventOccurHowOften", new
>> PropertyModel(event, "occurrHowOften"),
>> HowOftenType.getOccurHowOftenValues(), new ChoiceRendererHowOftenType() );
>>
>> "occurrHowOften" is a field of object event,
>> HowOftenType.getOccurHowOftenValues() return a list of Enum and
>> ChoiceRendererHowOftenType simply implements getDisplayValue and getIdValue
>> for IChoiceRenderer.
>>
>> When processing the form, after having filled the
>> eventOccurHowOftenDropDownChoice, event.getOccurrHowOften returns null.
>>
>> As explained on
>>
>> http://apache-wicket.1842946.n4.nabble.com/PropertyModel-not-binding-TextField-td3527074.html
>> my previous post , when analysing the content of the above
>> eventOccurHowOftenDropDownChoice while debugging on Eclipse, the
>> eventOccurHowOftenDropDownChoice.data contains an instance of event object
>> and the occurHowOften enum field is populated.
>>
>> However, the original event.occurHowOften field is still null.
>> Why is PropertyModel not binding the DropDownChoice to the variable? what
>> am
>> I missing here?
>>
>>
>> The interesting thing is that another field DropDownChoice
>> eventTypeDropDown = new DropDownChoice("eventTypeChoice",new
>> PropertyModel(event, "eventType"),
>> Arrays.asList(EventType.values()));
>> which is binding an enum field to event object is working absolutely fine.
>> The only difference between the two is that on this one I am not passing an
>> IChoiceRenderer object.
>>
>> Even when I don't use the IChoiceRenderer instance on the former, the
>> PropertyModel is still not binding the DropDownChoice value to
>> event.occurHowOften variable.
>>
>>
>> These are very simple form fields and I still don't get what I'm doing
>> wrong. Can you spot where I am making some sort of mistake?
>>
>> Thanks in advance,
>> Lucas
>>
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/PropertyModel-not-binding-DropDownChoice-tp3527154p3527154.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: New Website up using wicket

2011-05-16 Thread James Carman
On Mon, May 16, 2011 at 1:03 PM, Henrique Boregio  wrote:
> As for the other question, the backend runs on hibernate. Not 100%
> hibernate, since I'm actually not mapping all of the relations using
> hibernate.
>

Why not?  Was there a performance issue?

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Can you patch ModalWindow in next 1.4 release?

2011-05-11 Thread James Carman
Sorry, was reading that on my phone.

On Wed, May 11, 2011 at 5:26 PM, Martin Grigorov  wrote:
> No, it doesn't.
> He already said: The change is small and backwards-compatible.
> And the patch looks OK.
>
> On Wed, May 11, 2011 at 11:24 PM, James Carman
>  wrote:
>> Would it break other people's existing code?
>> On May 11, 2011 5:13 PM, "Russell Morrisey" 
>> wrote:
>>> I created a patch in order to replace ModalWindow's window-closing
>> behavior with a custom IBehavior implementation. The .patch file and a
>> quickstart project are included in the JIRA issue:
>>>
>>> https://issues.apache.org/jira/browse/WICKET-3630
>>>
>>> Could someone who is a committer to wicket-extensions please review this
>> patch, and push it into the next minor wicket release?
>>>
>>> The code for the next major release of our project relies on this patch.
>> Currently we are maintaining our own local copy of ModalWindow.java; I would
>> like to eliminate this maintenance burden from our project, and let others
>> benefit from the change.
>>>
>>> The change is small and backwards-compatible, and I'm confident that it's
>> solid. If you see any issues with it, please let me know.
>>>
>>> Thanks, guys,
>>>
>>> RUSSELL E. MORRISEY
>>> Programmer Analyst Professional
>>> Mission Solutions Engineering, LLC
>>>
>>> | russell.morri...@missionse.com | www.missionse.com
>>> 304 West Route 38, Moorestown, NJ 08057-3212
>>>
>>>
>>> -Original Message-
>>> From: users-digest-h...@wicket.apache.org [mailto:
>> users-digest-h...@wicket.apache.org]
>>> Sent: Wednesday, May 11, 2011 10:40 AM
>>> To: users@wicket.apache.org
>>> Subject: users Digest 11 May 2011 14:40:22 - Issue 3224
>>>
>>>
>>> users Digest 11 May 2011 14:40:22 - Issue 3224
>>>
>>> Topics (messages 63002 through 63031):
>>>
>>> Table not refreshed - ajax debug shows right markup returned
>>> 63002 by: D D
>>> 63003 by: Martin Grigorov
>>> 63004 by: D D
>>> 63005 by: Martin Grigorov
>>> 63009 by: D D
>>> 63010 by: Martin Grigorov
>>>
>>> Re: Error with FileUpload: "ServletRequest does not contain multipart
>> content"
>>> 63006 by: eugenebalt
>>> 63007 by: Martin Grigorov
>>> 63008 by: eugenebalt
>>>
>>> Re: Nothing happens on AJAX call after session timeout
>>> 63011 by: Gabriel Landon
>>> 63014 by: vov
>>> 63015 by: Martin Grigorov
>>> 63018 by: vov
>>>
>>> disabled chek box form submit
>>> 63012 by: fachhoch
>>> 63013 by: Martin Makundi
>>> 63019 by: Andrea Del Bene
>>>
>>> Selenium Problem
>>> 63016 by: rawe
>>> 63017 by: Martin Grigorov
>>> 63020 by: rawe
>>>
>>> Questions Regarding Wicket URL Generation
>>> 63021 by: Carlo Camerino
>>> 63022 by: Andrea Del Bene
>>> 63023 by: Martin Grigorov
>>> 63024 by: Andrea Del Bene
>>> 63025 by: Clint Checketts
>>>
>>> [announce] Wicket 1.5-RC4.2 is released
>>> 63026 by: Martin Grigorov
>>>
>>> ModalWindow with Panel - HeaderContributor in Panel not called
>>> 63027 by: Marieke Vandamme
>>>
>>> FileUploadField Losing Value After Form Submit
>>> 63028 by: eugenebalt
>>> 63029 by: Andrea Del Bene
>>> 63030 by: eugenebalt
>>>
>>> FileUploadField.getClientFileName() doesn't give Absolute Path
>>> 63031 by: eugenebalt
>>>
>>> Administrivia:
>>>
>>> -
>>> To post to the list, e-mail: users@wicket.apache.org To unsubscribe,
>> e-mail: users-digest-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-digest-h...@wicket.apache.org
>>>
>>> --
>>>
>>>
>>> This is a PRIVATE message. If you are not the intended recipient, please
>> delete without copying and kindly advise us by e-mail of the mistake in
>> delivery.
>>> NOTE: Regardless of content, this e-mail shall not operate to bind MSE to
>> any order or other contract unless pursuant to explicit written agreement or
>> government initiative expressly permitting the use of e-mail for such
>> purpose.
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Can you patch ModalWindow in next 1.4 release?

2011-05-11 Thread James Carman
Would it break other people's existing code?
On May 11, 2011 5:13 PM, "Russell Morrisey" 
wrote:
> I created a patch in order to replace ModalWindow's window-closing
behavior with a custom IBehavior implementation. The .patch file and a
quickstart project are included in the JIRA issue:
>
> https://issues.apache.org/jira/browse/WICKET-3630
>
> Could someone who is a committer to wicket-extensions please review this
patch, and push it into the next minor wicket release?
>
> The code for the next major release of our project relies on this patch.
Currently we are maintaining our own local copy of ModalWindow.java; I would
like to eliminate this maintenance burden from our project, and let others
benefit from the change.
>
> The change is small and backwards-compatible, and I'm confident that it's
solid. If you see any issues with it, please let me know.
>
> Thanks, guys,
>
> RUSSELL E. MORRISEY
> Programmer Analyst Professional
> Mission Solutions Engineering, LLC
>
> | russell.morri...@missionse.com | www.missionse.com
> 304 West Route 38, Moorestown, NJ 08057-3212
>
>
> -Original Message-
> From: users-digest-h...@wicket.apache.org [mailto:
users-digest-h...@wicket.apache.org]
> Sent: Wednesday, May 11, 2011 10:40 AM
> To: users@wicket.apache.org
> Subject: users Digest 11 May 2011 14:40:22 - Issue 3224
>
>
> users Digest 11 May 2011 14:40:22 - Issue 3224
>
> Topics (messages 63002 through 63031):
>
> Table not refreshed - ajax debug shows right markup returned
> 63002 by: D D
> 63003 by: Martin Grigorov
> 63004 by: D D
> 63005 by: Martin Grigorov
> 63009 by: D D
> 63010 by: Martin Grigorov
>
> Re: Error with FileUpload: "ServletRequest does not contain multipart
content"
> 63006 by: eugenebalt
> 63007 by: Martin Grigorov
> 63008 by: eugenebalt
>
> Re: Nothing happens on AJAX call after session timeout
> 63011 by: Gabriel Landon
> 63014 by: vov
> 63015 by: Martin Grigorov
> 63018 by: vov
>
> disabled chek box form submit
> 63012 by: fachhoch
> 63013 by: Martin Makundi
> 63019 by: Andrea Del Bene
>
> Selenium Problem
> 63016 by: rawe
> 63017 by: Martin Grigorov
> 63020 by: rawe
>
> Questions Regarding Wicket URL Generation
> 63021 by: Carlo Camerino
> 63022 by: Andrea Del Bene
> 63023 by: Martin Grigorov
> 63024 by: Andrea Del Bene
> 63025 by: Clint Checketts
>
> [announce] Wicket 1.5-RC4.2 is released
> 63026 by: Martin Grigorov
>
> ModalWindow with Panel - HeaderContributor in Panel not called
> 63027 by: Marieke Vandamme
>
> FileUploadField Losing Value After Form Submit
> 63028 by: eugenebalt
> 63029 by: Andrea Del Bene
> 63030 by: eugenebalt
>
> FileUploadField.getClientFileName() doesn't give Absolute Path
> 63031 by: eugenebalt
>
> Administrivia:
>
> -
> To post to the list, e-mail: users@wicket.apache.org To unsubscribe,
e-mail: users-digest-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-digest-h...@wicket.apache.org
>
> --
>
>
> This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
> NOTE: Regardless of content, this e-mail shall not operate to bind MSE to
any order or other contract unless pursuant to explicit written agreement or
government initiative expressly permitting the use of e-mail for such
purpose.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>


Re: Problems with @SpringBean

2011-05-09 Thread James Carman
Don't make it transient
On May 9, 2011 8:48 AM, "Vitor Granzinoli Vellozo" <
vitor.vell...@cpmbraxis.com> wrote:
>
>
> Hi all,
>
>
>
> I'm new here, and I have problem with @SpringBean when I click in
> browser back Button.
>
> The Spring resource come null... when I load the Page first time,
> everything works, but when
>
> go back, the Spring component comes null.
>
>
>
> It happens when I call the Spring component in load() method of a
> LoadableDetachabelModel.
>
> It's strange for me, because it seems correct, it works firts time.
>
>
>
> Below the code:
>
>
>
> @SpringBean
>
> private transient ContactServiceFacade contactServiceFacade;
>
>
>
> class ContactListModel extends LoadableDetachableModel> {
>
> private static final long serialVersionUID = 2171287027239366394L;
>
>
>
> @Override
>
> public List load() {
>
> return contactServiceFacade.listContacts(); //Here firt time
> works, on back is null.
>
> }
>
> }
>
>
>
> Regards,
>
> Vitor
>
>
>
>
>


Re: How to add an unspecified number of components

2011-05-06 Thread James Carman
Use a repeater.  And, wasn't this question just asked recently?

On Wed, May 4, 2011 at 7:54 PM, wmike1...@gmail.com  wrote:
> Hi,
>
> I'm gathering information from a database that I want to display on my page.
> My query to this DB could result any number of rows. I'd like to build a
> panel to represent the information from a row and then just add a bunch of
> panels to my page. To add a panel or component though, I need an html
> element with a wicket:id attribute in the container's markup. So my question
> is: if I don't know how many panels I'm going to be adding (uncertain of the
> # of rows I'll get), how can I prepare the markup to have enough wicket:ids
> to accommodate them?
>
> Or am I going about this all wrong?
> Thanks, Mike
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/How-to-add-an-unspecified-number-of-components-tp3497096p3497096.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Separate log files (tomcat, hibernate, wicket, etc)

2011-05-06 Thread James Carman
Well, since you're asking about a specific logging provider (log4j),
then it's a log4j question.

On Fri, May 6, 2011 at 10:20 AM, Henrique Boregio  wrote:
> It asks how to redirect all of wicket logging to a separate log file
> other then the application's log file.
> So, this is a wicket question.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Separate log files (tomcat, hibernate, wicket, etc)

2011-05-06 Thread James Carman
This is a LOG4J question, not a wicket one.

On Fri, May 6, 2011 at 9:38 AM, Henrique Boregio  wrote:
> Hi, I've been searching for a simple way to do this but if I've only
> found over-complicated tutorials.
>
> I am trying to setup my lo4j properties file to do something like:
>
> everything wicket --> wicket.log
> everything hibernate --> hibernate.log
> everything my_web_app --> my_app.log
> everything tomcat --> tomcat.log
>
> Anyone already have something like this setup?
>
> Many thanks once again.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DataTable's view does not always update

2011-05-02 Thread James Carman
Try changing it to a servlet.  There's another thread going on here
just recently which gives an example.

On Sun, May 1, 2011 at 10:22 PM, D D  wrote:
> I have a filter in web.xml file - however I did not set it up. At the
> same time I've started to question the setup because I tried to deploy
> a "clean" test app (by clean I mean new ear file for the test app and
> no extra ear files and configuration - just a strip down example from
> wicket's website) and I'm getting 404 trying to bring the application
> up.
>
> So the original application with problem is having 404 on ajax calls
> but it will start up. Test app will not start up - shows 404 all the
> time.
>
> Is it a WAS setup issue?
>
> Thanks,
> Dave
>
>
> On Sun, May 1, 2011 at 8:57 PM, James Carman  
> wrote:
>> You are using a servlet instead of a filter, right?  I don't see the
>> entire conversation in my gmail, here, so I hope I didn't miss
>> something.
>>
>> On Sun, May 1, 2011 at 9:51 PM, D D  wrote:
>>> I tried the setting with true and false settings. It still doesn't work.
>>>
>>> Here is Ajax Debug
>>> INFO: Initiating Ajax GET request on
>>> ?wicket:interface=:0:dataForm:dataPanel:rxEntryTabs:panel:link::IBehaviorListener:0:-1&random=0.6781234819490185
>>> INFO: Invoking pre-call handler(s)...
>>> ERROR: Received Ajax response with code: 404
>>> INFO: Invoking post-call handler(s)...
>>> INFO: Invoking failure handler(s)...
>>> INFO: focus removed from link30
>>>
>>>
>>> I also traced through debug the response sent to HttpResponse object
>>> and it's what I'm expecting:
>>>
>>> “>> id="counter31" >
>>> ”
>>>
>>> Not only it's written but the response object is properly closed too.
>>> Not a single exception is thrown in Wicket's code.
>>>
>>> The problem has to be somewhere inside WAS processing, right?
>>>
>>> Any ideas where?
>>>
>>> Dave
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DataTable's view does not always update

2011-05-01 Thread James Carman
You are using a servlet instead of a filter, right?  I don't see the
entire conversation in my gmail, here, so I hope I didn't miss
something.

On Sun, May 1, 2011 at 9:51 PM, D D  wrote:
> I tried the setting with true and false settings. It still doesn't work.
>
> Here is Ajax Debug
> INFO: Initiating Ajax GET request on
> ?wicket:interface=:0:dataForm:dataPanel:rxEntryTabs:panel:link::IBehaviorListener:0:-1&random=0.6781234819490185
> INFO: Invoking pre-call handler(s)...
> ERROR: Received Ajax response with code: 404
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
> INFO: focus removed from link30
>
>
> I also traced through debug the response sent to HttpResponse object
> and it's what I'm expecting:
>
> “ id="counter31" >
> ”
>
> Not only it's written but the response object is properly closed too.
> Not a single exception is thrown in Wicket's code.
>
> The problem has to be somewhere inside WAS processing, right?
>
> Any ideas where?
>
> Dave
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



  1   2   3   4   5   6   7   8   9   10   >