Re: ListView + AjaxEditableLabel + move down and move up

2007-08-03 Thread Gerolf Seitz
if the last suggestion is too costly (rendering the whole listview), you
could just change the order of the backing list without redrawing it and add
some javascript to the requesttarget (target.appendjavascript) which does
the dom manipulation...

On 8/4/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
>
> maybe this is something for you:
> at
> http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListView
>
> what you could also do is the following:
> + add two ajaxbuttons "up" and "down" (or images)
> + change the position of the row-data in the backing list in the onSubmit
> method of the ajaxbuttons
> + add the parent container of the listview to the ajaxrequesttarget
>
> i haven't tried the approach myself, but maybe it's something to get you
> started.
>
> hth,
>   gerolf
>
> On 8/4/07, anita nichols <[EMAIL PROTECTED]> wrote:
> >
> > I have a list view (to do list sample) with AjaxEditableLabel.
> > But I also would like to be able to move the items on the list up or
> > down.
> > Is that possible?
> >
> > Thanks
> >
>
>


Re: How to append an # anchor to an href?

2007-08-03 Thread Eelco Hillenius
On 8/1/07, Jesse Barnum <[EMAIL PROTECTED]> wrote:
> That is definitely on the right track - overriding appendAnchor does
> successfully add the #myAnchor suffix to the Link URL. However, I am
> realizing that clicking on the link is doing an immediate redirect to
> another page.
>
> Here is the URL from page1, with the #ScreenCapture link successfully
> added:
>
> http://localhost:8080/ScriptMaster/sm?
> wicket:interface=wicket-1:1:up::ILinkListener#ScreenCapture
>
> Clicking on it takes me to that URL, but does an immediate redirect
> to this URL:
>
> http://localhost:8080/ScriptMaster/sm?wicket:interface=wicket-1:2::
>
> This discards the named anchor. Is this normal behavior? What can I
> do about this?

Hmmm, good point. You could try RequestCycle.get().setRedirect(false),
but if that would work it would be merely a hack. I guess you could
add a feature request for this... atm I don't have a good idea how to
get around this. Looks like we should append any anchor that came in
to the redirect again.

Eelco

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



Re: ListView + AjaxEditableLabel + move down and move up

2007-08-03 Thread Gerolf Seitz
maybe this is something for you:
at
http://wicketstuff.org/confluence/display/STUFFWIKI/Script.aculo.us+SortableListView

what you could also do is the following:
+ add two ajaxbuttons "up" and "down" (or images)
+ change the position of the row-data in the backing list in the onSubmit
method of the ajaxbuttons
+ add the parent container of the listview to the ajaxrequesttarget

i haven't tried the approach myself, but maybe it's something to get you
started.

hth,
  gerolf

On 8/4/07, anita nichols <[EMAIL PROTECTED]> wrote:
>
> I have a list view (to do list sample) with AjaxEditableLabel.
> But I also would like to be able to move the items on the list up or down.
> Is that possible?
>
> Thanks
>


ListView + AjaxEditableLabel + move down and move up

2007-08-03 Thread anita nichols
I have a list view (to do list sample) with AjaxEditableLabel.
But I also would like to be able to move the items on the list up or down.
Is that possible?

Thanks


Re: Is this even possible...?

2007-08-03 Thread Nathan Hamblen

James Crosthwaite wrote:

Basically i have a list of objects, currently displayed in a
PageableListView, that i want the user to be able to edit.


Oh and I should probably add that the example I pointed you to maps the 
ListView to a list contained in an object by a compound property model, 
but you probably want to use a query to get that list so it would be new 
PropertyListView("compenent-id", new HibernateListModel("from 
MyObject")) {...}


AND if you want the changes to commit on submit and you don't have a 
containing DataForm that is bound to an entity (as in this scenario I'd 
guess), you can extend DataFormBase instead and let its onSubmit handler 
do the txn commit. Let me know by email if you need a Databinder forums 
account.


Nathan


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



Re: wicket-event.js returning unreadable

2007-08-03 Thread Matej Knopp
Well, oracle app server doesn't have a good reputation exactly for
messing the output. Try disabling the compression of wicket resources
completely,

Application.getResourceSettings.setDisableGZipCompression(true).

-Matej

On 8/3/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> Seems like Oracle application server, version 10.1, 32 bits?
>
> Apparently the classloader for the app server converts the
> getClass().getResourceAsStream("wicket-event.js")
> to use a "code-source:" protocol. I'm not sure, but it sounds like a
> security constraint in your setup.
>
> Martijn
>
> On 8/3/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> > I doubt this is related. What app server are you using? What exactly
> > does it mean junk? Wha headers are set on ouput? What browser are you
> > using?
> >
> > -Matej
> >
> > On 8/3/07, hillj2 <[EMAIL PROTECTED]> wrote:
> > >
> > > I'm still having trouble getting wicket-event.js to return anything but 
> > > junk.
> > > Even though I thought it might have something to do with compression, I
> > > doubt that now, because I have my homegrown compression filter turned off.
> > > Does anyone know what this error means:
> > >
> > > DEBUG 2007-08-03 15:42:34,452 resource.UrlResourceStream (:92)  -
> > > cannot convert url:
> > > code-source:/C:/oc4j10132/j2ee/home/applications/mcir/wicket-1.3.0-beta2.jar!/org/apache/wicket/markup/html/wicket-event.js
> > > to file (URI scheme is not "file"), falling back to the inputstream for
> > > polling
> > >
> > > I'm hoping it will give me some clue as to what is going on, but maybe 
> > > it's
> > > just another by-product of the problem.  Any suggestions were be great.
> > > Thanks.
> > >
> > > Joel
> > >
> > > --
> > > View this message in context: 
> > > http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a11989377
> > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > >
> > >
> > > -
> > > 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]
> >
> >
>
>
> --
> 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/
>
> -
> 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: Is this even possible...?

2007-08-03 Thread Nathan Hamblen

James Crosthwaite wrote:

I'm relatively new to Wicket and i have a query about creating an editable
list. My query is simply, is it even possible?


Impossible is nothing!


Basically i have a list of objects, currently displayed in a
PageableListView, that i want the user to be able to edit. They should be
able to edit any of the rows and then click a button to save all changes
that they may have made to each row.

I've tried using DataBinder which didn't help


The recipe book example has repeating form elements in a list view. It's 
not pageable, but that shouldn't be a problem. I've been improving that 
example lately so I'll point you to the trunk version:

http://databinder.net/wsvn/Databinder/examples/trunk/recipe/src/main/java/example/panels/EditRecipe.java?op=file

If some of the code comments seem wrong it because I haven't updated 
them yet. Also this is the version that's running live because the old 
one was a little exception-happy.

http://databinder.net/recipe/

Hope that helps.

Nathan


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



Re: wicket-event.js returning unreadable

2007-08-03 Thread Martijn Dashorst
Seems like Oracle application server, version 10.1, 32 bits?

Apparently the classloader for the app server converts the
getClass().getResourceAsStream("wicket-event.js")
to use a "code-source:" protocol. I'm not sure, but it sounds like a
security constraint in your setup.

Martijn

On 8/3/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
> I doubt this is related. What app server are you using? What exactly
> does it mean junk? Wha headers are set on ouput? What browser are you
> using?
>
> -Matej
>
> On 8/3/07, hillj2 <[EMAIL PROTECTED]> wrote:
> >
> > I'm still having trouble getting wicket-event.js to return anything but 
> > junk.
> > Even though I thought it might have something to do with compression, I
> > doubt that now, because I have my homegrown compression filter turned off.
> > Does anyone know what this error means:
> >
> > DEBUG 2007-08-03 15:42:34,452 resource.UrlResourceStream (:92)  -
> > cannot convert url:
> > code-source:/C:/oc4j10132/j2ee/home/applications/mcir/wicket-1.3.0-beta2.jar!/org/apache/wicket/markup/html/wicket-event.js
> > to file (URI scheme is not "file"), falling back to the inputstream for
> > polling
> >
> > I'm hoping it will give me some clue as to what is going on, but maybe it's
> > just another by-product of the problem.  Any suggestions were be great.
> > Thanks.
> >
> > Joel
> >
> > --
> > View this message in context: 
> > http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a11989377
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > 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]
>
>


