Re: submit form to bookmarkable page

2008-04-29 Thread Johan Compagner
What you want is just stateless forms, but if you just want to do a get to a page then your page with the form can be really simple Just 1 markup container for the form tag that just has an atribute modifier that sets the action to the page url. On 4/29/08, Doug Donohoe <[EMAIL PROTECTED]> wrote:

Re: loadStringResource(Component component, String key) - correct method to check if the component IS a Page?

2008-04-29 Thread Michael Sparer
I just subclassed ComponentStringResourceLoader and tried calling getString("foobar"); from a page (that extends another page). There instanceof Page returns true. Maybe it'd be helpful to see some code (and your usecase 'cause maybe there's another way to do it). regards Michael Ned Collyer wro

Spring 2.5 and Wicket, our vision about integration (a few explanations)

2008-04-29 Thread Sergio García
Well, I appreciate all the comments, but i want to explain things about how we work here. In our vision about how a wicket + spring + hibernate should be, in 99% of cases only services are injected into controller layer. There are no reason to make reusable components that calls a service, because

HttpServletRequest and Filter Class

2008-04-29 Thread andrea pantaleoni
This is the code we used PageParameters parameters = new PageParameters(); parameters.put(ApplicationConstants.REQUEST_USERNAME,userIdField.getModelObject().toString()); parameters.put(ApplicationConstants.REQUEST_PASSWORD,passField.getModelObject().toString()); setResponsePage(RegistrationPage.c

Re: About Wicket Session life-cycle

2008-04-29 Thread mfs
Thanks igor, the reason i asked so was because i am seeing this wierd behavior on oc4j where even if i just do a redirect to an external app in my CustomWebWession (on the very first request to my wicket app) without even rendering any wicket page, i see a jsessionId cookie being set.. igor.va

Re: Modal Window not opening the second time

2008-04-29 Thread Cristi Manole
I wasn't able to reuse a ModalWindow object in my projects. I always had to build it again. I obviously must be doing something wrong if you managed to do exactly this. Anyways, this is the output of the javascript debug window when using the code Marieke initially wrote (it doesn't give me any cl

Re: Wicket stuff dojo/toaster?

2008-04-29 Thread Nino Saturnino Martinez Vazquez Wael
Thanks, i'll look into it. However the example does not do that, and do not have any troubles: http://wicketstuff.org/wicketdojo13/?wicket:bookmarkablePage=%3Aorg.wicketstuff.dojo.examples.toaster.ToasterSample Igor Vaynberg wrote: perhaps you should use shared resources along with IIniti

Re: What is the best way to create layouts in Wicket?

2008-04-29 Thread Martin Makundi
Are there such factory initializers in Wicket? There is one, initModel(), but I have not yet evaluated if it is being called on page repaint. I have had to implement my own intializer methods for page repaints in evolved state. ** Martin 2008/4/28 Scott Swank <[EMAIL PROTECTED]>: > Agreed. It h

Re: Modal Window not opening the second time

2008-04-29 Thread Marieke Vandamme
The javascript debug window is printing no error. The server returns an empty response () I did some debugging and came to the function in ModalWindow public void show(AjaxRequestTarget target) there the boolean shown is tested. The content is only showed when shown=false, in my case shown=true..

Re: Modal Window not opening the second time

2008-04-29 Thread Nino Saturnino Martinez Vazquez Wael
Im doing it like this: AjaxLink popupLink = new AjaxLink("manageWeightPop") { @Override public void onClick(AjaxRequestTarget target) { target modalWindow.setTitle(getString("weightlog")); modalWindow.setMinimalHeight(700)

Re: Modal Window not opening the second time

2008-04-29 Thread Cristi Manole
Exactly, you always create a new panel for content. Can you reuse the ManageWeightPanel object? Cristi Manole On Tue, Apr 29, 2008 at 11:24 AM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: > Im doing it like this: > > > AjaxLink popupLink = new AjaxLink("manageWeightPop

Re: Modal Window not opening the second time

2008-04-29 Thread Marieke Vandamme
You are creating a new instance of your Panel. I don't need to create a new ModalWindow or Panel, because all the data on my ModalWindow is the same. Your solution works because setContent sets shown = false. Shouldn't it work without this call to setContent? Nino.Martinez wrote: > > Im doing

properties files

2008-04-29 Thread Milan Křápek
Hi, I have one simple question. but I had no luck in finding an answer on mailing list. I have web application with probably twenty pages. I am usisng properties files (e.g. MyPage_en_US.properties) for localization. Because I am using a lot of forms on my pages, there are some common string t

Re: About Wicket Session life-cycle

2008-04-29 Thread Johan Compagner
are you sure that you custom web session isnt calling dirty()? On Tue, Apr 29, 2008 at 9:48 AM, mfs <[EMAIL PROTECTED]> wrote: > > Thanks igor, the reason i asked so was because i am seeing this wierd > behavior on oc4j where even if i just do a redirect to an external app in > my > CustomWebWess

Re: Modal Window not opening the second time

2008-04-29 Thread Nino Saturnino Martinez Vazquez Wael
Cristi Manole wrote: Exactly, you always create a new panel for content. True. Can you reuse the ManageWeightPanel object? Probably could. Havent looked into it, since all of the panel needs to updated anyhow. Cristi Manole On Tue, Apr 29, 2008 at 11:24 AM, Nino Saturnino Martinez Vaz

Re: properties files

2008-04-29 Thread Martijn Dashorst
Use your MyApplication.properties On 4/29/08, Milan Křápek <[EMAIL PROTECTED]> wrote: > Hi, > I have one simple question. but I had no luck in finding an answer on > mailing list. I have web application with probably twenty pages. I am usisng > properties files (e.g. MyPage_en_US.properties) f

Re: What is the best way to create layouts in Wicket?

2008-04-29 Thread Johan Compagner
no Scott just told you that you should create such initializers completely "static". They should be 'static' without touching state of the current object/class itself. On Tue, Apr 29, 2008 at 10:18 AM, Martin Makundi < [EMAIL PROTECTED]> wrote: > Are there such factory initializers in Wicket? >

Re: Modal Window not opening the second time

2008-04-29 Thread Johan Compagner
exactly what i thought somehow your shown boolean stays on true So the problem is not showing it again The problem for you is in the closing.. Because the shown boolean should be reverted to false johan On Tue, Apr 29, 2008 at 10:21 AM, Marieke Vandamme <[EMAIL PROTECTED]> wrote: > > The javasc

Re: Modal Window not opening the second time

2008-04-29 Thread Nino Saturnino Martinez Vazquez Wael
Marieke Vandamme wrote: You are creating a new instance of your Panel. True, I was just writing how I did it:) I don't need to create a new ModalWindow or Panel, because all the data on my ModalWindow is the same. Mine arent. Your solution works because setContent sets shown = false.

Re: Change to API between Wicket 1.2 releases?

2008-04-29 Thread Johan Compagner
1.2 is a long time ago I have no idea what change did break yours (and what did it fix) If you could figure out what part it really is? johan On Tue, Apr 29, 2008 at 12:09 AM, Frank Silbermann < [EMAIL PROTECTED]> wrote: > I completed a Wicket 1.2 project a couple of years ago, and I've been >

Re: loadStringResource(Component component, String key) - correct method to check if the component IS a Page?

2008-04-29 Thread Michael Sparer
yepp, then the TransparentWebMarkupContainer gets passed in. And you're right, it's gonna be a filthy hack if you try to find out if its a Page. Unfortunately I've got no further suggestions but it'd be interesting to know why you want to distinguish between pages and other components anyway ...

Unique identifying name in gridview

2008-04-29 Thread Martijn Lindhout
Hi all, I have a gridview, which in populateItem is filled with: new PhotoTile("tileContent", (PhotoCardModel) item.getModel()); In PhotoTile's constructor, I do: AjaxLink clickLink = clickLink.add(new Image("thumbnail", rs)); where 'rs' is a WebResource of which the getResourceStream ret

Re: loadStringResource(Component component, String key) - correct method to check if the component IS a Page?

2008-04-29 Thread Ned Collyer
Thanks for your reply, Maybe it's because I am using a in the markup?! There isn't really any code to show. I put the wicket:message into the page, then i check the params coming in to the method. I'll have a bit more of a play I think, but I would be interested in what your results are with

Re: rendering the navigation toolbar

2008-04-29 Thread Eyal Golan
wow!! cool. That was so educational :) Thanks. If I change this, it will change EVERYTHING, right? What if I want to do something like: only for this PNL ? Is there a way? My other option is to add this style (attribute and CSS actually) to the inner span. I think that the second option is bette

Re: Modal Window not opening the second time

2008-04-29 Thread Marieke Vandamme
Sorry, but I don't know what the solution is for me now? When looking into ModalWindow again : public void close(AjaxRequestTarget target) { getContent().setVisible(false); target.appendJavascript(getCloseJavacript()); shown = false;

Re: VOTE: Generics of IDataProvider

2008-04-29 Thread Maarten Bosteels
[ ] IDataProvider [ x ] Iterator> , drop model [ ] Leave as is. Maarten On Fri, Apr 25, 2008 at 1:52 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > I would have a better idea if I would have had the chance to actually > play with it, but here is mine: > > [ ] IDataProvider > [ x ] Iterator> ,

Re: Modal Window not opening the second time

2008-04-29 Thread Cristi Manole
I for one think it's a bug somewhere. Not in Marieke's code. On Tue, Apr 29, 2008 at 12:11 PM, Marieke Vandamme <[EMAIL PROTECTED]> wrote: > > Sorry, but I don't know what the solution is for me now? > When looking into ModalWindow again : > public void close(AjaxRequestTarget target) >{

Re: Modal Window not opening the second time

2008-04-29 Thread Johan Compagner
make a test case then and attach it to a jira issue On Tue, Apr 29, 2008 at 11:11 AM, Marieke Vandamme <[EMAIL PROTECTED]> wrote: > > Sorry, but I don't know what the solution is for me now? > When looking into ModalWindow again : > public void close(AjaxRequestTarget target) >{ >

Re: rendering the navigation toolbar

2008-04-29 Thread Gerolf Seitz
On Tue, Apr 29, 2008 at 11:00 AM, Eyal Golan <[EMAIL PROTECTED]> wrote: > wow!! > cool. That was so educational :) > Thanks. > np :) > > If I change this, it will change EVERYTHING, right? yes, this is the setting for all disabled links. > > What if I want to do something like: only for > th

