Re: [OT] wicket users around the world

2008-12-27 Thread Swaroop Belur
Bengaluru (formerly Bangalore) , India Used it for 1.5 yrs on a project -swaroop belur On Fri, Dec 12, 2008 at 12:27 AM, francisco treacy francisco.tre...@gmail.com wrote: to know a little bit more of our great (and vast) community, i was just wondering if you're keen on sharing where you

Re: PagingNavigator with custom images

2007-10-26 Thread Swaroop Belur
Dipu On 10/26/07, Swaroop Belur [EMAIL PROTECTED] wrote: It looks like you will have to copy that markup(PagingNavigator.html) and replace the default ones by ur images.Right now they are directly embedded in markup as (lt;) for eg. -swaroop On 10/26/07, BatiB80 [EMAIL

Re: PagingNavigator with custom images

2007-10-26 Thread Swaroop Belur
It looks like you will have to copy that markup(PagingNavigator.html) and replace the default ones by ur images.Right now they are directly embedded in markup as (lt;) for eg. -swaroop On 10/26/07, BatiB80 [EMAIL PROTECTED] wrote: Hi, is it possible to use the PagingNavigator with own

Re: Load Image from another server

2007-10-26 Thread Swaroop Belur
is it possible to load an image which is located on another server try using ExternalLink for this. add(new ExternalLink(el,full path,External Image)); -swaroop On 10/26/07, BatiB80 [EMAIL PROTECTED] wrote: Hi, is it possible to load an image which is located on another server. In my

Re: Confirmation message after form submit

2007-10-25 Thread Swaroop Belur
Do it like this: In js file function yourconfirmationjsfunction( urltogotoonok , urltogotooncancel) { var retValue = confirm( Are you sure ); if(retValue == false){ window.location.href=urltogotooncancel; } window.location.href=urltogotoonok ; } In java file...

Re: Refreshing components with new data w/o altering the backing model

2007-10-24 Thread Swaroop Belur
Igor, Regarding the stated problem: As we know ,the formcomponent's getValue method returns value from the model for the component when rendering if raw input is equal to no raw input constant. So basically the problem is that component's model should not be updated until the user submits the

Re: Ajax Bug when using CryptedUrlWebRequestCodingStrategy ???

2007-10-24 Thread Swaroop Belur
FYI http://www.nabble.com/Wicket-Beta4-and-Ajax-Links-tf4616750.html On 10/24/07, marcus dickerhof [EMAIL PROTECTED] wrote: Sorry I forgot to send some additional infos: I use Wicket 1.3 Beta 4 The code looks like this Radio r = new Radio(radioCompany, new Model( company.getCompanyid()

Re: Changing selection in RadioChoice

2007-10-23 Thread Swaroop Belur
have a look at AjaxFormChoiceComponentUpdatingBehavior -swaroop On 10/23/07, wheleph [EMAIL PROTECTED] wrote: Hello everyone! I need to capture changing selection in RadioChoice component. Of course I could override wantOnSelectionChangedNotifications() and

Re: Basic question - checkboxes

2007-10-23 Thread Swaroop Belur
Have a look at AbstractCheckBoxModel . Will give u good idea. Override select() to do ur stuff. For example store the table rowmodel identifier in the model to to do some stuff for that row. On 10/23/07, Neil B. Cohen [EMAIL PROTECTED] wrote: Still experimenting with the framework. I've

Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Swaroop Belur
Put this in ur web.xml context-param param-nameconfiguration/param-name param-valuedevelopment/param-value /context-param On 10/23/07, raybristol [EMAIL PROTECTED] wrote: dummy question, how to set wicket in Deloyment mode? There is a Application#getConfigurationType()

Re: Custom rendering

2007-10-16 Thread Swaroop Belur
I think you just have to toggle the operation (url ) and model object for label based on user is null or not. Label dynamicText = new Label(lbl , new AbstractReadOnlyModel(){ public Object getObject(){ User u = ...; if(u==null){ return in order to sign in please

Re: HOWTO - update models in chain (push or pull)

2007-10-12 Thread Swaroop Belur
I have a category which i can select in a tree. The category contains a field url which points to an image. This image will be displayed on panel2. If i click on the category howto refresh the url on panel2? tried Something like this: DefaultMutableTreeNode selectednode = Object urobject =

Re: Model update with Link

2007-10-11 Thread Swaroop Belur
My question is: is it normal wicket loads the page again when a link is pressed? - Yes - It renders the page after finishing ur onclick and if so, is there a way to update my model first? Use submitlink instead of Link if u want to show the new values -swaroop On 10/11/07, Mattijs

Re: Empty ListChoice

2007-10-10 Thread Swaroop Belur
Try this: List choices; if(empty_condition){ choices = new ArrayList(); } else{ choices = } DropDownChoice d = new DropDownChoice(drop, new PropertyModel(this,drop), choices) { protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)

Re: AjaxFormChoiceComponentUpdatingBehavior doesn´t get event

2007-10-09 Thread Swaroop Belur
Try putting it on the radios instead of radio group . -swaroop On 10/9/07, SantiagoA [EMAIL PROTECTED] wrote: I added an AjaxFormChoiceComponentUpdatingBehavior to my radioGroup. I thought it would handle the event, when a RadioButton is clicked. But when i click on a RadioButton the

Re: popup window using wicket

2007-10-09 Thread Swaroop Belur
Normally In wicket , the data that gets shown in ui components gets pulled from the models of the components. One way of doing ur reqt: After submitting the form containing the textfield ,just get its model value and use that value as a page parameter for example to render the base page again.

Re: Threading wicket

2007-10-04 Thread swaroop belur
If i understand correctly , I think clock example does not work for you because your first ajax request - to handle the files - has to first finish. Until that finishes the self updating behavior which is a separate ajax request will not fire. So prob you will have to do ur file stuff in a

Re: custom icons on LinkTree nodes?

2007-10-03 Thread swaroop belur
If you are referring to open/close images Try this in ur LinkTree class impl: protected Component newNodeComponent(String id, IModel model) { return new LinkIconPanel(id, model, LinkTree.this) { private static final long

Re: Adding a Link for a Whole ListItem

2007-10-03 Thread swaroop belur
Look up how requesttargets work in wicket. In particular look up ListenerInterfaceRequestTarget for this use case. It just knows how to call ur component(link for example) in ur page object. Call will land in onLinkClicked. -swaroop Christopher Gardner-2 wrote: Thank you. I got this

Re: Custom label for number and currency formatting?

2007-10-03 Thread swaroop belur
Do this double x= 8.3; Label dbl = new Label(dbllbl,+x){ @Override protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) {

Re: Prompting a User to Save When Leaving a Page

2007-10-02 Thread swaroop belur
Have a look at this blog http://www.jroller.com/karthikg/entry/modelling_client_side_form_modifications#comments Basically state of the form onload is compared to that of beforeonunload. Just understand the concept and modify accordingly. Here the author tries to add a behavior to form's page

Re: Onclick and ondblclick on same element

2007-10-01 Thread swaroop belur
Hi Try this out . This may surely not be the best way to do it. Here when u dbl click, the single click event still occurs...but i am using a variable to detect whether dbl click event happened before or not. In that case, i simply return after toggling back. Click Test code

Re: retrieve a text file's content from C drive and display in table listing

2007-09-27 Thread Swaroop Belur
Hi If u see the interface IDataProvider , it is my no means explicitly coupled to the database. Basically all it expects u to do is implement it in such a way so it that what is the result for the current page and what kind of model you want to store the data in session . i.e in model(Object)

Re: Formless DropDownChoice selected value is null

2007-09-23 Thread Swaroop Belur
You should use ajaxformcomponentupdatingbehavior instead of AjaxEventBehavior . I think AjaxEventBehavior just triggers the server side call and does not update model -swaroop On 9/23/07, bebetu [EMAIL PROTECTED] wrote: Hi, I have a DropDownChoice in a WizardStep component (Wicket 1.3 beta

Re: LinkTree lazy loading possible?

2007-09-21 Thread swaroop belur
Initially when building the tree , just add a single child node to each first level of nodes u show You can mark this node as a indicator node or a busy node - this will allow the + sign to come up for the actual node. When u click on the + sign , representing the actual node , just remove the

Re: Page expiration

2007-09-20 Thread Swaroop Belur
We are facing the same problem here - but its only with jetty and not with tomcat. After a re login everything seems to work fine. Its only the first time. (i guess the resource was loaded the next time.) The problem however does not occur with tomcat. -swaroop On 9/20/07, Holda, Dariusz [EMAIL

Requests being dispatched in an infinite loop

2007-09-10 Thread swaroop belur
the page object has been created , i thought it would render the page as is. Am i missing something over here? thanks swaroop belur -- View this message in context: http://www.nabble.com/Requests-being-dispatched-in-an-infinite-loop-tf4420388.html#a12608388 Sent from the Wicket - User mailing list

Re: best practice for a header component with links defined by the page

2007-09-02 Thread Swaroop Belur
Recently I had to go back to doing a couple of Swing screens and all those inner classes and model objects were a breeze... +1 I have done a lot of swing coding before and for the past 6 months in wicket. I can definitely say this- Although wicket has a lot of swing like programming style in

Re: How to integrate wicket frame work with spring

2007-08-30 Thread Swaroop Belur
property name=contactDao ref=contactDao/ Have u defined contactDao in your xml file Basically there should be a definition in your xml file corresponding to contactDao i.e contactDao should point to a class in ur classpath -swaroop belur

Re: tabbedpanel and bookmarkable links

2007-08-27 Thread Swaroop Belur
Oops a typo .In that link you will have to override newUrl method to return what u want. Read as .In that link you will have to override getURLmethod to return what u want. -swaroop On 8/28/07, Swaroop Belur [EMAIL PROTECTED] wrote: Link i think calls getUrl method to get its url

Re: wicket vs tapestry ?

2007-08-22 Thread Swaroop Belur
Hi I have been using wicket for quite some time now. Prior to this I worked on tapestry for a short time . (In fact i implemented the same pages which i did in tapestry in wicket also) I may not be able to give you the right answer but i can definitely say this the learning curve in tapestry

Expanding a tree node conditionally

2007-08-22 Thread swaroop belur
of those nodes which need to be conditionally expanded. Any suggestions -swaroop belur -- View this message in context: http://www.nabble.com/Expanding-a-tree-node-conditionally-tf4311813.html#a12275348 Sent from the Wicket - User mailing list archive at Nabble.com