-- 
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/

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



Re: wicket-event.js returning unreadable

2007-08-03 Thread Matej Knopp
I doubt this is related. What app server are you using? What exactly
does it mean junk? Wha headers are set on ouput? What browser are you
using?

-Matej

On 8/3/07, hillj2 <[EMAIL PROTECTED]> wrote:
>
> I'm still having trouble getting wicket-event.js to return anything but junk.
> Even though I thought it might have something to do with compression, I
> doubt that now, because I have my homegrown compression filter turned off.
> Does anyone know what this error means:
>
> DEBUG 2007-08-03 15:42:34,452 resource.UrlResourceStream (:92)  -
> cannot convert url:
> code-source:/C:/oc4j10132/j2ee/home/applications/mcir/wicket-1.3.0-beta2.jar!/org/apache/wicket/markup/html/wicket-event.js
> to file (URI scheme is not "file"), falling back to the inputstream for
> polling
>
> I'm hoping it will give me some clue as to what is going on, but maybe it's
> just another by-product of the problem.  Any suggestions were be great.
> Thanks.
>
> Joel
>
> --
> View this message in context: 
> http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a11989377
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> 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: wicket-event.js returning unreadable

2007-08-03 Thread hillj2

I'm still having trouble getting wicket-event.js to return anything but junk. 
Even though I thought it might have something to do with compression, I
doubt that now, because I have my homegrown compression filter turned off. 
Does anyone know what this error means:

DEBUG 2007-08-03 15:42:34,452 resource.UrlResourceStream (:92)  -
cannot convert url:
code-source:/C:/oc4j10132/j2ee/home/applications/mcir/wicket-1.3.0-beta2.jar!/org/apache/wicket/markup/html/wicket-event.js
to file (URI scheme is not "file"), falling back to the inputstream for
polling

I'm hoping it will give me some clue as to what is going on, but maybe it's
just another by-product of the problem.  Any suggestions were be great. 
Thanks.

Joel

-- 
View this message in context: 
http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a11989377
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Link on one frame modifying component on another

