Re: Clearing Feedback Messages from the Session

2008-03-15 Thread Igor Vaynberg
that method has javadoc... -igor On Sat, Mar 15, 2008 at 9:41 PM, Warren <[EMAIL PROTECTED]> wrote: > What is cleanupFeedbackMessages() used for ? > > > > -Original Message- > > From: Warren [mailto:[EMAIL PROTECTED] > > Sent: Saturday, March 15, 2008 9:37 PM > > To: users@wicket.apa

RE: Clearing Feedback Messages from the Session

2008-03-15 Thread Warren
What is cleanupFeedbackMessages() used for ? > -Original Message- > From: Warren [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 15, 2008 9:37 PM > To: users@wicket.apache.org > Subject: RE: Clearing Feedback Messages from the Session > > > That's what I was looking for, Thanks > > > ---

RE: Clearing Feedback Messages from the Session

2008-03-15 Thread Warren
That's what I was looking for, Thanks > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 15, 2008 8:38 PM > To: users@wicket.apache.org > Subject: Re: Clearing Feedback Messages from the Session > > > message.markrendered() ? > > -igor > > > O

Re: Clearing Feedback Messages from the Session

2008-03-15 Thread Igor Vaynberg
message.markrendered() ? -igor On Sat, Mar 15, 2008 at 12:39 PM, Warren <[EMAIL PROTECTED]> wrote: > I am displaying feedback messages using a js alert window instead of a > feedback panel. Everything works except that I end up displaying the same > message twice. Once for the original request

Re: Sanity check: rendering xml to be comsumed by other applications

2008-03-15 Thread Konstantin Ignatyev
If you want to avoid the lazy init error when effortlessly exposing Hibernate enhanced objects via XFire and alike services all you need to do is front the service URL with filter that makes sure that Hibernate session is available for the duration of the request. That is less work then rendering

Sanity check: rendering xml to be comsumed by other applications

2008-03-15 Thread xdirewolfx
Hi Basically I have been working alot of spring and hibernate stack. Everything is fine until you need to actually expose web service which comprises of part of your domain models. Hibernate will let you go in a loop or you will run into a famous error (lazily init :)). As such I have always use

Re: Planning Wicket Next Generation

2008-03-15 Thread Gabor Szokoli
Hi, Your conclusion covers our case, but I'd debate your reasoning: We use java 5, deploy to GlassFish. No nostalgic attachments to pre-generics Java :-) But we believe these (including wicket) to be established technologies, and would hate to jump to significantly less mature platforms (like jav

Re: Planning Wicket Next Generation

2008-03-15 Thread dvd
I'd say people using wicket now who did not mind switching from other framework might not mind upgrading web server to java5 (even 7:-), or deploy it on a new web server instead of mixing them with the old app servers. >the big question is if 1.4 and 1.3 where api wise very much the same >is th

Re: wicket:link change markup

2008-03-15 Thread dvd
I have been doing that way to work around this issue but found it is often cumbersome to do so, particularly to deal with large number of links. use Listview helps a bit but not complete solution. I wonder if something similar tothe following could be done This would not break any existing app an

Re: setBefore/AfterDisabledLink and chaining

2008-03-15 Thread Sebastiaan van Erk
Ok. :-) Just put it on here before reporting in the jira just in case it's was a stupid idea. ;-) https://issues.apache.org/jira/browse/WICKET-1427 Regards, Sebastiaan Igor Vaynberg wrote: jira... -igor On Sat, Mar 15, 2008 at 6:18 AM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Hi, Is

Clearing Feedback Messages from the Session

2008-03-15 Thread Warren
I am displaying feedback messages using a js alert window instead of a feedback panel. Everything works except that I end up displaying the same message twice. Once for the original request and then again for the following request. I am retrieving the messages from the Session when the page's onBef

Re: Fallback support for ModalWindow

