FeedbackPanel Message issues

2011-02-17 Thread sheadley3228

In my current project, I am using the feedbackpanel to display both
informational and error messages. When I move to my webpage, i display an
informational message. When I perform a Retrieve using   PageableListView if
no Items are retrieved, I get back a second message. How can I removed the
first message from the queue while maintaining the second message of not
found.

I have tried:

getSession().cleanupFeedbackMessages();
fb.setOutputMarkupId(true);
add(fb);
info(new ResourceModel(1035).getObject().toString());

to clean the messages before adding the new message, but this did not work.
Any help would be appreciated.


Regards,

sheadley
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/FeedbackPanel-Message-issues-tp3311743p3311743.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Unable to update FeedBackPanel within AjaxEventBehavior call

2011-02-15 Thread sheadley3228

fixed. Thanks for the help
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Unable-to-update-FeedBackPanel-within-AjaxEventBehavior-call-tp3305844p3306969.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Unable to update FeedBackPanel within AjaxEventBehavior call

2011-02-14 Thread sheadley3228

I am getting the following error in the wicket ajax debug window when trying
to update the feedback panel in my result page.

ERROR: Wicket.Ajax.Call.processComponent: Component with id [[feedback91]] a
was not found while trying to perform markup update. Make sure you called
component.setOutputMarkupId(true) on the component whose markup you are
trying to update.

my question is how do I find this component programmatically? is there a
getComponentByID call or something?? I call my compenent feedback, where
is the 'feedback91' comming from??

Also, I am using AjaxEventBehavior on a checkbox so that once the checkbox
is clicked, I would like to update the feedback panel without refreshing the
page. How could this be accomplished?? is there some sort of render that
would show the new message in the feedbackpanel?


regards,


steven H.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Unable-to-update-FeedBackPanel-within-AjaxEventBehavior-call-tp3305844p3305844.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AjaxCheckBox not Disabling Checkbox on call to onUpdate

2011-02-09 Thread sheadley3228

I have found a solution to my first problem which was Disabling my checkbox.
I did it by changing my listView to a RefreshingView and then using
AjaxEventBehavior on my checkbox like so:

final RefreshingView rv = new RefreshingView(mychanges) {

@Override
protected Iterator getItemModels() {
return new ModelIteratorAdapter(userSearchResults.iterator()) {

@Override
protected IModel model(Object arg0) {
return new CompoundPropertyModel ((UserSearchResult) 
arg0);
}

   };
}

@Override
protected void populateItem(Item arg1) {

 final CheckBox ajaxCheck = new CheckBox(verifyflag, new
PropertyModel(SearchResultPage.this, checkFalse));
ajaxCheck.add(new AjaxEventBehavior(onclick) {   
@Override
protected void onEvent(AjaxRequestTarget arg0) {

ajaxCheck.setEnabled(false);
arg0.addComponent(ajaxCheck);   


 }  
});
   }


My question is that I need to have the ability that once my checkbox is
selected to update 2 labels that are part of the Item I am populating:

arg1.add(new Label(verifyby, model.getVRFD_BY_USR_ID()));
arg1.add(new Label(verifydt, DateUtil.formatDate(model.getVRFD_DT(;

How could this be accomplished?

regards,

Sheadley
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxCheckBox-not-Disabling-Checkbox-on-call-to-onUpdate-tp3264816p3297061.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AjaxCheckBox not Disabling Checkbox on call to onUpdate

2011-02-07 Thread sheadley3228

I have a problem updating my check box on a call to onUpdate of a
AjaxCheckBox component.

Within my PageableListView populateItem call:


AjaxCheckBox ajaxCheck = null;
PageableListView userSearchPageView = new PageableListView(mychanges,
userSearchResults, RECORDS_PER_PAGE) 
  {
@Override
protected void populateItem(ListItem arg0) {
 ...
 ... 
 ... /* I create an AjaxCheckBox */
   ajaxCheck = new AjaxCheckBox(verifyflag, new
PropertyModel(ResultPage.this, checkFalse))
 {
@Override
protected void onUpdate(AjaxRequestTarget arg1) {

ajaxCheck.setOutputMarkupId(true);
  ajaxCheck.setEnabled(false);
  arg1.addComponent(ajaxCheck);
  }
   }
   
   This does not disable my checkbox. Any Help would greatly be appreciated.


Regards,

sheadley  
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxCheckBox-not-Disabling-Checkbox-on-call-to-onUpdate-tp3264816p3264816.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Multiple Button Problem in Wicket

2011-02-02 Thread sheadley3228

Hello All,

I have 3 buttons in my form and have read over the documentation
concerning multiple buttons but can't get the buttons to work correctly.

Here is my Form:

public UserVerifyForm(String id) {
  super(id);

  add(new Button(retrieveButton) {
@Override
public void onSubmit() {
info(retrieve was pressed!);
}
  }

  add(new Button(reportButton){
public void onSubmit() {
info(report was pressed!);
}
  });

  add(new Button(clearButton)
.setDefaultFormProcessing(false)
.add( new SimpleAttributeModifier(onclick, clearJavascript)));
  
}



My html Page looks like:
.
.
.
  div class=srchbtn
input wicket:id=retrieveButton type=submit
class=submit  value=Retrieve /
input wicket:id=clearButton type=reset
class=submit value=Clear /
input type=submit wicket:id=reportButton 
class=submit  value=Report /
/div

When I try to run with the following I get this error Message:

[2/2/11 10:48:35:370 EST] 001c SystemOut O 69728 [WebContainer : 0]
ERROR org.apache.wicket.RequestCycle  - The component(s) below failed to
render. A common problem is that you have added a component in code but
forgot to reference it in the markup (thus the component will never be
rendered).

1. [MarkupContainer [Component id = reportButton]]

any help would be appreciated


Thanks,


Steven H.

  
  
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Multiple-Button-Problem-in-Wicket-tp3254779p3254779.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org