2007-08-03 Thread Matej Knopp
Actually, you are overcomplicated things a bit i guess.
For the top frame, you don't need wicket at all, you just put there
regular link with javascript in onclick handler. That will invoke
parent.nav.clickNextLink(), which will in turn invoke the onclick
handler of wicket component (this is just a slight indirection so that
the top layer doesn't have to know exact id of the wicket link). And
the onclick handler will update the tree and content frame.

-Matej

On 8/3/07, Watter <[EMAIL PROTECTED]> wrote:
>
>
> Matej Knopp-2 wrote:
> >
> > Hi, i think it should be possible to accomplish.
> >
> > Put the next/previous links to the page with the tree. Hide them (e.g.
> > putting inside 
> >
> > Then on the top page in your prev/next links (in the javascript
> > handler) you need to find the corresponding link element in the tree
> > frame and call it's onclick handler.
> >
> > -Matej
> >
> Ha! That's clever! :)
>
> Just to be sure I understand. You are suggesting I modify the links in my
> header frame to not actually do anything except call hidden next and
> previous links in the navigation frame. Is that right?
>
> So that would seem to require javascript in those header next/previous
> links. As I'm sure you can tell, I'm still pretty new when it comes to
> Wicket. What would be the appropriate way to add that javascript? I've read
> hear and there that typically that kind of thing is added via Behaviors. Is
> that right? Or is it preferable to do something like:
>
> add(new AjaxLink("nextLink") {
>  public void onClick(final AjaxRequestTarget target) {
>  target.appendJavascript("parent.nav.clickNextLink()");
>  }
> });
>
> Matt
> --
> View this message in context: 
> http://www.nabble.com/Link-on-one-frame-modifying-component-on-another-tf4213856.html#a11989365
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> 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: Link on one frame modifying component on another

2007-08-03 Thread Watter


Matej Knopp-2 wrote:
> 
> Hi, i think it should be possible to accomplish.
> 
> Put the next/previous links to the page with the tree. Hide them (e.g.
> putting inside 
> 
> Then on the top page in your prev/next links (in the javascript
> handler) you need to find the corresponding link element in the tree
> frame and call it's onclick handler.
> 
> -Matej
> 
Ha! That's clever! :)

Just to be sure I understand. You are suggesting I modify the links in my
header frame to not actually do anything except call hidden next and
previous links in the navigation frame. Is that right?

So that would seem to require javascript in those header next/previous
links. As I'm sure you can tell, I'm still pretty new when it comes to
Wicket. What would be the appropriate way to add that javascript? I've read
hear and there that typically that kind of thing is added via Behaviors. Is
that right? Or is it preferable to do something like:

add(new AjaxLink("nextLink") {
 public void onClick(final AjaxRequestTarget target) {
 target.appendJavascript("parent.nav.clickNextLink()");
 }
}); 

Matt
-- 
View this message in context: 
http://www.nabble.com/Link-on-one-frame-modifying-component-on-another-tf4213856.html#a11989365
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Dynamically adding tree nodes upon selection

2007-08-03 Thread Matej Knopp
The lazy loading should be part of your TreeModel implementation. Also
make sure the TreeModel fires proper events on the listeners.

-Matej

On 8/3/07, James McLaughlin <[EMAIL PROTECTED]> wrote:
> Hi Doug,
> First I would make sure your TreeNode implementation creates children
> lazily. You probably should only create children when children() is
> actually called and provide logic for isLeaf and getChildCount() that
> don't require creating the children.
>
> You can create the initial state for the tree by overrriding
> newTreeState(). I usually do something like this:
>
>  protected ITreeState newTreeState()
> {
>
> ITreeState state = new DefaultTreeState();
> state.collapseAll();
> TreeModel treeModel = (TreeModel) getModelObject();
> OutLineNode root = (OutLineNode) treeModel.getRoot();
> if(null != childNodeExpansionStrategy) {
> childNodeExpansionStrategy.expandNode(root, state);
> } else {
> if (log.isInfoEnabled()) {
> log.info("childNodeExpansionStrategy is NULL.
> expanding root only");
> }
> state.expandNode(root);
> }
> return state;
> }
>
> where childNodeExpansionStrategy holds the logic to determine the
> level to expand to, and recurses through the nodes to get there,
> calling state.expandNode(node) until it does.
>
> best,
> jim
>
> On 8/3/07, Doug Leeper <[EMAIL PROTECTED]> wrote:
> >
> > I would like to dynamically add tree nodes to an AbstractTree instead of
> > loading the entire tree up front.  Not sure how do this.  I thought I would
> > be able to override nodeExpanded(TreeNode) and check if the node had been
> > "loaded" ...if not then load 1 level deep.  However, all ITreeStateListeners
> > are final in AbstractTree.
> >
> > Is there a way to do this without creating my own version of AbstractTree?
> > Better yet...is there an example of this...it could mimic the file structure
> > of your computer.
> >
> > Thanks
> > - Doug
> > --
> > View this message in context: 
> > http://www.nabble.com/Dynamically-adding-tree-nodes-upon-selection-tf4212940.html#a11984616
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > 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]
>
>

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



Re: Link on one frame modifying component on another

2007-08-03 Thread davor-x

I think you need to refresh the frameset page.
The link that updates framed windows should have the target attr set:
target="_top". Handle the onClick in wicket and use setResponsePage(your
frameset page). The in the frameset page, setup the src attributes for your
frames.

There is also a wicket example somewhere about links, frames, tragets..
Bye


Watter wrote:
> 
> I'm not a fan of frames, but in this particular situation, I don't have a
> lot of control over the the content that's displayed in one of the frames
> so I need to keep it separate from the rest of the application.
> 
> I have three frames. A header frame that stretches all the way across the
> top, a navigation frame below the header on the left, and a content frame
> below the header on the right. The header and navigation frames contain
> standard wicket driven pages and the content frame will usually hold
> external HTML content.
> 
> The navigation frame contains a Tree component. The Header contains links
> for  'Next' and 'Previous'. A user can navigate either by clicking one of
> the items in the tree or by clicking Next or  Previous in the header. 
> 
> I've got the actual navigation working. When someone clicks Next,
> Previous, or a tree item, the content frame goes to the right place. 
> However, I can't seem to figure out a way to update the Tree's visual
> indication of which node is selected when I click Next or Previous in the
> Header. I thought that perhaps some javascript magic might take place if I
> passed my navigation page (called 'nav' int he code below) to the header
> frame,  and then did something like:
> 
> add(new AjaxLink("nextLink") {
> 
>   public void onClick(final AjaxRequestTarget target) {
>   target.addComponent(nav.getLearningItemTree());
>   nav.getLearningItemTree().getTreeState().selectNode(nextNode, 
> true);
>   }
> });
> 
> Well, this does actually update the backed of the Tree component, but the
> actual visual representation of the tree in the navigation frame doesn't
> get updated. Of course, if I put the same Next link actually ON the
> navigation frame page, then it works as expected. 
> 
> So, it seems like this should be possible, somehow. The link on the
> navigation page is simply a javascript call. I should be able to make that
> same call from the header frame by means of a "parent.nav.x", but I
> can't figure out what that x should be. Or maybe there's a call that
> will simply refresh that tree component, or parts of it. 
> 
> Any ideas?
> 
> Matt 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Link-on-one-frame-modifying-component-on-another-tf4213856.html#a11988055
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Link on one frame modifying component on another

2007-08-03 Thread Matej Knopp
I believe what he needs is must finer grained update then refreshing
all pages. Fortunately, since the pages originate from same site, it
is possible to do using little bit of javascript.

-Matej

On 8/3/07, davor-x <[EMAIL PROTECTED]> wrote:
>
> I think you need to refresh the frameset page.
> The link that updates framed windows should have the target attr set:
> target="_top". Handle the onClick in wicket and use setResponsePage(your
> frameset page). The in the frameset page, setup the src attributes for your
> frames.
>
> There is also a wicket example somewhere about links, frames, tragets..
> Bye
>
>
> Watter wrote:
> >
> > I'm not a fan of frames, but in this particular situation, I don't have a
> > lot of control over the the content that's displayed in one of the frames
> > so I need to keep it separate from the rest of the application.
> >
> > I have three frames. A header frame that stretches all the way across the
> > top, a navigation frame below the header on the left, and a content frame
> > below the header on the right. The header and navigation frames contain
> > standard wicket driven pages and the content frame will usually hold
> > external HTML content.
> >
> > The navigation frame contains a Tree component. The Header contains links
> > for  'Next' and 'Previous'. A user can navigate either by clicking one of
> > the items in the tree or by clicking Next or  Previous in the header.
> >
> > I've got the actual navigation working. When someone clicks Next,
> > Previous, or a tree item, the content frame goes to the right place.
> > However, I can't seem to figure out a way to update the Tree's visual
> > indication of which node is selected when I click Next or Previous in the
> > Header. I thought that perhaps some javascript magic might take place if I
> > passed my navigation page (called 'nav' int he code below) to the header
> > frame,  and then did something like:
> >
> > add(new AjaxLink("nextLink") {
> >
> >   public void onClick(final AjaxRequestTarget target) {
> >   target.addComponent(nav.getLearningItemTree());
> >   nav.getLearningItemTree().getTreeState().selectNode(nextNode, 
> > true);
> >   }
> > });
> >
> > Well, this does actually update the backed of the Tree component, but the
> > actual visual representation of the tree in the navigation frame doesn't
> > get updated. Of course, if I put the same Next link actually ON the
> > navigation frame page, then it works as expected.
> >
> > So, it seems like this should be possible, somehow. The link on the
> > navigation page is simply a javascript call. I should be able to make that
> > same call from the header frame by means of a "parent.nav.x", but I
> > can't figure out what that x should be. Or maybe there's a call that
> > will simply refresh that tree component, or parts of it.
> >
> > Any ideas?
> >
> > Matt
> >
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Link-on-one-frame-modifying-component-on-another-tf4213856.html#a11988055
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> 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: Link on one frame modifying component on another

2007-08-03 Thread Matej Knopp
Hi, i think it should be possible to accomplish.

Put the next/previous links to the page with the tree. Hide them (e.g.
putting inside 

Then on the top page in your prev/next links (in the javascript
handler) you need to find the corresponding link element in the tree
frame and call it's onclick handler.

-Matej

On 8/3/07, Watter <[EMAIL PROTECTED]> wrote:
>
> I'm not a fan of frames, but in this particular situation, I don't have a lot
> of control over the the content that's displayed in one of the frames so I
> need to keep it separate from the rest of the application.
>
> I have three frames. A header frame that stretches all the way across the
> top, a navigation frame below the header on the left, and a content frame
> below the header on the right. The header and navigation frames contain
> standard wicket driven pages and the content frame will usually hold
> external HTML content.
>
> The navigation frame contains a Tree component. The Header contains links
> for  'Next' and 'Previous'. A user can navigate either by clicking one of
> the items in the tree or by clicking Next or  Previous in the header.
>
> I've got the actual navigation working. When someone clicks Next, Previous,
> or a tree item, the content frame goes to the right place.  However, I can't
> seem to figure out a way to update the Tree's visual indication of which
> node is selected when I click Next or Previous in the Header. I thought that
> perhaps some javascript magic might take place if I passed my navigation
> page (called 'nav' int he code below) to the header frame,  and then did
> something like:
>
> add(new AjaxLink("nextLink") {
>
> public void onClick(final AjaxRequestTarget target) {
> target.addComponent(nav.getLearningItemTree());
> nav.getLearningItemTree().getTreeState().selectNode(nextNode, 
> true);
> }
> });
>
> Well, this does actually update the backed of the Tree component, but the
> actual visual representation of the tree in the navigation frame doesn't get
> updated. Of course, if I put the same Next link actually ON the navigation
> frame page, then it works as expected.
>
> So, it seems like this should be possible, somehow. The link on the
> navigation page is simply a javascript call. I should be able to make that
> same call from the header frame by means of a "parent.nav.x", but I
> can't figure out what that x should be. Or maybe there's a call that
> will simply refresh that tree component, or parts of it.
>
> Any ideas?
>
> Matt
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/Link-on-one-frame-modifying-component-on-another-tf4213856.html#a11987813
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> 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: Is this even possible...?

2007-08-03 Thread Igor Vaynberg
this is pretty simple, but there are a few things to consider

a) the obvious: create a form and put the pageable listview into it. instead
of adding labels add textfields for each row.

b) call setreuseitems(true) on the pageable listview

c) override links in the navigator with submit links

i think that should be it

-igor


On 8/3/07, James Crosthwaite <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> I'm relatively new to Wicket and i have a query about creating an editable
> list. My query is simply, is it even possible?
>
> Basically i have a list of objects, currently displayed in a
> PageableListView, that i want the user to be able to edit. They should be
> able to edit any of the rows and then click a button to save all changes
> that they may have made to each row.
>
> I've tried using DataBinder which didn't help as i could only edit one
> object at a time, however i cannot now work out how to achieve this or
> even
> if it is possible!
>
> If anyone has any ideas that would get me started i would be most
> grateful!
>
> Many thanks in advance
> --
> View this message in context:
> http://www.nabble.com/Is-this-even-possible...--tf4213555.html#a11986760
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Opening ModalWindows

2007-08-03 Thread Michael Day

I just updated to 1.3 to test.  Same problem persists.

On Aug 3, 2007, at 11:15 AM, Matej Knopp wrote:


This should be already fixed in current 1.3.

-Mate

On 8/3/07, Michael Day <[EMAIL PROTECTED]> wrote:

Users are able to open multiple ModalWindows by clicking a link more
than once.  To prevent this, the mask should be applied in the link's
onclick.  What's the easiest way for me to achieve that?  Ideally,
the entire ModalWindow should open before the server call.  Then the
server call would load the content.  If we could achieve this,
applications using ModalWindows would appear to respond much better.

Michael Day

-
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]





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



