Re: Possible bug in ListView [Cannot change attributes in ListView div]

2013-02-24 Thread Sven Meier
Short answer is in ListView's javadoc: * p * strongNOTE:/strong * * When you want to change the default generated markup it is important to realize that the ListView * instance itself does not correspond to any markup, however, the generated ListItems do.br/ * * This means that methods

Re: Loadable non-detachable list model for listView

2013-02-24 Thread Sven Meier
Hi, when working with Wicket models, you should always call #getObject() or #getModelObject() as late as possible: ListViewImagesGroup imagesGroupsListView = new ListViewImagesGroup(imagesGroupsListView, imagesGroupsModel) { @Override @Transactional protected void populateItem(final

Re: Possible bug in ListView [Cannot change attributes in ListView div]

2013-02-24 Thread Gonzalo Aguilar Delgado
Hello Sven, I'm stupid. Sorry for the question. I read a lot of times it in the forums, saw examples, but really never realized that the main div was the item that get passed to the populateItem. It made me uncofortable someway. I don't know why. :D Thank you a lot. El dom, 24-02-2013 a

Re: Loadable non-detachable list model for listView

2013-02-24 Thread meduolis
I get same exception with your updates. Looks like I have to reload object from database before it's deletion or delete it by id. Anyway, thanks for help. -- View this message in context:

Re: Loadable non-detachable list model for listView

2013-02-24 Thread Sven Meier
You'll need to apply the OSIV pattern for that. Sven -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Loadable-non-detachable-list-model-for-listView-tp4656216p4656734.html Sent from the Users forum mailing list archive at Nabble.com.

org.apache.wicket.markup.html.link.PopupSettings.java problem (version 6.5.0)

2013-02-24 Thread chrome1235
Hi, I think the line (row number=158) StringBuilder script = new StringBuilder(var w = window.open*( + target + , ')*.append( windowTitle).append(', '); must be like this. (adding ' single quotation marks to target) StringBuilder script = new

Re: get rid of LazyLoadException

2013-02-24 Thread heapifyman
I found this blog post (and the rest of the series) very helpful: https://www.42lines.net/2011/11/21/adding-jpahibernate-into-the-cdi-and-wicket-mix/ Or maybe try to use an EXTENDED EntityManager in your project to keep entities managed and get rid of LazyLoadException. Am 23.02.2013 um 19:22

What is the best strategy for non versioned pages?

2013-02-24 Thread Bernard
Hi, We don't want back button support. setVersioned(false) with the default RenderStrategy looks like a good match for this. But sometimes pages become stateless which results in multiple URLs for the same page, e.g. /mypage and /mypage?-1.IFormSubmitListener-panel-form I know that Wicket

Re: Loadable non-detachable list model for listView

2013-02-24 Thread meduolis
Yes, this is what I wanted. But after I made some investigation how to apply this OSIV filter I found that it could bring more mess then happiness :D; Source: http://stackoverflow.com/questions/1103363/why-is-hibernate-open-session-in-view-considered-a-bad-practice Source how to apply:

inmethod grid cachedPageCount

2013-02-24 Thread Ciocoiu Elvis
Hi, I'm trying to select a item of inmethod grid after adding it in an ajax call. Based on the current sort properties and filters, after I effectively add the element in the database but in the same ajax call I'm determining the element's page number and try to set it as current page in the

multipart ajax upload

2013-02-24 Thread Ciocoiu Elvis
Hi, I'm fighting with a strange problem when using a form (multipart) with a required TextField and a FileUploadField. Sometimes works as expected (the required error message is displayed in FeedbackPanel) but most of the times the feedback message is not displayed. Also, after submiting for a

Re: TinyMCE.

2013-02-24 Thread Andrea Del Bene
The code should be contentTextArea.add(new TinyMceBehavior(new TinyMCESettings(TinyMCESettings.Theme.advanced))); If you still get an error can you show your pom.xml file? Yes, fails to execute. code: TextArea contentTextArea = new TextArea(content); contentTextArea.add(new

Re: JavsScriptUtils.writeJavaScript() in onRender() after Ajax updates

2013-02-24 Thread Martin Dietze
On Fri, February 22, 2013, Sven Meier wrote: Which Wicket version? Is this rendered on an Ajax request? It's Wicket 6.6.0, and, yes, it's rendered on an Ajax request. Cheers, M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= Steht ein Bratscher vor

Re: Regarding Facebook login API in wicket 1.5

2013-02-24 Thread Martin Grigorov
Hi, On Sun, Feb 24, 2013 at 5:26 AM, kshitiz k.agarw...@gmail.com wrote: No..actually that was causing some issues. So I followed your suggestions like I posted. One thing I would like to ask is in Scribe, how to get specific Facebook information like name or first name. getBody gives entire

Re: load resource from other project

2013-02-24 Thread Martin Grigorov
Hi, We will need more information to be able to help you. Doesn't work is not enough. Put a breakpoint in ClassPathResourceFinder#find() and see why it is not able to find it. On Sun, Feb 24, 2013 at 10:50 AM, oliver.stef ova...@gmail.com wrote: Hi, Thanks for the replay! Did it - added