Re: [Wicket-user] Can I get a 'Nice URL' when form validation fails?

2007-07-05 Thread David Leangen

In 1.2.6, how can a stateless form be simulated?


On Thu, 2007-07-05 at 17:05 -0700, Igor Vaynberg wrote:
> 
> On 7/5/07, Philip Wilkinson <[EMAIL PROTECTED]> wrote:
> It would be nice if I could configure wicket to use cookies
> (like the
> servlet container) when enabled on the client to store the
> information it
> currently encodes in url (?wicket:interface=:0:::)
> 
> i dont think you fully understand the impact of this change. a servlet
> container only needs to set a cookie once per session - and its value
> doesnt change. wicket would have to do this every request and set it
> to different values. that means you can never have a regular link in
> your html - it would _always_ have to be a link with a javascript
> handler that sets the cookie. that is a big ugly drain. 
> 
> if you are really set on having that behavior, then like i said, use
> stateless pages and forms. if that doesnt work then of course you can
> plugin your own url coding strategy - but for what you want i would
> not imagine it would be a trivial thing to write. 
> 
> -igor
> 
> 
> 
> 
>  
> 
> Anyway thanks again for everyones input.
> Philip Wilkinson. 
> 
> 
> igor.vaynberg wrote:
> >
> > On 7/4/07, Philip Wilkinson <[EMAIL PROTECTED]>
> wrote:
> >>
> >>
> >> Thanks for that Dave. 
> >> It does make sense.
> >> But I know the values are stored in the session pagemap, so
> I'd like to
> >> be
> >> able to get them from there. I was hoping that a
> combination of a
> >> bookmarked 
> >> url, and maybe cookie or hidden field, managed by wicket,
> would be enough
> >> for wicket not to stray from my 'nice' bookmarked url, and
> not to expose
> >> wickets inner workings via a url. 
> >
> >
> > the cookie idea mightve worked, but it would mean that we
> would have to
> > rewrite every link to set the cookie, so essentially wicket
> will not work
> > without javascript. :|
> >
> > -igor
> >
> >
> >
> >
> > Cheers.
> >>
> >>
> >> David Leangen-8 wrote:
> >> >
> >> >
> >> > Philip,
> >> >
> >> > You need to also include all your form values in the
> PageParamters, and 
> >> > parse those values in your page, filling each of the
> fields with those
> >> > values.
> >> >
> >> > Does that make sense?
> >> >
> >> >
> >> > So, your url would be something like: 
> >> >
> >> >   /myPage?field1=blah&checkbox1=true&...
> >> >
> >> >
> >> > Cheers,
> >> > Dave
> >> >
> >> >
> >> >
> >> > On Tue, 2007-07-03 at 13:48 -0700, Philip Wilkinson
> wrote: 
> >> >> Hi,
> >> >>
> >> >> When my form validation fails, the page is redisplayed
> with the
> >> default
> >> >> url
> >> >> with all its wicket:interface stuff. 
> >> >> I'd rather this didn't happen as I've bookmarked the
> page, and would
> >> >> prefer
> >> >> to have the bookmarked url redisplayed. (the bookmarked
> url was
> >> initially 
> >> >> displayed for the page)
> >> >>
> >> >> I've tried overriding Form.onError() { setResponsePage(
> >> WelcomePage.class,
> >> >> new PageParameters()); } 
> >> >> and that got me my nice bookmarked url, but lost all my
> form field
> >> >> values.
> >> >> Obviously creating a new page instance.
> >> >>
> >> >> I've also tried Form.onError()
> { setResponsePage(WelcomePage.this); }
> >> >>
> >> >> Is it possible with wicket to only have the bookmarkable
> urls visible,
> >> >> without exposing the wicket internals in the url? 
> >> >>
> >> >> Thanks in advance
> >> >> Philip Wilkinson.
> >> >>
> >> >
> >> >
> >> >
> >>
> 
> - 
> >> > This SF.net email is sponsored by DB2 Express
> >> > Download DB2 Express C - the FREE version of DB2 express
> and take
> >> > control of your XML. No limits. Just data. Click to get
> it now. 
> >> > http://sourceforge.net/powerbar/db2/
> >> > ___
> >> > Wicket-user mailing list
> >> > Wicket-user@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >> >
> >> >
> >>
> >> --
> >> View this message in contex

Re: [Wicket-user] Seam2 and Wicket

2007-07-05 Thread Eelco Hillenius
> > I think the BPM feature would be a nice addition.
>
> I'm curious to learn what you would think that should look like. I've
> heard of a couple of projects that used/ integrated Wicket + jBPM
> (likely the default of SEAM) but everyone might have different ideas
> on it. How would you want to use such integration as an end-user?

I checked out seam from cvs today and browsed through the code a bit
(and also looked at JSR 299 for that matter).

Gavin states that Seam is now ready to be used in other frameworks.
Well... only if those other frameworks work with page flows, support
EL, manage state independenly from objects, etc. Stuff Wicket doesn't
need. But if that's all stripped, what's left? Really, it looks to me
that Seam (and JSR-299) are completely bound to JSF, if not
technically, than at least conceptually.

I think it is better to just stay focussed on what Wicket is good at.
We have excellent facilities for state management, model binding, etc,
and adding a framework in between will only make Wicket more heavy
weight. But please do speak up if you don't agree with what I think of
Seam + Wicket, and give some concrete examples of how such integration
would be an advantage.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] jBMP + Wicket (was: Seam2 and Wicket)

2007-07-05 Thread Eelco Hillenius
> > > I think the BPM feature would be a nice addition.

Did someone think a bit yet about what jBPM integration might look
like? I didn't think Seam's example in their short tutorial was very
convincing, as it seems to be just an alternative way of defining page
flow. But I have to admit I merely skimmed the docs. More useful imho
would be something (a component?) that would automatically build
wizards out of flow definitions, including some nice trick to bind a
data model in between. Anyone has other ideas?

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-05 Thread kenixwong

is that use 

protected void populateTreeItem(WebMarkupContainer item, int level) {} to
set the redirect link ?

thanks




