Multiple submit buttons - CompoundPropertyModel not updated

2010-11-03 Thread Benjamin Lorenz
Hello, I have a problem with a form that shall have two submit buttons. One finally submits the form with all plausibility checks, etc... the other just opens up a search form, to lookup some data for inclusion in the form. This submit shall NOT do all the checks on e.g. .setRequired(true),

Re: wicket-ajax header from url?

2010-11-03 Thread Frank van Lankvelt
I think it would make sense to have any requests targeting an abstract-ajax-behavior be marked as 'ajax', without requiring client-side logic. This makes client-side integration quite straightforward. One then only needs to implement the server side of the protocol, without having to intercept

How to get other page's localized messages ?

2010-11-03 Thread smallufo
If I have two WebPages : Page1.java Page1.properties , which stores default value Page1_zh.properties , which stores Chinese translations And Page2.java How do I get Page1's specific localized message in Page2 ? I noticed the StringResourceModel , but it seems not what I want.

SV: How to get other page's localized messages ?

2010-11-03 Thread Wilhelmsen Tor Iver
How do I get Page1's specific localized message in Page2 ? 1) Make a superclass for the two pages and put the message in the superclass' property file 2) Put the property in the Application's property file In both cases the mechanisms in Wicket will find the message. - Tor I.

How can I create RadioGroups that are not defined by component hierarchy/layout ?

2010-11-03 Thread tommy
I asked the following question on stack-overflow but was advised to ask here instead. http://stackoverflow.com/questions/4074028/in-wicket-how-can-i-create-radiogroups-that-are-not-defined-by-component-hierarc I am using Wicket and would like to create a grid of radio buttons using html as shown

GMap2 off center

2010-11-03 Thread Peter Miklosko
In our application we are using Wicket GMap2 in some cases successfully in other case with problems. The map is being off center, having about 10-15px grey border on the left and bottom of the map and in case of multiple markers on the map being zoomed out to 0.0 in Firefox. The map is showing

Re: How can I create RadioGroups that are not defined by component hierarchy/layout ?

2010-11-03 Thread Michael O'Cleirigh
Hi, The RadioGroup just needs to wrap the radio's in your markup. Typically it does not even render markup in the resultant page. Instead of this: form span wicket:id=radioGroupList span wicket:id=radioGroup/ /span ul liradio wicket:id=myradio//li do this: form

Re: How can I create RadioGroups that are not defined by component hierarchy/layout ?

2010-11-03 Thread tommy
Ah but I have varying number of groups, hence the radioGroupList ( Sorry I maybe didnt make this point clear enough). How can you nest them when you dont know how many there will be? On Wed, Nov 3, 2010 at 1:46 PM, Tom Howe tomh...@artcore.com wrote: Ah but I have varying number of groups,

Re: How can I create RadioGroups that are not defined by component hierarchy/layout ?

