Re: radio and radiogroup default "checked" not working?

2009-09-04 Thread Seven Corners
I have a similar issue, but I don't know which radio should be checked until runtime. So I can't hard-code it in the HTML; I have to determine it from my DAO in the radiogroup's parent panel constructor. I'm using the model to determine which radio to select, and it works fine once you click, bu

Disable LinkTree iconLink

2009-07-28 Thread Seven Corners
I have a LinkTree wherein I need to disable the links on certain nodes. It was easy to disable the contentLink but I haven't been able to figure out how to disable the iconLink. My links are BookmarkablePageLinks, but iconLink is not a proper link; rather it appears that it's a element with an o

Re: Link not getting onclick event

2009-03-30 Thread Seven Corners
Thanks for getting back to me. I figured it out; I had a mismatched div tag that Firefox forgave. It wasn't a Wicket issue at all. -- View this message in context: http://www.nabble.com/Link-not-getting-onclick-event-tp22725492p22781576.html Sent from the Wicket - User mailing list archive at

Re: Form validation with coupled components

2009-03-27 Thread Seven Corners
OK, good, thank you, Martin! Shelah -- View this message in context: http://www.nabble.com/Form-validation-with-coupled-components-tp22741741p22742000.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Form validation with coupled components

2009-03-27 Thread Seven Corners
I have a form that contains a few checkboxes, and the form should fail validation only if ALL of them are unchecked. How can I do this? I see how to validate that a single control is required but not to check for coupled controls. -- View this message in context: http://www.nabble.com/Form-val

Link not getting onclick event

2009-03-26 Thread Seven Corners
I have link that is not receiving an onclick event. It links to a page in my application, and I do not want it bookmarkable. It's in a RefreshingView. The browser renders the link with the correct style for a link, but if you hover over the link, you don't get the URL to show up in the status b

Re: Shared string resources

2009-03-12 Thread Seven Corners
e locator in > your application's init method to locate resources in custom locations. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Thu, Mar 12, 2009 at 12:30 PM, Seven Corners > wrote: > >> >> Thank you for giving su

Re: Shared string resources

2009-03-12 Thread Seven Corners
e locator in > your application's init method to locate resources in custom locations. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Thu, Mar 12, 2009 at 12:30 PM, Seven Corners > wrote: > >> >> Thank you for giving su

Re: Shared string resources

2009-03-12 Thread Seven Corners
at 7:24 PM, Jeremy Thomerson wrote: > >> Put them in YourApplicationName.properties and use >> StringResourceModel. See >> internationalization help in Wicket in Action. >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> >>

Re: Shared string resources

2009-03-12 Thread Seven Corners
at 7:24 PM, Jeremy Thomerson wrote: > >> Put them in YourApplicationName.properties and use >> StringResourceModel. See >> internationalization help in Wicket in Action. >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> >>

Shared string resources

2009-03-11 Thread Seven Corners
I have some strings that I'd like to access from a common string table that is not tied to any particular component. How can I do this? -- View this message in context: http://www.nabble.com/Shared-string-resources-tp22462537p22462537.html Sent from the Wicket - User mailing list archive at Nab

Re: Shared string resources

2009-03-11 Thread Seven Corners
Thanks so much! Seven Corners wrote: > > I have some strings that I'd like to access from a common string table > that is not tied to any particular component. How can I do this? > -- View this message in context: http://www.nabble.com/Shared-string-resources-tp22462537p2

Ajax table/grid questions

2009-03-06 Thread Seven Corners
I have to write a table that updates via AJAX on a timer that polls data from the server (the data comes as collection, not as a database call). My first question is what class I need to use; I've looked at a few of the available classes and I think the AjaxFallbackDefaultDataTable is too heavy

Re: Dynamically changing CSS style attribute

2009-02-24 Thread Seven Corners
ributeModifier)? > > .Needle { > z-index: 1; > width: 2px; > ... > } > > > > Seven Corners schrieb: >> I have a control with a needle that moves. The needle's value is >> continually >> changing, so on a timer I ask the server its va

Re: Dynamically changing CSS style attribute

2009-02-24 Thread Seven Corners
Thanks for responding, but that link is closed to me, and I get this error message: "Sorry, but access to this page is closed now. If you search study materials or ebooks for cisco certification - request it in our Cisco Career Certifications forum" I'm fiddling right now with the JavaScript.

Dynamically changing CSS style attribute

2009-02-24 Thread Seven Corners
I have a control with a needle that moves. The needle's value is continually changing, so on a timer I ask the server its value and set its position with the "left" CSS attribute, as in: .Needle { z-index: 1; width: 2px; ... left: 20%; } I do have a bean that returns a percentage stri