Matej Knopp-2 wrote:
> 
> I believe, that what you want, is not to set response page, but rather
> to switch panel components. At least that sounds much more reasonable
> to me.
> 
> -Matej
> 
> On 7/4/07, kenixwong <[EMAIL PROTECTED]> wrote:
>>
>> the reason i using the tree is my menu will be cover a lot of reports ( i
>> m
>> develop the report module). So if using the tree style, the interface
>> will
>> be look more nicer and structure. Plus the dynamic feel to the user :p
>> (more
>> attractive). is that the wicket - tree is hard to maintain? Actually i
>> had
>> build the tree, sub tree and report name. All i listed in array and then
>> called up the array to execute became a tree.
>>
>> Anyway, i found that the wicket example did not show the use of the node
>> link. Any place can help ? As i went through this forum but still cant
>> get
>> any idea to solve it .. :( how ar??
>>
>>
>>
>> Eelco Hillenius wrote:
>> >
>> >> sorry for understood.. i m not just play around. i wish to build a new
>> >> module for my current project. And i wish to manage all the menus in a
>> >> tree
>> >> style outlook. So, can i get some guide frou u , Eelco ..
>> >
>> > If you are looking for menus, why not use something like this:
>> > http://developer.yahoo.com/yui/menu/? That will be much easier to set
>> > up than bending the Tree component into something it is not meant for.
>> >
>> > Eelco
>> >
>> >
>> -
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11426246
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11459276
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Click a tree node link to load a local file

2007-07-05 Thread kenixwong

Hi,

is there anybody have the idea how to load a local file once click on the
tree node link. Below is the part of the ResourceLink . 

ResourceLink exportAsPdf = new ResourceLink("exportAsPdf", new Resource(){

@Override
public IResourceStream getResourceStream() {
try {
exportAsPdf(newPath);

String currentFile = 
System.getProperty("user.dir");
return new 
UrlResourceStream(new URL("file:///" + currentFile+
"/Reports/workstationsMaster_created_by_userid_" + 

getUser().getUserId()+".pdf"));

} catch (Exception e) {
e.printStackTrace();
error(e.getMessage());
}   

return null;
}   
});


And right now i wish to change into tree node link. can anybody give me a
guide ?

thanks a lot
-- 
View this message in context: 
http://www.nabble.com/Click-a-tree-node-link-to-load-a-local-file-tf4033801.html#a11459189
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-05 Thread kenixwong

ok... maybe i m new to wicket. Some of the example i cant really get what it
means. Anyway, for temporary, i had solved my problem (think is not so
practical :p) . hard code for the node link..


protected void onNodeLinkClicked(AjaxRequestTarget ajaxRequestTarget,
TreeNode node)
  {
  treeNode = (DefaultMutableTreeNode)node;
  String treeNodeIndex = tree.getNodeComponent(node).getId();
  System.out.println(" treeNodeIndex = "+treeNodeIndex);
  if(buildTreeList.size()>0){  
  // tree- root
  if(tree.getNodeComponent(node).getId().equals("0")){
  ReportsPortalPage page = new ReportsPortalPage();
  setResponsePage(page);
  }
  // request module
  else if( tree.getNodeComponent(node).getId().equals("1")){
  RequestReportsPortalPage page = new RequestReportsPortalPage();
setResponsePage(page);
  }
  //hardware module
  else if( tree.getNodeComponent(node).getId().equals("5")){
  HardwareReportsPortalPage page = new HardwareReportsPortalPage();
setResponsePage(page);
  }  
  //software module
  else if( tree.getNodeComponent(node).getId().equals("9")){
  SoftwareReportsPortalPage page = new SoftwareReportsPortalPage();
setResponsePage(page);
  }
 
  //admin module
  else if( tree.getNodeComponent(node).getId().equals("13")){
  AdminReportsPortalPage page = new AdminReportsPortalPage();
setResponsePage(page);
  }
 
 
  }
 }

At the moment, it works. But in future , i will study and amend it. Thanks
for everybody :)


Here, i got another question... is there any place to enlarge the tree
border size ? Caused by some of the node link name is long (eg: Workstation
Network Card Details Report (PDF) ) , when the tree was expand, i cant see
the whole name ... As i looked for the wicket example, it was automatic..
but when i implemented it, it is not ? 

thanks   


Matej Knopp-2 wrote:
> 
> I believe, that what you want, is not to set response page, but rather
> to switch panel components. At least that sounds much more reasonable
> to me.
> 
> -Matej
> 
> On 7/4/07, kenixwong <[EMAIL PROTECTED]> wrote:
>>
>> the reason i using the tree is my menu will be cover a lot of reports ( i
>> m
>> develop the report module). So if using the tree style, the interface
>> will
>> be look more nicer and structure. Plus the dynamic feel to the user :p
>> (more
>> attractive). is that the wicket - tree is hard to maintain? Actually i
>> had
>> build the tree, sub tree and report name. All i listed in array and then
>> called up the array to execute became a tree.
>>
>> Anyway, i found that the wicket example did not show the use of the node
>> link. Any place can help ? As i went through this forum but still cant
>> get
>> any idea to solve it .. :( how ar??
>>
>>
>>
>> Eelco Hillenius wrote:
>> >
>> >> sorry for understood.. i m not just play around. i wish to build a new
>> >> module for my current project. And i wish to manage all the menus in a
>> >> tree
>> >> style outlook. So, can i get some guide frou u , Eelco ..
>> >
>> > If you are looking for menus, why not use something like this:
>> > http://developer.yahoo.com/yui/menu/? That will be much easier to set
>> > up than bending the Tree component into something it is not meant for.
>> >
>> > Eelco
>> >
>> >
>> -
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11426246
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/

Re: [Wicket-user] Tree - override onNodeLinkClicked(...)?

2007-07-05 Thread kenixwong

ok... maybe i m new to wicket. Some of the example i cant really get what it
means. Anyway, for temporary, i had solved my problem (think is not so
practical :p) . hard code for the node link..


protected void onNodeLinkClicked(AjaxRequestTarget ajaxRequestTarget,
TreeNode node)
{
treeNode = (DefaultMutableTreeNode)node;
String treeNodeIndex = 
tree.getNodeComponent(node).getId();
 System.out.println(" treeNodeIndex = "+treeNodeIndex);
if(buildTreeList.size()>0){ 
// tree- root

if(tree.getNodeComponent(node).getId().equals("0")){
ReportsPortalPage page = new 
ReportsPortalPage();
setResponsePage(page);
}
// request module
else if( 
tree.getNodeComponent(node).getId().equals("1")){
RequestReportsPortalPage page = new
RequestReportsPortalPage();
setResponsePage(page);
}
//hardware module
else if( 
tree.getNodeComponent(node).getId().equals("5")){
HardwareReportsPortalPage page = new
HardwareReportsPortalPage();
setResponsePage(page);
}   
//software module
else if( 
tree.getNodeComponent(node).getId().equals("9")){
SoftwareReportsPortalPage page = new
SoftwareReportsPortalPage();
setResponsePage(page);
}

//admin module 
else if( 
tree.getNodeComponent(node).getId().equals("13")){
AdminReportsPortalPage page = new 
AdminReportsPortalPage();
setResponsePage(page);
}


}
 }

At the moment, it works. But in future , i will study and amend it. Thanks
for everybody :)


Here, i got another question... is there any place to enlarge the tree
border size ? Caused by some of the node link name is long (eg: Workstation
Network Card Details Report (PDF) ) , when the tree was expand, i cant see
the whole name ...

thanks  