2008-03-15 Thread Kaspar Fischer
On 15.03.2008, at 17:22, Martijn Dashorst wrote: According to me, when javascript is turned off, onclick is not fired. I agree. I'll try to be more precise: For instance, the link to open the modal window: if it were made a link with both href and an onClick then the href-link will be taken

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > the problem is most of the time with model objects > is that when you have set it. Then that is also a database operation > So going back into history with the browser and revering the model object > doesn't make much sense then > because

Re: Page Serialization/Deserialization

2008-03-15 Thread Johan Compagner
the problem is most of the time with model objects is that when you have set it. Then that is also a database operation So going back into history with the browser and revering the model object doesn't make much sense then because then you also have to revert the database ooperation So model objec

Re: Planning Wicket Next Generation

2008-03-15 Thread Johan Compagner
the big question is if 1.4 and 1.3 where api wise very much the same is there still a high demand for java4 wicket yes or no at this time? If there still are quite a lot of deployments on java4 then we have to maintain it for a while. If not then all those 1.3 users could switch to 1.4 quite easy

Re: Fallback support for ModalWindow

2008-03-15 Thread Martijn Dashorst
According to me, when javascript is turned off, onclick is not fired. Martijn On 3/15/08, Kaspar Fischer <[EMAIL PROTECTED]> wrote: > On 14.03.2008, at 18:04, Martijn Dashorst wrote: > > > it can't. ModalWindow is a javascript component. JavaScript is > > necessary for displaying, hiding, posit

Re: setBefore/AfterDisabledLink and chaining

