add image tag to the ajax link

2008-06-24 Thread nasrin mansour
hi, there is an sub class from ajax link that i add a image to it . and i use it in many panel now how can i add img tag for image to this link ? i want in every panel i only put a tag for this link and img tag be in SampleAjaxLink public class SampleAjaxLink extends AjaxLink { public

Re: add image tag to the ajax link

2008-06-24 Thread Igor Vaynberg
two ways: 1) wrap the link and img into panel 2) see how label works and write out the img tag as a raw string -igor On Mon, Jun 23, 2008 at 11:00 PM, nasrin mansour [EMAIL PROTECTED] wrote: hi, there is an sub class from ajax link that i add a image to it . and i use it in many panel now

Re: add image tag to the ajax link

2008-06-24 Thread nasrin mansour
i don't want use panel for this approach i want make it as a component and i think that it is possible by overriding some method like onComponentTag and etc but i dont realy know what xmltag must be written On Tue, Jun 24, 2008 at 9:33 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: two ways: 1)

Re: add image tag to the ajax link

2008-06-24 Thread Igor Vaynberg
like i said, see how label works -igor On Mon, Jun 23, 2008 at 11:17 PM, nasrin mansour [EMAIL PROTECTED] wrote: i don't want use panel for this approach i want make it as a component and i think that it is possible by overriding some method like onComponentTag and etc but i dont realy know

Antwort: Re: Including wicket in JSPs?

2008-06-24 Thread Jan . Koops
Hi Jim, thank you for your suggestion, but we use XHTML 1.0 Strict, so we can't use IFrames. Jan jnorris [EMAIL PROTECTED] schrieb am 23.06.2008 18:26:27: Hi Jan, I have a legacy home-grown jsp application where I'm showing wicket pages in the content area using an inframe tag.

Re: Antwort: Re: Including wicket in JSPs?

2008-06-24 Thread Daniel Frisk
Perhaps you can use object as a drop in replacement of iframe? I haven't tested it in different web browsers so no guarantees from me :-) object data=http://java.net; type=text/html/object // Daniel Frisk jalbum.net On 2008-06-24, at 08:37, [EMAIL PROTECTED] wrote: Hi Jim, thank you for

Re: PageableListView and Detachable Models

2008-06-24 Thread Matthew Young
implement your own List interface Just in case if anyone not aware of, you only need to implement the size() and get(int index) methods of the List interface, everything else can just be unsupported. On Mon, Jun 23, 2008 at 2:21 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: well, thats part of

Re: DefaultAbstractTree or BaseTree?

2008-06-24 Thread jWeekend
Kaspar, If you find class diagrams useful take a look at the http://www.jweekend.com/dev/ArticlesPage/ Wicket Trees - Class Diagram and let us know if these are interesting - I think we have a few more Wicket-internals UML diagrams (mainly class and sequence diagrams, and probably a couple of

DataTable-like component for open-ended data sets

2008-06-24 Thread Jan Stette
The application I'm working on needs several instances of a DataTable/GridView-like component where the size of the underlying dataset is is not known. It's basically very expensive to retrieve the whole data set to find out how many items are in it, so I'd like to just iterate through the data

Re: WebPage markup error with latest trunk

2008-06-24 Thread svenmeier
Did somebody create a jira issue already? I'm experiencing the same log statement since upgrading to 1.3.4. Perhaps the fix for Wicket-1636 is the reason why the header check was never performed previously? I have head and body in my page's markup. Sven igor.vaynberg wrote: quickstart

Re: WebPage markup error with latest trunk

2008-06-24 Thread Jan Kriesten
hi sven, Did somebody create a jira issue already? https://issues.apache.org/jira/browse/WICKET-1664 best regards, --- jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: help with RadioGroup in Table

2008-06-24 Thread jnorris
This problem is a real show-stopper for me so I really need some help if anyone has done something similiar. I added AjaxFormChoiceComponentUpdatingBehavior to the RadioGroup as mentioned in another post and it hits onUpdate every time a radio button is selected. However, I can't figure out 1)

Re: howto query which domain?

2008-06-24 Thread Michael Sparer
I triggered it in the doFilter method of a filter, however you surely know how to get the request from inside a wicket component ;-) For me, it went like that: public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException,

