Re: Page specific authorization

2008-07-28 Thread Benny Weingarten
Yes, I meant the RestartResponseException. So indeed, if there is no way to access page parameters from the context of the method isInstantiationAuthorized or isActionAuthorized (ANY INPUT ON THIS MATTER will be appreciated :-), I will do the authorization check in the constructor. thanks!

AJAXIFY Palette: Can't get to the Recorder

2008-07-28 Thread Edvin Syse
The javadocs for the Palette says to add AjaxFormComponentUpdatingBehaviour to the Recorder like this: Form form=new Form(...); Palette palette=new Palette(...); palette.getRecorderComponent().add(new AjaxFormComponentUpdatingBehavior(onchange) {...});

Wicket example on Ajax - Modal window not working

2008-07-28 Thread mabel25
Hi, I have downloaded the wicket examples and they work. However, when i copy and paste the exact same code for the Modal window to my project in Eclipse, the codes do not work again. The error message is Object Expected. Anyone knows how to solve it? Deeply appreciated! -- View this message

Re: Float Validation

2008-07-28 Thread mabel25
Yes! its working now. Thanks for your help! mabel25 wrote: Hi, I have been trying to validate FLOAT values by using the NumberValidator. However, when I retrieve values such as '12000' from the database into a TextField, the textfield will automatically insert commas to become '12,000'

Re: Wicket example on Ajax - Modal window not working

2008-07-28 Thread Piller Sébastien
We need more info please paste your code and tell us where is the error mabel25 a écrit : Hi, I have downloaded the wicket examples and they work. However, when i copy and paste the exact same code for the Modal window to my project in Eclipse, the codes do not work again. The error

Is there any way to use WebResource or DynamicWebResource the same way as WebPage with BookmarkablePageLink and PageParameter.

2008-07-28 Thread Ali Sakebi
Hi Is there any way to use WebResource or DynamicWebResource the same way as WebPage with BookmarkablePageLink and PageParameter? That is creating a bookmarkable link with parameter for [Dynamic]WebResource and make use of those parameters in [Dynamic]WebResource. -ali

Re: Wicket example on Ajax - Modal window not working

2008-07-28 Thread mabel25
Hi, I have attached my source code and the error window. Thanks! Pills wrote: We need more info please paste your code and tell us where is the error mabel25 a écrit : Hi, I have downloaded the wicket examples and they work. However, when i copy and paste the exact same code for

Re: Branding a PageLink target Page

2008-07-28 Thread jensiator
I dont think wicket:link would work. Because I need to create my own class (Navlink). I guess that the wicket framework adds a Link (or PageLink) automaticly for you. But if you work on the sourcecode it might work. Changing the code behind wicket:link. If its possible Jens greeklinux wrote:

RefreshingView how to resize it?

2008-07-28 Thread Fabien D.
Hi everybody, I'm using a RefreshingView inside a table. This table is to long, and i would like to reduce the width. I try to do this with the css, fail! *** table cellspacing=0 border=1 class=refreshingTable tr thId/th

Re: Wicket example on Ajax - Modal window not working

2008-07-28 Thread Paul Logasa Bogen II
The .java and .html in your project would be far more useful then the final .html emitted by Wicket. Thanks, plb mabel25 wrote: Hi, I have attached my source code and the error window. Thanks! Pills wrote: We need more info please paste your code and tell us where is the error

Re: RefreshingView how to resize it?

2008-07-28 Thread Fabien D.
I found the solution, by reducing the size of the input text inside the refreshingview. -- View this message in context: http://www.nabble.com/RefreshingView-how-to-resize-it--tp18688971p18689155.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: AJAXIFY Palette: Can't get to the Recorder

2008-07-28 Thread Igor Vaynberg
override newrecorder() { recorder r=super.newrecorder(); r.add(new whateverbehavior()); return r; } -igor On Mon, Jul 28, 2008 at 12:33 AM, Edvin Syse [EMAIL PROTECTED] wrote: The javadocs for the Palette says to add AjaxFormComponentUpdatingBehaviour to the Recorder like this: Form