2008-03-15 Thread Igor Vaynberg
jira... -igor On Sat, Mar 15, 2008 at 6:18 AM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > Hi, > > Is it possible to make setAfterDisabledLink on AbstractLink return > "this" so that chaining is possible. Now I have somthing similar to the > following: > > fragment.add(new Bookmark

Re: wicket:link change markup

2008-03-15 Thread Martijn Dashorst
Don't use wicket:link in that case. Just add the links as bookmarkable page links. wicket:link is a convenience, not for all use cases. This is not one of them. Martijn On 3/15/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello: > Is there a way to disable wicket:link' removing >for a

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > in what context? > > you with your counter shouldn't touch the model things anyway > just do wat Matej told you and use addStateChange() > thats is what you should do Well, I'm just trying to come up with a real-world example. I guess in

Re: Page Serialization/Deserialization

2008-03-15 Thread Johan Compagner
in what context? you with your counter shouldn't touch the model things anyway just do wat Matej told you and use addStateChange() thats is what you should do ofcourse you could use the model somehow for you counter On Sat, Mar 15, 2008 at 4:04 PM, James Carman <[EMAIL PROTECTED]> wrote: > On

Re: [Newbie question] How to avoid empty boxes?

2008-03-15 Thread Kaspar Fischer
Another possibility: /** * A panel whose visibility is on iff at least one of its subcomponents is visible. */ public class Envelope extends Panel { private static final long serialVersionUID = -6422145787799831814L; public Envelope(String id) { super(id); } public Envelope(S

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > yes but thats what component.setModelObject() does for you > So, it would have been better to write link.setModel("some new string")? - To unsubscribe, e-mail: [EMAIL PROTE

Re: Page Serialization/Deserialization

2008-03-15 Thread Johan Compagner
yes but thats what component.setModelObject() does for you On Sat, Mar 15, 2008 at 2:11 PM, James Carman <[EMAIL PROTECTED]> wrote: > On 3/15/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > > you shouldn't really call modelChanging() or modelChanged() > > because your model is not changed at

Dynamic Resource/ResourceReference as Model for Image

2008-03-15 Thread pixotec
I have an Image (imgThumbnailSelected) that shows the thumbnail (Resource thumbnailResource) of a selected image (selectedImage object). If no image is selected imgThumbnailSelected should show a placeholder (ResourceReference DialogImagePage.IMG_NO_IMAGE). I defined the Image and its Model like

Re: Fallback support for ModalWindow

2008-03-15 Thread Kaspar Fischer
On 14.03.2008, at 18:04, Martijn Dashorst wrote: it can't. ModalWindow is a javascript component. JavaScript is necessary for displaying, hiding, positioning, closing, etc. the div that is the modal window. I see that it currently works like this. The fallback solution I was thinking of was:

setBefore/AfterDisabledLink and chaining

2008-03-15 Thread Sebastiaan van Erk
Hi, Is it possible to make setAfterDisabledLink on AbstractLink return "this" so that chaining is possible. Now I have somthing similar to the following: fragment.add(new BookmarkablePageLink("season2Link", ProgramsPage.class, new PageParameters("0=2008")) { {

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > you shouldn't really call modelChanging() or modelChanged() > because your model is not changed at all > what is changed is your internal counter (and you should use > addStateChange()) > > But because of the way we now work, we dont do a

Re: css menu and wicket

2008-03-15 Thread Martin Grigorov
See https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-suckerfish On Fri, 2008-03-14 at 16:17 -0700, Mathias P.W Nilsson wrote: > Hi! > > I have troubles creating a css menu with wicket and css. > > I'm using the RepeatingView in Wicket for the UL, LI list. But the U

Re: Page Serialization/Deserialization

2008-03-15 Thread Johan Compagner
> > because it's ignored with SecondLevelCacheSessionStore. For the next > version we'll have a simple method that is more obvious to call. > > big probem with that is if we just introduce page.incrementVersion() and nothing more, that then everybody has to use SLCS.. But there are things (like

Re: Page Serialization/Deserialization

2008-03-15 Thread Matej Knopp
Yeah, sorry, I should have suggested addStateChange, the problem is that it requires a Change attribute which can be a bit confusing because it's ignored with SecondLevelCacheSessionStore. For the next version we'll have a simple method that is more obvious to call. So the right thing to do now is

Re: Page Serialization/Deserialization

2008-03-15 Thread Johan Compagner
you shouldn't really call modelChanging() or modelChanged() because your model is not changed at all what is changed is your internal counter (and you should use addStateChange()) But because of the way we now work, we dont do anything with the state changes objects anymore with the DiskPageStore

Re: css menu and wicket

2008-03-15 Thread Mathias P.W Nilsson
I'm reading the Wicket in Action MEAP right now, just begun, and it seam like Behavior could fit into the picture? Any comments? -- View this message in context: http://www.nabble.com/css-menu-and-wicket-tp16062124p16066979.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: css menu and wicket

2008-03-15 Thread Thomas Gier
Mathias P.W Nilsson schrieb: Hi! I have troubles creating a css menu with wicket and css. I'm using the RepeatingView in Wicket for the UL, LI list. But the UL and LI needs some extra tweek for IE. I need to do something like this for it to render properly. How can I integrate this with wicket?

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > Not wit url like http://localhost:8080/. That's a homepage URL. It > doesn't contain any information about page instance, etc. so wicket > has to create new page instance. > > Transparent back button support is about something else. Wicket tra

wicket:link change markup

2008-03-15 Thread dvd
Hello: Is there a way to disable wicket:link' removing

Re: Page Serialization/Deserialization

2008-03-15 Thread Matej Knopp
Not wit url like http://localhost:8080/. That's a homepage URL. It doesn't contain any information about page instance, etc. so wicket has to create new page instance. Transparent back button support is about something else. Wicket tracks certain changes to page, i.e. adding or removing components

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, James Carman <[EMAIL PROTECTED]> wrote: > On 3/15/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > > > What URL you seen in browser after you click back button? Isn't it a > > bookmarkable URL? Because that creates new page instance every time. > > > > > When I click the back button, the

Re: Page Serialization/Deserialization

2008-03-15 Thread Matej Knopp
The no-store header is a browser issue. There is a reason why it's not enabled by default. Not everyone wants to generate request to server on back button if it is not necessary. -Matej On Sat, Mar 15, 2008 at 12:02 PM, James Carman <[EMAIL PROTECTED]> wrote: > Sorry, I think I may have it workin

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > What URL you seen in browser after you click back button? Isn't it a > bookmarkable URL? Because that creates new page instance every time. > When I click the back button, the URL is: http://localhost:8080/ However, nothing goes on in the ser

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
Sorry, I think I may have it working now. The trick was the Cache-Control header (adding in "no-store"), but requiring us to set Cache-Control headers doesn't sound to me like "Transparent Back Button Support." The modelChanged() call did nothing for me (not that I know for sure that's what I was

Re: Page Serialization/Deserialization

2008-03-15 Thread Matej Knopp
What URL you seen in browser after you click back button? Isn't it a bookmarkable URL? Because that creates new page instance every time. -Matej On Sat, Mar 15, 2008 at 11:52 AM, James Carman <[EMAIL PROTECTED]> wrote: > On 3/15/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > > > The reason why page

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > The reason why page is not fetched on backbutton is because firefox > caches it. You need to send the Cache-control: no-store header to > force firefox to reload the page on back button. > Ok, I've change it as follows and it still appears to

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Johan Compagner <[EMAIL PROTECTED]> wrote: > You are not testing back button versioning a all. > What you do with the backbutton and a refresh is create a new page. > Because yiu are doing a bookmarkable (homepage) refresh. > I'm not hitting refresh, though. It appears that IE is do

Re: Page Serialization/Deserialization

2008-03-15 Thread Matej Knopp
The reason why page is not fetched on backbutton is because firefox caches it. You need to send the Cache-control: no-store header to force firefox to reload the page on back button. -Matej On Sat, Mar 15, 2008 at 11:39 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > You are not testing back but

Re: Page Serialization/Deserialization

2008-03-15 Thread Johan Compagner
You are not testing back button versioning a all. What you do with the backbutton and a refresh is create a new page. Because yiu are doing a bookmarkable (homepage) refresh. Also if you want backbutton support for your counter you have to register that Change to the page. Johan On 3/15/08, Ja

Re: Page Serialization/Deserialization

2008-03-15 Thread James Carman
On 3/15/08, Matej Knopp <[EMAIL PROTECTED]> wrote: > Your page implementing Externalizable breaks wicket. Wicket relies of > Page#writeReplace, writeObject, readObject being called. Are you sure > you're no seing any stacktrace? > Ok, I think I'm getting somewhere with this. I changed my explor

Re: Digg / Technorati / del.icio.us Component?

2008-03-15 Thread Martin Makundi
What about http://www.addthis.com/ 2008/3/15, Jeremy Thomerson <[EMAIL PROTECTED]>: > Does anyone know of a component out there that creates a nice share panel > with all the common links (Digg / Technorati / del.icio.us)? > > Not sure if attachments come through the list, but attached an example.

Re: How to pop a warning dialog box when clicking a checkbox

2008-03-15 Thread Mathias P.W Nilsson
See this link http://javathoughts.capesugarbird.com/2008/01/wicket-13-ajax-button-with-confirmation.html warning dialog -- View this message in context: http://www.nabble.com/How-to-pop-a-warning-dialog-box-when-clicking-a-checkbox-tp16058046p16065780.html Sent from the Wicket - User mailing l

Re: Page Serialization/Deserialization

2008-03-15 Thread Matej Knopp
Your page implementing Externalizable breaks wicket. Wicket relies of Page#writeReplace, writeObject, readObject being called. Are you sure you're no seing any stacktrace? -Matej On Sat, Mar 15, 2008 at 3:08 AM, James Carman <[EMAIL PROTECTED]> wrote: > All, > > I am trying to understand page se

Re: LinkTree Node Refresh

2008-03-15 Thread Matej Knopp
Hi, you shouldn't do target.addComponent(tree). You shouldo only call tree.upateTree() (or tree.updateTree(target), should do the same thing). Also you could consider using DefaultTreeModel.insertNodeInto instead of parent.addNode, as it automatically fires the listener for you. Btw. I was thinki

Re: Digg / Technorati / del.icio.us Component?

2008-03-15 Thread Igor Vaynberg
attachments dont come through. and probably, no. you might have to roll your own and possibly share with the rest of us :) -igor On Fri, Mar 14, 2008 at 11:02 PM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > Does anyone know of a component out there that creates a nice share panel > with all th