Link on one frame modifying component on another

2007-08-03 Thread Watter

I'm not a fan of frames, but in this particular situation, I don't have a lot
of control over the the content that's displayed in one of the frames so I
need to keep it separate from the rest of the application.

I have three frames. A header frame that stretches all the way across the
top, a navigation frame below the header on the left, and a content frame
below the header on the right. The header and navigation frames contain
standard wicket driven pages and the content frame will usually hold
external HTML content.

The navigation frame contains a Tree component. The Header contains links
for  'Next' and 'Previous'. A user can navigate either by clicking one of
the items in the tree or by clicking Next or  Previous in the header. 

I've got the actual navigation working. When someone clicks Next, Previous,
or a tree item, the content frame goes to the right place.  However, I can't
seem to figure out a way to update the Tree's visual indication of which
node is selected when I click Next or Previous in the Header. I thought that
perhaps some javascript magic might take place if I passed my navigation
page (called 'nav' int he code below) to the header frame,  and then did
something like:

add(new AjaxLink("nextLink") {

public void onClick(final AjaxRequestTarget target) {
target.addComponent(nav.getLearningItemTree());
nav.getLearningItemTree().getTreeState().selectNode(nextNode, 
true);
}
});

Well, this does actually update the backed of the Tree component, but the
actual visual representation of the tree in the navigation frame doesn't get
updated. Of course, if I put the same Next link actually ON the navigation
frame page, then it works as expected. 

So, it seems like this should be possible, somehow. The link on the
navigation page is simply a javascript call. I should be able to make that
same call from the header frame by means of a "parent.nav.x", but I
can't figure out what that x should be. Or maybe there's a call that
will simply refresh that tree component, or parts of it. 

Any ideas?

Matt 



-- 
View this message in context: 
http://www.nabble.com/Link-on-one-frame-modifying-component-on-another-tf4213856.html#a11987813
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: DateField with a Calendar

2007-08-03 Thread Gerolf Seitz
a quick workaround, although maybe not a proper solution would be the
following:

... // somewhere in constructor
form.add(new DateField("myId", new PropertyModel(this, "calendarDate")));
...
}

private void setCalendarDate(Date date) {
  myCalendar.setTime(date);
}

private Date getCalendarDate() {
  return myCalendar.getTime();
}


On 8/3/07, Federico Fanton <[EMAIL PROTECTED]> wrote:
>
> Hi everyone!
> I just migrated to 1.3.0-beta2 from 1.2.6, and I'm trying to replace
> DatePicker's with DateField's, but I'm having a problem because the
> "backbean" of the CompoundPropertyModel of the containing form uses a
> Calendar field, not a Date one, so I'm receiving a conversion exception..
> I have a custom Converter in place that would handle the conversion, but
> it doesn't get called, because PropertyResolverConverter calls it only when
> there's a String involved in the conversion, while the DateField would need
> a "Date to Calendar" conversion..
> I thought of subclassing DateField and handling the conversion overriding
> setDate, but the "date" field inside DateField is private.. Any hint on what
> I could try?
> Many thanks for your time!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


DateValidator message data customisation

2007-08-03 Thread Mael Sicsic

Hi,

I have 2 problems with DateValidator' error messages.
I understand how to configure the text message for validation error (eg : 
"xxx must be between {min} and {max}"), but my problems are with the value 
of dates "minimum" and "maximum", that are allways displayed in the EN 
locale style and are too verbose.
For example it displays "must be between Sun Dec 31 18:59:48 CET 1979 and 
...", and I would like to display "must be between 31/12/1979 and ..."


Is it possible to change the format of values in the IValidators messages ?




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



Re: Obfuscating URLs in 1.3 - Can it be done?

2007-08-03 Thread Eelco Hillenius
On 8/3/07, Doug Leeper <[EMAIL PROTECTED]> wrote:
>
> Thanks for the tip...learn something new every day.  BTW...the doc is has
> been updated.

Cheers!

Eelco

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



Is this even possible...?

2007-08-03 Thread James Crosthwaite

Hi all,

I'm relatively new to Wicket and i have a query about creating an editable
list. My query is simply, is it even possible?

Basically i have a list of objects, currently displayed in a
PageableListView, that i want the user to be able to edit. They should be
able to edit any of the rows and then click a button to save all changes
that they may have made to each row.

I've tried using DataBinder which didn't help as i could only edit one
object at a time, however i cannot now work out how to achieve this or even
if it is possible!

If anyone has any ideas that would get me started i would be most grateful!

Many thanks in advance
-- 
View this message in context: 
http://www.nabble.com/Is-this-even-possible...--tf4213555.html#a11986760
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: DateField with a Calendar

2007-08-03 Thread Igor Vaynberg
you cant use the compound property model then, you have to write your own
model that will do the conversion

-igor


On 8/3/07, Federico Fanton <[EMAIL PROTECTED]> wrote:
>
> Hi everyone!
> I just migrated to 1.3.0-beta2 from 1.2.6, and I'm trying to replace
> DatePicker's with DateField's, but I'm having a problem because the
> "backbean" of the CompoundPropertyModel of the containing form uses a
> Calendar field, not a Date one, so I'm receiving a conversion exception..
> I have a custom Converter in place that would handle the conversion, but
> it doesn't get called, because PropertyResolverConverter calls it only when
> there's a String involved in the conversion, while the DateField would need
> a "Date to Calendar" conversion..
> I thought of subclassing DateField and handling the conversion overriding
> setDate, but the "date" field inside DateField is private.. Any hint on what
> I could try?
> Many thanks for your time!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Feedback is not dispayled in ajax submit

2007-08-03 Thread Gohan

That must be it. I'll try it out. Thanks!


