Hi,
I have this code :
final AjaxCheckBox bbcaucao = new AjaxCheckBox("bbcaucao") {
protected void onUpdate(AjaxRequestTarget target) {
System.out.println(new Date());
}
};
The Date gets printed only if the checkbox is un
any exceptions in the log/console? seems pretty damn strange to me.
can you verify onerror() is being called on the ajax behavior?
-igor
On Dec 18, 2007 11:27 PM, SantiagoA <[EMAIL PROTECTED]> wrote:
>
> Thanks for the answer, but that doesn´t work either.
> It´s a bit strange, but if I set the
Hi,
I'm having asserts fail when I resubmit a form with WicketTester. Here's
the scenario: I go to a page with a form that has a requiredtextfield.
First, I set the field to "" and submit it. It fails like it should. Then,
in the same test, I set it to a value like "blah" and submit it. It fai
Thanks for the answer, but that doesn´t work either.
It´s a bit strange, but if I set the component to be required, the
feedbackPanel will not be rendered.
If I make the validation in
protected void onUpdate(AjaxRequestTarget target){
like
if(vwd == null)
vwdCompone
I'm having an Exception that is happening before any of my
Link.onClick() code is executed, making me wonder if there is a wicket
bug of some sort.
I have a DataView with an ActionPanel in each row that contains a
Link. There is no AJAX on this page. When I load the page with the
DataView for the
I am overriding the onNewBrowserWindow method in my html page and added code
in the method body to show an error page when a new tab is opened. This is
working perfectly and looks like the solution for my problem. Thanks :)
Eelco Hillenius wrote:
>
>> I'm using wicket to develop an online exam
interface icredentialsprovider { credentials getusercredentials(); }
public class customwebsession extends authenticatedsession implements
icredentialsprovider {
}
class mocksession extends websession implements icredentialsprovider {
}
((icredentialsprovider) getSession()).getUserCrede
I have a custom WebSession (Extends AuthenticatedWebSession). What is correct
way to access the user credentials from a Page. I tried to access the user
credentials from the constructor of my custom page.
((CustomWebSession) getSession()).getUserCredentials();
However, unit testing that page h
Hi, this is fixed in latest trunk (didn't make it into RC2).
-Matej
On Dec 19, 2007 1:45 AM, Cristiano Kliemann <[EMAIL PROTECTED]> wrote:
> PagingNavigator needs to get the page count on construction because it
> depends on a PagingNavigation, which extends Loop. Loop needs an iteration
> coun
I've checked in wicketstuff-suckerfish and wicketstuff-suckerfish-examples.
I've improved my original code as follows:
- Dropdowns are built hierarchically from fragments so in theory there's no
limit to how many levels deep you can go
- Associating a link with any menu item is optional, so for e
PagingNavigator needs to get the page count on construction because it depends
on a PagingNavigation, which extends Loop. Loop needs an iteration count on
constructor.
I'm using a PagingNavigator connected to a DataView. The problem is that the
method size() of my data provider is being called
We got some feedback related to our announcement below regarding jWeekend's
search for a good Wicket developer. We have now hired someone (very
promising) in response to that announcement (once again demonstrating how
useful this forum is for all things Wicket related) and are no longer
interviewi
Hey guys,
I have created the following form (code below).
The form works fine, when i enter a value into the txt field and mouse click
on the AjaxFormSubmitLink... BUT if i type something into the TextField and
press the enter key, the page loads 'something'... but does nothing and
the form
If it is related to back button, it's probably browser caching wrong
page version. E.g. you have a panel on page, then remove it (through
ajax) and go to another page. When you return back, the page in
browser cache may contain the panel (which is already removed on
serverside).
Unfortunately ther
I have been seeing something similar. Since it is not consistent, I can't
pin down the cause or create a test case for this. I will keep plugging
along and try to pin point it.
However, I do know that happens when I go back to a page that has been
already shown. Other than that, I can't say mu
Hi,
what wicket version? Any chance you could provide a testcase?
-Matej
On Dec 18, 2007 6:35 PM, ramabf <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I have a page1 which has a link to page2. I click on the link and go to
> page2. On page2 there is a AjaxLink.
> When I click on the link on ajaxlink on
the way you are using compound modelevery textfield is writing
into the same property - so no matter how many you have you will only
keep the input of the last one processed. you need a model that can
properly populate a list...makes sense?
-igor
On Dec 18, 2007 3:39 AM, Alexander Landsnes K
On Dec 18, 2007 1:25 AM, SantiagoA <[EMAIL PROTECTED]> wrote:
>
> vwdComponent.add(new AjaxFormComponentUpdatingBehavior("onblur"){
> private static final long serialVersionUID = 4932149086847602955L;
> @Override
> protected void onUpdate(AjaxRequestTarget target){
> l
it does..
igor.vaynberg wrote:
>
> this is how java works.
>
> look
> public class Foo {
> public void foo() {
> final OutputStream out=System.out;
> Link link=new Link("link") { public protected void onclick() {
> out.println("clicked"); }}
> serialize(link);
> }}
>
> what happens in se
Hi
I have a page1 which has a link to page2. I click on the link and go to
page2. On page2 there is a AjaxLink.
When I click on the link on ajaxlink on page2, I get an error saying the
component(ajaxlink component) does not exist on page1. It doesnt happen
always. It happens intermittently. Did
Hmm, haven't tried that. That might work - sometimes you just don't check all
the methods thoroughly enough.. :)
Benjamin Ernst wrote:
>
> Hi,
>
> what about setVisible(false)?
>
> - Benjamin
>
>
> 2007/12/18, wfaler <[EMAIL PROTECTED]>:
>>
>>
>> Hi,
>> I basically want to add a single comp
What do you mean by optional components?
You can override isVisible() method, if you want not to render a specific
component.
Alex.
wfaler wrote:
>
> Hi,
> I basically want to add a single component onto a page optionally,
> dependent on other data/state in a page.
>
> So far I have done thi
I guess I prefer the convention of changing the mouse pointer to
"busy" rather than putting a little throbber by the link for two
reasons:
1. the throbber risks messing with the layout of the page
2. Changing the cursor has a much longer history as a UI convention
for computer busyness
Now Firefox
Hi,
what about setVisible(false)?
- Benjamin
2007/12/18, wfaler <[EMAIL PROTECTED]>:
>
>
> Hi,
> I basically want to add a single component onto a page optionally,
> dependent
> on other data/state in a page.
>
> So far I have done this by using a ListView, and passing an empty List
> into
> it
Hi,
I basically want to add a single component onto a page optionally, dependent
on other data/state in a page.
So far I have done this by using a ListView, and passing an empty List into
it if the component is not to be displayed.
However, I feel this is a bit heavy handed, is there any other wa
Johan Compagner wrote:
>
> it should work fine.
>
I updated from rc1 to rc2 and it works!!!
Thanks!
Artur
--
View this message in context:
http://www.nabble.com/How-to-refresh-component-many-times-in-one-ajax-request-tp14374053p14399364.html
Sent from the Wicket - User mailing list archiv
it should work fine.
A self updating timer only works once.. as far as i know
then it does the call. And the SelfUpdating add its component back to the
ajax request target
so that normally the timer is inserted again and started when the ajax
request finishes.
and the isEnabled() is checked when
Nope
thats already done:
*
final* Iterator iter = behaviors.iterator();
*while* (iter.hasNext())
{
IBehavior behavior = (IBehavior)iter.next();
*if* (behavior *instanceof* IHeaderContributor &&
isBehaviorAccepted(behavior))
{
((IHeaderContributor)behavior).renderHead(container.getHeaderResp
On Dec 18, 2007 2:15 PM, Matej Knopp <[EMAIL PROTECTED]> wrote:
> I'm not entirely sure isEnabled() works properly on timer behaviors.
> If it doesn't please add a feature request, the current implementation
> is way too simplistic and needs to be enhanced.
>
seems like we need to check for isEna
I'm not entirely sure isEnabled() works properly on timer behaviors.
If it doesn't please add a feature request, the current implementation
is way too simplistic and needs to be enhanced.
-Matej
On Dec 18, 2007 12:43 PM, Artur W. <[EMAIL PROTECTED]> wrote:
>
>
> Alex Objelean wrote:
> >
> > AjaxS
I am one of the old Wicket 2.0 users and I use the following code
modalWindow.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback()
{ private static final long serialVersionUID = 1L;
public void onClose(AjaxRequestTarget target) {
Hi,
use
setModel(new CompoundPropertyModel(MyForm.this));
in your form constructor.
this automatically sets the submitted data to the corresponding properties
http://www.wicketstuff.org/wicket13/forminput/ has greate examples to study.
Kind regards,
Florian Sperber
mbelarbi schrieb:
I h
I have a simple TextArea in a simple Form that looks something like this:
public class MyForm extends Form {
TextArea message
TextField to;
TextField subject;
public EditorForm(String id) {
super(id);
message = new TextArea
Alex Objelean wrote:
>
> AjaxSelfUpdatingTimerBehavior implements IBehavior interface, which has
> the following method:
> boolean isEnabled(Component component);
>
> Override it and provide your business logic there.
>
I must do something wrong becouse it doesn't start refreshing.
My refr
Hi,
I'm trying to get some input setup in a listview, seeing as I cannot know how
many input fields there will be, or the type. The issue I'm getting is that the
input is always null, not whatever I jot into the box. I've
setReuseProperty(true), but that didn't solve the issue.
When I su
My guess would be the JFreeChart crashing your server. Unless you have
implemented the DataProvider in a wrong way it should only load
visible items (one page). But the JFreeChart is probably loading
entire dataset. You should consider generating the chart and caching
it for a period of time afterw
All,
Last friday I delivered a talk to 500-600 folks in Antwerp at JavaPolis
2007. For those that were unable to attend I have uploaded my slides to
slideshare. The live demo has been replaced with screenshots and slides as
the live demo can't be shared through slideshare.
You can find the deck he
AjaxSelfUpdatingTimerBehavior implements IBehavior interface, which has the
following method:
boolean isEnabled(Component component);
Override it and provide your business logic there.
Alex.
Artur W. wrote:
>
>
> Alex Objelean wrote:
>>
>> I think that the better approach would be to enabl
Hi,
I've searched in the mailing list, but I haven't found a similar problem..
I have a LinkTree, when the user clicks on a node, a ModalWindow must be shown
and depending on the choice of the user
the previous node of the tree should be re-selected (typically when the user
chooses "cancel")
My c
okok.. more details here... i had summarize part of the code
yes... i was loading a huge records for a report ( eg: 1 year records )
Example
The data that will display is based on the T&C as below
1. every minutes for one logID had 1 record. Means 1 days = 1440 records (
60 min * 24 h
Alex Objelean wrote:
>
> I think that the better approach would be to enable/disable the behavior,
> instead of adding it.
>
Is there a convenience method to do this?
There is no enable/disable method in the AjaxSelfUpdatingTimerBehavior.
Thanks,
Artur
--
View this message in context:
ht
I think that the better approach would be to enable/disable the behavior,
instead of adding it.
Alex.
Artur W. wrote:
>
> Btw, is is possible to add Behavior to the component in the
> AjaxRequestTarget?
> For exampel I want to add AjaxSelfUpdatingTimerBehavior but when the user
> click on the
Gerolf Seitz wrote:
>
> On Dec 17, 2007 10:33 PM, Artur W. <[EMAIL PROTECTED]> wrote:
>
>>
>> The component doesn't refresh. Only for the last time. How to make it
>> work?
>>
>
> that's because the response is sent *AFTER* loop is over, not when
> target.addComponent(..) is called.
> what you
Hi again.
Here are some Code snippets:
***this TextField extends TextField and implements IFeedback to change the
backgroundcolor of the TextField when an error occurres***
final FeedbackTextField vwdComponent = new FeedbackTextField("vwd");
vwdComponent.setRequired(true);
vwdCompon
44 matches
Mail list logo