Matej Knopp-2 wrote:
> 
> I believe, that what you want, is not to set response page, but rather
> to switch panel components. At least that sounds much more reasonable
> to me.
> 
> -Matej
> 
> On 7/4/07, kenixwong <[EMAIL PROTECTED]> wrote:
>>
>> the reason i using the tree is my menu will be cover a lot of reports ( i
>> m
>> develop the report module). So if using the tree style, the interface
>> will
>> be look more nicer and structure. Plus the dynamic feel to the user :p
>> (more
>> attractive). is that the wicket - tree is hard to maintain? Actually i
>> had
>> build the tree, sub tree and report name. All i listed in array and then
>> called up the array to execute became a tree.
>>
>> Anyway, i found that the wicket example did not show the use of the node
>> link. Any place can help ? As i went through this forum but still cant
>> get
>> any idea to solve it .. :( how ar??
>>
>>
>>
>> Eelco Hillenius wrote:
>> >
>> >> sorry for understood.. i m not just play around. i wish to build a new
>> >> module for my current project. And i wish to manage all the menus in a
>> >> tree
>> >> style outlook. So, can i get some guide frou u , Eelco ..
>> >
>> > If you are looking for menus, why not use something like this:
>> > http://developer.yahoo.com/yui/menu/? That will be much easier to set
>> > up than bending the Tree component into something it is not meant for.
>> >
>> > Eelco
>> >
>> >
>> -
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Tree---override-onNodeLinkClicked%28...%29--tf4010264.html#a11426246
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -

[Wicket-user] Extra "/" when using nice URLs

2007-07-05 Thread David Leangen

Is there a reason why I am getting an extra "/" when using nice URLs?

For example, when I mount a page as ("/search", SearchPage.class), if I
use that as my Home page, no problems.

However, any time I navigate to that page via a Wicket link, the URL
gets rendered as:

  http://www.blah.com/app//search

I'm wondering if this is somehow my doing, or a "feature" of Wicket...


Cheers,
Dave




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax Problem with form submit

2007-07-05 Thread Timo Rantalaiho
On Fri, 06 Jul 2007, Conglun Yao wrote:
> 'Object expected' in html code happens when
> 
> I first submit a form (no matther it is submitted from ajax button or
> normal button),
> 
> then click the page link ( there are ajax components in this page)
> 
> finally I click the ajax component,   error happens.

Please show us the code and the error (stack trace if any,
and the full error message).

- Timo

-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Ajax Problem with PageNavigator

2007-07-05 Thread Conglun Yao

Of course  Here is part of the code

The hiercarchy is
webpage
    border
-  (WebMarkupContainer)  RMAsContainer  rmaList
- PageableListView rmaView ,   AjaxPagingNavigator



public class RMARecords extends WebPage {
private static final long serialVersionUID = 1L;

private Request rmaRequest = new Request();

private RequestDetail requestDetail;

private RMAsContainer rmaList;

private PageableListView rmaView;

private WebMarkupContainer dContainer;

public RMARecords(final PageParameters pps) {
 Border border = new RMABorder("rmaBorder");
 add(border);

 rmaList = new RMAsContainer("showRequests");
 border.add(rmaList);

 rmaList.add(new AjaxPagingNavigator("navigator", rmaView) {
  @Override
  protected void onAjaxEvent(AjaxRequestTarget target) {
   target.addComponent(rmaList);
  }
 });

 dContainer = new WebMarkupContainer("DContainer");
 dContainer.setOutputMarkupId(true);

 requestDetail = new RequestDetail("requestDetail");
 requestDetail.setVisible(false);

 dContainer.add(requestDetail);

 border.add(dContainer);

}





class RMAsContainer extends WebMarkupContainer {

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

  setOutputMarkupId(true);

  IModel itemList = new LoadableDetachableModel() {
   protected Object load() {
String email = SecurityContextHolder.getContext()
  .getAuthentication().getName();
return ((RMAApplication) getApplication()).getRMAService()
  .getRMAs(email);
   }
  };

  add(rmaView = new PageableListView("request", itemList, 10) {
   protected void populateItem(ListItem item) {
// display the text of the item
Request req = (Request) item.getModelObject();
String time = req.getDate().toString().substring(0, 19);
AjaxLink idLink = new IDLink("idLink", req.getId());
idLink.add(new Label("id", req.getId().toString()));
item.add(idLink);
item.add(new Label("time", time));
item.add(new Label("reference", req.getLine_reference()));
item.add(new Label("status", req.getStatus()));
item.add(new Label("note", req.getNote()));

   }
  });

 }

 class IDLink extends AjaxLink {
  Long reqid;

  public IDLink(String id, Long reqid) {
   super(id);
   this.setOutputMarkupId(true);
   this.reqid = reqid;
  }

  @Override
  public void onClick(AjaxRequestTarget target) {
   if (reqid != null) {
setRmaRequest(((RMAApplication) getApplication())
  .getRMAService().getRequestByID(reqid));
   }
   requestDetail.setVisible(true);
   target.addComponent(dContainer);

  }

 }

}
}


On 7/6/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


> I'm using wicket 1.2.6.
>
> JS error 'Object expected' in html code happens when
>
>  I first submit a form (no matther it is submitted from ajax button or
> normal button),
>
>  then click the page link ( there are AjaxPagingNavigator in this page)
>
> finally I click the ajax component,   error happens.
>
>
> Further more, after more testings, I found errors also happened when I
> click AjaxPagingNavigator  twice or three times, then click page
link  to
> view page which contains ajax components.

Could you show us some of your code?

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

package rmapage;

import java.util.ArrayList;
import java.util.List;

import org.acegisecurity.context.SecurityContextHolder;

import rmahib.model.Address;
import rmahib.model.Customer;
import rmahib.model.Request;

import wicket.PageParameters;
import wicket.ajax.AjaxRequestTarget;
import wicket.ajax.markup.html.AjaxLink;
import wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator;
import wicket.markup.html.WebMarkupContainer;
import wicket.markup.html.WebPage;
import wicket.markup.html.basic.Label;
import wicket.markup.html.border.Border;
import wicket.markup.html.list.ListItem;
import wicket.markup.html.list.ListView;
import wicket.markup.html.list.PageableListView;
import wicket.model.IModel;
import wicket.model.LoadableDetachableModel;
import wicket.model.PropertyModel;

