Re: Re-render after AbstractRestartResponseException() not working in Ajax case

2008-03-25 Thread Johan Compagner
Attach all this to a jira, on the list it is getting lost On 3/25/08, Matthew Young [EMAIL PROTECTED] wrote: I forgot to include the HomePage.html. Here is all the files of my small test. Please check it out if possible. If you run it with JS off, all is fine. With JS on, Ajax response

Bug in order of rendered links within wicket:head ?

2008-03-25 Thread Justin Morgan - Logic Sector
I'm having an issue with links to CSS files in Wicket 1.3.1. The problem is the ordering of the links in the rendered HTML. The page inheritance hierarchy goes like this: AbstractMasterPage -- AbstractStaticTextPage -- StaticTextPage However, the list of links brought in via the

Re: Wicketstuff source pages - can we make them stateless?

2008-03-25 Thread Nino Saturnino Martinez Vazquez Wael
+1 great idea.. :) Matej Knopp wrote: Why can't we just put a 5 minute timer on each page which would casuse active sessions never expire? -Matej On Tue, Mar 18, 2008 at 8:52 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: Making the source code viewing pages

Shared resources with parameters?

2008-03-25 Thread Erik van Oosten
Hi, I am looking for a way to serve many static images. It is important that I do not have to separately register them (as with SharedResources, as I understood) as there about 20.000 to 50.000 of them, and the set changes continuously. The most obvious thing that comes to mind is a static

Re: Shared resources with parameters?

2008-03-25 Thread lars vonk
You could put Apache in front and let it serve you static images? Lars On Tue, Mar 25, 2008 at 10:18 AM, Erik van Oosten [EMAIL PROTECTED] wrote: Hi, I am looking for a way to serve many static images. It is important that I do not have to separately register them (as with SharedResources,

Textarea autosize/auto resize height

2008-03-25 Thread Martin Makundi
Hi! Here is a javascript snipplet that can be used to automatically resize a textarea's height to fit the contents: http://codingforums.com/archive/index.php?t-92781.html Is there something similar in built-in into wicket? ** Martin

Re: Textarea autosize/auto resize height

2008-03-25 Thread James Carman
It looks like you've got what you need. Maybe this could be a behavior that you add to the regular TextArea component? On Tue, Mar 25, 2008 at 6:36 AM, Martin Makundi [EMAIL PROTECTED] wrote: Hi! Here is a javascript snipplet that can be used to automatically resize a textarea's height to

Unsure about setResponsePage behaviour

2008-03-25 Thread Eric Rotick
I have a page with many buttons to do different things. I decided the best strategy was to setup the default page via a call to setReponsePage at the start of the page and then overrride this in the onSubmit method for each button. This appears not to work. However, if I set a value of the

Re: Shared resources with parameters?

2008-03-25 Thread Johan Compagner
or the app server which ever it is.. but where are the located? On Tue, Mar 25, 2008 at 11:19 AM, lars vonk [EMAIL PROTECTED] wrote: You could put Apache in front and let it serve you static images? Lars On Tue, Mar 25, 2008 at 10:18 AM, Erik van Oosten [EMAIL PROTECTED] wrote: Hi,

Re: Unsure about setResponsePage behaviour

2008-03-25 Thread Johan Compagner
do you have some sample code?? what do you mean with setResponsePage outside of an onSubmit or click? outside of what? when is it called? On Tue, Mar 25, 2008 at 12:22 PM, Eric Rotick [EMAIL PROTECTED] wrote: I have a page with many buttons to do different things. I decided the best strategy

Re: Textarea autosize/auto resize height

2008-03-25 Thread Nino Saturnino Martinez Vazquez Wael
He means that you create a behavior yourself to integrate the desired functionality. Much like wicket-contrib-input-events etc... regards Nino Martin Makundi wrote: Do you have an example (e.g., link) of what kind of jsBehavior you mean? ** Martin 2008/3/25, James Carman [EMAIL PROTECTED]:

Re: Nice absolute urls - is this possible?

2008-03-25 Thread Java Programmer
On Thu, Mar 20, 2008 at 4:39 PM, Johan Compagner [EMAIL PROTECTED] wrote: you are worried about what is in the source? so you dont really need it for something else like in an email? but wicket generates for itself relative urls if you need a full for yourself you can use

Re: Textarea autosize/auto resize height

2008-03-25 Thread Martin Makundi
I understood to do it myself, but what link can you think of that has a good example dealing with somewhat similar js issue? Tnx. ** Martin 2008/3/25, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]: He means that you create a behavior yourself to integrate the desired functionality.