Passing around a component ref. (specifically BreadCrumbBar)

2008-04-29 Thread gumnaam23
I have a specific question and a generic question based on it. I have several Panels added to my BreadCrumbPanels, these panels themselves extend the Panel class, and will contain BreadCrumbPanelLinks , to navigate down the hierarchy. My question is how do I pass the BreadCrumbBar from a BreadCr

Re: Modal Window not opening the second time

2008-04-29 Thread Marieke Vandamme
I created a jira issue https://issues.apache.org/jira/browse/WICKET-1576 Thanks ! Johan Compagner wrote: > > make a test case then and attach it to a jira issue > > On Tue, Apr 29, 2008 at 11:11 AM, Marieke Vandamme <[EMAIL PROTECTED]> wrote: > >> >> Sorry, but I don't know what the solutio

Re: loadStringResource(Component component, String key) - correct method to check if the component IS a Page?

2008-04-29 Thread Ned Collyer
I basically want the components Model. It's legitimate for it to be null. So, if I can see which component is a page, then i can easily call the "getPage().getModel()" Of course if it's TransparentWebMarkupContainer then getModel returns null even if the page has a model set. It appears to work

Re: VOTE: Generics of IDataProvider

2008-04-29 Thread Kent Tong
[ ] IDataProvider [x] Iterator> , drop model [ ] Leave as is. Leaving it as is just doesn't make sense as it doesn't support the use case on hand. Using IDataProvider is OK too. For those whose I == T, we can always have a convenient base class: abstract class ModelProvider implements IDataProv