2010-11-03 Thread Michael O'Cleirigh
If you only need to select one Radio then one RadioGroup will work no matter how many nested radio's there are (the model object of the selected radio is assigned to the model object of the radio when the form submits) If you actually have different radio's (i.e. multiple selections are

Re: How can I create RadioGroups that are not defined by component hierarchy/layout ?

2010-11-03 Thread tommy
If you look at the original html I showed you can see 3 groups called A, B, C (I've included again below with values to make it clearer). I want to be able to select one item from group A, one item from group B and one item from group C. The number of groups will vary, eg sometimes it will go to

Re: set focus in Modal Window

2010-11-03 Thread Eric Hamel
Thanks for posting this. I'm having a similar issue. I updated my behavior with your changes, but still doesn't seem to work on the component in the modal window. I have a Panel with the FormComponents that is being used on a page and on a modal window. The Focus Behavior works on the Page, but

Re: How can I create RadioGroups that are not defined by component hierarchy/layout ?

2010-11-03 Thread Igor Vaynberg
best way for us to help you is for you to create a quickstart and attach it to your email or a jira issue. -igor On Wed, Nov 3, 2010 at 4:40 AM, tommy tommytas...@gmail.com wrote: I asked the following question on stack-overflow but was advised to ask here instead.

Re: How can I create RadioGroups that are not defined by component hierarchy/layout ?

2010-11-03 Thread tommy
Hi Can you point me to a link that explains what a quickstart is and how I create one? Also maybe you consider these questions 1. If I can pass in a RadioGroup object to a Radio() constructor does the RadioGroup also need to be added to the page and if so, does it matter where on the page the

Re: Wicket-auth annotations to hide a link problem

2010-11-03 Thread Ivana
I just found this works - but has other problems: I have a page with a menu made of links. The links replace the main panel the user is looking at. Depending on user role, some panels are not available and the corresponding links are not shown. I have implemented this like this:

Re: How can I create RadioGroups that are not defined by component hierarchy/layout ?

2010-11-03 Thread Igor Vaynberg
http://wicket.apache.org/start/quickstart.html -igor On Wed, Nov 3, 2010 at 9:03 AM, tommy tommytas...@gmail.com wrote: Hi Can you point me to a link that explains what a quickstart is and how I create one? Also maybe you consider these questions 1. If I can pass in a RadioGroup object

Re: How can I create RadioGroups that are not defined by component hierarchy/layout ?

2010-11-03 Thread tommy
ok thanks, I'll try and put something together tonight. Are you able to answer either of those questions? On Wed, Nov 3, 2010 at 5:56 PM, Igor Vaynberg-2 [via Apache Wicket] ml-node+3025865-1659550532-201...@n4.nabble.comml-node%2b3025865-1659550532-201...@n4.nabble.com wrote:

Re: GMap2 off center

2010-11-03 Thread Sven Meier
Hi Peter, I have no idea what's going wrong on your page B. Try removing features (e.g. the flash animation) to make B more like A, repeat until it works then build up again. Regards Sven On 11/03/2010 01:15 PM, Peter Miklosko wrote: In our application we are using Wicket GMap2 in some

Re: GMap2 off center

2010-11-03 Thread Peter Miklosko
Yeap, that is my battle plan for tomorrow. On 3 November 2010 19:12, Sven Meier s...@meiers.net wrote: Hi Peter, I have no idea what's going wrong on your page B. Try removing features (e.g. the flash animation) to make B more like A, repeat until it works then build up again. Regards

Lazy Load Panel at runtime from another jar

2010-11-03 Thread cole
I have simple plugin frame work for my app. I load plug-in's at startup. What I would like is to have the plug-in supply a panel for exposing the plugin's functionality. So a wicket page loads, the app determines if pluginA is available and calls, pluginA.getPanel(). pluginA is in a separate jar,

Re: Send an object to page

2010-11-03 Thread Peter Ertl
That's one more reason why I use UUID's for my object ids. They're harder to spoof. Security by obscurity :-) Checking the URL is not an option ... any web app claiming to be secure must do that no what what the surrogate database key looks like *imho* Also, if the userID is the id of the

Re: If-Modified-Since header

2010-11-03 Thread Mauro Ciancio
Sorry for bringing up this thread, but I'm still looking for advices. Should I implement this or Wicket can do it for me? Regards. On Sun, Oct 31, 2010 at 2:11 PM, Mauro Ciancio maurocian...@gmail.com wrote: Hi Martin, I didn't explain myself very well. I'm using wicket resources, I

generated form and form IDs vs model confusion

2010-11-03 Thread Troy Cauble
Typically, one sets a FormComponent's ID to match the data model. My form is generated from data, so the IDs are a recursive set of fieldFrag, list, blockFrag, label, value and RepeatingView#newChildID(). My data on the other hand is represented by HashMapString,String and CompoundPropertyModel.

Re: Lazy Load Panel at runtime from another jar

2010-11-03 Thread Jeremy Thomerson
On Wed, Nov 3, 2010 at 6:22 PM, cole cmilli...@comcast.net wrote: I have simple plugin frame work for my app. I load plug-in's at startup. What I would like is to have the plug-in supply a panel for exposing the plugin's functionality. So a wicket page loads, the app determines if pluginA

Re: Send an object to page

2010-11-03 Thread Jeremy Thomerson
On Wed, Nov 3, 2010 at 7:39 PM, Peter Ertl pe...@gmx.org wrote: Also, if the userID is the id of the currently logged in user why not just store it in your wicket session when logging on to make it inaccessible for the client and prevent spoof altogether? Obviously this is more secure. And

Re: SV: How to get other page's localized messages ?

2010-11-03 Thread Igor Vaynberg
Later versions of wicket also support package level bundles stored in package.properties files -igor On Nov 3, 2010 3:43 AM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: How do I get Page1's specific localized message in Page2 ? 1) Make a superclass for the two pages and put the message in

Re: generated form and form IDs vs model confusion

2010-11-03 Thread Jeremy Thomerson
On Wed, Nov 3, 2010 at 10:34 PM, Troy Cauble troycau...@gmail.com wrote: Typically, one sets a FormComponent's ID to match the data model. My form is generated from data, so the IDs are a recursive set of fieldFrag, list, blockFrag, label, value and RepeatingView#newChildID(). My data on

Re: Multiple submit buttons - CompoundPropertyModel not updated

2010-11-03 Thread Igor Vaynberg
You cannot update models without default processing, what If the user typed abcinto a text field backed by an integer model? What you can do, however, is accesses the raw value of the component via getvalue method. -igor On Nov 3, 2010 2:37 AM, Benjamin Lorenz benjamin.lor...@kapowtech.com