Web analytics with Wicket in mind.

2008-07-26 Thread Andre Cesta

Hi All,
 
I've developed JWAnalytics with Wicket in mind.  JWAnalytics is a web analytics 
storage utility that challenges the way web analytics are currently done...   
The innovation goes hand in hand with Wicket web programming philosophy.  
JWAnalytics aims at user behavioural tracking, web event analysis, and other 
new tendencies in the web analytics world which match Wicket *very* well.
 
The project is open source (Apache 2.0 license), and looking for new architects 
and developers to join its community: 
http://code.google.com/p/jwanalytics/wiki/Index
http://code.google.com/p/jwanalytics/wiki/WhatIsJwanalytics
 
Do not hesitate in writing if you need further assistance.  You'll find out of 
the box Wicket adaptors, wicket sample code and even a wicket sample 
application.
 
Best regards, André Cesta


  __
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.html

Having problem in modal window.setWindowClosedCallback

2008-07-26 Thread nicholes

Hi, i'm new to wicket, i'm currently using wicket 1.3.4. 

Probably i need a simple thing and done some mistake.

I have searched from wicket forum like
http://www.nabble.com/Pass-form-input-from-modal-window-back-to-the-caller-page-td14944556.html
http://markmail.org/message/mksmlefsd6wbjycc?q=setWindowClosedCallback#query:setWindowClosedCallback+page:1+mid:hitb2xps4rxw4vq4+state:results

and went through modal window setWindowClosedCallback, ajax-enabled
radioGroup, 
wicket live example etc. But i still could not figure out the solution
myself yet. 

Appreciate anyone inputs and give me some valuable pointer. Thanks alot.

-   In my 1st page, there is a form with many formcomponents, including a
Ajaxlink to show up a modal window.

-   That link opens a modal window in 2nd page and i can submit a search 
query
in the form, after submitted, it will redirect to 3rd page. 

-   In my 3rd page, search results will be return from database and 
displayed
at dataView. 

-   Now, I can select which row of search result using radioGroup and call 
the
ajaxSubmitButton to submit the form.

-   After i selected the row, the Modal window is closed & supposely the
selected row will be return &  display back to my 1st page.

Below is my code snippet, I having a problem to return back the selected row
from my dataView to the 1st page & display at one of the caller's page
textBox.
What have i done wrong?

1st Page 
===
modal1.setPageCreator(new ModalWindow.PageCreator()
{
public Page createPage()
 {
return new ModalContent1Page(firstPage.this, modal1);
}
});


2nd Page appear at Modal Window
==
public ModalContent1Page(final FirstPage firstPage, final ModalWindow
window)
{
private class SearchForm extends Form{

public SearchForm(String id, FirstPage firstPage) {

searchButton = new AjaxSubmitButton("searchButton", 
this){
@Override
protected void onSubmit(AjaxRequestTarget target, Form 
form) {

target.addComponent(feedback);

SearchResultPage searchResultPage = new 
SearchResultPage(code);
setResponsePage(searchResultPage );


}
};

add(searchButton);
}

}

3rd Page appear at Modal Window
==
dataView = new DataView("tableForm", dataProvider){

@Override
protected void populateItem(final Item item) {

// TODO Auto-generated method stub

user= (User)item.getModelObject();

item.add(radio = new Radio("radio", item.getModel()));

radio.add(new AjaxEventBehavior("onchange") {


protected void onEvent(AjaxRequestTarget target) {
  
getComponent().getModelObject().toString());

  //value = 
getComponent().getModelObject().toString();
  
  user= (User) getComponent().getModelObject();
  
  System.out.println("User is   "+user);
  
  group.setModelObject(user);
  
}
}); 
radio.setOutputMarkupId(true);
};
dataView.setOutputMarkupId(true);
add(dataView);

group.add(dataView);

submitButton = new AjaxSubmitButton("submitButton", (Form)
getModelObject()){

@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
// TODO Auto-generated method stub

// Is this the correct way to set the selected row 
value to Model Object?
If not, what will it be?
group.setModelObject(user);

ModalWindow.closeCurrent(target); 

}
};

add(submitButton);

}

}



1st Page - modalWindow closed call back to update the selected row value to
textbox

Re: ajax request timeout different from Session timeout?

2008-07-26 Thread Martijn Dashorst
check your logs for serialization errors. Wicket isn't able to
retrieve the page from the page cache if there are serialization
errors. This often causes the page expiration message to appear.