Re: Problem with Hibernate and Caching..

2008-03-25 Thread Bert Radke
On Sun, Mar 23, 2008 at 9:20 PM, Timo Rantalaiho [EMAIL PROTECTED] wrote: Could you show us some code, please? The crystal balls and tea leaves charge extra for easter work :) Thank you for your reply and sorry that i put to much stress on the crystal balls ;) As i was writing a lengthily

Re: Unsure about setResponsePage behaviour

2008-03-25 Thread Eric Rotick
I have simplified the class and it behaves the same. public class SingleItemForm extends Panel { public SingleItemForm( String id, final boolean readonly, final ISingleDisplay display, final IModel model, final Page callingPage ) {

Re: Unsure about setResponsePage behaviour

2008-03-25 Thread Johan Compagner
We really should remove all the RequestCycle methods from components if i read these kind of mails form.setResponsePage() doesn't mean that in the onSubmit that page is set as a response! That is something you should do yourself yes in the onSubmit() you dont have to do then form. just

Re: Nice absolute urls - is this possible?

2008-03-25 Thread Johan Compagner
it is relative to the current url in the browser On Tue, Mar 25, 2008 at 12:38 PM, Java Programmer [EMAIL PROTECTED] wrote: On Thu, Mar 20, 2008 at 4:39 PM, Johan Compagner [EMAIL PROTECTED] wrote: you are worried about what is in the source? so you dont really need it for something else

Re: Textarea autosize/auto resize height

2008-03-25 Thread Nino Saturnino Martinez Vazquez Wael
As I wrote: http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-stuff-contrib-input-events However this is probably more complex than what you need. But It will work, please ask if you have questions. regards Nino Martin Makundi wrote: I understood to do it myself, but what link can

Re: Problem with Hibernate and Caching..

2008-03-25 Thread Nino Saturnino Martinez Vazquez Wael
Hmm, if you remove that you will get into trouble. At least I got, thats why I put it in there in the first place.. Problem was when I had entites that were managed between pages.. Eg if you go to pageA and your pet Class loads here, then go to pageB which does some changes to pet and then

Re: Unsure about setResponsePage behaviour

2008-03-25 Thread Eric Rotick
Thanks for the help, I'm getting there...slowly! Does this mean that I can't do something like new MyPage1( ).setResponsePage( new MyPage2( ) ); and then somewhere else new MyPage1( ).setResponsePage( new MyPage3( ) ); Instead I have to add a parameter to all pages that could have a variable

Re: Unsure about setResponsePage behaviour

2008-03-25 Thread Johan Compagner
no if you call on any component setResponsePage() then that page is set as the response at the time of the call. It is not internal state of that component that is then somehow picked up at some point A component/page doesn't have a default response page.. (the default response page is the

Re: Unsure about setResponsePage behaviour

2008-03-25 Thread Eric Rotick
Great, that explains it very well. Thanks for your help. Eric. On Tue, Mar 25, 2008 at 12:55 PM, Johan Compagner [EMAIL PROTECTED] wrote: no if you call on any component setResponsePage() then that page is set as the response at the time of the call. It is not internal state of that

Re: Shared resources with parameters?

2008-03-25 Thread Erik van Oosten
Hi Lars, They are not that static :) We import and export the images from a database we manage. By 'static' I meant that the images do not change over time, so I want fixed URLs for them. Sorry for the confusion. Regards, Erik. lars vonk wrote: You could put Apache in front and let it

Re: Problem with Hibernate and Caching..

2008-03-25 Thread Bert Radke
On Tue, Mar 25, 2008 at 1:41 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hmm, if you remove that you will get into trouble. At least I got, thats why I put it in there in the first place.. Problem was when I had entites that were managed between pages.. Eg if you go

RE: './' appended to the main page url

2008-03-25 Thread Hoover, William
https://issues.apache.org/jira/browse/WICKET-1449 -Original Message- From: Toto Laricot [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2008 3:29 AM To: users@wicket.apache.org Subject: './' appended to the main page url Hi all, Here is the situation I've been banging my head on all

Ajax in popup update to parent page?

2008-03-25 Thread Casey McGuire
Am I even close to doing this correctly? I have two pages and one panel. A parent page and a popup page. Both pages contain the Panel. The popup page also contains a Form with an Ajax button. When I click this button, I want it to update the TimePanel on both pages. When the parent

WebPage.onDetach calls renderHead on all Components on the page?

2008-03-25 Thread Charlie Dobbie
Hi all, I've recently upgraded a 1.2.6 application to 1.3.1. This involved simultaneously upgrading libraries for Wicket, Databinder and Hibernate to name but three, so until my application settles, I'll never be sure which library is causing each issue! I'm getting the following exception in

Re: WebPage.onDetach calls renderHead on all Components on the page?

2008-03-25 Thread Johan Compagner
this is an Development check. if you use deployment mode you wont see this. In the current head this is fixed/improved and it will not be called anymore from onDetach and it wont be called anymore that often because the check for if it is needed to check for it is much better johan On Tue, Mar

Re: WebPage.onDetach calls renderHead on all Components on the page?

2008-03-25 Thread Maurice Marrink
This has recently been fixed on trunk. You could either switch to version 1.3-SNAPSHOT or wait til 1.3.3 comes out. If you wait untill 1.3.3 you could work around the issue by either switching to deployment mode or catching the null in your code and then do nothing. Dammit Johan, could you not

Re: Problem with Hibernate and Caching..

2008-03-25 Thread Nino Saturnino Martinez Vazquez Wael
Bert Radke wrote: On Tue, Mar 25, 2008 at 1:41 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hmm, if you remove that you will get into trouble. At least I got, thats why I put it in there in the first place.. Problem was when I had entites that were managed between

Re: Unsure about setResponsePage behaviour

2008-03-25 Thread Maurice Marrink
On Tue, Mar 25, 2008 at 1:42 PM, Eric Rotick [EMAIL PROTECTED] wrote: Thanks for the help, I'm getting there...slowly! Does this mean that I can't do something like new MyPage1( ).setResponsePage( new MyPage2( ) ); and then somewhere else new MyPage1( ).setResponsePage( new MyPage3( )

ListView not updating when changed

2008-03-25 Thread taygolf
ok here is what I have. i have a listview that I want to update on the fly. The user clicks a link and that link opens a popup. in that popup the user will put in the information required and hit submit. once the information is submitted I am saving it in a session list of models. So the model

Re: Unsure about setResponsePage behaviour

2008-03-25 Thread Eric Rotick
Good point. On Tue, Mar 25, 2008 at 2:01 PM, Maurice Marrink [EMAIL PROTECTED] wrote: On Tue, Mar 25, 2008 at 1:42 PM, Eric Rotick [EMAIL PROTECTED] wrote: Thanks for the help, I'm getting there...slowly! Does this mean that I can't do something like new MyPage1( ).setResponsePage(

Re: Ajax in popup update to parent page?

2008-03-25 Thread Maurice Marrink
You can not share any component between 2 or more pages if you add a component to one page it is removed from the other page. What you should do instead is add a new instance of the component to each page and let the components share the same model. If you then update the model and let ajax

Re: Double submit problem

2008-03-25 Thread laz
Does anyone else feel that this would be generically useful to have as a part of Wicket? Not only does it prevent double submits, but it also is a simple safeguard against cross-site request forgery (see http://en.wikipedia.org/wiki/Cross-site_request_forgery for a summary). The one missing

Re: Ajax in popup update to parent page?

2008-03-25 Thread Johan Compagner
sharing the same model is also dangerous What you should do is in the onSubmit of the ajaxbutton in the second page get the first page (hold on to it somehow that doesn't matter) and then do page.getModel().setObject(x) johan On Tue, Mar 25, 2008 at 3:26 PM, Maurice Marrink [EMAIL PROTECTED]

Re: Double submit problem

2008-03-25 Thread Maurice Marrink
The one missing piece from your solution is synchronization. There is the slightest possibility that the second submit of a double submit could enter onSubmit before the token is reset. I am not yet sure what would be the best object to synchronize on, possibly the session id? Actually

Re: Double submit problem

2008-03-25 Thread Johan Compagner
do you have a good patch then? And are you saying that all double submits are then not possible anymore? Also when i submit then think hmm thats wrong back button change something and submit again? On Tue, Mar 25, 2008 at 3:25 PM, laz [EMAIL PROTECTED] wrote: Does anyone else feel that

RE: Double submit problem

2008-03-25 Thread Zappaterrini, Larry
Sorry, I should have attributed that code to Joel. -Original Message- From: Zappaterrini, Larry [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2008 10:56 AM To: users@wicket.apache.org Subject: RE: Double submit problem I don't have a patch, at this point I was just testing the

Re: ListView not updating when changed

2008-03-25 Thread Johan Compagner
what happens if you set: lv.setReuseItems(true); to false? and what do you mean with go back and edit ? browser back? johan On Tue, Mar 25, 2008 at 3:02 PM, taygolf [EMAIL PROTECTED] wrote: ok here is what I have. i have a listview that I want to update on the fly. The user clicks a

Re: WebPage.onDetach calls renderHead on all Components on the page?

2008-03-25 Thread Charlie Dobbie
Hi Johan and Maurice, Many thanks - I've upgraded to the 1.3-SNAPSHOT, and that has fixed my problem. (Anyone who finds this message looking for snapshot releases, check: http://wicket.apache.org/getting-wicket.html) Cheers, Charlie. On Tue, Mar 25, 2008 at 1:50 PM, Maurice Marrink [EMAIL

Re: Ajax in popup update to parent page?

2008-03-25 Thread Maurice Marrink
On Tue, Mar 25, 2008 at 3:31 PM, Johan Compagner [EMAIL PROTECTED] wrote: sharing the same model is also dangerous Right, because of the duplicates you can get when the pages are serialized and deserialized. Thanks for pointing that out Johan. Maurice

Reusable panels with content

2008-03-25 Thread kumark
I have just done a prototype using portlets, and we are evaluating wicket to see if we can do similar stuff with out portlets. As I understand wicket allows components to represent data in a table and do paging as well. I was wondering if such tabular data(model/view) for example: a list of

Re: Reusable panels with content

2008-03-25 Thread lars vonk
One way to do this is use Panels. See http://cwiki.apache.org/WICKET/panels-and-borders.html On Tue, Mar 25, 2008 at 4:31 PM, kumark [EMAIL PROTECTED] wrote: I have just done a prototype using portlets, and we are evaluating wicket to see if we can do similar stuff with out portlets. As I

Tabs - hovering and clicking

2008-03-25 Thread Ryan O'Hara
Hey, I'm new to Wicket. I'm trying to create a tabbed header, which will load Tab classes when hovered. The tab classes are panels, as well. I tried making hoverMenu a panel, but I was getting some errors about it not finding markup. Any help would be greatly appreciated. Below is a

RE: ListView not updating when changed

2008-03-25 Thread Maeder Thomas
If memory serves, the ListView will not repopulate already existing items. I see two options: 1) setReuseItems(false) 2) instead of creating the label with a fixed String (I assume that kmd.getName() returns a String) pass an IModel to the label like so: New Label(kmname, new

Re: Double submit problem

2008-03-25 Thread James Carman
Would something like this work? public class SynchTokenField extends HiddenField { private String token; public SynchTokenField(String id) { super(id, new PropertyModel(new ValueMap(), token)); setRequired(true); add(new AbstractValidator() {

Wicket-Security Back Button and Login more than once

2008-03-25 Thread Warren
How do you deal with the situation where a user uses the browser back button and ends up on a login page and then trys to login again? In other words, how do you allow a user to login more than once. I am also running into this same situation when I manually throw a

Re: Shared resources with parameters?

2008-03-25 Thread Igor Vaynberg
and inside the resource you do RequestCycle.get().getRequest().getParameter(foo); -igor On Tue, Mar 25, 2008 at 6:41 AM, Johan Compagner [EMAIL PROTECTED] wrote: ok just make such a class make a (Dynamic)Resource that you add to the shared resources That resource looks in the params to

Re: Double submit problem

2008-03-25 Thread Johan Compagner
shouldn't the token be cleared then somehow on the first request? (in the validator) now if the second time it still validates fine because the value that is submitted doesnt change and the token in the field doesn't change. But it is a nice simple idea to have On Tue, Mar 25, 2008 at 5:40 PM,

Re: Shared resources with parameters?

2008-03-25 Thread Johan Compagner
no do resource/this.getParameters() dont try to get the RequestCylce if it is a HEAD request (last modified check) it doesn't have to be there.. johan On Tue, Mar 25, 2008 at 5:44 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: and inside the resource you do

Size of TextFilter TextField

2008-03-25 Thread Kai Mütz
Hi, I want to set the size of a textfield within the FilterForm. How can I do that? Subclass TextFilter or is there a better way? Regards, Kai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: clustering failover error

2008-03-25 Thread Scott Swank
Thank you. We'll give that a try and let you know the results. On Mon, Mar 24, 2008 at 11:43 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: see WICKET-1445. upgrade wicket to trunk and try again. -igor On Mon, Mar 24, 2008 at 3:15 PM, Scott Swank [EMAIL PROTECTED] wrote: We are trying

Re: Tabs - hovering and clicking

2008-03-25 Thread Igor Vaynberg
seeing the actual stacktrace would be more helpful... -igor On Tue, Mar 25, 2008 at 8:59 AM, Ryan O'Hara [EMAIL PROTECTED] wrote: Hey, I'm new to Wicket. I'm trying to create a tabbed header, which will load Tab classes when hovered. The tab classes are panels, as well. I tried making

Re: ListView not updating when changed

2008-03-25 Thread Igor Vaynberg
ListView lv = new PropertyListView(rows, kmList) { public void populateItem(final ListItem item) { item.add(new Label(kmname)); item.add(new Label(kmsec)); item.add(new Label(kmroles));

Re: Wicket-Security Back Button and Login more than once

2008-03-25 Thread Maurice Marrink
We also use a screensaver but it does not use the login routines, instead it just verifies the user input against the username and password from the loggedin user. Also you can a check on the loginpage to determine if there is already a logged in user, if there is and it is the same username you

Re: Shared resources with parameters?

2008-03-25 Thread Igor Vaynberg
well, hopefully you dont instantiate the resource stream if its just a HEAD response... -igor On Tue, Mar 25, 2008 at 9:47 AM, Johan Compagner [EMAIL PROTECTED] wrote: no do resource/this.getParameters() dont try to get the RequestCylce if it is a HEAD request (last modified check) it

Re: Double submit problem

2008-03-25 Thread James Carman
So, it would be like this? public class SynchTokenField extends HiddenField { private String token; public SynchTokenField(String id) { super(id, new PropertyModel(new ValueMap(), token)); setType(String.class); setRequired(true); regenerateToken();

Re: Double submit problem

2008-03-25 Thread Igor Vaynberg
you should regen the token in onbeforerender()... -igor On Tue, Mar 25, 2008 at 10:09 AM, James Carman [EMAIL PROTECTED] wrote: So, it would be like this? public class SynchTokenField extends HiddenField { private String token; public SynchTokenField(String id) {

Re: Double submit problem

2008-03-25 Thread James Carman
Okay, how about this? public class SynchTokenField extends HiddenField { private String token; public SynchTokenField(String id) { super(id, new PropertyModel(new ValueMap(), token)); setType(String.class); setRequired(true); regenerateToken();

Re: Tabs - hovering and clicking

2008-03-25 Thread Ryan O'Hara
Sorry, I should've been more clear. The code actually compiles and runs as is (with hoverMenu being of type Label, rather than Panel). When the links are hovered, edu.chop.bic.cnv.ui.LoginTab is displayed. The behavior I'm looking for is for the content of LoginTab to be displayed.

Re: Double submit problem

2008-03-25 Thread Johan Compagner
thats fine i gues, but a bit uglier with that null check I guess your last one before this one would also suffice because on every render the token doesn't need to change, why should it? if i press refresh in the browser does the token has to be changed? It isnt used anywhere at that time anyway.

Re: Double submit problem

2008-03-25 Thread James Carman
Should this (or a prettied up version of it) go on the wiki or would this be something that you guys would consider for the core (i.e. submit a feature request)? On Tue, Mar 25, 2008 at 1:27 PM, Johan Compagner [EMAIL PROTECTED] wrote: thats fine i gues, but a bit uglier with that null check

Re: Shared resources with parameters?

2008-03-25 Thread Johan Compagner
no but the params could contain a filename and against that you check the last modified time stamp also in the DB just also for performance, if we call: public abstract IResourceStream getResourceStream(); then dont already get all the data. Because that call can also just be used for

Re: Double submit problem

2008-03-25 Thread Johan Compagner
if it was me something like this could go into extentions. Or if people really want this as a visible security feature we could drop it besides Form johan On Tue, Mar 25, 2008 at 6:30 PM, James Carman [EMAIL PROTECTED] wrote: Should this (or a prettied up version of it) go on the wiki or

Re: Double submit problem

2008-03-25 Thread James Carman
On Tue, Mar 25, 2008 at 1:34 PM, Johan Compagner [EMAIL PROTECTED] wrote: if it was me something like this could go into extentions. Or if people really want this as a visible security feature we could drop it besides Form Is this the way you would suggest doing it? I was thinking a

Panel Question

2008-03-25 Thread Ryan O'Hara
Can a class extending a panel contain a panel? Thanks, Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Panel Question

2008-03-25 Thread Martijn Dashorst
yes On 3/25/08, Ryan O'Hara [EMAIL PROTECTED] wrote: Can a class extending a panel contain a panel? Thanks, Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --

Re: Tabs - hovering and clicking

2008-03-25 Thread Igor Vaynberg
see how TabbedPanel works, what you are building is very similar to that i think. -igor On Tue, Mar 25, 2008 at 10:20 AM, Ryan O'Hara [EMAIL PROTECTED] wrote: Sorry, I should've been more clear. The code actually compiles and runs as is (with hoverMenu being of type Label, rather than

Re: Shared resources with parameters?

2008-03-25 Thread Igor Vaynberg
the whole resource thing is soo bloated. something we should simplify in 1.5. im all for getting rid of it entirely. we already have a nice interface for streams and that is called IRequestTarget, just need to add a lastmodifiedtime() to it and we are done :) and it also gets rid of the

Re: Double submit problem

2008-03-25 Thread Johan Compagner
I dont think this can be easily done by Behaviors or Validators Only when we make it that a validator can also be a behavior (or provide a behavior) then that would be possible. for now Validatiors cant contribute to the html this is on the todo. johan On Tue, Mar 25, 2008 at 6:36 PM, James

Re: Double submit problem

2008-03-25 Thread James Carman
On Tue, Mar 25, 2008 at 1:50 PM, Johan Compagner [EMAIL PROTECTED] wrote: I dont think this can be easily done by Behaviors or Validators Only when we make it that a validator can also be a behavior (or provide a behavior) then that would be possible. for now Validatiors cant contribute to

Re: Double submit problem

2008-03-25 Thread Igor Vaynberg
s/propertymodel.../new Model()/ s/if (token == null || !token.equals(validatable.getValue()))/!token.equals(validatable.getvalue())/ s/error(validatable)/error(FormTokenValidator)/ - no one wants to define a SyncTokenField$AbstractValidator0 resource key -igor On Tue, Mar 25, 2008 at 10:19 AM,

Re: Double submit problem

2008-03-25 Thread Igor Vaynberg
something like this works fine if all you want to do is error out. keeping in mind that wicket will synchronize requests already you can actually provide a much better user experience if you sublcass this in the form: add(new secureform(form) { onOriginaltSubmit() { user

RE: Wicket-Security Back Button and Login more than once

2008-03-25 Thread Warren
Where would you check to see if the same user was trying to log on again, in the LoginContext? I can check in the Session and see if a user is logged on or not, but I can not check to see if it is the same user unless I keep the userid and password in the session. I would like to do it in the

Re: Re-render after AbstractRestartResponseException() not working in Ajax case

2008-03-25 Thread Matthew Young
Done: https://issues.apache.org/jira/browse/WICKET-1450

Re: Bug in order of rendered links within wicket:head ?

2008-03-25 Thread Justin Morgan - Logic Sector
Still wondering if anyone has any input on this...? Thanks for any help! To clarify, the pages are specified like so... AbstractMasterPage ( -- extends WebPage) wicket:head link type=text/css rel=stylesheet href=css/ AbstractMasterPage.css/ /wicket:head

Re: Shared resources with parameters?

2008-03-25 Thread Johan Compagner
On Tue, Mar 25, 2008 at 6:46 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: the whole resource thing is soo bloated. something we should simplify in 1.5. im all for getting rid of it entirely. we already have a nice interface for streams and that is called IRequestTarget, we already have

Re: Bug in order of rendered links within wicket:head ?

2008-03-25 Thread Igor Vaynberg
matej? do we guarantee the order? looks like we should? -igor On Tue, Mar 25, 2008 at 11:36 AM, Justin Morgan - Logic Sector [EMAIL PROTECTED] wrote: Still wondering if anyone has any input on this...? Thanks for any help! To clarify, the pages are specified like so...

Re: Shared resources with parameters?

2008-03-25 Thread Igor Vaynberg
well, im saying get rid of Resource/ResourceStream entirely. we dont need that abstraction, we can just add whatever is missing to resource target. actually that way you can also implement page caching easily...maybe... anyways, irequesttarget.getlastmodified(pageparameters) can alleviate

Re: Bug in order of rendered links within wicket:head ?

2008-03-25 Thread Matej Knopp
I agree that we should. But I'm not sure why the order is like this. Juergen? -Matej On Tue, Mar 25, 2008 at 7:43 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: matej? do we guarantee the order? looks like we should? -igor On Tue, Mar 25, 2008 at 11:36 AM, Justin Morgan - Logic Sector

DataView with special info on the first page

2008-03-25 Thread Dan Kaplan
I'd like to put some special info on the first page of my data view: Some info that explains what the site is about. I don't want this info to take up real estate on all the other pages because once you've read it once, it'll be annoying to have to scroll past each time. So how do I put

Re: Shared resources with parameters?

2008-03-25 Thread Johan Compagner
kill IResourceStream looks doable But also resource? Where does a ResourceReference then point to? How do we name the byte[] or streams? johan On Tue, Mar 25, 2008 at 7:45 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: well, im saying get rid of Resource/ResourceStream entirely. we dont need

Re: './' appended to the main page url

2008-03-25 Thread Toto Laricot
https://issues.apache.org/jira/browse/WICKET-1449 Thanks. I the meantime I'll chop off the './.' in my overloaded WebRequestCycleProcessor.respond t.

Re: Wicket-Security Back Button and Login more than once

2008-03-25 Thread Maurice Marrink
Well, we do it by also keeping a reference to the user (not the subject that swarm uses) in the session. And we check if the the user is already logged in in the constructor of our login page. The login context is not intended to check if the same user is already logged in. The logincontext does

Re: DataView with special info on the first page

2008-03-25 Thread Igor Vaynberg
put it outside the dataview and link its visiblity to the currentpage() of the dataview? -igor On Tue, Mar 25, 2008 at 12:30 PM, Dan Kaplan [EMAIL PROTECTED] wrote: I'd like to put some special info on the first page of my data view: Some info that explains what the site is about. I don't

Re: Shared resources with parameters?

2008-03-25 Thread Igor Vaynberg
well, these are all the questions we would have to answer when we are looking into this in detail. i dont have the answers right now, im just stating what i would like to see happen. i think the entire resource api has become very very bloated and can be simplified. -igor On Tue, Mar 25, 2008

CheckBox uses true/false but model is Y/N

2008-03-25 Thread dvd
Hello: Is there built-in mechanism to auto convert the checkbox model value to be a character set Y/N  or Yes/No or any other pairs? This is frequently used pattern. Thanks.

Re: CheckBox uses true/false but model is Y/N

2008-03-25 Thread Timo Rantalaiho
On Tue, 25 Mar 2008, [EMAIL PROTECTED] wrote: Is there built-in mechanism to auto convert the checkbox model value to be a character set Y/N  or Yes/No or any other pairs? This is frequently used pattern. Probably you could set your own IConverter on the component corresponding the checkbox.

Re: CheckBox uses true/false but model is Y/N

2008-03-25 Thread Igor Vaynberg
you forgot the important detach() { room.detach(); } -igor On Tue, Mar 25, 2008 at 1:52 PM, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Tue, 25 Mar 2008, [EMAIL PROTECTED] wrote: Is there built-in mechanism to auto convert the checkbox model value to be a character set Y/N or Yes/No or

Re: CheckBox uses true/false but model is Y/N

2008-03-25 Thread Timo Rantalaiho
On Tue, 25 Mar 2008, Igor Vaynberg wrote: you forgot the important detach() { room.detach(); } Oops, good catch. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Wicket-Security Back Button and Login more than once

2008-03-25 Thread Warren
Your checking in your constructor or in an onSubmit() of a form on your Login Page? I'm sorry, I am not quite following you. And are you keeping password info in your User reference or are you looking it up from db or wherever every time? -Original Message- From: Maurice Marrink

Re: Wicket-Security Back Button and Login more than once

2008-03-25 Thread Maurice Marrink
I checked to be sure :) we check it in the constructor: // prevent double logins if (isUserLoggedIn()) { throw new RestartResponseException(HomePage.class); } ofcourse that way you can not check if it is the same user. So if you really want to do that you have to check it in the onsubmit

Re: CheckBox uses true/false but model is Y/N

2008-03-25 Thread dvd
Thanks. I'd prefer a custom checkbox class with converter. I just created a test class as below but not working. Appreciate any pointers. I did not find an example to follow. public class CheckBoxYN extends CheckBox{ public CheckBoxYN(String id){ super(id); }

Panel problem

2008-03-25 Thread Ryan O'Hara
Hello, I have a Login.html/Login.java which adds a TabbedHeader component (which extends Panel). When I try to add a panel component to TabbedHeader, I get the following exception: WicketMessage: Markup of type 'html' for component 'org.apache.wicket.markup.html.panel.Panel' not found.

Re: CheckBox uses true/false but model is Y/N

2008-03-25 Thread dvd
Use model decorator sometimes seems troublesome. I need to use a form containing a lot of checkboxes and other types with compoundproperty model with a entity bean, say record. Most formcoponent ids are identical to their record property name, such as Textfield(firstName) and record also has

Re: DataView with special info on the first page

2008-03-25 Thread Maurice Marrink
What about using a feedbackpanel that gets filled in the constructor like: info(this site is about.); It also gets cleared on page refreshes but that might be what you want. Maurice On Tue, Mar 25, 2008 at 9:25 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: put it outside the dataview and link

Re: Panel problem

2008-03-25 Thread Timo Rantalaiho
On Tue, 25 Mar 2008, Ryan O'Hara wrote: WicketMessage: Markup of type 'html' for component 'org.apache.wicket.markup.html.panel.Panel' not found. Enable debug messages for org.apache.wicket.util.resource to get a list of all filenames tried: [MarkupContainer [Component id = hoverMenu,

Re: Panel problem

2008-03-25 Thread Maurice Marrink
I think it is caused because you do: add(new Panel(hoverMenu)); You are using the Panel class itself here you can not define a layout for it without subclassing it. Timo beat me to it :) Maurice On Tue, Mar 25, 2008 at 10:27 PM, Ryan O'Hara [EMAIL PROTECTED] wrote: Hello, I have a

Re: Panel problem

2008-03-25 Thread Ryan O'Hara
Thx! That fixed the problem I was experiencing. I want to replace the hoverMenu WebMarkupContainer with different classes extending panels (or should they now be extending WebMarkupContainers, as well?) when particular tabs are hovered. Thanks again for being so responsive. Ryan On

  1   2   >