Damian Mendez Romera wrote:
> 
> You must override the onError method and add a 
> target.addComponent(feedback) :)
> 
> Gohan wrote:
>> I cannot seem to get the Feedback panel to be displayed on a Form submit. 
>>
>> I have a custom form component that extends Form to which I'm adding an
>> AjaxSubmitButton using:
>> add(new AjaxSubmitButton("submit", this) {
>>  private static final long serialVersionUID = 
>> 4557185412512174512L;
>>  @Override
>>  protected void onSubmit(AjaxRequestTarget target, Form form) {
>>  fromDate = (Date) fromDateField.getConvertedInput();
>>  toDate = (Date) toDateField.getConvertedInput();
>>
>>  target.addComponent(nbrOfAuthenticationsChart);
>>  target.addComponent(feedbackPanel);
>>  }
>>  });
>>
>> The feedback panel is added using (it's located outside the form in
>> another
>> component):
>> add(feedbackPanel = new FeedbackPanel("feedback"));
>> feedbackPanel.setOutputMarkupId(true);
>>
>> I've also added an AjaxFormValidatingBehavior to the form: 
>> AjaxFormValidatingBehavior.addToAllFormComponents(this, "onclick"); 
>> and I'm using a special form validator that extends AbstractFormValidator
>> that I've also added to the custom form.
>>
>> The ajax submission works when I press the submit button but there are no
>> form errors displayed if there are any errors. The problem seem to be
>> that
>> the feedback panel is never displayed and I cannot seem to figure out
>> why.
>> I'm using Wicket 1.2.6. I've looked in the example at
>> http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage
>> but that example doesn't seem to work at all. 
>>
>> Could anyone give me a clue?
>>
>>
>>
>>   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Feedback-is-not-dispayled-in-ajax-submit-tf4213023.html#a11986208
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Obfuscating URLs in 1.3 - Can it be done?

2007-08-03 Thread Doug Leeper

Thanks for the tip...learn something new every day.  BTW...the doc is has
been updated.
-- 
View this message in context: 
http://www.nabble.com/Obfuscating-URLs-in-1.3---Can-it-be-done--tf4208915.html#a11985633
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Feedback is not dispayled in ajax submit

2007-08-03 Thread Damian Mendez Romera
You must override the onError method and add a 
target.addComponent(feedback) :)


Gohan wrote:
I cannot seem to get the Feedback panel to be displayed on a Form submit. 


I have a custom form component that extends Form to which I'm adding an
AjaxSubmitButton using:
add(new AjaxSubmitButton("submit", this) {
private static final long serialVersionUID = 
4557185412512174512L;
@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
fromDate = (Date) fromDateField.getConvertedInput();
toDate = (Date) toDateField.getConvertedInput();

target.addComponent(nbrOfAuthenticationsChart);
target.addComponent(feedbackPanel);
}
 });

The feedback panel is added using (it's located outside the form in another
component):
add(feedbackPanel = new FeedbackPanel("feedback"));
feedbackPanel.setOutputMarkupId(true);

I've also added an AjaxFormValidatingBehavior to the form: 
AjaxFormValidatingBehavior.addToAllFormComponents(this, "onclick"); 
and I'm using a special form validator that extends AbstractFormValidator

that I've also added to the custom form.

The ajax submission works when I press the submit button but there are no
form errors displayed if there are any errors. The problem seem to be that
the feedback panel is never displayed and I cannot seem to figure out why.
I'm using Wicket 1.2.6. I've looked in the example at
http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage
but that example doesn't seem to work at all. 


Could anyone give me a clue?



  



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



Re: Dynamically adding tree nodes upon selection

2007-08-03 Thread James McLaughlin
Hi Doug,
First I would make sure your TreeNode implementation creates children
lazily. You probably should only create children when children() is
actually called and provide logic for isLeaf and getChildCount() that
don't require creating the children.

You can create the initial state for the tree by overrriding
newTreeState(). I usually do something like this:

 protected ITreeState newTreeState()
{

ITreeState state = new DefaultTreeState();
state.collapseAll();
TreeModel treeModel = (TreeModel) getModelObject();
OutLineNode root = (OutLineNode) treeModel.getRoot();
if(null != childNodeExpansionStrategy) {
childNodeExpansionStrategy.expandNode(root, state);
} else {
if (log.isInfoEnabled()) {
log.info("childNodeExpansionStrategy is NULL.
expanding root only");
}
state.expandNode(root);
}
return state;
}

where childNodeExpansionStrategy holds the logic to determine the
level to expand to, and recurses through the nodes to get there,
calling state.expandNode(node) until it does.

best,
jim

On 8/3/07, Doug Leeper <[EMAIL PROTECTED]> wrote:
>
> I would like to dynamically add tree nodes to an AbstractTree instead of
> loading the entire tree up front.  Not sure how do this.  I thought I would
> be able to override nodeExpanded(TreeNode) and check if the node had been
> "loaded" ...if not then load 1 level deep.  However, all ITreeStateListeners
> are final in AbstractTree.
>
> Is there a way to do this without creating my own version of AbstractTree?
> Better yet...is there an example of this...it could mimic the file structure
> of your computer.
>
> Thanks
> - Doug
> --
> View this message in context: 
> http://www.nabble.com/Dynamically-adding-tree-nodes-upon-selection-tf4212940.html#a11984616
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> 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: Feedback is not dispayled in ajax submit

2007-08-03 Thread Martijn Dashorst
and not forget to call feedback.setOutputMarkupId(true)

On 8/3/07, Damian Mendez Romera <[EMAIL PROTECTED]> wrote:
> You must override the onError method and add a
> target.addComponent(feedback) :)
>
> Gohan wrote:
> > I cannot seem to get the Feedback panel to be displayed on a Form submit.
> >
> > I have a custom form component that extends Form to which I'm adding an
> > AjaxSubmitButton using:
> > add(new AjaxSubmitButton("submit", this) {
> >   private static final long serialVersionUID = 
> > 4557185412512174512L;
> >   @Override
> >   protected void onSubmit(AjaxRequestTarget target, Form form) {
> >   fromDate = (Date) fromDateField.getConvertedInput();
> >   toDate = (Date) toDateField.getConvertedInput();
> >
> >   target.addComponent(nbrOfAuthenticationsChart);
> >   target.addComponent(feedbackPanel);
> >   }
> >  });
> >
> > The feedback panel is added using (it's located outside the form in another
> > component):
> > add(feedbackPanel = new FeedbackPanel("feedback"));
> > feedbackPanel.setOutputMarkupId(true);
> >
> > I've also added an AjaxFormValidatingBehavior to the form:
> > AjaxFormValidatingBehavior.addToAllFormComponents(this, "onclick");
> > and I'm using a special form validator that extends AbstractFormValidator
> > that I've also added to the custom form.
> >
> > The ajax submission works when I press the submit button but there are no
> > form errors displayed if there are any errors. The problem seem to be that
> > the feedback panel is never displayed and I cannot seem to figure out why.
> > I'm using Wicket 1.2.6. I've looked in the example at
> > http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage
> > but that example doesn't seem to work at all.
> >
> > Could anyone give me a clue?
> >
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
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/

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



Re: DropDown within ModalWindow does not work in Camino

2007-08-03 Thread Michael Day
Yep, Camino is probably at fault.  I will just use Safari instead,  
but I did want to document the problem just in case a workaround exists.


On Aug 3, 2007, at 11:12 AM, Matej Knopp wrote:


In that case it's quite possible that it is camino's fault. Maybe the
dropdowns just don't work if they are placed on something with
position:absolute/fixed ?

-Matej

On 8/3/07, Michael Day <[EMAIL PROTECTED]> wrote:

I am cross-posting this on the new list.  I also found that Yahoo
Mail has a ModalWindow exhibiting the exact same problem in Camino.

On Aug 2, 2007, at 9:46 AM, Michael Day wrote:


