Re: After Upload File via ModalWindow and IFrame, the TreeModels UserOject Attributes are null

2008-04-29 Thread Cristi Manole
I don't think it's because of the iFrame. If you take it out of the modal page content, will that stop messing up the linktree? can you provide more code? On Mon, Apr 28, 2008 at 2:15 PM, geke <[EMAIL PROTECTED]> wrote: > > Hello, > > I´m upload a file via a modal window and an iFrame. It`s desc

Re: Form submit with a FileUploadField appears not to work in a Modal Window

2008-04-29 Thread geke
There is an example. http://www.dooriented.com/blog/2008/04/23/wicket-ajax-like-file-upload-on-a-modal-window/ -- View this message in context: http://www.nabble.com/Form-submit-with-a-FileUploadField-appears-not-to-work-in-a-Modal-Window-tp16795627p16976741.html Sent from the Wicket - User mail

Re: Updating multiple PropertyModels

2008-04-29 Thread Martin Makundi
Hi! Please give me an example: MyData myData = new MyData(name, address); // pseudo add(new Label("name", new PropertyModel(myData, "name")); add(new Label("address", new PropertyModel(myData, "address")); // now I have an ajax button or something... @Override protected void onUpdate(Aj

Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-29 Thread Stefan Lindner
Now it works but I had to specify the javacript libraries explicit in the header section. The auto generated header contribution of libraries did not work. I hat a similar problem with WicketStuff Dojo. Stefan -Ursprüngliche Nachricht- Von: Stefan Lindner [mailto:[EMAIL PROTECTED] Ges

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-04-29 Thread mfs
For now, doing an HttpServletResponse.sendRedirect works, but it just logs this error.. ERROR - WebResponse- Unable to redirect to: ?wicket:interface=:1, HTTP Response has already been committed. There has to be a better alternative.. mfs wrote: > > So you are saying re-d

Re: About Wicket Session life-cycle

2008-04-29 Thread mfs
I have feeling that its because of OnUnAuthorizedInstantiationException, which gets thrown on accessing an authorized page access, and due to the creation of UnAuthorizedInstantiationListener and other stuff wicket ends up creating a permanent session (just a guess), i dont see any other reason,

Re: Updating multiple PropertyModels

2008-04-29 Thread Frank Bille
You don't need the wrapper. If you give PropertyModel a IModel as object it knows how to handle it. I do that all the time: Single backing IModel with lots of different IModel in front (property models, AROM, etc.) Frank On Wed, Apr 30, 2008 at 7:09 AM, Martin Makundi <[EMAIL PROTECTED]> wrote:

Re: Updating multiple PropertyModels

2008-04-29 Thread Martin Makundi
I use Ajax and in an OnChange event I reload/replace some model objects and add the components holding the models into ajaxupdatetarget. I have not found another way to replace the model objects using a "single point of entry". ** Martin 2008/4/29 Johan Compagner <[EMAIL PROTECTED]>: > Why do yo

Re: Alternative method to initialise page

2008-04-29 Thread John Patterson
I was thinking that another benefit of initialising the page after construction is less memory use when using "redirect to render", when there are many invisible components, or in situations where a page instance is created to pass to another page as the next page or return page. igor.vaynberg w

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

2008-04-29 Thread Igor Vaynberg
hm. dont know if doing localization based on type of model object is a great idea. there are many usecases where model type is quiet aribitrary, and as you have found out yourself you dont know what component you get passed in, so you just need to handle it in a way that makes sense to you. -igor

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-04-29 Thread mfs
So you are saying re-direction isn't supported in the constructor ? I cant think of an alternative, given i had to expose a logout page to the external app for wicket apps session invalidation and soon after invalidation i have to it pass to a non-wicket logout html BTW throwing AbortException gi

Re: Alternative method to initialise page

2008-04-29 Thread Igor Vaynberg
heh, even though we switched to int we are pretty close to running out of flag bits already :) but oh well :) -igor On Tue, Apr 29, 2008 at 7:07 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > I am just saying if we make such a thing, that i dont want state after > the fact in a components

Re: HttpServletRequest and Filter Class

2008-04-29 Thread Johan Compagner
Just output the complete url in the browser what do you get when you expect the params? On 4/29/08, andrea pantaleoni <[EMAIL PROTECTED]> wrote: > > This is the code we used > > PageParameters parameters = new PageParameters(); > parameters.put(ApplicationConstants.REQUEST_USERNAME,userIdField.get

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

2008-04-29 Thread Ned Collyer
I'm writing my own It does this @Override public String loadStringResource(Component component, String key) { if (component == null) { return null; } String result = null; Locale locale = component.getLocale(); String style = component.

Re: LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-04-29 Thread Johan Compagner
I think this usecase should be supported but isnt the best way, you should throw an AbortException when you want to redirect in the constructor. Dont know from top of my head if we have one just for an url but that is easily made On 4/30/08, mfs <[EMAIL PROTECTED]> wrote: > > Guys, > > I have a Lo

Re: Alternative method to initialise page

2008-04-29 Thread Johan Compagner
I am just saying if we make such a thing, that i dont want state after the fact in a components. But i guess we can then better use a bit i think we have a few left. On 4/30/08, James Carman <[EMAIL PROTECTED]> wrote: > On Tue, Apr 29, 2008 at 3:59 PM, Johan Compagner <[EMAIL PROTECTED]> > wro

LogoutPage - Responsible for invalidation and redirection to non-wicket page

2008-04-29 Thread mfs
Guys, I have a LogoutPage which does the following in its constructor LogoutPage() { getSession().invalidate(); // redirecting to the external app logout page RequestCycle.get().setRequestTarget( new RedirectRequestTarget(Host.getHttpsUrl() + xyz.getLogoutURL())

Re: Is it possible to hide /?wicket:.. from the URLs

2008-04-29 Thread Johan Compagner
Currently it is not easy to get wicket out of all the urls. This prefix is a static final that is used on many places, i want to make that configurable in a next release. By default wicket will generate relative paths. You can get a absolute one with i believe RequestUtils. But this is still with

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

2008-04-29 Thread Johan Compagner
With the way i described it will happen in exactly the same response! On 4/29/08, mfs <[EMAIL PROTECTED]> wrote: > > 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_p

Re: PageParameter mystery - need help - RESOLVED

2008-04-29 Thread Ritz123
Finally figured out the fix. It is a bug, relatively simple to fix. I have created a JIRA issue. Let me know if more information is needed. Ritz123 wrote: > > 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

Re: Snapshot builds

2008-04-29 Thread Igor Vaynberg
they should be built automatically every hour if there is a checkin. can someone check out bamboo and see what the problem is please? -igor On Tue, Apr 29, 2008 at 3:35 PM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > How often are snapshot builds done? I am trying to use 1.4-SNAPSHOT, and >

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

2008-04-29 Thread Igor Vaynberg
sorry, but i dont really get what the problem is or why it matters what component stringresourceloader gets. it simply traverses up the hieararchy looking for .properties files -igor On Tue, Apr 29, 2008 at 4:55 PM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > Do you know an elegant solution Igor?

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

2008-04-29 Thread Ned Collyer
Do you know an elegant solution Igor? Detecting when the component IS a page - when something like is used in a page's markup, the component sent to the StringResourceLoader is MarkupInheritanceResolver$TransparentWebMarkupContainer and not Page. If the strings are resolved in java (ie, getStri

Is it possible to hide /?wicket:.. from the URLs

2008-04-29 Thread Ritz123
Hi, Was wondering if its possible to hide "wicket" name from the URLs (stateless and stateful). One might not want to show their end users that wicket is being used behind the scenes. Also I noticed even if page has bookmarkable links - the links show relative ../../../../mount/params!! Is there

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

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

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: 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

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: 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()

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: 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 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: 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: 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 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: 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: 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: 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: 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: 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: 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: 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: [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: 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: 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: 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: 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: 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

[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: 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

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: 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: 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: 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: 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: 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: 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

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

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

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

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: 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: 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: 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). > >

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: 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...

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: 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: 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: 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

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: 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

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: 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: 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 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: 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. > > ---

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: 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

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: 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 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 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: 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

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: 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)

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
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: 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: 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: 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 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: 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

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: 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

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: 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: 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 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;

  1   2   >