Re: Is there any way to use WebResource or DynamicWebResource the same way as WebPage with BookmarkablePageLink and PageParameter.

2008-07-28 Thread Igor Vaynberg
see upload download page on the wiki -igor On Mon, Jul 28, 2008 at 2:09 AM, Ali Sakebi [EMAIL PROTECTED] wrote: Hi Is there any way to use WebResource or DynamicWebResource the same way as WebPage with BookmarkablePageLink and PageParameter? That is creating a bookmarkable link with

Re: Wicket example on Ajax - Modal window not working

2008-07-28 Thread Igor Vaynberg
are you using wicket 1.2? -igor On Mon, Jul 28, 2008 at 2:18 AM, mabel25 [EMAIL PROTECTED] wrote: Hi, I have attached my source code and the error window. Thanks! Pills wrote: We need more info please paste your code and tell us where is the error mabel25 a écrit : Hi, I have

AuthenticatedWebApplication Problem

2008-07-28 Thread Ames, Tim
Using wicket 1.3.4 - production/stable version I am testing AuthenticatedWebApplication and AuthenticatedWebSession set up similar to the wicket-examples. I have the @AuthorizationInstantiation annotation set up on the home page. I start up a session using the address:

RE: AuthenticatedWebApplication Problem

2008-07-28 Thread Ames, Tim
Additionally, if I then type the address http://localhost:8080/MyApp/ the home page shows like it should -Original Message- From: Ames, Tim [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2008 11:24 AM To: users@wicket.apache.org Subject: AuthenticatedWebApplication Problem Using

Re: Strict 4 digit year for DateTextField?

2008-07-28 Thread damnitjim
Larry, I think setLenient(false) should work if you use java.text.DateFormat but did you write your own custom implementation of IConverter interface? Thats the only way I can think of at this point. Aye On Fri, Jul 25, 2008 at 2:25 PM, Zappaterrini, Larry [EMAIL PROTECTED] wrote: I've had the

Re: @SpringBean and serialization

2008-07-28 Thread Gerald Reinhart
I've implemented a little solution to inject SpringBean of Wicket Pages on the un-serialization event : 1 - Make the SpringContext available in a static way : public class MyWebApplication extends SpringWebApplication { private static ApplicationContext springApplicationContext = null ;

RE: Strict 4 digit year for DateTextField?

2008-07-28 Thread Zappaterrini, Larry
Aye, The use of DateFormat is actually in Spring's CustomDateEditor object. See http://static.springframework.org/spring/docs/2.5.x/api/org/springframew ork/beans/propertyeditors/CustomDateEditor.html#CustomDateEditor(java.te xt.DateFormat,%20boolean,%20int) where it mentions that

Re: Strict 4 digit year for DateTextField?

2008-07-28 Thread damnitjim
Lary, I've been looking at the APIs some more and found this different DateTextField (I'm not sure which one you're using): org.apache.wicket.extensions.markup.html.form.DateTextField I was using this one: org.apache.wicket.datetime.markup.html.form.DateTextField It looks like the the

Re: @SpringBean and serialization

2008-07-28 Thread James Carman
Why are you doing this again? @SpringBean already takes care of re-establishing the connection upon deserialization. On Mon, Jul 28, 2008 at 11:49 AM, Gerald Reinhart [EMAIL PROTECTED] wrote: I've implemented a little solution to inject SpringBean of Wicket Pages on the un-serialization

RE: AuthenticatedWebApplication Problem

