RE: Images not displaying

2008-09-29 Thread Yazeed Isaacs
Hi James I have tried placing the img tag between wicket:link tags but still no image displaying. I have also tried the same with the DateTextField/DatePicker input text field in order to display the calendar icon, but still nothing displays. This one in particular is very odd since it is the

Re: Images not displaying

2008-09-29 Thread Igor Vaynberg
is your filter's mapping properly ends in a /* ? -igor On Sun, Sep 28, 2008 at 11:52 PM, Yazeed Isaacs [EMAIL PROTECTED] wrote: Hi James I have tried placing the img tag between wicket:link tags but still no image displaying. I have also tried the same with the DateTextField/DatePicker

RE: Images not displaying

2008-09-29 Thread Yazeed Isaacs
Hi Igor Please excuse me, but I am new to wicket. :) I am not sure what you mean by filter's mapping end in a /*, please explain. Is this a mapping configuration that I must setup with the app? Regards, Yazeed -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent:

Re: WANG–Wicket Ajax Next Gene ration–being based on YUI (MD)

2008-09-29 Thread jWeekend
Igor, I should say that I was convinced already, by Matej's first response [1] to my original post on this thread, that this decision (not to mention Matej's expertise and hard work) will give us a robust, flexible and maintainable underlying infrastructure with no perceivable impact on the

RE: Images not displaying

2008-09-29 Thread Yazeed Isaacs
Hi Igor You mean filter mappings in web.xml I did not have any filter mappings, so I have added them and everything is now working fine. Thanks for the help Igor. Regards, Yazeed -Original Message- From: Yazeed Isaacs Sent: 29 September 2008 11:16 AM To: users@wicket.apache.org

wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Korbinian Bachl - privat
Hi, I'm currently struggling with the famous lazy load exception under spring + jpa with wicket. The problem is, in my case, that i pull an entity from the database using a spring-bean (@SpringBean) and JPA (hibernate). Then in the wicket class i need to walk the entity tree a bit, based on

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Nino Saturnino Martinez Vazquez Wael
Hi Korbinian Im facing the same problems... I also use extended.. So gonna be great to see the outcome of this thread.. I think it could be something about missing usage of loadabledetachable model..? Korbinian Bachl - privat wrote: Hi, I'm currently struggling with the famous lazy

how to navigate from edit mode to view mode

2008-09-29 Thread Singh Mukesh
Hi I have created a bookmark portlet using wicket. And the bookmark portlet includes two portlet- mode i.e. view and edit. I have deployed the basic portlet on sun portal. I have a problem with the navigation form edit mode to view mode. Do you have any good suggestion how to solve this problem?

Re: WANG–Wicket Ajax Next Generation–being based on YUI (MD)

2008-09-29 Thread Matej Knopp
Are you really that surprised that Microsoft is not shipping YUI after the failed attempts to take over Yahoo? :) Seriously, there are technical reasons why I considered to use YUI, not political. Just because some companies use jQuery it doesn't mean Wicket should use it. Say most of the

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Korbinian Bachl - privat
I think it could be something about missing usage of loadabledetachable model..? not for me, as the original entity is pulled using an loadabledetachableModel via a SortedDataProvider :/ if you look around, the all called solution for this is the OpenSessionInViewFilter and the usage of

Re: WANG–Wicket Ajax Next Generation–being based on YUI (MD)