public class RMARecords extends WebPage {
private static final long serialVersionUID = 1L;

private Request rmaRequest = new Request();

private boolean detailVisable = false;

private RequestDetail requestDetail;

private RMAsContainer rmaList;

private PageableListView rmaView;

private WebMarkupContainer dContainer;

public RMARecords(final PageParameters pps) {
Border border = new RMABorder("rmaBorder");
add(border);

rmaList = new RMAsContainer("showRequests");
  

Re: [Wicket-user] Ajax Problem with PageNavigator

2007-07-05 Thread Eelco Hillenius
> I'm using wicket 1.2.6.
>
> JS error 'Object expected' in html code happens when
>
>  I first submit a form (no matther it is submitted from ajax button or
> normal button),
>
>  then click the page link ( there are AjaxPagingNavigator in this page)
>
> finally I click the ajax component,   error happens.
>
>
> Further more, after more testings, I found errors also happened when I
> click AjaxPagingNavigator  twice or three times, then click page link  to
> view page which contains ajax components.

Could you show us some of your code?

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] link ajax and panel

2007-07-05 Thread Ed _

sorry  didn't quiet get it.here is my scenario - 3 panels P1 contains - P2 and 
P3  (P1 , P2 and P3 are all different kinds of panels)P3 has a iframeP2 has a 
link - which onclick - needs to change the contents of P3 (either by changing 
the src attribute of the iframe (old style (if i may say that) ajax - or as you 
are pointing out completely swapping out the P3.thx,edDate: Thu, 5 Jul 2007 
17:01:44 -0700From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [Wicket-user] 
link ajax and panelOn 7/5/07, Ed _ <[EMAIL PROTECTED]> wrote:





Will that work across panels ? the panel making the request itself does not 
have the entity to be updated. I ask cause all the examples have both entities 
in a given page.yes it is possible, just a matter of adding the right panel to 
the ajaxrequesttarget. a pattern i use a lot is to forward event handling of 
encapsulated componenets to the outside component.
so if you have a reusable panel that has a link you want to handle i would do 
something like this:abstract class mypanel extends panel {  public mypanel(...) 
{add(new ajaxlink("delete") { onclick(ajaxrequesttarget t) { 
mypanel.this.ondelete(t); }  }  protected abstract void 
ondelete(ajaxrequesttarget t);}what ends up happening is that usually mypanel 
and the panel you wish to update are on the same level so referencing is easy:
final panel updated=new panel(...);add(updated);add(new mypanel(...) { 
ondelete(ajaxrequesttarget t) { t.addComponent(updated); }}-igor 
thx,edDate: Thu, 5 Jul 2007 14:25:20 -0700From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]: Re: [Wicket-user] link ajax and panel
On 7/5/07, Ed _ <[EMAIL PROTECTED]> wrote:






I am trying to update a panel on a rendered page on click of a link.The panel 
is essentially an iframe How would I try and do this without refreshing the 
entire page. Are there any Ajax calls for this.

AjaxLink ?-igor thanks,ed
Local listings, incredible imagery, and driving directions - all in one place! 
Find it!


-This 
SF.net email is sponsored by DB2 ExpressDownload DB2 Express C - the FREE 
version of DB2 express and takecontrol of your XML. No limits. Just data. Click 
to get it now.
http://sourceforge.net/powerbar/db2/___Wicket-user
 mailing list
Wicket-user@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wicket-user
Don't get caught with egg on your face.
Play Chicktionary! 
-This 
SF.net email is sponsored by DB2 ExpressDownload DB2 Express C - the FREE 
version of DB2 express and takecontrol of your XML. No limits. Just data. Click 
to get it now.
http://sourceforge.net/powerbar/db2/___Wicket-user
 mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

_
Don't get caught with egg on your face. Play Chicktionary!  
http://club.live.com/chicktionary.aspx?icid=chick_wlmailtextlink-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ajax Problem with PageNavigator

2007-07-05 Thread Conglun Yao

Dear all,

I have met such a headache problem, when trying to use wicket's ajax in my
project.

I'm using wicket 1.2.6.

JS error 'Object expected' in html code happens when

I first submit a form (no matther it is submitted from ajax button or
normal button),

then click the page link ( there are AjaxPagingNavigator in this page)

finally I click the ajax component,   error happens.


Further more, after more testings, I found errors also happened when I
click AjaxPagingNavigator  twice or three times, then click page link  to
view page which contains ajax components.


Thanks for any help.


Regards,

conglun
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Ajax Problem with form submit

2007-07-05 Thread Conglun Yao

Dear all,

I have met such a headache problem, when trying to use wicket's ajax in my
project.

I'm using wicket 1.2.6.

'Object expected' in html code happens when

I first submit a form (no matther it is submitted from ajax button or
normal button),

then click the page link ( there are ajax components in this page)

finally I click the ajax component,   error happens.

Thanks for any help.


Regards,

conglun
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Can I get a 'Nice URL' when form validation fails?

2007-07-05 Thread Igor Vaynberg

On 7/5/07, Philip Wilkinson <[EMAIL PROTECTED]> wrote:


It would be nice if I could configure wicket to use cookies (like the
servlet container) when enabled on the client to store the information it
currently encodes in url (?wicket:interface=:0:::)



i dont think you fully understand the impact of this change. a servlet
container only needs to set a cookie once per session - and its value doesnt
change. wicket would have to do this every request and set it to different
values. that means you can never have a regular link in your html - it would
_always_ have to be a link with a javascript handler that sets the cookie.
that is a big ugly drain.

if you are really set on having that behavior, then like i said, use
stateless pages and forms. if that doesnt work then of course you can plugin
your own url coding strategy - but for what you want i would not imagine it
would be a trivial thing to write.

-igor






Anyway thanks again for everyones input.

Philip Wilkinson.


igor.vaynberg wrote:
>
> On 7/4/07, Philip Wilkinson <[EMAIL PROTECTED]> wrote:
>>
>>
>> Thanks for that Dave.
>> It does make sense.
>> But I know the values are stored in the session pagemap, so I'd like to
>> be
>> able to get them from there. I was hoping that a combination of a
>> bookmarked
>> url, and maybe cookie or hidden field, managed by wicket, would be
enough
>> for wicket not to stray from my 'nice' bookmarked url, and not to
expose
>> wickets inner workings via a url.
>
>
> the cookie idea mightve worked, but it would mean that we would have to
> rewrite every link to set the cookie, so essentially wicket will not
work
> without javascript. :|
>
> -igor
>
>
>
>
> Cheers.
>>
>>
>> David Leangen-8 wrote:
>> >
>> >
>> > Philip,
>> >
>> > You need to also include all your form values in the PageParamters,
and
>> > parse those values in your page, filling each of the fields with
those
>> > values.
>> >
>> > Does that make sense?
>> >
>> >
>> > So, your url would be something like:
>> >
>> >   /myPage?field1=blah&checkbox1=true&...
>> >
>> >
>> > Cheers,
>> > Dave
>> >
>> >
>> >
>> > On Tue, 2007-07-03 at 13:48 -0700, Philip Wilkinson wrote:
>> >> Hi,
>> >>
>> >> When my form validation fails, the page is redisplayed with the
>> default
>> >> url
>> >> with all its wicket:interface stuff.
>> >> I'd rather this didn't happen as I've bookmarked the page, and would
>> >> prefer
>> >> to have the bookmarked url redisplayed. (the bookmarked url was
>> initially
>> >> displayed for the page)
>> >>
>> >> I've tried overriding Form.onError() { setResponsePage(
>> WelcomePage.class,
>> >> new PageParameters()); }
>> >> and that got me my nice bookmarked url, but lost all my form field
>> >> values.
>> >> Obviously creating a new page instance.
>> >>
>> >> I've also tried Form.onError() { setResponsePage(WelcomePage.this);
}
>> >>
>> >> Is it possible with wicket to only have the bookmarkable urls
visible,
>> >> without exposing the wicket internals in the url?
>> >>
>> >> Thanks in advance
>> >> Philip Wilkinson.
>> >>
>> >
>> >
>> >
>>
-
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/Can-I-get-a-%27Nice-URL%27-when-form-validation-fails--tf4020865.html#a11429922
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>>
-
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
>
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context:
http://www.nabble.com/Can-I-get-a-%27Nice-URL%27-when-form-validation-fails--tf4020865.html#a11455607
Sent from the Wicket - User mailing list archive at Nabble.com.


-

Re: [Wicket-user] link ajax and panel

2007-07-05 Thread Igor Vaynberg

On 7/5/07, Ed _ <[EMAIL PROTECTED]> wrote:


 Will that work across panels ? the panel making the request itself does
not have the entity to be updated. I ask cause all the examples have both
entities in a given page.



yes it is possible, just a matter of adding the right panel to the
ajaxrequesttarget. a pattern i use a lot is to forward event handling of
encapsulated componenets to the outside component.

so if you have a reusable panel that has a link you want to handle i would
do something like this:

abstract class mypanel extends panel {
 public mypanel(...) {
   add(new ajaxlink("delete") { onclick(ajaxrequesttarget t) {
mypanel.this.ondelete(t); }
 }
 protected abstract void ondelete(ajaxrequesttarget t);
}

what ends up happening is that usually mypanel and the panel you wish to
update are on the same level so referencing is easy:

final panel updated=new panel(...);
add(updated);
add(new mypanel(...) { ondelete(ajaxrequesttarget t) { t.addComponent(updated);
}}


-igor



thx,


ed

--
Date: Thu, 5 Jul 2007 14:25:20 -0700
From: [EMAIL PROTECTED]
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] link ajax and panel

On 7/5/07, *Ed _* <[EMAIL PROTECTED]> wrote:

 I am trying to update a panel on a rendered page on click of a link.

The panel is essentially an iframe

How would I try and do this without refreshing the entire page. Are there
any Ajax calls for this.


AjaxLink ?

-igor



thanks,

ed

--
Local listings, incredible imagery, and driving directions - all in one
place! Find it! 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



--
Don't get caught with egg on your face.Play Chicktionary! 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Retrieving resourceKey in FeedbackPanel

2007-07-05 Thread Igor Vaynberg

its not possible for all messages i believe, the system is just not designed
that way. for validation errors i believe you do have access to the
ValidationError object  that contains the untranslated key.

-igor

On 7/5/07, Murat Yücel <[EMAIL PROTECTED]> wrote:


Hi,

Is is possible to retrieve the resourceKey somehow within the
FeedbackPanel. I am currently using the latest 1.3.0 incubator version.
It seems like it is only possible to get the translated message, but i
need the resourceKey for updating i18n text messages through
the GUI.

Kind regards

/Murat Yücel

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Can I get a 'Nice URL' when form validation fails?

2007-07-05 Thread Philip Wilkinson

Thanks for all the answers everybody.
So the short answer is no, you cant get a 'Nice URL' when the form
validation fails.

I'd just like to mention that the servlet container uses cookies to store
the session id, or if cookies disabled on the client, then it rewrites the
url so you end up with something like
;jsessionid=3A7B12AACDD0D61915DC968AA9935269 in your url. So in that case,
your nice url is shot anyway. I think thats fine, because you have the
option of enabling cookies to get nice urls, or not enabling cookies and
getting ;jsessionid.

It would be nice if I could configure wicket to use cookies (like the
servlet container) when enabled on the client to store the information it
currently encodes in url (?wicket:interface=:0:::)

Anyway thanks again for everyones input.
Philip Wilkinson.


igor.vaynberg wrote:
> 
> On 7/4/07, Philip Wilkinson <[EMAIL PROTECTED]> wrote:
>>
>>
>> Thanks for that Dave.
>> It does make sense.
>> But I know the values are stored in the session pagemap, so I'd like to
>> be
>> able to get them from there. I was hoping that a combination of a
>> bookmarked
>> url, and maybe cookie or hidden field, managed by wicket, would be enough
>> for wicket not to stray from my 'nice' bookmarked url, and not to expose
>> wickets inner workings via a url.
> 
> 
> the cookie idea mightve worked, but it would mean that we would have to
> rewrite every link to set the cookie, so essentially wicket will not work
> without javascript. :|
> 
> -igor
> 
> 
> 
> 
> Cheers.
>>
>>
>> David Leangen-8 wrote:
>> >
>> >
>> > Philip,
>> >
>> > You need to also include all your form values in the PageParamters, and
>> > parse those values in your page, filling each of the fields with those
>> > values.
>> >
>> > Does that make sense?
>> >
>> >
>> > So, your url would be something like:
>> >
>> >   /myPage?field1=blah&checkbox1=true&...
>> >
>> >
>> > Cheers,
>> > Dave
>> >
>> >
>> >
>> > On Tue, 2007-07-03 at 13:48 -0700, Philip Wilkinson wrote:
>> >> Hi,
>> >>
>> >> When my form validation fails, the page is redisplayed with the
>> default
>> >> url
>> >> with all its wicket:interface stuff.
>> >> I'd rather this didn't happen as I've bookmarked the page, and would
>> >> prefer
>> >> to have the bookmarked url redisplayed. (the bookmarked url was
>> initially
>> >> displayed for the page)
>> >>
>> >> I've tried overriding Form.onError() { setResponsePage(
>> WelcomePage.class,
>> >> new PageParameters()); }
>> >> and that got me my nice bookmarked url, but lost all my form field
>> >> values.
>> >> Obviously creating a new page instance.
>> >>
>> >> I've also tried Form.onError() { setResponsePage(WelcomePage.this); }
>> >>
>> >> Is it possible with wicket to only have the bookmarkable urls visible,
>> >> without exposing the wicket internals in the url?
>> >>
>> >> Thanks in advance
>> >> Philip Wilkinson.
>> >>
>> >
>> >
>> >
>> -
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Can-I-get-a-%27Nice-URL%27-when-form-validation-fails--tf4020865.html#a11429922
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-I-get-a-%27Nice-URL%27-when-form-validation-fails--tf4020865.html#a11455607
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just d

Re: [Wicket-user] link ajax and panel

2007-07-05 Thread Thies Edeling
I posted a little about it some time ago, updating other panels on the 
same page: http://blog.ehour.nl/index.php/archives/18

Ed _ wrote:
> Will that work across panels ? the panel making the request itself 
> does not have the entity to be updated. I ask cause all the examples 
> have both entities in a given page.
>
> thx,
>
> ed
>
> 
> Date: Thu, 5 Jul 2007 14:25:20 -0700
> From: [EMAIL PROTECTED]
> To: wicket-user@lists.sourceforge.net
> Subject: Re: [Wicket-user] link ajax and panel
>
> On 7/5/07, *Ed _* <[EMAIL PROTECTED]
> > wrote:
>
> I am trying to update a panel on a rendered page on click of a
> link.
>
> The panel is essentially an iframe
>
> How would I try and do this without refreshing the entire
> page. Are there any Ajax calls for this.
>
>
> AjaxLink ?
>
> -igor
>
>  
>
> thanks,
>
> ed
>
> 
> 
> Local listings, incredible imagery, and driving directions -
> all in one place! Find it!
> 
>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
> 
> Don't get caught with egg on your face.Play Chicktionary!  
> 
> 
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Retrieving resourceKey in FeedbackPanel

2007-07-05 Thread Murat Yücel

Hi,

Is is possible to retrieve the resourceKey somehow within the FeedbackPanel.
I am currently using the latest 1.3.0 incubator version.
It seems like it is only possible to get the translated message, but i need
the resourceKey for updating i18n text messages through
the GUI.

Kind regards

/Murat Yücel
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] link ajax and panel

2007-07-05 Thread Ed _

I am trying to update a panel on a rendered page on click of a link.The panel 
is essentially an iframe How would I try and do this without refreshing the 
entire page. Are there any Ajax calls for this.thanks,ed
_
Local listings, incredible imagery, and driving directions - all in one place! 
Find it!
http://maps.live.com/?wip=69&FORM=MGAC01-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] link ajax and panel

2007-07-05 Thread Ed _

Will that work across panels ? the panel making the request itself does not 
have the entity to be updated. I ask cause all the examples have both entities 
in a given page.thx,edDate: Thu, 5 Jul 2007 14:25:20 -0700From: [EMAIL 
PROTECTED]: [EMAIL PROTECTED]: Re: [Wicket-user] link ajax and panelOn 7/5/07, 
Ed _ <[EMAIL PROTECTED]> wrote:





I am trying to update a panel on a rendered page on click of a link.The panel 
is essentially an iframe How would I try and do this without refreshing the 
entire page. Are there any Ajax calls for this.
AjaxLink ?-igor thanks,ed
Local listings, incredible imagery, and driving directions - all in one place! 
Find it!

-This 
SF.net email is sponsored by DB2 ExpressDownload DB2 Express C - the FREE 
version of DB2 express and takecontrol of your XML. No limits. Just data. Click 
to get it now.
http://sourceforge.net/powerbar/db2/___Wicket-user
 mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

_
Don't get caught with egg on your face. Play Chicktionary!  
http://club.live.com/chicktionary.aspx?icid=chick_wlmailtextlink-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] link ajax and panel

2007-07-05 Thread Igor Vaynberg

On 7/5/07, Ed _ <[EMAIL PROTECTED]> wrote:


 I am trying to update a panel on a rendered page on click of a link.

The panel is essentially an iframe

How would I try and do this without refreshing the entire page. Are there
any Ajax calls for this.



AjaxLink ?

-igor



thanks,


ed

--
Local listings, incredible imagery, and driving directions - all in one
place! Find it! 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Update default image with form

2007-07-05 Thread maru

Just started out yesterday with wicket and have a question. I have a form
with some fields, at first there is a default image shown, a user can upload
an image and I want the default image to be replaced with this image. This
is what I tried: 

in the form: 

image_shown = new Image("show_image", getImageResource());
image_shown.setModel(new PropertyModel(search, "picture")); 
add(image_shown); 

getImageResource looks something like: 


public ResourceReference getImageResource()
{
return new ResourceReference(Aclass.class, "show_image")
{
public Resource newResource()
{

final BufferedDynamicImageResource resource = 
new
BufferedDynamicImageResource("jpg");



ByteArrayInputStream biss = null;
BufferedImage bim = null;


try {
biss = new ByteArrayInputStream
(search.getPicture(),0,search.getPicture().length);
JPEGImageDecoder dec = 
JPEGCodec.createJPEGDecoder(biss);
bim = dec.decodeAsBufferedImage();
} catch (java.io.IOException hh) {

bim = new BufferedImage(100, 100, 
BufferedImage.TYPE_INT_RGB);
drawCircle((Graphics2D)bim.getGraphics());

} catch (com.sun.image.codec.jpeg.ImageFormatException 
ff) {

bim = new BufferedImage(100, 100, 
BufferedImage.TYPE_INT_RGB);

drawCircle((Graphics2D)bim.getGraphics());


} catch (java.lang.NullPointerException ff) {


bim = new BufferedImage(100, 100, 
BufferedImage.TYPE_INT_RGB);

drawCircle((Graphics2D)bim.getGraphics());

}


resource.setImage(bim);
return resource;
}
};
}
.

So, if search.getPicture() does not return a byte[] (that is a jpg), a
default image will be drawn. This works. 
In the form I also have: 

Button uploadPicture = new Button("uploadPicture"){
protected void onSubmit() {
FileUpload upload = fileUploadField1.getFileUpload();
String mime = "";
if (upload != null)
{
byte[] stuff = upload.getBytes();
mime = upload.getContentType();
image_shown.modelChanging();
search.setPicture(stuff);
image_shown.modelChanged();
...

So, we upload the image, set the search-object picture to the uploaded data
and update the model for the image_shown. Problem is, the image is not
updated on the screen. What have I missed? How do I update an Image? Thanks
for any help, I´m new to this framework. 

Maru


-- 
View this message in context: 
http://www.nabble.com/Update-default-image-with-form-tf4032123.html#a11454094
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Extending WebApplication in related projects problem

2007-07-05 Thread Igor Vaynberg

On 7/5/07, Daniel Stoch <[EMAIL PROTECTED]> wrote:


On 7/5/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> On 7/5/07, Daniel Stoch <[EMAIL PROTECTED]> wrote:
> >
> > If I want to use wicket-spring and wicket-swarm, there is a problem:
> > from which class should I extend my application class:
> > SpringWebApplication or SwarmWebApplication?
>
> you no longer need to extend SpringWebApplication if you want to use
> annotations, see the spring wiki page.

I know that, but it was only an example of such problems :).
And as far as I know, I can use annotations only inside components,
not in every single object. So sometimes call to
...getSpringContext().getBean("beanName") may be helpfull.



you can use: InjectorHolder.getInjector().inject(this); to inject any object
with @SpringBean annots.

or checkout  http://code.google.com/p/salve/ - a small project i just
started, its in early stages but already works pretty well with spring

-igor
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Extending WebApplication in related projects problem

2007-07-05 Thread Daniel Stoch
On 7/5/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> On 7/5/07, Daniel Stoch <[EMAIL PROTECTED]> wrote:
> >
> > If I want to use wicket-spring and wicket-swarm, there is a problem:
> > from which class should I extend my application class:
> > SpringWebApplication or SwarmWebApplication?
>
> you no longer need to extend SpringWebApplication if you want to use
> annotations, see the spring wiki page.

I know that, but it was only an example of such problems :).
And as far as I know, I can use annotations only inside components,
not in every single object. So sometimes call to
...getSpringContext().getBean("beanName") may be helpfull.

>
> > So I think it is not a good "pattern" to implement such things by
> > extending an application and a session base classes, because this
> > closes the door for integration different projects into one
> > application.
>
> we are aware of this. there has been some talk of designing a module system,
> but right now we are too busy fixing 1.3, maybe in 1.4

Ok, good to know that. Thanks for your answer.

--
Daniel

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] non-wicket relative link pre-pending question

2007-07-05 Thread Igor Vaynberg

On 7/5/07, Joshua Lim <[EMAIL PROTECTED]> wrote:


Hi

I am hitting a problem with my static links being pre-pended with "../".
This is happening to my "" and ".  So  where I have  becomes  when I have a
validation error on this page. and it happens only upon the 2nd time of
validation error

This only happens on the server running apache and tomcat, and does not
happen on my development environment.

Can anyone help me on this?



wicket assumes that any paths in raw markup are context-relative, so it will
prepend them with enough ../ to make them context-relative

for example if you have a panel that has
 and then that panel is itself inside a mounted
page that is mounted to /mountedpath2, the link will break because in
reality it will be
/mountedpath2/mountedpath1, the ../ will be prepended and will erase any
path you are currently on.

wicket will ignore any path that starts with "/".

hope this helps some

-igor






Thanks

Joshua


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket mailing list rules with regards to jobs

2007-07-05 Thread Scott Swank
Here at www.vegas.com (you guessed it, in Las Vegas) we are actively
hiring Java developers, with all of our UI development in Wicket.

Cheers,
Scott


-- 
Scott Swank
reformed mathematician

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Annotation Support

2007-07-05 Thread Igor Vaynberg

On 7/5/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:


> cant we have something
>
> @Mount(path="/myurl/")
> public class MyPage extends WebPage ...
>
> and the Wicket Runtime autowires this

Who/what would be looking for this annotation during application
initialization?  Can you elaborate?



we can have an xml file where you define all your pages. then wicket can use
that to scan them all and see if they have any annotations :)

more seriously, we can file browse .class files, load them, and check if
they have those annots, but that is pretty heavy.

the problem with such decentralized configuration is that you may have
collisions. once you start breaking up your app into jars or introducing
other jars all of a sudden you will have mounts that you dont want/collide.
for example if wicket-auth comes with a login page that @Mounts itself on
/login, and you want to mount your own, how do you override?

-igor
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Can I get a 'Nice URL' when form validation fails?

2007-07-05 Thread Igor Vaynberg

On 7/5/07, Joshua Lim <[EMAIL PROTECTED]> wrote:



> Thanks for the explanation igor, I would like to use google analytics on
all our pages, hence I need to have all the pages mounted with niceurls...
or at least something like " http://server/app/niceurl/?wicket."; would
be ok

However, when a validation fails, my page becomes
http://server/app/?wicket::... and instead of something like
http://server/app/niceurl/?wicket::...

am I doing something wrong?



no, you are not. as of right now wicket will  not keep a  mount in the path.
we have talked about doing that for a while, but just havent found the time.
please add an rfe for 1.4 and we will look into it.

-igor


Joshua


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Extending WebApplication in related projects problem

2007-07-05 Thread Igor Vaynberg

On 7/5/07, Daniel Stoch <[EMAIL PROTECTED]> wrote:



If I want to use wicket-spring and wicket-swarm, there is a problem:
from which class should I extend my application class:
SpringWebApplication or SwarmWebApplication?



you no longer need to extend SpringWebApplication if you want to use
annotations, see the spring wiki page.

So I think it is not a good "pattern" to implement such things by

extending an application and a session base classes, because this
closes the door for integration different projects into one
application.



we are aware of this. there has been some talk of designing a module system,
but right now we are too busy fixing 1.3, maybe in 1.4

-igor


--

Daniel


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] non-wicket relative link pre-pending question