1.2.5 and 1.2.6

On Aug 1, 2007, at 6:58 PM, Matej Knopp wrote:


It's weird, what version of wicket are you testing it with?

-Matej

On 8/2/07, Michael Day <[EMAIL PROTECTED]> wrote:

That one works, but it's a page.  Maybe that's why?  I'm using a
panel.

On Aug 1, 2007, at 6:16 PM, Eelco Hillenius wrote:


Works fine for me. Btw, the modal windows example in
wicket-examples/ajax has a dropdown in it (the AM/PM field of the
first modal window).

Eelco


On 7/31/07, Michael Day <[EMAIL PROTECTED]> wrote:
DropDown within ModalWindow does not work in Camino.  It  
displays,

but nothing happens when I click it to expand.  Has anybody else
experienced this?

 
--

-
--

This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a
browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the  
Apache

Wicket user list. Send a message to: "users-subscribe at
wicket.apache.org" and follow the instructions.
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user



- 
--

-
--
---
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a
browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the  
Apache

Wicket user list. Send a message to: "users-subscribe at
wicket.apache.org" and follow the instructions.
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user





-- 
--

-

This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a
browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache
Wicket user list. Send a message to: "users-subscribe at
wicket.apache.org" and follow the instructions.
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user



--- 
--

-
---
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a
browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache
Wicket user list. Send a message to: "users-subscribe at
wicket.apache.org" and follow the instructions.
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user





 
--

---
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a
browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache
Wicket user list. Send a message to: "users-subscribe at
wicket.apache.org" and follow the instructions.
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user





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




-

Re: Obfuscating URLs in 1.3 - Can it be done?

2007-08-03 Thread Al Maw

Doug Leeper wrote:

Thanks...it worked.

Would it be possible to update the documentation that I referred to in the
original post to include this?


Yes. Create an account on the wiki and you can do this yourself. That's 
the whole point of a wiki. ;-)


Al

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

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



Re: Opening ModalWindows

2007-08-03 Thread Matej Knopp
This should be already fixed in current 1.3.

-Mate

On 8/3/07, Michael Day <[EMAIL PROTECTED]> wrote:
> Users are able to open multiple ModalWindows by clicking a link more
> than once.  To prevent this, the mask should be applied in the link's
> onclick.  What's the easiest way for me to achieve that?  Ideally,
> the entire ModalWindow should open before the server call.  Then the
> server call would load the content.  If we could achieve this,
> applications using ModalWindows would appear to respond much better.
>
> Michael Day
>
> -
> 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]



DateField with a Calendar

2007-08-03 Thread Federico Fanton
Hi everyone!
I just migrated to 1.3.0-beta2 from 1.2.6, and I'm trying to replace 
DatePicker's with DateField's, but I'm having a problem because the "backbean" 
of the CompoundPropertyModel of the containing form uses a Calendar field, not 
a Date one, so I'm receiving a conversion exception..
I have a custom Converter in place that would handle the conversion, but it 
doesn't get called, because PropertyResolverConverter calls it only when 
there's a String involved in the conversion, while the DateField would need a 
"Date to Calendar" conversion..
I thought of subclassing DateField and handling the conversion overriding 
setDate, but the "date" field inside DateField is private.. Any hint on what I 
could try?
Many thanks for your time!


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



Opening ModalWindows

2007-08-03 Thread Michael Day
Users are able to open multiple ModalWindows by clicking a link more  
than once.  To prevent this, the mask should be applied in the link's  
onclick.  What's the easiest way for me to achieve that?  Ideally,  
the entire ModalWindow should open before the server call.  Then the  
server call would load the content.  If we could achieve this,  
applications using ModalWindows would appear to respond much better.


Michael Day

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



Re: DropDown within ModalWindow does not work in Camino

2007-08-03 Thread Matej Knopp
In that case it's quite possible that it is camino's fault. Maybe the
dropdowns just don't work if they are placed on something with
position:absolute/fixed ?

-Matej

On 8/3/07, Michael Day <[EMAIL PROTECTED]> wrote:
> I am cross-posting this on the new list.  I also found that Yahoo
> Mail has a ModalWindow exhibiting the exact same problem in Camino.
>
> On Aug 2, 2007, at 9:46 AM, Michael Day wrote:
>
> > 1.2.5 and 1.2.6
> >
> > On Aug 1, 2007, at 6:58 PM, Matej Knopp wrote:
> >
> >> It's weird, what version of wicket are you testing it with?
> >>
> >> -Matej
> >>
> >> On 8/2/07, Michael Day <[EMAIL PROTECTED]> wrote:
> >>> That one works, but it's a page.  Maybe that's why?  I'm using a
> >>> panel.
> >>>
> >>> On Aug 1, 2007, at 6:16 PM, Eelco Hillenius wrote:
> >>>
>  Works fine for me. Btw, the modal windows example in
>  wicket-examples/ajax has a dropdown in it (the AM/PM field of the
>  first modal window).
> 
>  Eelco
> 
> 
>  On 7/31/07, Michael Day <[EMAIL PROTECTED]> wrote:
> > DropDown within ModalWindow does not work in Camino.  It displays,
> > but nothing happens when I click it to expand.  Has anybody else
> > experienced this?
> >
> > --
> > -
> > --
> > 
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a
> > browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > ___
> > IMPORTANT NOTICE:
> >
> > This mailing list is shutting down. Please subscribe to the Apache
> > Wicket user list. Send a message to: "users-subscribe at
> > wicket.apache.org" and follow the instructions.
> > ___
> > Wicket-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> 
>  ---
>  -
>  --
>  ---
>  This SF.net email is sponsored by: Splunk Inc.
>  Still grepping through log files to find problems?  Stop.
>  Now Search log events and configuration files using AJAX and a
>  browser.
>  Download your FREE copy of Splunk now >>  http://get.splunk.com/
>  ___
>  IMPORTANT NOTICE:
> 
>  This mailing list is shutting down. Please subscribe to the Apache
>  Wicket user list. Send a message to: "users-subscribe at
>  wicket.apache.org" and follow the instructions.
>  ___
>  Wicket-user mailing list
>  [EMAIL PROTECTED]
>  https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> >>>
> >>>
> >>> 
> >>> -
> >>> 
> >>> This SF.net email is sponsored by: Splunk Inc.
> >>> Still grepping through log files to find problems?  Stop.
> >>> Now Search log events and configuration files using AJAX and a
> >>> browser.
> >>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> >>> ___
> >>> IMPORTANT NOTICE:
> >>>
> >>> This mailing list is shutting down. Please subscribe to the Apache
> >>> Wicket user list. Send a message to: "users-subscribe at
> >>> wicket.apache.org" and follow the instructions.
> >>> ___
> >>> Wicket-user mailing list
> >>> [EMAIL PROTECTED]
> >>> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>>
> >>
> >> -
> >> -
> >> ---
> >> This SF.net email is sponsored by: Splunk Inc.
> >> Still grepping through log files to find problems?  Stop.
> >> Now Search log events and configuration files using AJAX and a
> >> browser.
> >> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> >> ___
> >> IMPORTANT NOTICE:
> >>
> >> This mailing list is shutting down. Please subscribe to the Apache
> >> Wicket user list. Send a message to: "users-subscribe at
> >> wicket.apache.org" and follow the instructions.
> >> ___
> >> Wicket-user mailing list
> >> [EMAIL PROTECTED]
> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >>
> >>
> >
> >
> > --
> > ---
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a
> > browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > ___
> > IMPORTANT

Menu???