2008-09-29 Thread Jörn Zaefferer
It would be a big plus for me if Wicket would adopt jQuery. Drupal does that, and anyone writing a Drupal module can rely on the fact that jQuery is available. Same for Wordpress, where plugin authors can rely on the availability of jQuery. And not having to load more than one library, internal or

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread James Carman
On Mon, Sep 29, 2008 at 7:14 AM, Korbinian Bachl - privat [EMAIL PROTECTED] wrote: However, the OpenSessionInViewFilter will not work with wicket, even if mapped to /* in the web.xml Huh? We use it and it works just fine. By the way, have you tried OpenEntityManagerInViewFilter if you're

Re: WANG–Wicket Ajax Next Generation–being based on YUI (MD)

2008-09-29 Thread Matej Knopp
On Mon, Sep 29, 2008 at 1:18 PM, Jörn Zaefferer [EMAIL PROTECTED] wrote: It would be a big plus for me if Wicket would adopt jQuery. Drupal does that, and anyone writing a Drupal module can rely on the fact that jQuery is available. Same for Wordpress, where plugin authors can rely on the

wicket panels and parent class

2008-09-29 Thread Steve Swinsburg
Hi all, I'm a new Wicket user and am developing an application making use of Panels. The Panels are working, however I need to access some objects in the panel that are defined in the parent class and am not sure how to do this. e.g. MyProfile.java: String userId =

Re: wicket panels and parent class

2008-09-29 Thread Michael Sparer
getParent() ? Steve Swinsburg-2 wrote: Hi all, I'm a new Wicket user and am developing an application making use of Panels. The Panels are working, however I need to access some objects in the panel that are defined in the parent class and am not sure how to do this. e.g.

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Michael Sparer
When using the OSIV-filter the lazyload exception may only happen if the same entity is used among different requests ... sothat it gets detached from hibernate. have a look at http://talk-on-tech.blogspot.com/2008/05/custom-reuseable-loadabledetachablemode.html ... that's the way we're doing it

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Korbinian Bachl - privat
really? - I tried it but... would you please be so nice and post the part of the web.xml where it is mapped and the corresponding part of the spring-application.xml ? what wicket version are you on? what runtime (Tomcat 6?)? Best, Korbinian James Carman schrieb: On Mon, Sep 29, 2008 at

Re: wicket panels and parent class

2008-09-29 Thread Thies Edeling
And then have to cast it to the class of the parent.. which kinda kills the independent component based idea of reusable panels. Why not pass along the userid when constructing? Or fetch it from the session. Michael Sparer wrote: getParent() ? Steve Swinsburg-2 wrote: Hi all, I'm a

Re: wicket panels and parent class

2008-09-29 Thread Steve Swinsburg
I guess I am used to the jsp:include method of including panel type objects since I am originally a JSP developer and then anything in the panel instantly has access to the variables defined in the surrounding parent. I guess I could pass along a HashMap of data to the Panel when its

Re: wicket panels and parent class

2008-09-29 Thread jWeekend
Your Panel is just a Java class, so give it a constructor that takes the required object(s), or provide a setter if that wouldn't be too late (ie if the values are required during the panel's construction). Or, take a look at CompoundPropeprtyModel (maybe together with ComponentPropertyModel too

Re: wicket panels and parent class

2008-09-29 Thread Michael Sparer
possible yes, recommended, no i'd say :-) if you need specific values from MyPanel then pass it via constructor, if you need values/attributes on component (e.g. isVisible) level use getParent() Steve Swinsburg-2 wrote: I guess I am used to the jsp:include method of including panel type

Re: wicket panels and parent class

2008-09-29 Thread Steve Swinsburg
Thanks everyone, I changed my constructor to accept the object I wanted and passed it in from the parent class. It's working now. cheers, Steve --- Steve Swinsburg Portal Systems Developer Centre for e-Science Lancaster University Lancaster LA1 4YT email: [EMAIL PROTECTED] phone: +44 (0)

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread James Carman
We don't use JPA at work, but we use OSIV (we're using straight hibernate). Anyway, for the JPA configuration, you can look at: https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/jpa-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml On Mon, Sep 29,

Re: wicket panels and parent class

2008-09-29 Thread James Carman
Just be careful. If the object reference in the parent is retrieved from a LoadableDetachableModel, then your panel and its parent can get out of sync. On Mon, Sep 29, 2008 at 8:16 AM, Steve Swinsburg [EMAIL PROTECTED] wrote: Thanks everyone, I changed my constructor to accept the object I

The Wicket difference ...?

2008-09-29 Thread Ashley Aitken
Howdy All, Just trying to explain to some colleagues how some of Wicket works (differently than most other Web frameworks), so please correct me if I am wrong. From my understanding Wicket differs from most other Web frameworks in that it doesn't manage the creation of the object graphs

Re: Travel Assistance to ApacheCon US 2008

2008-09-29 Thread Martijn Dashorst
You have until Friday to apply for this support. This is open for anyone, not just committers! If you have an interest in Apache Wicket and/or Apache ${foo} and are unable to attend because of monetary constraints, and you fit the criteria, don't hesitate to apply! Martijn On Thu, Sep 25, 2008

OnChangeAjaxBehavior in ListView

2008-09-29 Thread Anders Peterson
Hi, I'm using OnChangeAjaxBehavior with a TextField. The TextField is in a table cell that is repeated using a ListView. When I change the value of one of the TextFields more than one of the underlying models get updated - the one that was supposed to be updated and all following in the list.

Re: wicket panels and parent class

2008-09-29 Thread Phil Grimm
It may not be a best practice, but if MyInfoPanel does not need to be reusable you can make it an inner class of MyProfile. Then userId can be accessed directly. Phil On Mon, Sep 29, 2008 at 6:45 AM, Steve Swinsburg [EMAIL PROTECTED] wrote: Hi all, I'm a new Wicket user and am developing an

Re: Breadcrumb + previous button

2008-09-29 Thread Kmus
This is what I did to solve the issue: In Panel C class: // Return button. List crumbs = getBreadCrumbModel().allBreadCrumbParticipants(); IBreadCrumbParticipant p = null; for (Object obj : crumbs) { p = (IBreadCrumbParticipant) obj; if (p

ListView - modify css for some column

2008-09-29 Thread radovan
Hallo community, my code looks like this: listView = new ListViewMyItem(collectionIterator, listOfMyItems) { @Override protected void populateItem(ListItemMyItem item) { MyItem myItem = (MyItem) item.getDefaultModelObject();

Re: ListView - modify css for some column

2008-09-29 Thread Thies Edeling
radovan wrote: Hallo community, my code looks like this: listView = new ListViewMyItem(collectionIterator, listOfMyItems) { @Override protected void populateItem(ListItemMyItem item) { MyItem myItem = (MyItem)

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Korbinian Bachl - privat
Hmm, I copied it to web.xml, but result is: 2008-09-29 18:07:24,125 ERROR org.hibernate.LazyInitializationException - failed to lazily initialize a collection of role: de.xxx....xxx., no session or session was closed org.hibernate.LazyInitializationException: failed to lazily

Re: ListView - modify css for some column

2008-09-29 Thread radovan
Thies Edeling wrote: radovan wrote: Hallo community, my code looks like this: listView = new ListViewMyItem(collectionIterator, listOfMyItems) { @Override protected void populateItem(ListItemMyItem item) { MyItem myItem

Re: The Wicket difference ...?

2008-09-29 Thread jWeekend
Ashley, Take a look at chapter 1 of Wicket In Action (free download at http://www.manning.com/dashorst/). Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk Ashley Aitken wrote: Howdy All, Just trying to explain to some colleagues how some of Wicket works

Re: ListView - modify css for some column

2008-09-29 Thread Korbinian Bachl - privat
you should use DataTable instead of ListView for that; there you can easily manipulate by overriding the getCSS() function of the columns. Best, Korbinian radovan schrieb: Hallo community, my code looks like this: listView = new ListViewMyItem(collectionIterator,

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread James Carman
Would you be able to create a quickstart that exhibits this behavior? If you want, you can use the JPA archetype in wicketopia (the code I referenced) to set everything up for you automatically. On Mon, Sep 29, 2008 at 12:21 PM, Korbinian Bachl - privat [EMAIL PROTECTED] wrote: Hmm, I copied

Re: ListView - modify css for some column

2008-09-29 Thread Igor Vaynberg
you populate all components inside the listview yourself, so just attach one to the td -igor On Mon, Sep 29, 2008 at 9:23 AM, radovan [EMAIL PROTECTED] wrote: Thies Edeling wrote: radovan wrote: Hallo community, my code looks like this: listView = new

Re: The Wicket difference ...?

2008-09-29 Thread Matej Knopp
Hi, On Mon, Sep 29, 2008 at 4:13 PM, Ashley Aitken [EMAIL PROTECTED] wrote: Howdy All, Just trying to explain to some colleagues how some of Wicket works (differently than most other Web frameworks), so please correct me if I am wrong. From my understanding Wicket differs from most other

Re: how to navigate from edit mode to view mode

2008-09-29 Thread Thijs Vonk
You'll have to be more specific. What kind of problems. What works, what doesn't etc. Singh Mukesh wrote: Hi I have created a bookmark portlet using wicket. And the bookmark portlet includes two portlet- mode i.e. view and edit. I have deployed the basic portlet on sun portal. I have a

Need to add tool tip for hyper link

2008-09-29 Thread newbie_to_wicket
hi , i've to add a tool tip for hyper link, if any of you come across this thing, please suggest me or give me the sample code . thanks J -- View this message in context: http://www.nabble.com/Need-to-add-tool-tip-for-hyper-link-tp19730615p19730615.html Sent from the Wicket - User mailing list

Inmethod Grid with wicket 1.3

2008-09-29 Thread Jim Pinkham
I'd like to use inmethod grid in my charity auction project. I've got a slightly modified version of one of the grid-examples using DataGrid like so: DataGrid grid = new DefaultDataGrid(grid, AuctionApplication.get().getDao().getItems(getYear()), //

Re: Need to add tool tip for hyper link

2008-09-29 Thread Martijn Dashorst
a href=# title=Here's my tooltip tiplink/a On Mon, Sep 29, 2008 at 9:59 PM, newbie_to_wicket [EMAIL PROTECTED] wrote: hi , i've to add a tool tip for hyper link, if any of you come across this thing, please suggest me or give me the sample code . thanks J -- View this message in

Re: Need to add tool tip for hyper link

2008-09-29 Thread Mathias P.W Nilsson
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-minis-prototip Prototip -- View this message in context: http://www.nabble.com/Need-to-add-tool-tip-for-hyper-link-tp19730615p19731592.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: WANG–Wicket Ajax Next Generation–being based on YUI (MD)

2008-09-29 Thread Jörn Zaefferer
I guess I didn't quite get the file upload example in the first place. Uploading via iframe is supported by jQuery's form plugin, which is one of the best plugins we have. We plan to add it, together with other related plugins, to jQuery UI forms (or something like that). About selectors: jQuery

Re: Inmethod Grid with wicket 1.3

2008-09-29 Thread Matej Knopp
I don't think the grid snapshots in maven are recent enough. You should fetch it from svn and build it yourself if you want to use it. Also keep in mind that grid version for 1.3 is in the 1.3 branch of wicket stuff, not the trunk:

Re: WANG–Wicket Ajax Next Generation–being based on YUI (MD)

2008-09-29 Thread Matej Knopp
On Mon, Sep 29, 2008 at 11:13 PM, Jörn Zaefferer [EMAIL PROTECTED] wrote: I guess I didn't quite get the file upload example in the first place. Uploading via iframe is supported by jQuery's form plugin, which is one of the best plugins we have. We plan to add it, together with other related

Re: WANG–Wicket Ajax Next Generation–being based on YUI (MD)

2008-09-29 Thread Igor Vaynberg
and what happens when microsoft forks jquery and hires all of its developers to work on its proprietary version? to me this is more a risk then anything else -igor On Mon, Sep 29, 2008 at 2:13 PM, Jörn Zaefferer [EMAIL PROTECTED] wrote: I guess I didn't quite get the file upload example in

Re: WANG–Wicket Ajax Next Generation–being based on YUI (MD)

2008-09-29 Thread Martijn Dashorst
On Mon, Sep 29, 2008 at 11:13 PM, Jörn Zaefferer [EMAIL PROTECTED] wrote: PS: I'm currently sitting on a panel with PPK and guys from Prototype, Dojo, YUI and jQuery. One question was: What library would you recommend but your own?. Two of the three non-jQuery guys recommened jQuery So you're

Re: WANG–Wicket Ajax Next Generation–being based on YUI (MD)

2008-09-29 Thread Matej Knopp
Okay, let's keep this focused. Here is my experimental branch. http://svn.apache.org/repos/asf/wicket/sandbox/knopp/experimental/ There is new Ajax implementation here:

Re: OnChangeAjaxBehavior in ListView

2008-09-29 Thread Timo Rantalaiho
On Mon, 29 Sep 2008, Anders Peterson wrote: I'm using OnChangeAjaxBehavior with a TextField. The TextField is in a table cell that is repeated using a ListView. When I change the value of one of the TextFields more than one of the underlying models get updated - the one that was supposed to

Re: wicket panels and parent class

2008-09-29 Thread Timo Rantalaiho
On Mon, 29 Sep 2008, James Carman wrote: Just be careful. If the object reference in the parent is retrieved from a LoadableDetachableModel, then your panel and its parent can get out of sync. Because of this, it is often better to abstract the access with IModel. Best wishes, Timo -- Timo

Re: wicket panels and parent class

2008-09-29 Thread Timo Rantalaiho
On Mon, 29 Sep 2008, Michael Sparer wrote: possible yes, recommended, no i'd say :-) if you need specific values from MyPanel then pass it via constructor, if you need values/attributes on component (e.g. isVisible) level use getParent() I think that getParent() is generally a bad idea,

Re: WANG–Wicket Ajax Next Generation–being based on YUI (MD)

2008-09-29 Thread Jörn Zaefferer
Wicket.replaceOuterHTML(element, newmarkup); would be this in jQuery: $(element).after(newmarkup).remove(); That inserts the new stuff after the element, then removes the element, leaving only the new content in the DOM. after() takes care of cleanup stuff for table colgroups, rows and cells,

Re: WANG–Wicket Ajax Next Generation–being based on YUI (MD)

2008-09-29 Thread Jörn Zaefferer
I'll go through a few things in the wicket-ajax-ng.js file, to give an idea how that could look like when putting it on top of jQuery. I skip all stuff where I can't guess while scanning the code whats its supposed to do. W.$ looks like it selects one or more elements by id. Selecting is

hi, how to offer download function in wicket if i have already get the InputStream for the file

2008-09-29 Thread shrimpywu
hi, how to offer download function in wicket if i have already get the InputStream for the file?? i did some search, people say can use dynamicl web resource, but i didn`t see any sample for it? does anybody get some sampe for this? thanks. -- View this message in context: