Re: Clearing Cache after Logout

2008-12-04 Thread vishy_sb
Thanks for the reply there Nino. I have set up a custom expired page and have set the following in Application class getApplicationSettings().setPageExpiredErrorPage(PageExpired.class); Now the page expired is set to this page. But still on hitting the back button I get back to the page. I tried

Clearing Cache after Logout

2008-12-03 Thread vishy_sb
Hi all, I have a logout link that takes me to the login (Home) page. However when I click the back button it brings me back to the same page that I was on (Although I am not able to do anything on this page as whenever I press some button I get the error "Page Expired") A better option would be

Check a checkbox when focus on a textbox

2008-11-20 Thread vishy_sb
Hi all, I have a textbox and a checkbox in a form on my web page. I would like to automatically check the checkbox when the user starts to type something in the textbox. I believe this can be done by using some javascript. I did some research over the web and was able to find some code which is

Re: Validation Question

2008-11-20 Thread vishy_sb
sage > on a particular page only ... etc, in the same package as the class with > the same name. > > Regards - Cemal > http://www.jWeekend.co.uk http://jWeekend.co.uk > > > vishy_sb wrote: >> >> Hi all, >> >> I am trying to get some validations

Validation Question

2008-11-19 Thread vishy_sb
Hi all, I am trying to get some validations to work using the FeedbackPanel. My form has a Textfield and I am trying to use a NumberValidator to check if it is in a given range. The code that I have used is : TextField pgLongLimit = new TextField("pgLongLimit", new PropertyModel(

Re: Setting a button press on hitting the enter key from the keyboard

2008-11-13 Thread vishy_sb
roject..: > > http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-stuff-contrib-input-events > > vishy_sb wrote: >> I have a form inside a modal window. The form has a textfield field and a >> button in it. I want to set the focus on the button when I enter >> so

Setting a button press on hitting the enter key from the keyboard

2008-11-13 Thread vishy_sb
I have a form inside a modal window. The form has a textfield field and a button in it. I want to set the focus on the button when I enter something in the textfield. I tried adding the following behaviour to the textfield but it is not working. textfield.add(new AbstractBehavior(){

Disabling a TreeNode

2008-08-20 Thread vishy_sb
Hi all, I have a tree component on my page and each tree node has a check box and a label. I am trying to disable the nodes that have been selected using the checkbox. The event is fired by pressing a button. Any ideas about how this could be done??? Thanks in advance, vishy -- View this messa

Re: Dynamically Making changes to Tree Node

2008-08-06 Thread vishy_sb
W FROM > model.getObject() */ > } > }; > } > > > -Matej > > On Fri, Aug 1, 2008 at 1:29 AM, vishy_sb <[EMAIL PROTECTED]> > wrote: >> >> http://www.nabble.com/file/p18765641/treeview.jpeg >> >> Hi All

Re: Modal Window not displayed

2008-08-06 Thread vishy_sb
Anybody out there know anything about this. vishy_sb wrote: > > Hi All, > > Kindly refer to the picture to see the page that I have.. the page has 2 > panels. One has the Limit Editor and the other has the tree. Now when I > hit the apply button a confirmation window

Modal Window not displayed

2008-08-06 Thread vishy_sb
Hi All, Kindly refer to the picture to see the page that I have.. the page has 2 panels. One has the Limit Editor and the other has the tree. Now when I hit the apply button a confirmation window should come up as shown in the picture below. http://www.nabble.com/file/p18856011/Modal_showing_up

Re: Dynamically Making changes to Tree Node

2008-08-04 Thread vishy_sb
Hi there, Well it seems that the tree is not working again... Here is the code: Inside the Tree I am overriding the newNodeComponentMethod() like this: //Java Code @Override protected Component newNodeComponent(String id, IModel model) { Component nodeComp = null;

Re: CheckBox handling with Ajax.

2008-08-02 Thread vishy_sb
setOutputMarkupPlaceholdertag to true. I had a similar issue like you and I was able to get it to work with that. Vishy vishy_sb wrote: > > Well you need to put the component (say component) which you want to make > invisible into target and then set > component.setOutputMarkupPl

Re: Refreshing a form inside a Modal Window

2008-08-02 Thread vishy_sb
al content here >>modal.setContent(new >> ModalPanel(modal.getContentId())); >> >>modal.show(target); >>} >>}); >> >> Of course, there may be a better way. >> >> Steve >> >> >&

Re: Add different component for treenode

2008-08-02 Thread vishy_sb
Nevermind I was able to get it to work vishy [EMAIL PROTECTED] wrote: > > Hi, > > with newNodeComponent in the BaseTree class i can specify a different > component for my treenode, but this is the same for all node. Is it > possible > setting different treenode component for added a different

Re: Dynamically Making changes to Tree Node