2007-08-03 Thread Doug Leeper

Any extension or work being done to create a javascript based menu in Wicket? 
I know in the "old" nabble there was discussion but that was over a year
ago.
-- 
View this message in context: 
http://www.nabble.com/Menutf4213073.html#a11985113
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: DropDown within ModalWindow does not work in Camino

2007-08-03 Thread Michael Day
I am cross-posting this on the new list.  I also found that Yahoo  
Mail has a ModalWindow exhibiting the exact same problem in Camino.


On Aug 2, 2007, at 9:46 AM, Michael Day wrote:


1.2.5 and 1.2.6

On Aug 1, 2007, at 6:58 PM, Matej Knopp wrote:


It's weird, what version of wicket are you testing it with?

-Matej

On 8/2/07, Michael Day <[EMAIL PROTECTED]> wrote:

That one works, but it's a page.  Maybe that's why?  I'm using a
panel.

On Aug 1, 2007, at 6:16 PM, Eelco Hillenius wrote:


Works fine for me. Btw, the modal windows example in
wicket-examples/ajax has a dropdown in it (the AM/PM field of the
first modal window).

Eelco


On 7/31/07, Michael Day <[EMAIL PROTECTED]> wrote:

DropDown within ModalWindow does not work in Camino.  It displays,
but nothing happens when I click it to expand.  Has anybody else
experienced this?

-- 
-

--

This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a
browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache
Wicket user list. Send a message to: "users-subscribe at
wicket.apache.org" and follow the instructions.
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user



--- 
-

--
---
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a
browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache
Wicket user list. Send a message to: "users-subscribe at
wicket.apache.org" and follow the instructions.
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user





 
-


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a
browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache
Wicket user list. Send a message to: "users-subscribe at
wicket.apache.org" and follow the instructions.
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user



- 
-

---
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a
browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache
Wicket user list. Send a message to: "users-subscribe at
wicket.apache.org" and follow the instructions.
___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user





-- 
---

This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a  
browser.

Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache  
Wicket user list. Send a message to: "users-subscribe at  
wicket.apache.org" and follow the instructions.

___
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user





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



Feedback is not dispayled in ajax submit

2007-08-03 Thread Gohan

I cannot seem to get the Feedback panel to be displayed on a Form submit. 

I have a custom form component that extends Form to which I'm adding an
AjaxSubmitButton using:
add(new AjaxSubmitButton("submit", this) {
private static final long serialVersionUID = 
4557185412512174512L;
@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
fromDate = (Date) fromDateField.getConvertedInput();
toDate = (Date) toDateField.getConvertedInput();

target.addComponent(nbrOfAuthenticationsChart);
target.addComponent(feedbackPanel);
}
 });

The feedback panel is added using (it's located outside the form in another
component):
add(feedbackPanel = new FeedbackPanel("feedback"));
feedbackPanel.setOutputMarkupId(true);

I've also added an AjaxFormValidatingBehavior to the form: 
AjaxFormValidatingBehavior.addToAllFormComponents(this, "onclick"); 
and I'm using a special form validator that extends AbstractFormValidator
that I've also added to the custom form.

The ajax submission works when I press the submit button but there are no
form errors displayed if there are any errors. The problem seem to be that
the feedback panel is never displayed and I cannot seem to figure out why.
I'm using Wicket 1.2.6. I've looked in the example at
http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage
but that example doesn't seem to work at all. 

Could anyone give me a clue?



-- 
View this message in context: 
http://www.nabble.com/Feedback-is-not-dispayled-in-ajax-submit-tf4213023.html#a11984924
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Obfuscating URLs in 1.3 - Can it be done?

2007-08-03 Thread Doug Leeper

Thanks...it worked.

Would it be possible to update the documentation that I referred to in the
original post to include this?
-- 
View this message in context: 
http://www.nabble.com/Obfuscating-URLs-in-1.3---Can-it-be-done--tf4208915.html#a11984747
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Dynamically adding tree nodes upon selection

2007-08-03 Thread Doug Leeper

I would like to dynamically add tree nodes to an AbstractTree instead of
loading the entire tree up front.  Not sure how do this.  I thought I would
be able to override nodeExpanded(TreeNode) and check if the node had been
"loaded" ...if not then load 1 level deep.  However, all ITreeStateListeners
are final in AbstractTree.

Is there a way to do this without creating my own version of AbstractTree? 
Better yet...is there an example of this...it could mimic the file structure
of your computer.

Thanks
- Doug
-- 
View this message in context: 
http://www.nabble.com/Dynamically-adding-tree-nodes-upon-selection-tf4212940.html#a11984616
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: slf4j Logger not serializable?

2007-08-03 Thread Peter Thomas
On 8/3/07, Al Maw <[EMAIL PROTECTED]> wrote:
>
> Peter Thomas wrote:
> > Seeing that Wicket depends on SLF4J got me interested - so I just tried
> to
> > switch to it from commons-logging.  My pages / panels extend from a base
> > class that holds a org.slf4j.Logger instance.  But now I get a whole lot
> of
> > serialization problems in the log:
> [...]
>
> Make your loggers static final instead of private member instances.
>
> Regards,
>
> Al


Thanks Al, that fixed it.


Re: How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Al Maw

Fabio Fioretti wrote:

On 8/3/07, Al Maw <[EMAIL PROTECTED]> wrote:

If you're going to be using the previous page in your new page (for
example, to provide a link back to it) then you need a reference to it.
You may as well pass this in the constructor.


But is it the only way to do this really?

An automatic mechanism to get the caller page without passing it in
the constructor would be cool. Does it exist?


Why would it be cool? The method required at the moment is far more 
explicit and obvious. In particular, it's just plain Java and not some 
magic.


If have some automatic mechanism it would need to cope with:

 - What happens when you do redirects? Particularly, what if you throw
   RestartResponseException() in a page's constructor?

 - What if you came via a stateless page?

 - What happens when you access pages from two page maps simultaneously?

 - How do you make sure that the previous page that you're going to use
   in your new page instance doesn't disappear out of the page map
   stack because no one has used it recently and no one has a reference
   to it any more?

That said, if you really want to you could implement this yourself in 
any one of a number of ways.


For example, you could keep the last rendered Page instance in a custom 
Session and have a base page class of yours call 
yourSession.setLastRendered(this) in its onDetach() method. There may be 
race conditions if people are browsing pages in two tabs at once in 
different page maps, but you'll probably never notice them. Or you could 
do something similar but with a ThreadLocal you can set in a custom 
RequestCycle.


All of this is really complex and unobvious compared to just passing the 
page in in the constructor, which is reliable, easy and simple. So, err, 
why don't you just do that?


Regards,

Al

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

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



Re: slf4j Logger not serializable?

2007-08-03 Thread Al Maw

Peter Thomas wrote:

Seeing that Wicket depends on SLF4J got me interested - so I just tried to
switch to it from commons-logging.  My pages / panels extend from a base
class that holds a org.slf4j.Logger instance.  But now I get a whole lot of
serialization problems in the log:

[...]

Make your loggers static final instead of private member instances.

Regards,

Al

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

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



slf4j Logger not serializable?

2007-08-03 Thread Peter Thomas
Hi,

Seeing that Wicket depends on SLF4J got me interested - so I just tried to
switch to it from commons-logging.  My pages / panels extend from a base
class that holds a org.slf4j.Logger instance.  But now I get a whole lot of
serialization problems in the log:

=

2007-08-03 19:29:28,527 [FilePageSerializingThread-jtrac-app] ERROR [
org.apache.wicket.util.lang.Objects] - Error serializing object class
info.jtrac.wicket.DashboardPage [object=[Page class =
info.jtrac.wicket.DashboardPage, id = 5, version = 0]]
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:Unable
to serialize class:
org.slf4j.impl.Log4jLoggerAdapter
Field hierarchy is:
  5 [class=info.jtrac.wicket.DashboardPage, path=5]
private java.lang.Object org.apache.wicket.MarkupContainer.children[class=[
Lorg.apache.wicket.Component;]
  private java.lang.Object org.apache.wicket.MarkupContainer.children[0]
[class=info.jtrac.wicket.HeaderPanel, path=5:header]
protected final org.slf4j.Logger
info.jtrac.wicket.BasePanel.logger[class=
org.slf4j.impl.Log4jLoggerAdapter] <- field that is not serializable
at org.apache.wicket.util.io.SerializableChecker.check(
SerializableChecker.java:347)

=

Is this expected?  Or is this something I need to change?

Thanks,

Peter.


Re: How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Fabio Fioretti
On 8/3/07, Al Maw <[EMAIL PROTECTED]> wrote:
> If you're going to be using the previous page in your new page (for
> example, to provide a link back to it) then you need a reference to it.
> You may as well pass this in the constructor.

But is it the only way to do this really?

An automatic mechanism to get the caller page without passing it in
the constructor would be cool. Does it exist?


Best regards,

Fabio Fioretti - WindoM

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



Re: ListMultipleChoice and keypress

2007-08-03 Thread Damian Mendez Romera
You can use an AjaxFormComponentUpdatingBehavior("keyup") and override 
the getAjaxCallDecorator method.


Example:

myLMC.add(new AjaxFormComponentUpdatingBehavior("keyup") {
   onUpdate() {
  // your logic
   }

   getAjaxCallDecorator() {
  return new AjaxCallDecorator() {
 decorateScript(script) {
return "if (pressedKey == 'K') { " + script + "}";
 }
  };
   }
});

Of course you will need a more complex JavaScript logic but this example 
only shows how to add a conditional callback to your ajax behavior :)


Istvan De wrote:

Hi!

How to receive a javascript keypress event from a ListMultipleChoice?

Basically I'd need to have a callback (on certain keys like enter, and 
arrow keys) with the currently selected items.


I've tried AjaxFormComponentUpdatingBehavior, I've got two problems 
with it:

- How to have this callback only on certain keys, not any key?
- When the arrow keys are used, the callback is called *before* the 
actual moving of the selection is done in the browser, so I cannot 
detect the newly selected item. (this is a JavaScript limitation 
afaik, but maybe this can be worked around by sending the currently 
selected item+the code of the pressed key)


Any ideas?

Best regards,
Istvan

-
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: How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Al Maw

Why do you want to avoid this?

If you're going to be using the previous page in your new page (for 
example, to provide a link back to it) then you need a reference to it. 
You may as well pass this in the constructor.


Alastair

Paolo Di Tommaso wrote:

Yes, but I would to avoid this, basically I'm looking for a way to discover
dinamically the calling wicket page instance (if exists ..)


Thanks, Paolo


On 8/3/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:

you could have a constructor B(Page referrer)
and pass the referrer page as a parameter like:
this.setResponsePage(new B(this));

hth,
  gerolf

On 8/3/07, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:

Dear Wicket gurus,

Suppose I have two Wicket page, let's say page A and B,
with the following simple navigation rule A --> B using something like

A. setResponsePage( new B() )

At compiles time A know B , but B does not know A.
It there a way to get - at runtime - from page B the reference to caller

A

page instance?

Basically I'm trying to implement something like the HTTP referer
mechanism.


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



Re: How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Paolo Di Tommaso
Yes, but I would to avoid this, basically I'm looking for a way to discover
dinamically the calling wicket page instance (if exists ..)


Thanks, Paolo


On 8/3/07, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
>
> you could have a constructor B(Page referrer)
> and pass the referrer page as a parameter like:
> this.setResponsePage(new B(this));
>
> hth,
>   gerolf
>
> On 8/3/07, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:
> >
> > Dear Wicket gurus,
> >
> > Suppose I have two Wicket page, let's say page A and B,
> > with the following simple navigation rule A --> B using something like
> >
> > A. setResponsePage( new B() )
> >
> > At compiles time A know B , but B does not know A.
> > It there a way to get - at runtime - from page B the reference to caller
> A
> > page instance?
> >
> > Basically I'm trying to implement something like the HTTP referer
> > mechanism.
> >
> >
> > Any ideas ?
> >
> >
> >
> > Thanks, Paolo
> >
>


Re: How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Gerolf Seitz
you could have a constructor B(Page referrer)
and pass the referrer page as a parameter like:
this.setResponsePage(new B(this));

hth,
  gerolf

On 8/3/07, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:
>
> Dear Wicket gurus,
>
> Suppose I have two Wicket page, let's say page A and B,
> with the following simple navigation rule A --> B using something like
>
> A. setResponsePage( new B() )
>
> At compiles time A know B , but B does not know A.
> It there a way to get - at runtime - from page B the reference to caller A
> page instance?
>
> Basically I'm trying to implement something like the HTTP referer
> mechanism.
>
>
> Any ideas ?
>
>
>
> Thanks, Paolo
>


How discover the caller page (wicket 1.2.x)

2007-08-03 Thread Paolo Di Tommaso
Dear Wicket gurus,

Suppose I have two Wicket page, let's say page A and B,
with the following simple navigation rule A --> B using something like

A. setResponsePage( new B() )

At compiles time A know B , but B does not know A.
It there a way to get - at runtime - from page B the reference to caller A
page instance?

Basically I'm trying to implement something like the HTTP referer mechanism.


Any ideas ?



Thanks, Paolo


Re: DatePicker-localization (*.js) files are in UTF-8 - problem with diacritics

2007-08-03 Thread Stefan Simik

Thank you in advance Matej, you're right - we had incorrect Page encoding.

After a few hours of debugging and testing I found, that the one page (which
used DatePicker) had incorrect
encoding - ISO-8859-2 and not UTF-8. All other pages were good.

I didn't found the reason yet ( why the only one page used another
encoding), but my temporary
solution was to override method   configureResponse(Response res) and set
HTTP header with proper
UTF-8 encoding.

We are using Slovak locale -> so CharSetMap class in Wicket returns default
"ISO-8859-2" encoding. It's OK.
But our page has XML declaration with encoding="utf-8", what should be prior
to settings in CharSetMap,
but it does not function in our case.


-- 
View this message in context: 
http://www.nabble.com/DatePicker-localization-%28*.js%29-files-are-in-UTF-8---problem-with-diacritics-tf4205759.html#a11979973
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: What is IModel.getNestedModel useful for

2007-08-03 Thread Johan Compagner
But people do use it for example

CompoundPropertyModel cpm = new CompoundPropertyModel(new
HibernateObjectModel(myDbObject));
cpm.getNestedModel().setId(xx);

But for this we have now IChainedModel so people who want to get the inner
model can do that by implementing that interface.

johan


On 8/2/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> On 8/1/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> > Can someone explain to me the very essence of nested models
> (getNestedModel)
> > in IModel
>
> We weren't that clear on it either, which is why we removed it from
> Wicket 1.3. :)
>
> > i do always encounter getNestedModel() then i blindly always return
> null.
> > But am just curious as to why their is nested model (is it a way to
> chain
> > models?)
>
> It was really only used by a couple of models, notably property models
> and string resource models, which can both work on other models. So
> you can let it return null without having to worry about it :)
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>