Re: loadStringResource(Component component, String key) - correct method to check if the component IS a Page?

2008-04-29 Thread Michael Sparer
well one (as said ugly ;-)) way that comes to my mind is to ask if component.getParent().getParent() instanceof Page (that should also work if you use nested subpages). regards, Michael you could check if it's a transparentwebmarkupcontainer with instanceof. Ned Collyer wrote: > > I basica

Re: loadStringResource(Component component, String key) - correct method to check if the component IS a Page?

2008-04-29 Thread Ned Collyer
I did an elegantish... workaround. - the page instantiates a panel - the panel has the model. Basically my pages defer almost everything to panels - and I guess it also aids in their reuse/embeddability. I'm quite familiar with instanceof thanks ;) Michael Sparer wrote: > > well one (as said

Re: rendering the navigation toolbar

2008-04-29 Thread Eyal Golan
thanks, here's what I did. 1. I have a StyledAjaxNavigationToolbar that overrides: @Override protected PagingNavigator newPagingNavigator(String navigatorId, final DataTable table) { return new StyledAjaxPagingNavigator(navigatorId, table); } 2. Then my StyledAjaxPagingNavigato

Re: rendering the navigation toolbar

2008-04-29 Thread Gerolf Seitz
instead of the custom AbstractBehavior, you could add an AttributeAppender like this: link.add(new AttributeAppender("class", true, new Model("disabledPaginLink"), " ") { public boolean isEnabled() { return !getComponent().isEnabled(); } }); Gerolf On Tue, Apr 29, 2008 at 1:09 PM, Eyal