2008-08-02 Thread vishy_sb
rue you get a tree based > upon this: > > IM A NODE > > IM A NODE > > IM A NODE > > TheContentYouWant > > > > > (case of 3 Nodes you get 3 stacked divs - place whatever you

Re: Add different component for treenode

2008-08-01 Thread vishy_sb
Hi [EMAIL PROTECTED], I am trying to get the same thing working here and was just wondering if you were able to get it to work. if you did can you provide some help on you did it. Also when I try to write the newNodeComponent() method just as you have used below I get an exception that the method

Re: Dynamically Making changes to Tree Node

2008-08-01 Thread vishy_sb
wrote: > > You need to use panels. Every panel can have different markup. So you > will have a panel for every node type. > > -Matej > > On Fri, Aug 1, 2008 at 11:03 PM, vishy_sb <[EMAIL PROTECTED]> > wrote: >> >> Any ideas about how to get this working

Re: Dynamically Making changes to Tree Node

2008-08-01 Thread vishy_sb
wrote: > > You need to use panels. Every panel can have different markup. So you > will have a panel for every node type. > > -Matej > > On Fri, Aug 1, 2008 at 11:03 PM, vishy_sb <[EMAIL PROTECTED]> > wrote: >> >> Any ideas about how to get this working

Re: CheckBox handling with Ajax.

2008-08-01 Thread vishy_sb
Well you need to put the component (say component) which you want to make invisible into target and then set component.setOutputMarkupPlaceholderTag(true). Let me know if that works. vishy rit wrote: > > I have strange situation while handling Ajax on check box. > > I have a scenario , On

Re: Dynamically Making changes to Tree Node

2008-08-01 Thread vishy_sb
Any ideas about how to get this working vishy_sb wrote: > > Thanks for the quick reply Matej. > > Well in my implementation I am using a CheckBoxTree example discussed in > the forum already > (http://www.nabble.com/Checkbox-tree-component-td13433102.html#a134

Re: Refreshing a form inside a Modal Window

2008-08-01 Thread vishy_sb
>>public void onClick(AjaxRequestTarget target) { >> >>// set or reset modal content here >>modal.setContent(new >> ModalPanel(modal.getContentId())); >> >>modal.show(target); >>} >>})

Re: Dynamically Making changes to Tree Node

2008-07-31 Thread vishy_sb
; BaseTree tree, IModel model) > { > /* HERE CREATE YOUR OWN PANEL DEPENDING ON THE > TREE NODE. YOU CAN GET >THE TREE NODE FOR THIS ROW FROM > model.getObject() */ > } &

Re: Refreshing a form inside a Modal Window

2008-07-31 Thread vishy_sb
uot;, form) { @Override protected void onSubmit(AjaxRequestTarget target, Form fom) { for(int i = 0; i > You need to show some code. > > -Matej > > On Fri, Aug 1, 2008 at 1:33 AM, vishy_sb <[EMAIL PROTECTED]> > wrote:

Re: Refreshing a form inside a Modal Window

2008-07-31 Thread vishy_sb
Is there anyone who has any clue about how this has to be done??? vishy_sb wrote: > > Hi all, > > I have Modal Window which contains a panel. Inside the panel I am trying > to perform a search and the results of the search are populating inside a > ListView. There

Dynamically Making changes to Tree Node

2008-07-31 Thread vishy_sb
http://www.nabble.com/file/p18765641/treeview.jpeg Hi All, As shown in the Image I have a checkbox tree which has nodes that have different components. Each node of the tree has a checkbox, label, a panel which has the 3 TextAreas and another panel which has a listview. In order to get the tre

Refreshing a form inside a Modal Window

2008-07-30 Thread vishy_sb
Hi all, I have Modal Window which contains a panel. Inside the panel I am trying to perform a search and the results of the search are populating inside a ListView. There is an apply button which applies the list on the main page and closes the modal window. However when I want to do another sear

Problem making Panel visible using AJAX

2008-07-11 Thread vishy_sb
Hi all, I have a page where I have put an AjaxFallBackButton() and also have a Panel on it. I want to make the panel visible or invisible by clicking the button. Kindly refer to the code below: //Code for the TestPage public TestPage() { Form form = new Form("form");

Re: Checkbox tree component

2008-07-07 Thread vishy_sb
onNodeCheckUpdated() method of the main panel but it doesn't work like that. Any ideas about how i can get this to work. Regards, vishy_sb Doug Leeper wrote: > > If the tree is pre-loaded, it is easier. When the checkbox is selected, > iterate through the children nodes and set its sta

Re: Checkbox tree component

2008-06-26 Thread vishy_sb
Well currently I am testing the tree using a model which creates the entire tree up front... however for the final implementation I would be building the child nodes dynamically hence I guess I would be using both of them Thanks for the quick reply Doug Leeper wrote: > > It depend

Re: Checkbox tree component

2008-06-26 Thread vishy_sb
me know how can I implement that. Thanks, vishy_sb Doug Leeper wrote: > > Ok here it is. I have also included my use of it. While it won't compile > for you...you will at least see how I have used it. > > http://www.nabble.com/file/p13439520/CheckBoxIconPanel.html >