Re: [vote] Release 1.4 with only generics and stop support for 1.3
-1 lonely, Juan
Re: How to pre-select a DropDownChoice
DropDownChoice has a lot of contructors. One of them, DropDownChoice(String id, IModel model, IModel choices, ...) The first model, could be named "selectedModel". And represents the selected object, with a wicket model.
Re: OT: Wicket web.xml configuration settings and maven
Our approuch for that is to set the property to "deployment" in the web.xml_always_ And add the property -Dwicket.configuration=development to tomcat launcher. I never used the maven resource filtering plugin, but from my zero experience i see that i must write my web.xml with the variable Then, define the wicket mode. configuration $WICKET_MODE This wont work in my dev enviroment, or am i getting everything wrong? =P Thanks! Juan On Fri, Feb 29, 2008 at 12:06 AM, James Carman <[EMAIL PROTECTED]> wrote: > On 2/28/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > see maven resource filtering > > WOW! I was using the ant plugin to do this! This will save me > sooo much headache. > > Thanks, Igor. > > > > > > > -igor > > > > > > > > On Thu, Feb 28, 2008 at 12:15 PM, Doug Leeper <[EMAIL PROTECTED]> > wrote: > > > > > > This is slightly off topic but it has todo with our wicket app and > utilizing > > > maven to create the builds. > > > > > > Maven is new to us and slightly understand the profiling concept in > maven > > > but not sure how to the following...on our production build, we > would like > > > to have the web.xml "configuration" setting changed from development > to > > > production without checking out and manually modifying before > building. > > > > > > Is there any easy way to do this in maven or do we have have set the > java > > > runtime parameter -Dwicket.configuration=production > > > > > > Any suggestion or best practice? > > > > > > TIA, > > > > > > - Doug > > > > > > > > > -- > > > View this message in context: > http://www.nabble.com/OT%3A-Wicket-web.xml-configuration-settings-and-maven-tp15744999p15744999.html > > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
not calling onBeforeRender in LinkIconPanel
Hi all, I'm using LinkTree. When i click in an item, in the ajax request, the tree never calls onBeforeRender for that item. Does anybody knows why? Thanks! Juan
Re: Create a ResourceReference to an image
Thanks!
Re: Create a ResourceReference to an image
Thats was my first attempt. But i'm using Label/Link IconPanel, in LinkTree. And these methods use ResourceRefence. protected ResourceReference getResourceFolderClosed(TreeNode node) {...} protected ResourceReference getResourceFolderOpen(TreeNode node) {...} protected ResourceReference getResourceItemLeaf(TreeNode node) {...} Maybe i can re-write part of the code of Link/Label IconPanel, and create an Image with a simple Resource... But i thought that would be better to use wicket code, instead of copy and modifiy it. Thanks for the answer! Juan On Tue, Feb 26, 2008 at 4:43 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > dont use a resource reference? > > -igor > > > On Tue, Feb 26, 2008 at 10:39 AM, Juan Gabriel Arias > <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm trying to create a ResourceReference to an image. > > But i dont need the scope, the name, the local neither the style. I > just > > want my image. > > I can't put that image in my package. This is a wicket/java project, > and the > > html, images, styles, javascript etc are in another project. > > > > I saw the ContextRelativeResource, so i believe that i should use that. > But > > there is no constructor of ResourceReference, or any sub-class to easy > > create one with that resource. > > > > How can i do that? > > > > Yhanks in advance! > > Juan > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Create a ResourceReference to an image
Hi all, I'm trying to create a ResourceReference to an image. But i dont need the scope, the name, the local neither the style. I just want my image. I can't put that image in my package. This is a wicket/java project, and the html, images, styles, javascript etc are in another project. I saw the ContextRelativeResource, so i believe that i should use that. But there is no constructor of ResourceReference, or any sub-class to easy create one with that resource. How can i do that? Yhanks in advance! Juan
Re: Wicket.Tree has no properties
I found the problem. My HTML head had And the problem is the way i close the tag. If i put It works ok.
Re: Tomcat Problem
Are you running in development mode?
Re: Restarting AjaxTimeBehavior
Ok, i'll try to do that. Thanks! juan
Re: Restarting AjaxTimeBehavior
Sorry, but... any ideas? Should i create an issue in jira? Thanks! Juan On Feb 19, 2008 12:56 PM, Juan Gabriel Arias <[EMAIL PROTECTED]> wrote: > Hi all, > is there a way to do that? Restart the AjaxTimeBehavior? > > I have a panel, that should update itself when some event occurs. So, i > use AjaxTimeBehavior to check periodically for that condition. > > But i also have another component making user-fired ajax requests. And i > wanted to check my business condition and restart the interval timeout in > both cases, not only in when AjaxTimeBehavior ends its time-out period. Just > for avoiding inmediate/unnecesary ajax requests... > > Looking AbstractAjaxTimerBehavior code, i saw > > protected final void respond(final AjaxRequestTarget target) > { > onTimer(target); > > if (!stopped) > { > target.getHeaderResponse > ().renderOnLoadJavascript(getJsTimeoutCall(updateInterval)); > } > } > > I belileve that i should do somethin similar... but this is all protected, > or private... > > Does this make any sense for you? > > regards! > Juan >
Restarting AjaxTimeBehavior
Hi all, is there a way to do that? Restart the AjaxTimeBehavior? I have a panel, that should update itself when some event occurs. So, i use AjaxTimeBehavior to check periodically for that condition. But i also have another component making user-fired ajax requests. And i wanted to check my business condition and restart the interval timeout in both cases, not only in when AjaxTimeBehavior ends its time-out period. Just for avoiding inmediate/unnecesary ajax requests... Looking AbstractAjaxTimerBehavior code, i saw protected final void respond(final AjaxRequestTarget target) { onTimer(target); if (!stopped) { target.getHeaderResponse ().renderOnLoadJavascript(getJsTimeoutCall(updateInterval)); } } I belileve that i should do somethin similar... but this is all protected, or private... Does this make any sense for you? regards! Juan
Re: Wicket.Tree has no properties
I know, this is really weird... but if i put an empty js file, the tree stops working. I finally moved the code from myFile.js to the HTML page, and its working fine... Juan On Thu, Feb 14, 2008 at 3:46 PM, Juan Gabriel Arias <[EMAIL PROTECTED]> wrote: > Yes. > The problem occurs when i add a javascript file in the html header > > > > No matter the content of the file, the tree fails if i have this in my > markup. Any idea? > > Juan >
Re: Wicket.Tree has no properties
Yes. The problem occurs when i add a javascript file in the html header No matter the content of the file, the tree fails if i have this in my markup. Any idea? Juan
Wicket.Tree has no properties
Hi all, i'm getting this error in my Ajax Debug Window. ]]>*INFO: * Response parsed. Now invoking steps... *ERROR: *Exception evaluating javascript: TypeError: Wicket.Tree has no properties *INFO: *Response processed successfully. I have a simple LinkTree, filled with a bunch of nodes (less than 50). If i expand a node, it works ok. The problem arise when i collapse a node. Wicket logs that error, and the node stays expanded. If I click the plus icon again, it adds the nodes again, duplicated. Is there any way of making the Ajax Debug more verbose or something like that? Does it rings any bell for someone? Thanks in advance! Juan
Re: Form/Enter Key Problem
My workaround was this. The idea is to add a submit behavior to the text field, and it fires that only when user hits enter. This code is inside the form's constructor. searchCriteria = new TextField("searchCriteria", new Model("")); searchCriteria.add(new AjaxFormSubmitBehavior(this, "onkeypress") { protected void onSubmit(AjaxRequestTarget target) { //submit code } protected CharSequence getEventHandler() { CharSequence handler = super.getEventHandler(); String check = "javascript: if (event.keyCode == 13) { "; String endCheck = " return false; }"; return StringUtils.join(new Object[] { check, handler, endCheck }); } }); What do you think? Regards! Juan
Re: TreeTable icons and customization
Great, that works around the issue of reference the image. But... what about the idea of no hard-code the images? Maybe I can use a properties file... or just put it special wicket: tags in my markup. Thanks! Juan On Jan 31, 2008 4:42 PM, Matej Knopp <[EMAIL PROTECTED]> wrote: > you can override LabelIconPanel#newImageComponent and create a > WebMarkupContainer instead of an ImageContainer. > on the WebMarkupContainer override onComponentTag and set the src > attribute to where your image is. > > -Matej > > > On Jan 31, 2008 7:03 PM, Juan Gabriel Arias <[EMAIL PROTECTED]> wrote: > > Hi all > > i've found several threads about this subject, but none of them really > > helped me with the issue i'm dealing rigth now... > > I want to customize icons for the TreeTable, but i need to put images in > a > > specific path and i would prefer not to hard code image names. > > So, question is: > > > > How can i reference an image with an specific path, _different_ from > > container-class package? > > My class is com.foo.LabelIconPanel and my image is in > > "/images/icons/bla.gif" > > > > I've looking in ResourceReference (the object used by LinkIconPanel) but > i > > cant find a way to do this. > > > > About hard-code or not hard-code, i already solve a similar problem > putting > > special/custom wicket tags in html. And, for example, to set alternate > > styles to different rows ina table, i wrote > > > > > >> wicket:alternateStyle="rowAlternateStyle"> > > ... > > > > > > > > Then, in MyTable.java, i access the attributes with > > getMarkupAttributes().get("wicket:rowStyle") > > > > What do you think? > > > > Thanks in advance! > > Juan > > > > > > -- > Resizable and reorderable grid components. > http://www.inmethod.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Short Design Question
Or just pass the User object to the constructor. Juan
TreeTable icons and customization
Hi all i've found several threads about this subject, but none of them really helped me with the issue i'm dealing rigth now... I want to customize icons for the TreeTable, but i need to put images in a specific path and i would prefer not to hard code image names. So, question is: How can i reference an image with an specific path, _different_ from container-class package? My class is com.foo.LabelIconPanel and my image is in "/images/icons/bla.gif" I've looking in ResourceReference (the object used by LinkIconPanel) but i cant find a way to do this. About hard-code or not hard-code, i already solve a similar problem putting special/custom wicket tags in html. And, for example, to set alternate styles to different rows ina table, i wrote ... Then, in MyTable.java, i access the attributes with getMarkupAttributes().get("wicket:rowStyle") What do you think? Thanks in advance! Juan
Re: AjaxEditableChoiceLabel uses a MultilineLabel (instead of maybe a Label?)
The same to me. I also found a few issues with this component. How can i create bugs in JIRA? - The dropDown created doesnt use the IChoiceRenderer passed in the constructor (still finding why) - And the Javadoc is wrong... looks like copy&paste from AjaxEditableMultiLineLabel ;) Juan
Re: Wicket 1.3 - JVM 1.4
Thank you very much! I'll try that. Juan On 10/10/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > not sure, as long as you dont need the annotation part of it should be > fine > > -igor > > > On 10/10/07, Juan Gabriel Arias <[EMAIL PROTECTED]> wrote: > > Thanks for the quick answer! > > > > And what about wicket-auth-roles? > > We are using auth-roles 1.2.2 compliant with Java 1.4 and we get that > from > > the users list. > > > > Thanks again! > > Juan > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Wicket 1.3 - JVM 1.4
Thanks for the quick answer! And what about wicket-auth-roles? We are using auth-roles 1.2.2 compliant with Java 1.4 and we get that from the users list. Thanks again! Juan
Wicket 1.3 - JVM 1.4
Hi all, i'm using Java 1.4 and, by now, Wicket 1.2.6 (with wicket-spring, wicket-auth-roles and wicket-extensions) We need to migrate to Wicket 1.3 (and spring, roles and extensions), but stay in Java 1.4. Is any chance to do that? I mean, Wicket core has two versions, for Java 1.4 and Java 5. But the other projects doesn't, at least in maven repos. Thanks in advance! Juan Arias
Re: hide/show components - role based
The second one. Components should check some roles and enable or disable itself. Thanks for the answers! Juan On 10/2/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > On 10/1/07, Kent Tong <[EMAIL PROTECTED]> wrote: > > > > > > Juan Gabriel Arias wrote: > > > > > > Im trying to dinamically show or hide html components, like links, > > > buttons, > > > etc. > > > > > What do you mean by 'dynamic'? Do you want to change authorization > info for the components dynamically, or do you mean dynamic in that > components should figure out what to do at runtime? > > Eelco > > > > > something like: > > > > public class MyPage { > > public MyPage() { > > Link myLink = ...; > > MetaDataRoleAuthorizationStrategy.authorize(myLink, RENDER, > > "role1,role2"); > > } > > } > > > > -- > > View this message in context: > http://www.nabble.com/hide-show-components---role-based-tf4550513.html#a12991489 > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
hide/show components - role based
Hi all, im working with Wicket 1.2.4, Spring and Acegi. Im trying to dinamically show or hide html components, like links, buttons, etc. Is there a best practice in wicket? Im also using wicket-auth-roles, and i've been digging a little, but i couldn't find a way to do this. BTW, i already read http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html And in the "Hinding Components" there is a big and nice TODO ;-) Thanks in advance! Juan Arias
Bypass form validation
Hi, i have a form, that is submited by different AjaxSubmitLinks. I want that only one (completely identified) of those links triggers a validation. I though two main solutions: - Add validation only to specific components, not to the complete form. (i think is the cleanest, but dunno if it si possible, because nature of forms and HTML) - Specify that, in some cases, validation should be ignored. Any ideas? Igor? =P Saludos! Juan Arias