Re: rendering the navigation toolbar

2008-04-29 Thread Eyal Golan
hh, the isEnabled() of the AttributeAppender is a really cool tool. I used it in another place. I have a StyledDataTable that overridden onComponentTag: @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (dataProvider.size() == 0)

Remember last page before page expired

2008-04-29 Thread Eyal Golan
I have a Login page that is redirected if the session is expired (for example, if I shut of the server and put it on again). In the Login page, I redirect to my base page: PortalWebPage page = new PortalWebPage(pageParameters); setResponsePage(page); this happens in the sub

Re: How to debug Back Button

2008-04-29 Thread Marco Aurélio Silva
Move to 1.3 now is not an option :( On Mon, Apr 28, 2008 at 5:55 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > Dont know why it is different in ie compared to ff, but do upgrade to > 1.3 because then page expired are pretty much none excistent. > > > > On 4/28/08, Marco Aurélio Silva <[EM

Re: Alternative method to initialise page

2008-04-29 Thread John Patterson
I think the key point is - if extending components by overriding methods is a supported (and encouraged) pattern in wicket there should be a *standard* way to do it. Sure it is possible for each user to hack a unique solution but this provides no common ground when people run into issues. If e

Re: Alternative method to initialise page

2008-04-29 Thread John Patterson
I think the key point is - if extending components by overriding methods is a supported (and encouraged) pattern in wicket there should be a *standard* way to do it. Sure it is possible for each user to hack a unique solution but this provides no common ground when people run into issues. If

Re: Alternative method to initialise page

2008-04-29 Thread James Carman
Would you like me to add something like this to the wiki? // The interface... public interface IBeforeFirstRenderListener { public void onBeforeFirstRender(); } // The invoking listener... public class BeforeFirstRenderListenerInvoker implements IComponentOnBeforeRenderListener { public s

Re: Alternative method to initialise page

2008-04-29 Thread James Carman
Sorry, type given to meta data key should be Boolean, not IBeforeFirstRenderListener. On Tue, Apr 29, 2008 at 8:55 AM, James Carman <[EMAIL PROTECTED]> wrote: > Would you like me to add something like this to the wiki? > > // The interface... > public interface IBeforeFirstRenderListener > { >

Re: How to debug Back Button

2008-04-29 Thread Marco Aurélio Silva
I put a breakpoint on Wicket.Session on method public final Page getPage(final String pageMapName, final String path, final int versionNumber) It seems Firefox is nothing making a request when I navigate with back and forward button. On IE the call to this line: Page page = pageMap.get(Integ

Modal window and height

2008-04-29 Thread Mathias P.W Nilsson
Hi! I can't set initial height and width on my modal window. It's always the same height and width when opening it. final ModalWindow modal; add(modal = new ModalWindow("modal")); modal.setPageMapName("modal-4"); modal.setCookieName("modal window 4");

Re: What is the best way to create layouts in Wicket?

2008-04-29 Thread Martin Makundi
Bother to give an example of what you mean? 2008/4/29 Johan Compagner <[EMAIL PROTECTED]>: > no Scott just told you that you should create such initializers completely > "static". > They should be 'static' without touching state of the current object/class > itself. > > ---

Re: Alternative method to initialise page

2008-04-29 Thread Maurice Marrink
On Tue, Apr 29, 2008 at 2:44 PM, John Patterson <[EMAIL PROTECTED]> wrote: > > I think the key point is - if extending components by overriding methods is a > supported (and encouraged) pattern in wicket there should be a *standard* > way to do it. Sure it is possible for each user to hack a un

Re: Alternative method to initialise page

2008-04-29 Thread John Patterson
This approach breaks a components encapsulation because the listener must be installed in the application. Even if IInitializers can be used to do this once it ads an extra complication to creating reusable components. Point-in-case: Should PagingNavigation use this technique to call its factory

Re: Alternative method to initialise page

2008-04-29 Thread James Carman
On Tue, Apr 29, 2008 at 10:24 AM, John Patterson <[EMAIL PROTECTED]> wrote: > > This approach breaks a components encapsulation because the listener must be > installed in the application. Even if IInitializers can be used to do this > once it ads an extra complication to creating reusable comp

RE: Change to API between Wicket 1.2 releases?

2008-04-29 Thread Frank Silbermann
I'm not sure what you mean by "what part it really is"? Are you asking me to find a simpler example exhibiting the problem? I mean, the panel class follows the RadioGroup component example quite closely: http://wicketstuff.org/wicket13/compref/;jsessionid=C6F7701B642660179563 84008732211C?wicket

Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-29 Thread Stefan Lindner
I got everything to compile and deploy but not to work. No drag. The DraggableBehavior added to a Markupcontainer leads to some javascript code [new Draggable("product_1", {})] but nothing happens when I klick on the MarkupContainer and move the mouse. I think I wait until you did the thin. Ste

FileResourceStream

2008-04-29 Thread Ed _
I end up using FileResourceStream to serve up static web pages from a Wicket page. But I am having issues with the fact that the page gets cached and - returning clients with different url params - keep getting served the original static page. Is there a way for me to force a refresh and mak

Re: AjaxFormValidatingBehavior on a form with a fileuploadfield crashes

2008-04-29 Thread nanotech
Hi, Will there be support in future for Ajax + multipart forms? Thanks, RG igor.vaynberg wrote: > > it is a known limitation...you cannot mix ajax and multipart forms.. > > -igor > > > On Tue, Feb 26, 2008 at 3:40 PM, Dan Kaplan <[EMAIL PROTECTED]> > wrote: >> Hello, >> >> If I use: AjaxF

Re: Modal window and height

2008-04-29 Thread NTS
Try clearing your cookies. Mathias P.W Nilsson wrote: > > Hi! I can't set initial height and width on my modal window. It's always > the same height and width when opening it. > > > final ModalWindow modal; > add(modal = new ModalWindow("modal")); > modal.setPag

Re: What is the best way to create layouts in Wicket?

2008-04-29 Thread Scott Swank
The method just has to be stateless, particularly from the perspective of instantiation. public BasePage(...) { add(createFooPanel("fooId")); add(createBarPanel("barId")); } protected abstract Panel createFooPanel(String id); protected abstract Panel createFooPanel(String id); - public

Re: What is the best way to create layouts in Wicket?

2008-04-29 Thread Scott Swank
Where of course RedPage extends BasePage... On Tue, Apr 29, 2008 at 9:15 AM, Scott Swank <[EMAIL PROTECTED]> wrote: > The method just has to be stateless, particularly from the perspective > of instantiation. > > public BasePage(...) { > add(createFooPanel("fooId")); > add(createBarPanel("ba

Re: AjaxFormValidatingBehavior on a form with a fileuploadfield crashes

2008-04-29 Thread Martijn Dashorst
This is not something we can decide. It is a limitation of Ajax, HTML, Browsers. Martijn On 4/29/08, nanotech <[EMAIL PROTECTED]> wrote: > > Hi, > > Will there be support in future for Ajax + multipart forms? > > Thanks, > RG > > > > igor.vaynberg wrote: > > > > it is a known limitation...

color code options in drop down choice

2008-04-29 Thread Full-toos Geek
hi I want to have a dropdown choice in which some of the choices are of different color based on the model. is there any existing implementation which i can use. OR how should i go about it please suggset. full toos ==

Re: loadStringResource(Component component, String key) - correct method to check if the component IS a Page?

2008-04-29 Thread Igor Vaynberg
Page page=component.getPage() ? -igor On Tue, Apr 29, 2008 at 3:53 AM, Michael Sparer <[EMAIL PROTECTED]> wrote: > > well one (as said ugly ;-)) way that comes to my mind is to ask if > component.getParent().getParent() instanceof Page (that should also work if > you use nested subpages). > >

Re: color code options in drop down choice

2008-04-29 Thread Igor Vaynberg
see Select/SelectOption/SelectOptions in wicket-extensions -igor On Tue, Apr 29, 2008 at 9:43 AM, Full-toos Geek <[EMAIL PROTECTED]> wrote: > hi > I want to have a dropdown choice in which some of the choices are of > different color based on the model. > is there any existing implementation

Re: Session.isNew - Check if a (permanent) session was created in the given request

2008-04-29 Thread mfs
Doesnt really give what i need (looking at the src), i want to know if a permanent session was created in a particular request, this would just tell me if the session reference is still temperary... public final boolean isTemporary() { return getId() == null; } Mr Mean wrote: >

Re: About Wicket Session life-cycle

2008-04-29 Thread mfs
Not at all.. Johan Compagner wrote: > > are you sure that you custom web session isnt calling dirty()? > > On Tue, Apr 29, 2008 at 9:48 AM, mfs <[EMAIL PROTECTED]> wrote: > >> >> Thanks igor, the reason i asked so was because i am seeing this wierd >> behavior on oc4j where even if i just do

Re: Change to API between Wicket 1.2 releases?

2008-04-29 Thread Johan Compagner
I dont know what this is, but 1.2 is pretty much end of life, so you should try to debug what it is and patch your version Or just use a 1.2 version that works for you On 4/29/08, Frank Silbermann <[EMAIL PROTECTED]> wrote: > I'm not sure what you mean by "what part it really is"? Are you asking

PageParameter mysetry - need help

2008-04-29 Thread Ritz123
Hi, After spending quiet a few hours on PageParameter mystery I think its time to get experts help. I have a few Bookmarkable pages with MixedParamStrategy set - this means I have few fixed parameters and few optional params. What is happening is, somewhere in my code (digging as we speak) one o

getter called multiple times on PropertyModel with ListView

2008-04-29 Thread Andrew Broderick
Hi, I have a page where I am using a PropertyModel to populate a ListView, so it will change when the underlying contents change: ListView newsDetails = new ListView("newsDetails", new PropertyModel(this, "articles")) { protected void populateItem(ListI

Re: getter called multiple times on PropertyModel with ListView

2008-04-29 Thread Igor Vaynberg
ListView newsDetails = new ListView("newsDetails", new LoadableDetachableModel(new PropertyModel(this, "articles"))) -igor On Tue, Apr 29, 2008 at 10:46 AM, Andrew Broderick <[EMAIL PROTECTED]> wrote: > Hi, > > I have a page where I am using a PropertyModel to populate a ListView, so it > will

Re: AjaxFormValidatingBehavior on a form with a fileuploadfield crashes

2008-04-29 Thread Michael Sparer
there are however workarounds for this problem, didn't try it myself but here's a howto using a hidden iframe which might work: http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/ Martijn Dashorst wrote: > > This is not something we can decide. It is a limi

RE: Int based PropertyModel throws convertion error

2008-04-29 Thread Michael Mehrle
Thanks for your input, Johan. Alright, I changed the model to an Integer and that fixed it. So it does seem that this may be a bug - I'm opening a Jira issue for this. Thanks, Michael -Original Message- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Monday, April 28, 2008 11:48

Re: Session.isNew - Check if a (permanent) session was created in the given request

2008-04-29 Thread Johan Compagner
If(!session.isTemp() && cookieNotSet) setCookie() On 4/29/08, mfs <[EMAIL PROTECTED]> wrote: > > Doesnt really give what i need (looking at the src), i want to know if a > permanent session was created in a particular request, this would just tell > me if the session reference is still temperary..

Re: How to debug Back Button

2008-04-29 Thread Johan Compagner
Just test the pagemap accessstack what exactly happens. Place a few breakpoints there, if you press the backbutton, then ie does a call to the server an ff doesnt? But that shouldnt be to much of a problem. That page just should be there. On 4/29/08, Marco Aurélio Silva <[EMAIL PROTECTED]> wrote:

RE: getter called multiple times on PropertyModel with ListView

2008-04-29 Thread Andrew Broderick
Cannot instantiate LoadableDetachableModel directly .. it is abstract. Besides, how does it help solve the problem? Thanks -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 29, 2008 12:49 PM To: users@wicket.apache.org Subject: Re: getter called multip

Re: Passing around a component ref. (specifically BreadCrumbBar)

2008-04-29 Thread Johan Compagner
Access them only in onBeforeRender or whwn you need them in an call back method (onsubmit/onclick) On 4/29/08, gumnaam23 <[EMAIL PROTECTED]> wrote: > > I have a specific question and a generic question based on it. > > I have several Panels added to my BreadCrumbPanels, these panels themselves > e

Re: FileResourceStream

2008-04-29 Thread Johan Compagner
So through a Wicket Page impl you serve static pages? The wicket page self doesnt have any components? Dont know the exact api but you have to make sure that the cache key = null then nothing will be cached On 4/29/08, Ed _ <[EMAIL PROTECTED]> wrote: > > I end up using FileResourceStream to serv

[Inmethod-grid] column resize event?

2008-04-29 Thread ChuckDeal
Would it be possible to get a column resize event added? I am attempting to use a Dojo Combobox as the editable cell content. The grid has a css style defined for edited cells that forces the combobox text element to 100% of the column width. That has a cool effect when editting, but has the si

Re: Alternative method to initialise page

2008-04-29 Thread Johan Compagner
First i dont want a boolen in the components that onFirstRender() is called. I want a boolean that it is not called. So in the constructor of component we set the flag and clear it when first rendered. Do remember that in onBeforeRende components/panels and all can be created again but i think thi

Re: PageParameter mysetry - need help

2008-04-29 Thread Johan Compagner
Make a jira issue with a sample quickstart On 4/29/08, Ritz123 <[EMAIL PROTECTED]> wrote: > > Hi, > > After spending quiet a few hours on PageParameter mystery I think its time > to get experts help. > > I have a few Bookmarkable pages with MixedParamStrategy set - this means I > have few fixed pa

RE: getter called multiple times on PropertyModel with ListView

2008-04-29 Thread Hoover, William
// It solves your problem because the call to load will be made each time your view renders final LoadableDetachableModel articlesLoadableModel = new LoadableDetachableModel() { private static final long serialVersionUID = 1L; /** * [EMAIL PROTECTED] */ @O

Re: Spring 2.5 and Wicket, our vision about integration (a few explanations)

2008-04-29 Thread Johan Compagner
The controller layer in wicket is the component.. On 4/29/08, Sergio García <[EMAIL PROTECTED]> wrote: > > Well, I appreciate all the comments, but i want to explain things about how > we work here. In our vision about how a wicket + spring + hibernate should > be, in 99% of cases only services ar

Re: Problem with german error messages in feedback panel

2008-04-29 Thread Johan Compagner
You can also use xml for your properties On 4/28/08, Vit Rozkovec <[EMAIL PROTECTED]> wrote: > Hi, > try to convert the property file with native2ascii tool. > > > greeklinux wrote: > > Hello, > > > > I am using IDEA as IDE. I configured it to use UTF-8. > > Did I forget something? > > In the prop

Re: [Inmethod-grid] column resize event?

2008-04-29 Thread Martin Grigorov
see com.inmethod.grid.common.AbstractGrid.onColumnStateChanged() On Tue, 2008-04-29 at 12:24 -0700, ChuckDeal wrote: > Would it be possible to get a column resize event added? > > I am attempting to use a Dojo Combobox as the editable cell content. The > grid has a css style defined for edited c

Re: Remember last page before page expired

2008-04-29 Thread Johan Compagner
See pagemap.redirectToResponsePage() and continueToXxxx method On 4/29/08, Eyal Golan <[EMAIL PROTECTED]> wrote: > I have a Login page that is redirected if the session is expired (for > example, if I shut of the server and put it on again). > In the Login page, I redirect to my base page: >

Re: Unique identifying name in gridview

2008-04-29 Thread Johan Compagner
Use shared resources with an image param and then an Image with a resource reference. On 4/29/08, Martijn Lindhout <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a gridview, which in populateItem is filled with: > > new PhotoTile("tileContent", (PhotoCardModel) item.getModel()); > > In PhotoTile'

Re: PageParameter mystery - need help

2008-04-29 Thread Ritz123
John, Thanks for the reply. As I mentioned, there seems to be multiple issues - what do I make an issue on? Also, will appreciate if you can share some thoughts on going about fixing it. Johan Compagner wrote: > > Make a jira issue with a sample quickstart > > On 4/29/08, Ritz123 <[EMAIL PRO

Re: Spring 2.5 and Wicket, our vision about integration (a few explanations)

2008-04-29 Thread Igor Vaynberg
anywho. why even talk about this? there is absolutely nothing stopping you from doing this is there? -igor On Tue, Apr 29, 2008 at 12:44 AM, Sergio García <[EMAIL PROTECTED]> wrote: > > Well, I appreciate all the comments, but i want to explain things about how > we work here. In our vision ab

Re: Immediate redirect from session

2008-04-29 Thread Johan Compagner
Doing this stuff in the session constructor is really the wrong place, then still the normal request processing will happen. Something like this should be done in RequestCycle.onBeginRequest() and then throw a RestartResponseException() instead of just setting a request target. Johan On 4/28/08,

Re: Updating multiple PropertyModels

2008-04-29 Thread Johan Compagner
Why do you want to propagate the changes? Why isnt it just pull instead of push? Or do you use ajax and you have to know what components have to be rerendered? On 4/28/08, Martin Makundi <[EMAIL PROTECTED]> wrote: > Hi! > > I have a situation where I have multiple propertymodels whose > model-obje

Re: Session.isNew - Check if a (permanent) session was created in the given request

2008-04-29 Thread mfs
and how i would check if the cookie is not set ? Johan Compagner wrote: > > If(!session.isTemp() && cookieNotSet) setCookie() > > On 4/29/08, mfs <[EMAIL PROTECTED]> wrote: >> >> Doesnt really give what i need (looking at the src), i want to know if a >> permanent session was created in a pa

Re: Session.isNew - Check if a (permanent) session was created in the given request

2008-04-29 Thread Johan Compagner
Get the cookie from the request??? On 4/29/08, mfs <[EMAIL PROTECTED]> wrote: > > and how i would check if the cookie is not set ? > > > > Johan Compagner wrote: > > > > If(!session.isTemp() && cookieNotSet) setCookie() > > > > On 4/29/08, mfs <[EMAIL PROTECTED]> wrote: > >> > >> Doesnt really giv

Re: PageParameter mystery - need help

2008-04-29 Thread Johan Compagner
Just make an issue for the case you have below, that generates the stacktrace. And in your comments you can also say, that this or that could als be a problem for this url strategy On 4/29/08, Ritz123 <[EMAIL PROTECTED]> wrote: > > John, > > Thanks for the reply. As I mentioned, there seems to be

Re: Session.isNew - Check if a (permanent) session was created in the given request

2008-04-29 Thread mfs
It wouldnt be there,remember i want to set the cookie in the same response as the JSESSIONID cookie.. Johan Compagner wrote: > > Get the cookie from the request??? > > On 4/29/08, mfs <[EMAIL PROTECTED]> wrote: >> >> and how i would check if the cookie is not set ? >> >> >> >> Johan Compagner

Re: Session.isNew - Check if a (permanent) session was created in the given request

2008-04-29 Thread Johan Compagner
Look for once what i test!! You want this the first time a session is created set a cookie. So TEST the isTemp() method of the session. (in RequestCycle.onEndRequest()) then if that returns false then you know the session is created when you dont know yet, it could be this request but also a prev

Re: Spring 2.5 and Wicket, our vision about integration (a few explanations)

2008-04-29 Thread Ryan Sonnek
I'd suggest that you prove out that your concept is "better" than the current solution by building out a competing solution and contributing it as an opensource project to let the community decide which solution is the best fit for them. i'm all for a little competing innovation! =) On Tue, Apr

Re: Session.isNew - Check if a (permanent) session was created in the given request

2008-04-29 Thread mfs
Sure it makes sense, but there is a reason that i want to set the cookie in exactly the same request/response cycle, the cookie i am setting would be used by this external mod_plsql application (i am integrating my wicket app with) to check if an http/wicket session exists, the external app bases

Re: getter called multiple times on PropertyModel with ListView

2008-04-29 Thread igor . vaynberg
or just new LDM() { load() { return getwhatever();}} -igor On 4/29/08, Hoover, William <[EMAIL PROTECTED]> wrote: > // It solves your problem because the call to load will be made each > time your view renders > final LoadableDetachableModel articlesLoadableModel = new > LoadableDetachableModel()

LoadableDetachableModel.detach() - should it be final?

2008-04-29 Thread Jeremy Thomerson
Just an observation - should the detach() method in LoadableDetachableModel be final? It adds the onDetach() hook for subclasses to implement. Would there be a case where you want to override detach() and NOT let the LDM do it's detach (by not calling super / on purpose or accident)? Jeremy Thom

Re: Session.isNew - Check if a (permanent) session was created in the given request

2008-04-29 Thread mfs
Initially i had kind of a hack where i was checking the response headers using HttpResponse.containsHeader("Set-Cookie") in RequestCycle.onEndRequest() and set my cookie if it returns true, this worked perfectly fine in jetty but in oc4j for some odd reasons i dont have these response headers avai

Re: Alternative method to initialise page

2008-04-29 Thread James Carman
On Tue, Apr 29, 2008 at 3:59 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > First i dont want a boolen in the components that onFirstRender() is called. > I want a boolean that it is not called. So in the constructor of > component we set the flag and clear it when first rendered. > Are we thi

Re: PageParameter mystery - need help

2008-04-29 Thread Ritz123
I am in a very time crunched schedule and this is a show stopper for me - cant even render the page - hope you understand if I ask is there any timeline on the fix that I can expect? Again reiterating if anyone can give any pointers on fixing this(not sure if its a bug or if I am doing something

Snapshot builds

2008-04-29 Thread Jeremy Thomerson
How often are snapshot builds done? I am trying to use 1.4-SNAPSHOT, and the latest version was built April 11 [1], but I want a change made April 22 [2]. Are they built automatically by Bamboo or manually? If manually, what can we (lowly users) do to help? Thanks, Jeremy Thomerson [1] - http

  1   2   >