2007-07-05 Thread Joshua Lim

Hi

I am hitting a problem with my static links being pre-pended with "../".
This is happening to my "" and ".  So  where I have  becomes  when I have a
validation error on this page. and it happens only upon the 2nd time of
validation error

This only happens on the server running apache and tomcat, and does not
happen on my development environment.

Can anyone help me on this?

Thanks
Joshua
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FormTester and type conversion

2007-07-05 Thread mperham

Turns out this bug was due to me not using a typed TextField (i.e. passing
int.class to the constructor).  I think wicket could probably handle this
case a little more gracefully but it's partially user error.


Jean-Baptiste Quenot-3 wrote:
> 
> * mperham:
>> 
>> I've got an input field which accepts positive integers.  I'm trying to
>> test
>> the validation logic on my page but receiving the following error.  Am I
>> misunderstanding how validation and type conversion work?  In general I'm
>> having trouble with any fields that accept non-String input (Numbers,
>> Dates,
>> etc).
>> 
>> Caused by: java.lang.ClassCastException: java.lang.String
>> at
>> wicket.markup.html.form.validation.NumberValidator.validate(NumberValidator.java:205)
>> at
>> wicket.markup.html.form.FormComponent.validateValidators(FormComponent.java:1155)
>> 
>> We are using 1.2.5.
> 
> Can you try and reproduce this with Wicket 1.3.0-beta2?  I'm
> pretty sure this bug is no more.
> 

-- 
View this message in context: 
http://www.nabble.com/FormTester-and-type-conversion-tf4014850.html#a11447735
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Annotation Support

2007-07-05 Thread Jean-Baptiste Quenot
* Ayodeji Aladejebi:
> Well, even though the no XML configuration stuff is great, i still think
> Wicket can still be even sweeter if there can be more friendly annotation
> support for some very common config tasks
> 
> i still really do have issues with Mounting Nice URLs, the code seem much
> as WebPages grows although i know about Package mounting but,
> 
> cant we have something
> 
> @Mount(path="/myurl/")
> public class MyPage extends WebPage ...
> 
> and the Wicket Runtime autowires this

Who/what would be looking for this annotation during application
initialization?  Can you elaborate?
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] 401 HTTP authentication?

2007-07-05 Thread Jean-Baptiste Quenot
* Johan Compagner:
> you can use a Page that you also display and then in the configureResponse()
> you can set the right status
> like the AccessDeniedPage does:
> 
>protected void configureResponse()
>{
>super.configureResponse();
> 
> getWebRequestCycle().getWebResponse().getHttpServletResponse().setStatus(
> HttpServletResponse.SC_FORBIDDEN);
>}
> 
> 
> or if you don't want a page but only set the status you can do:
> 
> RequestCycle.get().setRequestTarget(new IRequestTarget()
> {
>  respond()
> {
>   getWebRequestCycle().getWebResponse().getHttpServletResponse().setStatus(
> HttpServletResponse.SC_FORBIDDEN);
> }
> });

Or you set the response code and setRequestTarget(new EmptyRequestTarget())
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] FormTester and type conversion

2007-07-05 Thread Jean-Baptiste Quenot
* mperham:
> 
> I've got an input field which accepts positive integers.  I'm trying to test
> the validation logic on my page but receiving the following error.  Am I
> misunderstanding how validation and type conversion work?  In general I'm
> having trouble with any fields that accept non-String input (Numbers, Dates,
> etc).
> 
> Caused by: java.lang.ClassCastException: java.lang.String
> at
> wicket.markup.html.form.validation.NumberValidator.validate(NumberValidator.java:205)
> at
> wicket.markup.html.form.FormComponent.validateValidators(FormComponent.java:1155)
> 
> We are using 1.2.5.

Can you try and reproduce this with Wicket 1.3.0-beta2?  I'm
pretty sure this bug is no more.
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Can I get a 'Nice URL' when form validation fails?

2007-07-05 Thread Joshua Lim



lets say validation fails - that means your form.onsubmit() is never
called. what wicket does is redirect to a url that will render the current
page again back to the user (it doesnt have to redirect, but it does by
default - see redirect-after-post pattern for details). this url also cannot
be "pretty" because it points to a specific instance of a page in session -
this is the url you will see when validation fails.




Thanks for the explanation igor, I would like to use google analytics on all
our pages, hence I need to have all the pages mounted with niceurls... or at
least something like "http://server/app/niceurl/?wicket."; would be
ok

However, when a validation fails, my page becomes
http://server/app/?wicket::... and instead of something like
http://server/app/niceurl/?wicket::...

am I doing something wrong?
Joshua
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket Annotation Support

2007-07-05 Thread Ayodeji Aladejebi

Well, even though the no XML configuration stuff is great, i still think
Wicket can still be even sweeter if there can be more friendly annotation
support for some very common config tasks

i still really do have issues with Mounting Nice URLs, the code seem much
as WebPages grows although i know about Package mounting but,

cant we have something

@Mount(path="/myurl/")
public class MyPage extends WebPage ...

and the Wicket Runtime autowires this


Just some thoughts...no "give me this feature now" attitude intended

regards
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Image questions

2007-07-05 Thread Gohan

The html tag error was just a typo, sorry for that. 

I figured out the what the problem was eventually. I had enabled resource
filtering in Maven (cut and paste error) which messed up the images. So
everything works fine now.

Thanks



igor.vaynberg wrote:
> 
> On 7/4/07, Gohan <[EMAIL PROTECTED]> wrote:
>>
>>
>> I'm using wicket 1.2.6 and I'd like to display simple gif images.
>>
>> I have the following code in my constructor for WelcomePage:
>> add(new Image("toplogo", new ResourceReference(WelcomePage.class,
>> "toplogo.gif")));
>>
>> The html looks like:
>> ..
>>  
> 
> 
> ? shouldnt that be   and then  ?
> 
> ..
>>
>> The toplogo.gif is located in the same directory as the WelcomePage.
>> When I load the application the page the images is distorted, it's like
>> somebody has "smeared" the image.
> 
> 
> not sure, never seen that happen. try setting width/height on the img tag
> -
> longshot, but hay :)
> 
> 
> The second question is how I should go about to load an image that is
>> located in a resource folder (i.e. src/main/resources). If I just go with
>> add(new Image("toplogo", new ResourceReference(toplogo.gif"))), the
>> images
>> is resolved to
>> http://localhost:8080/app/resources/wicket.Application/toplogo.gif, but I
>> want the image to be loaded from the resource root directory.
> 
> 
> files in src/main/resources get copied directly into classes dir - that
> means for all intents and purposes they are in the default package. you
> need
> to have a class in the default package you can use as a scope.
> 
> -igor
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Image-questions-tf4024374.html#a11444557
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Extending WebApplication in related projects problem

2007-07-05 Thread Daniel Stoch
Hi,

There is a problem with using different Wicket related projects in one
application, because in many cases each project defines its own
implementation of WebApplication class (and sometimes WebSession too).
For example:
- wicket-spring: SpringWebApplication
- wicket-auth-roles: AuthenticatedWebApplication
- wicket-swarm: SwarmWebApplication
etc...

If I want to use wicket-spring and wicket-swarm, there is a problem:
from which class should I extend my application class:
SpringWebApplication or SwarmWebApplication?

So I think it is not a good "pattern" to implement such things by
extending an application and a session base classes, because this
closes the door for integration different projects into one
application.

--
Daniel

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] London Wicket Event - Tuesday, 7th August, 2007

2007-07-05 Thread Al Maw
jweekend wrote:
> The first London Wicket Users Group went well; it was informative,
> interesting and entertaining.
> Our generous hosts at Arclight Media took really good care of us and Matt
> Dudbridge rounded the evening off with a nice presentation about the
> impressive  http://zoomf.com zoomf.com . 

Zoomf is coming on in leaps and bounds. ;-)
Very nice work from all your guys, Matt.

> Alastair Maw's depth of knowledge was quite remarkable (and presumably still
> is). During his presentation he effortlessly demonstrated what he was
> telling us about by coding it in real time whilst also answering all sorts
> of questions comprehensively and with great clarity.