Re: Wicket-Security: What is the easiest way to switch user's principal behind the scenes?

2008-06-24 Thread Maurice Marrink
By default a logincontext only allows a single login, this can be changed by a constructor flag. To switch principals simply login a second time with the new context and logoff with the old context. the session will be preserved. Maurice On Tue, Jun 24, 2008 at 2:14 PM, Sergey Podatelev [EMAIL

Re: Wicket-Security: What is the easiest way to switch user's principal behind the scenes?

2008-06-24 Thread Sergey Podatelev
Thanks Maurice, this is exactly what I've done so far. But for some reason, session is reset. I'm using Acegi, and my LoginContext looks very similar to the one provided in the example of Swarm/Acegi integration. Since Authentication object containing user credentials, kept in Acegi's

Re: Wicket-Security: What is the easiest way to switch user's principal behind the scenes?

2008-06-24 Thread Sergey Podatelev
Thanks a lot, I'll give it a try. On Tue, Jun 24, 2008 at 5:54 PM, Maurice Marrink [EMAIL PROTECTED] wrote: First login with the second context, then log off with the first context. swarm will invalidate the session after the last subject has logged off. which is what is happening in your

Re: DropDownChoice setting other DropDownChoice using AJAX results in null at submit

2008-06-24 Thread Giuliano Caliari
Hello Timo, thanks for the quick reply. As you can see I am new to wicket and I'm trying to evaluate it for my projects. The code I sent in the first email was a bit confusing because I have been trying a lot of things to solve my problem. I have read the wiki page, but I didn't fully

are checkboxes broken WAS: missing something: getting AjaxCheckBox to recheck value from model as its redrawn?

2008-06-24 Thread Kirk Israel
OK, to summarize what came previously: we had a palette control (two parallel listboxes, with push buttons in between for moving items from one list to the other), and tried to have a checkbox that would select all - that part worked fine, but for some reason we couldn't get it so using the

Wicket CMS

2008-06-24 Thread james yong
Hi, Is there anyone who would like to pool efforts for a wicket-based cms? Currently, I have a prototype verson at http://code.google.com/p/welo/, but I would like to put efforts into a better one (not necessary mine). Regards, James -- View this message in context:

Re: DataTable-like component for open-ended data sets

2008-06-24 Thread Igor Vaynberg
simply return Integer.MAX_SIZE from dataprovider.size(), and subclass the dataprovider and hide the gotoend link. -igor On Tue, Jun 24, 2008 at 2:29 AM, Jan Stette [EMAIL PROTECTED] wrote: The application I'm working on needs several instances of a DataTable/GridView-like component where the

Re: generics

2008-06-24 Thread Martin Funk
basically we feel this is a much cleaner way then what is 1.4m2. this is a call for confirmation/discussion from our user base. do try to port a small project or a part of a larger project you are working on to the [1] branch to see how the new api feels. if we do like this more the new branch

Re: help with RadioGroup in Table

2008-06-24 Thread Igor Vaynberg
create a quickstart and post it somewhere. its hard for anyone to wave their dead chicken in front of the screen. -igor On Tue, Jun 24, 2008 at 4:59 AM, jnorris [EMAIL PROTECTED] wrote: This problem is a real show-stopper for me so I really need some help if anyone has done something

Re: howto query which domain?

2008-06-24 Thread Nino Saturnino Martinez Vazquez Wael
Hehe, thanks for your response I sent it to the wrong forum, not wicket related, too many posts to wicket I guess.. :) It were supposed to goto [EMAIL PROTECTED] Problem are that I use apache2 http server to forward my requests. And I want todo skinning dependant on domain names, however

AjaxFormSubmitBehavior detection in form Submit

2008-06-24 Thread Bertrand DATAS
Hi all, I have a little question : Is it possible to find which AjaxFormSubmitBehavior is executed with findSubmittingButton() for example or something like that ??

Re: generics

2008-06-24 Thread Brill Pappin
I personally don't mind changes that cause me migration pain if they actually make it better. I'm looking forward to trying it out. Would it be possible to deploy the snapshots some place so I don't have to go through the build pain? - Brill Pappin On 24-Jun-08, at 1:12 AM, Igor Vaynberg

