On 5/2/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
just checked in a fix let me know if that did the trick
-IgorOn 5/1/06, karthik Guru < [EMAIL PROTECTED] > wrote:yep I checked. it doesn't call FeedbackPanel.updateFeedback either on ajax render.On 5/1/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:i think it should. Feedback panel's updateFeedback() is being called right?
-IgorOn 5/1/06, karthik Guru < [EMAIL PROTECTED]> wrote:Great! works now! thanks as always. Ok for my info -
Should FormComponentFeedbackBorder.updateFeedback() be called on ajax render?..the reason i ask this its not getting called. So I have a similar check happening in my 'isVisible'.On 5/1/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:the problem is that initially the border is invisible so it has no <span id="id">
so when the ajax requests comes in it doesnt know where to place the markup.
you need to wrap it in a webmarkupcontainer that is always visible, or write a different formcomponentfeedbackborder that always draws an empty span instead of being completely invisible.
-IgorOn 5/1/06, karthik Guru <[EMAIL PROTECTED]> wrote:Yes.In fact, the Ajax response has the markup for the FormComponentFeedbackBorder.
But the errorIndicator always shows up even though the field is 'valid' (it was invalid before the ajax call was made).
The FeedbackPanel updates correctly. But like I said , it does appear that FormComponentFeedbackBorder.updateFeedback() is not getting called and so the errorIndicator doesn't really chage its state.On 5/1/06, Martijn Dashorst < [EMAIL PROTECTED]> wrote:have you setOutputMarkupId(true)?
MartijnOn 5/1/06, karthik Guru <[EMAIL PROTECTED] > wrote:I have a text component decorated using FormComponentFeedbackBorder. I have something like the following:
userName.add(new AjaxFormComponentUpdatingBehavior("onblur"){
@Override
protected void onUpdate(AjaxRequestTarget target) {
target.addComponent(feedbackPanel);
target.addComponent(nameBorder);
}
});
Now even though I have added the border as the target of ajax, i dont see the border updating properly. I also see that FormComponentFeedbackBorder.updateFeedback() is not getting called when responding to ajax request. So the errorIndicator always shows up invisible. Any idea why this is the case? or am i missing something here.
The FeedbckPanel updates properly.
-- karthik ----
Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
-- http://wicketframework.org---- karthik --
---- karthik --
---- karthik --
--
-- karthik --