Re: Setting TreeState in new page

2009-02-13 Thread Seven Corners
Never mind, I figured it out. Caching the TreeState didn't get me there because it didn't contain the information I needed. I had to do my own bookkeeping, but overriding LinkTree.newTreeState() was ultimately where things got set aright. -- View this message in context: http://www.nabble.com/

Setting TreeState in new page

2009-02-13 Thread Seven Corners
I have a LinkTree where each node contains links to pages, and each of these pages derives from the same base class, so they all contain that LinkTree. When a user drills down into the tree on one page and then clicks a link for another page, I'd like the new page we go to to open the tree to its

LinkTree with BookmarkablePageLinks

2009-02-11 Thread Seven Corners
I have a LinkTree with BookmarkablePageLinks, wherein the nodes correspond to different types of objects. The models within the nodes tell me what kind of page I need to instantiate, with what parameters. I had some troubles implementing it, but I got it working. Since this kind of pattern is c

Flicker on AJAX tree updates

2009-01-29 Thread Seven Corners
I have a LinkTree where the nodes represent systems, servers, or services within a system. The nodes have specific images associated with their semantics and their health, and the health is polled at intervals to see if I need to change the resource, e.g., to represent if a server is down. I hav

Re: Links with CGI parameters?

2008-10-14 Thread Seven Corners
final PageParameters parameters) { return getRequestCycle().urlFor(getPage().getPageMap(), pageClass, parameters); } } Seven Corners wrote: > > Well I was really grateful for that. I've tried both alternatives and > neither works but I th

Re: Links with CGI parameters?

2008-10-13 Thread Seven Corners
new PageParameters(); > params .put(PARAM_NAME, PARAM_VALUE); > String targetURL = > RequestUtils.toAbsolutePath(urlFor(YOUR_CLASS.class,params ).toString()); > > Use a link, such as ExternalLink, that takes a url. > > > Hope this helps. > > > On Fri, Oct 10, 2008 at

Links with CGI parameters?

2008-10-10 Thread Seven Corners
I have figured out the considerable gyrations to subclass a LinkTree so its leaves contain links that will change the page in another frame within a frameset, and I'm doing this with regular Links (i.e., href and target attributes, and setting the response page and the frame target's page class fr

RE: html code in component class

2008-10-10 Thread Seven Corners
Thank you, Serkan, for posting this solution. It's very slick. I have been wrestling with trying to figure out how to slip a link into a panel when I don't know until runtime what the link will be and you've just told me how to slip in HTML at runtime. I love it! Shelah Serkan Camurcuoglu-3

Set link target within LinkTree nodes

2008-10-08 Thread Seven Corners
I'm generating a LinkTree that will sit in the left frame of a frameset. I want the leaf nodes to contain links to pages that will open in the right frame of the frameset. The LinkTree has a few link types but there is no built-in support for setting the link's target. Eelco has a nice example

Re: Wicket on Tomcat?

2008-10-07 Thread Seven Corners
You can deploy with Tomcat but you can't use the standard Tomcat deployment tree; that is, something like this won't work: .../webapps - mywebapp - WEB-INF - classes - html - images - styles - scripts You have to put the html for a given class in t

Intermittently not updating TextField

2008-10-06 Thread Seven Corners
I have a form where one of my text fields intermittently doesn't update when I change the model, even though I add the component to the AJAX target. Most of the time it works. When you add a few fields to the ListChoice, this is where things get dicey. Here's the scenario: you have a ListChoice

How to expose regular exception message in FeedbackPanel?

2008-10-06 Thread Seven Corners
I have a form whose submission can possibly generate exceptions. I would like to expose the exception text in the FeedbackPanel. How can I do this? I've tried getting the FeedbackMessagesModel and doing a setObject() on that but it's not accepting a String, a FeedbackMessages List, or a new Fee

Re: How to update ListChoice after form submission?

2008-10-04 Thread Seven Corners
02, 2008 4:42 PM >> To: users@wicket.apache.org >> Subject: Re: How to update ListChoice after form submission? >> >> inside the onclick of your ajaxfallbackbutton you have to add the >> listchoice to the target so wicket rerenders it >> >> -igor >> >&

How to update ListChoice after form submission?

2008-10-02 Thread Seven Corners
I have a page with a ListChoice of user names that is populated with a call to our server (loadUserNames()). The page also contains a number of TextFields corresponding to the user's other attributes. When you modify those text fields so the user name doesn't correspond to anything in the list,