Martijn

On Fri, Jul 25, 2008 at 11:57 PM, dukehoops <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> My webapp's  is set to 30 minutes but some ajax requests
> result in PageExpiredExceptions if AjaxSubmitLinks are clicked after about 5
> minutes of inactivity.
>
> Is there a timeout value for ajax requests (or page expiration timeout
> values) that is distinct from HttpSession's timeout value? If so where is it
> set and how can it be read/changed?
>
> thanks
> -nikita
>
> -
> 
> Nikita Tovstoles
> vside.com
> 
>
> --
> View this message in context: 
> http://www.nabble.com/ajax-request-timeout-different-from-Session-timeout--tp18660284p18660284.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Decoding hierarchy errors (resolved)

2008-07-26 Thread David Nedrow

NM, looks like I had a bad tag in the html.

-David


On Jul 25, 2008, at 2:42 PM, David Nedrow wrote:


I have the following setup...

Page
TabbedPanel
Tab
Panel
ModalWindow
Panel
Form
FeedbackPanel

In the form, I've defined...

   final FeedbackPanel feedback = new  
FeedbackPanel("createuserfeedback");

   form.add(feedback);

This feedback panel is to be used to provide corrective guidance to  
users for field entry via a custom Validator.


The HTML for the Panel containing the form is pretty simple...




...



However, when I run the app, I received the following error...

WicketMessage: Unable to find component with id 'createuserfeedback'  
in [MarkupContainer [Component id = content, page =  
com.vzbi.ncs.argfrp.webapp.FilterRequest.web.pages.TabbedPanelPage,  
path = 2:tabs:panel:modalwindow:content.UserCreateModalWindow$1,  
isVisible = true, isVersioned = false]]. This means that you  
declared wicket:id=createuserfeedback in your markup, but that you  
either did not add the component to your page at all, or that the  
hierarchy does not match.
[markup = file:/Users/dnedrow/Developer/NetBeansProjects/ArgfrpEE/ 
dist/gfdeploy/FilterRequest_war/WEB-INF/classes/com/vzbi/ncs/argfrp/ 
webapp/FilterRequest/web/panels/UserCreatePanel.html




...
   

, index = 2, current = '' (line  
3, column 9)]


The target in the HTML matches the component id in the java file, so  
I'm guessing there is a hierarchy problem?


Any ideas?

-David

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ajax request timeout different from Session timeout?

2008-07-26 Thread dukehoops

Excellent point! Perhaps (assuming that code review for non-serializable
state is not possible in the near term) we should replace DiskPageStore with
InMemoryPageStore (that we'd write). Do you know where DiskPageStore
actually stores this data - I'd like to check out that file size in our
application to determine whether we could fit that data in memory.

thanks!
-nikita


Martijn Dashorst wrote:
> 
> check your logs for serialization errors. Wicket isn't able to
> retrieve the page from the page cache if there are serialization
> errors. This often causes the page expiration message to appear.
> 
> Martijn
> 
> 


-

Nikita Tovstoles
vside.com


-- 
View this message in context: 
http://www.nabble.com/ajax-request-timeout-different-from-Session-timeout--tp18660284p18669960.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DataView and "No items" label

2008-07-26 Thread Vitaly Tsaplin
  Hi everyone,

   Can anyone suggest a way to add a messages like "No items" in case
if no items can be presented by the DataView. Currently I am using a
simple label hiding it if something presents. Is there any other way?
Or someone could generalize it by baking it to a reusable component?

  Vitaly

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DataView and "No items" label

2008-07-26 Thread Igor Vaynberg
you can create such a label yourself easily. simply pass in the
dataview into it and override isvisible() { return
dataview.getitemcount()==0; }

-igor

On Sat, Jul 26, 2008 at 5:53 PM, Vitaly Tsaplin
<[EMAIL PROTECTED]> wrote:
>  Hi everyone,
>
>   Can anyone suggest a way to add a messages like "No items" in case
> if no items can be presented by the DataView. Currently I am using a
> simple label hiding it if something presents. Is there any other way?
> Or someone could generalize it by baking it to a reusable component?
>
>  Vitaly
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Having problem in modal window.setWindowClosedCallback

2008-07-26 Thread nicholes

Hi, can anyone offering any help? Really appreciate that. 

Thanks.
nicholes

-- 
View this message in context: 
http://www.nabble.com/Having-problem-in-modal-window.setWindowClosedCallback-tp18664531p18672817.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]