2008-07-28 Thread trames
I found the problem, but I do not know what the solution would be. In my web.xml if I put in a specific url-pattern like filter-mapping filter-namemyapp/filter-name url-pattern/myapp/*/url-pattern /filter-mapping it then works. If I use

Re: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-28 Thread Paul Logasa Bogen II
After reading old threads in the board here I saw mention of problems with using a Panel inside a ModalWindow. So I tried converting my Panel that contained my DataGrid in to a WebPage. And now that DataGrid works perfectly. I am also having problems with another DataGrid which I will gather

Using same navigator on top and bottom of page.

2008-07-28 Thread Daniel Freitas
Hello guys. I searched the list for answers on this but couldn't find any. Is there a way to show a PagingNavigator (actually an AjaxPagingNavigator) on the top and bottom of a page? The navigator will page the same data, it's added on top and bottom just for convenience. I tried to do:

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Igor Vaynberg
try with regular paging navigator, it will most likely work. the problem is that because you are using ajaxpagingnavigator, when you click the top you do not redraw the bottom. you need to add that behavior yourself. -igor On Mon, Jul 28, 2008 at 12:01 PM, Daniel Freitas [EMAIL PROTECTED] wrote:

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Daniel Freitas
With the following markup: div wicket:id=topNavigator/ div wicket:id=booksList div wicket:id=books class=book !-- list of books -- /div /div div

Getting User from Session

2008-07-28 Thread insom
I'm trying to display a user's name in the browser. I'm using SWARM for authentication. My general idea is that the user signs in with this function: public boolean signIn(String username, String password) { LoginContext ctx = new FoodHandlerContext(username, password); MySession session =

Re: Getting User from Session

2008-07-28 Thread Jeremy Thomerson
I'm not sure what all you're trying to make easier, but as far as displaying the user - you could use this: new Label(username, new PropertyModel(this, session.user.username)); -- Jeremy Thomerson http://www.wickettraining.com On Mon, Jul 28, 2008 at 2:34 PM, insom [EMAIL PROTECTED] wrote:

Best way to implement DataTable updatable via Ajax

2008-07-28 Thread nanotech
Hi All, I have a Save Form where user should be able to add/save new records and should be able to view feedback if there are any errors. In short, When user loads up the page he sees a form and under it a DataTable which holds the deafault search results. If he tries to add a record and Add

Re: Best way to implement DataTable updatable via Ajax

2008-07-28 Thread Ryan Gravener
On Mon, Jul 28, 2008 at 3:59 PM, nanotech [EMAIL PROTECTED] wrote: Hi All, I have a Save Form where user should be able to add/save new records and should be able to view feedback if there are any errors. In short, When user loads up the page he sees a form and under it a DataTable

Re: Getting User from Session

2008-07-28 Thread Maurice Marrink
Yes, one of the ideas behind wicket is that you create your own custom wicketsession to access your session objects in a typesafe way. Using a propertymodel like Jeremy showed is a very elegant way of getting back that information. Maurice On Mon, Jul 28, 2008 at 9:39 PM, Jeremy Thomerson

Re: Page specific authorization

2008-07-28 Thread Maurice Marrink
Nope, no other info then class is available at that time since the component is not yet fully constructed it is to dangerous to pass that around even though we could. So use a custom check in the constructor of your subclass, that way you have access to all the information you need. Maurice On

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Daniel Freitas
I don't. I expected it to be rendered twice with the same id ;). Which is not possible, thus I had to create two components with two ids to make the navigator appear twice. Regards 2008/7/28 [EMAIL PROTECTED] how would you expec the same component to render twice with different HTML ids?

Re: Best way to implement DataTable updatable via Ajax

2008-07-28 Thread nanotech
Hi Ryan, Did you answer my post? i am unable to see any answer? Thanks RG Ryan Gravener-3 wrote: On Mon, Jul 28, 2008 at 3:59 PM, nanotech [EMAIL PROTECTED] wrote: Hi All, I have a Save Form where user should be able to add/save new records and should be able to view feedback if

Re: Best way to implement DataTable updatable via Ajax

2008-07-28 Thread Ryan Gravener
I'm sorry, gmail shortkeys did me in this time :) On Mon, Jul 28, 2008 at 5:06 PM, nanotech [EMAIL PROTECTED] wrote: Hi Ryan, Did you answer my post? i am unable to see any answer? Thanks RG Ryan Gravener-3 wrote: On Mon, Jul 28, 2008 at 3:59 PM, nanotech [EMAIL PROTECTED] wrote:

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Igor Vaynberg
two html elements cannot have the same id within the same html document... -igor On Mon, Jul 28, 2008 at 1:55 PM, Daniel Freitas [EMAIL PROTECTED] wrote: I don't. I expected it to be rendered twice with the same id ;). Which is not possible, thus I had to create two components with two ids to

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Daniel Freitas
I meant the wicket:id (which is not an html id right?). Anyways, I will just keep that in mind. Two components work as expected. 2008/7/28 Igor Vaynberg [EMAIL PROTECTED] two html elements cannot have the same id within the same html document... -igor On Mon, Jul 28, 2008 at 1:55 PM, Daniel

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Daniel Freitas
BTW. I'm trying to customize the PagingNavigator. If I come up with a good way to do it, how can I contribute to the project? Basically, I will try to let the user choose images or text for the first, previous, next and last links. Regards, 2008/7/28 Daniel Freitas [EMAIL PROTECTED] I meant

Re: AuthenticatedWebApplication Problem

2008-07-28 Thread Martijn Dashorst
do you have an index.jsp in your root context? If so, remove that and try again. Martijn On Mon, Jul 28, 2008 at 5:24 PM, Ames, Tim [EMAIL PROTECTED] wrote: Using wicket 1.3.4 - production/stable version I am testing AuthenticatedWebApplication and AuthenticatedWebSession set up similar to

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Igor Vaynberg
create a patch and attach it to a jira issue is usually the best way. btw there is already an issue for something like this: https://issues.apache.org/jira/browse/WICKET-1735 -igor On Mon, Jul 28, 2008 at 3:01 PM, Daniel Freitas [EMAIL PROTECTED] wrote: BTW. I'm trying to customize the

Re: Using same navigator on top and bottom of page.

2008-07-28 Thread Daniel Freitas
I will add the patch there if I ever come up with a good implementation. The problem is that there are so many things that can be customizable that it might be hard to come with a good, elegant solution. For example, the user might want to use images only, or text only, or image before a text (for

Re: Getting hold of Container's markup

2008-07-28 Thread Ricky
I'll give it a shot and see how it goes, thanks for your help Igor appreciate it! Regards Vyas, Anirudh On Fri, Jul 25, 2008 at 3:03 PM, Igor Vaynberg [EMAIL PROTECTED]wrote: my advice to you, if you want to go this way, is to use wickettester to render the component. it is really easy to

Feedback Message Levels : RFE

2008-07-28 Thread Ricky
Hi, I was looking at Feedback Message and the levels defined as integers, in move to Wicket 1.4, can we have an enumeration (or a class) like FeedbackMessageLevel, here's the example : public enum FeedbackMessageLevel{ // Debug level DEBUG(100), // Error level ERROR (400), // fatal level

Modal window - update main page on close

2008-07-28 Thread steve222
Hi. Using Wicket 1.3.4. I have a main page with a panel. Page contains a form for editing a main record. Panel contains a DataView containing a list of related sub records. In the java code for the pabel, create a ModalWindow and pop this for adding more sub-records. Uses AJAX. Got this

YUI DatePicker: JavaScript errors if parent container is not visible

2008-07-28 Thread nate roe
I'm using Wicket 1.3.3. If I add a DatePicker to a DateTextField that I in turn add to a WebMarkupContainer, and that WebMarkupContainer is hidden, a JavaScript error occurs. It looks like the header contributor for the DatePicker is still rendered to the page despite the fact that its markup is

Re: Best way to implement DataTable updatable via Ajax

2008-07-28 Thread nanotech
please help,Anyone? --- Hi All, I have a Save Form where user should be able to add/save new records and should be able to view feedback if there are any errors. In short, When user loads up the page he sees a form and under it a DataTable which holds the deafault

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-07-28 Thread Ricky
Menu is a good idea! I worked on this piece a little bit, (Took some cues from Swing menu component), but i hit a dead end with keeping markup consistent. Probably because i dont know wicket well enough; But i am pretty sure it will be a good add on!. Rick On Thu, Jun 5, 2008 at 2:36 AM, [EMAIL

Re: Best way to implement DataTable updatable via Ajax

2008-07-28 Thread Paul Logasa Bogen II
the inMethod DataGrid is excellent. plb nanotech wrote: please help,Anyone? --- Hi All, I have a Save Form where user should be able to add/save new records and should be able to view feedback if there are any errors. In short, When user loads up the page he sees a

Re: passing objects between pages

2008-07-28 Thread Igor Vaynberg
whats wrong with passing models around? -igor On Mon, Jul 28, 2008 at 5:45 PM, Ricky [EMAIL PROTECTED] wrote: May be i am reading too much into this, but i thought the idea was that Wicket components deal with Wicket models that in turn deal with Customer (User / Application) models (or VO

Re: Best /Correct way to update DataTable via Ajax

2008-07-28 Thread Ryan Gravener
If you post your code on pastebin i'll take a look at it. As for the generic issue of updating a datatable. I would update it in your onsubmit method, add it to the target. I wouldn't have any save calls in my dataprovider, only logic to fetch results. On Mon, Jul 28, 2008 at 8:52 PM, nanotech

Re: Strict 4 digit year for DateTextField?

2008-07-28 Thread damnitjim
I ended up having to use a custom date pattern. I'm not saying wicket has to be US-centric but this is such a common validation that most US customers have included in their requirements. public class StrictPatternDateConverter extends PatternDateConverter { public static final String

Re: passing objects between pages

2008-07-28 Thread Ricky
passing wicket models around is good. My point was that shouldn't a page have : (Ideally) 1.) Either component as attributes 2.) Or Wicket Models as attributes, should we need to expose a getter from a page, we could use final Model aWicketWrapperModel = new Model(); and then setObject( ) on it

Re: Best /Correct way to update DataTable via Ajax

2008-07-28 Thread Paul Logasa Bogen II
In the wicket-stuff repository is a YUI DataGrid wrapper for Wicket. It is a very robust Data control that supports ajax based updates. plb nanotech wrote: Hi Paul, Sorry could not understand your answer. Can you please elaborate? RG Paul Logasa Bogen II wrote: the inMethod DataGrid is

Re: Best /Correct way to update DataTable via Ajax

2008-07-28 Thread nanotech
Hi Ryan Posted code here.. http://pastebin.org/58032 http://pastebin.org/58035 Thanks, RG Ryan Gravener-3 wrote: If you post your code on pastebin i'll take a look at it. As for the generic issue of updating a datatable. I would update it in your onsubmit method, add it to the target.

IE 7 form submission issue

2008-07-28 Thread Ritesh Trivedi
Hi, I am observing really weird behavior in IE7. I have nested forms on a page and a submit button on the outer most form (root form). In FF2 and FF3 when I click submit button (input type=submit) it works fine, the form gets submitted and I see validation errors. But in IE, I dont see any

Re: Getting User from Session

2008-07-28 Thread Jeremy Thomerson
Sure - if you never want to use a property model. And if you don't use OGNL anywhere in your application. Say, for instance, Hibernate, etc You have to be careful how much you use it - I hated Tapestry because there was so much OGNL littered throughout multiple files. But, if you don't

Internationalisation with custom folder

2008-07-28 Thread Ned Collyer
Hi, I'm currently using wicket 1.4-m1 I need to be able to partially override a properties file. Eg, Classpath: Application.properties key1=123 key2=456 Filesystem: Application.properties key2=444 key3=555 This should result in a resource which is like this Application.properties

Re: passing objects between pages

2008-07-28 Thread Jeremy Thomerson
As far as the constructor problem is concerned, I may not fully understand your problem, but what about static factory methods? CreateUser.createEditPage(IModelGroup) CreateUser.createAddPage(IModelUser) -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jul 24, 2008 at 6:50 AM, John

Re: Internationalisation with custom folder

2008-07-28 Thread Ned Collyer
Not as simple as I'd hoped... Looks like I need to copy/paste all of PropertiesFactory and reimplement IPropertiesFactory with my mods. Oh well :| -- View this message in context: http://www.nabble.com/Internationalisation-with-custom-folder-tp18705254p18705484.html Sent from the Wicket -