Steady on. ;-)

> So, perhaps we should do it again ... only this time, Al has offered to help
> attendees with their Wicket apps if they want to bring their laptops along!

For more details on the format and requirements for this event, please 
see http://londonwicket.org which I've just updated.


Best regards,

Al
-- 
Alastair Maw
Wicket-biased blog at http://herebebeasties.com

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strange content serialized

2007-07-05 Thread dx74a19

Great!
Thank u very much!


Martijn Dashorst wrote:
> 
> If you run in DEVELOPMENT mode, we try to give you meaningful messages
> when you fail to put a component definition in your html file. This is
> done by creating a stack trace at the moment of component creation and
> addition. This gives you line precise error messages in this case:
> 
> java:
> 
> public MyPage() {
> add(new Label("foo", "Hello, World"));
> }
> 
> html:
> 
> 
> Foo
>  
> (note the missing wicket:id in the html file)
> 
> You can turn this off by selecting either: DEPLOYMENT mode in your
> web.xml, or by disabling the component use check in your
> application#init() method (default on for DEVELOPMENT and default off
> for DEPLOYMENT)
> 
> Martijn
> 
> On 7/5/07, dx74a19 <[EMAIL PROTECTED]> wrote:
>>
>> Hi, I have a question about session files. (second level cache store)
>> I was courious, why some of theese file are so big (100k +) so I opened
>> one.
>> I saw full of partial stack traces - like this:
>>
>> The ajaxsubmitbutton with id 'updateButton' that failed to render was
>> added
>>  at
>> com.panteon.wicket.markup.html.data.CRUDForm$Toolbar.(CRUDForm.java:290)
>>  at
>> com.panteon.wicket.markup.html.data.CRUDForm.newToolbarPanel(CRUDForm.java:25)
>>  at
>> com.panteon.wicket.markup.html.data.DataForm.(DataForm.java:23)
>>  at
>> com.panteon.wicket.markup.html.data.RecordForm.(RecordForm.java:17)
>>  at
>> com.panteon.wicket.markup.html.data.CRUDForm.(CRUDForm.java:10)
>>  at
>> com.panteon.wicket.markup.html.data.CRUDForm.(CRUDForm.java:17)
>>  at
>> com.panteon.em1.panel.client.ClientForm.(ClientForm.java:10)
>>  at
>> com.panteon.em1.panel.client.ClientDetail.(ClientDetail.java:15)
>>
>>
>> All the files are full of this, hundreds of kb, probably for every
>> component
>> on my pages. It says: failed to render. (???)
>> Yet, the application works perfectly fine, the console is quiet, the logs
>> are ok... Why / What is this?
>>
>> Thx
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Strange-content-serialized-tf4028146.html#a11442083
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> 
> -- 
> Wicket joins the Apache Software Foundation as Apache Wicket
> Apache Wicket 1.3.0-beta2 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Strange-content-serialized-tf4028146.html#a11442535
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] DatePicker broken on beta2 and snapshot?

2007-07-05 Thread Gerolf Seitz

thx, eelco
i really enjoy my wicket ride ;)

On 7/5/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


On 7/4/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> eelco,
> speaking of wicket-datetime.
> is it possible to change the default implementation of
> notifyComponentOnDateSelected to return true?
> when telling other people (happend twice up to now) about how to use the
> datepicker, i always felt the urge to tell them to override this method
if
> they wanted onchange notification.
> still i think this is actually what would be expected to be the default
> behavior (the onchange notification), since the value of the associated
> component does change.

Yeah, makes sense, especially because it doesn't typically do any harm.

> what do you think?

Committed the change.

> anyway, sorry if this issue demands more time than it actually might
> deserve, due to not enough thinking in the first place...

Not at all. It can take many iterations before it's perfect, and I'm
glad people are thinking with us. :)

Cheers,

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Strange content serialized

2007-07-05 Thread Martijn Dashorst
If you run in DEVELOPMENT mode, we try to give you meaningful messages
when you fail to put a component definition in your html file. This is
done by creating a stack trace at the moment of component creation and
addition. This gives you line precise error messages in this case:

java:

public MyPage() {
add(new Label("foo", "Hello, World"));
}

html:


Foo
 wrote:
>
> Hi, I have a question about session files. (second level cache store)
> I was courious, why some of theese file are so big (100k +) so I opened one.
> I saw full of partial stack traces - like this:
>
> The ajaxsubmitbutton with id 'updateButton' that failed to render was added
>  at
> com.panteon.wicket.markup.html.data.CRUDForm$Toolbar.(CRUDForm.java:290)
>  at
> com.panteon.wicket.markup.html.data.CRUDForm.newToolbarPanel(CRUDForm.java:25)
>  at
> com.panteon.wicket.markup.html.data.DataForm.(DataForm.java:23)
>  at
> com.panteon.wicket.markup.html.data.RecordForm.(RecordForm.java:17)
>  at
> com.panteon.wicket.markup.html.data.CRUDForm.(CRUDForm.java:10)
>  at
> com.panteon.wicket.markup.html.data.CRUDForm.(CRUDForm.java:17)
>  at com.panteon.em1.panel.client.ClientForm.(ClientForm.java:10)
>  at
> com.panteon.em1.panel.client.ClientDetail.(ClientDetail.java:15)
>
>
> All the files are full of this, hundreds of kb, probably for every component
> on my pages. It says: failed to render. (???)
> Yet, the application works perfectly fine, the console is quiet, the logs
> are ok... Why / What is this?
>
> Thx
>
> --
> View this message in context: 
> http://www.nabble.com/Strange-content-serialized-tf4028146.html#a11442083
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Apache Wicket 1.3.0-beta2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Strange content serialized

2007-07-05 Thread dx74a19

Hi, I have a question about session files. (second level cache store)
I was courious, why some of theese file are so big (100k +) so I opened one.
I saw full of partial stack traces - like this:

The ajaxsubmitbutton with id 'updateButton' that failed to render was added
 at
com.panteon.wicket.markup.html.data.CRUDForm$Toolbar.(CRUDForm.java:290)
 at
com.panteon.wicket.markup.html.data.CRUDForm.newToolbarPanel(CRUDForm.java:25)
 at
com.panteon.wicket.markup.html.data.DataForm.(DataForm.java:23)
 at
com.panteon.wicket.markup.html.data.RecordForm.(RecordForm.java:17)
 at
com.panteon.wicket.markup.html.data.CRUDForm.(CRUDForm.java:10)
 at
com.panteon.wicket.markup.html.data.CRUDForm.(CRUDForm.java:17)
 at com.panteon.em1.panel.client.ClientForm.(ClientForm.java:10)
 at
com.panteon.em1.panel.client.ClientDetail.(ClientDetail.java:15)


All the files are full of this, hundreds of kb, probably for every component
on my pages. It says: failed to render. (???) 
Yet, the application works perfectly fine, the console is quiet, the logs
are ok... Why / What is this?

Thx

-- 
View this message in context: 
http://www.nabble.com/Strange-content-serialized-tf4028146.html#a11442083
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user