Re: Empty PageParametyers when using HybridUrlCodingStrategy
In this case the url will contain the parameters. But since I mount it without the parameters what I get is empty page. I am not sure why I am getting the empty page when I concat the parameters to the iframe url. I am not even getting to MyFrame constructor. Any Idea? Erik van Oosten wrote: > > I don't understand. Reading the javadoc InlineFrame should set the src > attribute. If that is not the case, try setting the src attribute with > something like: > > myFrame.add(new AttributeModifier("src", new Model(urlFor(MyFrame.class, > pageParameters; > > > Regards, > Erik. > > > > itayh wrote: >> Hi Erik, >> >> You are right, the src AttributeModifier overwrites params values. If I >> am >> not using the src AttributeModifier then the params has values and if I >> use >> it then the params are empty. >> >> But it seem that I must use the src AttributeModifier since I am using >> sitemesh decorators to decorate my pages according to the url, so I need >> to >> identify the iframes url from their container url. I need to decorate all >> my >> pages but I don't want to decorate the iframes (no need for headers and >> footers there). >> >> The src AttributeModifier is the only way I found how set the iframes url >> to >> what i want. Is there another way? >> >> Thanks alot, >> Itay >> >> >> > > > -- > Erik van Oosten > http://www.day-to-day-stuff.blogspot.com/ > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Empty-PageParametyers-when-using-HybridUrlCodingStrategy-tp19666330p20027785.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pages or components... how do u decide?
I also like the approach of pushing every functionality in separate components (Panels), it gives me the flexibility of composing pages with any combination of this components. For instance, if I have Login functionality, I create the LoginPanel and LoginPage. This approach allows me to add other Panels (if needed) to LoginPage. Regarding storing the primary model to the base page, I would suggest using a custom session for storing it. This way you can benefit from strongly typed objects and be able access it anywhere in your application. Alex Ned Collyer wrote: > > The system I'm building at the moment has almost everything pushed down > into components. Most of the functionality is achieved by a single base > page which takes a component in its constructor. > > For Bookmarkable pages, I extend this base page, and pass a component to > the super. > > How do _you_ separate concerns? Is there a best practice? > > A benefit of using a page is that it can be accessed with "getPage()" > regardless of how deep in the hierarchy you are... so I guess it could be > useful for storing the primary model for that section of the site. > > Anyway, I'm interested in hearing how others deal with Page vs Components, > and how they structure their applications. > > So many ways of skinning a cat :) > > Rgds > > Ned > -- View this message in context: http://www.nabble.com/Pages-or-components...-how-do-u-decide--tp20016807p20027716.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a way to get stateless DDC with onchange notification?
>no that not the rule >its just the other way around, >a page is stateless if it doesnt have statefull components in it >and the DDC generates a statefull link to itself so its self and because of >that it is statefull I totally understand that. The problem is exactly that and hence my post here. As I described even if one small component is statefull on the page, entire page becomes statefull and gets saved in the session along with all the classes referenced by that page. Just as a side note - I was getting OutofMemory exceptions due to too many sessions as a result of heavy crawling activity and the fact that bookmarkable pages were stateful causing essentially all the classes held on to by the httpsession causing server to go out of memory (2.6G) in 6 hours!! So this question is in an effort to clean bookmarkable pages up making them truely stateless I have DDC inside its own form - not nested but independent form. In the view source it seesm like DDC just submits the form on onchange using javascript. I have tried making this enclosing form both statefull and stateless with the same behavior - the original page which contains the DDC is re-rendered instead of going to the setResponse page. The URL for the form which contains this only DDC looks like this ?wicket:bookmarkablepage=com.xxx.yyy&wicket:interface=:2:path:to:the:component:IFormListener This was the comment from you a while ago (2006) -What I understood from this was - if the url was like above, it means if the page didnt exist, it will be created and the listener method onselectionchanged should be called. What am I missing? Also can you please explain why the page becomes statefull if its being redirected to? e.g. in my onSubmit() if I set setRedirect(true); setResponsePage(BookmarkablePage.class, params) this will cause the bookmarkable page which is otherwise stateless to be statefull? http://www.nabble.com/how-do-stateless-components-and-pages-work-in-Wicket-2.0--td6441228.html#a6441228 >so you have the bookmarkablePage=xxx and the interface=xxx in the url. (or a mount with that interface=xxx) >When a request comes in for such an url. It fist checks the interface stuff (is the page still there) and if it finds >the page it goes on as a normal Interface request. If it isn't it becomes bookmarkalble interface request. >This means that the page is created just as a normal bookmarkable request but not only for rendering but >first it calls the interface that was asked for. Johan Compagner wrote: > > On Thu, Oct 16, 2008 at 6:16 PM, Ritesh Trivedi > <[EMAIL PROTECTED]>wrote: > >> >> Well if I understand it correctly, a component embedded inside (otherwise >> stateless) bookmarkable page checks if the page instance exists if not >> the >> page is to be newly created from the params or default constructor. So >> the >> page and the DDC doesnt necessarily have to be statefull. > > > no that not the rule > its just the other way around, > a page is stateless if it doesnt have statefull components in it > and the DDC generates a statefull link to itself so its self and because > of > that it is statefull > >> >> >> As about what I want to do - I just have a plain list of drop down items >> and >> depending on the one selected, I need to redirect to the bookmarkable >> page >> for the item. DDC values can just be ids which will be passed as >> bookmarkable param and will be used to look up the details of that >> entity. > > > what you could do is just override: > protected boolean getStatelessHint() > > and return true > > >> >> >> >> Johan Compagner wrote: >> > >> > It is statefull then because it has a callback to that page instance >> > and component. What do you want do do in the onchange method? >> > >> > On 10/15/08, Ritesh Trivedi <[EMAIL PROTECTED]> wrote: >> >> >> >> Hi, >> >> >> >> Is there a way to get stateless DDC with onchange notifications? Also >> >> would >> >> be helpful if someone could explain why the wantOnChangeNotification >> >> makes >> >> DDC stateful even if its enclosed within stateless form and in the >> >> stateless >> >> bookmarkable page? >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p19985764.html >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p20015930.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> --
Re: Did someone a YUI splitbutton contribution?
I use the menu2 only though :( I am using trunk version and it should work with wicket 1.3+ 2008/10/17 Per Newgro <[EMAIL PROTECTED]> > Sure i know the contribution. But i didn't found the split button. Do you > use > the splitbutton? Can you please tell me the lib-version and the package > it's > related to? > > many thanks > Per > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Pages or components... how do u decide?
Are you using one page and just passing in your "content" component? Are you not using markup inheritance? On Thu, Oct 16, 2008 at 5:16 PM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > The system I'm building at the moment has almost everything pushed down into > components. Most of the functionality is achieved by a single base page > which takes a component in its constructor. > > For Bookmarkable pages, I extend this base page, and pass a component to the > super. > > How do _you_ separate concerns? Is there a best practice? > > A benefit of using a page is that it can be accessed with "getPage()" > regardless of how deep in the hierarchy you are... so I guess it could be > useful for storing the primary model for that section of the site. > > Anyway, I'm interested in hearing how others deal with Page vs Components, > and how they structure their applications. > > So many ways of skinning a cat :) > > Rgds > > Ned > -- > View this message in context: > http://www.nabble.com/Pages-or-components...-how-do-u-decide--tp20016807p20016807.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: format in wicket generated html?
Use firebug. Beyonder Unknown wrote: > > Hi Guys, > > I was wondering if there's a way that wicket can generate the html in with > indentation? Right now, when we view-source our wicket page in the > browser, it generates the html without tabs. All lines are left-aligned. > > Thanks in advance. > > Wen Tong > -- View this message in context: http://www.nabble.com/format-in-wicket-generated-html--tp20022320p20026206.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tinymce ajax submit
Has that code been posted for wicketstuff-1.3? I am using the old wicket-contrib-tinymce-1.3-SNAPSHOT.jar. Where would I find an updated snapshot? Thanks, Josh sander v F wrote: > > For a project I also needed a AjaxSubmitLink to submit the tinyMce data, > so > i've searched for a solution and found it at > http://dwairi.blogspot.com/2006/12/tinymce-ajax.html > The solution is to add "tinyMCE.triggerSave(true,true);" to the onclick of > the ajax button/link before the wicket code is called. > > I made a nice Wicket AttributeModifier (TinyMceAjaxSubmitModifier) which > can > be added to the ajax button/link and I also made a TinyMceAjaxButton and > TinyMceAjaxSubmitLink for easier use. > > These component are added to the wicket-contrib-tinymce project. > > > > 2008/2/19 Igor Vaynberg <[EMAIL PROTECTED]> > >> tinymce replaces the textarea with an iframe. after that it installs >> an onsubmit hook to detect when the form is submitted and does the >> opposite. since you are submitting via ajax form's onsubmit() is never >> called and so tinymce doesnt replace the iframe with a textarea piror >> tp submit. you need to look at what that callback calls and call it >> yourself >> >> -igor >> >> On Feb 19, 2008 2:55 AM, Benjamin Ernst <[EMAIL PROTECTED]> wrote: >> > Hi Marc, >> > >> > I have the same problem. When i am submitting a textarea with a >> > TinyMCEBehavior the model of the textarea does not get updated. >> > I am interested in your solution, but I do not understand it. >> > >> > It would be nice if you (or anyone else) could explain it for me. >> > >> > Thanks in advance, >> > Benjamin >> > >> > 2007/11/19, godin <[EMAIL PROTECTED]>: >> > >> > > >> > > godin a écrit : >> > > > Frank Bille a écrit : >> > > >> Hi, >> > > >> >> > > >> Do you have problems with it? >> > > >> >> > > >> >> > > > >> > > > yes , the submit work half a time >> > > > i will investigate it more >> > > >> > > >> > > Ok find a workaround, >> > > pb on mozilla, use a decorator >> > > super.decorateScript("tinyMCE.triggerSave(true, >> > > true);"+script+"tinyMCE.idCounter=0;"); >> > > >> > > regards marc >> > > Wicket rocks ! >> > > >> I tried it over a year ago, and as far as I remember there was >> > > >> nothing to >> > > >> it. That was Wicket 1.2.3 and tinymce from back then. >> > > >> >> > > >> Frank >> > > >> >> > > >> On Nov 16, 2007 5:24 PM, godin <[EMAIL PROTECTED]> wrote: >> > > >> >> > > >> >> > > >>> Hi, >> > > >>> doe somebody manage to make tinymce work with an ajax submit >> button >> > > >>> regards >> > > >>> Marc >> > > >>> >> > > >>> >> - >> > > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >> > > >>> For additional commands, e-mail: [EMAIL PROTECTED] >> > > >>> >> > > >>> >> > > >>> >> > > >> >> > > >> >> > > > >> > > > >> - >> > > > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > > > For additional commands, e-mail: [EMAIL PROTECTED] >> > > > >> > > >> > > - >> > > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > > For additional commands, e-mail: [EMAIL PROTECTED] >> > > >> > > >> > >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/tinymce-ajax-submit-tp13796517p20026094.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Customize sortable datatable (css, html attributes and sort)
On Thu, 16 Oct 2008, ns_wicket wrote: > I wanted to display a sortable datatable, so I read this: > http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html > > It works fine but I have few questions: > > -1. This example is up to date? > > 0. Is it the best solution? > > 1. I read the html generated source code and I write css classes: headers, > wicket_orderUp, even, odd, etc. Is it possible to put my own css class > names? For example, can I put a different class for the first header column > only? You should just try things out in practice to see how they go. You can customise a lot of things in a DataTable, but for heavy customisation I've found components that are more bare-bone (DataView for example) easier. This is because DataTable uses a lot of other components inside it, and the more of them you need to customise or replace entirely, the more cluttered it becomes. You can anyway use DataTable as a reference on how to achieve different things, as it has so much built-in functionality. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stopping event bubbling from link to enclosing div
I found the solution. I will post it for everyone that is interested. I created a this class: public class AjaxCancelEventBubbleCallDecorator extends AjaxPostprocessingCallDecorator { private static final long serialVersionUID = 1L; public AjaxCancelEventBubbleCallDecorator() { this((IAjaxCallDecorator)null); } public AjaxCancelEventBubbleCallDecorator(IAjaxCallDecorator delegate) { super(delegate); } public CharSequence postDecorateScript(CharSequence script) { return "e = window.event; if(e.stopPropagation) {e.stopPropagation();}else{e.cancelBubble = true;}" + script; } } Then on the AjaxLink override this method: @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCancelEventBubbleCallDecorator(); } Thanks, Josh jchappelle wrote: > > I have an AjaxLink inside a div. There is an onclick event handler added > at the document level in the dom. If I am clicking the div that contains > my AjaxLink the event will fire. However, I don't want it to fire if I > click the link. > > It seems that there is a way to do this in javascript. I think it is > called cancelling event bubbling. Can someone help me do this in wicket? > > Thanks, > > Josh > -- View this message in context: http://www.nabble.com/stopping-event-bubbling-from-link-to-enclosing-div-tp20025613p20025840.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
stopping event bubbling from link to enclosing div
I have an AjaxLink inside a div. There is an onclick event handler added at the document level in the dom. If I am clicking the div that contains my AjaxLink the event will fire. However, I don't want it to fire if I click the link. It seems that there is a way to do this in javascript. I think it is called cancelling event bubbling. Can someone help me do this in wicket? Thanks, Josh -- View this message in context: http://www.nabble.com/stopping-event-bubbling-from-link-to-enclosing-div-tp20025613p20025613.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to append a javascript code part to the head once
Have you tried using the renderJavascript(script, id) method? Something like: @Override *public* *void* renderHead(IHeaderResponse response) { *super*.renderHead(response); response.renderJavascript(script, "some-id-unique-to-this-behavior-perhaps-getClass().getSimpleName()"); } -- Jeremy Thomerson http://www.wickettraining.com On Thu, Oct 16, 2008 at 10:57 AM, Azzeddine Daddah <[EMAIL PROTECTED]>wrote: > Hi there, > > I've a problem with appending a part of a javascript code to the head once > for all my concrete behavior classes. > Below what I do at this moment: > > JQueryBehavior class > public abstract class JQueryBehavior extends AbstractBehavior { >private static final String JQUERY_1_2_6 = "res/jquery-1.2.6.pack.js"; > >private static final CompressedResourceReference JQUERY_RESOURCE = new > CompressedResourceReference(JQueryBehavior.class, JQUERY_1_2_6); > >@Override >public void renderHead(IHeaderResponse response) { >response.renderJavascriptReference(JQUERY_RESOURCE); >CharSequence script = getOnReadyScript(); >if (StringUtils.isNotBlank((String) script)) { >StringBuilder sb = new StringBuilder() >.append(JavascriptUtils.SCRIPT_OPEN_TAG) >.append("\n$(document).ready(function() {\n") >.append(script) >.append("\n});") >.append(JavascriptUtils.SCRIPT_CLOSE_TAG) >.append("\n"); >response.renderString(sb.toString()); >} >} > >protected abstract CharSequence getOnReadyScript(); > > } > > My problem now is that I want the script open en close tags one time to be > appended to the head tag. And just add the script between these two > elements > for each behavior I create. Below an example of a behavior that passes his > script to the super class. > Is there any way, maybe something that Wicket already has, to control if > this part of the script already has been added? > > BlurFieldBehavior class > public class BlurFieldBehavior extends JQueryBehavior { >private static final String BLUR_FIELD_SCRIPT = "res/blurField.js"; >private static final String BLUR_FIELD_CSS_CALSS_NAME = "blur-input"; > >private static final ResourceReference PLUGINS_RESOURCE = new > JavascriptResourceReference(BlurFieldBehavior.class, BLUR_FIELD_SCRIPT); > >@Override >protected CharSequence getOnReadyScript() { >return String.format("\t$('input.%s').blurInput();", > BLUR_FIELD_CSS_CALSS_NAME); >} > >@Override >public void onComponentTag(Component component, ComponentTag tag) { >assert component instanceof TextField; >tag.addBehavior(new AttributeModifier("class", true, new > Model(BLUR_FIELD_CSS_CALSS_NAME))); >} > >@Override >public void renderHead(IHeaderResponse response) { >super.renderHead(response); >response.renderJavascriptReference(PLUGINS_RESOURCE); >} > } > > SearchPanel class > ... > private TextField createPhoneNumberTextField() { >TextField phoneNumberTextField = new TextField("phoneNumber", new > Model("Phone number")); >TextFieldUtils.addMaxLength(phoneNumberTextField, 11); >phoneNumberTextField.add(new BlurFieldBehavior()); >return phoneNumberTextField; >} > ... > > Thank you, > > Hbiloo >
Re: DHTML DnD best practice?
lol... fair enough. Thought it sounded too good to be true :) Serkan Camurcuoglu wrote: > > sorry for the misunderstanding, I meant to say "you're trying to build a > DnD version of the palette" (which doesn't exist yet :).. > -- View this message in context: http://www.nabble.com/DHTML-DnD-best-practice--tp20010633p20016826.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DHTML DnD best practice?
sorry for the misunderstanding, I meant to say "you're trying to build a DnD version of the palette" (which doesn't exist yet :).. Neil McT wrote: > > Hmm... I can only find the non-DnD version of the palette. Any idea where > the DnD version lives? > > > > Serkan Camurcuoglu wrote: >> >> it seems like you're talking about the DnD version of the Palette >> component in wicket extensions.. See its source code, maybe it will give >> you some idea.. >> >> >> > > -- View this message in context: http://www.nabble.com/DHTML-DnD-best-practice--tp20010633p20016823.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DHTML DnD best practice?
Hmm... I can only find the non-DnD version of the palette. Any idea where the DnD version lives? Serkan Camurcuoglu wrote: > > it seems like you're talking about the DnD version of the Palette > component in wicket extensions.. See its source code, maybe it will give > you some idea.. > > > -- View this message in context: http://www.nabble.com/DHTML-DnD-best-practice--tp20010633p20016818.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pages or components... how do u decide?
The system I'm building at the moment has almost everything pushed down into components. Most of the functionality is achieved by a single base page which takes a component in its constructor. For Bookmarkable pages, I extend this base page, and pass a component to the super. How do _you_ separate concerns? Is there a best practice? A benefit of using a page is that it can be accessed with "getPage()" regardless of how deep in the hierarchy you are... so I guess it could be useful for storing the primary model for that section of the site. Anyway, I'm interested in hearing how others deal with Page vs Components, and how they structure their applications. So many ways of skinning a cat :) Rgds Ned -- View this message in context: http://www.nabble.com/Pages-or-components...-how-do-u-decide--tp20016807p20016807.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: format in wicket generated html?
thanks. -- The only constant in life is change. - Original Message From: Igor Vaynberg <[EMAIL PROTECTED]> To: users@wicket.apache.org Sent: Thursday, October 16, 2008 1:44:52 PM Subject: Re: format in wicket generated html? get an editor that can format it for you -igor On Thu, Oct 16, 2008 at 1:35 PM, Beyonder Unknown <[EMAIL PROTECTED]>wrote: > > Hi Guys, > > I was wondering if there's a way that wicket can generate the html in with > indentation? Right now, when we view-source our wicket page in the browser, > it generates the html without tabs. All lines are left-aligned. > > Thanks in advance. > > Wen Tong > > -- > The only constant in life is change. > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: format in wicket generated html?
get an editor that can format it for you -igor On Thu, Oct 16, 2008 at 1:35 PM, Beyonder Unknown <[EMAIL PROTECTED]>wrote: > > Hi Guys, > > I was wondering if there's a way that wicket can generate the html in with > indentation? Right now, when we view-source our wicket page in the browser, > it generates the html without tabs. All lines are left-aligned. > > Thanks in advance. > > Wen Tong > > -- > The only constant in life is change. > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: format in wicket generated html?
get an editor that can format it for you -igor On Thu, Oct 16, 2008 at 1:35 PM, Beyonder Unknown <[EMAIL PROTECTED]>wrote: > > Hi Guys, > > I was wondering if there's a way that wicket can generate the html in with > indentation? Right now, when we view-source our wicket page in the browser, > it generates the html without tabs. All lines are left-aligned. > > Thanks in advance. > > Wen Tong > > -- > The only constant in life is change. > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
format in wicket generated html?
Hi Guys, I was wondering if there's a way that wicket can generate the html in with indentation? Right now, when we view-source our wicket page in the browser, it generates the html without tabs. All lines are left-aligned. Thanks in advance. Wen Tong -- The only constant in life is change. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket versus Spring MVC
here is really what it comes down to: springmvc/struts/etc are geared towards building stateless applications. building something statefull is hard in these frameworks because the burden of having to juggle state is on you and it is hard/impossible to get right when doing manually. wicket is geared towrads building stateful applications. it takes care of the state juggling so you dont have to. it is, however, hard to build stateless applications in wicket because you have to take care to use only stateless components - and even then you are back to having to juggle state yourself. an important, but peripheral point, is that wicket takes full advantage of OOP. frameworks like springmvc/struts are highly procedural, they give you a hierarchy and you usually just extend it one level deep. in wicket you have to build custom class hierarchies so you can factor out all the common bits and pieces of your application. do your developers know how to do this properly? if you showed your developers the repeater hierarchy of repeatingview through datatable and asked them to choose a base class for their usecase would they complain that there are too many classes to choose from? this is quiet a common complaint on this list by people who come from struts and friends :) so in the end you have to look at the kind of application you are building and the type of developers you have, and pick the framework based on that. -igor On Thu, Oct 16, 2008 at 12:28 PM, Richard Allen <[EMAIL PROTECTED]>wrote: > Hello, > > We have stateful, desktop-like Web applications based on Struts 1.x. We > want > to migrate them to a modern Java Web framework so we are trying to choose > what framework to use. The decision will be left up to myself and another > colleague with buy-in from other key people. > > The other colleague wants to use Spring MVC, which she just received > training on from SpringSource. I want to use a component-based framework > like Wicket. I think Wicket looks great, so I have been telling her that I > think we should consider using it instead of Spring MVC. I think it is a > better fit for the type of applications we produce. > > My colleague emailed the instructor from SpringSource and asked what he > thought of us migrating to Wicket instead of Spring MVC. His response is > below with my comments inlined. I would appreciate any convincing comments > from Wicket experts. > > Thanks, > Richard Allen > > Rich, > > Some background on what I am forwarding along... > > During last week's Spring Rich Client class I took full advantage of the > fact I had unlimited access to a SpringSource consultant/instructor. > > When he asked people why they were there, I brought up that we were > transitioning from Struts 1.X to something else, and the likely > candidates were Spring MVC and Wicket. > > Many of my questions to him over the course of the 4 days were focused > on that particular topic. > > And when he offered up his email address for contacts after the > class, I wrote it down and got back in touch with him this week (getting > our money's worth out of the face time, I like to think!) with some > well-deserved adulation for the course, some questions about the Spring > 3.0 release schedule and finally, a summary of the Spring MVC vs. Wicket > decision we face, trying to synthesize what I took away from the class. > > *** > > Specifically, in my email, I asked the question that you, an > experienced web developer, posed to me about moving our Struts app to > another MVC oriented framework (Spring MVC) vs. moving to a component > framework (Wicket). What I heard you say in so many words earlier this > week, was: > >"Why switch to something that is a little better than Struts 1, such > as Spring MVC, instead of moving to something altogether better like > Wicket?" > > And that is indeed a good question that cuts to the heart of the matter > we must decide going forward. > > We have a lot invested in MVC technology right now, and our developers > understand this approach. My instincts and experience on other > migrations say that a transition from Struts to Spring MVC will be an > easier migration than a movement to a different approach than Wicket. > > Wicket *is* an MVC framework, like Java Swing is an MVC framework. I would > argue that Wicket is *more* of an MVC framework in the classical sense than > Struts or Spring MVC. There is no doubt that Wicket absolutely does a > better > job of separation of concerns (one of the key philosophies behind MVC) than > any JSP/Velocity/Freemarker based framework. If developers are comfortable > in Java and OO (ours should be), and if they have ever done any Java Swing > development (many of us have because we have Swing applications), then > Wicket will feel natural. It is an easy transition. I do not believe that > getting our developers up to speed on Wicket will be as difficult as you > think. I believe, as a whole, Wicket is less complicated than Struts or > Spring
Re: Is there a way to get stateless DDC with onchange notification?
Point is, I want to make DDC with wantonselectionchange to true, stateless - what you did, unless I am missing something, is working for me too but its statefull and causes the otherwise stateless bookmarkable page to be stored in session and makes it statefull. pixologe wrote: > > You could simply extend DropDownChoice, overriding > wantOnSelectionChangedNotifications to return true. > Override onSelectionChanged also, and in there you can call > setResponsePage(...) to redirect to your other pages. > > Works fine for me. > > Hope this helps... > > > > Ritesh Trivedi wrote: >> >> Well if I understand it correctly, a component embedded inside (otherwise >> stateless) bookmarkable page checks if the page instance exists if not >> the page is to be newly created from the params or default constructor. >> So the page and the DDC doesnt necessarily have to be statefull. >> >> As about what I want to do - I just have a plain list of drop down items >> and depending on the one selected, I need to redirect to the bookmarkable >> page for the item. DDC values can just be ids which will be passed as >> bookmarkable param and will be used to look up the details of that >> entity. >> >> >> Johan Compagner wrote: >>> >>> It is statefull then because it has a callback to that page instance >>> and component. What do you want do do in the onchange method? >>> >>> On 10/15/08, Ritesh Trivedi <[EMAIL PROTECTED]> wrote: Hi, Is there a way to get stateless DDC with onchange notifications? Also would be helpful if someone could explain why the wantOnChangeNotification makes DDC stateful even if its enclosed within stateless form and in the stateless bookmarkable page? -- View this message in context: http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p19985764.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p20016192.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket versus Spring MVC
Hello, We have stateful, desktop-like Web applications based on Struts 1.x. We want to migrate them to a modern Java Web framework so we are trying to choose what framework to use. The decision will be left up to myself and another colleague with buy-in from other key people. The other colleague wants to use Spring MVC, which she just received training on from SpringSource. I want to use a component-based framework like Wicket. I think Wicket looks great, so I have been telling her that I think we should consider using it instead of Spring MVC. I think it is a better fit for the type of applications we produce. My colleague emailed the instructor from SpringSource and asked what he thought of us migrating to Wicket instead of Spring MVC. His response is below with my comments inlined. I would appreciate any convincing comments from Wicket experts. Thanks, Richard Allen Rich, Some background on what I am forwarding along... During last week's Spring Rich Client class I took full advantage of the fact I had unlimited access to a SpringSource consultant/instructor. When he asked people why they were there, I brought up that we were transitioning from Struts 1.X to something else, and the likely candidates were Spring MVC and Wicket. Many of my questions to him over the course of the 4 days were focused on that particular topic. And when he offered up his email address for contacts after the class, I wrote it down and got back in touch with him this week (getting our money's worth out of the face time, I like to think!) with some well-deserved adulation for the course, some questions about the Spring 3.0 release schedule and finally, a summary of the Spring MVC vs. Wicket decision we face, trying to synthesize what I took away from the class. *** Specifically, in my email, I asked the question that you, an experienced web developer, posed to me about moving our Struts app to another MVC oriented framework (Spring MVC) vs. moving to a component framework (Wicket). What I heard you say in so many words earlier this week, was: "Why switch to something that is a little better than Struts 1, such as Spring MVC, instead of moving to something altogether better like Wicket?" And that is indeed a good question that cuts to the heart of the matter we must decide going forward. We have a lot invested in MVC technology right now, and our developers understand this approach. My instincts and experience on other migrations say that a transition from Struts to Spring MVC will be an easier migration than a movement to a different approach than Wicket. Wicket *is* an MVC framework, like Java Swing is an MVC framework. I would argue that Wicket is *more* of an MVC framework in the classical sense than Struts or Spring MVC. There is no doubt that Wicket absolutely does a better job of separation of concerns (one of the key philosophies behind MVC) than any JSP/Velocity/Freemarker based framework. If developers are comfortable in Java and OO (ours should be), and if they have ever done any Java Swing development (many of us have because we have Swing applications), then Wicket will feel natural. It is an easy transition. I do not believe that getting our developers up to speed on Wicket will be as difficult as you think. I believe, as a whole, Wicket is less complicated than Struts or Spring MVC. If you have ever tried it, you would know what I mean. You should read this page: http://wicket.apache.org/introduction.html. And besides, Spring MVC is significantly different than Struts 1.x -- so much so that I think the transition from Struts 1.x to Spring will be nearly as tough. The only thing you gain is the overall framework concept: action-based. Once the developers understand the component-based concept (which is not hard to grasp -- think Java Swing), than you no longer get an experience advantage by using Spring MVC. But as you correctly pointed out, it's not just the ease of migration that drives our choice of technologies (again I'm paraphrasing what I heard you say) "If you end up with a product that is easier to maintain and grow in the long haul, it's worth it to pay the upfront cost in the migration process to get there." Absolutely true - we need to focus on the long term, not the short term, so that the redesigned framework that results will be as solid as the framework you and the original team put together based on Struts 1 however many years ago that was. But when I think about long term solutions, my sense is that Spring MVC addresses the shortfalls in the Struts approach head on. Plus, the overall integration of Spring MVC with other aspects of the Spring Framework offers us still more options down the road. I do agree that Spring MVC addresses the shortfalls in the Struts approach. However, Spring MVC does not address the short-falls in the action-based approach for a stateful, dynamic, desktop-like Web *application*. I believe that is one reason why Sun developed JSF. I'm sti
Re: Highlight some words in the markup content
Thanks all. The first tests work fine now, still need to handle the ignore-case searching... Is there anybody else interested in this feature? Then I will try to prepare the IResponseFilter implementation for public viewing/integration in Wicket. as far as i know the response filter runs within the request cycle and request cycle has metadata facility, so We already make use of RequestCycle.get(), but if you don't work on Wicket the full day like you, then one forgets such secrets. -- Cheers, Tom Igor Vaynberg wrote: as far as i know the response filter runs within the request cycle and request cycle has metadata facility, so -igor On Wed, Oct 15, 2008 at 10:07 AM, Thomas Singer <[EMAIL PROTECTED]> wrote: Thanks. But how the filter should know about the request which contains the information about what to highlight? -- Cheers, Tom Igor Vaynberg wrote: iresponsefilter -igor On Wed, Oct 15, 2008 at 8:22 AM, Thomas Singer <[EMAIL PROTECTED]> wrote: OK, this looks trivial, but were should I place this code to replace all content, no matter whether it comes from a page template, border or fragment? -- Cheers, Tom Martijn Dashorst wrote: tekst.replaceAll(searchword, "" + searchword + ""); label.setEscapeModelStrings(false); Martijn On Wed, Oct 15, 2008 at 3:56 PM, Thomas Singer <[EMAIL PROTECTED]> wrote: We are using Wicket as base for our website (www.syntevo.com). We have a simple search feature on the website, but want to extend it like it is known to work in forums: the searched words should be highlighted. Does someone already has implemented such a feature to surround plain words in the markup by a special tag? -- Cheers, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a way to get stateless DDC with onchange notification?
You could simply extend DropDownChoice, overriding wantOnSelectionChangedNotifications to return true. Override onSelectionChanged also, and in there you can call setResponsePage(...) to redirect to your other pages. Works fine for me. Hope this helps... Ritesh Trivedi wrote: > > Well if I understand it correctly, a component embedded inside (otherwise > stateless) bookmarkable page checks if the page instance exists if not the > page is to be newly created from the params or default constructor. So the > page and the DDC doesnt necessarily have to be statefull. > > As about what I want to do - I just have a plain list of drop down items > and depending on the one selected, I need to redirect to the bookmarkable > page for the item. DDC values can just be ids which will be passed as > bookmarkable param and will be used to look up the details of that entity. > > > Johan Compagner wrote: >> >> It is statefull then because it has a callback to that page instance >> and component. What do you want do do in the onchange method? >> >> On 10/15/08, Ritesh Trivedi <[EMAIL PROTECTED]> wrote: >>> >>> Hi, >>> >>> Is there a way to get stateless DDC with onchange notifications? Also >>> would >>> be helpful if someone could explain why the wantOnChangeNotification >>> makes >>> DDC stateful even if its enclosed within stateless form and in the >>> stateless >>> bookmarkable page? >>> -- >>> View this message in context: >>> http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p19985764.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p20016189.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Empty PageParametyers when using HybridUrlCodingStrategy
I don't understand. Reading the javadoc InlineFrame should set the src attribute. If that is not the case, try setting the src attribute with something like: myFrame.add(new AttributeModifier("src", new Model(urlFor(MyFrame.class, pageParameters; Regards, Erik. itayh wrote: Hi Erik, You are right, the src AttributeModifier overwrites params values. If I am not using the src AttributeModifier then the params has values and if I use it then the params are empty. But it seem that I must use the src AttributeModifier since I am using sitemesh decorators to decorate my pages according to the url, so I need to identify the iframes url from their container url. I need to decorate all my pages but I don't want to decorate the iframes (no need for headers and footers there). The src AttributeModifier is the only way I found how set the iframes url to what i want. Is there another way? Thanks alot, Itay -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Way to get page# and/or row count in the AbstractColumn?
you can pass the datatable reference into it. -igor On Thu, Oct 16, 2008 at 11:18 AM, Ritesh Trivedi <[EMAIL PROTECTED]>wrote: > > Hi, > > Is there a way to get the page # and row count from the AbstractColumn? > Need > that to display continuous index of items. > > > -- > View this message in context: > http://www.nabble.com/Way-to-get-page--and-or-row-count-in-the-AbstractColumn--tp20016163p20016163.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Way to get page# and/or row count in the AbstractColumn?
Hi, Is there a way to get the page # and row count from the AbstractColumn? Need that to display continuous index of items. -- View this message in context: http://www.nabble.com/Way-to-get-page--and-or-row-count-in-the-AbstractColumn--tp20016163p20016163.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Did someone a YUI splitbutton contribution?
Sure i know the contribution. But i didn't found the split button. Do you use the splitbutton? Can you please tell me the lib-version and the package it's related to? many thanks Per - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket + sso (jCIFS)
Hi James, > I think it's the order they are mapped in the web.xml file. The > declaration order doesn't decide what goes first/last. Basically, the > elements decide the order. right, but I used the word 'filter' not as a synonym for the xml-tags but the application of the filter definition. :-) But I think he got what I wanted to say, anyway. ;-) Best regards, --- Jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: have anyone tried empire-DB?
Yeah seems to be nice... At WUG DK we discussed. That if using stuff like hibernate, for simple cruds it's nice but if you have a complex object graph it becomes very troublesome to use (if you use cascade all etc.).. Ames, Tim wrote: Looks like it has a lot in common with JPersist. That is what I have been using. No XML, all POJO. -Original Message- From: Nino Saturnino Martinez Vazquez Wael [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 11:28 AM To: users@wicket.apache.org Subject: have anyone tried empire-DB? So have you tried it with wicket? http://incubator.apache.org/empire-db/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ EMAIL CONFIDENTIALITY NOTICE This Email message, and any attachments, may contain confidential patient health information that is legally protected. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of this message is strictly prohibited. If you have received this information in error, please notify the sender immediately by replying to this message and delete the message from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Easiest way to add column totals to a table?
Thanks. Will try this. Steve jwcarman wrote: > > Sorry, I mean addBottomToolbar() > > On Tue, Oct 14, 2008 at 1:25 PM, James Carman > <[EMAIL PROTECTED]> wrote: >> Have you tried creating a "toolbar"? You could call >> setBottomToolbar() on your DataTable. >> >> On Tue, Oct 14, 2008 at 1:21 PM, steve222 <[EMAIL PROTECTED]> >> wrote: >>> >>> Maybe I did not phrase my original the question well enough to get an >>> answer. >>> >>> I have a simple DataTable containing - let call it sales records. So, >>> some >>> columns have numbers (eg, sales prices, sales commission, etc). At the >>> bottom of the table, I need a row showing the of sales prices for all >>> items >>> in the table. >>> >>> I've done something like this in my Panel (this code has been chopped >>> about, >>> so may not be correct - but you get the idea): >>> >>> public class SalesPanel extends PanelBase { >>> >>>private double totalSales = 0.0d; >>>private Label totalSalesLabel = new Label("totalSalesLabel", ""); >>>private WebMarkupContainer listContainer = new >>> WebMarkupContainer("listContainer"); >>> >>>public SalesPanel (String id) { >>>super(id); >>> >>>listContainer.add(new DataView("sales", dataProvider) { >>> >>> int i = 0; >>> >>> protected void populateItem(final Item item) { >>> >>>SalesItem salesitem = (SalesItem) >>> item.getModelObject(); >>> >>>item.add(new Label("salesref", >>> String.valueOf(salesitem >>> .getRef(; >>> >>>// add all the other columns here... >>> >>>// increment the total >>>totalSales += salesitem .getSalesPrice(); >>>totalSalesLabel.setModel(new Model(totalSales)); >>> >>>i++; >>>// if we are on the last row, reset the total to >>> zero so >>>// total does not keep growing when panel is >>> redisplayed >>>// it's on a cached tab >>>if(i == dataProvider.size()){ >>> i = 0; >>> totalSales = 0; >>>} >>> } >>>}); >>> >>>addLabels(); >>>add(listContainer); >>> } >>> } >>> >>> >>> But maybe there is a better way. >>> >>> And maybe a way to do this in an AjaxFallbackDefaultDataTable? >>> >>> Steve >>> >>> >>> >>> >>> >>> steve222 wrote: What is the easiest way to get the final row in a table to show the column totals for numeric values? No need for paging or sorting - just a simple table with column totals in the final row. >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Easiest-way-to-add-column-totals-to-a-table--tp19927092p19978198.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Easiest-way-to-add-column-totals-to-a-table--tp19927092p20016024.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Close ModalWindow and Download a File
Hi, to easy up on my previous Q I need to do the following: I have a modal dialog with three buttons (actually AjaxLinks). One to Cancel and call modalDIalog.close(ajaxRequestTarget); And two buttons that need to close the modalWindow and download (open the Save File window) a file. One button will download the file with one option, and the other one with another option (I think this part is not that relevant though). Can you guide me a bit? thanks, f(t)
Redirect AjaxRequest to A File
Hi all, I wanted to know if it is possible to redirect an AjaxLink call to a file. Kind of like an expiration redirection but with a file... f(t)
Re: Is there a way to get stateless DDC with onchange notification?
On Thu, Oct 16, 2008 at 6:16 PM, Ritesh Trivedi <[EMAIL PROTECTED]>wrote: > > Well if I understand it correctly, a component embedded inside (otherwise > stateless) bookmarkable page checks if the page instance exists if not the > page is to be newly created from the params or default constructor. So the > page and the DDC doesnt necessarily have to be statefull. no that not the rule its just the other way around, a page is stateless if it doesnt have statefull components in it and the DDC generates a statefull link to itself so its self and because of that it is statefull > > > As about what I want to do - I just have a plain list of drop down items > and > depending on the one selected, I need to redirect to the bookmarkable page > for the item. DDC values can just be ids which will be passed as > bookmarkable param and will be used to look up the details of that entity. what you could do is just override: protected boolean getStatelessHint() and return true > > > > Johan Compagner wrote: > > > > It is statefull then because it has a callback to that page instance > > and component. What do you want do do in the onchange method? > > > > On 10/15/08, Ritesh Trivedi <[EMAIL PROTECTED]> wrote: > >> > >> Hi, > >> > >> Is there a way to get stateless DDC with onchange notifications? Also > >> would > >> be helpful if someone could explain why the wantOnChangeNotification > >> makes > >> DDC stateful even if its enclosed within stateless form and in the > >> stateless > >> bookmarkable page? > >> -- > >> View this message in context: > >> > http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p19985764.html > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p20015930.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
RE: have anyone tried empire-DB?
Looks like it has a lot in common with JPersist. That is what I have been using. No XML, all POJO. -Original Message- From: Nino Saturnino Martinez Vazquez Wael [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 11:28 AM To: users@wicket.apache.org Subject: have anyone tried empire-DB? So have you tried it with wicket? http://incubator.apache.org/empire-db/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ EMAIL CONFIDENTIALITY NOTICE This Email message, and any attachments, may contain confidential patient health information that is legally protected. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party unless required to do so by law or regulation and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or action taken in reliance on the contents of this message is strictly prohibited. If you have received this information in error, please notify the sender immediately by replying to this message and delete the message from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a way to get stateless DDC with onchange notification?
Well if I understand it correctly, a component embedded inside (otherwise stateless) bookmarkable page checks if the page instance exists if not the page is to be newly created from the params or default constructor. So the page and the DDC doesnt necessarily have to be statefull. As about what I want to do - I just have a plain list of drop down items and depending on the one selected, I need to redirect to the bookmarkable page for the item. DDC values can just be ids which will be passed as bookmarkable param and will be used to look up the details of that entity. Johan Compagner wrote: > > It is statefull then because it has a callback to that page instance > and component. What do you want do do in the onchange method? > > On 10/15/08, Ritesh Trivedi <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> Is there a way to get stateless DDC with onchange notifications? Also >> would >> be helpful if someone could explain why the wantOnChangeNotification >> makes >> DDC stateful even if its enclosed within stateless form and in the >> stateless >> bookmarkable page? >> -- >> View this message in context: >> http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p19985764.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p20015930.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Threading problem
requests from a single session are serialized. but what if your page is stateless and you click the two links fast? each click spins off a request that now needs a session and because they run concurrently two sessions are created because this is the first request that needs a session. try doing this in your page's constructor: Session.get().bind(); this will force wicket to create a http session when the page renders and will avoid this kind of problem. -igor On Thu, Oct 16, 2008 at 9:02 AM, Kaspar Fischer <[EMAIL PROTECTED]>wrote: > I run into a concurrency issue: My pages load fine when I visit > them slowly, one after the other with a pause between clicks. > However, if I click on two links on my page very, very fast, an > exception gets thrown. > > My session factory outputs the number of the thread and the hash > code of the session created (in chronological order): > > [89213] New [EMAIL PROTECTED] > [11349856] New [EMAIL PROTECTED] > > And after that, thread 89213 throws an exception: > > Access in thread 89213 to data in session @43f1c from a different thread > (11349856)! > > It seems that thread 89213 is accessing a session that was created > *later*. How can something like this happen in Wicket when it > handles requests (from a single session) sequentially? Any ideas? > > Thanks for any pointer, > Kaspar > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: How can I get hold of a palette's selected item?
you have to write code that will add your own onchange/onclick javascript handler -igor On Thu, Oct 16, 2008 at 8:32 AM, Asgaut Mjølne <[EMAIL PROTECTED]>wrote: > > Hi, > > Is it possible to get hold of the value of a palette's selected item, when > it is clicked (not double clicked)? > > The purpose is to view a description of each selected item in the palette: > When a user clicks whatever item in the palette, I want to get hold of this > item's value, then use it to retrieve a description from my DB, then show > this description in a text area right next to the palette. > > The onSubmit function in the code below is executed when the user clicks an > item in the palette, but I have no clue how to get hold of either the > clicked item or the value of it. > > myPalette.add(new AjaxFormSubmitBehavior(form, "onClick"){ >protected void onSubmit(AjaxRequestTarget target) { >//retrieve value here, but how?? >} > >}); > > > Thanks, > > > Asgaut Mjølne > -- > View this message in context: > http://www.nabble.com/How-can-I-get-hold-of-a-palette%27s-selected-item--tp20015714p20015714.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Threading problem
I run into a concurrency issue: My pages load fine when I visit them slowly, one after the other with a pause between clicks. However, if I click on two links on my page very, very fast, an exception gets thrown. My session factory outputs the number of the thread and the hash code of the session created (in chronological order): [89213] New [EMAIL PROTECTED] [11349856] New [EMAIL PROTECTED] And after that, thread 89213 throws an exception: Access in thread 89213 to data in session @43f1c from a different thread (11349856)! It seems that thread 89213 is accessing a session that was created *later*. How can something like this happen in Wicket when it handles requests (from a single session) sequentially? Any ideas? Thanks for any pointer, Kaspar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket + sso (jCIFS)
I think it's the order they are mapped in the web.xml file. The declaration order doesn't decide what goes first/last. Basically, the elements decide the order. On Thu, Oct 16, 2008 at 10:55 AM, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > Hi, > > filters are applied in order of their appearence in the web.xml - so when your > wicket-filter is applied, there hasn't any authentication been performed... > > Best regards, --- Jan. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: form components within an AccordionPanel
Hi Josh I've comitted the change.. I do not think we should upgrade the javascript dependencies.. jchappelle wrote: I copied you on the email I sent to the javascript developer but I want to post the solution that I found here so that it might help others. In the accordion-menu-v2.css file I commented out one line of code. Here is the snippet: html.accordion-menu-js dd.a-m-d-before-expand { display:block; position:relative; z-index:-1; opacity:0; height:auto !important; /* visibility:hidden;*/ overflow:visible; } The “visibility:hidden;” style was somehow causing the form component to not render. Like maybe its style was not being reset after it is expanded or something. I do want to point out that this was only occurring in IE7. When I removed it, it did not seem to break when viewed in other browsers, namely chrome and safari(Whole thing never works in Mozilla Firefox 5 but that's another issue). Nino, thanks for all your help. You might want to test this out and when you are convinced commit the changes to svn. I still think converting to a more stable framework will be good but this should be good bubble gum to plug the hole until then. Thanks, Josh Nino.Martinez wrote: Looking at YUI... They do actually link directly to the js I based the accordion component on: http://developer.yahoo.com/yui/animation/ Did you try writing to the guy who did the js script? Nino Saturnino Martinez Vazquez Wael wrote: jchappelle wrote: Yea, if it is having the problem in the javascript then it has nothing to do with wicket. I was just hoping you might be a javascript guru. :-) I only change stuff, if it's really needed. You could break a dozen things when correcting stuff.. I have recently found some javascript that works for me and I've almost got a component in wicket created for it. It will work for now. Okay great. However, it would be nice to have a component that is backed by a javascript library that is maintained and kept up to date like YUI. Yeah, thats my thought too. What ever 3rd party javascript api wicket changes it ajax to, i'll probably start doing components for.. I don't know if I would worry about the wicket:container or fieldset stuff. It looks like the big problem is with the javascript and until that is fixed there is no use in tweaking anything else. Yeah my thought too..:( Let me know if you update the component to use something like YUI. I would definately be interested in using it. I could even help out if you need. Okay.. I'll ponder over it.. Thanks, Josh Nino.Martinez wrote: Great that you have done some extensive diagnostics.. jchappelle wrote: Thanks for the quick response. I am using wicket 1.3.4. I have been able to reproduce my problem with a very simplified example that is just an extension of the wicket-contrib-accordion-examples project. I have taken the AccordionPage and added another menu item that has a TextField inside of it. It works fine in Safari and Google Chrome, but not in IE7 or Mozilla 5. In IE7 the input is not rendered at all when the menu item is expanded. However when you close it, it shows up for a split second and then goes away again before the menu item fully closes. Also, the normal menu items seem to show up fine when clicked, but when I close them they reopen again and then go closed really quickly. I have run the code with just the barebones html, css and javascript that is available at http://www.hedgerwow.com/360/mwd/accordion/demo.php and I am getting the same problem with the form components but not with the other I mentioned. Hmm if you get the same problem here, it's not so great:( Then it's out of my hands. And I'd say that we should pick another js lib that does not have these issues. I could be convinced to do some YUI equalent.. Could it be the span tags that are in the wicket code? Is it upset because of form components being inside of a span tag maybe? Could be, if this is the problem then it's a really really easy fix.. I can go see if I can replace it with wicket:container or fieldset? WDYT? Thanks for your time, Josh Nino.Martinez wrote: I forgot to mention, that I do think dojo are being picked up at wicket 1.4, some guys talked about it on the dev list. I take it you are using the 1.3? Nino Saturnino Martinez Vazquez Wael wrote: jchappelle wrote: I am trying to render a form inside a Panel within an AccordionPanel. I have even reduced it to trying to only render a TextArea inside a Panel within it. However, when I click on the title of one of the items it expands with noth
Re: page expire url
we do not know the page you came from since the instance is gone. the container doesnt tell you the session is about to expire, it tells you it has - at which point you can no longer access it. -igor On Thu, Oct 16, 2008 at 5:27 AM, itayh <[EMAIL PROTECTED]> wrote: > > Hi all, > > Is there any way I can control the page expire url? I am using ajax self > updating and when the page expire for some reason it turns into > > host:port/myapp/;jsessionid=9A04D7E548899E5E36381E6AEBCAD1AE?wicket:bookmarkablePage=:org.apache.wicket.markup.html.pages.PageExpiredErrorPage > > I need it to be url that i can control depends on the pages I came from. > > Thanks in advance, > Itay > -- > View this message in context: > http://www.nabble.com/page-expire-url-tp20012692p20012692.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Wicket FileUpload problem
put WicketSessionFilter over the servlet receiving the upload. -igor On Thu, Oct 16, 2008 at 7:06 AM, John Fehr <[EMAIL PROTECTED]> wrote: > Sorry, should have been more specific. I still need the wicket session > information, so I can process the file uploaded depending on which user is > logged in. > > Wicket generates the html for the page (based on the user logged in) that > includes the flash that uploads the file. The wicket part that receives > the > file then processes the file depending on the user, and sends back an > acknowledgement to the flash part along with information about how/where > the > file is stored. > > On Thu, Oct 16, 2008 at 1:35 AM, Igor Vaynberg <[EMAIL PROTECTED] > >wrote: > > > setup a servlet to receive the post > > > > -igor > > > > On Wed, Oct 15, 2008 at 11:25 PM, John Fehr <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > > > > I'm trying to figure out how to get a file uploaded using wicket > without > > a > > > form. That is, a flash piece is sending my wicket piece a file using > the > > > HTTP POST method. The post will have Content-Type of > > multipart/form-data, > > > Content-Disposition set to 'Filedata', a filename attribute, and the > > binary > > > contents of the file. > > > > > > All the examples I've been able to find involve setting up a form with > > > Wicket, and the doing the upload via an onclick, but that obviously > > > wouldn't > > > work in this case. > > > > > > Can anyone help? It would be greatly appreciated! > > > > > > John > > > > > >
How to append a javascript code part to the head once
Hi there, I've a problem with appending a part of a javascript code to the head once for all my concrete behavior classes. Below what I do at this moment: JQueryBehavior class public abstract class JQueryBehavior extends AbstractBehavior { private static final String JQUERY_1_2_6 = "res/jquery-1.2.6.pack.js"; private static final CompressedResourceReference JQUERY_RESOURCE = new CompressedResourceReference(JQueryBehavior.class, JQUERY_1_2_6); @Override public void renderHead(IHeaderResponse response) { response.renderJavascriptReference(JQUERY_RESOURCE); CharSequence script = getOnReadyScript(); if (StringUtils.isNotBlank((String) script)) { StringBuilder sb = new StringBuilder() .append(JavascriptUtils.SCRIPT_OPEN_TAG) .append("\n$(document).ready(function() {\n") .append(script) .append("\n});") .append(JavascriptUtils.SCRIPT_CLOSE_TAG) .append("\n"); response.renderString(sb.toString()); } } protected abstract CharSequence getOnReadyScript(); } My problem now is that I want the script open en close tags one time to be appended to the head tag. And just add the script between these two elements for each behavior I create. Below an example of a behavior that passes his script to the super class. Is there any way, maybe something that Wicket already has, to control if this part of the script already has been added? BlurFieldBehavior class public class BlurFieldBehavior extends JQueryBehavior { private static final String BLUR_FIELD_SCRIPT = "res/blurField.js"; private static final String BLUR_FIELD_CSS_CALSS_NAME = "blur-input"; private static final ResourceReference PLUGINS_RESOURCE = new JavascriptResourceReference(BlurFieldBehavior.class, BLUR_FIELD_SCRIPT); @Override protected CharSequence getOnReadyScript() { return String.format("\t$('input.%s').blurInput();", BLUR_FIELD_CSS_CALSS_NAME); } @Override public void onComponentTag(Component component, ComponentTag tag) { assert component instanceof TextField; tag.addBehavior(new AttributeModifier("class", true, new Model(BLUR_FIELD_CSS_CALSS_NAME))); } @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.renderJavascriptReference(PLUGINS_RESOURCE); } } SearchPanel class ... private TextField createPhoneNumberTextField() { TextField phoneNumberTextField = new TextField("phoneNumber", new Model("Phone number")); TextFieldUtils.addMaxLength(phoneNumberTextField, 11); phoneNumberTextField.add(new BlurFieldBehavior()); return phoneNumberTextField; } ... Thank you, Hbiloo
Re: wicket + sso (jCIFS)
Hi Jan, thank you a lot, not just it's working but I understand to filters a bit more =) kind regards, lenka Jan Kriesten wrote: > > > Hi, > > filters are applied in order of their appearence in the web.xml - so when > your > wicket-filter is applied, there hasn't any authentication been > performed... > > Best regards, --- Jan. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/wicket-%2B-sso-%28jCIFS%29-tp20014589p20015920.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: question on PageableLiveView
inside your you are missing something like for the components you add to the listitem -igor On Thu, Oct 16, 2008 at 4:38 AM, overseastars <[EMAIL PROTECTED]> wrote: > > > Hi all > > Here's just newbie's quesion on using PageableListView. > I'm trying to use PageableLiveView in my project. But it doesnt work. The > following is the error I got. As I can see, I do have that room_type > component in the html file. It just doesnt work. > Since I dont understand how PageableListView works, I just mimic the > library > example on the wicket website. > > Now I need this to show my search result and I dont know any other ways to > make pageable list. This is quite urgent to me. I need it to finish my > assignment. > > Could any buddy please help me out Many thanks.. > > === > WicketMessage: The component(s) below failed to render. A common problem is > that you have added a component in code but forgot to reference it in the > markup (thus the component will never be rendered). > > 1. [Component id = room_type, page = > com.smartbooking.wicket.page.RoomResultListPage, path = > 1:rooms:0:description:room_type.Label, isVisible = true, isVersioned = > true] > 2. [Component id = room_type, page = > com.smartbooking.wicket.page.RoomResultListPage, path = > 1:rooms:1:description:room_type.Label, isVisible = true, isVersioned = > true] > > Root cause: > > org.apache.wicket.WicketRuntimeException: The component(s) below failed to > render. A common problem is that you have added a component in code but > forgot to reference it in the markup (thus the component will never be > rendered). > > 1. [Component id = room_type, page = > com.smartbooking.wicket.page.RoomResultListPage, path = > 1:rooms:0:description:room_type.Label, isVisible = true, isVersioned = > true] > 2. [Component id = room_type, page = > com.smartbooking.wicket.page.RoomResultListPage, path = > 1:rooms:1:description:room_type.Label, isVisible = true, isVersioned = > true] > > at org.apache.wicket.Page.checkRendering(Page.java:1115) > ... > > > > Code: > > > ** > public class RoomResultListPage extends WebPage { > >public RoomResultListPage(final PageParameters parameters) { > >final PageableListView listView; >add(listView = new MyPageableListView("rooms", new > PropertyModel(this, > "rooms"), 2){ >@Override >protected void populateItem(final ListItem listitem) > { >final Room room = > (Room)listitem.getModelObject(); >listitem.add(RoomDetails.link("details", > room)); >listitem.add(RoomDetails.link("description", > room)); >} >}); >add(new PagingNavigator("navigator", listView)); >} >public List getRooms() >{ >List sample = new ArrayList(); > >Room room1 = new Room(); >room1.setRid(1L); >room1.setRoom_type("single"); >room1.setDescription("test1"); > >Room room2 = new Room(); > >room2.setRid(2L); >room2.setRoom_type("double"); >room2.setDescription("test2"); > >Room room3 = new Room(); > >room3.setRid(3L); >room3.setRoom_type("xing"); >room3.setDescription("test3"); > >sample.add(room1); >sample.add(room2); >sample.add(room3); >return sample; >} > } > > *** > public final class RoomDetails extends WebPage { > >public RoomDetails(final PageParameters pp){ > >} > >public RoomDetails(final Room room) { >// TODO Auto-generated constructor stub >add(new Label("room_type", room.getRoom_type())); >add(new Label("description", room.getDescription())); > >} > >public static BookmarkablePageLink link(final String name, >final Room room) { > >final BookmarkablePageLink link = new > BookmarkablePageLink(name, >RoomDetails.class); > >if (room != null) { >link.setParameter("rid", room.getRid()); >link.add(new Label("room_type", new Model(room))); >} else { >link.add(new Label("room_type", "No matched room > type")); >link.setEnabled(false); >} > >return link; > >} > } > > *
Re: More guice serialization problems
salve removes fields and performs just in time lookup of the dependency. so no serialization errors and your instances take up less ram. as far as wicket's guice support goes you should really do this InjectorHolder.getInjector().inject(this) - this will inject proxies instead of actual dependencies. -igor On Thu, Oct 16, 2008 at 3:11 AM, Edgar Merino <[EMAIL PROTECTED]> wrote: > Hello once again, > > wicket-guice integration has been working good for me, but I needed to > get some injected services in classes that were not Components, so I did: > > Injector injector = ( (GuiceInjectorHolder) > RequestCycle.get().getApplication().getMetaData(GuiceInjectorHolder.INJECTOR_KEY)).getInjector(); > injector.injectMembers(this); > > This arises serialization problems with the Guice injector, although I'm > not keeping a reference to the injector... this should be because the actual > injected service is not handled by a wicket ioc proxy. Igor suggested salve, > I've been doing some reading about it but haven't try it yet, but wouldn't > it just throw the same exception when using salve since it's not a proxy > either? or maybe this won't happen because salve would inject a local > dependency (inside a method) when needed? can anyone clarify this for me > (and maybe many others with the same doubt)? > > Thanks again for the help, > Edgar Merino > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: BRIX (Wicket and Jackrabbit)
currently brix only runs with jackrabbit, some extra work will be needed to get it to work with alfresco. brix uses jcr workspaces extensively and until jcr2.0 there is no standard method for doing this. so brix uses jackrabbit-specific code to accomplish this. if you want to use it with alfresco you will have to implement your own WorksapceManager that is specific to alfresco's workspace management api. anyways, this is better taken to the brix google discussion. -igor On Thu, Oct 16, 2008 at 12:20 AM, Nayak Vishal <[EMAIL PROTECTED]> wrote: > > > I am trying to run the brix demo. > > i have configured alfresco in my local system(which will me moved to > some central repository later). > > I have also installed RMI extension to it. So that i can access via rmi. > > > I am facing problems configuring it with alfresco in the > application.properties. > > Does any one have any idea what should go in > brixdemo.workspaceManagerUrl of application.properties. > > What should this workspace manager url contain ??? > > > > > application.properties > > brixdemo.jcr.defaultWorkspace = brix-demo-site > brixdemo.jcr.login=admin > brixdemo.jcr.password=admin > brixdemo.jcr.url=rmi://localhost:1099/javaContentRepository > > # url pointing to workspace manager implementation > # leave empty for filesystem repositories, > # for rmi backed repositories provide the rmi url > brixdemo.workspaceManagerUrl=rmi://localhost:1099/javaContentRepository > > brixdemo.httpPort=8082 > brixdemo.httpsPort=8443 > > Regards > Vishal Nayak > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: form components within an AccordionPanel
I copied you on the email I sent to the javascript developer but I want to post the solution that I found here so that it might help others. In the accordion-menu-v2.css file I commented out one line of code. Here is the snippet: html.accordion-menu-js dd.a-m-d-before-expand { display:block; position:relative; z-index:-1; opacity:0; height:auto !important; /* visibility:hidden;*/ overflow:visible; } The “visibility:hidden;” style was somehow causing the form component to not render. Like maybe its style was not being reset after it is expanded or something. I do want to point out that this was only occurring in IE7. When I removed it, it did not seem to break when viewed in other browsers, namely chrome and safari(Whole thing never works in Mozilla Firefox 5 but that's another issue). Nino, thanks for all your help. You might want to test this out and when you are convinced commit the changes to svn. I still think converting to a more stable framework will be good but this should be good bubble gum to plug the hole until then. Thanks, Josh Nino.Martinez wrote: > > Looking at YUI... They do actually link directly to the js I based the > accordion component on: > > http://developer.yahoo.com/yui/animation/ > > Did you try writing to the guy who did the js script? > > Nino Saturnino Martinez Vazquez Wael wrote: >> >> >> jchappelle wrote: >>> Yea, if it is having the problem in the javascript then it has >>> nothing to do >>> with wicket. I was just hoping you might be a javascript guru. :-) >> I only change stuff, if it's really needed. You could break a dozen >> things when correcting stuff.. >>> I have >>> recently found some javascript that works for me and I've almost got a >>> component in wicket created for it. It will work for now. >>> >> Okay great. >>> However, it would be nice to have a component that is backed by a >>> javascript >>> library that is maintained and kept up to date like YUI. >> Yeah, thats my thought too. What ever 3rd party javascript api wicket >> changes it ajax to, i'll probably start doing components for.. >>> I don't know if I >>> would worry about the wicket:container or fieldset stuff. It looks >>> like the >>> big problem is with the javascript and until that is fixed there is >>> no use >>> in tweaking anything else. >> Yeah my thought too..:( >>> Let me know if you update the component to use something like YUI. I >>> would >>> definately be interested in using it. I could even help out if you >>> need. >> Okay.. I'll ponder over it.. >>> Thanks, >>> >>> Josh >>> >>> >>> Nino.Martinez wrote: >>> Great that you have done some extensive diagnostics.. jchappelle wrote: > Thanks for the quick response. I am using wicket 1.3.4. I have been > able > to > reproduce my problem with a very simplified example that is just an > extension of the wicket-contrib-accordion-examples project. I have > taken > the > AccordionPage and added another menu item that has a TextField > inside of > it. > It works fine in Safari and Google Chrome, but not in IE7 or > Mozilla 5. > In > IE7 the input is not rendered at all when the menu item is expanded. > However > when you close it, it shows up for a split second and then goes away > again > before the menu item fully closes. Also, the normal menu items seem to > show > up fine when clicked, but when I close them they reopen again and > then go > closed really quickly. > I have run the code with just the barebones html, css and > javascript that > is > available at http://www.hedgerwow.com/360/mwd/accordion/demo.php > and I am > getting the same problem with the form components but not with the > other > I > mentioned. Hmm if you get the same problem here, it's not so great:( Then it's out of my hands. And I'd say that we should pick another js lib that does not have these issues. I could be convinced to do some YUI equalent.. > Could it be the span tags that are in the wicket code? Is it upset > because > of form components being inside of a span tag maybe? Could be, if this is the problem then it's a really really easy fix.. I can go see if I can replace it with wicket:container or fieldset? WDYT? > Thanks for your time, > > Josh > > > Nino.Martinez wrote: > >> I forgot to mention, that I do think dojo are being picked up at >> wicket 1.4, some guys talked about it on the dev list. I take it >> you are using the 1.3? >> >> Nino Saturnino Martinez Vazquez Wael wrote: >> >>> jchappelle wrote: >>> I am trying to render a form inside a Panel within an >>>
How can I get hold of a palette's selected item?
Hi, Is it possible to get hold of the value of a palette's selected item, when it is clicked (not double clicked)? The purpose is to view a description of each selected item in the palette: When a user clicks whatever item in the palette, I want to get hold of this item's value, then use it to retrieve a description from my DB, then show this description in a text area right next to the palette. The onSubmit function in the code below is executed when the user clicks an item in the palette, but I have no clue how to get hold of either the clicked item or the value of it. myPalette.add(new AjaxFormSubmitBehavior(form, "onClick"){ protected void onSubmit(AjaxRequestTarget target) { //retrieve value here, but how?? } }); Thanks, Asgaut Mjølne -- View this message in context: http://www.nabble.com/How-can-I-get-hold-of-a-palette%27s-selected-item--tp20015714p20015714.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: form components within an AccordionPanel
Ahh I could update it.. And I think i will.. jchappelle wrote: It looks like the files they are using are http://yui.yahooapis.com/2.6.0/build/animation/animation-min.js http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js and the files that our accordion uses are http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js So it looks like they are different unless you were referring to something else that I didn't see. I haven't tried to contact him but I will do that. I'll let you know if I find out anything. Thanks, Josh Nino.Martinez wrote: Looking at YUI... They do actually link directly to the js I based the accordion component on: http://developer.yahoo.com/yui/animation/ Did you try writing to the guy who did the js script? Nino Saturnino Martinez Vazquez Wael wrote: jchappelle wrote: Yea, if it is having the problem in the javascript then it has nothing to do with wicket. I was just hoping you might be a javascript guru. :-) I only change stuff, if it's really needed. You could break a dozen things when correcting stuff.. I have recently found some javascript that works for me and I've almost got a component in wicket created for it. It will work for now. Okay great. However, it would be nice to have a component that is backed by a javascript library that is maintained and kept up to date like YUI. Yeah, thats my thought too. What ever 3rd party javascript api wicket changes it ajax to, i'll probably start doing components for.. I don't know if I would worry about the wicket:container or fieldset stuff. It looks like the big problem is with the javascript and until that is fixed there is no use in tweaking anything else. Yeah my thought too..:( Let me know if you update the component to use something like YUI. I would definately be interested in using it. I could even help out if you need. Okay.. I'll ponder over it.. Thanks, Josh Nino.Martinez wrote: Great that you have done some extensive diagnostics.. jchappelle wrote: Thanks for the quick response. I am using wicket 1.3.4. I have been able to reproduce my problem with a very simplified example that is just an extension of the wicket-contrib-accordion-examples project. I have taken the AccordionPage and added another menu item that has a TextField inside of it. It works fine in Safari and Google Chrome, but not in IE7 or Mozilla 5. In IE7 the input is not rendered at all when the menu item is expanded. However when you close it, it shows up for a split second and then goes away again before the menu item fully closes. Also, the normal menu items seem to show up fine when clicked, but when I close them they reopen again and then go closed really quickly. I have run the code with just the barebones html, css and javascript that is available at http://www.hedgerwow.com/360/mwd/accordion/demo.php and I am getting the same problem with the form components but not with the other I mentioned. Hmm if you get the same problem here, it's not so great:( Then it's out of my hands. And I'd say that we should pick another js lib that does not have these issues. I could be convinced to do some YUI equalent.. Could it be the span tags that are in the wicket code? Is it upset because of form components being inside of a span tag maybe? Could be, if this is the problem then it's a really really easy fix.. I can go see if I can replace it with wicket:container or fieldset? WDYT? Thanks for your time, Josh Nino.Martinez wrote: I forgot to mention, that I do think dojo are being picked up at wicket 1.4, some guys talked about it on the dev list. I take it you are using the 1.3? Nino Saturnino Martinez Vazquez Wael wrote: jchappelle wrote: I am trying to render a form inside a Panel within an AccordionPanel. I have even reduced it to trying to only render a TextArea inside a Panel within it. However, when I click on the title of one of the items it expands with nothing but white space within it. Sounds a little wierd. What I would do would be to try to have a simple mock html that used the accordion js and see if I could replicate it there. Theres also a chance that the author of accordion.js has some hints on this. The examples for the AccordionPanel only have a Label inside a Panel as the content. Yeah that's what I needed at the time
have anyone tried empire-DB?
So have you tried it with wicket? http://incubator.apache.org/empire-db/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Customize sortable datatable (css, html attributes and sort)
Hello, I am testing Wicket possibilities in order to launch the development of a new application. I wanted to display a sortable datatable, so I read this: http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html It works fine but I have few questions: -1. This example is up to date? 0. Is it the best solution? 1. I read the html generated source code and I write css classes: headers, wicket_orderUp, even, odd, etc. Is it possible to put my own css class names? For example, can I put a different class for the first header column only? 2. I notice that the sort is working fine but can I customize it? For example, I do not want to sort date by alphabetic order. 3. Is it possible to i18n the navigator label ("Showing 1 to 5 of 15")? 4. Is it possible to fix the witdh of each column? Just nowrap! Where I put the "new SimpleAttributeModifier("nowrap", "nowrap")"? lol Thank you for reading Thank you very much for some future answers Have a good day Nico -- View this message in context: http://www.nabble.com/Customize-sortable-datatable-%28css%2C-html-attributes-and-sort%29-tp20015233p20015233.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket + sso (jCIFS)
Hi, filters are applied in order of their appearence in the web.xml - so when your wicket-filter is applied, there hasn't any authentication been performed... Best regards, --- Jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Development Platform
Hello guys, thank you for the feedback. best regards greeklinux wrote: > > Hello wicket users, > > I have to bye a new notebook and I am thinking about the new > Apple MacBook Pro. > > I am using Ubuntu for my development, Java/Wicket with maven, > Eclipse/Idea, Tomcat. > > Are here any Mac OS X users and developers with pros and cons? I want to > know > if Mac OS X will be a good dev platform, because I am new to it. > > Hear about your experiences, would be great! > > > -- View this message in context: http://www.nabble.com/Development-Platform-tp20009661p20015001.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: form components within an AccordionPanel
It looks like the files they are using are http://yui.yahooapis.com/2.6.0/build/animation/animation-min.js http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js and the files that our accordion uses are http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/yahoo_2.0.0-b2.js http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/event_2.0.0-b2.js http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/dom_2.0.2-b3.js http://us.js2.yimg.com/us.js.yimg.com/lib/common/utils/2/animation_2.0.0-b3.js So it looks like they are different unless you were referring to something else that I didn't see. I haven't tried to contact him but I will do that. I'll let you know if I find out anything. Thanks, Josh Nino.Martinez wrote: > > Looking at YUI... They do actually link directly to the js I based the > accordion component on: > > http://developer.yahoo.com/yui/animation/ > > Did you try writing to the guy who did the js script? > > Nino Saturnino Martinez Vazquez Wael wrote: >> >> >> jchappelle wrote: >>> Yea, if it is having the problem in the javascript then it has >>> nothing to do >>> with wicket. I was just hoping you might be a javascript guru. :-) >> I only change stuff, if it's really needed. You could break a dozen >> things when correcting stuff.. >>> I have >>> recently found some javascript that works for me and I've almost got a >>> component in wicket created for it. It will work for now. >>> >> Okay great. >>> However, it would be nice to have a component that is backed by a >>> javascript >>> library that is maintained and kept up to date like YUI. >> Yeah, thats my thought too. What ever 3rd party javascript api wicket >> changes it ajax to, i'll probably start doing components for.. >>> I don't know if I >>> would worry about the wicket:container or fieldset stuff. It looks >>> like the >>> big problem is with the javascript and until that is fixed there is >>> no use >>> in tweaking anything else. >> Yeah my thought too..:( >>> Let me know if you update the component to use something like YUI. I >>> would >>> definately be interested in using it. I could even help out if you >>> need. >> Okay.. I'll ponder over it.. >>> Thanks, >>> >>> Josh >>> >>> >>> Nino.Martinez wrote: >>> Great that you have done some extensive diagnostics.. jchappelle wrote: > Thanks for the quick response. I am using wicket 1.3.4. I have been > able > to > reproduce my problem with a very simplified example that is just an > extension of the wicket-contrib-accordion-examples project. I have > taken > the > AccordionPage and added another menu item that has a TextField > inside of > it. > It works fine in Safari and Google Chrome, but not in IE7 or > Mozilla 5. > In > IE7 the input is not rendered at all when the menu item is expanded. > However > when you close it, it shows up for a split second and then goes away > again > before the menu item fully closes. Also, the normal menu items seem to > show > up fine when clicked, but when I close them they reopen again and > then go > closed really quickly. > I have run the code with just the barebones html, css and > javascript that > is > available at http://www.hedgerwow.com/360/mwd/accordion/demo.php > and I am > getting the same problem with the form components but not with the > other > I > mentioned. Hmm if you get the same problem here, it's not so great:( Then it's out of my hands. And I'd say that we should pick another js lib that does not have these issues. I could be convinced to do some YUI equalent.. > Could it be the span tags that are in the wicket code? Is it upset > because > of form components being inside of a span tag maybe? Could be, if this is the problem then it's a really really easy fix.. I can go see if I can replace it with wicket:container or fieldset? WDYT? > Thanks for your time, > > Josh > > > Nino.Martinez wrote: > >> I forgot to mention, that I do think dojo are being picked up at >> wicket 1.4, some guys talked about it on the dev list. I take it >> you are using the 1.3? >> >> Nino Saturnino Martinez Vazquez Wael wrote: >> >>> jchappelle wrote: >>> I am trying to render a form inside a Panel within an AccordionPanel. I have even reduced it to trying to only render a TextArea inside a Panel within it. However, when I click on the title of one of the items it expands with nothing but white space within it. >>> Sounds a little wierd. What I would do would be to try to have a >>> simple mock html that used the accordion js and see if I could >
wicket + sso (jCIFS)
Hi, I have a follow problem. I would like to use jCIFS authetication with wicket. I have all necessary configuration in web.xml. WicketApplication /* NTLMFilter jcifs.http.NtlmHttpFilter jcifs.http.domainController 192.168.0.1 NTLMFilter /* I have done jCIFS in JSP, and it's working. So web.xml should be for sure good. However I encountered problem with following that: user is null. However host and port are as it is expected. HttpServletRequest request = ((WebRequest)getRequest()).getHttpServletRequest(); String user = (String) request .getRemoteUser(); String host = (String) request.getRemoteHost(); String port = Integer.toString(request.getRemotePort()); Any ideas pls? -- View this message in context: http://www.nabble.com/wicket-%2B-sso-%28jCIFS%29-tp20014589p20014589.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: page expire url
yep, but it isn't dynamic... Francis De Brabandere a écrit : getApplicationSettings().setPageExpiredErrorPage(Page.class); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: page expire url
getApplicationSettings().setPageExpiredErrorPage(Page.class); On Thu, Oct 16, 2008 at 3:33 PM, Piller Sébastien <[EMAIL PROTECTED]> wrote: > I've the same requirement, and til now I didn't find any solution. > > PageExpired means the session is dead, so you have lost any information of > the user. > > Maybe some core developpers may have a solution? > > > itayh a écrit : >> >> Hi all, >> >> Is there any way I can control the page expire url? I am using ajax self >> updating and when the page expire for some reason it turns into >> >> host:port/myapp/;jsessionid=9A04D7E548899E5E36381E6AEBCAD1AE?wicket:bookmarkablePage=:org.apache.wicket.markup.html.pages.PageExpiredErrorPage >> >> I need it to be url that i can control depends on the pages I came from. >> >> Thanks in advance, >> Itay >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket FileUpload problem
Sorry, should have been more specific. I still need the wicket session information, so I can process the file uploaded depending on which user is logged in. Wicket generates the html for the page (based on the user logged in) that includes the flash that uploads the file. The wicket part that receives the file then processes the file depending on the user, and sends back an acknowledgement to the flash part along with information about how/where the file is stored. On Thu, Oct 16, 2008 at 1:35 AM, Igor Vaynberg <[EMAIL PROTECTED]>wrote: > setup a servlet to receive the post > > -igor > > On Wed, Oct 15, 2008 at 11:25 PM, John Fehr <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > I'm trying to figure out how to get a file uploaded using wicket without > a > > form. That is, a flash piece is sending my wicket piece a file using the > > HTTP POST method. The post will have Content-Type of > multipart/form-data, > > Content-Disposition set to 'Filedata', a filename attribute, and the > binary > > contents of the file. > > > > All the examples I've been able to find involve setting up a form with > > Wicket, and the doing the upload via an onclick, but that obviously > > wouldn't > > work in this case. > > > > Can anyone help? It would be greatly appreciated! > > > > John > > >
Re: page expire url
I've the same requirement, and til now I didn't find any solution. PageExpired means the session is dead, so you have lost any information of the user. Maybe some core developpers may have a solution? itayh a écrit : Hi all, Is there any way I can control the page expire url? I am using ajax self updating and when the page expire for some reason it turns into host:port/myapp/;jsessionid=9A04D7E548899E5E36381E6AEBCAD1AE?wicket:bookmarkablePage=:org.apache.wicket.markup.html.pages.PageExpiredErrorPage I need it to be url that i can control depends on the pages I came from. Thanks in advance, Itay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
page expire url
Hi all, Is there any way I can control the page expire url? I am using ajax self updating and when the page expire for some reason it turns into host:port/myapp/;jsessionid=9A04D7E548899E5E36381E6AEBCAD1AE?wicket:bookmarkablePage=:org.apache.wicket.markup.html.pages.PageExpiredErrorPage I need it to be url that i can control depends on the pages I came from. Thanks in advance, Itay -- View this message in context: http://www.nabble.com/page-expire-url-tp20012692p20012692.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Page expires on calling ModalWinow.close(target)
I have a modal window for uploading a picture. After uploading the image the user is taken to a preview page inside a modal window itself and if the user clicks on the button window.close(target) is called and i get a message "page expired". Please help! -- View this message in context: http://www.nabble.com/Page-expires-on-calling-ModalWinow.close%28target%29-tp20012621p20012621.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DHTML DnD best practice?
it seems like you're talking about the DnD version of the Palette component in wicket extensions.. See its source code, maybe it will give you some idea.. Neil McT wrote: > > Hi, > > I'm wondering what would be the best way to enable dhtml drag n drop in > Wicket. > > Its a fairly typical use-case I have 2 divs, one is a container of > draggables, the other is a container of droppables - i.e. where the > draggables will be dragged to. This is not an ajax question as there is no > need for any server side round-trip on each drop - only some kind of > submit button once the user is happy with what they have dragged on. > > I have the front-end component working (using jquery ui drag n drop) but > my question is... what would be the recommended way to communicate the > dropped objects to the server side using wicket? I.e. what would be the > recommended component to bind the 'droppable' container (or individual > droppable objects) to and how would you guys recommend that I reconstruct > the dropped objects on the server side? > > I have thought of various ways I can enable this, but none of these seem > particularly like the 'right' Wicket way - and kind of smack of the way I > would have done things in, say, struts. > > Thanks in advance. > -- View this message in context: http://www.nabble.com/DHTML-DnD-best-practice--tp20010633p20012188.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Domain Model as interfaces
By the way, I just added a DB4O implementation to Domdrides. The only catch is that you have to download DB4O yourself and install into your local maven repository to get the build to work. Good luck! Hope that helps. On Thu, Oct 16, 2008 at 6:27 AM, James Carman <[EMAIL PROTECTED]> wrote: > Are you using interfaces for your entities or your repositories > (DAOs)? If you'd like a library to start from, check out Domdrides (a > DOMain-DRIven DESign library): > > http://domdrides.sourceforge.net > > Basically, it provides a common API for doing domain-driven design and > also provides some useful superclasses for doing repositories using > different ORM implementations (currently Hibernate, JPA, and iBATIS, > but a DB4O implementation would be welcomed). > > On Wed, Oct 15, 2008 at 9:00 PM, Edgar Merino <[EMAIL PROTECTED]> wrote: >> Hello, >> >> I couldn't find any other place to post this, so I'm doing it here, (it's >> related to java web development anyway). I've been working on a project >> where wicket has access to the domain layer through interfaces because I >> didn't want my project to depend on any dbms, however I've been thinking and >> the main problem here lies with db4o, since it cannot make use of JPA >> annotations on entities (domain models). I would like to get rid of those >> interfaces and use concrete implementations to handle business code inside >> the entities, but then the above problem arises. So what recommendations can >> you give to have a fully implemented domain model (using jpa annotations) >> but still be able to use any dbms (or orm/dmbs) without having to map those >> the domain model at the service layer? I hope I can get some feedback on >> this, as it has been the main problem I've been facing when coding scalable >> web applications. >> >> Regards, >> Edgar Merino >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
question on PageableLiveView
Hi all Here's just newbie's quesion on using PageableListView. I'm trying to use PageableLiveView in my project. But it doesnt work. The following is the error I got. As I can see, I do have that room_type component in the html file. It just doesnt work. Since I dont understand how PageableListView works, I just mimic the library example on the wicket website. Now I need this to show my search result and I dont know any other ways to make pageable list. This is quite urgent to me. I need it to finish my assignment. Could any buddy please help me out Many thanks.. === WicketMessage: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [Component id = room_type, page = com.smartbooking.wicket.page.RoomResultListPage, path = 1:rooms:0:description:room_type.Label, isVisible = true, isVersioned = true] 2. [Component id = room_type, page = com.smartbooking.wicket.page.RoomResultListPage, path = 1:rooms:1:description:room_type.Label, isVisible = true, isVersioned = true] Root cause: org.apache.wicket.WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered). 1. [Component id = room_type, page = com.smartbooking.wicket.page.RoomResultListPage, path = 1:rooms:0:description:room_type.Label, isVisible = true, isVersioned = true] 2. [Component id = room_type, page = com.smartbooking.wicket.page.RoomResultListPage, path = 1:rooms:1:description:room_type.Label, isVisible = true, isVersioned = true] at org.apache.wicket.Page.checkRendering(Page.java:1115) ... Code: ** public class RoomResultListPage extends WebPage { public RoomResultListPage(final PageParameters parameters) { final PageableListView listView; add(listView = new MyPageableListView("rooms", new PropertyModel(this, "rooms"), 2){ @Override protected void populateItem(final ListItem listitem) { final Room room = (Room)listitem.getModelObject(); listitem.add(RoomDetails.link("details", room)); listitem.add(RoomDetails.link("description", room)); } }); add(new PagingNavigator("navigator", listView)); } public List getRooms() { List sample = new ArrayList(); Room room1 = new Room(); room1.setRid(1L); room1.setRoom_type("single"); room1.setDescription("test1"); Room room2 = new Room(); room2.setRid(2L); room2.setRoom_type("double"); room2.setDescription("test2"); Room room3 = new Room(); room3.setRid(3L); room3.setRoom_type("xing"); room3.setDescription("test3"); sample.add(room1); sample.add(room2); sample.add(room3); return sample; } } *** public final class RoomDetails extends WebPage { public RoomDetails(final PageParameters pp){ } public RoomDetails(final Room room) { // TODO Auto-generated constructor stub add(new Label("room_type", room.getRoom_type())); add(new Label("description", room.getDescription())); } public static BookmarkablePageLink link(final String name, final Room room) { final BookmarkablePageLink link = new BookmarkablePageLink(name, RoomDetails.class); if (room != null) { link.setParameter("rid", room.getRid()); link.add(new Label("room_type", new Model(room))); } else { link.add(new Label("room_type", "No matched room type")); link.setEnabled(false); } return link; } } ** Room Type Description # Huckleberry Finn Mark Twain *
Re: Domain Model as interfaces
hello daniel, well yeah, maybe that can work, but still I'll have to override every method in the base class in order to add annotations: ... @Id @GeneratedStrategy(..) public Integer getId() { return super.getId(); } ... same thing for every getter/setter methods of the entity. I would like to be able to switch easily between persistence providers because right now I'm using hibernate but would like to change the provider to db4o when I've got the time to do so, also this is a project I intend to release so anyone can add the persistence provider they need easily. Regards, Edgar Merino Daniel Frisk escribió: Hi, I'm not sure I understand exactly what is your problem but wouldn't something like this: Db4oImpl / JpaImpl / WhateverImpl ---extends---> AbstractBaseClassWithYourBusinessLogic ---implements---> YourInterface Where needed you would delegate to the base class (just adding the impl specific annotation). Just out of interest: do you really need to be able to easily switch between different persistence providers? // Daniel jalbum.net On 2008-10-16, at 03:00, Edgar Merino wrote: Hello, I couldn't find any other place to post this, so I'm doing it here, (it's related to java web development anyway). I've been working on a project where wicket has access to the domain layer through interfaces because I didn't want my project to depend on any dbms, however I've been thinking and the main problem here lies with db4o, since it cannot make use of JPA annotations on entities (domain models). I would like to get rid of those interfaces and use concrete implementations to handle business code inside the entities, but then the above problem arises. So what recommendations can you give to have a fully implemented domain model (using jpa annotations) but still be able to use any dbms (or orm/dmbs) without having to map those the domain model at the service layer? I hope I can get some feedback on this, as it has been the main problem I've been facing when coding scalable web applications. Regards, Edgar Merino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Domain Model as interfaces
Are you using interfaces for your entities or your repositories (DAOs)? If you'd like a library to start from, check out Domdrides (a DOMain-DRIven DESign library): http://domdrides.sourceforge.net Basically, it provides a common API for doing domain-driven design and also provides some useful superclasses for doing repositories using different ORM implementations (currently Hibernate, JPA, and iBATIS, but a DB4O implementation would be welcomed). On Wed, Oct 15, 2008 at 9:00 PM, Edgar Merino <[EMAIL PROTECTED]> wrote: > Hello, > > I couldn't find any other place to post this, so I'm doing it here, (it's > related to java web development anyway). I've been working on a project > where wicket has access to the domain layer through interfaces because I > didn't want my project to depend on any dbms, however I've been thinking and > the main problem here lies with db4o, since it cannot make use of JPA > annotations on entities (domain models). I would like to get rid of those > interfaces and use concrete implementations to handle business code inside > the entities, but then the above problem arises. So what recommendations can > you give to have a fully implemented domain model (using jpa annotations) > but still be able to use any dbms (or orm/dmbs) without having to map those > the domain model at the service layer? I hope I can get some feedback on > this, as it has been the main problem I've been facing when coding scalable > web applications. > > Regards, > Edgar Merino > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
More guice serialization problems
Hello once again, wicket-guice integration has been working good for me, but I needed to get some injected services in classes that were not Components, so I did: Injector injector = ( (GuiceInjectorHolder) RequestCycle.get().getApplication().getMetaData(GuiceInjectorHolder.INJECTOR_KEY)).getInjector(); injector.injectMembers(this); This arises serialization problems with the Guice injector, although I'm not keeping a reference to the injector... this should be because the actual injected service is not handled by a wicket ioc proxy. Igor suggested salve, I've been doing some reading about it but haven't try it yet, but wouldn't it just throw the same exception when using salve since it's not a proxy either? or maybe this won't happen because salve would inject a local dependency (inside a method) when needed? can anyone clarify this for me (and maybe many others with the same doubt)? Thanks again for the help, Edgar Merino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Development Platform
Francis De Brabandere wrote: Buying a mac doesn't force you to use macos, I just love their hardware but stick to linux as dev environment. My mac mini has a ubuntu/macos dual boot. Yup I know. It should be listed as a pro:) If you are going to stick with ubuntu better check if there are any issues with the new macbooks. I've read about thermal and suspend problems with the old macbooks but on my mac mini ubuntu runs smoothly. Ahh good with a heads up.. On Thu, Oct 16, 2008 at 11:12 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: Hi We use Mac's here at our office too, namely the Apple MacBook Pro. As Martijn mentioned apple are a bit slow on the java side, and pretty elusive about information.. We have no problems using mac's. And I never shutdown my mac, always hibernate once every 3 or 4 weeks it crashes(but it's probably me disconnecting devices when it's sleeping) when I open it so it's pretty stable. So the pros: Unix like os Small laptop, but with largescreen usually noiseless eye candy effect (hey even the guys in CSI uses it) cons: expensive java support slow... If you ask me what OS/laptop I would use next.. I'd probably go for ubuntu, just to try it out, possibly on a mac pro. The idea/Eclipse part. I hear that once youve gotten use to idea it should be really fast, because of their very good refactoring support. On the otherhand idea are a commercial license.. For now I use Eclipse 3.4 JEE version. greeklinux wrote: Hello wicket users, I have to bye a new notebook and I am thinking about the new Apple MacBook Pro. I am using Ubuntu for my development, Java/Wicket with maven, Eclipse/Idea, Tomcat. Are here any Mac OS X users and developers with pros and cons? I want to know if Mac OS X will be a good dev platform, because I am new to it. Hear about your experiences, would be great! -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DHTML DnD best practice?
Hi, I'm wondering what would be the best way to enable dhtml drag n drop in Wicket. Its a fairly typical use-case I have 2 divs, one is a container of draggables, the other is a container of droppables - i.e. where the draggables will be dragged to. This is not an ajax question as there is no need for any server side round-trip on each drop - only some kind of submit button once the user is happy with what they have dragged on. I have the front-end component working (using jquery ui drag n drop) but my question is... what would be the recommended way to communicate the dropped objects to the server side using wicket? I.e. what would be the recommended component to bind the 'droppable' container (or individual droppable objects) to and how would you guys recommend that I reconstruct the dropped objects on the server side? I have thought of various ways I can enable this, but none of these seem particularly like the 'right' Wicket way - and kind of smack of the way I would have done things in, say, struts. Thanks in advance. -- View this message in context: http://www.nabble.com/DHTML-DnD-best-practice--tp20010633p20010633.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Development Platform
Buying a mac doesn't force you to use macos, I just love their hardware but stick to linux as dev environment. My mac mini has a ubuntu/macos dual boot. If you are going to stick with ubuntu better check if there are any issues with the new macbooks. I've read about thermal and suspend problems with the old macbooks but on my mac mini ubuntu runs smoothly. On Thu, Oct 16, 2008 at 11:12 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > Hi > > We use Mac's here at our office too, namely the Apple MacBook Pro. As > Martijn mentioned apple are a bit slow on the java side, and pretty elusive > about information.. > > We have no problems using mac's. And I never shutdown my mac, always > hibernate once every 3 or 4 weeks it crashes(but it's probably me > disconnecting devices when it's sleeping) when I open it so it's pretty > stable. > > So the > > pros: > Unix like os > Small laptop, but with largescreen > usually noiseless > eye candy effect (hey even the guys in CSI uses it) > > cons: > expensive > java support slow... > > If you ask me what OS/laptop I would use next.. I'd probably go for ubuntu, > just to try it out, possibly on a mac pro. > > The idea/Eclipse part. I hear that once youve gotten use to idea it should > be really fast, because of their very good refactoring support. On the > otherhand idea are a commercial license.. For now I use Eclipse 3.4 JEE > version. > > greeklinux wrote: >> >> Hello wicket users, >> >> I have to bye a new notebook and I am thinking about the new >> Apple MacBook Pro. >> I am using Ubuntu for my development, Java/Wicket with maven, >> Eclipse/Idea, >> Tomcat. >> >> Are here any Mac OS X users and developers with pros and cons? I want to >> know >> if Mac OS X will be a good dev platform, because I am new to it. >> >> Hear about your experiences, would be great! >> >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Did someone a YUI splitbutton contribution?
there's yui menu in wicket-stuff - I am using it :) wicket-contrib-yui / examples 2008/10/9 Newgro <[EMAIL PROTECTED]> > > Hi *, > > i would like to integrate the yui splitbutton into my application. I tried > to integrate it myself, but it's a hopeless with my small experience in > building components. > > Has someone already contributed the YUI splitbutton and can share the > solution? > > http://developer.yahoo.com/yui/examples/button/btn_example08.html# YUI > Splitbutton Homepage > > Thanks > Per > -- > View this message in context: > http://www.nabble.com/Did-someone-a-YUI-splitbutton-contribution--tp19894111p19894111.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Development Platform
Hi We use Mac's here at our office too, namely the Apple MacBook Pro. As Martijn mentioned apple are a bit slow on the java side, and pretty elusive about information.. We have no problems using mac's. And I never shutdown my mac, always hibernate once every 3 or 4 weeks it crashes(but it's probably me disconnecting devices when it's sleeping) when I open it so it's pretty stable. So the pros: Unix like os Small laptop, but with largescreen usually noiseless eye candy effect (hey even the guys in CSI uses it) cons: expensive java support slow... If you ask me what OS/laptop I would use next.. I'd probably go for ubuntu, just to try it out, possibly on a mac pro. The idea/Eclipse part. I hear that once youve gotten use to idea it should be really fast, because of their very good refactoring support. On the otherhand idea are a commercial license.. For now I use Eclipse 3.4 JEE version. greeklinux wrote: Hello wicket users, I have to bye a new notebook and I am thinking about the new Apple MacBook Pro. I am using Ubuntu for my development, Java/Wicket with maven, Eclipse/Idea, Tomcat. Are here any Mac OS X users and developers with pros and cons? I want to know if Mac OS X will be a good dev platform, because I am new to it. Hear about your experiences, would be great! -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Development Platform
Do not hesitate, Mac is great! I use it all the time. They waited a bit too long with bringing Java 6 to Mac, but besides that, it all works great. We also use Mac OS X Server with Tomcat to deploy our software. By the way, you know you have to change your nickname? Something like 'greekmacosx' or 'greekapple' would be fine. Regards, Daan On 16 okt 2008, at 10:52, greeklinux wrote: Hello wicket users, I have to bye a new notebook and I am thinking about the new Apple MacBook Pro. I am using Ubuntu for my development, Java/Wicket with maven, Eclipse/Idea, Tomcat. Are here any Mac OS X users and developers with pros and cons? I want to know if Mac OS X will be a good dev platform, because I am new to it. Hear about your experiences, would be great! -- View this message in context: http://www.nabble.com/Development-Platform-tp20009661p20009661.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Development Platform
Java on OS X is lagging behind unfortunately. Java 6 is only available for 64bit intel CPUs, but that won't be a problem for you (as long as you don't buy a first gen CoreDuo macbook pro, all intel cpu's are currently 64bit). Apple is very secretive about their future plans, especially so about their Java plans. So be warned. Other than these gripes, I am very happy with my mac book pro (a 32 bit core duo) and would recommend a switch to (the new) MBP fully. Martijn On Thu, Oct 16, 2008 at 10:52 AM, greeklinux <[EMAIL PROTECTED]> wrote: > > Hello wicket users, > > I have to bye a new notebook and I am thinking about the new > Apple MacBook Pro. > > I am using Ubuntu for my development, Java/Wicket with maven, Eclipse/Idea, > Tomcat. > > Are here any Mac OS X users and developers with pros and cons? I want to > know > if Mac OS X will be a good dev platform, because I am new to it. > > Hear about your experiences, would be great! > > > -- > View this message in context: > http://www.nabble.com/Development-Platform-tp20009661p20009661.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Development Platform
Hello wicket users, I have to bye a new notebook and I am thinking about the new Apple MacBook Pro. I am using Ubuntu for my development, Java/Wicket with maven, Eclipse/Idea, Tomcat. Are here any Mac OS X users and developers with pros and cons? I want to know if Mac OS X will be a good dev platform, because I am new to it. Hear about your experiences, would be great! -- View this message in context: http://www.nabble.com/Development-Platform-tp20009661p20009661.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Domain Model as interfaces
Hi, I'm not sure I understand exactly what is your problem but wouldn't something like this: Db4oImpl / JpaImpl / WhateverImpl ---extends---> AbstractBaseClassWithYourBusinessLogic ---implements---> YourInterface Where needed you would delegate to the base class (just adding the impl specific annotation). Just out of interest: do you really need to be able to easily switch between different persistence providers? // Daniel jalbum.net On 2008-10-16, at 03:00, Edgar Merino wrote: Hello, I couldn't find any other place to post this, so I'm doing it here, (it's related to java web development anyway). I've been working on a project where wicket has access to the domain layer through interfaces because I didn't want my project to depend on any dbms, however I've been thinking and the main problem here lies with db4o, since it cannot make use of JPA annotations on entities (domain models). I would like to get rid of those interfaces and use concrete implementations to handle business code inside the entities, but then the above problem arises. So what recommendations can you give to have a fully implemented domain model (using jpa annotations) but still be able to use any dbms (or orm/dmbs) without having to map those the domain model at the service layer? I hope I can get some feedback on this, as it has been the main problem I've been facing when coding scalable web applications. Regards, Edgar Merino - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Empty PageParametyers when using HybridUrlCodingStrategy
Hi Erik, You are right, the src AttributeModifier overwrites params values. If I am not using the src AttributeModifier then the params has values and if I use it then the params are empty. But it seem that I must use the src AttributeModifier since I am using sitemesh decorators to decorate my pages according to the url, so I need to identify the iframes url from their container url. I need to decorate all my pages but I don't want to decorate the iframes (no need for headers and footers there). The src AttributeModifier is the only way I found how set the iframes url to what i want. Is there another way? Thanks alot, Itay Erik van Oosten wrote: > > That combination is wrong. If you use the IndexedHybridUrlCodingStrategy > the first parameter is called "0". Secondly the AttributeModifier > probably overwrites the generated src attribute. > > This should work (not tested): > > PageParameters params = new PageParameters(); > params.put("0", myUrl);// changed to put, just to be sure > InlineFrame myFrame = new InlineFrame("MyFrame", this.getPageMap(), > MyFrame.class, params); > add(myFrame); > > public MyFrame(PageParameters params){ > String url = params.getString("0"); // changed to getString > doSomething(url); > } > > mount(new IndexedHybridUrlCodingStrategy("iframe/MyFrame", > MyFrame.class)); // removed leading / > > > Good luck! > Erik. > > > itayh wrote: >> Creating the InlineFrame component: >> PageParameters params = new PageParameters(); >> params.add("url", myUrl); >> InlineFrame myFrame = new InlineFrame("MyFrame", this.getPageMap(), >> MyFrame.class, params); >> myFrame.add(new AttributeModifier("src", new >> Model("/myapp/app/iframe/MyFrame))); >> add(myFrame); >> >> Creating MyFrame: >> public MyFrame(PageParameters params ){ >> String url = params.get("url"); //the problem is that this params are >> empty >> doSomething(url); >> } >> >> Url mounting: >> mount(new IndexedHybridUrlCodingStrategy(/iframe/MyFrame, >> MyFrame.class)); >> >> I tried also for the url mounting: >> mount(new HybridUrlCodingStrategy(/iframe/MyFrame, MyFrame.class)); >> >> In all cases the params inside the constructor of MyFrame class has no >> values in them (size = 0) >> >> Thanks, >> Itay >> >> > > > -- > Erik van Oosten > http://www.day-to-day-stuff.blogspot.com/ > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Empty-PageParametyers-when-using-HybridUrlCodingStrategy-tp19666330p20008835.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session destruction due to timeout...
Nope I know and agree. But it's the only solution I could think of, and in my case it's just exploration. Johan Compagner wrote: And clustering is a problem. Its not a really good idea to hold on to session objects outside the request. Even with no clustering but if the container just flushes you session to disk then after another request or the timeout you are not working with the same object anymore On 10/15/08, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: Hi I use this approach: @Override protected ISessionStore newSessionStore() { return new SecondLevelCacheSessionStore(this, new DiskPageStore()) { @Override protected void onBind(Request request, Session newSession) { sessionMap.put(newSession.getId(), (ZeuzSession) newSession); super.onBind(request, newSession); } @Override protected void onUnbind(String sessionId) { ZeuzSession session = (ZeuzSession) sessionMap.get(sessionId); session.onBeforeDestroy(); sessionMap.remove(sessionId); super.onUnbind(sessionId); } }; } Session.java public void onBeforeDestroy() { getPerson().setLoggedIn(false); } There are several problems(like what if the application crashes) with this approach, but in my case it's okay.. I do not have trouble with hibernate... Mendeleev wrote: I need to add functionality to my Wicket application that allows me to record in the MySQL database the exact time a user logs out of the application. This includes recording the time the session is destroyed by the web container due to user inactivity. I tried: 1. An implementation of HttpSessionListener 2. Extending the HttpSessionStore class 3. WebApplication.sessionDestroyed(String sessionid) 4. An implementation of HttpSessionBindingListener All of these do not work in my case, because the methods are called AFTER the session is already destroyed. At that time, the hibernate session that connects to the database, does not exist anymore. I cannot reopen it, because the Application.get() method returns null at this time. My question is: is there any way that I can record the destruction right before it happens? Is there some sort of a listener I can implement? If not, how is the wicket application notified that the user navigates away from the page, starting a period of inactivity? If there is a way I can register that happening, I can solve the problem by adding a timer. Thanks, Drago -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Shared resource, wrong usage?
Hi Im trying to use shared resources. I load them in wicketapplication.init, a similar approach works for me in 1.3, however in 1.4m3 I get null resources when I grab them from shared resources. I can see that the resource are actually bound when I call bind.. The code: public static void LoadImages() { for (IconType iconType : IconType.values()) { ResourceReference consertIconRef = new ResourceReference( Icons.class, iconType.getName()); consertIconRef.bind(WicketApplication.get()); log.debug("binding icon to:" + iconType.getName()); WicketApplication.get().getSharedResources().add(iconType.getName(), consertIconRef.getResource()); } } public static Image getImageForIcon(String id, IconType iconType) { log.debug("getting image for:" + iconType.getName()); Resource resource = WicketApplication.get().getSharedResources().get( iconType.getName()); if (resource == null) { log.error("got null resource for :" + iconType.getName()); } return new Image(id, resource); } -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BRIX (Wicket and Jackrabbit)
I am trying to run the brix demo. i have configured alfresco in my local system(which will me moved to some central repository later). I have also installed RMI extension to it. So that i can access via rmi. I am facing problems configuring it with alfresco in the application.properties. Does any one have any idea what should go in brixdemo.workspaceManagerUrl of application.properties. What should this workspace manager url contain ??? application.properties brixdemo.jcr.defaultWorkspace = brix-demo-site brixdemo.jcr.login=admin brixdemo.jcr.password=admin brixdemo.jcr.url=rmi://localhost:1099/javaContentRepository # url pointing to workspace manager implementation # leave empty for filesystem repositories, # for rmi backed repositories provide the rmi url brixdemo.workspaceManagerUrl=rmi://localhost:1099/javaContentRepository brixdemo.httpPort=8082 brixdemo.httpsPort=8443 Regards Vishal Nayak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: form components within an AccordionPanel
Looking at YUI... They do actually link directly to the js I based the accordion component on: http://developer.yahoo.com/yui/animation/ Did you try writing to the guy who did the js script? Nino Saturnino Martinez Vazquez Wael wrote: jchappelle wrote: Yea, if it is having the problem in the javascript then it has nothing to do with wicket. I was just hoping you might be a javascript guru. :-) I only change stuff, if it's really needed. You could break a dozen things when correcting stuff.. I have recently found some javascript that works for me and I've almost got a component in wicket created for it. It will work for now. Okay great. However, it would be nice to have a component that is backed by a javascript library that is maintained and kept up to date like YUI. Yeah, thats my thought too. What ever 3rd party javascript api wicket changes it ajax to, i'll probably start doing components for.. I don't know if I would worry about the wicket:container or fieldset stuff. It looks like the big problem is with the javascript and until that is fixed there is no use in tweaking anything else. Yeah my thought too..:( Let me know if you update the component to use something like YUI. I would definately be interested in using it. I could even help out if you need. Okay.. I'll ponder over it.. Thanks, Josh Nino.Martinez wrote: Great that you have done some extensive diagnostics.. jchappelle wrote: Thanks for the quick response. I am using wicket 1.3.4. I have been able to reproduce my problem with a very simplified example that is just an extension of the wicket-contrib-accordion-examples project. I have taken the AccordionPage and added another menu item that has a TextField inside of it. It works fine in Safari and Google Chrome, but not in IE7 or Mozilla 5. In IE7 the input is not rendered at all when the menu item is expanded. However when you close it, it shows up for a split second and then goes away again before the menu item fully closes. Also, the normal menu items seem to show up fine when clicked, but when I close them they reopen again and then go closed really quickly. I have run the code with just the barebones html, css and javascript that is available at http://www.hedgerwow.com/360/mwd/accordion/demo.php and I am getting the same problem with the form components but not with the other I mentioned. Hmm if you get the same problem here, it's not so great:( Then it's out of my hands. And I'd say that we should pick another js lib that does not have these issues. I could be convinced to do some YUI equalent.. Could it be the span tags that are in the wicket code? Is it upset because of form components being inside of a span tag maybe? Could be, if this is the problem then it's a really really easy fix.. I can go see if I can replace it with wicket:container or fieldset? WDYT? Thanks for your time, Josh Nino.Martinez wrote: I forgot to mention, that I do think dojo are being picked up at wicket 1.4, some guys talked about it on the dev list. I take it you are using the 1.3? Nino Saturnino Martinez Vazquez Wael wrote: jchappelle wrote: I am trying to render a form inside a Panel within an AccordionPanel. I have even reduced it to trying to only render a TextArea inside a Panel within it. However, when I click on the title of one of the items it expands with nothing but white space within it. Sounds a little wierd. What I would do would be to try to have a simple mock html that used the accordion js and see if I could replicate it there. Theres also a chance that the author of accordion.js has some hints on this. The examples for the AccordionPanel only have a Label inside a Panel as the content. Yeah that's what I needed at the time. Is this not possible? I even tried to use the DojoAccordionContainer but it gave some weird error debug messages that splattered all over my webpage(I'm not even sure how that happened unless it found a FeedbackPanel or something). Im not sure what state dojo are in. I'm starting to lose faith in many of these wicket-stuff projects. PLEASE HELP! Well some of the wicketstuff projects are not being maintained, AFAIK. People are always welcome to maintain them. I saw you wrote a direct mail to me i'll reply on the questions you had there. Thanks, Josh -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://www.nabble.com/file/p19996411/AccordionPage.html AccordionPage.html http://www.nabble.com/file/p19996411/Acc
Re: Session destruction due to timeout...
And clustering is a problem. Its not a really good idea to hold on to session objects outside the request. Even with no clustering but if the container just flushes you session to disk then after another request or the timeout you are not working with the same object anymore On 10/15/08, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > Hi > > I use this approach: > > @Override > protected ISessionStore newSessionStore() { > return new SecondLevelCacheSessionStore(this, new DiskPageStore()) { > @Override > protected void onBind(Request request, Session newSession) { > > sessionMap.put(newSession.getId(), (ZeuzSession) > newSession); > super.onBind(request, newSession); > } > > @Override > protected void onUnbind(String sessionId) { > ZeuzSession session = (ZeuzSession) > sessionMap.get(sessionId); > session.onBeforeDestroy(); > sessionMap.remove(sessionId); > super.onUnbind(sessionId); > } > > }; > } > > Session.java > > public void onBeforeDestroy() { > getPerson().setLoggedIn(false); > } > > There are several problems(like what if the application crashes) with > this approach, but in my case it's okay.. I do not have trouble with > hibernate... > > Mendeleev wrote: >> I need to add functionality to my Wicket application that allows me to >> record >> in the MySQL database the exact time a user logs out of the application. >> This includes recording the time the session is destroyed by the web >> container due to user inactivity. >> >> I tried: >> 1. An implementation of HttpSessionListener >> 2. Extending the HttpSessionStore class >> 3. WebApplication.sessionDestroyed(String sessionid) >> 4. An implementation of HttpSessionBindingListener >> >> All of these do not work in my case, because the methods are called AFTER >> the session is already destroyed. At that time, the hibernate session that >> connects to the database, does not exist anymore. I cannot reopen it, >> because the Application.get() method returns null at this time. >> >> My question is: is there any way that I can record the destruction right >> before it happens? Is there some sort of a listener I can implement? >> >> If not, how is the wicket application notified that the user navigates >> away >> from the page, starting a period of inactivity? If there is a way I can >> register that happening, I can solve the problem by adding a timer. >> >> Thanks, >> Drago >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a way to get stateless DDC with onchange notification?
It is statefull then because it has a callback to that page instance and component. What do you want do do in the onchange method? On 10/15/08, Ritesh Trivedi <[EMAIL PROTECTED]> wrote: > > Hi, > > Is there a way to get stateless DDC with onchange notifications? Also would > be helpful if someone could explain why the wantOnChangeNotification makes > DDC stateful even if its enclosed within stateless form and in the stateless > bookmarkable page? > -- > View this message in context: > http://www.nabble.com/Is-there-a-way-to-get-stateless-DDC-with-onchange-notification--tp19985764p19985764.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]