Re: generics

2008-06-24 Thread Martijn Dashorst
I can try to do so later this evening (after I've done my duties for Wicket in Action) Martijn On Tue, Jun 24, 2008 at 5:21 PM, Brill Pappin [EMAIL PROTECTED] wrote: I personally don't mind changes that cause me migration pain if they actually make it better. I'm looking forward to trying it

Trying to use spring with wicket

2008-06-24 Thread Piller Sébastien
Hello guys, I'm trying to get Wicket use Spring Hibernate correctly. I don't know Spring very well, so I probably made some great errors. I have some question for the beginning: - I saw a SpringWebApplication in wicket. Does my app must extends this class or is it possible to use spring

Re: Wicket CMS

2008-06-24 Thread Thomas Mäder
It might spark interest if you add a bit of documentation and a live demo. Not everyone has the time to read through your code. Thomas On Tue, Jun 24, 2008 at 4:21 PM, james yong [EMAIL PROTECTED] wrote: Hi, Is there anyone who would like to pool efforts for a wicket-based cms? Currently,

RE: generics

2008-06-24 Thread Zappaterrini, Larry
I'm getting the same thing. -Original Message- From: Martin Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 10:42 AM To: users@wicket.apache.org Subject: Re: generics basically we feel this is a much cleaner way then what is 1.4m2. this is a call for

Re: help with RadioGroup in Table

2008-06-24 Thread Thomas Mäder
new Radio( select, new PropertyModel( model, selected )) you're setting the model of the Radio to the selected property of whatever is in the row model. What is in the row model? Have you tried just passing in the row model? Thomas On Tue, Jun 24, 2008 at 1:59 PM, jnorris [EMAIL PROTECTED]

Re: are checkboxes broken WAS: missing something: getting AjaxCheckBox to recheck value from model as its redrawn?

2008-06-24 Thread Thomas Mäder
Can you reproduce this in a quickstart? Considering nobody had a pertinent ide the last time, it might be easier. Thomas On Tue, Jun 24, 2008 at 4:12 PM, Kirk Israel [EMAIL PROTECTED] wrote: OK, to summarize what came previously: we had a palette control (two parallel listboxes, with push

Re: default data table and navigation toolbar

2008-06-24 Thread Igor Vaynberg
roll your own datatable subclass instead of the default one, and override isvisible on the navigation label to work how you want it to. -igor On Tue, Jun 24, 2008 at 5:07 AM, Karen Schaper [EMAIL PROTECTED] wrote: Hi, I have a question about the navigation toolbar on my DefaultDataTable The

Re: generics

2008-06-24 Thread Igor Vaynberg
should compile now, there maybe be some failing tests, but mvn clean install -Dmaven.test.skip=true works for sure -igor On Tue, Jun 24, 2008 at 7:41 AM, Martin Funk [EMAIL PROTECTED] wrote: basically we feel this is a much cleaner way then what is 1.4m2. this is a call for

Updating ListView via AJAX

2008-06-24 Thread Ryan O'Hara
I'm trying to update a ListView via AJAX. I've looked over a bunch of examples in the archives, but I'm still having some trouble. I'm trying to wrap the ListView with a WebMarkupContainer and then update that WebMarkupContainer. I also created a GroupMembership object, which is passed

Re: Updating ListView via AJAX

2008-06-24 Thread Ryan O'Hara
Also, tried using a LoadableDetachableModel in the ListView: ListView groupMemberRows = new ListView(groupMemberRow, new LoadableDetachableModel(){ protected Object load(){ return getGroupMemberships(); } }) { protected void

Changing default form button via Ajax

2008-06-24 Thread n0_fixed_ab0de
Got a problem and don't know what I'm doin and cannot think of a way to solve it. I have a form within a wizard step. The 'next' button is disabled and enabled via an ajax call when certain form data is changed. The page is first rendered without an active 'next' button and so it is not the

Re: How to create a cacheable image resource for a image file?

2008-06-24 Thread Justin Morgan - Logic Sector
Thanks for the suggestion Jeremy. Here is the solution I eventually settled on, in case anyone is searching the mail archives on the same keywords I used. My solution basically checks to see if a shared image resource has been mounted, and if not, mounts it. Thereafter, each time the page

Re: generics

2008-06-24 Thread Martin Funk
Igor Vaynberg wrote: should compile now, there maybe be some failing tests, but mvn clean install -Dmaven.test.skip=true works for sure thnx, it compiles now mf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: generics

2008-06-24 Thread Martin Funk
Igor Vaynberg wrote: should compile now, there maybe be some failing tests, but mvn clean install -Dmaven.test.skip=true works for sure thnx, it compiles now mf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Changing default form button via Ajax

2008-06-24 Thread Igor Vaynberg
i would take what is now AjaxFormSubmitBehavior and rip out the bits that actually process the form, and then use that instead of ajaxformcomponentupdatingbehavior -igor On Tue, Jun 24, 2008 at 11:03 AM, n0_fixed_ab0de [EMAIL PROTECTED] wrote: Got a problem and don't know what I'm doin and

PWC4011

2008-06-24 Thread David Nedrow
Running GlassFish v2ur2 within NetBeans, I get a large number of the following messages from my application... PWC4011: Unable to set request character encoding to UTF-8 from context /FilterRequest, because request parameters have already been read, or ServletRequest.getReader() has

Re: Updating ListView via AJAX

2008-06-24 Thread Igor Vaynberg
protected void populateItem(final ListItem item) { GroupMembership groupMembership = (GroupMembership) item.getModelObject(); item.add(new Label(group, new PropertyModel(item.getmodel(), group)); item.add(new CheckBox(member, new PropertyModel(item.getmodel(), selected))); } -igor On Tue,

Re: DropDownChoice setting other DropDownChoice using AJAX results in null at submit

2008-06-24 Thread Timo Rantalaiho
On Tue, 24 Jun 2008, Giuliano Caliari wrote: As you can see I am new to wicket and I'm trying to evaluate it for my projects. Then it's a good idea to checkout the code of wicket-examples of 1.3 http://svn.apache.org/repos/asf/wicket/branches/wicket-1.3.x/jdk-1.5/wicket-examples/

Re: Wicket CMS

2008-06-24 Thread Rodolfo Hansen
Yeah, we are interested in working out a CMS based on wicket too... haven't had much time for it just yet. but its a must do for us... On Tue, Jun 24, 2008 at 11:46 AM, Thomas Mäder [EMAIL PROTECTED] wrote: It might spark interest if you add a bit of documentation and a live demo. Not everyone

Re: Updating ListView via AJAX

2008-06-24 Thread Ryan O'Hara
Thanks for the quick response, Igor. Unfortunately, the ListView is still not updating after making those changes. Any other ideas? Thanks again, Ryan On Jun 24, 2008, at 3:46 PM, Igor Vaynberg wrote: protected void populateItem(final ListItem item) { GroupMembership groupMembership =

Client side validation

2008-06-24 Thread Manuel Corrales
Hi, i dont want to be flamed by this post, i have read on some places some not very polite things about wicket vs taperstry. I think that all frameworks have pro and cons. Here is the thing, i was using Tapestry 5 for a while, and now i am developing with wicket. One thing i liked about T5 was the

AjaxLink in a DataView causes WicketRuntimeException due to component tree getting of outofsync

2008-06-24 Thread mfs
Hi Guys, I am facing a problem with the usage of AjaxLink within a DataView. The dataview is contained in a container since the DataView is updated on ajaxform.submit. The AjaxLink is on each Item of the DataView, which opens up a modal window (with a panel as the content) with further details

Re: Updating ListView via AJAX

2008-06-24 Thread Igor Vaynberg
is it that the listview doesnt refresh or that your getGroupMemberships() returns stale data? why dont you set up a breakpoint and see what its doing -igor On Tue, Jun 24, 2008 at 1:08 PM, Ryan O'Hara [EMAIL PROTECTED] wrote: Thanks for the quick response, Igor. Unfortunately, the ListView is

Re: Client side validation

2008-06-24 Thread Igor Vaynberg
the reason we have not done this is that client side validation is limited. also a lot of applications want a consistent look and feel for javascript validation, which is not possible via a framework. what we are going to do in 1.5 is allow ivalidator to also implement ibehavior, this will allow a

Re: Client side validation

2008-06-24 Thread Manuel Corrales
Ok, great. I dont fully get what is the issue with the look and feel? Do you mean the way that errors are displayed? (popups, colored inputs, lists) Manuel. On Tue, Jun 24, 2008 at 6:07 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: the reason we have not done this is that client side validation

Re: Client side validation

2008-06-24 Thread Igor Vaynberg
yes -igor On Tue, Jun 24, 2008 at 2:38 PM, Manuel Corrales [EMAIL PROTECTED] wrote: Ok, great. I dont fully get what is the issue with the look and feel? Do you mean the way that errors are displayed? (popups, colored inputs, lists) Manuel. On Tue, Jun 24, 2008 at 6:07 PM, Igor Vaynberg

Style implementation for Round Cornered Tabbed Panels

2008-06-24 Thread Francisco Diaz Trepat - gmail
Hi all, I need to make each tab on an AjaxTabbedPanel have round corners. No big deal so far: *div.tabpanel div.tab-row li* { background:url(my-round-corner-tab-background.png) no-repeat left top; } But what if I want to have a resizable round cornered tab. Therefore if i have a tab title

Re: generics

2008-06-24 Thread Martijn Dashorst
Unfortunately I get a build error (not the aforementioned compile error, something different) so I'm not able to build tonight. martijn On Tue, Jun 24, 2008 at 5:23 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: I can try to do so later this evening (after I've done my duties for Wicket in

RE: MarkupResourceStream and classloading

2008-06-24 Thread David Leangen
nick, have you tried asking on pax wicket mailing list? those guys use wicket with osgi all the time. perhaps they have a clean solution. We have had numerous issues with this. We have a working solution, but IMO not a clean one. Actually, opinion is probably too strong a word, since I have

Output streams from external servlet

2008-06-24 Thread krisNog
Hello everyone! I have a question regarding external servlets. I have a panel that I would like to stream content into from an external servlet. The overridden onRender method I'm using for the Panel is shown below where /whatever is the servlet that is outputting some arbitrary HTML that I

Re: Style implementation for Round Cornered Tabbed Panels

2008-06-24 Thread Brill Pappin
I've seen this done pretty much how you describe (in fact I think there is a demo inthe wicket examples) That use two images (left and right). the left one is narrow, just enough to contain the rounded corners, the right side however is extra long; long enough to fit pretty much any text

Re: Wicket CMS

2008-06-24 Thread james yong
I'll put up the doc and demo by this week or so. Thanks. :-) -- View this message in context: http://www.nabble.com/Wicket-CMS-tp18092129p18102616.html Sent from the Wicket - User mailing list archive at Nabble.com. - To

Re: AjaxLink in a DataView causes WicketRuntimeException due to component tree getting of outofsync

2008-06-24 Thread mfs
Let me add a couple of things here, 1) Page-Versioning has not been turned off. 2) Using HybridURLCodingStrategy to render the page. Opinions please.. mfs wrote: Hi Guys, I am facing a problem with the usage of AjaxLink within a DataView. The dataview is contained in a container

Re: Style implementation for Round Cornered Tabbed Panels

2008-06-24 Thread Matthew Young
The wicket tab panel example does exactly this http://www.wicket-library.com/wicket-examples/ajax/tabbed-panel.1 It uses the sliding door technique describe here: http://www.alistapart.com/articles/slidingdoors/ On Tue, Jun 24, 2008 at 5:02 PM, Brill Pappin [EMAIL PROTECTED] wrote: I've seen

PackagedTextTemplate does not load resource from application resource stream locator?

2008-06-24 Thread Ritz123
Hi, I am trying to use PackagedTextTemplate to load the template, but seems like its not looking for the resource in the application registered resource stream locator. I get resource not found exception. HeaderContributor.forCss and forJavascript has worked fine and has found resource in the

Re: MarkupResourceStream and classloading

2008-06-24 Thread Igor Vaynberg
welo.googlecode.com should do it i believe -igor On Tue, Jun 24, 2008 at 3:48 PM, David Leangen [EMAIL PROTECTED] wrote: nick, have you tried asking on pax wicket mailing list? those guys use wicket with osgi all the time. perhaps they have a clean solution. We have had numerous issues